/* Layout: one 1180px editorial column. Each section = narrow label rail + wide content, split by hairlines. Space does the work, the hero type is the one loud thing. */
:root {
  --bg: #0a0b0d;
  --surface: #14171b;
  --fg: #f1f3f6;
  --muted: #8b94a2;
  --line: #22262c;
  --accent: #41a4f5;     /* brand blue, for fills and marks */
  --accent-ink: #6bb8f7; /* brand blue, lighter for small text */
  --on-accent: #06121d;
  --hl: #41a4f5;         /* headline blue */
  --danger: #ff7b72;
  --scrim: rgba(0, 0, 0, 0.92);

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec: clamp(88px, 12vw, 160px);
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { text-wrap: balance; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* Shared bits */
.label {
  font: 500 0.75rem/1.4 var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.h2 {
  font: 600 clamp(1.75rem, 3.4vw, 2.6rem)/1.1 var(--f-display);
  font-stretch: 110%;
  letter-spacing: -0.025em;
  max-width: 18ch;
}
.link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color .2s, color .2s;
}
.link:hover { border-color: var(--accent); color: var(--accent-ink); }
.arrow { display: inline-block; transition: transform .25s var(--ease); }
.link:hover .arrow { transform: translate(3px, -1px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding-inline: 22px;
  border-radius: 999px;
  font: 500 0.95rem/1 var(--f-body);
  border: 1px solid transparent;
  transition: background .2s, border-color .2s, transform .25s var(--ease), box-shadow .25s;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px var(--accent); }
.btn-ghost { border-color: var(--line); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--fg); }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-grid; place-items: center;
  border: 1px solid var(--line); background: transparent; cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
}
.icon-btn:hover { border-color: var(--fg); }
.icon-btn:disabled { opacity: .35; cursor: default; border-color: var(--line); }
.icon-btn svg { width: 18px; height: 18px; }

/* Scroll progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* Section frame: label rail + content */
.sec { padding-block: var(--sec) 0; }
.sec-frame { border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 72px); }
.sec-head {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 14px; margin-bottom: clamp(40px, 5vw, 64px);
}
.sec-head .h2 { margin-inline: auto; }
.sec-head .link { margin-top: 6px; }
.narrow { max-width: 920px; margin-inline: auto; }

/* Nav */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: 0 1px 0 var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; font: 600 0.98rem/1 var(--f-display); font-stretch: 105%; letter-spacing: -0.01em; white-space: nowrap; }
.brand img { width: 28px; height: 28px; border-radius: 50%; transition: transform .6s var(--ease); }
.brand:hover img { transform: rotate(90deg); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 0.92rem; color: var(--muted); }
/* Second menu group (pages outside the landing page), set apart by a thin divider */
.nav-sep { width: 1px; height: 16px; background: var(--line); margin-inline: 8px; }
.nav-links a.nav-alt { font-size: 0.86rem; }
.nav-links a { position: relative; transition: color .2s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--fg); }
.nav-links a.active::after { transform: scaleX(1); }
.nav .btn { height: 40px; padding-inline: 18px; font-size: 0.88rem; }
@media (max-width: 1040px) { .nav-links { display: none; } }

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 96px) 0; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 40px clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-grid > * { min-width: 0; }
.status { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.pulse { position: relative; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--accent); }
.pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--accent); opacity: 0;
}
.hero h1 {
  font: 600 clamp(2.2rem, 4.6vw, 4.1rem)/1.02 var(--f-display);
  font-stretch: 110%;
  letter-spacing: -0.04em;
}
.hero h1 .ln { display: block; white-space: nowrap; }
@media (max-width: 480px) { .hero h1 .ln { white-space: normal; } }
.hero h1 .hl { position: relative; display: inline-block; color: var(--hl); }
.hero h1 .hl::after {
  content: ""; position: absolute; left: 0.02em; right: 0.3em; bottom: -0.04em; height: 0.07em;
  background: var(--hl); border-radius: 1px; transform-origin: left;
}
.hero h1 .soft { color: var(--muted); }
.hero-sub {
  margin-top: 32px;
  max-width: 50ch;
  font-size: clamp(1.05rem, 1.4vw, 1.15rem);
  color: var(--muted);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Showreel card */
.reel {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9; max-width: 100%;
  border-radius: 10px;
  background: var(--surface);
  cursor: zoom-in;
}
.reel video, .reel-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.reel:hover .reel-poster { transform: scale(1.03); }
.reel-ph {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 16px;
  background: repeating-linear-gradient(135deg, var(--line) 0 1px, transparent 1px 14px);
  background-size: 200% 200%;
}
.reel.has-video .reel-ph { display: none; }
.reel-ph .label { background: var(--surface); padding: 6px 10px; border-radius: 4px; }
.reel-top, .reel-bottom {
  position: absolute; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.reel-top { top: 14px; }
.reel-bottom { bottom: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font: 500 0.7rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase;
}
.chip .rec { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.reel .icon-btn {
  width: 38px; height: 38px; border: 0;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.reel:hover .icon-btn { transform: scale(1.08); }
.reel::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.35));
  transition: background .3s;
}
.reel:hover::before { background: rgba(0,0,0,.28); }
.reel-top, .reel-bottom, .reel-time { z-index: 2; }
.reel-play {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 14px 5px 5px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font: 600 0.8rem/1 var(--f-body);
  box-shadow: 0 10px 24px -10px rgba(0,0,0,.6);
  transition: transform .35s var(--ease), padding .35s var(--ease);
}
.play-btn {
  position: relative; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--on-accent); color: var(--accent);
}
.play-btn svg { width: 13px; height: 13px; margin-left: 2px; }
.play-btn::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid var(--on-accent); opacity: 0;
}
.reel:hover .reel-play, .reel:focus-visible .reel-play { transform: translateY(-2px); padding-right: 18px; }
.reel-time { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: color-mix(in srgb, var(--fg) 12%, transparent); }
.reel-time span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
}

