/* ============================================================
   Rodrigo Quintanilla — portfolio v2
   Vibe: Editorial Luxury (warm paper, ink, one blue accent, film grain)
   Layout: editorial split hero + asymmetric bento
   Tipografía: Cormorant Garamond (display) + Manrope (UI/body)
   ============================================================ */

:root {
    --paper: #f5f1e8;
    --paper-2: #ece6d9;
    --ink: #0f1620;
    --ink-2: #1b2431;
    --text: #1a2029;
    --text-soft: #4a5464;
    --muted: #7b8494;
    --line: rgba(15, 22, 32, 0.10);
    --line-strong: rgba(15, 22, 32, 0.18);
    --accent: #2456d6;
    --accent-ink: #163a9a;
    --accent-soft: rgba(36, 86, 214, 0.10);
    --shadow-tint: 40, 32, 16;

    --radius-xl: 2rem;
    --radius-lg: 1.5rem;
    --radius-md: 1rem;
    --maxw: 1180px;
    --ease: cubic-bezier(0.32, 0.72, 0, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 6rem; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
    font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--paper);
    background-image:
        radial-gradient(1100px 700px at 12% -10%, rgba(36, 86, 214, 0.08), transparent 60%),
        radial-gradient(900px 600px at 100% 10%, rgba(236, 200, 150, 0.22), transparent 60%);
    background-attachment: fixed;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

/* Film grain — fijo, sin eventos, muy sutil */
.grain {
    position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.045; mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.8 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

::selection { background: var(--accent); color: #fff; }

.container { width: min(var(--maxw), calc(100% - 2.5rem)); margin-inline: auto; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 200; padding: 0.6rem 1rem; background: var(--ink); color: #fff; border-radius: 999px; text-decoration: none; transition: top 0.3s var(--ease); }
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Typography ---------- */

h1, h2, h3 { font-weight: 500; line-height: 1.05; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }

h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.8rem, 5.6vw, 4.9rem);
    letter-spacing: -0.02em;
    line-height: 0.98;
}
h1 em {
    font-style: italic;
    background: linear-gradient(100deg, var(--accent) 0%, #5b3fd6 55%, var(--accent) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    animation: shimmer 9s var(--ease) infinite alternate;
}
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    letter-spacing: -0.015em;
    max-width: 22ch;
}

h3 { font-family: 'Manrope', sans-serif; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.68rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--accent-ink); margin-bottom: 1.25rem;
}
.eyebrow::before { content: ''; width: 1.5rem; height: 1px; background: currentColor; opacity: 0.6; }

.lead { font-size: clamp(1.05rem, 1.35vw, 1.2rem); line-height: 1.65; color: var(--text-soft); max-width: 60ch; margin-top: 1.75rem; text-wrap: pretty; }
.section-sub { color: var(--text-soft); max-width: 62ch; margin-top: 1rem; font-size: 1.02rem; text-wrap: pretty; }

.meta-label { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex; align-items: center; gap: 0.7rem;
    padding: 0.55rem 0.55rem 0.55rem 1.4rem;
    border-radius: 999px; border: 1px solid transparent;
    font: inherit; font-size: 0.95rem; font-weight: 600; letter-spacing: -0.005em;
    text-decoration: none; cursor: pointer;
    transition: transform 0.55s var(--ease), background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.55s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2rem; height: 2rem; border-radius: 999px;
    background: rgba(255,255,255,0.14); font-size: 0.95rem;
    transition: transform 0.55s var(--ease), background-color 0.4s var(--ease);
}
.btn:hover .btn-icon { transform: translate(2px, -1px) scale(1.06); }

.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 18px 40px -18px rgba(var(--shadow-tint), 0.55); }
.btn-primary:hover { background: var(--accent); box-shadow: 0 22px 48px -18px rgba(36, 86, 214, 0.55); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost .btn-icon { background: var(--accent-soft); color: var(--accent-ink); }
.btn-ghost:hover { border-color: var(--ink); }

.btn-sm { padding: 0.35rem 0.35rem 0.35rem 1rem; font-size: 0.85rem; background: var(--ink); color: #fff; }
.btn-sm .btn-icon { width: 1.7rem; height: 1.7rem; font-size: 0.85rem; }
.btn-sm:hover { background: var(--accent); }

.link-btn {
    margin-top: 1rem; padding: 0.5rem 0; background: none; border: 0; border-bottom: 1px solid var(--line-strong);
    font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--accent-ink); cursor: pointer;
    transition: border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.link-btn:hover { color: var(--ink); border-color: var(--ink); }
.link-btn[hidden] { display: none; }

/* ---------- Double-bezel cards (+ spotlight que sigue al cursor) ---------- */

.bezel {
    position: relative;
    background: rgba(15, 22, 32, 0.045);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: 0.5rem;
    box-shadow: 0 30px 70px -40px rgba(var(--shadow-tint), 0.45);
    --mx: 50%; --my: 50%;
}
.bezel::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(36, 86, 214, 0.14), transparent 60%);
    opacity: 0; transition: opacity 0.6s var(--ease);
}
.bezel:hover::after { opacity: 1; }
.bezel-core {
    position: relative; z-index: 1;
    height: 100%;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: calc(var(--radius-xl) - 0.5rem);
    padding: 1.75rem;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.9);
}

