/* ==========================================================================
   CIN Instalaciones design system
   Fonts: Bricolage Grotesque (display), Manrope (body), JetBrains Mono (labels)
   Sections: 1 tokens · 2 base · 3 type · 4 buttons · 5 header · 6 drawer ·
             7 hero · 8 sections · 9 cards · 10 pages · 11 footer · 12 motion
   ========================================================================== */

/* latin-ext */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/BricolageGrotesque-latin-ext-400-800.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/BricolageGrotesque-latin-400-800.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/JetBrainsMono-latin-ext-400.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/JetBrainsMono-latin-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/JetBrainsMono-latin-ext-500.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/JetBrainsMono-latin-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/Manrope-latin-ext-400-700.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/Manrope-latin-400-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 1. tokens ------------------------------------------------------------- */
:root {
    --ink: #232327;
    --ink-2: #2c2c31;
    --ink-3: #3a3a41;
    --paper: #f4f4f5;
    --white: #ffffff;
    --muted: #5d5d66;
    --muted-light: #b6b6c0;
    --line: rgba(35, 35, 39, .1);
    --line-light: rgba(255, 255, 255, .14);
    --red: #ED1C24;
    --red-deep: #c4141b;
    --red-bright: #ff5157;
    --red-btn: #dc1820;
    --wa: #128c4a;

    --font-display: 'Bricolage Grotesque', 'Manrope', system-ui, sans-serif;
    --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

    --r-sm: 12px;
    --r-md: 18px;
    --r-lg: 28px;
    --shadow-sm: 0 1px 2px rgba(35, 35, 39, .06), 0 4px 14px rgba(35, 35, 39, .05);
    --shadow-md: 0 10px 30px rgba(35, 35, 39, .1);
    --shadow-lg: 0 30px 70px rgba(35, 35, 39, .22);
    --ease: cubic-bezier(.22, 1, .36, 1);
    --header-h: 76px;
    --container: 1240px;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

/* 2. base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
:focus-visible { outline: 3px solid var(--red-bright); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--red); color: #fff; }

.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 200; background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: var(--r-sm); transition: top .2s; }
.skip:focus { top: 1rem; }

.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ic--fill { fill: currentColor; stroke: none; }

/* 3. type --------------------------------------------------------------- */
.display, .hero-title, .h2, .h3 { font-family: var(--font-display); letter-spacing: -.025em; line-height: 1.04; font-weight: 700; text-wrap: balance; }
.display { font-size: clamp(2.5rem, 1.2rem + 5vw, 5rem); }
.h2 { font-size: clamp(2rem, 1.1rem + 3.2vw, 3.5rem); }
.h3 { font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem); line-height: 1.15; letter-spacing: -.02em; }
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.6; color: var(--muted); max-width: 62ch; text-wrap: pretty; }
.lead--light { color: var(--muted-light); }

.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-mono); font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.eyebrow::before { content: ''; width: 1.6rem; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: var(--red-bright); }
.eyebrow .dot { width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: pulse 2.2s infinite; }
.eyebrow:has(.dot)::before, .eyebrow:has(.svc-ic)::before { display: none; }

.pill { display: inline-block; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; padding: .32rem .7rem; border-radius: 999px; background: rgba(237, 28, 36, .1); color: var(--red-deep); }
.pill--light { background: rgba(255, 255, 255, .14); color: #fff; backdrop-filter: blur(6px); }

.link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--red-bright); }
.link-arrow .ic { transition: transform .35s var(--ease); }
.link-arrow:hover .ic { transform: translateX(5px); }