.facts {
  margin-top: clamp(64px, 9vw, 112px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.facts > div { padding: 22px 20px 0 0; }
.facts > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.facts b { display: block; font: 600 clamp(1.3rem, 2.2vw, 1.7rem)/1.1 var(--f-display); font-stretch: 110%; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.facts > div > span { display: block; margin-top: 6px; font-size: 0.88rem; color: var(--muted); }
@media (max-width: 760px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div { padding: 20px 12px 20px 0; }
  .facts > div + div { padding-left: 0; border-left: 0; }
  .facts > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Marquee */
.marquee {
  margin-top: clamp(56px, 8vw, 96px);
  border-block: 1px solid var(--line);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; }
.marquee-track ul { display: flex; align-items: center; flex: none; }
.marquee li {
  display: flex; align-items: center; gap: 28px; padding: 18px 14px;
  font: 500 clamp(0.95rem, 1.6vw, 1.15rem)/1 var(--f-display); font-stretch: 112%; letter-spacing: -0.01em;
  color: var(--muted); white-space: nowrap;
}
.marquee li::after { content: ""; width: 7px; height: 7px; border: 1.5px solid var(--accent); transform: rotate(45deg); }

/* Work */
  /* Same height for every image: each card grows in proportion to its image ratio (--r). */
.work-grid { display: flex; align-items: flex-start; gap: 24px; max-width: 1100px; margin-inline: auto; }
.work-card { display: block; flex: var(--r) 1 0; min-width: 0; }
@media (max-width: 760px) { .work-grid { flex-direction: column; gap: 36px; max-width: 520px; } .work-card { width: 100%; } }
.work-media {
  position: relative;
  aspect-ratio: var(--r, 4 / 3); max-width: 100%;
  border-radius: 6px; overflow: hidden;
  background: var(--surface);
}
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.work-card:hover .work-media img, .work-card:hover .ph-inner { transform: scale(1.03); }
.work-media .view {
  position: absolute; right: 14px; bottom: 14px;
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s, transform .3s var(--ease);
}
.work-card:hover .view, .work-card:focus-visible .view { opacity: 1; transform: none; }
.work-meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; }
.work-meta h3 { font: 500 1.02rem/1.3 var(--f-body); }
.work-meta .label { white-space: nowrap; }

/* Image placeholder: replace each .ph-inner block with an <img> */
.ph-inner {
  position: absolute; inset: 0;
  display: grid; place-items: center; text-align: center; padding: 16px;
  background: repeating-linear-gradient(135deg, var(--line) 0 1px, transparent 1px 14px);
  transition: transform .7s var(--ease);
}
.ph-inner .label { background: var(--surface); padding: 6px 10px; border-radius: 4px; }

/* Reviews slider */
.rv-track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 3);
  gap: 24px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.rv-track::-webkit-scrollbar { display: none; }
@media (max-width: 1000px) { .rv-track { grid-auto-columns: calc((100% - 24px) / 2); } }
@media (max-width: 640px) { .rv-track { grid-auto-columns: 86%; gap: 16px; } }
.rv-card {
  scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: space-between; gap: 36px;
  min-height: 250px; padding: clamp(22px, 2.4vw, 28px);
  border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .3s, transform .4s var(--ease);
}
.rv-card:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.rv-card blockquote p {
  font: 500 clamp(1.02rem, 1.3vw, 1.12rem)/1.45 var(--f-display);
  font-stretch: 104%; letter-spacing: -0.01em;
}
.rv-card blockquote p::before { content: "“"; display: block; font-size: 2.6rem; line-height: .6; height: 22px; color: var(--accent); }
.rv-who { display: flex; align-items: center; gap: 12px; }
.rv-who .ini {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--surface); font: 600 0.85rem/1 var(--f-display);
}
.rv-who b { display: block; font-weight: 500; font-size: 0.95rem; }
.rv-who span { display: block; color: var(--muted); font-size: 0.85rem; }
.rv-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 24px; margin-top: 28px; }
.rv-nav { display: flex; align-items: center; gap: 10px; }
.rv-count { font: 500 0.82rem/1 var(--f-mono); color: var(--muted); font-variant-numeric: tabular-nums; min-width: 64px; }
.rv-count b { color: var(--fg); font-weight: 500; }
.rv-bar { flex: 0 1 180px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.rv-bar span { display: block; height: 100%; background: var(--fg); transition: transform .4s var(--ease), width .4s var(--ease); }

/* Services */
.svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 12px 40px; padding-block: 28px; border-bottom: 1px solid var(--line); }
.svc:first-of-type { padding-top: 0; }
.svc h3 { font: 600 1.3rem/1.25 var(--f-display); font-stretch: 108%; letter-spacing: -0.015em; transition: transform .35s var(--ease), color .2s; }
.svc:hover h3 { transform: translateX(6px); }
.svc p { color: var(--muted); max-width: 46ch; }
.tags { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; font: 400 0.78rem/1.5 var(--f-mono); color: var(--fg); }
@media (max-width: 640px) { .svc { grid-template-columns: minmax(0, 1fr); } }

