﻿/* ==========================================================================
   CDS Home â€” sections ported from the original homepage build, re-themed to
   the site system: navy (60%) Â· red (30%) Â· saffron (10%, CTAs only).
   Every rule is scoped to .cds-h so nothing leaks into Elementor or the theme.
   ========================================================================== */
.cds-h {
  --light: #EEEEF2; --paper: #F7F7FA; --navy: var(--cds-navy, #1D2145); --navy-2: #252A55;
  --deep: #171A37; --red: var(--cds-red, #D62E49); --red-deep: #B92139; --accent: var(--cds-accent, #FFBC09);
  --fg: var(--light); --mute: rgba(238, 238, 242, 0.66); --line: rgba(238, 238, 242, 0.16);
  --font: var(--cds-font, 'Archivo', sans-serif); --mono: var(--cds-mono, ui-monospace, monospace);
  --gutter: var(--cds-gutter, clamp(18px, 4vw, 64px)); --header-h: var(--cds-header-h, 92px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-io: cubic-bezier(0.76, 0, 0.24, 1); --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative; color: var(--light); font-family: var(--font); font-size: clamp(16px, 0.95rem + 0.18vw, 18px); line-height: 1.55;
}
.cds-h *, .cds-h *::before, .cds-h *::after { box-sizing: border-box; }
.cds-h img, .cds-h svg, .cds-h canvas { display: block; max-width: 100%; }
.cds-h a { color: inherit; }
.cds-h h1, .cds-h h2, .cds-h h3, .cds-h p { margin: 0; }
.cds-h ul, .cds-h ol { margin: 0; padding: 0; list-style: none; }
.cds-h button { font: inherit; color: inherit; }
/* the original type: Archivo throughout */
.cds-h, .cds-h p, .cds-h .label, .cds-h h1, .cds-h h2, .cds-h h3 { font-family: var(--font); }

/* ---------- type & bits ---------- */
.cds-h .display { font-weight: 700; font-stretch: 62%; text-transform: uppercase; line-height: 0.88; letter-spacing: -0.005em; }
.cds-h .label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; line-height: 1.25; }
.cds-h .accent { color: var(--red); }
.cds-h .dot-sep {
  display: inline-block; vertical-align: middle; flex: none; width: 11px; height: 11px; margin: -2px 0.6em 0 0; border-radius: 50%;
  border: 1.5px solid var(--red); background: radial-gradient(circle, var(--red) 0 2.2px, transparent 2.6px);
}
.cds-h .dot-sep--light { border-color: var(--light); background: radial-gradient(circle, var(--light) 0 2.2px, transparent 2.6px); }
.cds-h .wrap { width: min(100% - 2 * var(--gutter), 1600px); margin-inline: auto; }
.cds-h .visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.cds-h :focus-visible { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 4px; }
.cds-h .link {
  position: relative; text-decoration: none; padding: 0.25em 0;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size 0.45s var(--ease-out), color 0.3s;
}
.cds-h .link:hover, .cds-h .link:focus-visible { background-size: 0 1px; background-position: 100% 100%; }
.cds-h .link::after { content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.5s 0.1s var(--ease-out); }
.cds-h.sheet--red .link::after { background: var(--light); }
.cds-h .link:hover::after, .cds-h .link:focus-visible::after { transform: scaleX(1); }
.cds-h .svc__tags { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--mute); }
.cds-h .svc__tags li { display: flex; align-items: center; gap: 8px; }
.cds-h .svc__tags li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.cds-h .section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: 1.2rem 4rem; align-items: end; margin-bottom: clamp(3rem, 8vh, 6rem); }
.cds-h .section-head > .label { grid-column: 1 / -1; display: flex; align-items: center; }
.cds-h .section-head__title { font-size: clamp(3.4rem, 1rem + 8vw, 9rem); }
.cds-h .section-head__intro { color: var(--mute); max-width: 34ch; }
/* section hairline with end nodes that draws in on entry */
.cds-h .rule { position: relative; height: 11px; margin-bottom: clamp(3rem, 8vh, 5rem); --draw: 1; }
.cds-h .rule::before, .cds-h .rule::after { content: ''; position: absolute; top: 0; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--light); opacity: var(--draw); }
.cds-h .rule::before { left: 0; }
.cds-h .rule::after { right: 0; border-color: var(--red); }
.cds-h .rule i { position: absolute; left: 11px; right: 11px; top: 5px; height: 1px; background: var(--line); transform: scaleX(var(--draw)); transform-origin: left; }

