:root {
  --rugarc-bg: #050811;
  --rugarc-surface: rgba(255, 255, 255, 0.075);
  --rugarc-surface-strong: rgba(255, 255, 255, 0.13);
  --rugarc-border: rgba(255, 255, 255, 0.18);
  --rugarc-text: #f8fbff;
  --rugarc-muted: rgba(248, 251, 255, 0.68);
  --rugarc-blue: #00c9ff;
  --rugarc-violet: #8a5cff;
  --rugarc-pink: #ee008b;
  --rugarc-lime: #c8ff3d;
  --rugarc-radius: 30px;
  --rugarc-shadow: 0 30px 100px rgba(0, 0, 0, 0.45);
  --rugarc-font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --rugarc-display: "Playfair Display", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 118px; }
body {
  min-width: 320px;
  overflow-x: hidden;
  color: var(--rugarc-text);
  font-family: var(--rugarc-font);
  background:
    radial-gradient(circle at top left, rgba(0, 201, 255, 0.22), transparent 36rem),
    radial-gradient(circle at 85% 10%, rgba(238, 0, 139, 0.20), transparent 28rem),
    linear-gradient(135deg, #050811 0%, #07111f 52%, #12071d 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 30%, black 0, transparent 72%);
  z-index: -2;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--rugarc-blue); }
img { max-width: 100%; display: block; }

.noise-layer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .15;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}
.cursor-glow {
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  position: fixed;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  opacity: .2;
  filter: blur(30px);
  background: radial-gradient(circle, rgba(0,201,255,.55), rgba(238,0,139,.18) 48%, transparent 70%);
}
.page-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 1080;
  background: rgba(255,255,255,.06);
}
.page-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--rugarc-blue), var(--rugarc-pink), var(--rugarc-lime));
}
.fw-black { font-weight: 900; letter-spacing: -.055em; }
.section-pad { padding: clamp(5rem, 9vw, 9rem) 0; position: relative; }
.section-title { font-size: clamp(2.15rem, 4.7vw, 5.05rem); line-height: .95; font-weight: 900; letter-spacing: -.065em; }
.section-copy { color: var(--rugarc-muted); font-size: clamp(1rem, 1.4vw, 1.15rem); }
.section-kicker, .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 850;
  color: var(--rugarc-blue);
  margin-bottom: 1rem;
}
.eyebrow span, .section-kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--rugarc-blue), var(--rugarc-pink));
}
.glass-card, .glass-nav, .glass-offcanvas, .glass-modal {
  border: 1px solid var(--rugarc-border);
  background: linear-gradient(145deg, rgba(255,255,255,.135), rgba(255,255,255,.045));
  box-shadow: var(--rugarc-shadow);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}
.glass-nav {
  margin: 14px auto 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(96%, 1420px);
  border-radius: 999px;
  padding: .54rem 0;
  transition: all .35s ease;
}
.glass-nav.nav-compact {
  margin-top: 8px;
  padding: .38rem 0;
  background: rgba(5, 8, 17, .74);
}
.brand-logo { width: clamp(118px, 11vw, 165px); height: auto; display: block; }
.navbar .nav-link {
  color: rgba(255,255,255,.75);
  font-size: .86rem;
  font-weight: 780;
  border-radius: 999px;
  padding: .52rem .72rem !important;
  white-space: nowrap;
  transition: color .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,.1);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.navbar .nav-link.active { color: var(--rugarc-blue); }
