/* ==========================================================================
   Keven Pimentel portfolio
   A neutral "studio" shell (the grey seamless from Keven's portrait) that
   becomes each client's environment as you scroll into their work.
   ========================================================================== */

/* ---------- Fonts (local, OFL) ---------- */
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/BricolageGrotesque-var.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/BarlowCondensed-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/Barlow-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Prompt"; src: url("fonts/Prompt-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/Jost-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/Montserrat-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/SourceSans3-var.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }

/* ---------- Stage colour: one animatable property drives canvas + header ---------- */
@property --stage-bg { syntax: "<color>"; inherits: true; initial-value: #E0E0E0; }
@property --nav-ink { syntax: "<color>"; inherits: true; initial-value: #151515; }

:root {
  --shell-bg: #E0E0E0;
  --shell-ink: #151515;
  --shell-muted: #4A4A4A;
  --shell-accent: #2A1BC9;
  --ui: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --gutter: clamp(20px, 4.5vw, 72px);
  --maxw: 1480px;
  --gap: clamp(16px, 2.2vw, 32px);
  --header-h: 68px;
  --stage-bg: var(--shell-bg);
  --nav-ink: var(--shell-ink);
  --nav-accent: var(--shell-accent);
  transition: --stage-bg .55s var(--ease-io), --nav-ink .55s var(--ease-io);
}
html[data-stage="shell"]       { --stage-bg: #E0E0E0; --nav-ink: #151515; --nav-accent: #2A1BC9; }
html[data-stage="iron-age"]    { --stage-bg: #0A0A0B; --nav-ink: #FFFFFF; --nav-accent: #F06550; }
html[data-stage="colorimetry"] { --stage-bg: #000000; --nav-ink: #FFFFFF; --nav-accent: #00ACC2; }
html[data-stage="artefacto"]   { --stage-bg: #EEEADF; --nav-ink: #444444; --nav-accent: #444444; }
html[data-stage="tinifiber"]   { --stage-bg: #D8E5F1; --nav-ink: #24397C; --nav-accent: #3D7EB8; }

/* ---------- Brand environments (scoped tokens) ---------- */
[data-brand="shell"] {
  --bg: #E0E0E0; --surface: #EBEBEA; --ink: #151515; --muted: #474747; --accent: #2A1BC9; --line: rgba(21,21,21,.16);
  --head: var(--ui); --head-w: 680; --head-case: none; --head-track: -.035em; --head-lh: .96;
  --body: var(--ui); --body-w: 400;
  --btn-bg: #151515; --btn-ink: #F2F2F2; --btn-line: #151515;
}
[data-brand="iron-age"] {
  --bg: #0A0A0B; --surface: #151517; --ink: #FFFFFF; --muted: #BDBDC2; --accent: #F06550; --line: rgba(255,255,255,.16);
  --head: "Barlow Condensed", "Arial Narrow", sans-serif; --head-w: 800; --head-case: uppercase; --head-track: -.012em; --head-lh: .9;
  --body: "Barlow", system-ui, sans-serif; --body-w: 600;
  --btn-bg: #F06550; --btn-ink: #0A0A0B; --btn-line: #F06550;
}
[data-brand="colorimetry"] {
  --bg: #000000; --surface: #0E0E0E; --ink: #FFFFFF; --muted: #B4B4B4; --accent: #00ACC2; --line: rgba(255,255,255,.18);
  --head: "Prompt", system-ui, sans-serif; --head-w: 400; --head-case: none; --head-track: -.02em; --head-lh: 1.02;
  --body: "Jost", system-ui, sans-serif; --body-w: 400;
  --btn-bg: #FFFFFF; --btn-ink: #000000; --btn-line: #FFFFFF;
  --spectrum: linear-gradient(90deg, #F5313B 0%, #F06925 25%, #D7E222 50%, #00A472 75%, #00ACC2 100%);
}
[data-brand="artefacto"] {
  --bg: #EEEADF; --surface: #FFFFFF; --ink: #444444; --muted: #5E5A52; --accent: #444444; --line: rgba(68,68,68,.2);
  --head: "Source Sans 3", system-ui, sans-serif; --head-w: 300; --head-case: none; --head-track: .012em; --head-lh: 1.08;
  --body: "Source Sans 3", system-ui, sans-serif; --body-w: 400;
  --btn-bg: transparent; --btn-ink: #444444; --btn-line: #444444;
}
[data-brand="tinifiber"] {
  --bg: #D8E5F1; --surface: #FFFFFF; --ink: #24397C; --muted: #33467A; --accent: #3D7EB8; --line: rgba(36,57,124,.2);
  --head: "Montserrat", system-ui, sans-serif; --head-w: 700; --head-case: none; --head-track: -.025em; --head-lh: 1.02;
  --body: "Montserrat", system-ui, sans-serif; --body-w: 400;
  --btn-bg: #24397C; --btn-ink: #FFFFFF; --btn-line: #24397C;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); background: var(--stage-bg); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font-family: var(--ui); color: var(--shell-ink); background: transparent; font-size: 1.0625rem; line-height: 1.55; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; border-radius: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; background: #151515; color: #fff; padding: 10px 16px; border-radius: 4px; text-decoration: none; }
.skip-link:focus { top: 12px; }

.stage { position: fixed; inset: 0; z-index: -1; background: var(--stage-bg); }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

[data-brand] { color: var(--ink); font-family: var(--body); font-weight: var(--body-w); }
[data-brand] :is(h1, h2, h3) { font-family: var(--head); font-weight: var(--head-w); text-transform: var(--head-case); letter-spacing: var(--head-track); line-height: var(--head-lh); }
/* Every environment paints itself, so text always sits on its own colour.
   Where one environment follows another, a scroll-scrubbed band blends the
   previous colour into the new one: the canvas morphs as you move through it. */
:root { --band: clamp(150px, 30vh, 320px); }
[data-stage-theme] { background-color: var(--bg); }
[data-band] {
  background-image: linear-gradient(to bottom,
    var(--prev-bg) 0,
    color-mix(in oklab, var(--prev-bg) 88%, var(--bg)) calc(var(--band) * .2),
    color-mix(in oklab, var(--prev-bg) 50%, var(--bg)) calc(var(--band) * .5),
    color-mix(in oklab, var(--prev-bg) 12%, var(--bg)) calc(var(--band) * .8),
    var(--bg) var(--band));
  background-repeat: no-repeat;
}
section[data-band] { padding-top: calc(var(--band) + clamp(40px, 7vh, 88px)); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); color: var(--nav-ink); background: color-mix(in srgb, var(--stage-bg) 84%, transparent); -webkit-backdrop-filter: saturate(1.2) blur(14px); backdrop-filter: saturate(1.2) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--nav-ink) 10%, transparent); font-family: var(--ui); }
.header-inner { height: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.wordmark { text-decoration: none; display: flex; align-items: baseline; gap: 12px; white-space: nowrap; }
.wm-name { font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em; font-variation-settings: "opsz" 24; }
.wm-role { font-size: .8rem; opacity: .72; }
.now { display: flex; align-items: center; gap: 10px; font-size: .85rem; opacity: 0; transform: translateY(-4px); transition: opacity .35s ease, transform .35s ease; }
html.has-now .now { opacity: 1; transform: none; }
.now-swatch { width: 10px; height: 10px; border-radius: 50%; background: var(--nav-accent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--nav-ink) 30%, transparent); }
html[data-stage="colorimetry"] .now-swatch { background: conic-gradient(#F5313B, #F06925, #D7E222, #00A472, #00ACC2, #F5313B); }
.site-nav { justify-self: end; }
.nav-list { display: flex; gap: clamp(14px, 2vw, 30px); align-items: center; font-size: .95rem; }
.nav-list a { text-decoration: none; position: relative; padding-block: 6px; }
.nav-list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav-list a:hover::after, .nav-list a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav-email { display: none; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px 0; cursor: pointer; align-items: center; gap: 10px; color: inherit; }
.menu-icon { width: 22px; height: 10px; position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.menu-icon::before { top: 0; } .menu-icon::after { bottom: 0; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(4.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-4.25px) rotate(-45deg); }

@media (max-width: 860px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .now, .wm-role { display: none; }
  .js .menu-toggle { display: inline-flex; }
  .js .nav-list { position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: flex-start; gap: 0; padding: 12px var(--gutter) 28px; background: var(--stage-bg); border-bottom: 1px solid color-mix(in srgb, var(--nav-ink) 14%, transparent); font-size: 1.6rem; font-weight: 600; letter-spacing: -.02em; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s ease, transform .3s var(--ease), visibility 0s .3s; }
  .js .nav-list.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s ease, transform .3s var(--ease); }
  .js .nav-list li { width: 100%; border-bottom: 1px solid color-mix(in srgb, var(--nav-ink) 12%, transparent); }
  .js .nav-list a { display: block; padding: 14px 0; }
  .js .nav-email { display: block; font-size: 1rem; font-weight: 400; border: 0 !important; }
  .no-js .nav-list { gap: 12px; font-size: .85rem; }
  .no-js .wordmark .wm-name { font-size: .95rem; }
}

/* ---------- Buttons & links ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid var(--btn-line); background: var(--btn-bg); color: var(--btn-ink); font-family: var(--ui); font-weight: 600; font-size: .98rem; letter-spacing: -.005em; text-decoration: none; position: relative; overflow: hidden; isolation: isolate; transition: transform .3s var(--ease), color .3s ease; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: translateY(101%); transition: transform .45s var(--ease); }
.btn:hover { color: var(--bg); }
.btn:hover::before { transform: none; }
.btn:active { transform: scale(.98); }
.btn-quiet { --btn-bg: transparent; --btn-ink: var(--ink); --btn-line: var(--ink); }
[data-brand="iron-age"] .btn { border-radius: 0; text-transform: uppercase; font-family: "Barlow Condensed"; font-weight: 800; letter-spacing: .04em; font-size: 1.05rem; }
[data-brand="iron-age"] .btn::before { background: #FFFFFF; }
[data-brand="iron-age"] .btn:hover { color: #0A0A0B; }
[data-brand="colorimetry"] .btn { font-family: "Jost"; font-weight: 500; }
[data-brand="artefacto"] .btn { border-radius: 0; border-width: 1px; font-family: "Source Sans 3"; font-weight: 400; letter-spacing: .08em; font-size: .9rem; text-transform: uppercase; }
[data-brand="tinifiber"] .btn { border-radius: 6px; font-family: "Montserrat"; font-weight: 600; font-size: .92rem; }
[data-brand="tinifiber"] .btn::before { background: #3D7EB8; }
[data-brand="tinifiber"] .btn:hover { color: #fff; }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; }
.text-link:hover { text-decoration-thickness: 3px; }

/* ---------- Reveal choreography (JS only, motion-safe) ---------- */
.js [data-reveal]:not([data-reveal="wipe"]):not([data-reveal="lines"]) { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease) var(--d, 0ms), transform 1s var(--ease) var(--d, 0ms); }
.js [data-reveal="rise"] { transform: translateY(60px) scale(.98); }
.js [data-reveal].is-in:not([data-reveal="wipe"]):not([data-reveal="lines"]) { opacity: 1; transform: none; }
.mask { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.mask > span { display: block; }
.js [data-reveal="lines"] .mask > span { transform: translateY(108%); transition: transform 1.05s var(--ease) var(--d, 0ms); }
.js [data-reveal="lines"] .mask.l2 > span { transition-delay: calc(var(--d, 0ms) + 110ms); }
.js [data-reveal="lines"].is-in .mask > span { transform: none; }
.js [data-reveal="wipe"] { clip-path: inset(10% 10% 10% 10% round 6px); transition: clip-path 1.15s var(--ease) var(--d, 0ms); }
.js [data-reveal="wipe"] :is(img, video) { transform: scale(1.08); transition: transform 1.5s var(--ease) var(--d, 0ms); }
.js [data-reveal="wipe"].is-in { clip-path: inset(0 0 0 0 round 0); }
.js [data-reveal="wipe"].is-in :is(img, video) { transform: none; }

/* ---------- Section heads ---------- */
.section-head { display: grid; gap: 18px; max-width: 62rem; }
.section-head h2 { font-size: clamp(2.6rem, 6.4vw, 6rem); }
.section-head p { font-size: clamp(1.05rem, 1.4vw, 1.3rem); max-width: 44ch; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { overflow-x: clip; min-height: 100svh; display: flex; align-items: flex-end; padding-top: calc(var(--header-h) + clamp(24px, 5vh, 64px)); padding-bottom: clamp(20px, 4vh, 44px); }
.hero-inner { display: grid; gap: clamp(18px, 3.4vh, 40px); }
.hero-eyebrow { font-size: .95rem; color: var(--muted); }
.hero-title { font-size: clamp(2.7rem, 7vw, 8.4rem); font-variation-settings: "opsz" 96; letter-spacing: -.045em; line-height: .9; }
.hero-title .l1 > span { font-weight: 720; font-stretch: 100%; }
.hero-title .l2 > span { font-weight: 300; font-stretch: 75%; letter-spacing: -.012em; color: #333; }
.hero-lower { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 96px); align-items: end; }
.hero-copy { display: grid; gap: 18px; }
.hero-intro { font-size: clamp(1.1rem, 1.45vw, 1.35rem); line-height: 1.45; max-width: 40ch; font-variation-settings: "opsz" 20; }
.hero-support { color: var(--muted); max-width: 40ch; }
.hero-copy .cta-row { margin-top: 8px; }

.hero-index { border-top: 1px solid var(--line); }
.index-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; position: relative; isolation: isolate; transition: padding .5s var(--ease), color .35s ease; }
.index-row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sw-bg); clip-path: inset(0 100% 0 0); transition: clip-path .55s var(--ease); }
.index-row::after { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--sw-bg); box-shadow: 0 0 0 1px rgba(0,0,0,.25); transition: opacity .3s ease; }
.index-name { font-family: var(--sw-font); font-weight: var(--sw-weight); text-transform: var(--sw-case); font-size: clamp(1.5rem, 2.6vw, 2.5rem); line-height: 1; letter-spacing: -.01em; padding-left: 22px; transition: padding .5s var(--ease); }
.index-meta { display: grid; justify-items: end; font-size: .82rem; color: var(--muted); text-align: right; transition: color .35s ease; }
.index-row:hover, .index-row:focus-visible { color: var(--sw-ink); padding-left: 0; }
.index-row:hover::before, .index-row:focus-visible::before { clip-path: inset(0 0 0 0); }
.index-row:hover::after, .index-row:focus-visible::after { opacity: 0; }
.index-row:hover .index-name, .index-row:focus-visible .index-name { padding-left: 20px; }
.index-row:hover .index-meta, .index-row:focus-visible .index-meta { color: var(--sw-ink); opacity: .85; }
.index-row:focus-visible { outline-offset: 2px; }

.proof-strip { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; padding: 16px 22px; border-radius: 14px; background: #000; color: #fff; text-decoration: none; position: relative; overflow: hidden; }
.proof-strip::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #F5313B, #F06925, #D7E222, #00A472, #00ACC2); }
.proof-items { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-family: "Jost", var(--ui); font-size: clamp(1.05rem, 1.6vw, 1.4rem); }
.proof-value { font-weight: 600; font-variant-numeric: tabular-nums; }
.proof-sep { opacity: .45; }
.proof-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; font-size: .85rem; }
.proof-snap { opacity: .72; }
.proof-cta { font-weight: 600; text-decoration: underline; text-underline-offset: .25em; }
.proof-strip:hover .proof-cta { text-decoration-thickness: 2px; }

/* Scroll-linked hero drift: the two sentences part ways as you leave. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-title.is-in .l1 { animation: drift-l linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    .hero-title.is-in .l2 { animation: drift-r linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
  }
}
@keyframes drift-l { to { transform: translateX(-6vw); opacity: .25; } }
@keyframes drift-r { to { transform: translateX(6vw); opacity: .25; } }

/* ---------- Work intro ---------- */
.work-intro { padding-top: clamp(80px, 14vh, 160px); padding-bottom: clamp(32px, 6vh, 72px); }

/* ---------- Chapters (home) ---------- */
.chapter { position: relative; min-height: 100svh; padding-block: clamp(80px, 12vh, 150px); overflow: clip; }
.ch-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: center; }
.ch-text { display: grid; gap: 18px; justify-items: start; position: relative; z-index: 1; }
.ch-logo { margin-bottom: 10px; }
.brand-logo { height: auto; width: auto; max-width: 100%; }
.ch-cat { font-size: .9rem; color: var(--muted); }
.ch-title { font-size: clamp(2.6rem, 5.6vw, 5.6rem); }
.ch-desc { font-size: clamp(1.05rem, 1.25vw, 1.2rem); max-width: 42ch; }
.ch-role { font-size: .95rem; color: var(--muted); }
.ch-role-k { display: inline-block; margin-right: 8px; color: var(--ink); opacity: .85; }
.ch-text .btn { margin-top: 10px; }

/* Iron Age: bold condensed headline, coral rules, the screen creative at full size */
.ch-iron-age .ch-text { grid-column: 1 / span 5; }
.ch-iron-age .ch-media { grid-column: 6 / -1; }
.ch-iron-age .brand-logo { width: clamp(180px, 18vw, 260px); }
.ch-iron-age .ch-title { font-size: clamp(3.2rem, 7.4vw, 7.8rem); }
.ch-iron-age .ch-cat { color: var(--accent); font-family: "Barlow Condensed"; font-weight: 800; letter-spacing: .06em; font-size: 1.05rem; text-transform: uppercase; }
.ch-iron-age .ch-cat::before { content: ""; display: inline-block; width: 36px; height: 3px; background: var(--accent); vertical-align: middle; margin-right: 12px; }
.ch-iron-age .pic-frame { box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 80px -30px rgba(240,101,80,.35); }
[data-brand="iron-age"] .ch-role-k, [data-brand="iron-age"] .case-meta dt { color: var(--accent); }

/* Colorimetry: spectrum boundary, two vertical reels side by side */
.spectrum-strip { height: 5px; background: var(--spectrum, linear-gradient(90deg, #F5313B, #F06925, #D7E222, #00A472, #00ACC2)); transform-origin: left; }
.chapter > .spectrum-strip, .next-case > .spectrum-strip { position: absolute; top: 0; left: 0; right: 0; }
.ch-colorimetry .ch-text { grid-column: 1 / span 5; }
.ch-colorimetry .ch-media { grid-column: 7 / -1; }
.ch-colorimetry .brand-logo { width: clamp(220px, 22vw, 320px); }
.ch-reels { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start; }
.ch-reels .reel-b { margin-top: 18%; }
.ch-metric { display: block; text-decoration: none; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 1.15rem; width: 100%; }
.ch-metric .brand-metric { font-weight: 600; font-size: 1.6rem; }
.ch-metric-note { display: block; font-size: .85rem; color: var(--muted); margin-top: 4px; }
.ch-metric:hover .ch-metric-note { color: var(--ink); }
.brand-metric { font-family: "Jost", var(--ui); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Artefacto: quiet luxury; photograph and text sit side by side, never overlapping */

.ver-panel { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
.ver-photo { position: relative; overflow: hidden; aspect-ratio: 5 / 4; }
.ver-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-credit { position: absolute; left: 16px; bottom: 12px; font-size: .75rem; letter-spacing: .02em; color: #444; background: rgba(238,234,223,.82); padding: 4px 8px; }
.ver-text { display: flex; align-items: center; padding: clamp(40px, 6vw, 96px); }
.ch-artefacto .brand-logo { width: clamp(180px, 16vw, 240px); }
.ch-artefacto .ch-title { font-size: clamp(2.4rem, 4.4vw, 4.4rem); }
.ch-artefacto .ch-cat, .ch-artefacto .ch-role { letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
.ch-film { margin-top: clamp(56px, 9vh, 120px); }
.ch-artefacto .ch-film .vid { max-width: 1160px; margin-inline: auto; }

/* TiniFiber: clean, technical, white media panels, the cable as an oversized edge detail */
.ch-tinifiber .ch-media { grid-column: 1 / span 7; }
.ch-tinifiber .ch-text { grid-column: 8 / -1; padding-left: clamp(0px, 2vw, 32px); }
.ch-tinifiber .ch-title { font-size: clamp(2.3rem, 4vw, 4rem); }
.ch-tinifiber .brand-logo { width: clamp(170px, 15vw, 220px); }
.ch-mini { width: min(220px, 60%); }
.ch-mini .vid figcaption { font-size: .78rem; }
.cable-deco { position: absolute; right: -10%; top: calc(var(--band) * .42); width: min(1500px, 115%); max-width: none; opacity: .16; z-index: 0; pointer-events: none; user-select: none; }
.ch-tinifiber .vid-frame, .case-tinifiber .vid-frame, .case-tinifiber .pic-frame { background: #fff; padding: clamp(6px, .8vw, 12px); border-radius: 10px; box-shadow: 0 1px 0 rgba(36,57,124,.08), 0 24px 48px -28px rgba(36,57,124,.45); }
.ch-tinifiber .vid-frame video, .case-tinifiber .vid-frame video { border-radius: 4px; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .spectrum-strip { animation: grow linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
    .cable-deco { animation: cable linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    .ver-photo img, .ver-hero img { animation: drift-up linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  }
}
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes cable { from { transform: translateX(18%); } to { transform: translateX(-6%); } }
@keyframes drift-up { from { transform: scale(1.08) translateY(3%); } to { transform: scale(1.08) translateY(-3%); } }

/* ---------- Media ---------- */
.pic, .vid { display: grid; gap: 12px; }
.pic-frame, .vid-frame { position: relative; overflow: hidden; }
.pic-frame img { width: 100%; }
.vid-frame { aspect-ratio: var(--ar); background: #000; }
.vid-frame video { width: 100%; height: 100%; object-fit: contain; background: #000; }
figcaption { display: grid; gap: 3px; font-size: .88rem; line-height: 1.45; max-width: 60ch; }
.v-title { font-weight: 600; font-size: .98rem; color: var(--ink); }
.cap { color: var(--ink); }
.cap-label, .cap-format { color: var(--muted); font-size: .84rem; }
.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.zoom-hint { position: absolute; right: 12px; bottom: 12px; font-family: var(--ui); font-size: .78rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.72); color: #fff; opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s var(--ease); }
.zoom:hover .zoom-hint, .zoom:focus-visible .zoom-hint { opacity: 1; transform: none; }
.zoom:focus-visible { outline-offset: -3px; }
.media-missing { display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--surface) 0 12px, transparent 12px 24px); border: 1px dashed var(--line); color: var(--muted); font-size: .85rem; padding: 16px; text-align: center; }

/* Colorimetry's portrait reels never exceed their native sharpness by much */
.vid-portrait { max-width: 400px; }
.ch-reels .vid-portrait { max-width: none; }

/* ---------- Process (home) ---------- */
.process { padding-block: clamp(100px, 16vh, 180px) clamp(60px, 10vh, 120px); }
.process-grid { margin-top: clamp(40px, 6vh, 72px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.process-grid .is-brief:nth-child(1) { grid-column: 1 / span 4; }
.process-grid .is-brief:nth-child(2) { grid-column: 5 / span 4; margin-top: 12%; }
.process-grid .is-frame:nth-child(3) { grid-column: 9 / span 2; margin-top: 4%; }
.process-grid .is-frame:nth-child(4) { grid-column: 11 / span 2; margin-top: 24%; }
.process-grid .pic-frame { border-radius: 6px; }
.process-more { margin-top: clamp(28px, 4vh, 48px); }

/* ---------- Approach ---------- */
.approach { padding-block: clamp(80px, 12vh, 150px); }
.steps { margin-top: clamp(36px, 6vh, 64px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); counter-reset: step; }
.step { padding: 22px clamp(12px, 1.6vw, 28px) 8px 0; display: grid; gap: 14px; align-content: start; }
.step + .step { padding-left: clamp(12px, 1.6vw, 28px); border-left: 1px solid var(--line); }
.step-n { font-size: clamp(3.2rem, 5vw, 5rem); font-weight: 250; font-stretch: 75%; line-height: .8; letter-spacing: -.04em; color: var(--accent); font-variation-settings: "opsz" 96; }
.step h3 { font-size: clamp(1.35rem, 1.8vw, 1.7rem); line-height: 1.08; letter-spacing: -.025em; }
.step p { color: var(--muted); max-width: 32ch; }

/* ---------- About ---------- */
.about { padding-block: clamp(60px, 10vh, 140px); }
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 110px); align-items: start; }
.portrait { position: sticky; top: calc(var(--header-h) + 24px); }
.portrait img { width: 100%; -webkit-mask-image: radial-gradient(ellipse 72% 88% at 50% 42%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 72% 88% at 50% 42%, #000 62%, transparent 100%); }
.about-text { display: grid; gap: 20px; padding-top: clamp(0px, 6vh, 80px); }
.about-text h2 { font-size: clamp(2.4rem, 5vw, 4.8rem); margin-bottom: 12px; }
.about-text > p { max-width: 58ch; font-size: clamp(1.02rem, 1.15vw, 1.14rem); }
.about-text > p:first-of-type { font-size: clamp(1.2rem, 1.6vw, 1.45rem); line-height: 1.4; }
.xp-title { margin-top: 28px; font-size: 1rem !important; letter-spacing: 0 !important; font-weight: 600 !important; }
.xp { border-top: 1.5px solid var(--ink); }
.xp > div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.xp dt { font-weight: 650; letter-spacing: -.01em; }
.xp dd { color: var(--muted); }
.xp-role { display: block; color: var(--ink); }

/* ---------- Contact ---------- */
.contact { padding-block: clamp(90px, 16vh, 200px) clamp(60px, 10vh, 120px); }
.contact h2 { font-size: clamp(2.6rem, 6.6vw, 6.6rem); max-width: 14ch; }
.contact-body { margin-top: 24px; max-width: 46ch; font-size: clamp(1.05rem, 1.35vw, 1.25rem); color: var(--muted); }
.contact-email { display: inline-block; margin-top: clamp(32px, 6vh, 64px); font-size: clamp(1.6rem, 5.4vw, 5.6rem); font-weight: 680; font-stretch: 100%; letter-spacing: -.02em; line-height: 1; font-variation-settings: "opsz" 96; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .6s var(--ease); padding-bottom: 6px; overflow-wrap: anywhere; }
.contact-email:hover, .contact-email:focus-visible { background-size: 100% 2px; }
.contact .cta-row { margin-top: 32px; }

/* ---------- Footer ---------- */
.site-footer { padding-block: 28px 40px; border-top: 1px solid var(--line); font-size: .9rem; background: var(--shell-bg); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-sig { color: var(--muted); }

/* ==========================================================================
   Case study pages
   ========================================================================== */
.case { position: relative; overflow: clip; padding-bottom: clamp(40px, 8vh, 96px); }
.case-hero { padding-top: calc(var(--header-h) + clamp(32px, 7vh, 88px)); padding-bottom: clamp(36px, 6vh, 72px); display: grid; gap: clamp(18px, 2.6vh, 28px); position: relative; z-index: 1; }
.case-back { justify-self: start; font-family: var(--ui); font-size: .9rem; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; opacity: .8; }
.case-back::before { content: ""; width: 18px; height: 1.5px; background: currentColor; transition: width .35s var(--ease); }
.case-back:hover { opacity: 1; }
.case-back:hover::before { width: 30px; }
.case-logo .brand-logo { width: clamp(160px, 16vw, 240px); }
.case-title { font-size: clamp(3.2rem, 10vw, 10rem); }
.case-sub { font-family: var(--head); font-size: clamp(1.4rem, 2.6vw, 2.4rem); line-height: 1.2; max-width: 30ch; letter-spacing: -.01em; }
[data-brand="iron-age"] .case-sub { font-family: "Barlow"; text-transform: none; }
[data-brand="tinifiber"] .case-sub { font-weight: 500; }
[data-brand="artefacto"] .case-sub { font-weight: 300; }
.case-meta { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 3fr) minmax(0, 6fr); gap: var(--gap); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 8px; }
.case-meta dt { font-size: .82rem; color: var(--muted); margin-bottom: 4px; }
.case-meta dd { font-size: 1rem; max-width: 46ch; }
.case-lead { margin-bottom: clamp(40px, 8vh, 96px); position: relative; z-index: 1; }
.case-lead .vid, .case-lead .pic { max-width: 1320px; margin-inline: auto; }

.block { padding-block: clamp(40px, 7vh, 88px); position: relative; z-index: 1; }
.prose { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--gap); }
.prose h2, .feature > h2, .demonstrates h2 { font-size: clamp(1.6rem, 2.6vw, 2.5rem); align-self: start; }
.prose-body { display: grid; gap: 1.1em; max-width: 62ch; font-size: clamp(1.04rem, 1.2vw, 1.16rem); line-height: 1.62; }
@media (min-width: 961px) { .prose h2 { position: sticky; top: calc(var(--header-h) + 28px); } }
.block-head { display: grid; gap: 12px; margin-bottom: clamp(24px, 4vh, 44px); max-width: 60rem; }
.block-head h2 { font-size: clamp(2rem, 3.6vw, 3.4rem); }
.block-head p { max-width: 56ch; color: var(--muted); font-size: 1.08rem; }

.feature { display: grid; gap: clamp(20px, 3vh, 32px); }
.feature .pic { max-width: 1320px; }
.feature-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--gap); font-size: 1.1rem; }
.feature-meta { display: grid; gap: 14px; align-content: start; border-left: 2px solid var(--accent); padding-left: 18px; }
.feature-meta dt { font-size: .82rem; color: var(--muted); }

.seq { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start; }
.seq li { display: grid; gap: 10px; }
.seq-n { font-family: "Barlow Condensed", var(--head); font-weight: 800; text-transform: uppercase; color: var(--accent); letter-spacing: .06em; }
.seq li:nth-child(2) { margin-top: 18%; }

.vid-grid { display: grid; gap: var(--gap); align-items: start; }
.videos-portrait .vid-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.videos-portrait .vid { max-width: none; }
.videos-portrait .vid:nth-child(even) { margin-top: 10%; }
.videos-landscape .vid-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.videos-square .vid-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.fig-grid { display: grid; gap: var(--gap); align-items: start; }
.figures-brief .fig-grid { grid-template-columns: 1fr 1fr; max-width: 1180px; }
.figures-frames .fig-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.figures-pair .fig-grid { grid-template-columns: 1fr 1fr; }

/* Colorimetry results */
.results { padding-top: clamp(24px, 4vh, 48px); }
.results-head { display: grid; gap: 16px; max-width: 64rem; }
.results-head h2 { font-size: clamp(2.6rem, 6vw, 5.6rem); }
.results-head p { max-width: 54ch; font-size: clamp(1.05rem, 1.3vw, 1.25rem); color: var(--muted); }
.results-totals { margin-top: clamp(28px, 5vh, 56px); display: grid; grid-template-columns: auto auto 1fr; gap: clamp(20px, 4vw, 64px); align-items: end; padding-block: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; }
.results-totals::before { content: ""; position: absolute; left: 0; top: -1px; height: 3px; width: 100%; background: var(--spectrum); }
.results-totals .brand-metric { display: block; font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: .95; letter-spacing: -.03em; }
.t-label { display: block; font-size: 1rem; color: var(--muted); margin-top: 6px; }
.t-scope { justify-self: end; text-align: right; color: var(--muted); font-size: .88rem; max-width: 34ch; }
.reels { margin-top: clamp(28px, 5vh, 52px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.reel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 18px; align-items: end; position: relative; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: border-color .3s ease, transform .4s var(--ease); }
.reel:hover { border-color: rgba(255,255,255,.5); }
.reel-thumb img { width: 100%; aspect-ratio: 640 / 1136; object-fit: cover; border-radius: 6px; }
.reel-body { display: grid; gap: 6px; }
.reel-title { font-size: 1.15rem !important; line-height: 1.15 !important; margin-bottom: 8px; }
.reel-date { font-size: .85rem; color: var(--muted); }
.reel-primary { font-size: 1rem; color: var(--muted); }
.reel-primary .brand-metric { display: block; color: var(--ink); font-size: clamp(1.5rem, 2vw, 2rem); line-height: 1.05; }
.reel-secondary { font-size: .8rem; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.reel-link { margin-top: 12px; font-weight: 500; font-size: .92rem; text-decoration: underline; text-underline-offset: .25em; }
.reel-link::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.reel-link:focus-visible { outline: none; }
.reel:has(.reel-link:focus-visible) { outline: 3px solid #fff; outline-offset: 3px; }
.reels-more { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
.reel-small { grid-template-columns: 110px 1fr; align-items: center; }
.reel-small .reel-primary .brand-metric { font-size: 1.35rem; }
.results-role { margin-top: 24px; font-size: .95rem; }
.results-foot { margin-top: 8px; font-size: .84rem; color: var(--muted); max-width: 70ch; }
.more-title { margin-top: clamp(40px, 7vh, 72px); font-size: 1.4rem !important; }
.review-notice { padding: 10px 14px; border: 1px dashed #F06925; color: #F5A05E; font-size: .9rem; }

/* Artefacto */
.ver-hero { position: relative; height: clamp(360px, 72svh, 820px); overflow: hidden; margin-bottom: clamp(40px, 8vh, 96px); }
.ver-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 62%; }
.story-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.story-list li { padding: 24px clamp(16px, 2vw, 32px) 0 0; display: grid; gap: 14px; align-content: start; }
.story-list li + li { padding-left: clamp(16px, 2vw, 32px); border-left: 1px solid var(--line); }
.story-list h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
.story-list p { max-width: 38ch; font-size: 1.06rem; line-height: 1.6; }
.loop-figure { max-width: 1100px; }
.loop-svg { width: 100%; color: var(--ink); overflow: visible; }
.lp-box { fill: var(--surface); stroke: currentColor; stroke-width: 1.2; }
.lp-text { fill: currentColor; font-family: "Source Sans 3", sans-serif; font-size: 19px; }
.lp-line { stroke: currentColor; stroke-width: 1.2; }
.loop-list { display: none; }

/* TiniFiber */
.cable-case { top: calc(var(--header-h) + 12px); right: -18%; width: min(1400px, 110%); opacity: .13; }
.ai { margin-top: clamp(32px, 6vh, 72px); }
.ai-divider { height: 1px; background: var(--line); margin-bottom: clamp(32px, 6vh, 64px); }
.ai-badge { display: inline-block; font-family: var(--ui); font-size: .85rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1.5px dashed var(--ink); margin-bottom: 22px; }
.ai-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.ai-text { display: grid; gap: 16px; }
.ai-text h2 { font-size: clamp(2rem, 3.4vw, 3.2rem); }
.ai-text p { max-width: 48ch; font-size: 1.08rem; }

/* What this demonstrates */
.demonstrates { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--gap); }
.demo-body ul { border-top: 1px solid var(--line); }
.demo-body li { padding: 16px 0 16px 36px; border-bottom: 1px solid var(--line); position: relative; font-size: 1.1rem; }
.demo-body li::before { content: ""; position: absolute; left: 0; top: 1.45em; width: 18px; height: 2px; background: var(--accent); }
[data-brand="colorimetry"] .demo-body li::before { background: var(--spectrum); }
.outcome { margin-top: 28px; font-family: var(--head); font-size: clamp(1.25rem, 1.9vw, 1.7rem); line-height: 1.3; max-width: 40ch; }
[data-brand="iron-age"] .outcome { font-family: "Barlow"; }

/* Contact band + next case */
.case-contact { padding-block: clamp(48px, 8vh, 88px); border-top: 1px solid var(--line); }
.case-contact-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.case-contact-email { font-family: var(--head); font-weight: var(--head-w); font-size: clamp(1.3rem, 2.6vw, 2.4rem); line-height: 1.1; text-decoration: none; overflow-wrap: anywhere; }
.case-contact-email:hover { text-decoration: underline; text-decoration-thickness: 2px; }
[data-brand="iron-age"] .case-contact-email { text-transform: none; font-family: "Barlow"; font-weight: 600; }
.next-case { position: relative; min-height: 70svh; display: flex; align-items: center; }
.next-link { display: grid; gap: 18px; text-decoration: none; padding-block: clamp(80px, 14vh, 160px); }
.next-k { font-family: var(--ui); font-size: .9rem; color: var(--muted); }
.next-name { font-family: var(--head); font-weight: var(--head-w); text-transform: var(--head-case); letter-spacing: var(--head-track); font-size: clamp(3rem, 9vw, 9rem); line-height: var(--head-lh); }
.next-name .mask > span { background: linear-gradient(currentColor, currentColor) 0 92% / 0 3px no-repeat; transition: background-size .7s var(--ease), transform 1.05s var(--ease); display: inline; }
.next-link:hover .next-name .mask > span, .next-link:focus-visible .next-name .mask > span { background-size: 100% 3px; }
.next-desc { font-size: 1.1rem; color: var(--muted); }

/* ---------- Lightbox ---------- */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10,10,10,.96); color: #fff; font-family: var(--ui); }
.lightbox::backdrop { background: rgba(0,0,0,.6); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr; animation: lb-in .35s var(--ease); }
@keyframes lb-in { from { opacity: 0; } }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px var(--gutter); border-bottom: 1px solid rgba(255,255,255,.12); }
.lb-caption { font-size: .92rem; opacity: .85; max-width: 70ch; }
.lb-actions { display: flex; gap: 8px; flex-shrink: 0; }
.lb-actions button { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 9px 16px; cursor: pointer; font-size: .9rem; }
.lb-actions button:hover { background: #fff; color: #000; }
.lb-stage { overflow: auto; display: grid; place-items: center; padding: clamp(12px, 3vw, 40px); }
.lb-img { max-width: 100%; max-height: calc(100vh - 120px); width: auto; height: auto; object-fit: contain; }
.lightbox.is-zoomed .lb-stage { place-items: start; }
.lightbox.is-zoomed .lb-img { max-width: none; max-height: none; }

/* ---------- View transitions between pages ---------- */
@view-transition { navigation: auto; }
.vt-logo-iron-age { view-transition-name: logo-iron-age; }
.vt-logo-colorimetry { view-transition-name: logo-colorimetry; }
.vt-logo-artefacto { view-transition-name: logo-artefacto; }
.vt-logo-tinifiber { view-transition-name: logo-tinifiber; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .reels { grid-template-columns: 1fr 1fr; }
  .videos-portrait .vid-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 18px; }
}
@media (max-width: 960px) {
  .hero { align-items: flex-start; }
  .hero-lower { grid-template-columns: 1fr; }
  .ch-grid { grid-template-columns: 1fr; gap: 36px; }
  .ch-grid > * { grid-column: 1 / -1 !important; }
  .ch-tinifiber .ch-text { order: -1; }
  .ver-panel { grid-template-columns: 1fr; min-height: 0; }
  .ver-text { padding: 40px var(--gutter) 0; }
  .ch-reels .reel-b { margin-top: 24%; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-grid > * { grid-column: auto !important; margin-top: 0 !important; }
  .about-grid { grid-template-columns: 1fr; }
  .portrait { position: static; max-width: 520px; }
  .prose, .demonstrates, .feature-body, .ai-grid { grid-template-columns: 1fr; }
  .case-meta { grid-template-columns: 1fr 1fr; }
  .case-meta > div:last-child { grid-column: 1 / -1; }
  .reels { grid-template-columns: 1fr; max-width: 560px; }
  .reels-more { grid-template-columns: 1fr; }
  .results-totals { grid-template-columns: 1fr 1fr; }
  .t-scope { grid-column: 1 / -1; justify-self: start; text-align: left; }
  .videos-landscape .vid-grid, .videos-square .vid-grid { grid-template-columns: 1fr 1fr; }
  .figures-frames .fig-grid { grid-template-columns: 1fr 1fr; }
  .story-list { grid-template-columns: 1fr; }
  .story-list li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 20px; }
  .loop-svg { display: none; }
  .loop-list { display: grid; gap: 26px; justify-items: start; counter-reset: lp; }
  .loop-list li { border: 1px solid var(--ink); background: var(--surface); padding: 10px 16px; position: relative; }
  .loop-list li + li::before { content: ""; position: absolute; left: 24px; top: -27px; width: 1px; height: 26px; background: var(--ink); }
  .loop-list li:last-child::after { content: "Then back to the first step"; position: absolute; left: 0; top: calc(100% + 8px); font-size: .85rem; color: var(--muted); white-space: nowrap; }
}
@media (max-width: 600px) {
  .hero-title { font-size: clamp(2.5rem, 12.4vw, 4rem); letter-spacing: -.04em; }
  .index-meta { display: none; }
  .proof-strip { padding: 16px; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding-left: 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); margin-top: 18px; }
  .seq, .figures-brief .fig-grid, .figures-pair .fig-grid, .videos-landscape .vid-grid, .videos-square .vid-grid { grid-template-columns: 1fr; }
  .seq li:nth-child(2) { margin-top: 0; }
  .videos-portrait .vid-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .xp > div { grid-template-columns: 1fr; gap: 4px; }
  .case-meta { grid-template-columns: 1fr; }
  .reel { grid-template-columns: 120px 1fr; }
  .results-totals { grid-template-columns: 1fr; gap: 14px; }
  .results-totals .brand-metric { font-size: clamp(2.4rem, 13vw, 3.4rem); }
  .contact-email { font-size: clamp(1.45rem, 8vw, 2.4rem); }
  .chapter { min-height: 0; }
  .ch-mini { width: 60%; }
  .lb-bar { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reduced motion: correct theme instantly, everything visible ---------- */
@media (prefers-reduced-motion: reduce) {
  :root { transition: none; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .js [data-reveal], .js [data-reveal] .mask > span, .js [data-reveal="wipe"], .js [data-reveal="wipe"] :is(img, video) { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  @view-transition { navigation: none; }
}
@media print { .stage, .site-header, .lightbox { display: none; } [data-brand] { background: #fff !important; color: #000 !important; } }

/* ==========================================================================
   v2: summaries, expandable breakdowns, performance panels
   ========================================================================== */

/* Iron Age summary: the flavor-launch video beside lifestyle and flavor photography */
.ia-collage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(10px, 1.2vw, 18px); align-items: start; }
.ia-collage .ia-video { grid-row: span 2; }
.ia-collage .vid-frame { border-radius: 4px; }
.ia-shot { overflow: hidden; border-radius: 4px; }
.ia-shot img { width: 100%; height: 100%; object-fit: cover; }
.ia-shot-a { aspect-ratio: 4 / 5; }
.ia-shot-b { aspect-ratio: 3 / 2; }
.ia-note { grid-column: 1 / -1; font-size: .86rem; color: var(--muted); }
.ch-iron-age .ch-media { grid-column: 6 / -1; }

/* Colorimetry summary: one reel beside the product shelf */
.cm-shelf { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.5fr); gap: clamp(12px, 1.4vw, 20px); align-items: start; }
.cm-reel .vid { max-width: none; }
.cm-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, .9vw, 14px); }
.cm-shelf-note { grid-column: 1 / -1; font-size: .86rem; color: var(--muted); }
.product { display: grid; gap: 8px; align-content: start; }
.product-img { background: #fff; border-radius: 10px; overflow: hidden; aspect-ratio: 1; position: relative; }
.product-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .7s var(--ease); }
.product:hover .product-img img { transform: scale(1.05); }
.product figcaption { display: grid; gap: 2px; }
.product-name { font-size: .9rem; line-height: 1.25; color: var(--ink); }
.product-kind { font-size: .8rem; color: var(--muted); }
.product-sm .product-name { font-size: .76rem; color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 26px); }
[data-brand="colorimetry"] .product-img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--spectrum); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
[data-brand="colorimetry"] .product:hover .product-img::after { transform: none; }

/* ---------- The breakdown pull-down ---------- */
.bd-bar { position: relative; z-index: 5; margin-top: clamp(48px, 8vh, 96px); }
.bd-toggle { --bar-ink: var(--ink); --bar-fill: var(--accent); --bar-fill-ink: var(--bg); position: relative; overflow: hidden; isolation: isolate; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(22px, 3.4vh, 34px) var(--gutter); background: var(--bg); color: var(--bar-ink); border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; text-align: left; font: inherit; transition: color .4s ease, padding .5s var(--ease); }
.bd-toggle::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bar-fill); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease); }
.bd-toggle:hover, .bd-toggle:focus-visible { color: var(--bar-fill-ink); }
.bd-toggle:hover::before, .bd-toggle:focus-visible::before { transform: none; }
.bd-toggle:focus-visible { outline: 3px solid var(--ink); outline-offset: -6px; }
.bd-text { display: grid; gap: 6px; max-width: var(--maxw); }
.bd-label { font-family: var(--head); font-weight: var(--head-w); text-transform: var(--head-case); letter-spacing: var(--head-track); font-size: clamp(1.5rem, 3.4vw, 3rem); line-height: 1; }
.bd-close-label { display: none; }
.bd-sub { font-size: .9rem; opacity: .75; max-width: 70ch; }
.bd-icon { flex: none; display: grid; place-items: center; width: clamp(52px, 5vw, 68px); aspect-ratio: 1; border-radius: 50%; border: 1.5px solid currentColor; transition: transform .6s var(--ease); }
.bd-sheen { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--accent) 22%, transparent) 50%, transparent 70%); transform: translateX(-100%); }
[data-brand="colorimetry"] .bd-sheen { background: linear-gradient(100deg, transparent 30%, rgba(245,49,59,.18) 42%, rgba(215,226,34,.18) 50%, rgba(0,172,194,.2) 58%, transparent 70%); }
[data-brand="colorimetry"] .bd-toggle { --bar-fill: #fff; --bar-fill-ink: #000; border-top: 0; }
[data-brand="colorimetry"] .bd-toggle::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--spectrum); }
[data-brand="artefacto"] .bd-toggle { --bar-fill: #444; --bar-fill-ink: #EEEADF; }
[data-brand="artefacto"] .bd-label { text-transform: none; }
[data-brand="tinifiber"] .bd-toggle { --bar-fill: #24397C; --bar-fill-ink: #fff; }
[data-brand="iron-age"] .bd-toggle { --bar-fill: #F06550; --bar-fill-ink: #0A0A0B; }
@media (prefers-reduced-motion: no-preference) {
  .bd-toggle[aria-expanded="false"] .bd-sheen { animation: sheen 3.6s var(--ease-io) 1.2s infinite; }
  .bd-toggle[aria-expanded="false"] .bd-icon svg { animation: nudge 1.6s ease-in-out infinite; }
}
@keyframes sheen { 0% { transform: translateX(-100%); } 55%, 100% { transform: translateX(100%); } }
@keyframes nudge { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }
.bd-toggle[aria-expanded="true"] { padding-block: 14px; }
.bd-toggle[aria-expanded="true"] .bd-label { font-size: clamp(1.05rem, 1.6vw, 1.35rem); }
.bd-toggle[aria-expanded="true"] .bd-sub { display: none; }
.bd-toggle[aria-expanded="true"] .bd-icon { transform: rotate(180deg); width: 40px; }
.bd-toggle[aria-expanded="true"] .bd-open-label { display: none; }
.bd-toggle[aria-expanded="true"] .bd-close-label { display: inline; }
.bd { display: grid; grid-template-rows: 1fr; }
.js .bd { grid-template-rows: 0fr; transition: grid-template-rows .9s var(--ease); }
.js .bd.is-open { grid-template-rows: 1fr; }
.bd-inner { min-height: 0; overflow: hidden; }
.bd.is-open .bd-inner { padding-top: clamp(24px, 4vh, 56px); }
.no-js .bd-bar { display: none; }
.bd-end { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; padding-block: clamp(32px, 6vh, 72px) clamp(16px, 3vh, 32px); border-top: 1px solid var(--line); margin-top: clamp(24px, 4vh, 48px); }

.chapter.is-expanded .bd-bar { position: sticky; top: var(--header-h); }
.chapter { padding-bottom: clamp(40px, 6vh, 80px); }

/* ---------- Creative direction + galleries ---------- */
.direction { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); align-items: start; }
.direction h2 { font-size: clamp(2.2rem, 4.6vw, 4.4rem); }
.direction-body { display: grid; gap: 1.1em; font-size: clamp(1.06rem, 1.3vw, 1.22rem); line-height: 1.6; max-width: 60ch; }
.direction-body p:first-child::first-line { color: var(--accent); }
.gal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); align-items: start; }
.gal-grid .pic-frame { border-radius: 4px; }
.gallery-lifestyle .gal-1, .gallery-lifestyle .gal-3 { margin-top: 12%; }
.gallery-flavor .gal-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.gallery-flavor .gal-0 { grid-column: span 6; }
.gallery-flavor .gal-1, .gallery-flavor .gal-2, .gallery-flavor .gal-3 { grid-column: span 2; }

/* ---------- Marketing & Performance panel ---------- */
.pf-panel { display: grid; gap: clamp(22px, 3.4vh, 38px); padding: clamp(24px, 4vw, 56px); border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--surface) 70%, var(--bg)); position: relative; overflow: hidden; }
[data-brand="iron-age"] .pf-panel { border-radius: 0; border-top: 3px solid var(--accent); }
[data-brand="colorimetry"] .pf-panel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--spectrum); }
[data-brand="artefacto"] .pf-panel { background: #fff; border-radius: 0; }
[data-brand="tinifiber"] .pf-panel { background: #fff; border-radius: 12px; box-shadow: 0 30px 60px -40px rgba(36,57,124,.45); }
.pf-head { display: grid; gap: 8px; }
.pf-head h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
.pf-desc { font-size: clamp(1.05rem, 1.4vw, 1.3rem); color: var(--accent); }
[data-brand="artefacto"] .pf-desc, [data-brand="colorimetry"] .pf-desc { color: var(--ink); opacity: .85; }
.pf-role { font-size: .9rem; color: var(--muted); }
.pf-role span { margin-right: 8px; color: var(--ink); }
.pf-overview { font-size: clamp(1.1rem, 1.5vw, 1.4rem); line-height: 1.45; max-width: 58ch; }
.pf-blocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.pf-blocks li { display: grid; gap: 10px; align-content: start; padding-top: 16px; border-top: 2px solid var(--accent); }
[data-brand="colorimetry"] .pf-blocks li { border-image: var(--spectrum) 1; }
.pf-blocks h3 { font-size: clamp(1.2rem, 1.6vw, 1.5rem); }
.pf-blocks p { font-size: 1rem; line-height: 1.55; color: var(--muted); }
.pf-module { display: grid; gap: 16px; padding-top: 8px; }
.pf-label { font-family: var(--head); font-weight: var(--head-w); font-size: clamp(1.1rem, 1.6vw, 1.5rem); text-transform: var(--head-case); max-width: none; }
.pf-flow { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 34px; counter-reset: f; }
.pf-flow li { position: relative; }
.pf-flow li span { display: flex; align-items: center; min-height: 64px; padding: 14px 16px; border: 1.5px solid var(--ink); border-radius: 8px; font-weight: 500; line-height: 1.25; background: var(--bg); }
.pf-flow li + li::before { content: ""; position: absolute; left: -30px; top: 50%; width: 24px; height: 1.5px; background: var(--ink); }
.pf-flow li + li::after { content: ""; position: absolute; left: -11px; top: calc(50% - 4px); width: 8px; height: 8px; border-top: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); transform: rotate(45deg); }
.pf-support { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-left: 16px; border-left: 2px dashed var(--line); }
.pf-support-node { padding: 8px 14px; border: 1.5px dashed var(--ink); border-radius: 999px; font-weight: 500; }
.pf-support-note { color: var(--muted); font-size: .9rem; }
.pf-channels { display: grid; grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1.3fr); align-items: center; }
.pf-col { display: grid; gap: 10px; }
.pf-col li { padding: 12px 16px; border: 1.5px solid var(--ink); background: var(--bg); font-weight: 600; }
.pf-out li { background: var(--accent); color: #0A0A0B; border-color: var(--accent); }
.pf-join { height: 100%; min-height: 60px; position: relative; }
.pf-join::before { content: ""; position: absolute; left: 10%; right: 18%; top: 50%; height: 2px; background: var(--ink); }
.pf-join::after { content: ""; position: absolute; right: 16%; top: calc(50% - 5px); width: 10px; height: 10px; border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); transform: rotate(45deg); }
.pf-story { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.pf-story li { display: grid; gap: 8px; align-content: start; padding: 18px; border: 1px solid var(--line); background: var(--bg); }
.pf-step-n { font-size: 2.6rem; font-weight: 200; line-height: 1; }
.pf-story h4 { margin: 0; font-family: var(--head); font-weight: 600; font-size: 1.15rem; }
.pf-story p { font-size: .98rem; line-height: 1.55; }
.pf-outcome { font-family: var(--head); font-size: clamp(1.15rem, 1.7vw, 1.5rem); line-height: 1.35; max-width: 50ch; padding-left: 16px; border-left: 2px solid var(--ink); }
.pf-evidence table { width: 100%; max-width: 760px; border-collapse: collapse; margin-bottom: 8px; }
.pf-evidence :is(th, td) { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.pf-evidence td { text-align: right; }
.pf-fallback { font-size: 1.05rem; padding: 14px 18px; border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--bg) 60%, transparent); }
[data-brand="colorimetry"] .pf-fallback { border-image: var(--spectrum) 1; }
.pf-closing { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .92rem; }
.pf-closing p { font-weight: 600; }
.pf-loop { display: flex; flex-wrap: wrap; gap: 6px 10px; color: var(--muted); }
.pf-loop li + li::before { content: "→"; margin-right: 10px; opacity: .7; }
.pf-loop li:last-child::after { content: "↺"; margin-left: 10px; opacity: .7; }

/* Case page atmosphere image (contained so the source stays sharp) */
.case-atmos { margin-bottom: clamp(32px, 6vh, 72px); }
.atmos { position: relative; max-width: 880px; overflow: hidden; }
.atmos img { width: 100%; }

@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .ia-collage { grid-template-columns: 1fr 1fr; }
  .cm-shelf { grid-template-columns: 1fr; }
  .cm-reel { max-width: 260px; }
  .direction, .pf-blocks, .pf-story { grid-template-columns: 1fr; }
  .pf-flow { grid-auto-flow: row; gap: 26px; }
  .pf-flow li + li::before { left: 24px; top: -22px; width: 1.5px; height: 18px; }
  .pf-flow li + li::after { left: 20.5px; top: -12px; transform: rotate(135deg); }
  .pf-channels { grid-template-columns: 1fr; gap: 0; }
  .pf-join { min-height: 44px; }
  .pf-join::before { left: 24px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; }
  .pf-join::after { left: 20px; right: auto; top: auto; bottom: 6px; transform: rotate(135deg); }
  .gal-grid { grid-template-columns: 1fr 1fr; }
  .gallery-lifestyle .gal-1, .gallery-lifestyle .gal-3 { margin-top: 0; }
  .gallery-flavor .gal-grid { grid-template-columns: 1fr 1fr; }
  .gallery-flavor .gal-0 { grid-column: 1 / -1; }
  .gallery-flavor .gal-1, .gallery-flavor .gal-2, .gallery-flavor .gal-3 { grid-column: auto; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .bd-sub { display: none; }
  .bd-toggle { gap: 12px; }
  .ia-collage { grid-template-columns: 1fr 1fr; }
}

.ia-lead { max-width: 820px; }

/* ==========================================================================
   v3: platforms, animated stats, spacing fixes
   ========================================================================== */
.ch-colorimetry { padding-top: clamp(36px, 6vh, 72px); }
.ch-colorimetry .brand-logo { width: clamp(300px, 34vw, 500px); }
.ch-colorimetry .ch-logo { margin-bottom: 18px; }

.pf-plat-label { font-family: var(--ui); font-size: .82rem; font-weight: 600; letter-spacing: .01em; color: var(--muted); margin-bottom: 14px; }
.pf-platforms ul { display: flex; flex-wrap: wrap; gap: clamp(12px, 1.6vw, 20px); }
.pf-platforms li { display: flex; align-items: center; gap: 14px; padding: 14px 24px 14px 14px; background: #fff; color: #151515; border-radius: 14px; box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 18px 36px -24px rgba(0,0,0,.5); font-family: var(--ui); }
.plat-logo { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px; background: #F4F5F7; }
.plat-logo img { width: 34px; height: 34px; }
.plat-name { font-weight: 650; font-size: clamp(1.1rem, 1.5vw, 1.35rem); letter-spacing: -.01em; }
[data-brand="artefacto"] .pf-platforms li { border-radius: 0; box-shadow: none; border: 1px solid var(--line); }
[data-brand="artefacto"] .plat-logo { border-radius: 0; }

.pf-stats { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: var(--gap); }
.pf-stats-2 { --n: 2; }
.pf-stats li { display: grid; gap: 10px; align-content: start; min-width: 0; }
.pf-stats-wrap > .cap-label { margin-top: 16px; }
.stat-num { font-family: var(--head); font-weight: 800; font-size: clamp(3rem, 5.4vw, 5.8rem); line-height: .9; letter-spacing: -.035em; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
[data-brand="iron-age"] .stat-num { color: var(--accent); }
[data-brand="colorimetry"] .stat-num { font-family: "Jost", var(--ui); font-weight: 600; }
[data-brand="artefacto"] .stat-num { font-weight: 300; letter-spacing: -.02em; }
.stat-bar { height: 3px; background: var(--accent); transform-origin: left; }
[data-brand="colorimetry"] .stat-bar { background: var(--spectrum); }
.js .pf-stats .stat-bar { transform: scaleX(0); transition: transform 1.6s var(--ease); }
.js .pf-stats.is-counted .stat-bar { transform: none; }
.stat-label { font-size: 1rem; line-height: 1.45; color: var(--muted); max-width: 32ch; }
@media (max-width: 960px) {
  .pf-stats, .pf-stats-2 { grid-template-columns: 1fr; gap: 28px; }
  .pf-platforms li { padding: 10px 18px 10px 10px; }
  .plat-logo { width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) { .js .pf-stats .stat-bar { transform: none; } }

/* TiniFiber: Google + LinkedIn playbook */
.pf-stats-4 { --n: 4; }
@media (max-width: 1100px) and (min-width: 961px) { .pf-stats-4 { --n: 2; } }
.pf-dual { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.pf-dual-col { display: grid; gap: 14px; align-content: start; padding: clamp(18px, 2vw, 28px); border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.pf-dual-col h4 { margin: 0; display: flex; align-items: center; gap: 12px; font-family: var(--head); font-weight: 700; font-size: clamp(1.3rem, 1.8vw, 1.7rem); }
.pf-dual-col h4 img { width: 34px; height: 34px; padding: 6px; background: #fff; border-radius: 8px; }
.pf-dual-col > p { line-height: 1.55; }
.pf-chips-label { font-family: var(--ui); font-size: .8rem; font-weight: 600; color: var(--muted); margin-top: 4px; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-chips li { padding: 7px 12px; border: 1.5px solid var(--accent); border-radius: 6px; font-size: .9rem; background: #fff; }
.pf-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 8px; }
.pf-steps li { display: grid; gap: 4px; align-content: start; padding-top: 12px; border-top: 2px solid var(--accent); font-size: .92rem; line-height: 1.45; }
.pf-steps-n { font-family: var(--head); font-weight: 700; font-size: 1.3rem; color: var(--accent); }
.pf-steps strong { font-weight: 700; }
@media (max-width: 960px) { .pf-dual, .pf-steps { grid-template-columns: 1fr; } }

/* TiniFiber summary: wide corporate film first, then the square animated ad */
.tf-media { display: grid; gap: clamp(24px, 3.5vh, 40px); align-content: start; }
.tf-media .ch-mini { width: min(260px, 48%); }
.ch-tinifiber .ch-grid { align-items: start; }
@media (max-width: 960px) { .tf-media .ch-mini { width: min(260px, 62%); } }

/* Colorimetry opens the case studies: short blend from the grey, spectrum strip sits just above the logo */
.ch-colorimetry[data-band] { --band: clamp(110px, 16vh, 170px); padding-top: calc(var(--band) + clamp(36px, 5vh, 56px)); }
.ch-colorimetry[data-band] > .spectrum-strip { top: var(--band); }

/* Portrait caption */
.portrait-cap { display: grid; gap: 4px; margin-top: 14px; padding-top: 14px; border-top: 1.5px solid var(--ink); max-width: 34rem; }
.pc-name { font-size: clamp(1.25rem, 1.7vw, 1.5rem); font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.pc-line { font-size: 1rem; font-weight: 500; color: var(--accent); }
.pc-detail { font-size: .9rem; color: var(--muted); line-height: 1.45; margin-top: 4px; }
@media (min-width: 961px) { .portrait img { width: auto; max-width: 100%; max-height: calc(100svh - var(--header-h) - 190px); } }

.xp-years { display: block; margin-top: 3px; font-size: .84rem; font-weight: 400; letter-spacing: 0; color: var(--muted); }
@media (max-width: 600px) { .xp-years { display: inline; margin-left: 8px; } }

/* KP logo */
.kp-mark, .kp-lockup { display: block; height: auto; fill: currentColor; }
.wordmark { align-items: center; }
.wordmark .kp-mark { width: 44px; flex: none; transition: transform .5s var(--ease); }
.wordmark:hover .kp-mark { transform: translateY(-1px) scale(1.04); }
.footer-inner { align-items: center; }
.footer-logo { display: block; width: 120px; color: var(--ink); flex: none; }
.footer-logo:hover { opacity: .8; }
.contact .wrap { position: relative; }
.contact-sign { position: absolute; right: var(--gutter); top: 0; width: clamp(180px, 24vw, 360px); color: var(--ink); opacity: .9; }
@media (max-width: 960px) {
  .contact-sign { position: static; width: 110px; margin-bottom: 28px; }
}
@media (max-width: 860px) { .wordmark .kp-mark { width: 38px; } }

/* TiniFiber cable: shown clearly, kept in open space away from text */
.cable-deco { opacity: .95; filter: drop-shadow(0 18px 24px rgba(36,57,124,.18)); }
@media (max-width: 640px) { .cable-deco { opacity: .95; } }
.cable-deco { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%); mask-image: linear-gradient(to right, transparent 0, #000 14%); }
.cable-case { top: calc(var(--header-h) + clamp(150px, 22vh, 230px)); right: -20%; width: min(1150px, 64%); }
@media (max-width: 960px) { .cable-case { top: calc(var(--header-h) + 6px); right: -30%; width: 95%; } }

/* Hero identity: opens with Keven's photo, closes with the About portrait */
.hero-id { display: flex; align-items: center; gap: 18px; margin-bottom: 6px; }
.hero-photo { flex: none; width: clamp(92px, 8.5vw, 128px); aspect-ratio: 1; border-radius: 22px; overflow: hidden; box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 22px 40px -22px rgba(0,0,0,.55); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-id-text { display: grid; gap: 3px; }
.hi-name { font-weight: 700; font-size: clamp(1.15rem, 1.5vw, 1.4rem); letter-spacing: -.02em; }
.hi-line { font-size: .92rem; font-weight: 500; color: var(--accent); }
.copy-email.is-copied { color: var(--bg); background: var(--ink); }
