/* Kate Blaising / portfolio styles
   Warm palette, Anton / Inter / IBM Plex Mono.
   Desktop reference: 1024px page, 42px sides. Mobile reference: 390px page, 22px sides.
   When this file changes, update ?v= on every page (see CLAUDE.md). */

:root {
  --paper: #fdf5f2;
  --ink: #1c2b28;
  --rust: #b24b28;
  --teal: #2a736c;
  --line: #d8d1c7;
  --image: #ebe6dd;
  --quiet: #5d6660;
  --font-display: Anton, Impact, sans-serif;
  --font-body: Inter, Arial, sans-serif;
  --font-label: "IBM Plex Mono", ui-monospace, monospace;
  --page-max: 1024px;
  --page-pad: 42px;
  --section-gap: 50px;
  --label-col: 270px;
  --gap: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--teal); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--ink); color: var(--paper); padding: 10px 14px; font-size: 13px;
}
.skip-link:focus { top: 12px; color: var(--paper); }

/* ---------- Page frame ---------- */
.page {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 28px var(--page-pad) 36px;
}
main { display: flex; flex-direction: column; gap: var(--section-gap); }
main > * { min-width: 0; }

/* ---------- Header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px 24px; flex-wrap: wrap;
  padding-bottom: 60px;
}
.site-name { font-size: 15px; line-height: 24px; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-nav a { display: inline-block; font-size: 13px; line-height: 21px; padding: 4px 0; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* ---------- Type ---------- */
.label {
  font-family: var(--font-label); font-size: 11px; line-height: 19px;
  color: var(--teal); text-transform: uppercase; letter-spacing: 0.02em; font-weight: 400;
}
.project .label { text-transform: none; }
.title {
  font-family: var(--font-display); font-weight: 400;
  font-size: 60px; line-height: 68px; color: var(--rust);
}
.lede { font-size: 19px; line-height: 27px; max-width: 650px; }
.small { font-size: 13px; line-height: 21px; }
.caption { font-size: 13px; line-height: 21px; color: var(--quiet); }
.caption a, .prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose p + p { margin-top: 24px; }
.text-link { font-size: 13px; line-height: 21px; color: var(--teal); }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.links { display: flex; flex-direction: column; gap: 29px; align-items: flex-start; }

/* ---------- Page intro ---------- */
.intro { display: flex; flex-direction: column; gap: 16px; }
.back { align-self: flex-start; }
.meta {
  display: grid; grid-template-columns: 600px 1fr; gap: 16px;
}
.meta .dates { font-family: var(--font-label); font-size: 11px; line-height: 19px; color: var(--quiet); }

/* ---------- Label + narrative rows ---------- */
.split {
  display: grid;
  grid-template-columns: var(--label-col) minmax(0, 620px);
  gap: var(--section-gap);
  align-items: start;
}
.chapter h2 { font-size: 26px; line-height: 37px; font-weight: 500; margin-bottom: 16px; }

/* ---------- Media ---------- */
.media { display: flex; flex-direction: column; gap: 12px; }
.media--lead img, .media--feature img {
  max-height: 480px; width: auto; margin: 0 auto;
}
.media--feature img { max-height: 480px; }
.media .caption { align-self: stretch; }

/* Zoomable images (opened in the viewer by site.js; without JS they open on their own) */
a.zoom { display: block; cursor: zoom-in; }
a.zoom:hover img { opacity: 0.92; }

/* ---------- Galleries ----------
   .gallery     a stack of rows plus an optional label and caption
   .g-row       one row of photos. Photos of any shape line up at the same height.
                Add or remove <figure> blocks freely. site.js reads each image's
                width and height to size it, so no numbers are needed.
   style="--ar: 1.5" on a <figure> crops that photo to a fixed shape (width / height). */