.btn-rugarc {
  --bs-btn-color: #06101d;
  --bs-btn-bg: #fff;
  --bs-btn-border-color: rgba(255,255,255,.55);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: transparent;
  --bs-btn-hover-border-color: rgba(255,255,255,.38);
  border-radius: 999px;
  font-weight: 850;
  box-shadow: 0 18px 45px rgba(0,201,255,.2);
  background-image: linear-gradient(135deg, #fff 0%, #c5f7ff 45%, #ffc7ee 100%);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.btn-rugarc:hover { background-image: linear-gradient(135deg, rgba(0,201,255,.92), rgba(238,0,139,.86)); box-shadow: 0 22px 60px rgba(238,0,139,.28); transform: translateY(-3px); }
.btn-glass {
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  font-weight: 800;
}
.btn-glass:hover { color: #fff; background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.42); }

.hero-section { min-height: 100vh; }
#particleCanvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .43; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .65; animation: floatOrb 11s ease-in-out infinite; }
.orb-one { width: 22rem; height: 22rem; top: 16%; right: 10%; background: rgba(0,201,255,.28); }
.orb-two { width: 18rem; height: 18rem; bottom: 7%; left: 6%; background: rgba(238,0,139,.22); animation-delay: -4s; }
.hero-title { font-size: clamp(3.2rem, 8vw, 8.35rem); line-height: .84; max-width: 1040px; }
.hero-copy { color: var(--rugarc-muted); max-width: 720px; font-size: clamp(1.08rem, 1.8vw, 1.38rem); }
.metric-card { border-radius: 24px; padding: 1.2rem; min-height: 146px; display: flex; flex-direction: column; justify-content: space-between; }
.metric-card strong { font-size: clamp(2rem, 4vw, 3.2rem); line-height: .9; font-weight: 900; color: #fff; }
.metric-card small { color: var(--rugarc-muted); line-height: 1.3; }
.hero-device { max-width: 520px; margin-inline: auto; border-radius: 42px; padding: 12px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08); box-shadow: 0 45px 120px rgba(0,0,0,.55); backdrop-filter: blur(28px); transform-style: preserve-3d; }
.device-topbar { display: flex; gap: 8px; padding: 12px 12px 14px; }
.device-topbar span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.35); }
.device-screen { position: relative; overflow: hidden; border-radius: 32px; min-height: 610px; background: #0b1220; }
.device-screen img { width: 100%; height: 610px; object-fit: cover; opacity: .84; transform: scale(1.02); }
.device-screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,8,17,.82), transparent 52%, rgba(0,201,255,.18)); }
.floating-panel { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: .7rem; padding: .86rem 1rem; border-radius: 18px; font-weight: 800; font-size: .84rem; }
.floating-panel i { color: var(--rugarc-blue); font-size: 1.1rem; }
.panel-a { top: 10%; left: -5%; animation: floatCard 6s ease-in-out infinite; }
.panel-b { bottom: 10%; right: -7%; animation: floatCard 6.4s ease-in-out infinite reverse; }
.scroll-cue { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: .5rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .18em; font-size: .68rem; font-weight: 800; }
.scroll-cue span { width: 1px; height: 48px; background: linear-gradient(transparent, #fff, transparent); animation: scrollCue 1.6s ease-in-out infinite; }

.service-card { border-radius: var(--rugarc-radius); padding: 2rem; position: relative; overflow: hidden; transition: transform .35s ease, border-color .35s ease; }
.service-card::before { content: ""; position: absolute; inset: -1px; background: radial-gradient(circle at 15% 0%, rgba(0,201,255,.2), transparent 35%); opacity: 0; transition: opacity .35s ease; }
.service-card:hover { transform: translateY(-8px); border-color: rgba(0,201,255,.45); }
.service-card:hover::before { opacity: 1; }
.service-card > * { position: relative; z-index: 1; }
.icon-bubble { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 20px; background: linear-gradient(135deg, rgba(0,201,255,.2), rgba(238,0,139,.16)); color: #fff; font-size: 1.55rem; margin-bottom: 1.35rem; }
.service-card h3 { font-weight: 900; letter-spacing: -.04em; margin-bottom: .8rem; }
.service-card p, .timeline-card p, .experience-panel p { color: var(--rugarc-muted); }
.mini-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 850; font-size: .92rem; color: #fff; }
.capability-shell { border-radius: 38px; padding: clamp(1.5rem, 4vw, 3rem); overflow: hidden; position: relative; }
.capability-shell::after { content: ""; position: absolute; inset: auto -12% -45% auto; width: 30rem; height: 30rem; background: radial-gradient(circle, rgba(0,201,255,.2), transparent 70%); }
.pill-card { min-height: 68px; display: flex; align-items: center; gap: .8rem; padding: 1rem 1.05rem; border-radius: 22px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.065); font-weight: 800; position: relative; z-index: 2; }
.pill-card i { color: var(--rugarc-blue); font-size: 1.25rem; }
.method-copy { top: 118px; }
.timeline { position: relative; display: grid; gap: 1rem; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 34px; width: 1px; background: linear-gradient(transparent, rgba(255,255,255,.28), transparent); }
.timeline-item { display: grid; grid-template-columns: 68px 1fr; gap: 1rem; align-items: start; }
.timeline-item > span { width: 68px; height: 68px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--rugarc-blue), var(--rugarc-pink)); color: #05101d; font-weight: 900; position: relative; z-index: 1; }
.timeline-card { border-radius: 28px; padding: 1.45rem; }
.timeline-card h3 { font-weight: 900; letter-spacing: -.04em; }
.about-image-wrap { position: relative; width: min(100%, 640px); margin-inline: auto; }
.about-image-wrap img { aspect-ratio: 5/4; object-fit: cover; width: 100%; border: 1px solid rgba(255,255,255,.18); }
.about-badge { position: absolute; right: -3%; bottom: 9%; display: inline-flex; align-items: center; gap: .65rem; border-radius: 999px; padding: .8rem 1rem; font-weight: 900; }
.about-badge i { color: var(--rugarc-lime); }
.contact-chip { min-height: 58px; display: flex; align-items: center; gap: .75rem; border-radius: 18px; border: 1px solid rgba(255,255,255,.12); padding: .8rem .9rem; background: rgba(255,255,255,.06); font-weight: 750; }
.contact-chip i { color: var(--rugarc-blue); }

.portfolio-filter .filter-btn { border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.74); background: rgba(255,255,255,.06); border-radius: 999px; padding: .7rem 1rem; font-weight: 850; transition: all .25s ease; }
.portfolio-filter .filter-btn:hover, .portfolio-filter .filter-btn.active { color: #06101d; background: #fff; }
.portfolio-item { display: flex; transition: opacity .32s ease, transform .32s ease; }
.portfolio-item.is-hidden { opacity: 0; transform: scale(.96); pointer-events: none; display: none; }
.portfolio-card {
  width: 100%;
  min-height: unset;
  aspect-ratio: 1.28 / 1;
  border: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #0b1220;
  text-align: left;
  box-shadow: 0 26px 70px rgba(0,0,0,.35);
  isolation: isolate;
}
.portfolio-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.8,.2,1), opacity .65s; }
.portfolio-card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(4,8,17,.88), rgba(4,8,17,.14) 64%, rgba(0,201,255,.12)); }
.portfolio-card:hover img { transform: scale(1.055); opacity: .92; }
.portfolio-overlay { position: absolute; z-index: 2; left: 1.1rem; right: 1.1rem; bottom: 1.1rem; padding: 1.05rem; border-radius: 22px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.11); backdrop-filter: blur(20px); color: #fff; display: flex; flex-direction: column; }
.portfolio-overlay strong { font-size: 1.25rem; font-weight: 900; letter-spacing: -.04em; }
.portfolio-overlay small { color: rgba(255,255,255,.72); }
.portfolio-card-cta { padding: 1.6rem; display: flex; flex-direction: column; justify-content: space-between; }
.portfolio-card-cta::after { display: none; }
.portfolio-card-cta h3 { font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 900; letter-spacing: -.06em; line-height: .95; }
.portfolio-card-cta p { color: var(--rugarc-muted); }
.glass-modal { background: rgba(9, 12, 23, .86); border-radius: 34px; }
.modal-close { position: absolute; z-index: 4; right: 1rem; top: 1rem; }
.modal-img-shell { background: rgba(0,0,0,.22); display: grid; place-items: center; }
.modal-img { width: 100%; height: 100%; min-height: 420px; object-fit: contain; background: #070a12; }
.clients-card { border-radius: 34px; padding: 1.2rem; display: grid; place-items: center; }
.clients-card img { border-radius: 24px; width: 100%; max-height: 480px; object-fit: contain; }
.experience-panel { border-radius: 34px; padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
.experience-panel h3 { font-size: clamp(2rem, 3.2vw, 3rem); font-weight: 900; letter-spacing: -.06em; line-height: .95; }
.experience-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .65rem; }
.experience-list li { display: flex; gap: .65rem; align-items: center; color: rgba(255,255,255,.82); }
.experience-list i { color: var(--rugarc-lime); }
.contact-hero { border-radius: 42px; padding: clamp(1.6rem, 4vw, 3.4rem); overflow: hidden; position: relative; }
.contact-hero::after { content: ""; position: absolute; width: 26rem; height: 26rem; right: -10rem; top: -12rem; background: radial-gradient(circle, rgba(238,0,139,.25), transparent 68%); }
.footer-info { border-radius: 26px; padding: 1.35rem; display: grid; gap: .45rem; }
.footer-info i { font-size: 1.6rem; color: var(--rugarc-blue); }
.footer-info strong { font-weight: 900; }
.footer-info span { color: var(--rugarc-muted); word-break: break-word; }
.site-footer { border-top: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.14); }
.footer-links a { color: var(--rugarc-muted); }
.footer-links a:hover { color: #fff; }
.glass-offcanvas { background: rgba(5, 8, 17, .9); }
.offcanvas-logo { width: 170px; }
.mobile-nav-links .nav-link { font-size: 2rem; font-weight: 900; letter-spacing: -.05em; color: #fff; padding: .6rem 0; }
.mobile-nav-links .nav-link.active { color: var(--rugarc-blue); }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }


/* ------------------------------------------------------------
   V3: ritmo editorial, cursor Joker y modo creativo con física.
   Estos estilos son de producción; la lógica de arrastre vive en main.js.
------------------------------------------------------------ */
@media (pointer: fine) {
  body, body a, body button, body [role="button"], body input, body textarea { cursor: none !important; }
}
body.physics-mode { cursor: none; }
p, li { line-height: 1.78; }
.lead { line-height: 1.72; }
.section-title { margin-bottom: 1.15rem; text-wrap: balance; }
.section-copy { line-height: 1.85; max-width: 720px; }
.hero-copy { line-height: 1.75; margin-top: 1.2rem; }
.service-card p,
.timeline-card p,
.experience-panel p,
.portfolio-card-cta p,
.contact-hero p { line-height: 1.78; }
.service-card h3,
.timeline-card h3,
.experience-panel h3 { margin-bottom: .95rem; }
.row.g-4 { --bs-gutter-y: 1.75rem; }
.row.g-5 { --bs-gutter-y: 3.25rem; }

.joker-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 46px;
  height: 64px;
  z-index: 12000;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0) rotate(-10deg);
  transform-origin: 50% 72%;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.78);
  background:
    radial-gradient(circle at 72% 18%, rgba(0,201,255,.48), transparent 32%),
    radial-gradient(circle at 20% 82%, rgba(238,0,139,.42), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.95), rgba(216,229,255,.82));
  box-shadow: 0 14px 36px rgba(0,0,0,.38), inset 0 0 0 1px rgba(255,255,255,.42);
  color: #070a12;
  transition: opacity .25s ease, width .25s ease, height .25s ease, filter .25s ease;
  display: grid;
  place-items: center;
}
.joker-cursor.is-visible { opacity: .96; }
.joker-cursor.is-grabbing { width: 52px; height: 72px; filter: drop-shadow(0 0 18px rgba(0,201,255,.5)); }
.joker-corner { position: absolute; left: 5px; top: 3px; font-size: 10px; font-weight: 950; line-height: 1; }
.joker-symbol { font-size: 18px; color: var(--rugarc-pink); filter: drop-shadow(0 2px 4px rgba(0,0,0,.28)); }
.joker-word { position: absolute; right: 3px; bottom: 7px; writing-mode: vertical-rl; font-size: 7px; font-weight: 950; letter-spacing: .11em; }