/* ---------- Nav (floating island) ---------- */

.nav { position: fixed; inset: 1rem 0 auto; z-index: 100; display: flex; justify-content: center; padding: 0 1rem; pointer-events: none; }
.nav-pill {
    pointer-events: auto;
    position: relative; isolation: isolate;
    display: flex; align-items: center; gap: 1.5rem;
    width: min(var(--maxw), 100%);
    padding: 0.55rem 0.6rem 0.55rem 1.25rem;
    border-radius: 999px;
    transition: width 0.6s var(--ease);
}
/* El blur va en el pseudo-elemento: un backdrop-filter en la píldora convertiría en él el containing block del menú móvil (position: fixed) */
.nav-pill::before {
    content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
    background: rgba(245, 241, 232, 0.72);
    border: 1px solid rgba(15, 22, 32, 0.08);
    -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 10px 40px -20px rgba(var(--shadow-tint), 0.25);
    transition: box-shadow 0.6s var(--ease), background-color 0.6s var(--ease);
}
.nav.is-scrolled .nav-pill { width: min(880px, 100%); }
.nav.is-scrolled .nav-pill::before { background: rgba(245, 241, 232, 0.88); box-shadow: 0 18px 50px -24px rgba(var(--shadow-tint), 0.45); }

.nav-brand { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.45rem; font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.nav-brand span { color: var(--accent); }

.nav-menu { display: flex; gap: 1.6rem; margin-inline: auto; }
.nav-menu a { position: relative; color: var(--text-soft); text-decoration: none; font-size: 0.9rem; font-weight: 500; padding: 0.3rem 0; transition: color 0.4s var(--ease); }
.nav-menu a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--accent); transition: right 0.5s var(--ease); }
.nav-menu a:hover, .nav-menu a.is-active { color: var(--ink); }
.nav-menu a:hover::after, .nav-menu a.is-active::after { right: 0; }

.nav-actions { display: flex; align-items: center; gap: 0.6rem; }

.lang {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.4rem 0.75rem; border-radius: 999px;
    background: transparent; border: 1px solid var(--line-strong);
    font: inherit; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); cursor: pointer;
    transition: border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.lang:hover { border-color: var(--ink); }
.lang .is-active { color: var(--ink); }
.lang-sep { opacity: 0.4; }

.burger { display: none; width: 2.4rem; height: 2.4rem; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 0.65rem; right: 0.65rem; height: 1.5px; background: var(--ink); transition: transform 0.5s var(--ease), top 0.5s var(--ease); }
.burger span:first-child { top: calc(50% - 4px); }
.burger span:last-child { top: calc(50% + 3px); }
.burger[aria-expanded="true"] span:first-child { top: 50%; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 50%; transform: rotate(-45deg); }

/* ---------- Hero (editorial split) ---------- */

.hero { position: relative; z-index: 2; padding: clamp(10rem, 19vh, 13.5rem) 0 clamp(4rem, 8vh, 6rem); overflow: clip; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.8fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: end; }

/* Orbes de luz: solo transform/opacity, detrás del contenido */
.orb { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(70px); opacity: 0.55; will-change: transform; }
.orb--a { width: 520px; height: 520px; right: -8%; top: 8%; background: radial-gradient(circle, rgba(36, 86, 214, 0.45), rgba(91, 63, 214, 0.15) 60%, transparent 70%); animation: drift 22s var(--ease) infinite alternate; }
.orb--b { width: 380px; height: 380px; left: -10%; bottom: -10%; background: radial-gradient(circle, rgba(236, 200, 150, 0.55), transparent 70%); animation: drift 28s var(--ease) infinite alternate-reverse; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-6%, 8%, 0) scale(1.12); } }

