/* ==========================================================================
   WEBSITE PAGE STYLES — consumes DS tokens (styles.css). Mirrors the DS
   component visuals in plain, directly-editable HTML.
   ========================================================================== */

/* --- Layout --- */
.gutter { padding-inline: var(--page-gutter); }
.wrap { max-width: var(--page-max); margin-inline: auto; }
.section { padding-block: var(--section-md); }
.section--lg { padding-block: var(--section-lg); }
.section--sm { padding-block: var(--section-sm); }
.hairline-top { border-top: 1px solid var(--color-border-subtle); }
/* Inverted light band — reuses the existing cream/ink palette by re-scoping tokens */
.section--invert { background: var(--ref-cream); color: var(--ref-ink); --color-text-primary: var(--ref-ink); --color-text-secondary: oklch(from var(--ref-ink) l c h / 0.7); --color-border-subtle: oklch(from var(--ref-ink) l c h / 0.14); --color-border-strong: oklch(from var(--ref-ink) l c h / 0.28); --color-link: var(--ref-ink); --color-link-underline-hover: oklch(from var(--ref-ink) l c h / 0.55); --color-action-bg: var(--ref-ink); --color-action-text: var(--ref-cream); --color-action-hover: oklch(from var(--ref-ink) calc(l + 0.1) c h); }

/* --- Nav --- */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; column-gap: 24px;
  height: var(--nav-h); padding-inline: var(--page-gutter);
  background: var(--color-bg-darkest);
  border-bottom: 1px solid var(--color-border-subtle);
}
.nav__logo { font-family: var(--font-display); font-weight: 900; font-size: 24px; letter-spacing: -0.02em; color: var(--color-text-primary); text-decoration: none; }
.nav__links { display: flex; gap: 24px; justify-content: center; align-items: center; flex-wrap: wrap; }
.nav__cta { flex: none; justify-self: end; }
.navlink { font-family: var(--font-mono); font-size: 14px; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; }
.navlink:hover { text-decoration-color: var(--color-link-underline-hover); }
.navlink[aria-current="page"] { color: var(--ref-cream); text-decoration-color: var(--ref-cream); }

/* --- Language switcher --- */
.nav__lang { display: flex; align-items: center; gap: 8px; justify-self: end; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; }
.lang-btn { appearance: none; background: none; border: 0; margin: 0; padding: 2px; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: uppercase; color: var(--color-text-primary); opacity: 0.45; transition: opacity 200ms var(--ease-out); }
.lang-btn:hover { opacity: 0.8; }
.lang-btn.is-active { opacity: 1; }
.lang-btn:focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: 2px; border-radius: 2px; }
.lang-sep { color: var(--color-text-primary); opacity: 0.3; user-select: none; }

/* --- Mobile menu (hidden on desktop) --- */
.nav__toggle { display: none; justify-self: end; width: 40px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--color-text-primary); transition: transform 240ms var(--ease-out), opacity 240ms var(--ease-out); }
.nav--open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav--open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav--open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__mobile { display: none; }
.nav__lang--mobile { justify-self: stretch; }

/* --- Buttons (pills) --- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 26px; border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; line-height: 1;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.btn .dash { opacity: 0.85; }
.btn--sm { height: 40px; padding: 0 20px; font-size: 13px; }
.btn--lg { height: 56px; padding: 0 32px; }
.btn--primary { background: var(--color-action-bg); color: var(--color-action-text); transition: background 200ms var(--ease-out), transform 200ms var(--ease-out); }
.btn--primary:hover { background: var(--color-action-hover); transform: translateY(-2px); }
.btn--secondary { background: transparent; color: var(--color-text-primary); border-color: var(--color-border-subtle); }
.btn--secondary:hover { border-color: var(--ref-cream); color: var(--ref-cream); }

/* --- Text link --- */
.tlink { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 14px; text-decoration: underline; text-decoration-color: var(--color-border-strong); text-underline-offset: 4px; }
.tlink:hover { text-decoration-color: var(--color-link-underline-hover); }
.tlink .dash { opacity: 0.7; }