.physics-controls {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1095;
  display: inline-flex;
  gap: .45rem;
  align-items: center;
  padding: .4rem;
  border-radius: 999px;
}
.physics-toggle,
.physics-reset {
  border: 0;
  color: #fff;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: -.02em;
  min-height: 42px;
  transition: transform .25s ease, background-color .25s ease, color .25s ease;
}
.physics-toggle { padding: .58rem .95rem; display: inline-flex; gap: .48rem; align-items: center; }
.physics-reset { width: 42px; display: grid; place-items: center; }
.physics-toggle:hover,
.physics-reset:hover { transform: translateY(-2px); background: rgba(255,255,255,.16); }
body.physics-mode .physics-toggle {
  color: #06101d;
  background: linear-gradient(135deg, var(--rugarc-lime), #fff, #c5f7ff);
}
body.physics-mode .physics-controls::before {
  content: "Arrastra y suelta";
  position: absolute;
  right: 0;
  bottom: calc(100% + .5rem);
  width: max-content;
  max-width: 230px;
  padding: .45rem .7rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 850;
  color: rgba(255,255,255,.8);
  background: rgba(5,8,17,.72);
  border: 1px solid rgba(255,255,255,.13);
  backdrop-filter: blur(16px);
}

.physics-dots-layer { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.micro-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 24%, var(--rugarc-blue) 25% 52%, transparent 70%);
  box-shadow: 0 0 18px rgba(0,201,255,.55);
  opacity: .72;
  pointer-events: auto;
}
.micro-dot:nth-child(3n) { background: radial-gradient(circle, #fff 0 24%, var(--rugarc-pink) 25% 52%, transparent 70%); box-shadow: 0 0 18px rgba(238,0,139,.45); }
.micro-dot:nth-child(4n) { background: radial-gradient(circle, #fff 0 24%, var(--rugarc-lime) 25% 52%, transparent 70%); box-shadow: 0 0 18px rgba(200,255,61,.45); }

.physics-letter {
  display: inline-block;
  will-change: transform;
  transform-origin: 50% 62%;
  transition: color .25s ease, text-shadow .25s ease, filter .25s ease;
}
body.physics-mode .physics-letter:hover,
body.physics-mode .physics-draggable:hover {
  color: #fff;
  text-shadow: 0 0 24px rgba(0,201,255,.42), 0 0 36px rgba(238,0,139,.26);
}
.physics-draggable,
.physics-letter { position: relative; }
.physics-draggable,
.physics-letter,
.micro-dot {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
body.physics-mode .physics-draggable,
body.physics-mode .physics-letter,
body.physics-mode .micro-dot { cursor: grab; }
body.physics-mode .physics-dragging {
  z-index: 1150 !important;
  cursor: grabbing;
  filter: drop-shadow(0 28px 42px rgba(0,0,0,.42)) saturate(1.1);
  transition: none !important;
}
body.physics-mode .physics-draggable:not(.physics-dragging),
body.physics-mode .physics-letter:not(.physics-dragging),
body.physics-mode .micro-dot:not(.physics-dragging) {
  transition: transform .18s ease-out, filter .25s ease, box-shadow .25s ease;
}
body.physics-mode .physics-draggable::selection,
body.physics-mode .physics-letter::selection { background: transparent; }
body.physics-mode .service-card,
body.physics-mode .portfolio-card,
body.physics-mode .metric-card,
body.physics-mode .footer-info,
body.physics-mode .contact-chip,
body.physics-mode .clients-card,
body.physics-mode .experience-panel,
body.physics-mode .contact-hero {
  outline: 1px dashed rgba(255,255,255,.13);
  outline-offset: 5px;
}
body.physics-mode .service-card:hover,
body.physics-mode .portfolio-card:hover,
body.physics-mode .metric-card:hover,
body.physics-mode .footer-info:hover,
body.physics-mode .contact-chip:hover {
  box-shadow: 0 30px 90px rgba(0,201,255,.18), 0 12px 50px rgba(238,0,139,.14);
}



/* V4 · Copy premium, respiración visual y módulo Pantone del año */
:root {
  --copy-measure: 66ch;
  --section-flow: clamp(1.15rem, 2vw, 1.85rem);
}
body { text-rendering: geometricPrecision; }
p { line-height: 1.78; }
.lead { line-height: 1.68; }
.hero-copy,
.section-copy,
.experience-panel p,
.timeline-card p,
.service-card p,
.portfolio-card-cta p,
.contact-hero p,
.pantone-note { max-width: var(--copy-measure); }
.hero-title { margin-bottom: clamp(1.25rem, 2.5vw, 2rem); }
.hero-copy { margin-bottom: clamp(1.6rem, 3vw, 2.25rem); font-size: clamp(1.08rem, 1.55vw, 1.34rem); color: rgba(248,251,255,.78); }
.section-title { margin-bottom: clamp(.9rem, 1.6vw, 1.35rem); }
.section-copy + .section-copy,
.section-copy + p,
p + p { margin-top: .85rem; }
.service-card,
.timeline-card,
.experience-panel,
.footer-info,
.portfolio-card-cta,
.contact-hero,
.capability-shell,
.pantone-shell { letter-spacing: -.01em; }
.service-card { padding: clamp(1.35rem, 2.4vw, 1.9rem); }
.service-card h3,
.timeline-card h3,
.experience-panel h3,
.portfolio-card-cta h3 { margin-bottom: .8rem; }
.pill-card { min-height: 68px; align-items: center; }
.navbar .nav-link { font-size: .8rem; padding-inline: .56rem !important; }
.btn { letter-spacing: -.015em; }

.pantone-section {
  overflow: hidden;
}
.pantone-section::before {
  content: "";
  position: absolute;
  inset: 12% -14% auto auto;
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.16), rgba(0,201,255,.10) 35%, transparent 72%);
  filter: blur(10px);
  pointer-events: none;
}
.pantone-shell {
  border-radius: 46px;
  padding: clamp(1.35rem, 4vw, 3.4rem);
  position: relative;
  overflow: hidden;
}
.pantone-shell::after {
  content: "";
  position: absolute;
  inset: auto -12rem -16rem auto;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(238,0,139,.14), transparent 66%);
  pointer-events: none;
}
.pantone-current-card {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 1rem;
  align-items: center;
  padding: .95rem;
  border-radius: 26px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 18px 46px rgba(0,0,0,.24);
  max-width: 460px;
}
.pantone-current-swatch {
  width: 78px;
  aspect-ratio: 1;
  border-radius: 22px;
  background: var(--pantone-current, #f0eee9);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), 0 20px 44px rgba(0,0,0,.28);
  position: relative;
  overflow: hidden;
}
.pantone-current-swatch::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.34), transparent 48%, rgba(0,0,0,.12));
}
.pantone-label {
  display: inline-flex;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .68rem;
  font-weight: 900;
  color: var(--rugarc-lime);
  margin-bottom: .25rem;
}
.pantone-current-card h3 { font-weight: 950; margin: 0; font-size: clamp(1.45rem, 2.5vw, 2.25rem); letter-spacing: -.055em; }
.pantone-current-card p { margin: .1rem 0 0; color: rgba(248,251,255,.66); line-height: 1.45; }
.pantone-note { font-size: .86rem; color: rgba(248,251,255,.56); }
.pantone-stage {
  min-height: 420px;
  border-radius: 42px;
  padding: clamp(1.2rem, 3vw, 2.4rem);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background:
    radial-gradient(circle at 18% 16%, rgba(255,255,255,.72), transparent 18%),
    linear-gradient(135deg, var(--pantone-a, #f0eee9), var(--pantone-b, #f8f7f2));
  box-shadow: 0 34px 100px rgba(0,0,0,.38), inset 0 0 0 1px rgba(255,255,255,.38);
  transition: background .55s ease, transform .4s ease, box-shadow .4s ease;
}
.pantone-stage::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,.36);
  pointer-events: none;
}
.pantone-stage::after {
  content: "PANTONE";
  position: absolute;
  left: clamp(1rem, 3vw, 2.2rem);
  top: clamp(1rem, 3vw, 2.1rem);
  color: rgba(0,0,0,.55);
  font-size: clamp(2rem, 7vw, 5.8rem);
  font-weight: 950;
  letter-spacing: -.08em;
  mix-blend-mode: multiply;
  opacity: .48;
}
.pantone-year-badge {
  position: absolute;
  right: clamp(1rem, 3vw, 2.2rem);
  top: clamp(1rem, 3vw, 2.1rem);
  width: clamp(82px, 10vw, 126px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgba(0,0,0,.62);
  background: rgba(255,255,255,.4);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.46);
  font-size: clamp(1.15rem, 2.8vw, 2rem);
  font-weight: 950;
  letter-spacing: -.08em;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
}
.pantone-stage p {
  position: relative;
  z-index: 2;
  width: min(620px, 100%);
  color: rgba(0,0,0,.72);
  font-size: clamp(1.15rem, 2vw, 1.72rem);
  line-height: 1.32;
  font-weight: 850;
  letter-spacing: -.04em;
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: 24px;
  background: rgba(255,255,255,.34);
  backdrop-filter: blur(16px);
}
.pantone-reel-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .75rem;
  align-items: center;
}
.pantone-reel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(128px, 150px);
  gap: .75rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  padding: .35rem .15rem .8rem;
  scrollbar-width: thin;
}
.pantone-card {
  scroll-snap-align: start;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.07);
  border-radius: 22px;
  padding: .55rem;
  color: #fff;
  text-align: left;
  transition: transform .25s ease, border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.pantone-card:hover,