/* 4. buttons ------------------------------------------------------------ */
.btn { --b-bg: var(--ink); --b-fg: #fff; --b-bd: transparent; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: .85rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: .98rem; line-height: 1.2; color: var(--b-fg); background: var(--b-bg); border: 1.5px solid var(--b-bd); transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s, color .25s, border-color .25s; will-change: transform; }
.btn .ic { transition: transform .35s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:hover .ic:last-child { transform: translateX(4px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--sm { padding: .6rem 1.1rem; font-size: .88rem; }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--primary { --b-bg: var(--red-btn); }
.btn--primary:hover { --b-bg: var(--red-deep); box-shadow: 0 12px 30px rgba(237, 28, 36, .4); }
.btn--dark { --b-bg: var(--ink); }
.btn--dark:hover { --b-bg: var(--ink-3); }
.btn--light { --b-bg: #fff; --b-fg: var(--ink); }
.btn--outline-light { --b-bg: transparent; --b-bd: rgba(255, 255, 255, .45); }
.btn--outline-light:hover { --b-bg: rgba(255, 255, 255, .12); --b-bd: #fff; }
.btn--ghost { --b-bg: rgba(255, 255, 255, .1); --b-bd: rgba(255, 255, 255, .28); backdrop-filter: blur(8px); }
.btn--ghost:hover { --b-bg: rgba(255, 255, 255, .2); }
.btn--ghost-dark { --b-bg: transparent; --b-fg: var(--ink); --b-bd: var(--line); }
.btn--ghost-dark:hover { --b-bd: var(--ink); }
.btn--wa { --b-bg: var(--wa); }
.btn--wa:hover { --b-bg: #0d7640; }
.center-cta { margin-top: clamp(2rem, 4vw, 3.5rem); text-align: center; }

/* 5. header + mega menus ------------------------------------------------ */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); color: #fff; transition: background-color .35s, box-shadow .35s, color .35s, backdrop-filter .35s; view-transition-name: site-header; }
.site-header.is-scrolled { background: rgba(255, 255, 255, .88); color: var(--ink); backdrop-filter: saturate(1.4) blur(16px); box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(35, 35, 39, .06); }
.header-in { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: block; flex: none; position: relative; }
.brand-img { width: 172px; height: auto; transition: opacity .3s; }
.brand-img--dark { position: absolute; inset: 0; opacity: 0; }
.site-header.is-scrolled .brand-img--light { opacity: 0; }
.site-header.is-scrolled .brand-img--dark { opacity: 1; }

.nav { margin-inline: auto; }
.nav-list { display: flex; align-items: center; gap: .25rem; }
.nav-item { display: flex; align-items: center; }
.nav-link { position: relative; padding: .6rem .35rem .6rem .8rem; font-weight: 600; font-size: .95rem; border-radius: 999px; transition: color .2s; }
.nav-item:not(.has-mega) .nav-link { padding-right: .8rem; }
.nav-link::after { content: ''; position: absolute; left: .8rem; right: .8rem; bottom: .3rem; height: 2px; background: var(--red-bright); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav-item:not(.has-mega) .nav-link::after { right: .8rem; }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-chev { width: 1.9rem; height: 1.9rem; display: grid; place-items: center; border-radius: 50%; margin-right: .2rem; transition: background-color .2s; }
.nav-chev:hover { background: rgba(127, 127, 127, .18); }
.nav-chev .ic { width: 1rem; height: 1rem; transition: transform .35s var(--ease); }
.nav-item.is-open .nav-chev .ic { transform: rotate(180deg); }

.mega { position: absolute; left: 0; right: 0; top: calc(100% - 6px); padding-top: 14px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s var(--ease), transform .4s var(--ease), visibility 0s .3s; color: var(--ink); }
.nav-item.is-open > .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega-inner { display: grid; grid-template-columns: 320px 1fr; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); overflow: hidden; }
.mega-aside { padding: 2rem; background: var(--ink); color: #fff; display: flex; flex-direction: column; gap: 1rem; position: relative; overflow: hidden; }
.mega-aside::after { content: ''; position: absolute; width: 260px; height: 260px; right: -90px; bottom: -110px; background: radial-gradient(circle, rgba(237, 28, 36, .4), transparent 65%); pointer-events: none; }
.mega-lead { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.15; letter-spacing: -.02em; font-weight: 600; }
.mega-help { margin-top: auto; display: flex; gap: .85rem; align-items: center; padding: 1rem; border-radius: var(--r-md); background: rgba(255, 255, 255, .08); border: 1px solid var(--line-light); position: relative; z-index: 1; }
.mega-help strong { display: block; font-size: .95rem; line-height: 1.25; }
.mega-help small { display: block; color: var(--muted-light); font-size: .82rem; margin: .15rem 0 .35rem; }
.mega-help-ic { width: 2.6rem; height: 2.6rem; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--red); }
.mega-phone { font-family: var(--font-mono); font-size: .9rem; font-weight: 500; color: var(--red-bright); }
.mega-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .35rem; padding: 1.1rem; align-content: start; }
.mega-grid--1 { grid-template-columns: 1fr; }
.mega-item { display: flex; gap: .95rem; align-items: center; padding: .95rem; border-radius: var(--r-md); transition: background-color .25s, transform .35s var(--ease); }
.mega-item:hover { background: var(--paper); transform: translateX(4px); }
.mega-ic { width: 2.9rem; height: 2.9rem; flex: none; display: grid; place-items: center; border-radius: 14px; background: rgba(237, 28, 36, .1); color: var(--red); transition: background-color .3s, color .3s, transform .4s var(--ease); }
.mega-ic .ic { width: 1.35rem; height: 1.35rem; }
.mega-item:hover .mega-ic { background: var(--red); color: #fff; transform: rotate(-6deg) scale(1.06); }
.mega-tx strong { display: block; font-weight: 700; line-height: 1.25; }
.mega-tx small { display: block; color: var(--muted); font-size: .86rem; line-height: 1.4; margin-top: .15rem; }
.nav-item.has-mega:has(.mega--sm) { position: relative; }
.mega--sm { right: auto; left: -1rem; width: 380px; }
.mega-inner--sm { display: block; width: 100%; max-width: none; margin: 0; }

.header-actions { display: flex; align-items: center; gap: .6rem; }
.lang-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .8rem; border-radius: 999px; font-family: var(--font-mono); font-size: .8rem; font-weight: 500; border: 1.5px solid currentColor; opacity: .85; transition: opacity .2s, background-color .2s, color .2s; }
.lang-btn:hover { opacity: 1; background: var(--red); border-color: var(--red); color: #fff; }
.flags { display: inline-grid; }
.flag { grid-area: 1 / 1; width: 1.4rem; height: .95rem; border-radius: 3px; box-shadow: 0 0 0 1px rgba(127, 127, 127, .45); }
html[lang="es"] .flag--es, html:not([lang="en"]) .flag--es { display: none; }
html[lang="en"] .flag--gb { display: none; }
.lang-btn { padding: .45rem .8rem .45rem .6rem; }
.header-phone { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .92rem; padding: .5rem .6rem; }
.header-phone .ic { color: var(--red-bright); }
.burger { display: none; width: 2.8rem; height: 2.8rem; border-radius: 50%; border: 1.5px solid currentColor; place-items: center; align-content: center; gap: 5px; }
.burger span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 6. drawer ------------------------------------------------------------- */
.drawer-scrim { position: fixed; inset: 0; z-index: 140; background: rgba(24, 24, 27, .6); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.drawer-scrim.is-open { opacity: 1; visibility: visible; }
.drawer { position: fixed; z-index: 150; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); background: var(--ink); color: #fff; display: flex; flex-direction: column; transform: translateX(102%); visibility: hidden; transition: transform .5s var(--ease), visibility 0s .5s; overflow-y: auto; }
.drawer.is-open { transform: none; visibility: visible; transition-delay: 0s; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line-light); }
.drawer-close { width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line-light); transition: background-color .2s, transform .35s var(--ease); }
.drawer-close:hover { background: var(--red); transform: rotate(90deg); }
.drawer-nav { padding: 1rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.drawer-nav > a, .drawer-acc-btn { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 1rem 0; font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; letter-spacing: -.02em; border-bottom: 1px solid var(--line-light); text-align: left; }
.drawer-acc-btn .ic { transition: transform .35s var(--ease); }
.drawer-acc.is-open .drawer-acc-btn .ic { transform: rotate(180deg); }
.drawer-acc-panel { display: block; overflow: hidden; max-height: 0; transition: max-height .5s var(--ease); }
.drawer-acc.is-open .drawer-acc-panel { max-height: 520px; }
.drawer-acc-panel a { display: flex; align-items: center; gap: .8rem; padding: .8rem .2rem; color: var(--muted-light); font-weight: 600; transition: color .2s, padding-left .3s var(--ease); }
.drawer-acc-panel a:hover { color: #fff; padding-left: .6rem; }
.drawer-acc-panel .ic { color: var(--red-bright); }
.drawer-foot { padding: 1.4rem; display: grid; gap: .7rem; border-top: 1px solid var(--line-light); }
.drawer-foot .btn--ghost-dark { --b-fg: #fff; --b-bd: var(--line-light); }
.lang-btn--drawer { justify-self: start; color: #fff; }

/* 7. hero --------------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 3rem) 0 7rem; color: #fff; background: var(--ink); overflow: hidden; isolation: isolate; }
.hero-media, .hero-slide { position: absolute; inset: 0; }
.hero-media { z-index: -1; }
.hero-slide { opacity: 0; transition: opacity 1.4s ease; transform: translate3d(0, var(--py, 0px), 0); }
.hero-slide.is-active { opacity: 1; }
.hero-img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.hero-slide.is-active .hero-img { animation: kenburns calc(var(--slide-ms, 6500ms) + 1600ms) linear forwards; }
.hero.is-paused .hero-slide.is-active .hero-img { animation-play-state: paused; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(95deg, rgba(24, 24, 27, .9) 0%, rgba(24, 24, 27, .66) 45%, rgba(24, 24, 27, .18) 100%), linear-gradient(0deg, rgba(24, 24, 27, .8), transparent 40%); }
.grid-lines { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 25% 45%, #000, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 25% 45%, #000, transparent 75%); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; align-items: end; }
.hero-copy { max-width: 780px; }
.hero-title { font-size: clamp(2.3rem, 1rem + 4.4vw, 4.5rem); margin: 1.2rem 0 1.4rem; line-height: .98; }
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.hero-title .w > span { display: inline-block; animation: wordUp 1s var(--ease) calc(.25s + var(--i, 0) * 75ms) backwards; }
.hero-lead { font-size: clamp(1.05rem, 1rem + .5vw, 1.3rem); color: rgba(255, 255, 255, .8); max-width: 56ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 2.2rem; color: rgba(255, 255, 255, .85); font-weight: 600; font-size: .92rem; }
.chips li { display: inline-flex; align-items: center; gap: .5rem; }
.chips .ic { color: var(--red-bright); }
.hero-card { padding: 1.4rem; border-radius: var(--r-lg); background: rgba(255, 255, 255, .09); border: 1px solid var(--line-light); backdrop-filter: blur(18px) saturate(1.3); }
.hero-count { font-family: var(--font-display); font-weight: 700; font-size: 3rem; line-height: 1; letter-spacing: -.04em; }
.hero-total { font-size: 1rem; color: var(--muted-light); margin-left: .4rem; font-family: var(--font-mono); font-weight: 400; }
.hero-caps { position: relative; min-height: 5.6rem; margin: 1rem 0; }
.hero-cap { position: absolute; inset: 0; opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .6s var(--ease); pointer-events: none; }
.hero-cap.is-active { opacity: 1; transform: none; pointer-events: auto; transition-delay: .35s; }
.hero-cap p { margin-top: .6rem; font-weight: 600; line-height: 1.35; }
.hero-bars { display: flex; gap: .4rem; }
.hero-bar { flex: 1; height: 24px; display: flex; align-items: center; }
.hero-bar span { display: block; width: 100%; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .25); position: relative; overflow: hidden; }
.hero-bar span::after { content: ''; position: absolute; inset: 0; background: var(--red-bright); transform: scaleX(0); transform-origin: left; }
.hero-bar.is-active span::after { animation: fill var(--slide-ms, 6500ms) linear forwards; }
.hero.is-paused .hero-bar.is-active span::after { animation-play-state: paused; }
.scroll-cue { position: absolute; left: 50%; bottom: 1.6rem; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: .3rem; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.scroll-cue .ic { animation: bob 2s ease-in-out infinite; }
[data-intro] { animation: introUp 1s var(--ease) calc(var(--n, 1) * 110ms + 250ms) backwards; }
[data-intro="1"] { --n: 1; } [data-intro="2"] { --n: 2; } [data-intro="3"] { --n: 4; } [data-intro="4"] { --n: 5; } [data-intro="5"] { --n: 6; } [data-intro="6"] { --n: 7; }

.marquee { background: var(--ink); color: #fff; overflow: hidden; border-block: 1px solid var(--line-light); padding: 1.15rem 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.tick { display: inline-flex; align-items: center; gap: .8rem; padding-inline: 2.2rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; color: rgba(255, 255, 255, .85); }
.tick .ic { color: var(--red-bright); width: 1.3rem; height: 1.3rem; }

.stats { background: var(--paper); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(1.8rem, 4vw, 3rem) 1.2rem; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 1.2rem + 4vw, 4.6rem); line-height: 1; letter-spacing: -.04em; }
.stat-suf { color: var(--red); }
.stat-label { margin-top: .5rem; font-family: var(--font-mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }

/* 8. sections ----------------------------------------------------------- */
.section { position: relative; padding: clamp(4.5rem, 8vw, 8rem) 0; overflow: hidden; }
.section--white { background: var(--white); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--ink); color: #fff; }
.section--dark .lead { color: var(--muted-light); }
.section-head { max-width: 760px; margin-bottom: clamp(2.2rem, 5vw, 4rem); display: grid; gap: 1rem; }
.section-head.is-center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head.is-light { color: #fff; }
.section > .grid-lines { -webkit-mask-image: radial-gradient(ellipse 60% 70% at 80% 20%, #000, transparent 70%); mask-image: radial-gradient(ellipse 60% 70% at 80% 20%, #000, transparent 70%); }
.section > .container { position: relative; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.split--rev .split-copy { order: 0; }
.split-copy { display: grid; gap: 1.2rem; justify-items: start; }
.split-copy .btn { margin-top: .8rem; }
.split-media { position: relative; padding: 0 3rem 3rem 0; }
.media-main { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.media-sub { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-md); border: 6px solid var(--paper); box-shadow: var(--shadow-md); }
.media-badge { position: absolute; left: -1rem; top: 2rem; display: flex; align-items: center; gap: .8rem; padding: .9rem 1.2rem; border-radius: var(--r-md); background: var(--red); color: #fff; box-shadow: var(--shadow-md); animation: float 5s ease-in-out infinite; }
.media-badge .ic { width: 1.8rem; height: 1.8rem; }
.media-badge strong { display: block; font-family: var(--font-display); font-size: 1.05rem; line-height: 1.15; }
.media-badge small { display: block; opacity: .85; font-size: .8rem; }
.media-badge--dark { background: var(--ink); border: 1px solid var(--line-light); left: auto; right: -.5rem; top: auto; bottom: 1.4rem; }
.media-badge--dark small { color: var(--muted-light); text-transform: uppercase; letter-spacing: .08em; font-family: var(--font-mono); font-size: .65rem; }

.checks { display: grid; gap: .75rem; }
.checks li { display: flex; gap: .75rem; align-items: flex-start; font-weight: 600; }
.checks .ic { color: var(--red); margin-top: .15em; width: 1.3rem; height: 1.3rem; }
.checks--cols { grid-template-columns: repeat(2, 1fr); gap: 1rem 2rem; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; counter-reset: step; position: relative; }
.step { position: relative; padding-top: 3.6rem; }
.step::before { content: ''; position: absolute; top: 1.3rem; left: 3.4rem; right: -1.6rem; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px); }
.step:last-child::before { display: none; }
.step-num { position: absolute; top: 0; left: 0; width: 2.7rem; height: 2.7rem; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-family: var(--font-mono); font-size: .85rem; font-weight: 500; transition: background-color .3s, transform .4s var(--ease); }
.step:hover .step-num { background: var(--red); transform: scale(1.1); }
.step h3 { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: -.02em; margin-bottom: .5rem; }
.step p { color: var(--muted); font-size: .98rem; }

/* 9. cards -------------------------------------------------------------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.svc-card { --mx: 50%; --my: 50%; position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 440px; padding: 1.6rem; border-radius: var(--r-lg); background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.svc-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.svc-card-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .38; filter: grayscale(.5); transition: opacity .6s, transform 1.2s var(--ease), filter .6s; }
.svc-card:hover .svc-card-img { opacity: .62; transform: scale(1.08); filter: grayscale(0); }
.svc-card-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(35, 35, 39, .15), rgba(35, 35, 39, .92) 70%), radial-gradient(360px circle at var(--mx) var(--my), rgba(237, 28, 36, .28), transparent 60%); }
.svc-card-top { display: flex; justify-content: space-between; align-items: center; }
.svc-ic { width: 3.4rem; height: 3.4rem; display: grid; place-items: center; border-radius: 16px; background: var(--red); color: #fff; transition: transform .5s var(--ease); }
.svc-ic .ic { width: 1.6rem; height: 1.6rem; }
.svc-ic--sm { width: 1.9rem; height: 1.9rem; border-radius: 9px; }
.svc-ic--sm .ic { width: 1.05rem; height: 1.05rem; }
.svc-card:hover .svc-ic { transform: rotate(-8deg) scale(1.1); }
.svc-num { font-family: var(--font-mono); font-size: .8rem; color: rgba(255, 255, 255, .55); letter-spacing: .1em; }
.svc-card-body h3 { font-family: var(--font-display); font-size: 1.75rem; letter-spacing: -.025em; line-height: 1.1; margin-bottom: .6rem; }
.svc-card-body p { color: rgba(255, 255, 255, .78); font-size: .98rem; line-height: 1.55; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 1.2rem; }
.tags li { font-size: .75rem; font-weight: 600; padding: .3rem .65rem; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid var(--line-light); }
.svc-more { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--red-bright); }
.svc-more .ic { transition: transform .4s var(--ease); }
.svc-card:hover .svc-more .ic { transform: translateX(6px); }

.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.why-card, .val-card, .feat, .side-card, .quick-card { --mx: 50%; --my: 50%; position: relative; overflow: hidden; border-radius: var(--r-lg); transition: transform .5s var(--ease), border-color .3s, box-shadow .5s var(--ease); }
.why-card { padding: 1.8rem; background: var(--ink-2); border: 1px solid var(--line-light); }
.why-card::before, .val-card::before, .feat::before { content: ''; position: absolute; inset: 0; background: radial-gradient(320px circle at var(--mx) var(--my), rgba(237, 28, 36, .14), transparent 60%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.why-card:hover, .val-card:hover, .feat:hover { transform: translateY(-5px); }
.why-card:hover::before, .val-card:hover::before, .feat:hover::before { opacity: 1; }
.why-card:hover { border-color: rgba(237, 28, 36, .5); }
.why-ic, .val-ic, .feat-ic, .info-ic { width: 3.1rem; height: 3.1rem; flex: none; display: grid; place-items: center; border-radius: 14px; background: rgba(237, 28, 36, .12); color: var(--red-bright); margin-bottom: 1.2rem; transition: background-color .3s, color .3s, transform .5s var(--ease); }
.why-ic .ic, .val-ic .ic, .feat-ic .ic, .info-ic .ic { width: 1.5rem; height: 1.5rem; }
.why-card:hover .why-ic, .val-card:hover .val-ic, .feat:hover .feat-ic { background: var(--red); color: #fff; transform: rotate(-6deg) scale(1.08); }
.why-card h3, .val-card h3, .feat h3 { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.2; margin-bottom: .5rem; }
.why-card p { color: var(--muted-light); font-size: .96rem; }

.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem 1.25rem; }
.proj { transition: opacity .3s, transform .45s var(--ease); }
.proj.is-out { opacity: 0; transform: scale(.94); }
.proj-btn { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--ink); cursor: zoom-in; }
.proj-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.proj-btn:hover img { transform: scale(1.07); }
.proj-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(35, 35, 39, .5), transparent 50%); opacity: 0; transition: opacity .4s; }
.proj-btn:hover .proj-shade { opacity: 1; }
.proj-zoom { position: absolute; right: 1rem; top: 1rem; width: 2.8rem; height: 2.8rem; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--ink); transform: scale(.6) rotate(-45deg); opacity: 0; transition: opacity .35s, transform .5s var(--ease); }
.proj-btn:hover .proj-zoom, .proj-btn:focus-visible .proj-zoom { opacity: 1; transform: none; }
.proj figcaption { padding: 1rem .2rem 0; display: grid; gap: .45rem; justify-items: start; }
.proj figcaption h3 { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -.02em; line-height: 1.15; }
.proj figcaption p { color: var(--muted); font-size: .96rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.4rem; }
.filter { padding: .6rem 1.2rem; border-radius: 999px; font-weight: 700; font-size: .92rem; border: 1.5px solid var(--line); transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--ease); }
.filter:hover { border-color: var(--ink); transform: translateY(-2px); }
.filter.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(94vw, 1200px); width: 100%; color: #fff; overflow: visible; }
.lightbox::backdrop { background: rgba(24, 24, 27, .88); backdrop-filter: blur(6px); }
.lightbox[open] { animation: zoomIn .45s var(--ease); }
.lightbox figure { display: grid; gap: .9rem; }
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: var(--r-md); }
.lightbox figcaption { text-align: center; color: var(--muted-light); }
.lightbox-close { position: absolute; right: 0; top: -3.4rem; width: 2.8rem; height: 2.8rem; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .14); transition: background-color .2s, transform .35s var(--ease); }
.lightbox-close:hover { background: var(--red); transform: rotate(90deg); }

.val-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.val-card { padding: 2rem; background: var(--paper); border: 1px solid transparent; }
.val-card:hover { border-color: var(--line); box-shadow: var(--shadow-md); background: #fff; }
.val-card p { color: var(--muted); }
.val-ic { background: rgba(237, 28, 36, .1); color: var(--red); }
.val-card--lg { padding: 2.4rem; }

.faq-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq-side { display: grid; gap: 1.2rem; justify-items: start; position: sticky; top: 110px; }
.faq-list { display: grid; gap: .8rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); transition: border-color .3s, box-shadow .4s; }
.faq-item.is-open { border-color: rgba(237, 28, 36, .45); box-shadow: var(--shadow-sm); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; text-align: left; padding: 1.25rem 1.5rem; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.faq-ic { width: 1.5rem; height: 1.5rem; padding: .25rem; border-radius: 50%; background: var(--paper); transition: transform .45s var(--ease), background-color .3s, color .3s; }
.faq-item.is-open .faq-ic { transform: rotate(135deg); background: var(--red); color: #fff; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 1.5rem 1.4rem; color: var(--muted); }

.cta-section { padding-block: clamp(3rem, 6vw, 6rem); background: var(--white); }
.cta-band { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding: clamp(2.2rem, 5vw, 4.5rem); border-radius: var(--r-lg); background: var(--ink); color: #fff; isolation: isolate; }
.cta-band::before { content: ''; position: absolute; z-index: -1; width: 520px; height: 520px; right: -120px; top: -200px; background: radial-gradient(circle, rgba(237, 28, 36, .55), transparent 65%); }
.cta-copy { display: grid; gap: .9rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

/* 10. pages ------------------------------------------------------------- */
.page-hero { position: relative; background: var(--ink); color: #fff; padding: calc(var(--header-h) + clamp(3rem, 6vw, 5.5rem)) 0 clamp(3.5rem, 7vw, 6rem); overflow: hidden; isolation: isolate; }
.page-hero-bg { position: absolute; inset: 0; z-index: -1; }
.page-hero-bg .grid-lines { -webkit-mask-image: radial-gradient(ellipse 60% 90% at 20% 30%, #000, transparent 75%); mask-image: radial-gradient(ellipse 60% 90% at 20% 30%, #000, transparent 75%); }
.glow { position: absolute; width: 620px; height: 620px; right: -160px; top: -220px; background: radial-gradient(circle, rgba(237, 28, 36, .42), transparent 62%); animation: float 9s ease-in-out infinite; }
.page-hero-in { display: grid; gap: 3rem; }
.page-hero--service .page-hero-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; }
.page-hero-copy { display: grid; gap: 1.2rem; justify-items: start; max-width: 820px; }
.page-hero--service .page-hero-copy { max-width: none; }
.page-hero-copy .display { font-size: clamp(2.3rem, 1rem + 4.4vw, 4.4rem); }
.page-hero-media { position: relative; }
.page-hero-media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line-light); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem; font-size: .88rem; color: var(--muted-light); }
.crumbs li { display: inline-flex; align-items: center; gap: .2rem; }
.crumbs a { transition: color .2s; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: #fff; font-weight: 600; }
.crumb-sep { width: 1rem; height: 1rem; opacity: .6; }
.page-hero--center .page-hero-in { justify-items: center; text-align: center; }
.page-hero--center .page-hero-copy { justify-items: center; }
.nf-code { font-family: var(--font-display); font-weight: 800; font-size: clamp(6rem, 22vw, 14rem); line-height: .85; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 2px var(--red-bright); }

.quote-card { position: relative; padding: clamp(2rem, 4vw, 3.2rem); border-radius: var(--r-lg); background: var(--ink); color: #fff; font-family: var(--font-display); font-size: clamp(1.4rem, 1rem + 1.4vw, 2.1rem); line-height: 1.25; letter-spacing: -.02em; font-weight: 600; overflow: hidden; }
.quote-ic { width: 3rem; height: 3rem; color: var(--red-bright); margin-bottom: 1rem; }
.quote-card footer { margin-top: 1.4rem; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-light); font-weight: 400; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; }
.timeline::before { content: ''; position: absolute; top: 1.6rem; left: 1.6rem; right: 1.6rem; height: 2px; background: var(--line); }
.tl-item { position: relative; padding-top: 4rem; }
.tl-dot { position: absolute; top: 0; left: 0; width: 3.2rem; height: 3.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; box-shadow: 0 0 0 6px var(--paper); transition: background-color .3s, transform .4s var(--ease); }
.tl-item:hover .tl-dot { background: var(--red); transform: scale(1.1); }
.tl-item h3 { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: -.02em; margin-bottom: .4rem; }
.tl-item p { color: var(--muted); font-size: .97rem; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.mv-card { padding: clamp(2rem, 4vw, 3rem); border-radius: var(--r-lg); background: var(--ink-2); border: 1px solid var(--line-light); display: grid; gap: 1rem; align-content: start; }
.mv-title { font-size: clamp(1.5rem, 1rem + 1.4vw, 2.2rem); }
.mv-card p:last-child { color: var(--muted-light); }

.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.svc-main { display: grid; gap: 2rem; }
.block-title { margin-top: 1.2rem; }
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.feat { display: flex; gap: 1.1rem; padding: 1.5rem; background: var(--paper); border: 1px solid transparent; }
.feat:hover { background: #fff; border-color: var(--line); box-shadow: var(--shadow-md); }
.feat-ic { margin: 0; background: rgba(237, 28, 36, .1); color: var(--red); }
.feat p { color: var(--muted); font-size: .96rem; }
.svc-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 1rem; }
.side-card { padding: 1.7rem; background: var(--paper); border: 1px solid var(--line); }
.side-card--quote { background: var(--ink); color: #fff; border-color: transparent; display: grid; gap: .8rem; }
.side-card--quote p { color: var(--muted-light); font-size: .96rem; margin-bottom: .3rem; }
.side-hours { display: flex; align-items: center; gap: .55rem; justify-content: center; margin-top: .3rem; color: var(--muted-light); font-size: .88rem; }
.side-h { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; font-weight: 500; }
.side-card--list li a { display: flex; align-items: center; gap: .8rem; padding: .7rem .4rem; border-radius: var(--r-sm); font-weight: 600; transition: background-color .25s, padding-left .35s var(--ease), color .25s; }
.side-card--list li a .ic:first-child { color: var(--red); }
.side-card--list li a:hover, .side-card--list li a[aria-current] { background: #fff; padding-left: .9rem; }
.side-card--list li a[aria-current] { color: var(--red-deep); }
.side-arrow { margin-left: auto; width: 1rem; height: 1rem; opacity: .5; }

.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact-info { display: grid; gap: 1.4rem; }
.info-list { display: grid; gap: .3rem; }
.info-row { display: flex; align-items: center; gap: 1.1rem; padding: 1rem; border-radius: var(--r-md); transition: background-color .25s, transform .4s var(--ease); }
.info-row:hover { background: var(--paper); transform: translateX(4px); }
.info-ic { margin: 0; }
.info-row small { display: block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.info-row a, .info-row span:not(.info-ic) { font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; }
.info-row a:hover { color: var(--red); }
.quick-card { padding: 1.7rem; background: var(--ink); color: #fff; display: grid; gap: .8rem; justify-items: start; }
.quick-card p { color: var(--muted-light); }
.form { display: grid; gap: 1.2rem; padding: clamp(1.6rem, 4vw, 2.8rem); border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); }
.form-desc { color: var(--muted); margin-top: -.6rem; }
.field { display: grid; gap: .45rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field label { font-weight: 700; font-size: .9rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: .9rem 1.05rem; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .25s; }
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 4px rgba(237, 28, 36, .15); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-weight: 500; font-size: .92rem; line-height: 1.5; cursor: pointer; }
.check input { width: 1.2rem; height: 1.2rem; margin-top: .15rem; accent-color: var(--red); flex: none; }
.form-error { padding: 1rem 1.2rem; border-radius: var(--r-sm); background: rgba(237, 28, 36, .1); color: var(--red-deep); font-weight: 600; font-size: .95rem; }
.form-error a { text-decoration: underline; }
.form-done { display: grid; gap: .8rem; justify-items: start; padding: 1.6rem; border-radius: var(--r-md); background: #fff; border: 1.5px solid rgba(18, 140, 74, .4); animation: zoomIn .6s var(--ease); }
.form-done[hidden], .form-error[hidden] { display: none; }
.form-done-ic { width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50%; background: rgba(18, 140, 74, .12); color: var(--wa); }
.form-done-ic .ic { width: 1.6rem; height: 1.6rem; }
.form-done p { color: var(--muted); }
.form.is-done > :not(.form-done):not(h2):not(.form-desc) { display: none; }
.field-err { color: var(--red-deep); font-size: .86rem; font-weight: 600; }
.form-note { padding: 1rem 1.2rem; border-radius: var(--r-sm); background: rgba(18, 140, 74, .1); color: #0b6b38; font-weight: 600; font-size: .95rem; }
.form-note a { text-decoration: underline; }

.intro-lead { max-width: 900px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.two-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.notice { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.8rem; border-radius: var(--r-lg); background: #fff; border: 1.5px dashed rgba(237, 28, 36, .5); font-weight: 600; }
.notice-ic { width: 2rem; height: 2rem; color: var(--red); flex: none; }

/* 10b. extra sections ---------------------------------------------------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.val-grid--4 { grid-template-columns: repeat(4, 1fr); }
.val-card--link { display: block; color: inherit; }
.val-card--link:hover { border-color: rgba(237, 28, 36, .35); }
.card-more { display: inline-flex; align-items: center; gap: .45rem; margin-top: 1.1rem; font-weight: 700; font-size: .92rem; color: var(--red-deep); }
.card-more .ic { width: 1rem; height: 1rem; transition: transform .4s var(--ease); }
.val-card--link:hover .card-more .ic { transform: translateX(5px); }
.section--paper .val-card { background: #fff; }
.section--paper .val-card:hover { box-shadow: var(--shadow-md); }

.area { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding: clamp(2rem, 5vw, 4rem); border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); position: relative; overflow: hidden; }
.section--paper .area { background: #fff; }
.area::after { content: ''; position: absolute; width: 360px; height: 360px; right: -120px; bottom: -160px; background: radial-gradient(circle, rgba(237, 28, 36, .16), transparent 65%); pointer-events: none; }
.area-copy { display: grid; gap: 1rem; justify-items: start; }
.area-chips { display: flex; flex-wrap: wrap; gap: .7rem; position: relative; z-index: 1; }
.area-chips li { display: inline-flex; align-items: center; gap: .55rem; padding: .8rem 1.2rem; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; transition: transform .4s var(--ease), background-color .3s; }
.area-chips li:hover { transform: translateY(-3px) rotate(-1deg); background: var(--red); }
.area-chips .ic { color: var(--red-bright); transition: color .3s; }
.area-chips li:hover .ic { color: #fff; }

.compare-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; }
.compare th, .compare td { padding: 1.15rem 1.5rem; text-align: left; vertical-align: middle; }
.compare thead th { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--muted); background: var(--paper); }
.compare thead th.is-us { background: var(--red); color: #fff; }
.compare tbody th { font-weight: 700; width: 24%; }
.compare tbody tr + tr > * { border-top: 1px solid var(--line); }
.compare td { color: var(--muted); }
.compare td:last-child { font-weight: 700; color: var(--ink); background: rgba(237, 28, 36, .05); }
.cmp-x, .cmp-ok { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; margin-right: .75rem; vertical-align: middle; }
.cmp-x { background: rgba(35, 35, 39, .08); color: var(--muted); }
.cmp-ok { background: var(--red); color: #fff; }
.cmp-x .ic, .cmp-ok .ic { width: .9rem; height: .9rem; stroke-width: 2.5; }

.bundle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.bundle { padding: 2rem; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); display: grid; gap: .5rem; align-content: start; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.bundle:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.bundle .val-ic { margin-bottom: .7rem; }
.bundle h3 { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: -.02em; line-height: 1.15; }
.bundle p { color: var(--muted); }
.bundle-list { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.bundle-list a { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border-radius: 999px; background: var(--paper); font-weight: 600; font-size: .85rem; transition: background-color .25s, color .25s; }
.bundle-list a:hover { background: var(--red); color: #fff; }
.bundle-list .ic { width: 1rem; height: 1rem; color: var(--red); transition: color .25s; }
.bundle-list a:hover .ic { color: #fff; }

.checks--card { padding: clamp(1.5rem, 3vw, 2.4rem); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); gap: 1.1rem; }
.tip-card { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.5rem; border-radius: var(--r-lg); background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.tip-card::after { content: ''; position: absolute; width: 240px; height: 240px; right: -80px; top: -100px; background: radial-gradient(circle, rgba(237, 28, 36, .35), transparent 65%); }
.tip-ic { width: 3rem; height: 3rem; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--red); position: relative; z-index: 1; }
.tip-card strong { display: block; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red-bright); font-weight: 500; margin-bottom: .35rem; }
.tip-card p { color: rgba(255, 255, 255, .85); }
.tip-card > div { position: relative; z-index: 1; }

.role-chips { display: flex; flex-wrap: wrap; gap: .8rem; }
.role-chips li { display: inline-flex; align-items: center; gap: .65rem; padding: .85rem 1.3rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; transition: transform .4s var(--ease), border-color .3s, box-shadow .4s; }
.role-chips li:hover { transform: translateY(-3px); border-color: var(--red); box-shadow: var(--shadow-sm); }
.role-chips .ic { color: var(--red); }
.steps--3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 1100px) { .val-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1023px) { .area, .bundle-grid { grid-template-columns: 1fr; } .steps--3 { grid-template-columns: 1fr; row-gap: 2rem; } }
@media (max-width: 720px) { .val-grid--4 { grid-template-columns: 1fr; } .compare th, .compare td { padding: .9rem 1rem; } }


/* 10c. CIN additions ----------------------------------------------------- */
.svc-grid--4 { grid-template-columns: repeat(4, 1fr); }
.gap { height: 2.2rem; }
.more-card { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; align-items: center; justify-content: space-between; padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.more-card p { color: var(--muted); margin-top: .4rem; max-width: 60ch; }
.quick-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.page-hero--compact { padding-bottom: clamp(2.6rem, 5vw, 4rem); }
.page-hero--compact .display { font-size: clamp(2rem, 1rem + 3.4vw, 3.4rem); }

.legal { max-width: 860px; }
.legal-updated { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2rem; }
.legal-sec { margin-bottom: 2.2rem; }
.legal-sec h2 { margin-bottom: .8rem; }
.legal-sec p { color: #3d3d44; margin-bottom: .9rem; max-width: 72ch; }
.legal-card { margin: 1.1rem 0 .4rem; padding: 1.2rem 1.5rem; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); display: grid; gap: .65rem; }
.legal-card > div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; }
.legal-card > div[hidden] { display: none; }
.legal-card dt { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: .25rem; }
.legal-card dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.legal-card a { color: var(--red-deep); text-decoration: underline; }

.map { padding: clamp(2rem, 5vw, 4rem) 0; background: var(--paper); }
.map-gate { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; display: grid; justify-items: center; gap: 1rem; text-align: center; padding: clamp(2rem, 5vw, 3.4rem); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.map-pin { width: 3.4rem; height: 3.4rem; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; }
.map-addr { font-weight: 700; font-size: 1.15rem; max-width: 44ch; }
.map-actions { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.map-note { color: var(--muted); font-size: .86rem; max-width: 60ch; }
.map.is-loaded { padding: 0; background: var(--paper); }
.map.is-loaded iframe { display: block; width: 100%; height: clamp(320px, 45vw, 480px); border: 0; }
.map.is-loaded .map-gate { display: none; }

.footer-legal { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.footer-legal a { color: var(--muted-light); transition: color .2s; }
.footer-legal a:hover { color: #fff; }

/* mobile contact bar: click-to-call + WhatsApp stay visible on phones */
.mobile-cta { display: none; }
@media (max-width: 1023px) {
    .mobile-cta { position: fixed; z-index: 95; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); box-shadow: 0 -8px 28px rgba(35, 35, 39, .16); }
    .mcta { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3rem; border-radius: 999px; font-weight: 800; font-size: 1rem; color: #fff; }
    .mcta--call { background: var(--red-btn); }
    .mcta--wa { background: var(--wa); }
    .wa-float { display: none; }
    body { padding-bottom: 4.6rem; }
    .consent { bottom: 5.4rem; }
    .preview-pill { bottom: 5.4rem; }
}
@media (max-width: 1100px) { .svc-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .svc-grid--4 { grid-template-columns: 1fr; } .legal-card > div { grid-template-columns: 1fr; gap: .2rem; } }

/* 11. footer + floating ------------------------------------------------- */
.site-footer { background: var(--ink); color: #fff; padding-top: clamp(3.5rem, 6vw, 5.5rem); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: clamp(1.8rem, 4vw, 4rem); padding-bottom: 3.5rem; }
.footer-brand { display: grid; gap: 1.1rem; align-content: start; }
.footer-brand p { color: var(--muted-light); font-size: .96rem; max-width: 36ch; }
.footer-brand .brand-img { width: 190px; }
.footer-est { font-family: var(--font-mono); font-size: .75rem !important; letter-spacing: .1em; text-transform: uppercase; color: var(--red-bright) !important; }
.footer-h { font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-light); margin-bottom: 1.1rem; }
.footer-col ul { display: grid; gap: .65rem; }
.footer-col a { color: rgba(255, 255, 255, .88); transition: color .2s, padding-left .3s var(--ease); }
.footer-col a:hover { color: var(--red-bright); padding-left: .3rem; }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; color: rgba(255, 255, 255, .88); font-size: .96rem; }
.footer-contact .ic { color: var(--red-bright); margin-top: .22em; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-block: 1.6rem; border-top: 1px solid var(--line-light); color: var(--muted-light); font-size: .88rem; }
.to-top { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: #fff; }
.to-top .ic { transition: transform .35s var(--ease); }
.to-top:hover .ic { transform: translate(3px, -3px); }
.wa-float { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90; width: 3.6rem; height: 3.6rem; display: grid; place-items: center; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 10px 28px rgba(18, 140, 74, .45); transition: transform .4s var(--ease); animation: waPulse 3s infinite; }
.wa-float .ic { width: 1.8rem; height: 1.8rem; }
.wa-float:hover { transform: scale(1.1) rotate(-6deg); }
.progress { position: fixed; left: 0; top: 0; right: 0; height: 3px; z-index: 120; background: var(--red-bright); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.consent { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 130; max-width: 720px; margin-inline: auto; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding: 1.1rem 1.3rem; border-radius: var(--r-md); background: #fff; color: var(--ink); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); transform: translateY(140%); transition: transform .6s var(--ease); font-size: .92rem; }
.consent.is-in { transform: none; }
.consent p { flex: 1 1 300px; }
.consent-actions { display: flex; gap: .5rem; }
.preview-pill { position: fixed; left: 1rem; bottom: 1rem; z-index: 130; padding: .45rem .9rem; border-radius: 999px; background: var(--red); color: #fff; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }

/* 12. motion ------------------------------------------------------------ */
.js [data-reveal] { opacity: 0; }
.js [data-reveal].is-in { opacity: 1; animation: revealUp .95s var(--ease) var(--d, 0ms) backwards; }
.js [data-reveal="left"].is-in { animation-name: revealLeft; }
.js [data-reveal="right"].is-in { animation-name: revealRight; }
.js [data-reveal="zoom"].is-in { animation-name: revealZoom; }
@keyframes revealUp { from { opacity: 0; transform: translateY(34px); } }
@keyframes revealLeft { from { opacity: 0; transform: translateX(-44px); } }
@keyframes revealRight { from { opacity: 0; transform: translateX(44px); } }
@keyframes revealZoom { from { opacity: 0; transform: scale(.94); } }
@keyframes introUp { from { opacity: 0; transform: translateY(26px); } }
@keyframes wordUp { from { transform: translateY(112%); } }
@keyframes zoomIn { from { opacity: 0; transform: scale(.94); } }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1.02); } }
@keyframes fill { to { transform: scaleX(1); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(237, 28, 36, .6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(237, 28, 36, 0); } }
@keyframes waPulse { 0%, 100% { box-shadow: 0 10px 28px rgba(18, 140, 74, .45), 0 0 0 0 rgba(18, 140, 74, .4); } 60% { box-shadow: 0 10px 28px rgba(18, 140, 74, .45), 0 0 0 16px rgba(18, 140, 74, 0); } }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .22s ease both vtOut; }
::view-transition-new(root) { animation: .38s var(--ease) both vtIn; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }

/* responsive ------------------------------------------------------------ */
@media (max-width: 1100px) {
    .header-phone span { display: none; }
    .svc-grid, .proj-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .hero-in { grid-template-columns: 1fr; }
    .hero-card { max-width: 420px; }
}
@media (max-width: 1023px) {
    .nav, .header-phone, .header-cta, .header-actions .lang-btn { display: none; }
    .header-actions { margin-left: auto; }
    .burger { display: grid; }
    .split, .faq-grid, .contact-grid, .svc-layout, .page-hero--service .page-hero-in, .mv-grid { grid-template-columns: 1fr; }
    .faq-side { position: static; }
    .svc-side { position: static; }
    .split-media { padding: 0 1.5rem 2rem 0; }
    .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.4rem; }
    .step::before { display: none; }
    .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 2.4rem; }
    .timeline::before { display: none; }
    .val-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-band { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    body { font-size: 1rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3) { border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
    .svc-grid, .proj-grid, .why-grid, .val-grid, .feat-grid, .two-cards, .checks--cols, .field-row, .steps, .timeline { grid-template-columns: 1fr; }
    .svc-card { min-height: 400px; }
    .footer-top { grid-template-columns: 1fr; }
    .hero { padding-bottom: 6rem; }
    .scroll-cue { display: none; }
    .media-sub { display: none; }
    .split-media { padding: 0; }
    .media-badge { left: .6rem; }
    .mv-card, .form { padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
    .js [data-reveal] { opacity: 1; }
    .marquee-track { animation: none; }
    @view-transition { navigation: none; }
}

@media print {
    .site-header, .drawer, .drawer-scrim, .wa-float, .progress, .hero-card, .scroll-cue, .marquee, .consent, .map { display: none !important; }
    .hero, .page-hero, .section--dark, .site-footer { background: #fff !important; color: #000 !important; }
    .js [data-reveal] { opacity: 1 !important; }
}

/* final overrides */
[hidden] { display: none !important; }
@media (max-width: 1023px) { a.wa-float { display: none; } }

/* 13. homepage: "La sección" (a building cut open; the chapter in view lights its layer) ---- */
.cut { position: relative; background: var(--ink); color: #fff; padding-top: var(--header-h); background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 48px 48px; }
.cut-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1rem, 4vw, 4rem); }
.cut-stage { order: 2; position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); display: flex; flex-direction: column; justify-content: center; gap: 1rem; }
.cut-copy { order: 1; }
.cut-sheet { flex: 1; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr); place-items: center; border: 1px solid var(--line-light); border-radius: 18px; background: rgba(0, 0, 0, .18); padding: 1rem; margin-block: 1.2rem 0; position: relative; }
.cut-sheet::after { content: 'SEC. A-A'; position: absolute; right: 1rem; top: .8rem; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em; color: rgba(255, 255, 255, .45); }
.cut-svg { width: 100%; height: 100%; min-height: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: rgba(244, 244, 245, .75); font-family: var(--font-mono); overflow: visible; }
.cut-svg text { fill: currentColor; stroke: none; font-size: 11px; letter-spacing: .06em; }
.cut-pan { translate: calc(var(--px, 0) * 8px) calc(var(--py, 0) * 6px); transition: translate .7s var(--ease); }
.ly-static { color: rgba(244, 244, 245, .32); stroke-width: 1.4; }
.ly-lit { color: var(--red-bright); stroke-width: 2.6; opacity: 0; clip-path: inset(0 100% 0 0); transition: opacity .35s, clip-path 0s .35s; }
.ly-base { transition: opacity .6s; }
.cut.is-live .ly-base { opacity: .5; }
.cut.is-live:not([data-layer="0"]) .ly-base { opacity: .2; }
.cut.is-live[data-layer="1"] .ly-lit[data-l="1"], .cut.is-live[data-layer="2"] .ly-lit[data-l="2"], .cut.is-live[data-layer="3"] .ly-lit[data-l="3"], .cut.is-live[data-layer="4"] .ly-lit[data-l="4"] { opacity: 1; clip-path: inset(0 0 0 0); transition: opacity .2s, clip-path 1.1s var(--ease); }
.cut.is-live[data-layer="1"] .ly-base[data-l="1"], .cut.is-live[data-layer="2"] .ly-base[data-l="2"], .cut.is-live[data-layer="3"] .ly-base[data-l="3"], .cut.is-live[data-layer="4"] .ly-base[data-l="4"] { opacity: .35; }
.pulse { transform-box: fill-box; transform-origin: center; animation: cutPulse 2.4s ease-in-out infinite; }
.drip { transform-box: fill-box; animation: cutDrip 2.6s ease-in infinite; }
.drip--b { animation-delay: 1.3s; }
@keyframes cutPulse { 50% { transform: scale(2.2); opacity: .4; } }
@keyframes cutDrip { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(26px); opacity: 0; } }
.cut-legend { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; padding-bottom: 1.2rem; }
.cut-legend button { position: relative; width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; padding: .7rem .8rem; border-radius: 12px; border: 1px solid var(--line-light); color: rgba(255, 255, 255, .75); text-align: left; overflow: hidden; isolation: isolate; transition: color .3s, border-color .3s; }
.cut-legend button::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--red-btn); transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease); }
.cut-legend button:hover, .cut-legend button.is-active { color: #fff; border-color: var(--red); }
.cut-legend button:hover::before, .cut-legend button.is-active::before { transform: scaleY(1); }
.cut-legend .n { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; opacity: .7; }
.cut-legend .nm { font-weight: 700; font-size: .86rem; line-height: 1.15; }
.cut-step { min-height: calc(100svh - var(--header-h)); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1.1rem; padding: 2.5rem 0; }
.cut.is-live .cut-step:not(.cut-step--hero) { opacity: .35; transform: translateX(-10px); transition: opacity .5s, transform .6s var(--ease); }
.cut.is-live .cut-step.is-active { opacity: 1; transform: none; }
.cut .hero-title { font-size: clamp(2.1rem, 1rem + 3.3vw, 4rem); margin: .6rem 0 .4rem; }
.cut-tag { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .14em; color: rgba(255, 255, 255, .5); }
.cut-tag span { color: var(--red-bright); }
.cut-h { font-family: var(--font-display); font-weight: 700; letter-spacing: -.03em; line-height: 1; font-size: clamp(2.4rem, 1.2rem + 4vw, 4.6rem); }
.cut-p { color: rgba(255, 255, 255, .8); font-size: 1.1rem; max-width: 44ch; }
.cut .tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.cut .tags li { font-family: var(--font-mono); font-size: .74rem; padding: .35rem .7rem; border: 1px solid var(--line-light); border-radius: 999px; color: rgba(255, 255, 255, .8); }
.scroll-cue--inline { position: static; translate: none; flex-direction: row; gap: .6rem; margin-top: 1.4rem; }
@media (max-width: 899px) {
    .cut-in { grid-template-columns: 1fr; gap: 0; }
    .cut-stage { order: 1; height: 42svh; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); background: var(--ink); z-index: 3; gap: .5rem; border-bottom: 1px solid var(--line-light); }
    .cut-sheet { margin-top: .6rem; padding: .4rem; border: 0; background: none; }
    .cut-sheet::after { display: none; }
    .cut-legend { gap: .3rem; padding-bottom: .6rem; }
    .cut-legend button { padding: .4rem .5rem; }
    .cut-legend .nm { font-size: .68rem; }
    .cut-legend .n { display: none; }
    .cut-copy { order: 2; }
    .cut-step { min-height: 58svh; padding: 2rem 0; }
    .cut-step--hero { min-height: 0; padding-top: 1.6rem; }
    .cut-h { font-size: 2.6rem; }
}
@media (prefers-reduced-motion: reduce) { .pulse, .drip { animation: none; } .cut-pan { transition: none; } }

/* statement: type as image, then a ruled ledger */
.statement-top { display: grid; gap: 1rem; margin-bottom: clamp(1.6rem, 4vw, 3rem); }
.statement-body { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: end; }
.statement-big { font-family: var(--font-display); font-weight: 600; letter-spacing: -.03em; line-height: 1.08; font-size: clamp(1.6rem, 1rem + 2.2vw, 3rem); text-wrap: balance; }
.statement-side { display: grid; gap: 1.2rem; justify-items: start; color: var(--muted); }
.ledger { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(2rem, 5vw, 4rem); border-top: 2px solid var(--ink); }
.ledger li { display: grid; gap: .8rem; padding: 1.2rem 1.2rem 0 0; border-right: 1px solid var(--line); font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.2; align-content: start; }
.ledger li + li { padding-left: 1.2rem; }
.ledger li:last-child { border-right: 0; }
.ledger-n { font-family: var(--font-mono); font-size: .78rem; color: var(--red-deep); letter-spacing: .12em; }

/* featured work: one large frame, two stacked */
.proj-grid--bento { display: grid; grid-template-columns: 8fr 4fr; gap: 1.2rem; counter-reset: plate; }
.proj-grid--bento .proj { position: relative; display: block; counter-increment: plate; min-height: 0; }
.proj-grid--bento .proj:first-child { grid-row: span 2; }
.proj-grid--bento .proj-btn { height: 100%; aspect-ratio: 4 / 3; border-radius: 18px; }
.proj-grid--bento .proj:first-child .proj-btn { aspect-ratio: auto; }
.proj-grid--bento .proj-btn img { position: absolute; inset: 0; }
.proj-grid--bento .proj-shade { opacity: 1; background: linear-gradient(0deg, rgba(24, 24, 27, .88), rgba(24, 24, 27, .1) 55%, transparent); }
.proj-grid--bento .proj::before { content: 'PL. 0' counter(plate); position: absolute; z-index: 2; left: 1rem; top: 1rem; padding: .3rem .6rem; border-radius: 6px; background: var(--ink); color: #fff; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; pointer-events: none; }
.proj-grid--bento .proj figcaption { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 1.2rem 1.3rem; color: #fff; pointer-events: none; }
.proj-grid--bento .proj figcaption h3 { font-size: clamp(1.1rem, .9rem + .7vw, 1.6rem); }
.proj-grid--bento .proj figcaption p { color: rgba(255, 255, 255, .8); font-size: .92rem; }
.proj-grid--bento .proj:not(:first-child) figcaption p { display: none; }
.proj-grid--bento .pill { background: var(--red-btn); color: #fff; }
@media (max-width: 899px) {
    .proj-grid--bento { grid-template-columns: 1fr; }
    .proj-grid--bento .proj:first-child { grid-row: auto; }
    .proj-grid--bento .proj:first-child .proj-btn { aspect-ratio: 4 / 3; }
    .proj-grid--bento .proj:not(:first-child) figcaption p { display: block; }
}

/* why: ruled columns on dark */
.rules { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--red); }
.rule { display: grid; align-content: start; gap: .8rem; padding: 1.6rem 1.4rem 0 0; }
.rule + .rule { padding-left: 1.4rem; border-left: 1px solid var(--line-light); }
.rule-n { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em; color: var(--red-bright); }
.rule h3 { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -.02em; line-height: 1.15; }
.rule p { color: var(--muted-light); }
.rule .why-ic { width: 2.6rem; height: 2.6rem; }
@media (max-width: 899px) {
    .statement-body { grid-template-columns: 1fr; }
    .ledger, .rules { grid-template-columns: 1fr 1fr; }
    .ledger li:nth-child(2) { border-right: 0; }
    .ledger li:nth-child(3) { padding-left: 0; }
    .ledger li:nth-child(n+3) { margin-top: 1.2rem; border-top: 1px solid var(--line); }
    .rule:nth-child(3) { padding-left: 0; border-left: 0; }
    .rule:nth-child(n+3) { margin-top: 1.6rem; }
    .proj-grid--bento { grid-template-columns: 1fr; }
    .proj-grid--bento .proj:first-child { grid-row: auto; }
    .proj-grid--bento .proj:first-child .proj-btn { min-height: 0; height: auto; }
}