.spec { margin-top: 44px; display: grid; border: 1px solid var(--line); border-radius: 6px; }
.spec > div { display: grid; grid-template-columns: minmax(0, 160px) minmax(0, 1fr); gap: 16px; padding: 16px 20px; }
.spec > div + div { border-top: 1px solid var(--line); }
.spec dd { font-size: 0.95rem; }
.spec .mono { font-family: var(--f-mono); font-size: 0.85rem; }
@media (max-width: 520px) { .spec > div { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* About */
.about { max-width: 920px; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.about img { width: 100%; max-width: 260px; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; transition: transform .6s var(--ease); }
.about img:hover { transform: rotate(-3deg) scale(1.02); }
.about-text { display: grid; gap: 18px; max-width: 58ch; }
.about-text p { color: var(--muted); }
.about-text p:first-child { color: var(--fg); font-size: 1.15rem; }
.kv { margin-top: 20px; display: grid; border-top: 1px solid var(--line); }
.kv > div { display: grid; grid-template-columns: minmax(0, 130px) minmax(0, 1fr); gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.kv dt { color: var(--muted); }
@media (max-width: 720px) { .about { grid-template-columns: minmax(0, 1fr); justify-items: center; } .about img { max-width: 180px; } .about > div { width: 100%; } }

/* Experience */
.xp-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 170px) minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 6px 32px;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}
.xp-row::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.xp-row:hover::before { transform: scaleX(1); }
.xp-row:first-child { padding-top: 0; }
.xp-row time { font: 400 0.82rem/1.7 var(--f-mono); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.xp-row h3 { font: 500 1.02rem/1.45 var(--f-body); }
.xp-row .org { color: var(--muted); font-size: 0.92rem; }
.xp-row p { color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.badge { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font: 500 0.68rem/1.6 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-ink); vertical-align: 2px; }
@media (max-width: 760px) { .xp-row { grid-template-columns: minmax(0, 1fr); } }

.certs { margin-top: 56px; }
.certs h3 { margin-bottom: 16px; }
.certs ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.certs li { padding-block: 10px; border-top: 1px solid var(--line); font-size: 0.95rem; }
.certs li small { color: var(--muted); font-size: 0.85rem; margin-left: 6px; }
@media (max-width: 640px) { .certs ul { grid-template-columns: minmax(0, 1fr); } }

/* Principles */
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; max-width: 1040px; margin-inline: auto; }
.rules li { position: relative; padding-top: 16px; }
.rules li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--fg); transform-origin: left; }
.rules b { display: block; font: 600 1.05rem/1.35 var(--f-display); font-stretch: 105%; margin-bottom: 6px; }
.rules span { color: var(--muted); font-size: 0.93rem; }
@media (max-width: 760px) { .rules { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* Contact */
.contact { padding-block: var(--sec); }
.contact-grid { max-width: 1040px; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px clamp(32px, 5vw, 64px); align-items: start; }
.contact-grid > * { min-width: 0; }
@media (max-width: 980px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact h2 {
  font: 600 clamp(2.3rem, 5vw, 4.2rem)/1 var(--f-display);
  font-stretch: 116%;
  letter-spacing: -0.04em;
  max-width: 10ch;
}
.contact-lede { margin-top: 20px; color: var(--muted); max-width: 40ch; }
.mail-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 36px; }
.mail {
  font: 500 clamp(1.05rem, 1.8vw, 1.3rem)/1.3 var(--f-body);
  border-bottom: 2px solid var(--accent);
  overflow-wrap: anywhere;
}
.copy { height: 34px; padding-inline: 14px; font-size: 0.8rem; }
.phone { margin-top: 14px; color: var(--muted); font-size: 0.92rem; }
.socials { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 36px; }
.socials .link { font-size: 0.95rem; }

.form { display: grid; gap: 18px; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); border-radius: 10px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 8px; min-width: 0; align-content: start; }
.field label { font-size: 0.85rem; font-weight: 500; }
.field label i { font-style: normal; color: var(--accent-ink); }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0;
  padding: 13px 14px;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--fg);
  font: 400 0.95rem/1.4 var(--f-body);
  transition: border-color .2s, background .2s;
  appearance: none; -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 128px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--bg); }