.pantone-card.is-active {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.38);
  background: rgba(255,255,255,.12);
  box-shadow: 0 18px 46px rgba(0,0,0,.25);
}
.pantone-card.is-active { outline: 2px solid rgba(200,255,61,.56); outline-offset: 3px; }
.pantone-card-swatch {
  height: 88px;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--swatch-a), var(--swatch-b));
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.14);
  margin-bottom: .65rem;
}
.pantone-card strong { display: block; font-weight: 950; line-height: 1.1; letter-spacing: -.045em; }
.pantone-card span { display: block; color: rgba(248,251,255,.64); font-size: .78rem; line-height: 1.35; margin-top: .2rem; }
.reel-control {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  transition: transform .25s ease, background-color .25s ease;
}
.reel-control:hover { transform: translateY(-2px); background: rgba(255,255,255,.16); }

@media (max-width: 991.98px) {
  .pantone-stage { min-height: 350px; }
  .pantone-reel-wrap { grid-template-columns: 1fr; }
  .reel-control { display: none; }
}
@media (max-width: 575.98px) {
  .pantone-shell { border-radius: 30px; }
  .pantone-current-card { grid-template-columns: 64px 1fr; border-radius: 22px; }
  .pantone-current-swatch { width: 64px; border-radius: 18px; }
  .pantone-stage { min-height: 310px; border-radius: 30px; }
  .pantone-stage::before { border-radius: 24px; }
  .pantone-reel { grid-auto-columns: minmax(118px, 138px); }
}

