/* =========================================================
   Aklak Zaman — Portfolio
   Design tokens taken from the original PPT mockup:
   deep red #C00000 band, #FF0000 accent, black + white,
   Impact-style display type, Helvetica-style body.
   ========================================================= */
:root {
  --red: #c00000;
  --red-hot: #ff1a1a;
  --red-dark: #8a0000;
  --black: #0b0b0b;
  --ink: #141414;
  --ink-2: #3d3d3d;
  --muted: #6b6b6b;
  --line: #e7e7e7;
  --paper: #ffffff;
  --paper-2: #f6f5f3;
  --dark-2: #161616;
  --dark-3: #222;
  --dark-line: #2c2c2c;
  --display: "Anton", Impact, "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--red-hot); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--black); color: #fff; padding: 10px 16px; z-index: 999; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0,0,0,.4); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 22px; letter-spacing: .02em; text-transform: uppercase; }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 16px; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; position: relative; padding: 6px 0; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:not(.btn):hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--red); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .3s, opacity .3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap; text-align: center;
}
@media (max-width: 560px) { .btn { white-space: normal; } }
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 24px -12px rgba(192, 0, 0, .8); }
.btn-red:hover { background: var(--red-hot); }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.dark .btn-ghost:hover, .btn-ghost.on-dark:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-sm { padding: 10px 18px; font-size: 12px; }
.nav-links .btn { padding: 10px 20px; font-size: 12px; color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(40px, 7vw, 90px); }
.hero-band { position: relative; background: var(--red); color: #fff; overflow: visible; }
.hero-band::before { /* subtle brush/grain texture */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(1200px 400px at 85% 10%, rgba(255, 60, 60, .55), transparent 60%),
    radial-gradient(700px 300px at 0% 100%, rgba(0, 0, 0, .35), transparent 60%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; min-height: clamp(420px, 46vw, 560px); }
.hero-copy { position: relative; z-index: 1; padding: clamp(28px, 5vw, 60px) 0 clamp(28px, 4vw, 44px); }
.hero-name { margin: 0; font-family: var(--display); font-weight: 400; line-height: .82; text-transform: uppercase; letter-spacing: .005em; }
.hero-name .first { display: block; font-size: clamp(96px, 17vw, 236px); position: relative; z-index: 1; }
.hero-name .last { display: block; font-size: clamp(42px, 6.6vw, 92px); letter-spacing: .14em; margin-top: clamp(16px, 2vw, 30px); padding-left: .08em; }
.hero-portrait { position: relative; align-self: end; height: 100%; }
.hero-portrait img {
  position: absolute; bottom: 0; right: -8%; width: min(640px, 128%); max-width: none;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45));
  z-index: 2;
}
/* Stat badges: identical 3-row layout (icon / value / 2-line label) so every circle lines up */
.stats { display: flex; flex-wrap: wrap; gap: clamp(12px, 1.6vw, 20px); margin: clamp(28px, 3.4vw, 44px) 0 0; list-style: none; padding: 0; }
.stat {
  --size: clamp(108px, 10vw, 128px);
  --v: clamp(24px, 2.3vw, 30px);
  width: var(--size); height: var(--size); flex: 0 0 var(--size); border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .9);
  display: grid; grid-template-rows: 16px var(--v) auto; row-gap: 6px; align-content: center; justify-items: center; text-align: center;
  padding: 0 10px;
  background: rgba(0, 0, 0, .14);
  transition: transform .3s var(--ease), background .3s;
}
.stat:hover { transform: translateY(-4px); background: rgba(0, 0, 0, .28); }
.stat-ic { display: grid; place-items: center; height: 16px; }
.stat-ic svg { width: 15px; height: 15px; fill: #fff; display: block; }
.stat b { font-family: var(--display); font-weight: 400; font-size: var(--v); line-height: 1; height: var(--v); display: flex; align-items: center; letter-spacing: .02em; white-space: nowrap; text-transform: uppercase; }
.stat-wide b { font-size: calc(var(--v) * .74); }
.stat-lb { font-weight: 800; font-size: clamp(8.5px, .78vw, 10.5px); letter-spacing: .07em; text-transform: uppercase; line-height: 1.2; }
.role-strip { background: var(--black); color: #fff; position: relative; z-index: 3; }
.role-strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 64px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.roles { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: clamp(12px, 1.25vw, 15px); margin: 0; }
.roles .sep { width: 6px; height: 6px; background: var(--red-hot); transform: rotate(45deg); }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-sm { padding: clamp(48px, 6vw, 80px) 0; }
.dark { background: var(--black); color: #fff; }
.tinted { background: var(--paper-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--red); margin: 0 0 14px; }
.dark .eyebrow { color: var(--red-hot); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.h-display { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .95; letter-spacing: .01em; margin: 0; font-size: clamp(40px, 6.4vw, 84px); }
.h-display .accent { color: var(--red-hot); display: block; }
.h-display .accent-inline { color: var(--red-hot); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-head p.lede { max-width: 520px; margin: 0; color: var(--muted); }
.dark .section-head p.lede { color: #a9a9a9; }
.down-tri { width: 0; height: 0; border-left: 12px solid transparent; border-right: 12px solid transparent; border-top: 14px solid var(--red-hot); margin-top: 18px; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* ---------- Showreel ---------- */
.showreel-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.showreel-copy p { color: var(--ink-2); }
.check-list { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.check-list li::before { content: ""; flex: 0 0 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat; }
.reel {
  position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16 / 9; background: #000; box-shadow: var(--shadow);
}
.reel img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.reel:hover img { transform: scale(1.04); }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.55), transparent 45%); }
.reel-label { position: absolute; left: 22px; bottom: 18px; z-index: 2; color: #fff; font-family: var(--display); font-size: clamp(22px, 2.8vw, 34px); text-transform: uppercase; letter-spacing: .04em; }
.play {
  position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: clamp(64px, 8vw, 92px); aspect-ratio: 1; border-radius: 50%; background: var(--red);
  display: grid; place-items: center; box-shadow: 0 0 0 0 rgba(255, 26, 26, .6);
  animation: pulse 2.2s infinite; transition: transform .3s var(--ease), background .3s;
}
.play svg { width: 38%; height: 38%; fill: #fff; margin-left: 6%; }
.reel:hover .play, .card:hover .play { transform: translate(-50%, -50%) scale(1.08); background: var(--red-hot); }
@keyframes pulse { 70% { box-shadow: 0 0 0 22px rgba(255, 26, 26, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 26, 26, 0); } }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(24px, 3vw, 36px); }
.section-head.center + .filters { justify-content: center; }
.chip {
  border: 1.5px solid var(--dark-line); background: transparent; color: inherit;
  padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 13px; letter-spacing: .04em;
  transition: background .2s, border-color .2s, color .2s;
}
.chip .count { opacity: .55; font-weight: 600; margin-left: 4px; }
.chip:hover { border-color: #777; }
.chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.chip[aria-pressed="true"] .count { opacity: .8; }
:not(.dark) > .wrap > .filters .chip, .light-filters .chip { border-color: #d5d5d5; }

.grid { display: grid; gap: clamp(14px, 2vw, 22px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-shorts { display: grid; gap: clamp(12px, 1.6vw, 18px); grid-template-columns: repeat(auto-fill, minmax(min(46%, 158px), 1fr)); }
.card {
  position: relative; display: block; width: 100%; padding: 0; border: 0; text-align: left; color: inherit;
  background: var(--dark-2); border-radius: 12px; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -22px rgba(255, 0, 0, .55); }
.card .thumb { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #111; }
.card.short .thumb { aspect-ratio: 9 / 16; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .4s; filter: saturate(.92); }
.card:hover .thumb img { transform: scale(1.06); filter: saturate(1.1); }
.card .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.7), transparent 55%); }
.card .play { width: 54px; animation: none; opacity: .92; }
.card .meta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 14px 16px; color: #fff; }
.card .tag { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; background: var(--red); padding: 4px 8px; border-radius: 4px; margin-bottom: 6px; }
.card .title { display: block; font-weight: 800; font-size: 16px; line-height: 1.25; }
.card.short .title { font-size: 14px; }
.card[hidden] { display: none; }
.gallery-sub { display: flex; align-items: center; gap: 14px; margin: clamp(36px, 5vw, 56px) 0 18px; font-family: var(--display); font-size: clamp(22px, 2.6vw, 30px); text-transform: uppercase; letter-spacing: .03em; font-weight: 400; }
.gallery-sub::after { content: ""; flex: 1; height: 1px; background: var(--dark-line); }
.gallery-foot { display: flex; justify-content: center; margin-top: clamp(32px, 4vw, 48px); }
.empty-note { color: #999; text-align: center; padding: 30px 0; }

/* Category blocks on projects page */
.cat-block { padding-top: clamp(40px, 5vw, 64px); scroll-margin-top: 90px; }
.cat-block:first-of-type { padding-top: 0; }
.cat-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; border-bottom: 1px solid var(--dark-line); padding-bottom: 14px; }
.cat-head h2 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3.4vw, 42px); text-transform: uppercase; margin: 0; line-height: 1; }
.cat-head p { margin: 0; color: #a5a5a5; max-width: 520px; font-size: 15px; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }
.service { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; background: #fff; transition: border-color .3s, transform .3s var(--ease); }
.service:hover { border-color: var(--red); transform: translateY(-4px); }
.service .num { font-family: var(--display); color: var(--red); font-size: 30px; line-height: 1; }
.service h3 { margin: 12px 0 6px; font-size: 19px; }
.service p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.process li { padding: 26px 22px 6px; border-top: 3px solid var(--dark-line); position: relative; }
.process li::before { counter-increment: step; content: "0" counter(step); font-family: var(--display); font-size: 40px; color: var(--red-hot); display: block; line-height: 1; margin-bottom: 10px; }
.process li:hover { border-color: var(--red-hot); }
.process h3 { margin: 0 0 6px; font-size: 18px; }
.process p { margin: 0; color: #a5a5a5; font-size: 15px; }

/* ---------- Research cards ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: clamp(16px, 2vw, 24px); }
.post {
  display: flex; flex-direction: column; text-decoration: none; background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.post .cover { aspect-ratio: 16 / 10; background: var(--paper-2); overflow: hidden; display: grid; place-items: center; }
.post .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.post .cover.contain img { object-fit: contain; padding: 14px; background: #fff; }
.post:hover .cover img { transform: scale(1.04); }
.post .body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post .kind { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.post h3 { margin: 8px 0 8px; font-size: 20px; line-height: 1.25; }
.post p { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.post .more { margin-top: auto; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; display: inline-flex; gap: 8px; align-items: center; }
.post .more::after { content: "→"; transition: transform .3s var(--ease); }
.post:hover .more::after { transform: translateX(5px); }
.post.featured { grid-column: 1 / -1; flex-direction: row; }
.post.featured .cover { flex: 1.1; aspect-ratio: auto; min-height: 320px; background: #111; }
.post.featured .body { flex: 1; padding: clamp(24px, 3.5vw, 44px); justify-content: center; }
.post.featured h3 { font-size: clamp(24px, 2.6vw, 34px); }
.mini-stats { display: flex; gap: 22px; flex-wrap: wrap; margin: 4px 0 20px; }
.mini-stats div { display: flex; flex-direction: column; }
.mini-stats b { font-family: var(--display); font-weight: 400; font-size: 32px; color: var(--red); line-height: 1; }
.mini-stats span { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.quote { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; position: relative; display: flex; flex-direction: column; gap: 18px; }
.quote::before { content: "“"; font-family: Georgia, serif; font-size: 80px; line-height: .6; color: var(--red); height: 30px; }
.quote blockquote { margin: 0; font-size: 16px; color: var(--ink-2); }
.quote .stars { color: #f5a400; letter-spacing: 2px; font-size: 15px; }
.quote footer { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; }
.quote cite { font-style: normal; font-weight: 800; display: block; }
.quote small { color: var(--muted); display: block; }
.quote.placeholder { border-style: dashed; }

/* ---------- Contact / CTA ---------- */
.cta { background: var(--black); color: #fff; overflow: hidden; }
.cta::before { content: ""; position: absolute; right: -20%; top: -40%; width: 70%; aspect-ratio: 1; background: radial-gradient(circle, rgba(192, 0, 0, .45), transparent 60%); pointer-events: none; }
.cta-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.cta .lede { color: #b8b8b8; margin: 18px 0 28px; max-width: 460px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact-item {
  display: flex; align-items: center; gap: 14px; text-decoration: none; padding: 14px 16px; border-radius: 12px;
  background: var(--dark-2); border: 1px solid var(--dark-line); transition: border-color .25s, transform .25s var(--ease); width: 100%; color: #fff; text-align: left;
}
.contact-item:hover { border-color: var(--red-hot); transform: translateX(4px); }
.contact-item .ic { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 10px; background: var(--red); display: grid; place-items: center; }
.contact-item .ic svg { width: 20px; height: 20px; fill: #fff; }
.contact-item small { display: block; color: #9a9a9a; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.contact-item strong { font-size: 16px; word-break: break-all; }
.form { background: #fff; color: var(--ink); border-radius: 18px; padding: clamp(22px, 3vw, 34px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.form h3 { margin: 0 0 4px; font-size: 22px; }
.form > p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 700; font-size: 13px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; padding: 12px 14px; border: 1.5px solid #dcdcdc; border-radius: 10px; background: #fafafa; color: var(--ink);
  transition: border-color .2s, background .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.form-actions .btn { flex: 1; }
.form-note { font-size: 12px; color: var(--muted); margin: 12px 0 0; }

.site-footer { background: #050505; color: #8d8d8d; font-size: 14px; padding: 26px 0; border-top: 1px solid #1d1d1d; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--red); color: #fff; padding: clamp(56px, 8vw, 110px) 0 clamp(44px, 6vw, 80px); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 380px at 90% 0%, rgba(255, 70, 70, .6), transparent 60%), radial-gradient(600px 300px at 0% 100%, rgba(0,0,0,.35), transparent 60%); }
.page-hero .wrap { position: relative; }
.page-hero .eyebrow { color: #fff; }
.page-hero .h-display { font-size: clamp(44px, 8vw, 110px); }
.page-hero .h-display .accent { color: var(--black); }
.page-hero p.lede { max-width: 640px; font-size: clamp(16px, 1.5vw, 19px); opacity: .92; margin: 18px 0 0; }
.page-hero.dark-hero { background: var(--black); }
.page-hero.dark-hero .h-display .accent { color: var(--red-hot); }
.page-hero.dark-hero .eyebrow { color: var(--red-hot); }

/* ---------- Article ---------- */
.article-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(36px, 5vw, 60px); background: var(--black); color: #fff; overflow: hidden; }
.article-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 360px at 95% 0%, rgba(192, 0, 0, .55), transparent 60%); }
.article-hero .wrap { position: relative; max-width: 940px; }
.crumbs { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9b9b9b; margin-bottom: 20px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; }
.article-hero h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(38px, 5.6vw, 72px); line-height: 1; margin: 0; letter-spacing: .01em; }
.article-hero h1 .accent-inline { color: var(--red-hot); }
.article-hero .dek { font-size: clamp(17px, 1.7vw, 21px); color: #c9c9c9; margin: 18px 0 28px; max-width: 720px; }
.byline { display: flex; align-items: center; gap: 14px; }
.byline img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--red-hot); background: #000; }
.byline strong { display: block; }
.byline span { color: #9b9b9b; font-size: 14px; }

.article-layout { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: clamp(30px, 5vw, 70px); justify-content: center; padding: clamp(44px, 6vw, 80px) var(--gutter); max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; }
.toc { position: sticky; top: 96px; align-self: start; font-size: 14px; max-height: calc(100vh - 120px); overflow: auto; }
.toc p { font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 11px; color: var(--muted); margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--muted); line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--red); border-color: var(--red); font-weight: 700; }
.read-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--red-hot); width: 0; z-index: 60; }

.prose { font-size: 18px; line-height: 1.72; color: #262626; }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.15em; }
.prose h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(28px, 3vw, 38px); line-height: 1.05; margin: 2.1em 0 .6em; letter-spacing: .01em; color: var(--ink); scroll-margin-top: 96px; }
.prose h3 { font-size: 21px; margin: 1.8em 0 .5em; line-height: 1.3; scroll-margin-top: 96px; }
.prose h2.level { display: flex; flex-direction: column; gap: 6px; }
.level-num { font-family: var(--body); font-size: 12px; font-weight: 800; letter-spacing: .2em; color: #fff; background: var(--red); padding: 5px 10px; border-radius: 4px; align-self: flex-start; }
.prose strong { color: var(--ink); }
.prose a { color: var(--red); text-underline-offset: 3px; }
.prose .list { padding-left: 0; list-style: none; margin: 0 0 1.4em; display: grid; gap: 10px; }
.prose .list li { position: relative; padding-left: 26px; }
.prose .list li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; background: var(--red); transform: rotate(45deg); }
.fig { margin: 2em 0; }
.fig img { width: 100%; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.fig figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; text-align: center; }
.fig-pair .imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fig.tall img { max-width: 360px; margin: 0 auto; }
.fig-pair.tall img { max-width: none; }
.callout { background: var(--paper-2); border-left: 4px solid var(--red); border-radius: 0 12px 12px 0; padding: 20px 22px; margin: 1.8em 0; }
.callout p { margin: 0; }
.callout p + p { margin-top: .6em; }
.callout-label { display: block; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.callout-inline { background: #fff4f4; }
.pull { font-family: var(--display); text-transform: uppercase; font-size: clamp(26px, 3vw, 36px); line-height: 1.1; margin: 2em 0; padding: 0 0 0 22px; border-left: 6px solid var(--red); color: var(--ink); }
.step-num { font-family: var(--display); font-size: 64px; color: var(--red); line-height: 1; margin: 1.8em 0 -.4em; opacity: .9; }
.step-num + h2 { margin-top: .4em; }
.table-wrap { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--line); border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th { background: var(--black); color: #fff; text-align: left; padding: 12px 14px; font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.prose td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.prose tbody tr:nth-child(even) td { background: #fafafa; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 1.6em 0; }
.stat-card { background: var(--black); color: #fff; border-radius: 12px; padding: 20px; }
.stat-card b { font-family: var(--display); font-weight: 400; font-size: 46px; color: var(--red-hot); display: block; line-height: 1; }
.stat-card span { font-size: 14px; color: #bbb; }
.checklist { list-style: none; padding: 0; margin: 1.4em 0; display: grid; gap: 8px; }
.checklist label { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: background .2s, border-color .2s; }
.checklist input { width: 20px; height: 20px; accent-color: var(--red); flex: 0 0 20px; margin-top: 3px; }
.checklist label:has(input:checked) { background: #fff4f4; border-color: var(--red); }
.embed { margin: 1.6em auto 2em; }
.embed .card { max-width: 340px; margin: 0 auto; }
.article-end { border-top: 1px solid var(--line); margin-top: 3em; padding-top: 2em; }
.author-box { display: flex; gap: 18px; align-items: center; background: var(--paper-2); border-radius: 16px; padding: 22px; }
.author-box img { width: 72px; height: 72px; border-radius: 50%; background: #000; }
.author-box p { margin: 4px 0 0; font-size: 15px; color: var(--muted); }

.cs-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--dark-line); border-radius: 14px; overflow: hidden; margin-top: 34px; }
.cs-stats div { background: var(--dark-2); padding: 20px 18px; }
.cs-stats b { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 3.6vw, 46px); color: var(--red-hot); display: block; line-height: 1; }
.cs-stats span { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #a5a5a5; }

/* ---------- AI page ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; border-radius: 16px; overflow: hidden; border: 1px solid var(--dark-line); }
.compare > div { padding: clamp(20px, 3vw, 32px); }
.compare .before { background: var(--dark-2); }
.compare .after { background: var(--red); }
.compare h3 { margin: 0 0 14px; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 28px; }
.compare ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.compare li { padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.14); font-weight: 600; }
.compare li:last-child { border: 0; padding-bottom: 0; }
.big-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.big-stats div { border-top: 3px solid var(--red); padding-top: 16px; }
.big-stats b { font-family: var(--display); font-weight: 400; font-size: clamp(54px, 7vw, 92px); line-height: .9; color: var(--red); display: block; }
.big-stats span { color: var(--muted); font-weight: 600; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .92); display: none; align-items: center; justify-content: center; padding: 60px 16px 24px; }
.lightbox.open { display: flex; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } }
.lightbox-frame { width: min(1100px, 100%); aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox.vertical .lightbox-frame { width: auto; height: min(86vh, 900px); aspect-ratio: 9 / 16; max-width: 100%; }
.lightbox iframe { width: 100%; height: 100%; border: 0; display: block; }
.lightbox-close { position: absolute; top: 14px; right: 16px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: #000; font-size: 26px; line-height: 1; display: grid; place-items: center; }
.lightbox-title { position: absolute; top: 22px; left: 20px; right: 80px; color: #fff; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 700; font-size: 14px; z-index: 120; transition: transform .35s var(--ease); }
.toast.show { transform: translate(-50%, 0); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.hero-name .first, .hero-name .last, .hero-portrait img, .stats .stat { animation: rise .9s var(--ease) both; }
.hero-name .last { animation-delay: .12s; }
.hero-portrait img { animation-delay: .2s; animation-name: rise-portrait; }
.stats .stat:nth-child(1) { animation-delay: .3s; } .stats .stat:nth-child(2) { animation-delay: .38s; }
.stats .stat:nth-child(3) { animation-delay: .46s; } .stats .stat:nth-child(4) { animation-delay: .54s; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }
@keyframes rise-portrait { from { opacity: 0; transform: translateY(40px) scale(.97); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .article-layout { grid-template-columns: minmax(0, 720px); }
  .toc { display: none; }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
    box-shadow: 0 20px 30px -20px rgba(0,0,0,.35);
  }
  .nav-open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links li a:not(.btn) { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav-links li a:not(.btn)::after { display: none; }
  .nav-links .btn { margin-top: 16px; width: 100%; padding: 15px; font-size: 14px; }
  .showreel-grid, .cta-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .post.featured { flex-direction: column; }
  .post.featured .cover { min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { padding-top: 0; }
  .hero-inner { grid-template-columns: 1fr; min-height: 0; }
  .hero-portrait { order: -1; height: auto; display: flex; justify-content: center; margin-top: -1px; }
  .hero-portrait img { position: relative; right: auto; width: min(330px, 82vw); margin: 18px auto 12px; }
  .hero-copy { padding-top: 6px; text-align: center; }
  .hero-name .first { font-size: clamp(84px, 27vw, 140px); }
  .hero-name .last { font-size: clamp(38px, 11vw, 60px); }
  .stats { justify-content: center; }
  .stats { flex-wrap: nowrap; gap: 8px; }
  .stat { --size: calc((100vw - 2 * var(--gutter) - 24px) / 4); --v: clamp(15px, 4.6vw, 22px); grid-template-rows: 12px var(--v) auto; row-gap: 3px; padding: 0 4px; border-width: 1.5px; }
  .stat-ic, .stat-ic svg { width: 11px; height: 11px; }
  .stat-lb { font-size: clamp(6.5px, 2vw, 8.5px); letter-spacing: .03em; }
  .role-strip .wrap { justify-content: center; text-align: center; }
  .roles { justify-content: center; font-size: 12px; }
  .hero-cta { justify-content: center; width: 100%; }
  .process { grid-template-columns: 1fr; }
  .filters, .section-head.center + .filters {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none;
    margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 8px;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
            mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; }
  .compare, .big-stats { grid-template-columns: 1fr; }
  .cs-stats { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .prose { font-size: 17px; }
  .fig-pair .imgs { gap: 8px; }
}
@media (max-width: 420px) {
  .grid-shorts { grid-template-columns: 1fr 1fr; }
  .btn { padding: 13px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   One-page additions
   ========================================================= */
main > section { scroll-margin-top: 72px; }
.nav-links a.active:not(.btn) { color: var(--red); }
.nav-links a.active:not(.btn)::after { transform: scaleX(1); }
.scroll-progress { position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%; background: var(--red-hot); transform-origin: left; transform: scaleX(0); }

/* side dots: show which section you are in */
.dots { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; gap: 14px; }
.dots a { position: relative; display: block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: rgba(20,20,20,.55); box-shadow: 0 0 0 1px rgba(0,0,0,.25); transition: transform .3s var(--ease), background .3s; }
.dots a:hover, .dots a.active { background: var(--red-hot); transform: scale(1.3); }
.dots span { position: absolute; right: 22px; top: 50%; transform: translate(6px, -50%); white-space: nowrap; background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 5px 9px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
.dots a:hover span, .dots a.active span.flash { opacity: 1; transform: translate(0, -50%); }
@media (max-width: 1340px) { .dots { right: 8px; } .dots a { width: 10px; height: 10px; } }
@media (max-width: 960px) { .dots { display: none; } }

/* section change animation */
.reveal { transition-delay: var(--d, 0s); }
.services .reveal:nth-child(2), .papers .reveal:nth-child(2) { --d: .08s; }
.services .reveal:nth-child(3), .papers .reveal:nth-child(3) { --d: .16s; }
.services .reveal:nth-child(5) { --d: .08s; } .services .reveal:nth-child(6) { --d: .16s; }

.btn svg { width: 16px; height: 16px; fill: currentColor; flex: 0 0 16px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* gallery collapse */
#gallery[data-collapsed="true"] .card.is-extra { display: none; }

/* Research: PDF cards */
.papers { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.paper { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.paper:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.paper-cover { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--paper-2); overflow: hidden; }
.paper-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.paper-cover.contain img { object-fit: contain; padding: 46px 14px 12px; background: #fff; }
.paper:hover .paper-cover img { transform: scale(1.04); }
.pdf-badge { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 6px; }
.pdf-badge svg { width: 13px; height: 13px; fill: #fff; }
.paper-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.paper .kind { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.paper h3 { margin: 8px 0 8px; font-size: 19px; line-height: 1.3; }
.paper h3 a { text-decoration: none; }
.paper h3 a:hover { color: var(--red); }
.paper p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.paper-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }

/* Case study: compact */
.case-grid { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.case-copy .lede { color: #b8b8b8; margin: 16px 0 0; max-width: 560px; }
.case-copy .cs-stats { margin: 24px 0; }
.case-points { list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.case-points li { border-left: 3px solid var(--red-hot); padding-left: 12px; }
.case-points b { display: block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 2px; }
.case-points span { color: #a9a9a9; font-size: 14px; line-height: 1.45; display: block; }

/* AI production */
.ai-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(16px, 2.4vw, 28px); align-items: start; }
.ai-main { display: grid; gap: 22px; }
.ai-main .big-stats { grid-template-columns: 1fr 1fr; }
.ai-main .big-stats b { font-size: clamp(44px, 5vw, 70px); }
.ai-shorts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ai-shorts .card .title { font-size: 13px; }

@media (max-width: 960px) {
  .papers { grid-template-columns: 1fr 1fr; }
  .case-grid, .ai-grid { grid-template-columns: 1fr; }
  .case-video { max-width: 320px; margin: 0 auto; width: 100%; }
}
@media (max-width: 640px) {
  .papers { grid-template-columns: 1fr; }
  .case-points { grid-template-columns: 1fr; }
  .ai-main .big-stats { grid-template-columns: 1fr 1fr; }
}

/* Video testimonials */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); max-width: 860px; margin: 0 auto; }
.testi-grid .card .title { font-size: 18px; }
@media (max-width: 640px) {
  .testi-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 10px; scrollbar-width: none; }
  .testi-grid::-webkit-scrollbar { display: none; }
  .testi-grid .card { scroll-snap-align: start; }
}