.select { position: relative; }
.select::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.err { font-size: 0.8rem; color: var(--danger); min-height: 0; }
.err:empty { display: none; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 4px; }
.form-note { font-size: 0.82rem; color: var(--muted); }
.form-status { font-size: 0.9rem; }
.form-status:empty { display: none; }

footer { border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 28px; font-size: 0.85rem; color: var(--muted); }
footer a:hover { color: var(--fg); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-links a { border-bottom: 1px solid var(--line); }

/* ---------- Agencies & bilingual pages ---------- */
.page-hero .hero-sub { max-width: 54ch; }
.page-hero h1 { max-width: 14ch; }
.page-hero h1 .ln { white-space: normal; }

/* Engagement models */
.models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 1040px; margin-inline: auto; }
.model { display: grid; align-content: start; gap: 10px; padding: clamp(22px, 2.6vw, 30px); border: 1px solid var(--line); border-radius: 10px; }
.model.is-pref { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.model h3 { font: 600 1.2rem/1.25 var(--f-display); font-stretch: 106%; letter-spacing: -0.01em; }
.model p { color: var(--muted); font-size: 0.95rem; }
.model .badge { margin-left: 0; justify-self: start; }
@media (max-width: 860px) { .models { grid-template-columns: minmax(0, 1fr); max-width: 520px; } }

/* Agency experience with work slots */
.agency-xp { display: grid; gap: 40px; }
.agency-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px 40px; align-items: start; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.agency-row:last-child { border-bottom: 0; padding-bottom: 0; }
.agency-row time { font: 400 0.82rem/1.7 var(--f-mono); color: var(--muted); }
.agency-row h3 { font: 600 1.25rem/1.3 var(--f-display); font-stretch: 106%; margin-top: 6px; }
.agency-row .org { color: var(--muted); font-size: 0.92rem; margin-top: 2px; }
.agency-row p { color: var(--muted); font-size: 0.95rem; margin-top: 12px; max-width: 42ch; }
.slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.slot { position: relative; aspect-ratio: 4 / 3; max-width: 100%; border-radius: 6px; overflow: hidden; background: var(--surface); }
.slot img { width: 100%; height: 100%; object-fit: cover; }
.slot-cap { margin-top: 10px; }
@media (max-width: 760px) { .agency-row { grid-template-columns: minmax(0, 1fr); } }

/* Placeholder work row (bilingual) */
.ph-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 1100px; margin-inline: auto; }
.ph-card .work-media { aspect-ratio: 4 / 3; }
@media (max-width: 760px) { .ph-grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; } }
.note { text-align: center; color: var(--muted); font-size: 0.88rem; margin-top: 28px; }