@supports (text-wrap: balance) {
  .hero-title, .section-title, .contact-hero h2 { text-wrap: balance; }
}

@media (pointer: coarse) {
  .joker-cursor { display: none; }
  body.physics-mode { cursor: auto; }
  .physics-controls { right: 12px; bottom: 12px; transform: scale(.92); transform-origin: right bottom; }
}
@media (max-width: 575.98px) {
  .physics-controls { left: 12px; right: 12px; justify-content: center; }
  body.physics-mode .physics-controls::before { right: 50%; transform: translateX(50%); }
}

@keyframes floatOrb { 0%, 100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(2rem, -1.5rem, 0) scale(1.08); } }
@keyframes floatCard { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes scrollCue { 0%, 100% { opacity: .25; transform: scaleY(.8); } 50% { opacity: 1; transform: scaleY(1.1); } }

@media (max-width: 1499.98px) {
  .navbar .nav-link { font-size: .8rem; padding-inline: .54rem !important; }
  .brand-logo { width: 136px; }
}
@media (max-width: 1199.98px) {
  .glass-nav { width: calc(100% - 24px); border-radius: 24px; }
  .brand-logo { width: 158px; }
  .hero-section .min-vh-100 { min-height: auto !important; padding-top: 9rem !important; }
  .device-screen, .device-screen img { height: 560px; min-height: 560px; }
  .floating-panel { display: none; }
}
@media (max-width: 991.98px) {
  .section-pad { padding: 4.6rem 0; }
  .section-title, .hero-title { letter-spacing: -.05em; }
  .timeline::before { left: 25px; }
  .timeline-item { grid-template-columns: 50px 1fr; }
  .timeline-item > span { width: 50px; height: 50px; font-size: .84rem; }
  .about-badge { right: 1rem; bottom: 1rem; }
  .modal-img { min-height: 300px; max-height: 55vh; }
}
@media (max-width: 767.98px) {
  html { scroll-padding-top: 96px; }
  .hero-title { font-size: clamp(3rem, 16vw, 5.2rem); }
  .device-screen, .device-screen img { height: 500px; min-height: 500px; }
  .metric-card { min-height: 132px; }
  .contact-hero { border-radius: 30px; }
  .portfolio-card { aspect-ratio: 1 / 1.05; }
  .mobile-nav-links .nav-link { font-size: 1.72rem; }
}
@media (max-width: 575.98px) {
  .glass-nav { margin-top: 8px; padding: .38rem 0; }
  .brand-logo { width: 142px; }
  .hero-section .min-vh-100 { padding-top: 7.7rem !important; }
  .device-screen, .device-screen img { height: 440px; min-height: 440px; }
  .section-kicker, .eyebrow { letter-spacing: .13em; }
  .portfolio-overlay { left: .85rem; right: .85rem; bottom: .85rem; }
  .portfolio-overlay strong { font-size: 1.08rem; }
  .clients-card, .experience-panel { border-radius: 26px; padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  #particleCanvas, .cursor-glow, .joker-cursor, .physics-dots-layer { display: none; }
  .reveal { opacity: 1; transform: none; }
}

/* V5 · Legibilidad, palabras completas y credibilidad visual */
h1, h2, h3, h4, h5, h6,
.hero-title,
.section-title,
.contact-hero h2,
.nav-link,
.btn,
.section-kicker,
.eyebrow,
.portfolio-overlay strong,
.portfolio-overlay small {
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.hero-title,
.section-title,
.contact-hero h2 {
  line-height: .98;
  letter-spacing: clamp(-.055em, -0.45vw, -.032em);
}

.physics-word {
  display: inline-block;
  white-space: nowrap;
  vertical-align: baseline;
}

.physics-letter {
  display: inline-block;
}

.hero-copy,
.section-copy,
.service-card p,
.timeline-card p,
.proof-card p,
.experience-panel p,
.contact-hero p {
  text-wrap: pretty;
}

.proof-section {
  overflow: hidden;
}
.proof-section::before {
  content: "";
  position: absolute;
  inset: 8% auto auto -14rem;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,201,255,.14), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}
.proof-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: clamp(1.35rem, 2.6vw, 2rem);
  isolation: isolate;
}
.proof-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.18), transparent 34%),
    linear-gradient(145deg, rgba(0,201,255,.09), rgba(238,0,139,.08));
  opacity: .85;
}
.proof-card i {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  margin-bottom: 1.35rem;
  color: #fff;
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(0,201,255,.24), rgba(238,0,139,.18));
  border: 1px solid rgba(255,255,255,.16);
}
.proof-card h3 {
  font-weight: 950;
  letter-spacing: -.04em;
  margin-bottom: .75rem;
}
.proof-card p {
  color: rgba(248,251,255,.72);
  margin-bottom: 0;
}
.proof-number {
  position: absolute;
  right: 1.2rem;
  top: 1rem;
  color: rgba(255,255,255,.16);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.09em;
}