/* --- Status pill + bracket list --- */
.status { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-primary); }
.status i { width: 8px; height: 8px; border-radius: var(--radius-pill); background: var(--color-status); box-shadow: 0 0 10px var(--color-status); }
.bracket-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.bracket-list li { font-family: var(--font-mono); font-size: 15px; color: var(--color-text-primary); }
.bracket-list b { color: var(--color-text-secondary); font-weight: 400; }

/* --- Media / glass card --- */
.media-card {
  background: var(--color-overlay-card);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-card); border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-media-card); padding: 28px; color: var(--color-text-primary);
  display: flex; flex-direction: column;
}
.media-card p { color: var(--color-text-primary); -webkit-text-fill-color: currentColor; background-image: none; }

/* --- Hero --- */
.hero { position: relative; min-height: min(88vh, 900px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.28) 34%, rgba(0,0,0,0) 60%); }
.hero__inner { position: relative; z-index: 2; padding: var(--page-gutter); }
.hero__name { font-family: var(--font-display); font-weight: 900; font-size: var(--fs-hero); letter-spacing: -0.02em; line-height: 0.92; color: var(--color-text-primary); margin: 0 0 32px; }
.hero__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }

/* --- Section heading --- */
.sec-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 56px; }
.sec-title { font-size: var(--fs-display-xl); line-height: var(--lh-heading); }
.h1 { font-size: var(--fs-display-l); }
.h2 { font-size: var(--fs-display-m); }

/* --- Portfolio grid + tile --- */
.grid-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tile { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--color-bg-elevated); text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.tile:hover img { transform: scale(1.04); }
.tile__cap { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 20px; background: linear-gradient(to top, rgba(0,0,0,0.72), rgba(0,0,0,0) 55%); opacity: 0; transition: opacity var(--dur-base) var(--ease-out); }
.tile:hover .tile__cap { opacity: 1; }
.tile__cap-inner { transform: translateY(12px); transition: transform var(--dur-base) var(--ease-out); }
.tile:hover .tile__cap-inner { transform: translateY(0); }
.tile__cap-inner { display: flex; flex-direction: column; gap: 4px; }
.tile__brand { display: block; font-family: var(--font-mono); font-weight: 700; font-size: 15px; color: var(--color-text-primary); }
.tile__type { display: block; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-secondary); }
.tile__badges { display: contents; }
.tile__concept { display: none; }
.tile__tag { position: absolute; top: 14px; left: 14px; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ref-cream); border: 1px solid var(--ref-cream); border-radius: var(--radius-pill); padding: 4px 10px; background: rgba(11,11,11,0.6); pointer-events: none; }
.tile__cap { pointer-events: none; }
.tile--static { cursor: default; }
.tile--static:hover img { transform: none; }

/* --- Case block (Work page) --- */
.case { padding-block: var(--section-lg); border-top: 1px solid var(--color-border-subtle); }
.case:first-of-type { border-top: none; padding-top: 0; }
.case__head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.case__title { display: flex; align-items: baseline; gap: 16px; font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 4vw, 52px); letter-spacing: -0.02em; line-height: 1; color: var(--color-text-primary); }
.case__title small { font-family: var(--font-mono); font-weight: 400; font-size: 13px; letter-spacing: 0.04em; color: var(--color-text-secondary); }
.case__meta { font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-secondary); }
.case__hero { aspect-ratio: 16 / 9; margin-bottom: 20px; }
.case__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .case__row { grid-template-columns: repeat(2, 1fr); } }

