/* Ratha Soy portfolio: hire-ready layout
   Type: Apple system font (SF Pro on Mac, iPhone, iPad; not embedded, Apple's licence forbids it),
   Inter as the web fallback everywhere else.
   Colour: seafoam paper, deep ocean, one coral accent for actions.
   Contrast checked (WCAG): ink/bg 15.7, muted/bg 5.7, white/coral 5.6, white/ocean 8.9, white/deep 15.0. */
:root {
  --bg: #f4f7f6;
  --surface: #ffffff;
  --ink: #0b1f2a;
  --muted: #52646c;
  --line: #dce5e3;
  --ocean: #0b4f6c;
  --deep: #072a38;
  --coral: #b83f24;
  --coral-hover: #9f3519;
  --foam: #a8d5cf;
  --mint: #e3f0ed;
  --kelp: #2f8f6b;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --mono: var(--sans);
  --pad: clamp(16px, 4vw, 40px);
  --r-lg: 22px;
  --r-md: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }

a { color: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
::selection { background: var(--ocean); color: #fff; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }

.wrap { width: min(1280px, 100%); margin-inline: auto; padding-inline: var(--pad); }
.mono { font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.005em; }
.label { margin: 0; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 22px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  font-size: 15px; font-weight: 500; text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn:hover { border-color: var(--ink); }
.btn:active { transform: scale(0.98); }
.btn-coral { background: var(--coral); border-color: var(--coral); color: #fff; }
.btn-coral:hover { background: var(--coral-hover); border-color: var(--coral-hover); }
.btn-dark { background: var(--deep); border-color: var(--deep); color: #fff; }
.btn-dark:hover { background: var(--ocean); border-color: var(--ocean); }
.btn-quiet { background: transparent; }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn-ghost:hover { border-color: #fff; }

/* ---------- Floating nav ---------- */
.nav {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 10;
  width: min(1240px, calc(100% - 24px)); height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 8px 0 20px;
  border: 1px solid rgba(220, 229, 227, 0.9); border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  transition: box-shadow 0.3s ease;
}
.nav.scrolled { box-shadow: 0 8px 30px rgba(7, 42, 56, 0.1); }
.wordmark { position: relative; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; text-decoration: none; }
.wordmark::before { content: ""; position: absolute; inset: -9px -8px; }
.nav nav { display: flex; align-items: center; gap: 2px; }
.nav nav a { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--muted); transition: color 0.2s ease, background-color 0.2s ease; }
.nav nav a:hover { color: var(--ink); background: rgba(11, 31, 42, 0.05); }
.nav nav .nav-cta { margin-left: 6px; background: var(--coral); color: #fff; }
.nav nav .nav-cta:hover { background: var(--coral-hover); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
  padding-top: clamp(116px, 13vw, 160px); padding-bottom: clamp(36px, 5vw, 56px);
}
.status {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  padding: 7px 14px 7px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--kelp); box-shadow: 0 0 0 4px rgba(47, 143, 107, 0.18); }
.hero h1 { margin: 0; font-size: clamp(54px, 8.4vw, 120px); font-weight: 600; line-height: 0.9; letter-spacing: -0.035em; }
.name-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px clamp(14px, 1.6vw, 22px); }
.hero .name-row h1 { font-size: clamp(50px, 7.6vw, 108px); }
.avatar { flex: none; width: clamp(56px, 6.6vw, 96px); height: clamp(56px, 6.6vw, 96px); border-radius: 50%; object-fit: cover; object-position: 50% 18%; border: 3px solid var(--surface); box-shadow: 0 8px 22px rgba(7, 42, 56, 0.18); }
.role { margin: 14px 0 0; font-size: clamp(20px, 2.1vw, 28px); font-weight: 500; letter-spacing: -0.018em; color: var(--ocean); }
.lede { margin: 20px 0 0; max-width: 34em; font-size: clamp(16px, 1.35vw, 18px); line-height: 1.55; color: var(--muted); }
.nw { white-space: nowrap; }
.where { margin: 18px 0 0; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.mosaic { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: repeat(3, 1fr); gap: 12px; aspect-ratio: 1 / 1; }
.mosaic figure { margin: 0; overflow: hidden; border-radius: var(--r-md); background: var(--line); }
.mosaic .m1 { grid-row: 1 / -1; border-radius: var(--r-lg); }
.mosaic .m4 { border-radius: var(--r-md) var(--r-md) var(--r-lg) var(--r-md); }

/* ---------- Worked with ---------- */
.orgs { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding-bottom: clamp(36px, 5vw, 56px); }
.orgs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.orgs li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 500; }

/* ---------- Numbers band ---------- */
.numbers { background: var(--deep); color: #fff; }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.num { padding: clamp(28px, 4vw, 48px) clamp(16px, 2vw, 28px); border-left: 1px solid rgba(255, 255, 255, 0.12); }
.num:first-child { border-left: 0; padding-left: 0; }
.num b { display: block; font-size: clamp(34px, 3.8vw, 54px); font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.num:nth-child(2) b, .num:nth-child(3) b { color: var(--foam); }
.num b small { font-size: 0.42em; font-weight: 500; letter-spacing: -0.01em; }
.num span { display: block; margin-top: 12px; max-width: 18em; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, 0.72); text-wrap: pretty; }

/* ---------- Sections ---------- */
.sec { padding-top: clamp(72px, 9vw, 120px); }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; font-size: clamp(30px, 3.6vw, 48px); font-weight: 600; letter-spacing: -0.026em; line-height: 1; }
.sec-head span, .sec-head .link { color: var(--muted); font-size: 14px; }
.sec-head .link { position: relative; text-decoration: underline; text-underline-offset: 4px; }
.sec-head .link::before { content: ""; position: absolute; inset: -13px -6px; }
.sec-head .link:hover { color: var(--coral); }

/* ---------- Regional and global ---------- */
.places { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding-top: 22px; }
.places::before { content: ""; position: absolute; left: 22px; right: 22px; top: 6px; border-top: 2px dashed var(--foam); }
.place { position: relative; padding: 26px 22px 24px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.pin { position: absolute; left: 22px; top: -23px; width: 14px; height: 14px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 5px var(--bg), 0 0 0 7px rgba(184, 63, 36, 0.25); }
.place .where-city { margin: 0; color: var(--ocean); text-transform: uppercase; letter-spacing: 0.08em; }
.place h3 { margin: 10px 0 8px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.place p:last-child { margin: 0; font-size: 14.5px; color: var(--muted); text-wrap: pretty; }

.countries { display: grid; grid-template-columns: 3fr 1fr 1fr; margin-top: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.cgroup { padding: 20px 22px; }
.cgroup + .cgroup { border-left: 1px solid var(--line); }
.cgroup .label { white-space: nowrap; }
.cgroup .label span { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--coral); color: #fff; letter-spacing: 0; }
.cgroup ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cgroup li { padding: 6px 12px; border-radius: 999px; background: var(--mint); color: var(--ocean); font-size: 14px; font-weight: 500; }

/* ---------- Skills ---------- */
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.skill { position: relative; padding: 26px 24px 28px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.skill::before { content: ""; position: absolute; inset: -1px; border-top: 3px solid var(--ocean); border-radius: inherit; pointer-events: none; }
.skill:nth-child(3n+2)::before { border-top-color: var(--kelp); }
.skill:nth-child(3n)::before { border-top-color: var(--coral); }
.skill .idx { display: block; color: var(--muted); }
.skill h3 { margin: 10px 0 8px; font-size: 20px; font-weight: 600; letter-spacing: -0.018em; line-height: 1.2; }
.skill p { margin: 0; color: var(--muted); font-size: 15px; text-wrap: pretty; }

/* ---------- Project cards ---------- */
.projects { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(28px, 3vw, 40px) 20px; align-items: start; }
.card { grid-column: span 6; display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: var(--r-md); }
.card > span { display: block; }
.c-wide { grid-column: span 7; }
.c-narrow { grid-column: span 5; }
.c-full { grid-column: 1 / -1; }
.card .ph { position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--line); }
.c-wide .ph { aspect-ratio: 16 / 10; }
.c-narrow .ph { aspect-ratio: 61 / 54; } /* same height as the 16:10 wide photo in its row */
.card img { transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.card:hover img, .card:focus-visible img { transform: scale(1.035); }
.mf:focus-visible { border-radius: var(--r-md); }
.arrow {
  position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1f2a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E") center / 18px no-repeat;
  transition: transform 0.3s ease;
}
.card:hover .arrow, .card:focus-visible .arrow { transform: rotate(45deg); }
.tags { display: flex !important; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; }
.tags span { padding: 4px 9px; border-radius: 999px; background: var(--mint); color: var(--ocean); }
.card-title { margin: 12px 0 4px; font-size: clamp(20px, 1.8vw, 26px); font-weight: 600; line-height: 1.2; letter-spacing: -0.018em; text-wrap: balance; }
.card-line { color: var(--muted); font-size: 15px; }

.ph-credit { position: absolute; left: 10px; bottom: 10px; padding: 3px 8px; border-radius: 999px; background: rgba(7, 42, 56, 0.6); color: #fff; font-size: 12px; font-weight: 500; }

/* text-only card (no picture panel) */
.c-text { position: relative; padding: 22px 80px 24px 24px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); transition: border-color 0.2s ease; }
.c-text:hover { border-color: var(--ink); }
.c-text .tags { margin-top: 0; }
.c-text .arrow { top: 50%; right: 20px; margin-top: -21px; background-color: var(--mint); }


/* ---------- Film ---------- */
.film { margin-top: clamp(72px, 9vw, 120px); padding: clamp(56px, 7vw, 96px) 0; background: var(--deep); color: #fff; }
.film .sec-head span { color: var(--foam); }
.film-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; align-items: start; }
.clip { margin: 0; }
.clip-main { grid-column: span 8; }
.clip-side { grid-column: span 4; }
.clip-stack { grid-column: span 4; display: grid; gap: 28px; }
.clip-stack .clip-side { grid-column: auto; }
.clip-third { grid-column: span 4; margin-top: 20px; }
.clip video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-md); background: var(--ocean); object-fit: cover; }
.clip-media { position: relative; }
.clip-media video { display: block; }
.play-full { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 13px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.94); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 6px 18px rgba(7, 42, 56, 0.28); transition: background 0.2s ease, transform 0.2s cubic-bezier(0.2, 0.7, 0.2, 1); }
.play-full::before { content: ""; width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--coral); }
.play-full:hover { background: #fff; transform: translateY(-1px); }
.play-full:focus-visible { outline: 2px solid var(--foam); outline-offset: 3px; }
.play-full::after { content: ""; position: absolute; inset: -6px; }
.clip figcaption { margin-top: 14px; }
.clip figcaption b { display: block; margin-top: 10px; text-wrap: balance; font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; letter-spacing: -0.018em; line-height: 1.25; }
.film .tags { margin: 0; }
.film .tags span { background: rgba(255, 255, 255, 0.1); color: var(--foam); }
.clip-link { position: relative; display: inline-block; margin-top: 8px; color: var(--foam); font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.clip-link::after { content: " \2197"; }
.clip-link::before { content: ""; position: absolute; inset: -12px -4px; }
.clip-link:hover { color: #fff; }
.film a:focus-visible, .film video:focus-visible { outline-color: var(--foam); }
.film video:focus-visible { outline: 2px solid var(--foam); outline-offset: 3px; }

/* ---------- Experience ---------- */
.timeline { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.timeline li { display: grid; grid-template-columns: 11.5rem minmax(0, 1.1fr) minmax(0, 1fr) 9.5rem; gap: 6px 24px; align-items: baseline; padding: 18px 24px; }
.timeline .place-tag { justify-self: end; padding: 3px 9px; border-radius: 999px; background: var(--mint); color: var(--ocean); white-space: nowrap; }
.timeline li + li { border-top: 1px solid var(--line); }
.timeline li:first-child { background: var(--mint); }
.timeline li:first-child .place-tag { background: var(--surface); }
.timeline .when { color: var(--muted); }
.timeline .kind { display: block; margin-top: 3px; color: var(--ocean); }
.timeline .org { font-weight: 600; letter-spacing: -0.01em; }
.timeline .title { color: var(--muted); }

/* ---------- Photo grid ---------- */
.photos { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(130px, 14vw, 200px); gap: 12px; }
.photos figure { margin: 0; overflow: hidden; border-radius: var(--r-md); background: var(--line); }
.photos .w1 { grid-column: span 1; }
.photos .w2 { grid-column: span 2; }
.photos .w3 { grid-column: span 3; }
.photos .h2 { grid-row: span 2; }
.pos-top { object-position: 50% 30%; }
.photo-link { position: relative; display: block; height: 100%; }
.photo-link img { transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.photo-link:hover img, .photo-link:focus-visible img { transform: scale(1.03); }
.photos figure:has(.photo-link:focus-visible) { outline: 2px solid var(--coral); outline-offset: 3px; }
@media (min-width: 961px) { .photos .w1 .photo-credit { left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 6px 10px; } }
.photo-credit { position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 28px); padding: 7px 12px; border-radius: 17px; text-wrap: balance; background: rgba(255, 255, 255, 0.92); color: var(--ink); font-size: 13px; font-weight: 500; }
.photo-credit::after { content: " \2197"; color: var(--coral); white-space: nowrap; }

/* ---------- Facts ---------- */
.facts { display: grid; grid-template-columns: 0.8fr 1.4fr 1fr 1.2fr; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.fact { padding: 24px; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact p:last-child { margin: 10px 0 0; font-size: 15px; line-height: 1.6; text-wrap: pretty; }
.fact p span { display: block; }
.fact p span + span { margin-top: 6px; }

/* ---------- Contact ---------- */
#contact { padding-top: clamp(72px, 9vw, 120px); }
.contact-card {
  padding: clamp(40px, 7vw, 88px) clamp(24px, 6vw, 72px); border-radius: 28px; color: #fff;
  background: radial-gradient(110% 140% at 100% 0%, #13708f 0%, var(--ocean) 35%, var(--deep) 75%);
}
.contact-line { margin: 0 0 30px; text-wrap: balance; max-width: 19em; font-size: clamp(28px, 3.9vw, 54px); font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; }
.links { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-card { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: clamp(32px, 5vw, 56px); }
.contact-photo { width: clamp(180px, 22vw, 260px); height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 20px; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35); }
.contact-card a:focus-visible { outline-color: #fff; }

.foot { display: flex; justify-content: space-between; gap: 12px; padding-top: 28px; padding-bottom: 36px; color: var(--muted); }
.foot p { margin: 0; }
.foot a { display: inline-block; padding: 13px 8px; margin: -13px -8px; border-radius: 10px; text-decoration: none; transition: color 0.2s ease; }
.foot a:hover { color: var(--ink); }

/* ---------- Story panel ---------- */
.sheet { position: fixed; inset: 0; z-index: 20; display: flex; justify-content: flex-end; padding: 12px; background: rgba(7, 42, 56, 0.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .sheet { animation: sheet-fade 0.24s ease-out; }
  .sheet-in { animation: sheet-in 0.32s cubic-bezier(0.25, 1, 0.5, 1); }
}
@keyframes sheet-fade { from { opacity: 0; } }
@keyframes sheet-in { from { opacity: 0; transform: translateX(32px); } }
.sheet-in { width: min(720px, 100%); height: 100%; overflow-y: auto; overscroll-behavior: contain; border-radius: var(--r-lg); background: var(--bg); padding-bottom: 40px; }
.sheet-close { position: sticky; top: 0; z-index: 1; display: flex; justify-content: flex-end; padding: 14px; }
.sheet-close button { height: 38px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: var(--ink); font: 500 14px var(--sans); cursor: pointer; }
.sheet-close button:hover { border-color: var(--ink); }
.sheet-close button { position: relative; }
.sheet-close button::after { content: ""; position: absolute; inset: -4px; } /* 44px tap area */
.sheet .gal { display: grid; gap: 10px; margin-top: -52px; padding: 0 14px; }
.sheet .gal img { height: auto; border-radius: var(--r-md); }
.sheet .body { padding: 22px clamp(18px, 4vw, 36px) 0; }
.sheet .tags { margin: 0; }
.story-title { margin: 14px 0 22px; font-size: clamp(26px, 3vw, 36px); font-weight: 600; line-height: 1.1; letter-spacing: -0.024em; text-wrap: balance; }
.sheet dl { margin: 0; display: grid; grid-template-columns: 7rem 1fr; gap: 14px 20px; align-items: baseline; padding-top: 18px; border-top: 1px solid var(--line); }
.sheet dt { padding-top: 3px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.sheet dd { margin: 0; }
.sheet dd.big { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; color: var(--ocean); }
.sheet .more { margin-top: 24px; }
.links-dd a { display: block; width: fit-content; margin: 0 0 6px; color: var(--ocean); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.links-dd a::after { content: " \2197"; color: var(--coral); }
.links-dd a:hover { color: var(--ink); }

/* ---------- More film (inside the dark Film band) ---------- */
.film-sub { margin: clamp(48px, 6vw, 72px) 0 18px; font-size: 12.5px; font-weight: 500; color: var(--foam); text-transform: uppercase; letter-spacing: 0.08em; }
.more-film { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mf { display: block; color: #fff; text-decoration: none; }
.mf > span, .mf > b { display: block; }
.mf-ph { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-md); background: var(--ocean); }
.mf-ph img { transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.mf:hover .mf-ph img, .mf:focus-visible .mf-ph img { transform: scale(1.035); }
.mf-ph::after {
  content: ""; position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='%230b1f2a'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.mf .tags { margin: 14px 0 0; }
.mf b { margin-top: 10px; text-wrap: balance; font-size: 18px; font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; }
.mf-role { margin-top: 4px; font-size: 14.5px; color: rgba(255, 255, 255, 0.72); }
.social-video { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 10px; margin-top: 36px; }
.social-video p { margin: 0 8px 0 0; color: var(--foam); text-transform: uppercase; letter-spacing: 0.08em; }
.social-video a { text-wrap: balance; padding: 9px 16px; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 999px; color: #fff; font-size: 14px; font-weight: 500; text-decoration: none; transition: border-color 0.2s ease; }
.social-video a::after { content: "\00a0\2197"; color: var(--foam); }
.social-video a:hover { border-color: #fff; }

/* ---------- Published ---------- */
.outlets { list-style: none; margin: 0 0 clamp(30px, 3.5vw, 44px); padding: 22px 0; display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 12px 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.outlets li { font-size: clamp(18px, 1.75vw, 24px); font-weight: 600; letter-spacing: -0.02em; color: var(--ocean); }
.press { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 40px) 20px; }
.press-card { display: block; border-radius: var(--r-md); color: inherit; text-decoration: none; }
.press-card > span { display: block; }
.press-ph { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-md); background: var(--line); }
.press-ph img { transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.press-card:hover .press-ph img, .press-card:focus-visible .press-ph img { transform: scale(1.035); }
.press-outlet { margin-top: 14px; color: var(--ocean); text-transform: uppercase; letter-spacing: 0.08em; }
.press-title { text-wrap: pretty; margin-top: 6px; font-size: 19px; font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; }
.press-role { margin-top: 4px; color: var(--muted); font-size: 15px; }
.press-role::after { content: " \2197"; color: var(--coral); }
.also { margin-top: clamp(36px, 4vw, 52px); }
.also-list { list-style: none; margin: 18px 0 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.also-list li + li { border-top: 1px solid var(--line); }
.also-list a { display: grid; grid-template-columns: 15rem minmax(0, 1fr) auto; gap: 4px 24px; align-items: baseline; padding: 16px 24px; color: inherit; text-decoration: none; transition: background-color 0.2s ease; }
.also-list a:hover, .also-list a:focus-visible { background: var(--mint); }
.also-list a:focus-visible { outline-offset: -3px; }
.also-list li:first-child a { border-radius: calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px) 0 0; }
.also-list li:last-child a { border-radius: 0 0 calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px); }
.also-outlet { font-weight: 600; letter-spacing: -0.01em; }
.also-title { color: var(--muted); text-wrap: pretty; }
.also-role { color: var(--ocean); white-space: nowrap; }
.also-role::after { content: " \2197"; color: var(--coral); }

/* ---------- Reports and design ---------- */
.reports { display: grid; align-items: start; grid-template-columns: repeat(4, 1fr); gap: clamp(28px, 3vw, 40px) 20px; }
.rep-group { margin: 0 0 18px; }
.reports + .rep-group { margin-top: clamp(44px, 5vw, 64px); }
.rep { position: relative; margin: 0; }
.rep b a::before { content: ""; position: absolute; inset: 0; }
.rep-ph { display: block; aspect-ratio: 4 / 3; padding: 16px; border-radius: var(--r-md); background: var(--mint); overflow: hidden; }
.rep-ph .rep-img { object-fit: contain; filter: drop-shadow(0 8px 16px rgba(7, 42, 56, 0.18)); transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.rep:has(b a:hover) .rep-img, .rep:has(b a:focus-visible) .rep-img { transform: scale(1.035); }
.rep figcaption { margin-top: 14px; }
.rep b, .rep-role { text-wrap: pretty; }
.rep b { display: block; font-size: 17px; font-weight: 600; line-height: 1.25; letter-spacing: -0.012em; }
.rep b a { text-decoration: none; }
.rep b a::after { content: "\00a0\2197"; color: var(--coral); }
.rep b a:hover { text-decoration: underline; text-underline-offset: 3px; }
.rep-org { display: block; margin-top: 5px; color: var(--ocean); }
.rep-role { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.45; color: var(--muted); }

/* ---------- Narrow screens ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .mosaic { aspect-ratio: 4 / 3; }
  .numbers-grid { grid-template-columns: 1fr 1fr; }
  .num:nth-child(odd) { border-left: 0; padding-left: 0; }
  .num:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, 0.12); padding-left: clamp(16px, 2vw, 28px); }
  .num:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.12); }
  .places { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .places::before { display: none; }
  .countries { grid-template-columns: 1fr 1fr; }
  .cg-asia { grid-column: 1 / -1; }
  .cgroup + .cgroup { border-left: 0; border-top: 1px solid var(--line); }
  .cgroup:last-child { border-left: 1px solid var(--line); }
  .skills { grid-template-columns: 1fr 1fr; }
  .card, .c-wide, .c-narrow { grid-column: 1 / -1; }
  .clip-main, .clip-side, .clip-stack, .clip-third { grid-column: 1 / -1; }
  .film-grid { row-gap: 40px; }
  .clip-stack { gap: 40px; }
  .clip-third { margin-top: 0; }
  .more-film, .press { grid-template-columns: 1fr 1fr; }
  .outlets { display: flex; flex-wrap: wrap; justify-content: flex-start; }
  .reports { grid-template-columns: repeat(3, 1fr); }
  .also-list a { grid-template-columns: 12rem minmax(0, 1fr); }
  .also-role { grid-column: 2; }
  .also-outlet { grid-row: span 2; }
  .c-wide .ph, .c-narrow .ph { aspect-ratio: 3 / 2; }
  .timeline li { grid-template-columns: 10rem 1fr; }
  .timeline .title, .timeline .place-tag { grid-column: 2; justify-self: start; }
  .timeline .when { grid-row: span 2; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact + .fact { border-left: 0; }
  .fact:nth-child(even) { border-left: 1px solid var(--line); }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .photos { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 44vw; gap: 10px; }
  .photos figure { grid-column: span 1 !important; grid-row: span 1 !important; }
  .photos figure:first-child, .photos figure:last-child { grid-column: span 2 !important; }
  .photo-credit { left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 5px 9px; border-radius: 13px; font-size: 12px; line-height: 1.3; }
  .play-full { left: 10px; bottom: 10px; padding: 7px 13px 7px 11px; font-size: 13px; }
}
@media (max-width: 620px) {
  .nav { padding: 0 6px 0 16px; }
  .nav nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 9px; font-size: 13px; }
  .nav nav a[href="#experience"], .nav nav a[href="#film"] { display: none; }
  .status { font-size: 12px; }
  .skills { grid-template-columns: 1fr; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .more-film, .press { grid-template-columns: 1fr; }
  .outlets { column-gap: 24px; }
  .more-film { row-gap: 40px; }
  .reports { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .rep b { font-size: 15.5px; }
  .also-list a { grid-template-columns: 1fr; padding: 14px 18px; }
  .also-role { grid-column: 1; }
  .also-outlet { grid-row: auto; }
  .nav nav a[href="#published"] { display: none; }
  .timeline li { grid-template-columns: 1fr; padding: 16px 18px; }
  .timeline .title, .timeline .place-tag { grid-column: 1; }
  .timeline .when { grid-row: auto; }
  .places { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-photo { order: -1; width: 128px; margin-bottom: 26px; border-radius: var(--r-md); }
  .fact:nth-child(even) { border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
  .sheet { padding: 0; }
  .sheet-in { border-radius: 0; }
  .sheet-close, .sheet .gal, .sheet .body { padding-inline: var(--pad); }
  .sheet dl { grid-template-columns: 1fr; gap: 4px; }
  .sheet dd { margin-bottom: 12px; }
  .hero-actions { gap: 8px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; padding: 0 12px; }
  .lede { text-wrap: pretty; }
  .status { border-radius: 18px; }
}