@media (min-width: 1400px) {
  .navbar .nav-link { font-size: .76rem; padding-inline: .42rem !important; }
  .navbar .btn-sm { padding-inline: .8rem; }
  .brand-logo { width: 126px; }
}

@media (max-width: 767.98px) {
  .hero-title,
  .section-title,
  .contact-hero h2 {
    line-height: 1.03;
    letter-spacing: -.04em;
  }
  .hero-title { font-size: clamp(2.55rem, 13.5vw, 4.5rem); }
  .section-title { font-size: clamp(2rem, 10.5vw, 3.4rem); }
  .proof-card { border-radius: 26px; }
}

@media (max-width: 390px) {
  .physics-word { white-space: normal; }
}

/* ------------------------------------------------------------
   V6 · estabilidad, lectura y rendimiento
   - Hero más corto, layout más respirable y física limitada a escritorio.
   - Se mantiene la apariencia glass premium sin sobrecargar móvil.
------------------------------------------------------------ */
:root {
  --section-y: clamp(4.6rem, 7vw, 7.5rem);
  --card-pad: clamp(1.35rem, 2vw, 1.9rem);
}

main > section {
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}

.hero-section {
  content-visibility: visible;
}

.section-pad {
  padding: var(--section-y) 0;
}

.hero-title {
  max-width: 860px;
  font-size: clamp(3.25rem, 7.1vw, 7.25rem);
  line-height: .92;
  letter-spacing: clamp(-.055em, -0.38vw, -.028em);
  margin-bottom: 1.15rem;
}