/* --- CONCEPT marker on every work image --- */
.stream-fig { position: relative; width: 100%; }
.grid-tiles--portfolio .tile::after {
  content: "Concept"; position: absolute; z-index: 4; top: 14px; right: 14px;
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ref-cream); border: 1px solid var(--ref-cream); border-radius: var(--radius-pill);
  padding: 4px 10px; background: rgba(11,11,11,0.6); pointer-events: none;
}

/* --- Concept disclaimer line --- */
.disclaimer { font-family: var(--font-mono); font-size: 12px; line-height: 1.6; color: var(--color-text-secondary); max-width: 72ch; margin-top: 32px; }

/* --- CaseStudyHeader (component; add .case-header--client to hide the badge) --- */
.case-header__eyebrow { display: block; font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-text-secondary); margin-bottom: 24px; }
.case-header__titlerow { margin: 0; }
.case-header__titlerow .h1 { display: inline; margin: 0; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.case-badge { display: inline-block; vertical-align: middle; margin-left: 16px; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-secondary); border: 1px solid var(--color-border-strong); border-radius: var(--radius-pill); padding: 5px 12px; background: transparent; white-space: nowrap; }
.case-header--client .case-badge { display: none; }
.case-header__sub { font-family: var(--font-mono); font-size: 16px; line-height: 1.6; color: var(--color-text-secondary); max-width: 420px; margin: 20px 0 0; }
.case-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; border-top: 1px solid var(--color-border-subtle); padding-top: 18px; margin-top: 40px; }
.case-meta__item { display: flex; flex-direction: column; gap: 6px; }
.case-meta dt { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: oklch(from var(--ref-cream) l c h / 0.45); }
.case-meta dd { margin: 0; font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.01em; color: var(--color-text-primary); }
.case-meta__note { grid-column: 1 / -1; }
.case-meta__note dd { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.01em; color: var(--color-text-secondary); white-space: nowrap; }
@media (max-width: 560px) { .case-meta__note dd { white-space: normal; } }

/* --- Editorial list row --- */
.list-row { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 24px; align-items: baseline; padding: 40px 0; border-top: 1px solid var(--color-border-subtle); text-decoration: none; color: inherit; transition: background var(--dur-base) var(--ease-out); }
.list-row:hover { background: oklch(from var(--ref-cream) l c h / 0.04); }
.list-row:hover .list-row__meta:last-child { color: var(--color-focus-ring); }
.list-row:last-child { border-bottom: 1px solid var(--color-border-subtle); }
.list-row__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 3vw, 40px); letter-spacing: -0.015em; line-height: 1; color: var(--color-text-primary); }
.list-row__meta { font-family: var(--font-mono); font-size: 14px; color: var(--color-text-secondary); }

/* --- Next-case navigation --- */
.next-case-section { padding-top: 0; padding-bottom: 56px; }
.case-disclaimer { margin: 24px 0 0; font-family: var(--font-mono); font-size: 13px; line-height: 1.6; letter-spacing: 0.01em; color: var(--color-text-secondary); white-space: nowrap; }
@media (max-width: 560px) { .case-disclaimer { white-space: normal; } }
.next-case { display: flex; flex-direction: column; gap: 12px; padding: 32px 0; border-top: 1px solid var(--color-border-subtle); border-bottom: 1px solid var(--color-border-subtle); text-decoration: none; color: inherit; }
.next-case__label { font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-text-secondary); }
.next-case__row { display: flex; align-items: baseline; gap: 18px; }
.next-case__name { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 4vw, 52px); letter-spacing: -0.02em; line-height: 1; color: var(--color-text-secondary); transition: color 200ms var(--ease-out); }
.next-case__arrow { font-family: var(--font-mono); font-size: clamp(20px, 3vw, 34px); line-height: 1; color: var(--color-text-secondary); transition: color 200ms var(--ease-out), transform 200ms var(--ease-out); }
.next-case:hover .next-case__name, .next-case:focus-visible .next-case__name { color: var(--color-text-primary); }
.next-case:hover .next-case__arrow, .next-case:focus-visible .next-case__arrow { color: var(--color-text-primary); transform: translateX(6px); }
.next-case, .next-case:hover, .next-case:focus, .next-case:focus-visible { text-decoration: none; }
.next-case:focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: 8px; }
@media (prefers-reduced-motion: reduce) { .next-case__arrow { transition: color 200ms var(--ease-out); } }