/* ---------- chapters: one continuous background that changes colour ---------- */
html.cds-flow body.cds-site { transition: background-color 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
html.cds-flow[data-bg='deep'] body.cds-site { background-color: #171A37; }
html.cds-flow[data-bg='light'] body.cds-site { background-color: #F7F7FA; }
html.cds-flow[data-bg='red'] body.cds-site { background-color: #B92139; }
html:not(.cds-flow) .cds-h.sheet--navy { background: var(--navy); }
html:not(.cds-flow) .cds-h.sheet--deep { background: var(--deep); }
html:not(.cds-flow) .cds-h.sheet--light { background: var(--paper); }
html:not(.cds-flow) .cds-h.sheet--red { background: var(--red-deep); }
.elementor-editor-active .cds-h.sheet--navy, .elementor-editor-preview .cds-h.sheet--navy { background: var(--navy); }
.elementor-editor-active .cds-h.sheet--deep { background: var(--deep); }
.elementor-editor-active .cds-h.sheet--light { background: var(--paper); }
.elementor-editor-active .cds-h.sheet--red { background: var(--red-deep); }
.cds-h.sheet--light { color: var(--navy); --fg: var(--navy); --mute: rgba(29, 33, 69, 0.68); --line: rgba(29, 33, 69, 0.14); }
.cds-h.sheet--light .rule::before { border-color: var(--navy); }
.cds-h.sheet--red { color: var(--light); --mute: rgba(255, 255, 255, 0.86); --line: rgba(255, 255, 255, 0.34); }
.cds-h.sheet--red .accent { color: var(--navy); }
.cds-h.sheet--red .rule::after { border-color: var(--light); }
.cds-bgfield { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; }

/* ==========================================================================
   HERO â€” a satin ribbon threads through the headline
   ========================================================================== */
.cds-h.hero { min-height: 100vh; min-height: 100svh; display: grid; align-items: end; isolation: isolate; overflow: hidden; }
.cds-h .hero__bg { position: absolute; inset: 0; z-index: -3; background: radial-gradient(70% 80% at 72% 30%, rgba(214, 46, 73, 0.16), transparent 62%), radial-gradient(60% 70% at 20% 85%, #2E3470 0%, transparent 70%), var(--navy); }
.cds-h .hero__grain { position: absolute; inset: 0; z-index: -2; opacity: 0.07; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); mix-blend-mode: overlay; }
.cds-h .hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.cds-h .hero__inner {
  position: relative; width: 100%; padding: calc(var(--header-h) + 8vh) var(--gutter) clamp(22px, 4vh, 44px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 18rem); gap: 0 3rem; align-items: end;
}
.cds-h .hero__type { position: relative; }
.cds-h .hero__title { font-size: clamp(3.4rem, 0.4rem + 9.6vw, 13.4rem); }
/* the same headline twice: solid beneath the ribbon, an outline above it */
.cds-h .hero__title--solid { position: relative; z-index: 1; }
.cds-h .hero__title--ghost { position: absolute; inset: 0; z-index: 3; color: transparent; -webkit-text-stroke: 1.2px rgba(255, 255, 255, 0.92); pointer-events: none; }
.cds-h .hero__title--ghost .accent { color: transparent; -webkit-text-stroke-color: rgba(255, 196, 180, 0.95); }
html:not(.cds-hero-gl) .cds-h .hero__title--ghost { display: none; }
.cds-h .hero__line { display: block; white-space: nowrap; }
.cds-h .hl { display: inline-block; }
.cds-h .hero__aside {
  position: relative; z-index: 3; max-width: 19rem; margin-bottom: 1.4em; padding-top: 1.1rem;
  font-size: clamp(0.9rem, 0.84rem + 0.2vw, 1rem); line-height: 1.65; color: rgba(238, 238, 242, 0.78); text-wrap: pretty;
}
.cds-h .hero__aside::before { content: ''; position: absolute; left: 0; top: 0; width: 2.2rem; height: 2px; background: var(--red); }
.cds-h .hero__aside strong { color: #fff; font-weight: 500; }
.cds-h .hero__foot {
  position: relative; z-index: 3; grid-column: 1 / -1; margin-top: clamp(1.6rem, 5vh, 3.4rem); padding-top: 1.4rem; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 1.2rem 2.4rem; flex-wrap: wrap;
}
.cds-h .hero__foot .link { font-family: var(--mono); font-size: 0.78rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }
.cds-h .hero__hint { margin-left: auto; display: flex; align-items: center; gap: 0.7rem; color: rgba(238, 238, 242, 0.6); font-size: 0.78rem; }
.cds-h .hero__mouse { width: 14px; height: 21px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; }
.cds-h .hero__mouse path { stroke: var(--accent); stroke-linecap: round; animation: cds-wheel 1.8s var(--ease-io) infinite; }
@keyframes cds-wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(5px); opacity: 0; } 100% { opacity: 0; } }
.cds-h .hero__ticker { position: absolute; z-index: 3; right: var(--gutter); top: calc(var(--header-h) + 3vh); display: flex; gap: 0.5rem; align-items: center; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(238, 238, 242, 0.62); }
.cds-h .hero__ticker b { font-weight: 500; color: var(--light); }
.cds-h .hero__pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255, 188, 9, 0.6); animation: cds-pulse 2s infinite; }
@keyframes cds-pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 188, 9, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 188, 9, 0); } }

/* ==========================================================================
   REEL â€” service words that slide with scroll, broken by photo capsules
   ========================================================================== */