.focus-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.focus-chips li {
    padding: 0.4rem 0.85rem; border-radius: 999px;
    background: rgba(255,255,255,0.55); border: 1px solid var(--line-strong);
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.01em; color: var(--ink);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    animation: rise 0.9s calc(var(--i) * 80ms) var(--ease-out) both;
}
.focus-chips li:first-child { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.hero-copy { animation: rise 1.1s var(--ease-out) both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.25rem; }

.hero-card { animation: rise 1.1s 0.15s var(--ease-out) both; }
.card-top { display: flex; align-items: center; gap: 0.9rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.card-top strong { display: block; font-size: 1rem; color: var(--ink); }
.card-top span { display: block; font-size: 0.85rem; color: var(--muted); }
.avatar {
    width: 3rem; height: 3rem; border-radius: 999px; flex: none;
    display: grid; place-items: center;
    background: var(--ink); color: var(--paper);
    font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: 1.15rem;
}
.proof { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1rem; padding: 1.5rem 0 0; }
.proof li { display: flex; flex-direction: column; gap: 0.15rem; }
.proof-value { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2.4rem; line-height: 1; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.proof-label { font-size: 0.8rem; color: var(--text-soft); line-height: 1.35; }
.card-foot { margin-top: 1.5rem; padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); }

/* ---------- Marquee de stack ---------- */

.marquee { position: relative; z-index: 2; overflow: hidden; border-block: 1px solid var(--line); padding: 1rem 0; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; }
.marquee-group span { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.35rem; font-weight: 500; color: var(--text-soft); white-space: nowrap; padding: 0 1.25rem; letter-spacing: -0.005em; }
.marquee-group i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: 0.7; flex: none; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- Sections ---------- */

.section { position: relative; z-index: 2; padding: clamp(5.5rem, 11vh, 8.5rem) 0; }
.section--tight { padding: clamp(3rem, 6vh, 4.5rem) 0; }
.section-head { margin-bottom: clamp(2.5rem, 5vh, 3.75rem); }

.section--ink { position: relative; background: var(--ink); color: #dfe4ec; overflow: clip; }
.section--ink::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1.5px); background-size: 26px 26px; mask-image: radial-gradient(60% 70% at 70% 30%, #000, transparent); -webkit-mask-image: radial-gradient(60% 70% at 70% 30%, #000, transparent); }
.section--ink > .container { position: relative; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink .eyebrow { color: #9db3ff; }
.section--ink .section-sub { color: #aeb7c6; }

/* ---------- Services bento ---------- */

.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.service { display: flex; }
.service .bezel-core { display: flex; flex-direction: column; gap: 0.85rem; width: 100%; transition: transform 0.7s var(--ease); }
.service:hover .bezel-core { transform: translateY(-4px); }
/* La primera ocupa dos columnas y rompe la cuadrícula uniforme */
.service:first-child { grid-column: span 2; }
.service:first-child .bezel-core { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 0.85rem 2.5rem; }
.service:first-child .service-num { flex-basis: 100%; }
.service:first-child h3 { flex: 1 1 260px; font-size: clamp(1.9rem, 2.6vw, 2.3rem); }
.service:first-child .service-desc { flex: 1 1 260px; margin-top: 0.35rem; }
.service:first-child .service-wins { flex-basis: 100%; }
.service:first-child .service-link { flex-basis: 100%; }

.service-num { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.5rem; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1; }
.service h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.65rem; font-weight: 600; }
.service-desc { color: var(--text-soft); font-size: 0.95rem; text-wrap: pretty; }
.service-wins { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); }
.meta-list { list-style: none; display: grid; gap: 0.35rem; }
.meta-list li { position: relative; padding-left: 1.1rem; font-size: 0.9rem; color: var(--text); }
.meta-list li::before { content: ''; position: absolute; left: 0; top: 0.65em; width: 0.45rem; height: 1px; background: var(--accent); }
.meta-text { font-size: 0.9rem; color: var(--text-soft); text-wrap: pretty; }
.service-link { align-self: flex-start; font-size: 0.85rem; font-weight: 600; color: var(--accent-ink); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.4s var(--ease), color 0.4s var(--ease); }
.service-link:hover { border-color: currentColor; color: var(--ink); }

/* ---------- Approach ---------- */

.approach-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.approach-grid .section-head { margin-bottom: 0; position: sticky; top: 6.5rem; }

.guarantees { margin-top: 2.5rem; padding: 1.5rem; border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-lg); background: rgba(255,255,255,0.04); }
.guarantees h3 { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: #9db3ff; margin-bottom: 0.9rem; }
.guarantees ul { list-style: none; display: grid; gap: 0.6rem; }
.guarantees li { position: relative; padding-left: 1.5rem; font-size: 0.92rem; color: #dfe4ec; }
.guarantees li::before { content: '✓'; position: absolute; left: 0; top: 0; color: #9db3ff; font-weight: 700; }

.steps { list-style: none; display: grid; gap: 0; counter-reset: step; }
.step { display: grid; grid-template-columns: 4rem 1fr; gap: 1.25rem; padding: 2rem 0; border-top: 1px solid rgba(255,255,255,0.12); }
.step:last-child { border-bottom: 1px solid rgba(255,255,255,0.12); }
.step-num { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2.6rem; line-height: 1; color: #9db3ff; font-variant-numeric: tabular-nums; }
.step h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.step p { color: #aeb7c6; font-size: 0.97rem; text-wrap: pretty; }

/* ---------- Sectors ---------- */

.sectors { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 2rem; align-items: center; padding: 2rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sector-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.sector-list li { padding: 0.5rem 0.95rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.88rem; font-weight: 500; color: var(--text); background: rgba(255,255,255,0.4); }

/* ---------- Credentials ---------- */

.cred-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 1rem; align-items: start; }
.cert-list { list-style: none; display: grid; gap: 0.75rem; }
.cert { display: flex; align-items: center; gap: 0.9rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.cert:last-of-type { border-bottom: 0; }
.cert img { width: 48px; height: 48px; object-fit: contain; flex: none; }
.cert strong { display: block; font-size: 0.98rem; color: var(--ink); }
.cert small { display: block; font-size: 0.8rem; color: var(--muted); }
.cert.is-hidden { display: none; }

.app-list { list-style: none; display: grid; gap: 1.1rem; }
.app { display: flex; gap: 0.9rem; align-items: flex-start; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.app:last-child { border-bottom: 0; padding-bottom: 0; }
.app img { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.app-head { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.app-head strong { color: var(--ink); }
.app-head span { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.04em; }
.app p { font-size: 0.9rem; color: var(--text-soft); margin: 0.2rem 0 0.4rem; text-wrap: pretty; }
.app a { font-size: 0.85rem; font-weight: 600; color: var(--accent-ink); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.4s var(--ease); }
.app a:hover { border-color: currentColor; }

/* ---------- Contact ---------- */

.section--contact { padding-top: 0; }
.contact .bezel-core { padding: clamp(2.5rem, 6vw, 4.5rem); text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact h2 { max-width: 18ch; }
.contact .section-sub { margin-inline: auto; }
.contact .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */

.footer { position: relative; z-index: 2; padding: 2rem 0 2.5rem; font-size: 0.82rem; color: var(--muted); text-align: center; }

/* ---------- Motion ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(28px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

[data-reveal] { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out); transition-delay: var(--delay, 0ms); }
[data-reveal].is-visible { opacity: 1; transform: none; filter: none; }
html.no-motion [data-reveal], html.no-motion .hero-copy, html.no-motion .hero-card, html.no-motion .focus-chips li { opacity: 1; transform: none; filter: none; animation: none; transition: none; }
html.no-motion .orb, html.no-motion .marquee-track, html.no-motion h1 em { animation: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .approach-grid { grid-template-columns: 1fr; }
    .approach-grid .section-head { position: static; margin-bottom: 2rem; }
}

@media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; align-items: start; }
    .hero-card { max-width: 480px; }
    .cred-grid { grid-template-columns: 1fr; }
    .sectors { grid-template-columns: 1fr; }
    .nav-menu {
        position: fixed; inset: 0; z-index: -2;
        display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1.5rem;
        background: rgba(245, 241, 232, 0.94);
        -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
        opacity: 0; pointer-events: none; transition: opacity 0.5s var(--ease);
    }
    .nav-menu a { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2.2rem; color: var(--ink); opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
    .nav-menu.is-open { opacity: 1; pointer-events: auto; }
    .nav-menu.is-open a { opacity: 1; transform: none; }
    .nav-menu.is-open a:nth-child(1) { transition-delay: 0.08s; }
    .nav-menu.is-open a:nth-child(2) { transition-delay: 0.14s; }
    .nav-menu.is-open a:nth-child(3) { transition-delay: 0.20s; }
    .nav-menu.is-open a:nth-child(4) { transition-delay: 0.26s; }
    .nav-menu a::after { display: none; }
    .burger { display: inline-block; }
    .nav-pill { gap: 0.75rem; }
    .btn-sm { display: none; }
}

@media (max-width: 640px) {
    .container { width: calc(100% - 2rem); }
    .orb--a { width: 320px; height: 320px; right: -30%; }
    .orb--b { display: none; }
    .marquee-group span { font-size: 1.1rem; padding: 0 0.9rem; }
    .services-grid { grid-template-columns: 1fr; }
    .service:first-child { grid-column: span 1; }
    .service:first-child .bezel-core { flex-direction: column; flex-wrap: nowrap; }
    .service:first-child .bezel-core > * { flex: 0 1 auto; min-width: 0; }
    .bezel { border-radius: var(--radius-lg); padding: 0.4rem; }
    .bezel-core { border-radius: calc(var(--radius-lg) - 0.4rem); padding: 1.35rem; }
    .proof { grid-template-columns: 1fr 1fr; }
    .step { grid-template-columns: 3rem 1fr; gap: 0.9rem; padding: 1.5rem 0; }
    .step-num { font-size: 2rem; }
    .hero { padding-top: 7rem; }
    .hero-actions .btn { width: 100%; justify-content: space-between; }
}