/* --- Services strip --- */
.services { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.services li { list-style: none; font-family: var(--font-mono); font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-primary); }
.services li::before { content: "— "; color: var(--color-text-secondary); }

/* --- Make-list (single inline line, wraps naturally, middot separator) --- */
.make-list { display: flex; flex-wrap: wrap; align-items: baseline; margin: 0; padding: 0; }
.make-list li { list-style: none; font-family: var(--font-mono); font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-primary); }
.make-list li:not(:first-child)::before { content: "\00a0\00b7\0020"; color: var(--color-text-secondary); }

/* --- Tools marquee --- */
.marquee { overflow: hidden; width: 100%; -webkit-mask-image: linear-gradient(to right, transparent 0, black 100px, black calc(100% - 100px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, black 100px, black calc(100% - 100px), transparent 100%); }
.marquee__track { display: flex; width: max-content; animation: marquee-scroll 50s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { flex: none; flex-wrap: nowrap; white-space: nowrap; padding-right: 28px; }
.marquee__group li { white-space: nowrap; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee { -webkit-mask-image: none; mask-image: none; } .marquee__track { animation: none; flex-wrap: wrap; } .marquee__group[aria-hidden="true"] { display: none; } .marquee__group { flex-wrap: wrap; white-space: normal; padding: 0 var(--page-gutter); } }

/* --- Phone frame video --- */
.phone { display: inline-flex; flex-direction: column; gap: 12px; align-items: center; }
.phone__frame { position: relative; aspect-ratio: 9 / 16; max-height: 680px; border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-media-card); border: 1px solid var(--color-border-subtle); background: var(--color-bg-darkest); }
.phone__frame video { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.phone__cap { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-secondary); }

/* --- CTA band --- */
.cta-band { display: flex; flex-direction: column; gap: 32px; align-items: flex-start; }

/* --- Packages --- */
.pkg-grid { display: flex; align-items: stretch; gap: 16px; }
.pkg-card { position: relative; flex: 1 1 0; display: flex; flex-direction: column; gap: 20px; padding: 28px; border: 1px solid color-mix(in srgb, var(--ref-ink) 16%, transparent); border-radius: var(--radius-card); background: #ffffff; color: var(--ref-ink); transition: border-color 250ms var(--ease-out), transform 250ms var(--ease-out); }
.pkg-card--featured { border: 2px solid var(--img-lavender); background: #ffffff; transform: translateY(-10px); }
/* Hover: steady lavender wash (multiply keeps black text legible) that holds while hovered */
.pkg-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; background: var(--img-lavender); mix-blend-mode: multiply; transition: opacity 700ms var(--ease-out); }
/* Diagonal light that sweeps across once on enter, then fades */
.pkg-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; background: linear-gradient(115deg, transparent 0%, var(--img-lavender) 40%, var(--img-lavender) 60%, transparent 100%); background-size: 250% 100%; background-position: 150% 0; mix-blend-mode: multiply; }
@media (hover: hover) {
  .pkg-card:hover { border-color: var(--img-lavender); transform: translateY(-5px); }
  .pkg-card--featured:hover { transform: translateY(-15px); }
  .pkg-card:hover::before { opacity: 0.45; }
  .pkg-card--featured:hover::before { opacity: 0.5; }
  .pkg-card:hover::after { animation: pkg-sweep 700ms var(--ease-out) forwards; }
  .pkg-card:hover .pkg-request { color: var(--ref-ink); }
  .pkg-card:hover .pkg-request::after { transform: translateX(4px); }
}
@keyframes pkg-sweep { 0% { background-position: 150% 0; opacity: 0.5; } 100% { background-position: -50% 0; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pkg-card, .pkg-card--featured { transition: border-color 250ms var(--ease-out); transform: none; } .pkg-card:hover, .pkg-card--featured:hover { transform: none; } .pkg-card:hover::before, .pkg-card:hover::after { opacity: 0; animation: none; } .pkg-card--featured { transform: translateY(-10px); } }
.pkg-request { font-family: var(--font-mono); font-size: 14px; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ref-ink) 30%, transparent); text-underline-offset: 4px; color: color-mix(in srgb, var(--ref-ink) 60%, transparent); transition: color 220ms var(--ease-out); align-self: flex-start; }
.pkg-card--featured .pkg-request { text-decoration-color: var(--img-lavender); }
.pkg-request:hover, .pkg-request:focus-visible { color: var(--ref-ink); }
.pkg-request:focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: 3px; border-radius: 2px; }
.pkg-request::after { content: '\2192'; display: inline-block; margin-left: 8px; transition: transform 220ms var(--ease-out); }