.cds-h.reel { padding: clamp(5rem, 14vh, 9rem) 0 clamp(1rem, 4vh, 3rem); overflow: hidden; }
.cds-h .reel__rows { display: grid; gap: clamp(0.2rem, 1vh, 0.8rem); }
.cds-h .reel__row { overflow: hidden; white-space: nowrap; }
.cds-h .reel__track { display: inline-flex; align-items: center; gap: 0.22em; will-change: transform; font-size: clamp(4rem, 1.2rem + 10vw, 12.5rem); font-weight: 800; font-stretch: 62%; text-transform: uppercase; line-height: 0.95; padding: 0.04em 0; }
.cds-h .rw { display: inline-block; transition: color 0.35s; }
.cds-h .rw--red { color: var(--red); }
.cds-h .rw--outline { color: transparent; -webkit-text-stroke: 1.5px var(--light); }
.cds-h .pill { display: inline-block; flex: none; position: relative; overflow: hidden; width: 1.55em; height: 0.72em; border-radius: 999px; margin: 0 0.06em; transform: translateY(-0.02em); transition: width 0.7s var(--ease-out); }
.cds-h .pill img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 0.9s var(--ease-out); }
.cds-h .pill:hover { width: 2.6em; }
.cds-h .pill:hover img { transform: scale(1); }
.cds-h .impact { display: grid; gap: clamp(0.4rem, 1.4vh, 1rem); margin-top: clamp(4rem, 12vh, 8rem); }
.cds-h .impact__word { font-family: var(--font); font-size: clamp(5rem, 1rem + 19vw, 21rem); font-weight: 800; font-stretch: 62%; text-transform: uppercase; line-height: 0.8; letter-spacing: -0.01em; }
.cds-h .impact__word--photo { color: transparent; background-size: cover; background-position: 50% 45%; will-change: transform; -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 1px rgba(238, 238, 242, 0.12); }
.cds-h .impact__word--b { justify-self: end; }
.cds-h .impact__mid { display: flex; align-items: center; gap: clamp(1.4rem, 4vw, 4rem); padding-left: 14%; }
.cds-h .impact__word--outline { color: transparent; -webkit-text-stroke: 1.5px var(--light); font-size: clamp(3.4rem, 1rem + 10vw, 11rem); }
.cds-h .impact__note { max-width: 34ch; font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.15rem); line-height: 1.55; color: var(--mute); }

/* ==========================================================================
   SERVICES â€” expanding photo strips
   ========================================================================== */
.cds-h.services { padding: clamp(6rem, 16vh, 11rem) 0 clamp(5rem, 12vh, 9rem); }
.cds-h .strips { display: flex; gap: 10px; height: clamp(520px, 74vh, 760px); }
.cds-h .strip { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: 16px; background: var(--navy); transition: flex-grow 0.9s var(--ease-out); }
.cds-h .strip.is-active { flex-grow: 5.2; }
.cds-h .strip__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(0.8); transform: scale(1.12); transition: filter 0.9s var(--ease-out), transform 1.4s var(--ease-out); }
.cds-h .strip::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(29, 33, 69, 0.15) 30%, rgba(21, 24, 51, 0.92) 100%), var(--navy); mix-blend-mode: multiply; transition: opacity 0.9s var(--ease-out); }
.cds-h .strip::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, transparent 35%, rgba(21, 24, 51, 0.88) 100%); opacity: 0; transition: opacity 0.9s; }
.cds-h .strip.is-active .strip__img { filter: none; transform: scale(1); }
.cds-h .strip.is-active::before { opacity: 0.18; }
.cds-h .strip.is-active::after { opacity: 1; }
.cds-h .strip:not(.is-active):hover .strip__img { filter: grayscale(0.4) brightness(0.9); }
.cds-h .strip__btn { position: absolute; inset: 0; z-index: 3; width: 100%; padding: 1.4rem 0 1.6rem !important; border: 0 !important; background: none !important; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: space-between; color: var(--light) !important; transition: opacity 0.4s; border-radius: 0; }
.cds-h .strip__t { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; font-family: var(--font); font-size: clamp(1.4rem, 0.8rem + 1.2vw, 2.2rem); font-weight: 800; font-stretch: 62%; text-transform: uppercase; line-height: 1; }
.cds-h .strip.is-active .strip__btn { opacity: 0; }
.cds-h .strip__body { position: absolute; z-index: 2; left: 0; bottom: 0; width: min(100%, 40rem); padding: clamp(1.4rem, 3vw, 2.6rem); display: grid; gap: 0.9rem; opacity: 0; transform: translateY(24px); pointer-events: none; transition: opacity 0.35s, transform 0.6s var(--ease-out); }
.cds-h .strip.is-active .strip__body { opacity: 1; transform: none; transition-delay: 0.35s; pointer-events: auto; }
.cds-h .strip__big { font-family: var(--font); font-size: clamp(4rem, 2rem + 4vw, 7rem); font-weight: 800; font-stretch: 62%; line-height: 0.8; color: var(--red); }
.cds-h .strip__body h3 { font-size: clamp(2rem, 1rem + 2.4vw, 3.6rem); line-height: 0.92; }
.cds-h .strip__body p { max-width: 42ch; color: rgba(238, 238, 242, 0.86); }
.cds-h .strip__body .svc__tags { color: var(--light); }
.cds-h .strip__timer { position: absolute; z-index: 4; left: 0; top: 0; height: 3px; width: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); }
.cds-h .strip:not(.is-active) .strip__timer { opacity: 0; }