/* Bilingual specimen: Latin and Arabic at one size, on guides placed from Readex Pro's real metrics
   (line-height 1, ascent 1em, descent .25em => baseline sits .375em below the centre line). */
.specimen {
  position: relative; aspect-ratio: 16 / 10; max-width: 100%;
  border-radius: 10px; overflow: hidden;
  background: var(--surface);
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
}
.specimen .guide { position: absolute; left: 0; right: 0; height: 1px; background: color-mix(in srgb, var(--accent) 45%, transparent); }
.specimen .guide span { position: absolute; left: 14px; top: 5px; font: 500 0.62rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.specimen .g-cap  { top: calc(50% - 0.325em); }
.specimen .g-cap span { top: -15px; }
.specimen .g-base { top: calc(50% + 0.375em); }
.specimen .g-desc { top: calc(50% + 0.615em); background: var(--line); }
.specimen .axis { position: absolute; top: 12%; bottom: 12%; left: 50%; width: 1px; background: var(--line); }
.specimen .w { position: relative; text-align: center; font: 500 1em/1 "Readex Pro", var(--f-display); color: var(--fg); }
.specimen .w-lat { letter-spacing: -0.02em; }
.specimen .w-ar { color: var(--hl); }
.specimen .tag { position: absolute; bottom: 14px; font-size: 0.7rem; }
.specimen .tag.l { left: 14px; } .specimen .tag.r { right: 14px; }
.specimen-cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin-top: 12px; }

/* One large client quote */
.big-quote { max-width: 860px; margin-inline: auto; text-align: center; }
.big-quote p { font: 500 clamp(1.3rem, 2.6vw, 1.9rem)/1.35 var(--f-display); font-stretch: 104%; letter-spacing: -0.015em; text-wrap: balance; }
.big-quote p::before { content: "\201C"; display: block; color: var(--accent); font-size: 3rem; line-height: .7; height: 26px; }
.big-quote figcaption { margin-top: 22px; color: var(--muted); font-size: 0.95rem; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: var(--scrim);
  display: grid; place-items: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
  animation: fade .3s ease both;
}
.lb-frame {
  position: relative; width: min(1100px, 100%); max-height: 100%;
  display: grid; gap: 14px;
  animation: pop .45s var(--ease) both;
}
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #f1f3f6; }
.lb-bar .label { color: #b9c0cb; }
.lb-bar .icon-btn { border-color: rgba(255,255,255,.2); color: #f1f3f6; }
.lb-bar .icon-btn:hover { border-color: #f1f3f6; }
.lb-actions { display: flex; gap: 8px; }
.lb-media { position: relative; aspect-ratio: 16 / 9; max-height: calc(100vh - 120px); border-radius: 10px; overflow: hidden; background: #000; }
.lb-media video { width: 100%; height: 100%; object-fit: contain; }
.lb-media .reel-ph { --line: #2a2f36; --surface: #14171b; color: #b9c0cb; }
.lb-media .reel-ph .label { color: #b9c0cb; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .9s var(--ease) both; }
  .rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .18s; } .rise.d3 { animation-delay: .28s; } .rise.d4 { animation-delay: .38s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }

  .js [data-reveal] { transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js [data-reveal]:not(.in) { opacity: 0; transform: translateY(24px); }
  .js [data-reveal-stagger] > * { transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js [data-reveal-stagger]:not(.in) > * { opacity: 0; transform: translateY(20px); }
  .js .rules:not(.in) li::before { transform: scaleX(0); }
  .rules li::before { transition: transform 1s var(--ease); }

  .hero h1 .hl::after { animation: draw 1.1s .9s var(--ease) both; }
  @keyframes draw { from { transform: scaleX(0); } }
  .pulse::after { animation: ping 2.4s ease-out infinite; }
  .play-btn::after { animation: ring 2s ease-out infinite; }
  @keyframes ring { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.45); opacity: 0; } }
  @keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }

  .marquee-track { animation: marquee 38s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  @keyframes marquee { to { transform: translateX(-50%); } }

  .reel-ph { animation: drift 6s linear infinite; }
  @keyframes drift { to { background-position: 100% 100%; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