/* --- Closing CTA + Contact band --- */
.end-band__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding-block: 24px; }
.end-band__rule { width: 100%; height: 0; border: 0; border-top: 1px solid var(--color-border-subtle); margin: 8px 0; }
.end-band__contact { width: 100%; }
.email-control { display: inline-flex; align-items: center; flex-wrap: wrap; column-gap: 10px; row-gap: 8px; max-width: 100%; min-width: 0; }
.email { font-family: var(--font-mono); font-size: 14px; border-bottom: 1px solid var(--color-link-underline-hover); overflow-wrap: anywhere; user-select: text; cursor: text; }
.email-copy { appearance: none; min-height: 44px; padding: 0 14px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-pill); background: transparent; color: inherit; font-family: var(--font-mono); font-size: 12px; cursor: pointer; }
.email-copy:hover { border-color: var(--color-link-underline-hover); }
.email-copy:focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: 2px; }
@media (max-width: 640px) { .end-band__inner .btn { width: 100%; justify-content: center; } }
@media (max-width: 900px) { .pkg-card--featured { order: 0; } }
.pkg-badge { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); z-index: 2; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; white-space: nowrap; color: var(--ref-ink); background: var(--img-lavender); padding: 5px 14px; border-radius: var(--radius-pill); }
.pkg-card__head { display: flex; align-items: baseline; gap: 12px; }
.pkg-card__n { font-family: var(--font-mono); font-size: 13px; color: color-mix(in srgb, var(--ref-ink) 55%, transparent); }
.pkg-card__name { font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: -0.01em; color: var(--ref-ink); }
.pkg-card__tagline { font-family: var(--font-mono); font-size: 14px; line-height: 1.6; color: color-mix(in srgb, var(--ref-ink) 65%, transparent); margin: 0; }
.pkg-feats { flex: 1 1 auto; list-style: none; margin: 0; padding: 20px 0; display: flex; flex-direction: column; gap: 20px; border-top: 1px solid color-mix(in srgb, var(--ref-ink) 14%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--ref-ink) 14%, transparent); }
.pkg-feat__main { font-family: var(--font-mono); font-size: 15px; font-weight: 700; color: var(--ref-ink); }
.pkg-feat__note { display: block; font-family: var(--font-mono); font-size: 13px; line-height: 1.5; color: color-mix(in srgb, var(--ref-ink) 50%, transparent); margin-top: 4px; }
.pkg-delivery { display: flex; flex-direction: column; gap: 4px; }
.pkg-delivery__label { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: color-mix(in srgb, var(--ref-ink) 45%, transparent); }
.pkg-card__timeline { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ref-ink); }
.pkg-note { max-width: 60ch; margin: 40px 0 0; display: flex; flex-direction: column; gap: 8px; }
.pkg-note h3 { margin: 0; }
.pkg-note p { font-family: var(--font-mono); font-size: 14px; line-height: 1.6; color: var(--color-text-secondary); margin: 0; }
@media (max-width: 900px) { .pkg-grid { flex-direction: column; gap: 40px; } }

