/* prismic.media — base: tokens, fonts, shell (nav, menu, footer), shared components.
   Values come from the Framer site (crawl/fonts.md, crawl/animations.md, Framer colour tokens). */

@font-face { font-family: "Montserrat"; src: url("/assets/fonts/montserrat-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Mona Sans"; src: url("/assets/fonts/monasans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Finder"; src: url("/assets/fonts/finder.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --red: #cc3333;          /* token e29af459 */
  --red-2: #ce3235;        /* token d8014220 */
  --ink: #231f20;          /* token a765b7b0 / f4891c09 */
  --ink-2: #333336;
  --grey: #8a8a91;
  --silver: #c0c0c0;
  --line: #e6e6e6;
  --paper: #ffffff;
  --paper-2: #f6f6f6;
  --black: #000000;
  --f-body: "Montserrat", system-ui, sans-serif;
  --f-display: "Finder", "Montserrat", system-ui, sans-serif;
  --f-ui: "Mona Sans", "Montserrat", system-ui, sans-serif;
  --gutter: clamp(16px, 2.2vw, 32px);
  --ease-out: cubic-bezier(.44, 0, .05, 1);     /* the site's main tween */
  --ease-nav: cubic-bezier(.24, .2, 0, .99);
  --ease-btn: cubic-bezier(.45, 0, .05, 1);
  --radius-card: 15px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--f-body); font-weight: 400; font-size: 18px; line-height: 1.4; overflow-x: hidden; }
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--red); color: #fff; padding: 10px 16px; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.display { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; line-height: 1; letter-spacing: 0; }
.d-96 { font-size: clamp(48px, 6.7vw, 96px); }
.d-80 { font-size: clamp(40px, 5.6vw, 80px); }
.d-64 { font-size: clamp(36px, 4.5vw, 64px); }
.d-48 { font-size: clamp(30px, 3.4vw, 48px); }
.d-24 { font-size: 24px; }
.t-48 { font-size: clamp(28px, 3.4vw, 48px); line-height: 1.15; }
.t-36 { font-size: clamp(24px, 2.5vw, 36px); line-height: 1.2; }
.t-25 { font-size: clamp(20px, 1.75vw, 25px); line-height: 1.3; }
.t-20 { font-size: 20px; }
.t-18 { font-size: 18px; }
.ui { font-family: var(--f-ui); }
.red { color: var(--red); }

/* ---------- layout ---------- */
.wrap { padding-inline: var(--gutter); }
.section { position: relative; }
.bg-ink { background: var(--ink); color: var(--paper); }
.bg-red { background: var(--red); color: var(--ink); }
.bg-paper { background: var(--paper); color: var(--ink); }

/* ---------- nav bar ---------- */
/* As on Framer: the "prismic" wordmark sits at the top of the page and scrolls away;
   only the burger bar (70 px) is fixed and changes colour per section. */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 70px; display: flex; align-items: center; justify-content: flex-end; padding: 0 var(--gutter); pointer-events: none; }
.nav > * { pointer-events: auto; }
.nav-mark { position: absolute; top: 15px; left: 30px; z-index: 45; font-family: var(--f-body); font-size: 36px; line-height: 1; letter-spacing: -.5px; }
.nav-mark[data-theme="light"] { color: var(--paper); }
.nav-mark[data-theme="dark"] { color: var(--red); }
@media (max-width: 809px) { .nav-mark { left: var(--gutter); font-size: 30px; } }
.burger { width: 56px; height: 40px; border-radius: 6px; display: grid; place-content: center; gap: 6px; transition: background-color .3s; }
.burger span { display: block; width: 36px; height: 2px; background: currentColor; transition: transform .4s cubic-bezier(.25, 0, .07, .99), opacity .4s; }
.nav[data-theme="light"] .burger { color: var(--paper); }
.nav[data-theme="dark"] .burger { color: var(--red); }
.burger:hover { background: var(--red); color: var(--paper) !important; }
.menu-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-4px) rotate(135deg); }
.menu-open .nav-mark { position: fixed; color: var(--paper) !important; z-index: 55; }
.menu-open .burger { color: var(--paper) !important; }