.gallery { display: flex; flex-direction: column; gap: 12px; }
.gallery > .label { margin-bottom: 4px; }
.g-row { display: flex; gap: var(--g-gap, 12px); align-items: flex-start; }
.g-row > figure { flex: var(--ar, 1) 1 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.g-row > figure img { width: 100%; }
figure[style*="--ar"] img { width: 100%; aspect-ratio: var(--ar); object-fit: cover; }
.g-row--24 { --g-gap: 24px; }
.g-row--16 { --g-gap: 16px; }
.g-row--center { align-items: center; }
.g-cols { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: var(--g-gap, 24px); }
.g-cols > figure { display: flex; flex-direction: column; gap: 12px; }

/* Phone screens (Banda): fixed column width, rows centred so an odd last screen sits in the middle */
.screens { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.screens > figure { width: 225px; display: flex; flex-direction: column; gap: 12px; }

/* ---------- Film watch strips (no embedded player) ---------- */
.film {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 24px; align-items: start;
  padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.film-play {
  width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid var(--teal); color: var(--teal);
  display: flex; align-items: center; justify-content: center; transition: background .15s ease, color .15s ease;
}
.film-play svg { margin-left: 3px; }
.film:hover .film-play { background: var(--teal); color: var(--paper); }
.film-text { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.film-title { font-size: 24px; line-height: 34px; font-weight: 500; }
.film-watch {
  margin-top: 4px; font-size: 20px; line-height: 28px; color: var(--teal);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.film-watch:hover { color: var(--ink); }
.film-watch--second { font-size: 16px; line-height: 24px; margin-top: 0; }

/* ---------- NAB 360° build feature ---------- */
.build { display: flex; flex-direction: column; gap: 20px; }
.build-main {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px;
  padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.build-mark { color: var(--teal); display: flex; flex-direction: column; gap: 12px; }
.build-mark .label { font-size: 12px; }
.build-number { font-family: var(--font-display); font-size: 88px; line-height: 100px; }
.build-phases { font-family: var(--font-label); font-size: 12px; line-height: 24px; }
.build-text { display: flex; flex-direction: column; gap: 12px; }
.build-line { font-size: 24px; line-height: 34px; font-weight: 500; color: var(--teal); }
.build-watch { font-size: 20px; line-height: 28px; color: var(--teal); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; align-self: flex-start; }
.build-credit { font-size: 12px; line-height: 21px; color: var(--teal); }
.partners { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.partners a { font-size: 16px; line-height: 24px; color: var(--teal); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.partners p { font-size: 14px; line-height: 21px; color: var(--quiet); margin-top: 12px; }

/* ---------- Event stories (Community & Events) ---------- */
.event { display: grid; grid-template-columns: 340px minmax(0, 560px); gap: 42px; align-items: start; }
.event-text { display: flex; flex-direction: column; gap: 16px; }
.event-text h2 { font-size: 26px; line-height: 37px; font-weight: 500; }

/* ---------- Private case study strip (Originator overview) ---------- */
.private-strip {
  display: grid; grid-template-columns: var(--label-col) minmax(0, 620px); gap: var(--section-gap);
  padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.private-body { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.private-title { font-family: var(--font-display); font-weight: 400; font-size: 42px; line-height: 47px; color: var(--rust); }
.private-link {
  margin-top: 8px; font-size: 20px; line-height: 28px; color: var(--teal);
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px;
}
.private-link:hover { color: var(--ink); }
.private-request { color: var(--quiet); }

/* ---------- Big numbers (private case results) ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 8px 0 16px; }
.stats li { display: flex; flex-direction: column; gap: 6px; }
.stat-number { font-family: var(--font-display); font-size: 42px; line-height: 47px; color: var(--rust); }

/* ---------- Next project + footer ---------- */
.next { display: flex; flex-direction: column; gap: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.site-footer { margin-top: var(--section-gap); }
.connect {
  border-top: 1px solid var(--line); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 12px 24px; max-width: 753px; flex-wrap: wrap;
}
.connect h2 { font-family: var(--font-display); font-weight: 400; font-size: 42px; line-height: 47px; color: var(--rust); margin-bottom: 12px; }
.connect a { font-size: 13px; line-height: 21px; }
.footer-line {
  display: flex; justify-content: space-between; gap: 24px; padding-top: 32px;
  font-family: var(--font-label); font-size: 11px; line-height: 19px; color: var(--teal);
}

/* ---------- Home ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 540px) minmax(0, 350px); gap: 50px; align-items: end; }
.hello { font-family: var(--font-display); font-weight: 400; font-size: 31px; line-height: 38px; color: var(--rust); margin-bottom: 20px; }
.hero-lockup { position: relative; width: max-content; max-width: 100%; font-size: clamp(43px, 5.5vw, 60px); padding-right: 40px; }
.headline {
  font-family: var(--font-display); font-weight: 400; font-size: 1em; line-height: 1.13;
  text-transform: uppercase; letter-spacing: -0.6px; color: var(--ink);
}
.headline span { display: inline; }
.outline { color: transparent; -webkit-text-stroke: 1.1px var(--ink); }
.accent { color: var(--rust); }
/* The flower belongs to the headline: tucked beneath the end of IDEAS, right of the lower lines. */
.hero-flower { position: absolute; left: calc(100% - 87px); top: 1.17em; width: 88px; height: 132px; object-fit: contain; }
.hero-intro { display: flex; flex-direction: column; gap: 16px; padding-bottom: 4px; max-width: 315px; }
.hero-intro .small { margin-top: 0; }

.selected { display: flex; flex-direction: column; }
.selected-head {
  display: flex; justify-content: space-between; gap: 16px; padding-bottom: 16px; max-width: 650px;
}
.selected-head .quiet { font-family: var(--font-label); font-size: 11px; line-height: 19px; color: var(--quiet); text-align: right; }

.projects--work { border-bottom: 0; }
.project { border-top: 1px solid var(--line); }
.project > a {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) 35px; gap: 28px;
  align-items: center; padding: 24px 0;
}
.project-thumb { width: 150px; height: 120px; object-fit: cover; }
.project-text { display: flex; flex-direction: column; gap: 8px; }
.project-name { font-family: var(--font-display); font-weight: 400; font-size: 42px; line-height: 47px; color: var(--rust); }
.project-copy { font-size: 13px; line-height: 21px; color: var(--ink); }
.project-arrow { font-size: 28px; line-height: 24px; color: var(--rust); transition: transform .15s ease; }
.project > a:hover .project-arrow, .project > a:focus-visible .project-arrow { transform: translate(3px, -3px); color: var(--teal); }
.project > a:hover .project-name { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.project--compact > a { grid-template-columns: 34px minmax(0, 1fr) 35px; padding: 20px 0; }
.project--compact .project-name { font-size: 29px; line-height: 33px; }
.project-index { font-family: var(--font-label); font-size: 11px; line-height: 19px; color: var(--teal); }
.projects--work { display: flex; flex-direction: column; gap: 50px; }
.projects--work .project:last-child { border-bottom: 0; }

.home-about { border-top: 1px solid var(--line); padding-top: 24px; margin-top: -18px; }
.home-about.split { grid-template-columns: 280px minmax(0, 610px); }

/* ---------- About ---------- */
.portrait-intro { display: grid; grid-template-columns: 346px minmax(0, 544px); gap: 50px; align-items: start; }
.portrait-intro img { width: 346px; height: 460px; object-fit: cover; }
.feature-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.feature-pair img { width: 100%; aspect-ratio: 458 / 306; object-fit: cover; }
.feature-pair .feature-title { font-size: 26px; line-height: 36px; font-weight: 400; }
.stack-16 { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }

/* ---------- Contact ---------- */
.big-email { font-size: 32px; line-height: 46px; color: var(--teal); overflow-wrap: anywhere; }
.big-email:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* ---------- Private case gate ---------- */
.unlock-form { display: flex; flex-direction: column; gap: 16px; max-width: 460px; }
.unlock-form label { font-size: 13px; line-height: 21px; }
.unlock-form input {
  height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: 0;
  background: var(--image); color: var(--ink); font: inherit; font-size: 15px; width: 100%;
}
.unlock-form input:focus { border-color: var(--teal); }
.unlock-form.has-error input, .unlock-form input[aria-invalid="true"] { border-color: var(--rust); }
.unlock-error { font-size: 13px; line-height: 21px; color: var(--rust); }
.unlock-form button {
  height: 48px; width: 220px; border: 0; border-radius: 0; background: var(--teal); color: var(--paper);
  font: inherit; font-size: 13px; cursor: pointer;
}
.unlock-form button:hover { background: var(--ink); }
.unlock-form button[disabled] { opacity: .7; cursor: progress; }

/* ---------- Image viewer ---------- */
.viewer {
  border: 0; padding: 0; margin: auto; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
  background: rgba(28, 43, 40, 0.94); color: var(--paper);
}
.viewer::backdrop { background: rgba(28, 43, 40, 0.94); }
.viewer[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 56px 16px 20px; }
.viewer img { max-width: min(1400px, 100%); max-height: calc(100vh - 140px); width: auto; height: auto; object-fit: contain; }
.viewer p { font-size: 13px; line-height: 21px; max-width: 760px; text-align: center; color: #e8e2dc; }
.viewer-close {
  position: absolute; top: 12px; right: 16px; border: 0; background: none; color: var(--paper);
  font: inherit; font-size: 13px; padding: 8px; cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .private-strip { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 32px; }
  .meta { grid-template-columns: 1fr; gap: 8px; }
  .split { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 32px; }
  .home-about.split { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); }
  .event { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; }
  .portrait-intro { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 32px; }
  .portrait-intro img { width: 100%; height: auto; aspect-ratio: 346 / 460; }
}

@media (max-width: 620px) {
  :root { --page-pad: 22px; --section-gap: 40px; }
  .page { padding-top: 24px; padding-bottom: 30px; }
  .site-header { padding-bottom: 42px; }
  .site-nav ul { gap: 4px 14px; }
  .title { font-size: 42px; line-height: 48px; }
  .lede { font-size: 17px; line-height: 26px; }
  .split, .home-about.split { grid-template-columns: 1fr; gap: 12px; }
  .chapter h2, .event-text h2 { font-size: 23px; line-height: 32px; margin-bottom: 12px; }
  .event { grid-template-columns: 1fr; gap: 20px; }
  .event-text { gap: 12px; }
  .g-row--24 { --g-gap: 12px; }
  .g-row--stack-mobile { flex-direction: column; gap: 24px; }
  .g-row--stack-mobile > figure { flex: none; width: 100%; }
  .g-row--2up-mobile { flex-wrap: wrap; row-gap: 20px; }
  .g-row--2up-mobile > figure { flex: 0 0 calc(50% - var(--g-gap, 12px) / 2); }
  .g-cols { --g-gap: 12px; }
  .g-cols--stack-mobile { grid-template-columns: 1fr; gap: 24px; }
  .screens { gap: 16px 12px; }
  .screens > figure { width: calc((100% - 12px) / 2); max-width: 225px; }
  .film { grid-template-columns: 48px minmax(0, 1fr); gap: 16px; }
  .film-play { width: 48px; height: 48px; }
  .film-title { font-size: 21px; line-height: 30px; }
  .film-watch { font-size: 18px; line-height: 26px; }
  .build-main { grid-template-columns: 1fr; gap: 16px; }
  .build-number { font-size: 72px; line-height: 82px; }
  .build-phases { display: flex; gap: 16px; }
  .build-line { font-size: 21px; line-height: 30px; }
  .partners { grid-template-columns: 1fr; gap: 20px; }
  .private-strip { grid-template-columns: 1fr; gap: 12px; padding: 24px 0; }
  .private-title { font-size: 34px; line-height: 40px; }
  .stats { grid-template-columns: 1fr; gap: 16px; }
  .connect { flex-direction: column; }
  .connect h2 { font-size: 37px; line-height: 44px; }
  .media--lead img, .media--feature img { max-height: none; width: 100%; }

  .hero { grid-template-columns: 1fr; gap: 24px; }
  .hello { font-size: 27px; line-height: 34px; margin-bottom: 16px; }
  .hero-lockup { font-size: 42px; padding-right: 31px; }
  .hero-flower { left: calc(100% - 66px); width: 66px; height: 94px; }
  .hero-intro { max-width: none; }
  .hero-intro p:not(.label) { font-size: 16px; line-height: 26px; }
  .selected-head .quiet { max-width: 110px; }
  .project > a { grid-template-columns: 87px minmax(0, 1fr) 22px; gap: 16px; padding: 22px 0; align-items: center; }
  .project-thumb { width: 87px; height: 120px; }
  .project-name { font-size: 31px; line-height: 36px; }
  .project-arrow { font-size: 23px; }
  .project--compact > a { grid-template-columns: 22px minmax(0, 1fr) 22px; gap: 14px; }
  .project--compact .project-name { font-size: 29px; line-height: 33px; }
  .projects--work { gap: 0; }
  .home-about { margin-top: 0; }
  .home-about p:not(.label) { font-size: 16px; line-height: 26px; }

  .portrait-intro { grid-template-columns: 1fr; gap: 24px; }
  .portrait-intro img { width: 100%; max-width: 346px; }
  .feature-pair { grid-template-columns: 1fr; }
  .big-email { font-size: 24px; line-height: 34px; }
  .unlock-form button { width: 100%; }
}

@media (max-width: 360px) {
  .site-header { align-items: flex-start; }
  .hero-lockup { font-size: 36px; padding-right: 22px; }
  .hero-flower { left: calc(100% - 56px); width: 56px; height: 80px; }
  .title { font-size: 38px; line-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