.proc-callout { margin: 20px 0 8px; padding: 24px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-card); background: var(--color-bg-elevated); }
.proc-callout__title { font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-primary); margin: 0 0 12px; }
.proc-callout__body { font-family: var(--font-mono); font-size: 15px; line-height: 1.7; color: var(--color-text-secondary); margin: 0 0 16px; max-width: 68ch; }
.proc-callout ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.proc-callout li { position: relative; padding-left: 20px; font-family: var(--font-mono); font-size: 14px; line-height: 1.6; color: var(--color-text-secondary); max-width: 68ch; }
.proc-callout li::before { content: '—'; position: absolute; left: 0; color: var(--color-text-secondary); }

/* --- Footer --- */
.footer { padding: var(--section-md) 0 24px; border-top: 1px solid var(--color-border-subtle); }
.footer.section--invert { border-top: none; padding-top: 0; }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-inline: var(--page-gutter); margin-bottom: var(--section-md); }
.footer__wm { width: 100%; overflow: hidden; line-height: 0.8; user-select: none; }
.footer__wm span { font-family: var(--font-display); font-weight: 900; font-size: var(--fs-hero); letter-spacing: -0.02em; white-space: nowrap; color: var(--color-text-primary); display: inline-block; transform: translateX(-2%); }
.footer__legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-inline: var(--page-gutter); margin-top: 24px; font-family: var(--font-mono); font-size: 12px; color: var(--color-text-secondary); }

.form__microcopy { margin: 0; font-family: var(--font-mono); font-size: 14px; color: var(--color-text-secondary); }

/* --- Before/after slider --- */
.ba { position: relative; aspect-ratio: 4 / 5; overflow: hidden; cursor: ew-resize; user-select: none; background: var(--color-bg-elevated); max-width: 640px; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.ba__after { z-index: 0; }
.ba__before { z-index: 1; clip-path: inset(0 50% 0 0); }
.ba__chip { position: absolute; top: 14px; z-index: 3; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: #fff; background: rgba(0,0,0,0.5); padding: 5px 10px; border-radius: var(--radius-pill); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--color-text-primary); transform: translateX(-1px); z-index: 2; }
.ba__grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 40px; height: 40px; border-radius: var(--radius-pill); background: var(--color-text-primary); color: var(--color-text-inverse); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); box-shadow: var(--shadow-media-card); }

/* --- Case gallery --- */
.gallery-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.gallery-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery img, .gallery-2 img, .gallery-3 img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.stream { display: flex; flex-direction: column; gap: 24px; max-width: 620px; margin-inline: auto; }
.stream img, .stream video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 0; }
.copy { color: var(--color-text-secondary); }