/* ---------- full-screen menu ---------- */
.menu { position: fixed; inset: 0; z-index: 40; background: var(--red); display: flex; align-items: center; padding: 96px var(--gutter) 32px; clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-out); overflow-y: auto; }
.menu[hidden] { display: flex; visibility: hidden; }
.menu-open .menu { clip-path: inset(0); visibility: visible; }
.menu ul { display: grid; gap: 2px; }
.menu a { font-family: var(--f-body); font-size: clamp(40px, 5.6vw, 80px); line-height: 1.05; color: var(--ink); font-variation-settings: "wght" 400; transition: font-variation-settings .4s var(--ease-btn), color .4s; }
.menu a:hover, .menu a[aria-current="page"] { font-variation-settings: "wght" 550; color: var(--paper); }
@media (min-width: 810px) { .menu ul { grid-template-columns: repeat(2, auto); column-gap: 8vw; } }

/* ---------- underline button (G8) ---------- */
.u-btn { position: relative; display: inline-flex; flex-direction: column; padding-bottom: 4px; font-size: 16px; text-transform: uppercase; letter-spacing: .2px; }
.u-label { font-variation-settings: "wght" 400; transition: font-variation-settings .6s var(--ease-btn); }
.u-line { position: absolute; left: 0; bottom: 0; height: 1px; background: currentColor; transition: width .6s var(--ease-btn); }
.u-line-1 { width: 100%; }
.u-line-2 { width: 0; left: auto; right: 0; }
.u-btn:hover .u-label { font-variation-settings: "wght" 700; }
.u-btn:hover .u-line-1 { width: 0; }
.u-btn:hover .u-line-2 { width: 100%; }

/* ---------- category chip ---------- */
.chip { display: inline-block; font-family: var(--f-ui); font-size: 12px; line-height: 1; padding: 6px 12px; border: 1px solid var(--red); border-radius: 999px; }