.hero-copy {
  max-width: 680px;
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
}

.hero-metrics {
  max-width: 920px;
}

.metric-card,
.service-card,
.timeline-card,
.proof-card,
.experience-panel,
.footer-info,
.contact-chip,
.portfolio-card-cta {
  transform: translateZ(0);
}

.metric-card {
  min-height: 132px;
  padding: var(--card-pad);
}

.service-card,
.proof-card,
.experience-panel,
.timeline-card,
.portfolio-card-cta,
.footer-info {
  padding: var(--card-pad);
}

.service-card,
.proof-card {
  display: flex;
  flex-direction: column;
  gap: .72rem;
}

.service-card p,
.proof-card p,
.timeline-card p,
.experience-panel p,
.portfolio-card-cta p {
  margin-bottom: 0;
}

.service-card .mini-link {
  margin-top: auto;
  padding-top: .35rem;
}

.section-title {
  max-width: 980px;
  font-size: clamp(2rem, 4.1vw, 4.45rem);
  line-height: 1.03;
  margin-bottom: .95rem;
}

.capability-shell,
.pantone-shell,
.contact-hero {
  border-radius: clamp(28px, 3vw, 42px);
}

.pill-card {
  min-height: 72px;
  line-height: 1.28;
}

.timeline {
  gap: 1.15rem;
}

.timeline-card {
  min-height: 132px;
}

.about-image-wrap img,
.clients-card img,
.portfolio-card img,
.device-screen img {
  backface-visibility: hidden;
}

.portfolio-grid {
  --bs-gutter-x: 1.35rem;
  --bs-gutter-y: 1.35rem;
}

.portfolio-card {
  aspect-ratio: 1.18 / 1;
}

.portfolio-overlay {
  gap: .2rem;
}