/* --- Scroll reveal --- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero__cards { grid-template-columns: 1fr; }
  .grid-tiles { grid-template-columns: repeat(2, 1fr); }
  .gallery-3 { grid-template-columns: repeat(2, 1fr); }
  .list-row { grid-template-columns: 1fr; gap: 8px; }
  .footer__cols { grid-template-columns: 1fr; }
  .nav { grid-template-columns: auto 1fr auto; }
  .nav__links, .nav__lang:not(.nav__lang--mobile), .nav__cta { display: none; }
  .nav__toggle { display: flex; grid-column: 3; }
  .nav__mobile {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 90;
    display: flex; flex-direction: column; gap: 18px;
    padding: 20px var(--page-gutter) 28px;
    background: var(--color-bg-darkest); border-bottom: 1px solid var(--color-border-subtle);
    max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
    transition: max-height 300ms var(--ease-out), opacity 200ms var(--ease-out);
  }
  .nav--open .nav__mobile { max-height: 80vh; opacity: 1; pointer-events: auto; }
  .nav__mobile .nav__lang { justify-content: flex-start; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--color-border-subtle); }
  .nav__mobile .lang-btn { font-size: 15px; padding: 4px; }
  .nav__mobile .lang-sep { font-size: 15px; }
  .nav__mobile .navlink { font-size: 16px; }
  .nav__mobile .nav__cta-m { align-self: flex-start; margin-top: 4px; }
}

@media (max-width: 640px) {
  .nav { height: 56px; }
  .hero__inner {
    width: 100%;
    box-sizing: border-box;
    padding-inline: 30px;
  }
  .hero__name {
    font-size: calc(var(--fs-hero) * 0.9);
    margin-bottom: 24px;
  }
  .hero__cards {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    box-sizing: border-box;
    gap: 13px;
    align-items: start;
  }
  .hero__cards > .media-card {
    width: 100%;
    box-sizing: border-box;
    height: auto;
    min-height: 0;
    align-self: start;
    padding: 20px 22px;
  }
  .hero__cards > .media-card:nth-child(-n+2) { padding-block: 17px; }
  .hero__cards > .media-card:nth-child(2) .status { margin-bottom: 8px !important; }
  .hero__cards > .media-card:nth-child(2) .bracket-list { gap: 4px; }
  .hero__cards > .media-card:nth-child(3) p { margin-bottom: 12px !important; }
  .grid-tiles--portfolio .tile::after { content: none; }
  .grid-tiles--portfolio .tile__cap {
    justify-content: flex-end; text-align: right;
    padding-right: 14px; padding-bottom: 46px;
  }
  .grid-tiles--portfolio .tile__badges {
    position: absolute; z-index: 4; inset: 0; width: 100%; height: 100%;
    box-sizing: border-box; padding: 14px;
    display: flex; flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; align-items: flex-start;
    gap: 7px; pointer-events: none;
  }
  .grid-tiles--portfolio .tile__badges > .tile__tag,
  .grid-tiles--portfolio .tile__badges > .tile__concept {
    position: static; width: fit-content; flex-shrink: 0; max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
  }
  .grid-tiles--portfolio .tile__badges > .tile__concept {
    display: inline-block; position: absolute; bottom: 19px; left: 19px; margin: 0;
    max-width: calc(100% - 38px);
    font-family: var(--font-mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--ref-cream); border: 1px solid var(--ref-cream); border-radius: var(--radius-pill);
    padding: 1.5px 3.75px; background: rgba(11,11,11,0.6);
  }
}

/* --- THE THINKING (image + short text, alternating) --- */
.think { display: grid; gap: 80px; }
.think__row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.think__row--flip .think__media { order: 2; }
.think__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: var(--color-bg-elevated); }
.think__h { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-display-m); line-height: var(--lh-heading); letter-spacing: -0.015em; margin: 0 0 20px; color: var(--color-text-primary); }
.think__p { font-family: var(--font-mono); font-size: 16px; line-height: 1.7; color: var(--color-text-secondary); max-width: 46ch; margin: 0; }
@media (max-width: 900px) { .think { gap: 48px; } .think__row { grid-template-columns: 1fr; gap: 24px; } .think__row--flip .think__media { order: 0; } }