/* ---------- project card (Image Hover: +39px zoom in a 15px mask, 0.6s) ---------- */
.card { display: grid; gap: 12px; }
.card-media { position: relative; overflow: hidden; border-radius: var(--radius-card); aspect-ratio: 680 / 400; background: var(--ink-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.card:hover .card-media img { transform: scale(1.057); }   /* 680 -> 719 px */
.card-title { font-size: clamp(22px, 2.2vw, 32px); line-height: 1.1; text-transform: uppercase; margin-top: 4px; }
.card-sub { font-size: 14px; color: inherit; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grid-2 { display: grid; gap: 40px var(--gutter); }
@media (min-width: 810px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* ---------- "get in touch" band (index + detail pages) ---------- */
.git { display: grid; gap: 32px; align-items: end; padding: clamp(64px, 9vw, 128px) var(--gutter); }
@media (min-width: 810px) { .git { grid-template-columns: 1fr auto; } }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--paper); display: grid; gap: 40px; padding: 56px var(--gutter) 40px; border-top: 1px solid rgba(255, 255, 255, .08); overflow: hidden; }
@media (min-width: 810px) { .footer { grid-template-columns: 1fr auto 1fr; align-items: start; min-height: 450px; } }   /* Framer footer: 450 px */
.footer-cols { display: flex; gap: clamp(40px, 6vw, 96px); }
.footer .label { font-family: var(--f-ui); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 18px; }
.footer ul { display: grid; gap: 6px; }
.f-link { font-size: 24px; font-weight: 500; opacity: .6; transition: opacity .2s; }
.f-link:hover { opacity: 1; }
.footer-logo { justify-self: center; width: min(190px, 50vw); }   /* Framer: ~190 px at 1440 */
.footer-cta { display: grid; gap: 64px; justify-items: start; }
@media (min-width: 810px) { .footer-cta { justify-self: end; } }
.footer-brief { font-size: 24px; text-transform: uppercase; line-height: 1.2; }

/* ---------- motion base (motion.js adds html.js) ---------- */
.js [data-appear]:not(.in) { opacity: 0; }
.js [data-split]:not(.in) { opacity: 0; }
.js [data-split].split-ready { opacity: 1; }
.tok { display: inline-block; will-change: transform, opacity; }
.js [data-split].split-ready:not(.in) .tok { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .js [data-appear], .js [data-split], .js [data-split] .tok { opacity: 1 !important; transform: none !important; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- progressive blur band (Framer "Progressive Blur", intensity 10) ----------
   Add class "has-blur" to <body> (template bodyClass) to show it at the top and bottom of the viewport. */
.blur-band { position: fixed; left: 0; right: 0; height: 90px; z-index: 30; pointer-events: none; display: none;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.blur-top { top: 0; -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, transparent 100%); }
.blur-bottom { bottom: 0; -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 100%); mask-image: linear-gradient(to top, #000 0%, transparent 100%); }
.has-blur .blur-band { display: block; }
@media (prefers-reduced-motion: reduce) { .blur-band { display: none !important; } }

/* home ("/") */
.is-home .footer { position: relative; z-index: 3; }

/* ---------- fixed Arabic logo + fixed-background hero (panel rides up over it) ---------- */
.hero-fixed { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.hero-fixed img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .25)); }
.hero-spacer { height: 100vh; }
.hero-anchor { height: 2px; }

/* measured on Framer at 1440x900: the mark (with its baked-in line) spans x 0..1050, top ~72vh; docked it is ~120 px wide at the top left */
.logo-fixed { position: fixed; left: 0; top: 72vh; width: 73vw; z-index: 20; transform-origin: left top; will-change: transform; }
@media (max-width: 809px) { .logo-fixed { top: 70vh; width: 92vw; } }
.logo-pop { transform-origin: left center; }
.logo-pop img { width: 100%; height: auto; }
/* while the fixed Arabic mark is docked (top-left, replacing the nav wordmark) */
.dock-trigger { position: absolute; width: 1px; height: 1px; }
/* visibility, not opacity: the nav-mark's own load-in appear animation holds opacity via fill:both */
body:has(.dock-trigger.in) .nav-mark { visibility: hidden; }

/* ---------- overview: white rounded panel that rides up and covers the fixed hero ---------- */
.overview { position: relative; z-index: 2; border-radius: 40px 40px 0 0; padding-block: 36px clamp(64px, 9vw, 120px); }   /* Framer: FOCUS sits ~40 px under the panel edge */
.overview-grid { display: grid; gap: 32px; }
.overview .d-96 { color: var(--red); }
@media (min-width: 810px) { .overview-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.overview-copy { display: grid; gap: 32px; max-width: 46ch; }
@media (min-width: 810px) { .overview-copy { justify-self: end; } }

/* ---------- reels: radius 50 -> 0 in view ---------- */
.reel { padding-block: clamp(24px, 4vw, 56px); }
.reel-video { position: relative; overflow: hidden; border-radius: 50px; aspect-ratio: 16/8; background: var(--ink-2); transition: border-radius .6s var(--ease-btn); }
.reel-video.expand { border-radius: 0; }
.reel-video video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- headline (size steps 40/64/96: thin Montserrat until reached, then Finder) ---------- */
.headline { min-height: 70vh; display: grid; place-content: center; text-align: center; padding: clamp(48px, 8vw, 96px) var(--gutter); }
.headline .display { text-align: center; }
.headline .line { display: block; font-family: var(--f-body); font-weight: 400; font-size: 40px; text-transform: uppercase; }
.headline .line[data-step="2"] { font-family: var(--f-display); }
.process-top .line { display: block; font-family: var(--f-body); font-weight: 400; font-size: 40px; text-transform: uppercase; }
.process-top .line[data-step="2"] { font-family: var(--f-display); }
/* the 40/64/96 step sizes overflow narrow phones (long words like REGIONALLY); cap them below 810px */
@media (max-width: 809px) {
  .headline .line, .process-top .line { font-size: 26px !important; }
  .headline .line[data-step="1"], .process-top .line[data-step="1"] { font-size: 30px !important; }
  .headline .line[data-step="2"], .process-top .line[data-step="2"] { font-size: 36px !important; }
}

/* ---------- what we do ---------- */
.services { padding-block: clamp(56px, 8vw, 96px); }
.services-top, .works-top, .proudly-top, .clients-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); }
.icon-title { display: flex; align-items: center; gap: 14px; }
.deco-icon { width: 28px; height: auto; }
.services-heading { color: var(--red); }
.services-top .u-btn { color: var(--red); }
.services-grid { display: grid; gap: 24px; }
@media (min-width: 810px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.svc-card { position: relative; display: grid; align-content: start; gap: 16px; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--red); border-radius: var(--radius-card); }
.svc-title { font-family: var(--f-body); font-weight: 400; font-size: 22px; text-transform: uppercase; color: var(--red); }
.svc-card p { opacity: .85; }
.svc-view.u-btn { color: var(--paper); opacity: .8; font-size: 13px; }

/* ---------- projects (Works) ---------- */
.works { padding-block: clamp(56px, 8vw, 96px); }
.works .card .chip { justify-self: start; }

/* ---------- decorative Arabic quote strip ---------- */
.quote-strip { background: var(--paper); line-height: 0; }
.quote-img { width: 100%; height: auto; }

/* ---------- process: sticky stacked cards ---------- */
.process { padding-block: clamp(56px, 8vw, 96px) clamp(96px, 12vw, 160px); }
.process-top { max-width: 900px; margin-inline: auto; margin-bottom: clamp(40px, 6vw, 72px); text-align: center; }
.process-top .label { margin-bottom: 12px; opacity: .8; text-align: center; }
.process-stack { display: grid; gap: 24px; }
@media (min-width: 810px) { .process-stack { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.process-card { position: sticky; top: 96px; display: grid; gap: 16px; align-content: start; background: var(--ink); color: var(--paper); border-radius: var(--radius-card); padding: clamp(28px, 3vw, 40px); min-height: 320px; overflow: hidden; }
.process-card .display { color: var(--red); }
.process-icon { position: absolute; width: 90px; right: 24px; bottom: 24px; opacity: .9; }
@media (min-width: 810px) {
  .process-stack > :nth-child(1) { top: 72px; }
  .process-stack > :nth-child(2) { top: 108px; }
  .process-stack > :nth-child(3) { top: 144px; }
}

/* ---------- proudly ---------- */
.proudly { padding-block: clamp(56px, 8vw, 96px); }
.proudly-grid { display: grid; gap: 32px; }
@media (min-width: 810px) { .proudly-grid { grid-template-columns: 1fr 1fr; align-items: center; } }
.proudly-copy { color: var(--ink); }
.proudly-video { border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 4/3; }
.proudly-video video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- clients: FIT + ticker + stat grid (all on the same red band) ---------- */
.clients { padding-block: clamp(56px, 8vw, 96px); overflow: hidden; }
.clients .t-25 { max-width: 46ch; margin-bottom: clamp(32px, 5vw, 56px); }
.ticker { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 25px, #000 calc(100% - 25px), transparent); mask-image: linear-gradient(90deg, transparent, #000 25px, #000 calc(100% - 25px), transparent); }
.ticker-track { display: flex; align-items: center; gap: 85px; padding-inline: 10px; flex-shrink: 0; }
.ticker-logo { flex-shrink: 0; height: 40px; display: flex; align-items: center; }
.ticker-logo img { height: 100%; width: auto; max-width: 140px; object-fit: contain; filter: brightness(0) invert(1); opacity: .9; }

/* stat grid, same band as FIT/ticker above */
.stats-grid { display: grid; gap: 32px; grid-template-columns: repeat(2, 1fr); margin-top: clamp(48px, 7vw, 88px); }
@media (min-width: 810px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-num { color: var(--ink); }
.stat-label { margin-top: 8px; text-transform: uppercase; font-size: 12px; letter-spacing: .5px; opacity: .8; }

@media (prefers-reduced-motion: reduce) {
  .logo-fixed { position: absolute; }
}

/* ---------- fix round 2 (measured against the live Framer page) ---------- */
/* headline lines: Framer steps are 35 / 60 / 80 px */
@media (min-width: 810px) { .headline .line, .process-top .line { line-height: 1.05; } }
/* service cards: tall, title at the top, copy at the bottom, "view works" shows on hover like Framer */
.svc-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 336px; }
.svc-title { font-size: 24px; }
.svc-card p { margin-top: auto; }
.svc-view.u-btn { margin-top: 16px; opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); align-self: flex-start; }
.svc-card:hover .svc-view.u-btn, .svc-card:focus-within .svc-view.u-btn { opacity: .9; transform: none; }
@media (hover: none) { .svc-view.u-btn { opacity: .9; transform: none; } }
/* section heads: WORKS and PROUDLY are red on white, FIT is white on red */
.works-top .display, .proudly-top .display { color: var(--red); }
.works-top .u-btn, .proudly-top .u-btn { color: var(--red); }
.clients, .clients .display, .clients .t-25, .clients-top .u-btn { color: var(--paper); }
.works .card-title { font-family: var(--f-body); font-weight: 400; }
/* stats: thin white Montserrat numbers, label above, thin dividers */
.stat { display: flex; flex-direction: column-reverse; align-items: center; text-align: center; gap: 6px; padding-block: 8px; }
.stat + .stat { border-left: 1px solid rgba(35, 31, 32, .45); }
.stat-num { font-family: var(--f-body); font-weight: 300; text-transform: none; color: var(--paper); font-size: clamp(40px, 4.4vw, 64px); line-height: 1; }
.stat-label { color: var(--paper); margin-top: 0; max-width: 12ch; }
@media (max-width: 809px) { .stat:nth-child(3) { border-left: 0; } }
.svc-title { font-size: clamp(24px, 2.5vw, 36px); }

/* /services */
.sv-header { min-height: 62svh; display: grid; align-content: center; padding: 150px var(--gutter) 60px; }
.sv-header h1 { color: var(--ink); font-size: clamp(34px, 9vw, 96px); }

.sv-video { height: 100svh; padding: 0; overflow: hidden; display: grid; place-items: center; }
.sv-video-frame { width: 100%; height: 100%; overflow: hidden; }
.sv-video-el { width: 100%; height: 100%; object-fit: cover; }

.sv-method { min-height: 85svh; display: grid; justify-items: center; align-content: center; gap: 24px; text-align: center; padding: 80px var(--gutter); }
.sv-eyebrow { text-transform: uppercase; font-size: 13px; letter-spacing: .5px; color: var(--ink); opacity: .7; }
.sv-method-h { color: var(--ink); text-align: center; }

.sv-list-head { padding: 110px var(--gutter) 66px; }
.sv-list-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.sv-list-head-row h2 { color: var(--ink); }
.sv-list-head-row .sv-eyebrow { padding-bottom: 6px; }

.sv-row { padding: clamp(56px, 10.2vw, 146px) var(--gutter); }
.sv-row-in { display: grid; gap: 16px; max-width: 900px; }
.sv-row-desc { max-width: 420px; justify-self: end; text-align: right; opacity: .8; font-size: 15px; }
.sv-dots { display: flex; gap: 6px; justify-self: end; font-size: 20px; line-height: 1; }
.sv-row.bg-red h2, .sv-row.bg-red .sv-row-desc, .sv-row.bg-red .sv-dots { color: var(--ink); }
.sv-row.bg-ink h2, .sv-row.bg-ink .sv-row-desc, .sv-row.bg-ink .sv-dots { color: var(--red); }

@media (max-width: 809px) {
  .sv-row-in { gap: 12px; }
  .sv-row-desc, .sv-dots { justify-self: start; text-align: left; }
}

/* /about — layout measured against the live Framer page (1440 and iPhone 13) */
.ab-hero { min-height: 60svh; display: grid; align-content: center; justify-items: center; text-align: center; gap: 20px; padding: 150px var(--gutter) 60px; }
.ab-hero .sv-eyebrow { font-family: var(--f-display); text-transform: uppercase; color: var(--ink); }
.ab-steps { color: var(--ink); font-size: 35px; font-family: var(--f-body); font-weight: 100; text-transform: none; max-width: 16ch; }
.ab-steps[data-step="1"], .ab-steps[data-step="2"] { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; }
@media (max-width: 809px) { .ab-steps { font-size: clamp(22px, 7vw, 30px) !important; } }

/* about: dark band, white text */
.ab-who { padding: clamp(80px, 12vw, 180px) 0 clamp(64px, 8vw, 120px); }
.ab-about-title { font-family: var(--f-body); font-weight: 400; font-size: 20px; margin-bottom: 16px; }
.ab-tagline { max-width: 900px; margin-bottom: clamp(40px, 5vw, 64px); font-weight: 500; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.35; }
.ab-paras { max-width: 1000px; }
.ab-paras p { font-size: 14px; line-height: 1.45; opacity: .9; }

/* mission / vision / identity: light grey, big red Finder titles */
.ab-pillars-sec { background: var(--paper-2); color: var(--ink); padding: clamp(56px, 8vw, 110px) 0 clamp(24px, 4vw, 48px); }
.ab-pillars { display: grid; gap: clamp(40px, 7vw, 110px); }
.ab-pillar { display: grid; gap: 10px; }
.ab-pillar-title { font-size: clamp(28px, 2.8vw, 40px); }
.ab-pillar p { max-width: 640px; font-size: 14px; }
@media (min-width: 810px) { .ab-pillar { grid-template-columns: 30% 1fr; align-items: start; } }

/* team: label column on the left, fixed-width portrait cards on the right */
.ab-team { background: var(--paper-2); color: var(--ink); padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 100px); }
.ab-group { display: grid; gap: 16px; padding: 0 var(--gutter); margin-top: clamp(32px, 5vw, 72px); }
@media (min-width: 810px) { .ab-group { grid-template-columns: 30% 1fr; } }
.ab-group-title { font-family: var(--f-body); font-size: 16px; color: var(--grey); text-transform: none; letter-spacing: 0; }
.ab-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 810px) { .ab-grid { grid-template-columns: repeat(3, minmax(0, 272px)); gap: 40px 36px; } }
.ab-card { display: grid; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.ab-photo { position: relative; aspect-ratio: 272 / 460; overflow: hidden; background: var(--paper-2); }
.ab-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s cubic-bezier(.17, .89, .32, 1.28); }
.ab-photo.is-ph img { object-fit: contain; padding: 18px; }
.ab-card:hover .ab-photo img { transform: scale(1.2); }
.ab-card figcaption { display: grid; gap: 4px; }
.ab-name { font-family: var(--f-body); font-weight: 400; font-size: 14px; color: var(--ink); }
.ab-role { font-size: 12px; color: var(--grey); }
/* hero headline: Framer shows it in Finder at ~52 px from the start (3 lines at 1440) */
.ab-title { color: var(--ink); font-size: clamp(30px, 3.6vw, 52px); max-width: 22ch; line-height: 1.05; }

/* /contact */
.ct-hero { padding: 0; height: 70svh; min-height: 380px; overflow: hidden; }
.ct-hero-img { width: 100%; height: 100%; object-fit: cover; }

.ct-intro { padding: clamp(40px, 6vw, 72px) 0 0; }
.ct-intro-in { display: grid; gap: 16px; justify-items: center; text-align: center; max-width: 760px; margin: 0 auto; }
.ct-intro-in p { opacity: .85; }

.ct-cards { padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 9vw, 120px); }
.ct-cards-grid { display: grid; gap: 56px; justify-items: center; text-align: center; }
@media (min-width: 810px) { .ct-cards-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.cc-card { display: grid; gap: 14px; justify-items: center; max-width: 280px; }
.cc-icon { width: 32px; height: 32px; color: var(--red); }
.cc-desc { color: var(--grey); }
.cc-link { position: relative; display: inline-block; padding-bottom: 6px; font-family: var(--f-body); font-weight: 500; color: var(--ink); transition: color .4s var(--ease-btn); }
.cc-link::after { content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 12px; background: var(--red); transition: width .4s var(--ease-btn); }
.cc-link:hover { color: var(--red); }
.cc-link:hover::after { width: 100%; }

/* /work, the 8 category pages, and the case-study detail template (/work/<slug>) */

/* ---------- index / category hero ----------
   Framer measured (1440x900): hero h 466, h1 top 300 fs 64, sub right under. Padding-driven, not min-height. */
.wk-hero { padding: clamp(180px, 33vh, 340px) var(--gutter) clamp(28px, 5vh, 48px); display: grid; gap: 12px; }
.wk-sub { font-size: 16px; opacity: .85; }

/* ---------- grid ---------- */
.wk-grid-wrap { padding: 48px var(--gutter) 24px; }
.wk-grid [hidden] { display: none; }   /* [hidden] and .card both (0,1,0): this rule must win to actually hide load-more items */
.wk-more { display: grid; justify-content: center; padding: 40px 0 16px; }
.loadmore { font-family: "Inter", var(--f-body); font-weight: 600; font-size: 14px; padding: 12px 28px; border-radius: 999px; background: rgba(255, 255, 255, .08); transition: background .3s; }
.loadmore:hover { background: rgba(255, 255, 255, .16); }

/* card overrides scoped to this template's containers (base .card/.chip/.card-title stay foundation defaults elsewhere)
   Framer measured: chip 90x34 pad 10px 20px radius 30px; card title H4 Montserrat 400 uppercase 36px, not Finder; card gap ~16px */
.wk-grid-wrap .card, .wd-more .card { gap: 16px; }
.wk-grid-wrap .chip, .wd-more .chip { padding: 10px 20px; border-radius: 30px; }
.wk-grid-wrap .card-title, .wd-more .card-title { font-family: var(--f-body); font-size: clamp(20px, 2.2vw, 36px); }

/* ---------- case-study header ----------
   Framer measured: hero = exactly 100vh (image and YouTube header alike). */
.wd-hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; }
.wd-hero-media { position: absolute; inset: 0; }
.wd-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.wd-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .65) 100%); pointer-events: none; }
.wd-tag { position: relative; z-index: 1; color: var(--paper); padding: 0 var(--gutter) 40px; max-width: 900px; }
.wd-media-bg { position: relative; width: 100%; height: 100%; background: var(--ink-2); }
.wd-media-bg iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- overview ---------- */
.wd-overview { padding: 56px var(--gutter) 64px; display: grid; gap: 32px; }
@media (min-width: 810px) { .wd-overview { grid-template-columns: 1fr auto; align-items: start; gap: 64px; } }
.wd-ov-main { display: grid; gap: 28px; max-width: 620px; }
.wd-ov-paras { display: grid; gap: 18px; font-size: 16px; line-height: 1.6; color: var(--silver); }
.wd-ov-meta { display: flex; gap: clamp(32px, 6vw, 96px); }
.wd-meta-col .label { font-family: var(--f-ui); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; opacity: .7; margin-bottom: 10px; }
.wd-meta-val { font-size: 20px; }

/* ---------- gallery (Projects section: video/image blocks) ----------
   Framer lays these out 2-up on desktop (measured: image 3 & 4 same top, 680px each, side by side). A lone
   trailing item (odd count) spans both columns instead of leaving an empty cell. */
.wd-gallery { display: grid; grid-template-columns: 1fr; gap: 24px var(--gutter); padding: 0 var(--gutter) 64px; }
@media (min-width: 810px) { .wd-gallery { grid-template-columns: 1fr 1fr; } }
.wd-gallery > *:last-child:nth-child(odd) { grid-column: 1 / -1; }
.wd-block { border-radius: var(--radius-card); overflow: hidden; background: var(--ink-2); }
.wd-block img.wd-block-media { width: 100%; height: auto; }                         /* keeps the image's own aspect ratio (w/h attrs) */
.wd-block video.wd-block-media { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }  /* no natural dims known */

/* ---------- more works ---------- */
.wd-more { padding: 32px var(--gutter) 72px; display: grid; gap: 32px; }
.wd-more-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* 404 */
.nf { min-height: 100svh; display: grid; align-content: center; gap: 40px; padding: 120px var(--gutter); color: var(--paper); }
.nf-back .u-btn { font-size: 20px; }