.portfolio-overlay strong,
.portfolio-overlay small {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.clients-card {
  min-height: 100%;
}

.clients-card img {
  max-height: 430px;
}

.proof-card {
  min-height: 285px;
}

.pantone-stage {
  min-height: clamp(360px, 46vw, 560px);
}

.pantone-card {
  min-height: 162px;
}

.physics-controls.is-disabled {
  display: none !important;
}

@media (max-width: 1399.98px) {
  .navbar .nav-link { padding-inline: .48rem !important; font-size: .78rem; }
  .brand-logo { width: 128px; }
}

@media (max-width: 1199.98px) {
  .section-title { max-width: 820px; }
  .hero-title { max-width: 760px; }
}

@media (max-width: 991.98px) {
  main > section { contain-intrinsic-size: 760px; }
  .section-pad { padding: 4.4rem 0; }
  .hero-title { font-size: clamp(2.75rem, 12vw, 5.1rem); line-height: .98; }
  .section-title { font-size: clamp(2rem, 8.4vw, 3.8rem); line-height: 1.05; }
  .physics-controls { display: none !important; }
  .cursor-glow,
  .joker-cursor,
  .physics-dots-layer { display: none !important; }
  #particleCanvas { opacity: .24; }
  .service-card,
  .proof-card,
  .timeline-card,
  .experience-panel { min-height: auto; }
}

@media (max-width: 767.98px) {
  .hero-section .min-vh-100 { padding-top: 7rem !important; }
  .hero-title { font-size: clamp(2.55rem, 13.8vw, 4.7rem); letter-spacing: -.045em; }
  .hero-copy { font-size: 1.03rem; line-height: 1.68; }
  .metric-card { min-height: 118px; }
  .portfolio-card { aspect-ratio: 1 / 1.02; border-radius: 26px; }
  .portfolio-overlay { padding: .9rem; border-radius: 19px; }
  .portfolio-overlay strong { font-size: 1rem; line-height: 1.12; }
  .contact-hero .btn { width: 100%; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 575.98px) {
  main > section { contain-intrinsic-size: 680px; }
  .section-pad { padding: 3.85rem 0; }
  .hero-title { font-size: clamp(2.45rem, 14vw, 4.05rem); }
  .section-title { font-size: clamp(1.9rem, 10.5vw, 3.15rem); }
  .row.g-4 { --bs-gutter-y: 1.15rem; }
  .row.g-5 { --bs-gutter-y: 2rem; }
  .device-screen, .device-screen img { height: 390px; min-height: 390px; }
  .pantone-stage { min-height: 292px; }
  .pantone-stage p { font-size: 1rem; line-height: 1.45; }
  .pantone-card { min-height: 152px; }
}

/* ------------------------------------------------------------
   V7 · Copy comercial + distribución estable de cards
   - Se retoma la esencia del sitio original: estrategia, creatividad,
     producción e implementación para cada audiencia, presupuesto y calendario.
   - Se corrigen alturas, respiración y posibles encimados en cards.
------------------------------------------------------------ */
:root {
  --rugarc-copy-strong: rgba(248, 251, 255, .82);
  --rugarc-card-copy: rgba(248, 251, 255, .70);
}

.hero-title {
  max-width: 780px;
  font-size: clamp(3rem, 6.45vw, 6.65rem);
  line-height: .98;
  margin-bottom: clamp(1rem, 1.8vw, 1.45rem);
}

.hero-copy {
  max-width: 760px;
  color: var(--rugarc-copy-strong);
}

.hero-metrics {
  margin-top: clamp(2rem, 3.4vw, 3.25rem) !important;
  max-width: 980px;
}

.hero-metrics > [class*="col-"] {
  min-width: 0;
}

.metric-card {
  min-height: 168px;
  justify-content: flex-start;
  gap: .85rem;
  overflow: hidden;
}

.metric-card strong {
  font-size: clamp(1.65rem, 2.05vw, 2.35rem);
  line-height: 1.02;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.metric-card small {
  display: block;
  color: var(--rugarc-card-copy);
  font-size: clamp(.88rem, .95vw, .98rem);
  line-height: 1.55;
  max-width: 26ch;
}

.section-title {
  font-size: clamp(2rem, 3.65vw, 4.05rem);
  line-height: 1.08;
  letter-spacing: clamp(-.05em, -0.35vw, -.028em);
  text-wrap: balance;
}

.section-copy,
.capability-shell p,
.about-section p,
.proof-section p,
.clients-section p,
.contact-section p {
  color: var(--rugarc-copy-strong);
  line-height: 1.72;
}

.service-grid,
.proof-grid {
  --bs-gutter-x: clamp(1rem, 1.8vw, 1.6rem);
  --bs-gutter-y: clamp(1rem, 1.8vw, 1.6rem);
}

.service-card,
.proof-card,
.timeline-card,
.experience-panel,
.portfolio-card-cta,
.footer-info,
.contact-chip {
  overflow: hidden;
}

.service-card,
.proof-card {
  min-height: 342px;
  padding: clamp(1.35rem, 2vw, 1.85rem);
  gap: .58rem;
}

.service-card .icon-bubble,
.proof-card i {
  flex: 0 0 auto;
  margin-bottom: .7rem;
}

.service-card h3,
.proof-card h3,
.timeline-card h3,
.experience-panel h3,
.portfolio-card-cta h3 {
  font-size: clamp(1.25rem, 1.55vw, 1.55rem);
  line-height: 1.15;
  letter-spacing: -.035em;
  text-wrap: balance;
  margin-bottom: .35rem;
}

.service-card p,
.proof-card p,
.timeline-card p,
.experience-panel p,
.portfolio-card-cta p {
  color: var(--rugarc-card-copy);
  font-size: clamp(.94rem, .98vw, 1rem);
  line-height: 1.62;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.service-card .mini-link {
  margin-top: auto;
  line-height: 1.25;
}

.capability-shell .h1 {
  font-size: clamp(1.9rem, 3vw, 3.15rem);
  line-height: 1.06;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.pill-card {
  min-height: 76px;
  align-items: center;
  line-height: 1.22;
}

.timeline {
  gap: clamp(1rem, 1.8vw, 1.45rem);
}

.timeline-card {
  min-height: 150px;
  padding: clamp(1.25rem, 1.8vw, 1.65rem);
}

.about-section .section-copy,
.about-section p:not(.section-copy) {
  max-width: 68ch;
}

.contact-chip {
  min-height: 66px;
  line-height: 1.3;
  word-break: normal;
}

.portfolio-overlay {
  left: clamp(.85rem, 1.3vw, 1.15rem);
  right: clamp(.85rem, 1.3vw, 1.15rem);
  bottom: clamp(.85rem, 1.3vw, 1.15rem);
  gap: .32rem;
}

.portfolio-overlay strong {
  font-size: clamp(1.02rem, 1.35vw, 1.22rem);
  line-height: 1.12;
  text-wrap: balance;
}

.portfolio-overlay small {
  line-height: 1.25;
}

.portfolio-card-cta {
  min-height: 100%;
}

.portfolio-card-cta h3 {
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  line-height: 1.03;
}

.experience-panel {
  justify-content: flex-start;
  gap: .85rem;
}

.experience-panel h3 {
  font-size: clamp(1.9rem, 2.8vw, 2.65rem);
  line-height: 1.02;
}

.experience-list {
  margin-top: .25rem;
}

.proof-card {
  min-height: 310px;
}

.proof-number {
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  opacity: .8;
}

.contact-hero h2 {
  font-size: clamp(2.3rem, 4.6vw, 4.85rem);
  line-height: 1.02;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.footer-info {
  min-height: 124px;
  align-content: start;
}

.physics-word {
  line-height: inherit;
}

@media (max-width: 1199.98px) {
  .service-card,
  .proof-card {
    min-height: 286px;
  }
  .metric-card {
    min-height: 152px;
  }
}

@media (max-width: 991.98px) {
  .hero-title {
    max-width: 680px;
    font-size: clamp(2.8rem, 10vw, 4.9rem);
  }
  .hero-copy {
    max-width: 680px;
  }
  .service-card,
  .proof-card,
  .timeline-card,
  .metric-card {
    min-height: auto;
  }
  .service-card,
  .proof-card {
    padding: 1.35rem;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: clamp(2.35rem, 12vw, 3.65rem);
    line-height: 1.04;
  }
  .hero-copy,
  .section-copy {
    font-size: 1rem;
    line-height: 1.68;
  }
  .metric-card {
    padding: 1.15rem;
  }
  .metric-card strong {
    font-size: 1.75rem;
  }
  .metric-card small {
    max-width: none;
  }
  .section-title {
    font-size: clamp(1.85rem, 8.6vw, 2.85rem);
    line-height: 1.1;
  }
  .service-card p,
  .proof-card p,
  .timeline-card p,
  .experience-panel p,
  .portfolio-card-cta p {
    font-size: .95rem;
    line-height: 1.58;
  }
  .portfolio-overlay {
    padding: .85rem;
  }
  .contact-hero h2 {
    font-size: clamp(2rem, 9vw, 3rem);
  }
}