/* --- CampaignGallery (DS component) — uniform 4:5 tiles, 2-col rhythm --- */
.campaign-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.campaign-gallery__item { display: block; position: relative; overflow: hidden; background: var(--color-bg-elevated); aspect-ratio: 4 / 5; cursor: zoom-in; }
.campaign-gallery__item img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform var(--dur-slow) var(--ease-out); }
.campaign-gallery__item:hover img { transform: scale(1.03); }
.campaign-gallery__video { display: block; position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: inherit; background: var(--color-bg-darkest); }
.campaign-gallery__video video { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.campaign-gallery__video .campaign-gallery__sound { position: absolute; bottom: 14px; right: 14px; z-index: 2; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: rgba(0,0,0,.5); padding: 5px 10px; border-radius: 9999px; pointer-events: none; }
@media (max-width: 900px) { .campaign-gallery { grid-template-columns: 1fr; } }

/* --- Lightbox overlay --- */
.lb-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(11,11,11,0.92); display: none; align-items: center; justify-content: center; padding: 40px; cursor: zoom-out; }
.lb-overlay.open { display: flex; }
.lb-overlay img { max-width: 92vw; max-height: 92vh; object-fit: contain; box-shadow: var(--shadow-media-card); }

/* --- START A PROJECT: traveling iridescent gradient rim --- */
.btn--primary {
  position: relative; isolation: isolate;
  background: var(--ref-ink); border-color: transparent;
}
.btn--primary, .btn--primary * {
  color: var(--ref-cream) !important; -webkit-text-fill-color: var(--ref-cream) !important;
  background-image: none;
}
.btn--primary::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 2px;
  background-image: linear-gradient(100deg, oklch(0.60 0.21 300), oklch(0.63 0.17 275), oklch(0.66 0.15 200), oklch(0.70 0.16 175), oklch(0.60 0.21 300));
  background-size: 280% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: cta-rim 5s linear infinite;
}
@keyframes cta-rim { to { background-position: 280% 0; } }
.btn--primary:hover { background: var(--ref-ink); transform: translateY(-3px); }
.btn--primary:hover::before { filter: saturate(1.35) brightness(1.2); animation-duration: 3s; }
@media (prefers-reduced-motion: reduce) { .btn--primary::before { animation: none; } }

/* Package content: intrinsic height, aligned delivery blocks, safe badge wrapping. */
.pkg-card { min-width: 0; }
.pkg-card__head { flex-wrap: wrap; }
.pkg-card__footer { margin-top: auto; display: grid; grid-template-rows: 1fr auto; gap: 20px; }
.pkg-badge { max-width: calc(100% - 28px); white-space: normal; text-align: center; }
.pkg-card--featured { padding-top: 40px; }
.pkg-card__timeline, .pkg-request, .pkg-feat__main, .pkg-feat__note { overflow-wrap: anywhere; }
@media (min-width: 901px) {
  .pkg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto 1fr auto auto; column-gap: 16px; row-gap: 20px; }
  .pkg-card { display: grid; grid-template-rows: subgrid; grid-row: span 5; }
  .pkg-card__footer { grid-template-rows: subgrid; grid-row: span 2; margin-top: 0; }
  .pkg-card__footer > .pkg-request { align-self: end; justify-self: start; }
  .pkg-card--featured .pkg-card__footer { transform: translateY(10px); }
}

/* Process copy: keep intrinsic height and existing typography. */
.proc-callout__closing { margin: 16px 0 0; }
.process-note { margin: 24px 0 0; line-height: 1.6; }

/* Audit fixes: retain existing desktop composition and controls. */
.stream-fig { margin: 0; }
.ba__labels { position: absolute; z-index: 3; inset: 14px 14px auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 6px; pointer-events: none; }
.ba__labels .ba__chip { position: static; max-width: 100%; overflow-wrap: anywhere; }
.ba__labels .ba__chip:last-child { margin-left: auto; }
.tile:focus-visible .tile__cap { opacity: 1; }
.tile:focus-visible .tile__cap-inner { transform: translateY(0); }
@media (max-width: 640px) {
  .about-bio { grid-template-columns: minmax(0, 1fr) !important; }
  .about-bio > * { min-width: 0; }
  .about-bio p { overflow-wrap: anywhere; }
  body .approach-close { white-space: normal; overflow-wrap: anywhere; width: auto; }
  .case-header__titlerow .h1 { overflow-wrap: anywhere; }
  .grid-tiles--portfolio .tile__cap-inner { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
}