/* ==========================================================================
   WORK EXPLORER
   ========================================================================== */
.cds-h.work { padding: clamp(6rem, 16vh, 11rem) 0; isolation: isolate; }
.cds-h .work__gl { position: sticky; top: 0; width: 100%; height: 100vh; margin-bottom: -100vh; z-index: 1; pointer-events: none; display: none; }
.cds-h.has-work-gl .work__gl { display: block; }
.cds-h .work__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 5vw; position: relative; z-index: 2; }
.cds-h .work__panel { position: sticky; top: calc(var(--header-h) + 2vh); align-self: start; min-height: calc(100vh - var(--header-h) - 8vh); display: flex; flex-direction: column; }
.cds-h .work__panel > .label:first-child { display: flex; align-items: center; color: var(--mute); margin-bottom: 1.2rem; }
.cds-h .work__title { font-size: clamp(3.4rem, 1rem + 6.4vw, 8rem); }
.cds-h .work__note { color: var(--mute); max-width: 36ch; margin-top: 1.4rem; }
.cds-h .dial { margin-top: auto; padding-top: 3rem; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 clamp(1.4rem, 2.4vw, 2.4rem); align-items: stretch; }
.cds-h .dial__rail { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 4px 0; --p: 0; }
.cds-h .dial__rail::before, .cds-h .dial__rail::after { content: ''; position: absolute; left: 50%; top: 10px; bottom: 10px; width: 1px; margin-left: -0.5px; background: var(--line); }
.cds-h .dial__rail::after { background: var(--red); bottom: auto; height: calc((100% - 20px) * var(--p)); transition: height 0.9s var(--ease-out); }
.cds-h .dial__rail button { position: relative; z-index: 1; width: 30px; height: 30px; padding: 0 !important; border: 0 !important; background: none !important; cursor: pointer; display: grid; place-items: center; }
.cds-h .dial__rail i { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid rgba(238, 238, 242, 0.5); background: var(--navy); transition: transform 0.5s var(--ease-spring), border-color 0.3s, background-color 0.3s; }
.cds-h .dial__rail button:hover i { transform: scale(1.35); border-color: var(--light); }
.cds-h .dial__rail button.is-past i { border-color: var(--red); }
.cds-h .dial__rail button.is-active i { transform: scale(1.5); border-color: var(--red); background: radial-gradient(circle, var(--red) 0 2.5px, var(--navy) 3px); }
.cds-h .dial__read { min-width: 0; padding: 0.2rem 0; }
.cds-h .dial__num { display: flex; height: 1em; overflow: hidden; line-height: 1; font-family: var(--font); font-size: clamp(6rem, 3rem + 7vw, 11rem); font-weight: 800; font-stretch: 62%; color: transparent; -webkit-text-stroke: 1.5px rgba(238, 238, 242, 0.55); }
.cds-h .dial__reel { display: flex; flex-direction: column; color: var(--red); -webkit-text-stroke: 0; transition: transform 0.9s var(--ease-out); }
.cds-h .dial__reel span { height: 1em; }
.cds-h .dial__name { margin-top: 1.1rem; min-height: 2em; overflow: hidden; font-family: var(--font); font-size: clamp(1.9rem, 1rem + 1.9vw, 3.1rem); font-weight: 800; font-stretch: 62%; text-transform: uppercase; line-height: 0.95; }
.cds-h .dial__name .ch { display: inline-block; white-space: pre; }
.cds-h .dial__type { color: var(--mute); margin-top: 0.7rem; }
.cds-h .work__all { align-self: flex-start; margin-top: 2.2rem; }
.cds-h .work__list { display: flex; flex-direction: column; gap: clamp(4rem, 13vh, 8rem); padding-top: 3vh; }
.cds-h .proj { outline: none; border-radius: 14px; }
.cds-h .proj__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0 0 0.85rem; color: var(--light); }
.cds-h .proj__bar > span:last-child { color: var(--mute); }
.cds-h .proj__media { margin: 0; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; position: relative; background: var(--navy-2); }
.cds-h .proj__photo { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.4s, transform 0.9s var(--ease-out); }
.cds-h.has-work-gl .proj__media { background: transparent; overflow: visible; }
.cds-h.has-work-gl .proj__photo.gl-ready, .cds-h.has-work-gl .gl-ready .proj__plate { opacity: 0; }
.cds-h .proj__plate { position: absolute; z-index: 2; right: 5%; bottom: 7%; width: 50%; background: #fff; border-radius: 12px; padding: 10px; box-shadow: 0 30px 60px -20px rgba(10, 12, 30, 0.6); transition: transform 0.8s var(--ease-out); }
.cds-h .proj__plate img { width: 100%; height: auto; border-radius: 6px; }
.cds-h .proj:hover .proj__plate { transform: translate(-6px, -8px) rotate(-1deg); }
.cds-h .proj__meta { display: grid; gap: 0.5rem; margin-top: 1.2rem; max-width: 60ch; }
.cds-h .proj__meta h3 { font-size: 1.3rem; font-weight: 800; font-stretch: 80%; text-transform: uppercase; letter-spacing: 0.01em; }
.cds-h .proj__meta p { color: var(--mute); }

/* ==========================================================================
   PROCESS â€” cards dealt from a deck
   ========================================================================== */
.cds-h.process { padding: clamp(6rem, 14vh, 10rem) 0; }
.cds-h .process__pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: clamp(2rem, 7vh, 5rem); }
.cds-h .process__head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 1.2rem 4rem; align-items: end; }
.cds-h .process__head .label { display: flex; align-items: center; color: var(--mute); margin-bottom: 1.2rem; }
.cds-h .process__head h2 { font-size: clamp(3rem, 1rem + 5.4vw, 7rem); }
.cds-h .process__intro { color: var(--mute); max-width: 36ch; }
.cds-h .process__count { color: var(--mute); font-size: 0.85rem; }
.cds-h .pc-n { color: var(--red); }
.cds-h .process__table { position: relative; }
.cds-h .process__thread { position: absolute; inset: 0; width: 100%; overflow: visible; pointer-events: none; display: none; }
.cds-h .process__thread path { fill: none; stroke: var(--red); stroke-width: 1.5; }
.cds-h .deck { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 20px); perspective: 1600px; position: relative; }
.cds-h .pcard__in { position: relative; transform-style: preserve-3d; height: 100%; }
.cds-h .pcard__face { border-radius: 16px; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.cds-h .pcard__front { position: relative; height: 100%; min-height: 21rem; background: var(--navy); color: var(--light); padding: 1.4rem 1.4rem 1.3rem; display: flex; flex-direction: column; box-shadow: 0 30px 50px -30px rgba(29, 33, 69, 0.55); }
.cds-h .pcard__n { font-family: var(--font); font-size: clamp(3rem, 1.6rem + 2.4vw, 4.6rem); font-weight: 800; font-stretch: 62%; line-height: 0.85; color: var(--red); }
.cds-h .pcard h3 { font-size: 1.6rem; font-weight: 800; font-stretch: 62%; text-transform: uppercase; letter-spacing: 0.01em; margin-top: auto; line-height: 1; }
.cds-h .pcard__front > p:not(.pcard__out) { color: rgba(238, 238, 242, 0.74); font-size: 0.86rem; line-height: 1.5; margin-top: 0.6rem; }
.cds-h .pcard__out { margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid rgba(238, 238, 242, 0.16); color: var(--light); font-size: 0.66rem; }
.cds-h .pcard__back {
  position: absolute; inset: 0; transform: rotateY(180deg); background-color: var(--red); color: #fff; display: grid; place-items: end start; padding: 1.4rem;
  background-image: radial-gradient(circle at 76% 24%, transparent 0 34px, rgba(255,255,255,.9) 34.5px 36px, transparent 36.5px), radial-gradient(circle at 76% 24%, #fff 0 6px, transparent 6.5px), repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0 1px, transparent 1px 20px);
}

/* ==========================================================================
   CONTACT â€” a letter you complete
   ========================================================================== */
.cds-h.contact { padding: clamp(7rem, 16vh, 11rem) 0 clamp(5rem, 12vh, 8rem); }
.cds-h .contact__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 4rem 6vw; align-items: start; }
.cds-h .contact__lead { position: sticky; top: calc(var(--header-h) + 3vh); }
.cds-h .contact__lead > .label { display: flex; align-items: center; margin-bottom: 1.2rem; }
.cds-h .contact__title { font-size: clamp(3.6rem, 1rem + 8vw, 10rem); }
.cds-h .contact__title > span { display: block; }
.cds-h .contact__title > span:nth-child(2) { padding-left: 0.5em; }
.cds-h .contact__sub { margin-top: 2rem; max-width: 34ch; font-size: 1rem; }
.cds-h .contact__direct { margin-top: 2.2rem; display: grid; gap: 0.7rem; }
.cds-h .contact__direct li { display: grid; grid-template-columns: 5rem 1fr; align-items: baseline; }
.cds-h .contact__direct .label { color: var(--mute); }
.cds-h .contact__direct a { font-family: var(--mono); font-size: 1rem; justify-self: start; }
.cds-h .letter { display: grid; gap: clamp(1.2rem, 3vh, 2rem); padding-top: 0.4rem; }
.cds-h .letter p.letter__line, .cds-h .letter__line { margin: 0; padding: 0; border: 0; min-width: 0; font-family: var(--font); font-size: clamp(1.6rem, 0.9rem + 1.7vw, 2.7rem); font-weight: 500; line-height: 1.5; letter-spacing: -0.015em; }
.cds-h .slot { position: relative; display: inline-block; vertical-align: baseline; }
.cds-h .slot input, .cds-h .letter__idea textarea {
  font: inherit; font-weight: 650; color: #fff; background: transparent !important; border: 0 !important; border-radius: 0 !important;
  border-bottom: 2px dashed rgba(255, 255, 255, 0.6) !important; padding: 0 0.1em !important; max-width: 100%; box-shadow: none;
  transition: border-color 0.3s, background-color 0.3s;
}
.cds-h .slot input { width: auto; min-width: 4ch; field-sizing: content; height: auto; }
.cds-h .slot--wide input { min-width: 8ch; }
.cds-h .slot input::placeholder, .cds-h .letter__idea textarea::placeholder { color: rgba(255, 255, 255, 0.5); font-weight: 500; }
.cds-h .slot input:focus, .cds-h .letter__idea textarea:focus { outline: none; border-bottom-style: solid !important; border-bottom-color: #fff !important; background: rgba(21, 24, 51, 0.16) !important; }
.cds-h .letter__legend { float: left; margin-right: 0.35em; padding: 0; font: inherit; }
.cds-h .letter__needs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25em 0.3em; }
.cds-h .tog { position: relative; cursor: pointer; }
.cds-h .tog input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.cds-h .tog span { display: inline-block; padding: 0 0.42em; border-radius: 0.3em; line-height: 1.25; border: 1.5px solid rgba(255, 255, 255, 0.6); font-weight: 600; transition: background-color 0.25s, color 0.25s, transform 0.3s var(--ease-spring), border-color 0.25s; }
.cds-h .tog:hover span { border-color: #fff; transform: translateY(-2px) rotate(-1.5deg); }
.cds-h .tog input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); transform: rotate(-2deg); }
.cds-h .tog input:focus-visible + span { outline: 2px solid #fff; outline-offset: 3px; }
.cds-h .letter__idea { display: grid; gap: 0.2em; }
.cds-h .letter__idea textarea { width: 100%; resize: vertical; min-height: 2.6em; line-height: 1.35; font-size: 0.8em; }
.cds-h .letter .has-error input, .cds-h .letter .has-error textarea { border-bottom-color: var(--navy) !important; background: rgba(21, 24, 51, 0.22) !important; }
.cds-h .field__err { display: block; font-family: var(--mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0; color: #fff; background: var(--deep); justify-self: start; width: max-content; max-width: 100%; padding: 0.15rem 0.5rem; border-radius: 4px; line-height: 1.4; }
.cds-h .slot .field__err { position: absolute; left: 0; top: 100%; margin-top: 4px; z-index: 2; }
.cds-h .form__foot { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; margin-top: 0.4rem; }
.cds-h .form__note { color: var(--mute); max-width: 30ch; font-size: 0.74rem; }
.cds-h .form__status { font-weight: 400; min-height: 1.5em; }
.cds-h .form__status.is-ok { padding: 1rem 1.2rem; background: var(--deep); border-radius: 12px; }
.cds-h .cds-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cds-h button.cds-btn { border: 0; cursor: pointer; font: inherit; }

/* ==========================================================================
   Responsive (tablet / mobile safety)
   ========================================================================== */
@media (max-width: 1023px) {
  .cds-h .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .cds-h .hero__title { font-size: clamp(3.4rem, 12vw, 8rem); }
  .cds-h .hero__aside { margin: 1.6rem 0 0; }
  .cds-h .section-head { grid-template-columns: 1fr; }
  .cds-h .strips { flex-direction: column; height: auto; }
  .cds-h .strip { flex: none; height: 76px; transition: height 0.8s var(--ease-out); }
  .cds-h .strip.is-active { height: min(520px, 78vh); }
  .cds-h .strip__btn { flex-direction: row; justify-content: flex-start; gap: 1.2rem; padding: 0 1.2rem !important; }
  .cds-h .strip__t { writing-mode: horizontal-tb; transform: none; font-size: 1.6rem; }
  .cds-h .work__grid { grid-template-columns: 1fr; gap: 2rem; }
  .cds-h .work__panel { position: static; min-height: 0; }
  .cds-h .dial { display: none; }
  .cds-h .process__head { grid-template-columns: 1fr; }
  .cds-h .process__count { display: none; }
  .cds-h .deck { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cds-h .contact__grid { grid-template-columns: 1fr; }
  .cds-h .contact__lead { position: static; }
}
@media (max-width: 640px) {
  .cds-h .hero__line { padding-left: 0 !important; }
  .cds-h .deck { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .cds-h *, .cds-h *::before, .cds-h *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* the header turns dark while it sits over a light chapter */
body.cds-on-light .cds-header { --cds-h-fg: #1D2145; --cds-veil: #F7F7FA; transition: color 0.4s; }
body.cds-on-light .cds-faders i::after { background: #F7F7FA; }

/* hero: the ribbon sits behind the type, as in the original */
.cds-h .hero__gl { z-index: 0; }
.cds-h .hero__title--ghost { display: none !important; }

/* ==========================================================================
   SERVICES â€” a moving wall of work: tilted columns drift endlessly; the service
   in focus lights up its cards while the rest step back
   ========================================================================== */
.cds-h.svcwall { position: relative; min-height: 100vh; padding: clamp(6rem, 16vh, 10rem) 0; overflow: hidden; isolation: isolate; --gap: clamp(14px, 1.6vw, 24px); }
.cds-h .sw__wall { position: absolute; z-index: 0; top: -20%; right: -12%; width: 74%; height: 150%; perspective: 1700px; perspective-origin: 30% 40%; pointer-events: none; }
.cds-h .sw__plane {
  position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: var(--gap);
  transform-style: preserve-3d; transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0) rotateX(var(--rx, 48deg)) rotateZ(var(--rz, -28deg)); transition: transform 1.6s var(--ease-out);
}
.cds-h .sw__col { position: relative; transform-style: preserve-3d; }
.cds-h .sw__col:nth-child(odd) .sw__track { margin-top: -22%; }
.cds-h .sw__track { display: flex; flex-direction: column; gap: var(--gap); transform-style: preserve-3d; animation: cds-sw-drift var(--dur, 70s) linear infinite var(--dir, normal); }
@keyframes cds-sw-drift { from { transform: translateY(0); } to { transform: translateY(calc(-50% - var(--gap) / 2)); } }
.cds-h .sw__card { position: relative; flex: none; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--navy-2); box-shadow: 0 30px 60px -28px rgba(5, 6, 20, 0.85); transition: opacity 0.8s var(--ease-out), filter 0.8s var(--ease-out), transform 0.8s var(--ease-out), box-shadow 0.8s var(--ease-out); }
.cds-h .sw__card img { width: 100%; height: 100%; object-fit: cover; }
.cds-h .sw__cap { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 7px 10px; border-radius: 8px; background: rgba(21, 24, 51, 0.88); font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; display: flex; justify-content: space-between; gap: 8px; opacity: 0; transform: translateY(8px); transition: opacity 0.5s, transform 0.6s var(--ease-out); }
.cds-h .sw__cap i { font-style: normal; color: var(--red); }
.cds-h.svcwall[data-active] .sw__card { opacity: 0.26; filter: grayscale(0.9) brightness(0.7); }
.cds-h.svcwall[data-active] .sw__card.is-match { opacity: 1; filter: none; transform: translateZ(46px) scale(1.035); box-shadow: 0 0 0 2px var(--red), 0 40px 70px -24px rgba(214, 46, 73, 0.6); }
.cds-h .sw__card.is-match .sw__cap { opacity: 1; transform: none; }
.cds-h .sw__veil { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, var(--deep) 0%, var(--deep) 36%, rgba(23, 26, 55, 0.6) 52%, transparent 72%), linear-gradient(0deg, var(--deep) 0%, transparent 18%), linear-gradient(180deg, var(--deep) 0%, transparent 18%); }
html.cds-flow .cds-h .sw__veil { --deep: #171A37; }
.cds-h .sw__inner { position: relative; z-index: 2; }
.cds-h .sw__head { max-width: 40rem; }
.cds-h .sw__head > .label { display: flex; align-items: center; margin-bottom: 1.2rem; }
.cds-h .sw__intro { margin-top: 1.6rem; color: var(--mute); max-width: 36ch; }
.cds-h .sw__list { margin-top: clamp(2.4rem, 6vh, 3.6rem); max-width: 34rem; border-top: 1px solid var(--line); }
.cds-h .sw__item { position: relative; border-bottom: 1px solid var(--line); }
.cds-h .sw__btn { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: grid; grid-template-columns: 2.6rem 1fr auto; align-items: baseline; gap: 0.6rem; padding: 1rem 0; color: rgba(238, 238, 242, 0.5); transition: color 0.4s; }
.cds-h .sw__btn:hover, .cds-h .sw__item.is-active .sw__btn { color: var(--light); }
.cds-h .sw__n { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; }
.cds-h .sw__item.is-active .sw__n { color: var(--red); }
.cds-h .sw__t { font-family: var(--font); font-weight: 800; font-stretch: 62%; text-transform: uppercase; font-size: clamp(1.5rem, 0.9rem + 1.3vw, 2.3rem); line-height: 1; transition: transform 0.6s var(--ease-out); }
.cds-h .sw__item.is-active .sw__t { transform: translateX(0.4rem); }
.cds-h .sw__go { width: 18px; height: 18px; fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: translateX(-8px); transition: opacity 0.4s, transform 0.5s var(--ease-out); }
.cds-h .sw__item.is-active .sw__go { opacity: 1; transform: none; }
.cds-h .sw__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cds-h .sw__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.7s var(--ease-out); }
.cds-h .sw__item.is-active .sw__more { grid-template-rows: 1fr; }
.cds-h .sw__more > div { overflow: hidden; padding-left: 3.2rem; }
.cds-h .sw__more p { color: rgba(238, 238, 242, 0.8); font-size: 0.9rem; max-width: 40ch; }
.cds-h .sw__more .svc__tags { margin: 0.8rem 0 1.2rem; }
.cds-h .sw__timer { position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; }
@media (max-width: 1023px) { .cds-h .sw__wall { width: 120%; right: -40%; opacity: 0.5; } }
@media (prefers-reduced-motion: reduce) { .cds-h .sw__track { animation: none; } }

/* ---------- the original signature button ---------- */
.cds-h .btn {
  --b-line: rgba(238, 238, 242, 0.32); --b-fg: var(--light); --b-disc: var(--red); --b-fill: var(--red); --b-icon: #fff;
  position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: 18px;
  height: 60px; padding: 0 6px 0 28px; border-radius: 999px; border: 1px solid var(--b-line); background: transparent; color: var(--b-fg) !important;
  text-decoration: none; cursor: pointer; font-family: var(--font); font-size: 0.8rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.08em;
  -webkit-tap-highlight-color: transparent; transition: transform 0.18s var(--ease-out), border-color 0.4s;
}
.cds-h .btn::before { content: ''; position: absolute; z-index: -1; right: 6px; top: 50%; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; background: var(--b-fill); transform: scale(1); opacity: 0; transition: transform 0.7s var(--ease-out), opacity 0.2s; }
.cds-h .btn__label { position: relative; display: block; height: 1.3em; overflow: hidden; line-height: 1.3; }
.cds-h .btn__label span { display: block; transition: transform 0.55s var(--ease-out); }
.cds-h .btn__disc { width: 48px; height: 48px; border-radius: 50%; background: var(--b-disc); flex: none; display: grid; place-items: center; transition: transform 0.6s var(--ease-spring); }
.cds-h .btn__disc svg { width: 18px; height: 18px; fill: none; stroke: var(--b-icon); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.6s var(--ease-spring); }
.cds-h .btn:hover, .cds-h .btn:focus-visible { border-color: var(--b-fill); }
.cds-h .btn:hover::before, .cds-h .btn:focus-visible::before { opacity: 1; transform: scale(9); }
.cds-h .btn:hover .btn__label span, .cds-h .btn:focus-visible .btn__label span { transform: translateY(-100%); }
.cds-h .btn:hover .btn__disc svg, .cds-h .btn:focus-visible .btn__disc svg { transform: rotate(45deg); }
.cds-h .btn:active { transform: scale(0.97); }
.cds-h .btn--light { --b-line: rgba(238, 238, 242, 0.6); --b-disc: var(--navy); --b-fill: var(--navy); }
.cds-h button.btn { font-family: var(--font); }

/* ---------- hero background: three rows of project slides gliding past ---------- */
.cds-h.hero .hero__reel { position: absolute; z-index: 0; top: 0; right: 0; bottom: 0; width: 78%; perspective: 1500px; perspective-origin: 20% 50%; overflow: hidden; }
.cds-h.hero .hero__rows {
  position: absolute; inset: -6% -24% -6% 0; display: flex; flex-direction: column; justify-content: center; gap: clamp(16px, 2vw, 28px);
  transform: rotateY(-24deg) rotateX(6deg) rotateZ(-6deg) translate3d(calc(var(--px, 0) * 1px), calc(var(--py, 0) * 1px), 0); transform-style: preserve-3d;
}
.cds-h.hero .hero__row { overflow: visible; }
.cds-h.hero .hero__strip { display: flex; gap: clamp(16px, 2vw, 28px); width: max-content; animation: cds-glide var(--dur, 46s) linear infinite var(--dir, normal); will-change: transform; }
.cds-h.hero .hero__row:hover .hero__strip { animation-duration: calc(var(--dur, 46s) * 3); }
@keyframes cds-glide { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(calc(-50% - clamp(16px, 2vw, 28px) / 2), 0, 0); } }
.cds-h.hero .hero__slide {
  position: relative; flex: none; display: block; width: clamp(240px, 21vw, 360px); aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden;
  background: var(--navy-2); text-decoration: none !important; color: #fff;
  box-shadow: 0 24px 50px -24px rgba(5, 6, 20, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 0.7s var(--ease-out), box-shadow 0.7s var(--ease-out), filter 0.7s;
  filter: saturate(0.9) brightness(0.92);
}
.cds-h.hero .hero__slide img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease-out); }
.cds-h.hero .hero__slide.is-framed { background: #F4F4F7; }
.cds-h.hero .hero__slide.is-framed img { object-fit: contain; padding: 6% 8%; }
.cds-h.hero .hero__slide::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, rgba(255, 255, 255, 0.16), transparent 38%); pointer-events: none; }
.cds-h.hero .hero__slide:hover { transform: translateZ(40px) scale(1.06); filter: none; box-shadow: 0 0 0 2px var(--red), 0 40px 70px -24px rgba(214, 46, 73, 0.55); }
.cds-h.hero .hero__slide:hover img { transform: scale(1.04); }
.cds-h.hero .hero__cap {
  position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 8px;
  background: rgba(21, 24, 51, 0.88); backdrop-filter: blur(6px); font-family: var(--font); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  opacity: 0; transform: translateY(8px); transition: opacity 0.4s, transform 0.5s var(--ease-out);
}
.cds-h.hero .hero__cap i { font-style: normal; color: var(--red); }
.cds-h.hero .hero__slide:hover .hero__cap { opacity: 1; transform: none; }
.cds-h.hero .hero__veil { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 30%, rgba(29, 33, 69, 0.7) 46%, rgba(29, 33, 69, 0) 66%), linear-gradient(0deg, var(--navy) 0%, transparent 24%), linear-gradient(180deg, var(--navy) 0%, transparent 20%); }
.cds-h.hero .hero__inner { z-index: 2; pointer-events: none; }
.cds-h.hero .hero__inner a, .cds-h.hero .hero__inner p, .cds-h.hero .hero__inner h1 { pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .cds-h.hero .hero__strip { animation: none; } }

.cds-h.hero .hero__aside { background: rgba(23, 26, 55, 0.78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 1.3rem 1.3rem 1.2rem; border-radius: 14px; box-shadow: 0 20px 40px -20px rgba(5, 6, 20, 0.7); }
.cds-h.hero .hero__aside::before { left: 1.3rem; top: 0; }

