/* ==========================================================
   SITE-WIDE SETTINGS — change these to restyle every page.
   ========================================================== */
:root {
  --ink: #262626;             /* main text, current page, hover */
  --accent: #262626;          /* highlights (was red in draft 1) */
  --link: #9b9b9b;            /* clickable items at rest */
  --muted: #6f6f6f;           /* secondary text */
  --paper: #ffffff;           /* background */
  --line: #e4e4e4;            /* dividers */
  --fade: 0.3s;               /* hover fade speed */

  --font-display: "Figtree", "Proxima Nova", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Activ Grotesk", "Helvetica Neue", Arial, sans-serif;

  --max: 1240px;              /* page width */
  --text-max: 40rem;          /* width of text blocks */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --gap: clamp(1rem, 2.5vw, 2rem);
  --grid-min: 300px;          /* smallest card width before columns drop */
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.08; letter-spacing: -0.01em; margin: 0; }
main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 5rem; }

/* ---------- header ---------- */
.site-header {
  max-width: var(--max); margin: 0 auto;
  padding: 1.5rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.wordmark {
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem;
  text-decoration: none; letter-spacing: -0.02em;
}
.wordmark { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; }
.wordmark img { width: 24px; height: auto; }
.site-nav { display: flex; gap: 1.75rem; }
.site-nav a { text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1rem; padding: 0.25rem 0; color: var(--link); transition: color var(--fade); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.nav-toggle, .nav-burger { display: none; }

/* ---------- home ---------- */
.hero { padding: clamp(2.5rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem); border-bottom: 1px solid var(--line); margin-bottom: 3rem; }
.eyebrow { margin: 0 0 1rem; color: var(--link); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; }
.hero h1 { font-size: clamp(2rem, 5.2vw, 4rem); max-width: 18ch; font-weight: 700; }
.home-section { margin-bottom: 4.5rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.5rem; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.section-head h2 a { text-decoration: none; }
.more { color: var(--link); transition: color var(--fade); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.more:hover { color: var(--ink); }

/* ---------- cards ---------- */
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(var(--grid-min), 100%), 1fr)); }
.card { text-decoration: none; display: block; }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.03); }
.card-text { padding-top: 0.85rem; }
.card h3 { font-size: 1.2rem; }
.card h3 { color: var(--ink); }
.card-media::before { content: ""; position: absolute; inset: 0; background: var(--ink); opacity: 0; transition: opacity var(--fade); z-index: 1; }
.card:hover .card-media::before { opacity: 0.18; }
.card-media { position: relative; }
.card p { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.95rem; line-height: 1.45; }

/* ---------- section + project pages ---------- */
.page-head, .project-head { padding: clamp(2rem, 6vw, 4.5rem) 0 2.5rem; }
.page-head h1, .project-head h1 { font-size: clamp(2.2rem, 6vw, 4.25rem); }
.lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--muted); max-width: var(--text-max); margin: 1rem 0 0; }
.back { display: inline-block; margin-bottom: 1.25rem; color: var(--link); transition: color var(--fade); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.back:hover { color: var(--ink); }
.meta { display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem; margin: 2rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.meta dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.meta dd { margin: 0.15rem 0 0; font-weight: 600; }

.block-text { max-width: var(--text-max); margin: 3rem 0; }
.block-text h2 { font-size: 1.6rem; margin-bottom: 0.75rem; }
.block-text p { margin: 0; }
.block-image, .block-pair { margin: 0 0 var(--gap); }
.block-image img { width: 100%; }
.pair { display: flex; gap: var(--gap); align-items: flex-start; }
.pair > * { min-width: 0; }
.pair img { width: 100%; }
figcaption { margin-top: 0.6rem; color: var(--muted); font-size: 0.9rem; }

.next-up { margin-top: 5rem; padding: 1.75rem 0 .5rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; }
.nu-link { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: var(--link); transition: color var(--fade); }
.nu-link.next { justify-content: flex-end; text-align: right; }
.nu-link:hover { color: var(--ink); }
.nu-thumb { width: 72px; height: 54px; flex: none; overflow: hidden; background: var(--line); }
.nu-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: opacity var(--fade); }
.nu-link:hover .nu-thumb img { opacity: 1; }
.nu-label { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; }
.nu-title { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.nu-all { font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: var(--link); text-decoration: none; transition: color var(--fade); }
.nu-all:hover { color: var(--ink); }
.lead-big { font-size: clamp(1.15rem, 2vw, 1.45rem); color: var(--ink); margin: 0; }
@media (max-width: 760px) {
  .next-up { grid-template-columns: 1fr 1fr; }
  .nu-all { grid-column: 1 / -1; grid-row: 2; text-align: center; }
  .nu-thumb { display: none; }
}

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); padding-top: clamp(2rem, 6vw, 4.5rem); align-items: start; }
.about h1 { font-size: clamp(2.2rem, 6vw, 4.25rem); }
.about h2 { font-size: 1.3rem; margin: 2.5rem 0 0.5rem; }
.about-text a:not(.button) { color: var(--link); transition: color var(--fade); }
.about-text .button { color: #fff; }
.about a:hover { color: var(--ink); }

/* ---------- footer ---------- */
.site-footer {
  max-width: var(--max); margin: 0 auto; padding: 2rem var(--gutter) 3rem;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  color: var(--muted); font-size: 0.9rem;
}
.site-footer p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-links a { text-decoration: none; color: var(--link); transition: color var(--fade); }
.footer-links a:hover { color: var(--ink); }

/* ---------- image protection ---------- */
.protected { position: relative; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.protected img { pointer-events: none; -webkit-user-drag: none; }
.protected::after { content: ""; position: absolute; inset: 0; } /* transparent shield over the image */

/* ---------- tablet & phone ---------- */
@media (max-width: 760px) {
  .site-header { flex-wrap: wrap; padding-block: 1.1rem; }
  .nav-burger { display: block; width: 28px; height: 20px; position: relative; cursor: pointer; }
  .nav-burger span, .nav-burger::before, .nav-burger::after {
    content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--ink); transition: .25s;
  }
  .nav-burger::before { top: 0; } .nav-burger span { top: 9px; } .nav-burger::after { bottom: 0; }
  .nav-toggle:checked + .nav-burger::before { top: 9px; transform: rotate(45deg); }
  .nav-toggle:checked + .nav-burger::after { bottom: 9px; transform: rotate(-45deg); }
  .nav-toggle:checked + .nav-burger span { opacity: 0; }
  .site-nav { display: none; flex-basis: 100%; flex-direction: column; gap: 0; padding-top: 0.75rem; }
  .site-nav a { padding: 0.75rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 320px; }
  .pair { flex-direction: column; }
  .pair > * { flex: none !important; width: 100%; }
  .section-head { flex-wrap: wrap; gap: 0.25rem 1rem; }
}

/* ==========================================================
   SPLASH PAGE (home)
   Each word sits on its own band. Hover: the band's artwork
   fades in at full color and the word turns white.
   ========================================================== */
.splash-page { min-height: 100vh; display: flex; flex-direction: column; }
.splash-name { display: flex; align-items: center; justify-content: center; gap: .7rem; padding: 1.75rem 1rem 1rem; font-family: var(--font-display); font-weight: 300; font-size: clamp(1.2rem, 2.2vw, 1.8rem); letter-spacing: .02em; color: var(--ink); }
.splash-name img { width: auto; height: 1.4em; }
.splash { flex: 1; display: flex; flex-direction: column; max-width: none; width: 100%; margin: 0; padding: 0; }
.splash-door { position: relative; flex: 1; min-height: 34vh; display: flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; overflow: hidden; }
.door-art { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; }
.door-art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s ease; }
.door-art::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(20,20,20,.38); } /* keeps white type readable */
.door-text { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; padding: 1rem var(--gutter); }
.splash-small { font-family: var(--font-display); font-weight: 800; font-size: clamp(1rem, 1.6vw, 1.3rem); color: var(--link); margin-bottom: 1rem; transition: color var(--fade); }
.door-word { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; line-height: 1; font-size: clamp(2.6rem, 9vw, 7.5rem); color: var(--link); transition: color var(--fade); }
.splash-door:is(:hover, :focus-visible) { outline: none; }
.splash-door:is(:hover, :focus-visible) .door-art { opacity: 1; }
.splash-door:is(:hover, :focus-visible) .door-art img { transform: scale(1); }
.splash-door:is(:hover, :focus-visible) :is(.door-word, .splash-small) { color: #fff; }
.splash-or { margin: 0; padding: .9rem 0; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: clamp(1rem, 1.6vw, 1.3rem); color: var(--link); }
.splash-footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.5rem; padding: 1.5rem 1rem 2rem; font-size: .9rem; }
.splash-footer a { color: var(--link); text-decoration: none; transition: color var(--fade); }
.splash-footer a:hover { color: var(--ink); }

/* touch screens have no hover: show both bands in full color */
@media (hover: none) {
  .door-art { opacity: 1; }
  .door-art img { transform: none; }
  .door-word, .splash-small { color: #fff; }
}

/* ---------- animation & archive page ---------- */
.video-list { display: grid; gap: 4rem; }
.video-item { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.video-item:nth-child(even) .video-frame { order: 2; }
.video-frame { aspect-ratio: 16 / 9; background: var(--line); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .9rem; }
.video-frame iframe, .video-frame video { width: 100%; height: 100%; border: 0; }
.video-text h2 { font-size: 1.5rem; }
.video-text .tools { color: var(--link); margin: .4rem 0 .9rem; font-weight: 500; }
.video-text p { margin: 0; }
.archive { margin-top: 6rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.archive h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.archive .lede { margin-bottom: 2rem; }
@media (max-width: 760px) {
  .video-item { grid-template-columns: 1fr; }
  .video-item:nth-child(even) .video-frame { order: 0; }
}

/* ---------- case study extras ---------- */
.subtitle { margin: .5rem 0 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 2.4vw, 1.7rem); color: var(--muted); }
.hero-image { margin-bottom: 1rem; }
.block-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; margin: 4.5rem 0; }
.block-split.reverse .split-text { order: 2; }
.block-split.narrow { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.block-split.narrow.reverse { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.block-split h2, .block-text h2 { font-size: 1.6rem; margin-bottom: .75rem; }
.block-split p { margin: 0; max-width: var(--text-max); }
.split-media { margin: 0; }
.split-media img { width: 100%; }
@media (max-width: 760px) {
  .block-split, .block-split.narrow, .block-split.narrow.reverse { grid-template-columns: 1fr; margin: 3rem 0; }
  .block-split.reverse .split-text { order: 0; }
  .block-split.narrow .split-media { max-width: 360px; }
}

/* ---------- design page ---------- */
.page-head.center { text-align: center; }
.page-head.center .lede { margin-inline: auto; }
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; padding: clamp(2.5rem, 6vw, 5rem) 0; }
.feature.reverse .feature-text { order: 2; }
.feature-text h2 { font-size: clamp(2rem, 4vw, 3rem); }
.feature-text .subtitle { color: var(--ink); margin-top: .35rem; }
.feature-text p { margin: 1rem 0 0; max-width: 34rem; }
.feature-media { display: block; }
.feature-media img { width: 100%; transition: opacity var(--fade); }
a.feature-media:hover img { opacity: .85; }
.button { display: inline-block; margin-top: 1.5rem; padding: .7rem 1.6rem; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: .95rem; transition: background var(--fade); }
.button:hover { background: #555; }
.feature-gallery { margin-top: -1rem; padding-bottom: 2rem; }
.feature-gallery .pair { margin-bottom: var(--gap); }
.block-image.narrow img { max-width: 900px; margin-inline: auto; }
@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; }
  .feature.reverse .feature-text { order: 0; }
}

/* ---------- long case studies (virtual experiences) ---------- */
.case-head { margin: 6rem 0 2rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.case-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.case-head p { margin: .5rem 0 0; }
.case-logos { margin-top: 1.75rem; max-width: min(100%, 520px); }
.block-text + .block-text { margin-top: -1.5rem; }
.block-list { max-width: var(--text-max); margin: -2rem 0 3rem; padding-left: 1.2rem; }
.block-list li { margin: .4rem 0; }
.block-link { margin: -1rem 0 3rem; }
.block-pending { margin: 2rem 0; padding: 3rem 1rem; text-align: center; background: var(--line); color: var(--muted); }
.block-image video, .split-media video { display: block; width: 100%; height: auto; }
.block-image.narrow video { max-width: 900px; margin-inline: auto; }
.block-grid { margin: 0 0 3rem; }
.grid-images { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); align-items: center; }
@media (max-width: 760px) { .grid-images { grid-template-columns: repeat(2, 1fr); } }
.grid-images.cols-2 { grid-template-columns: repeat(2, 1fr); align-items: start; row-gap: calc(var(--gap) * 1.5); }
.grid-images .small { display: flex; justify-content: center; align-self: center; }
.grid-images .small img { max-width: 290px; }
.hero-narrow img { max-width: 560px; margin-inline: auto; }
@media (max-width: 760px) { .grid-images.cols-2 { grid-template-columns: 1fr; } }
.block-contrib { display: flex; align-items: center; justify-content: center; gap: 2rem; flex-wrap: wrap; margin: 4rem 0 1rem; }
.block-contrib p { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }
.block-contrib img { width: min(100%, 460px); }
.split-text a { color: var(--ink); }
.block-embed { aspect-ratio: 16 / 9; max-width: 1000px; margin: 0 auto 3rem; background: var(--line); }
.block-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- illustration landing: image-first bands ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bands { display: grid; gap: var(--gap); padding-top: 1rem; }
.band { position: relative; display: block; height: clamp(220px, 34vw, 440px); overflow: hidden; text-decoration: none; background: var(--line); }
.band-art, .band-art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.band-art img { object-fit: cover; transition: transform 1.2s ease; }
.band-art::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(20,20,20,.12); opacity: 0; transition: opacity var(--fade); }
.band-title { position: absolute; left: clamp(1rem, 3vw, 2.25rem); bottom: clamp(.9rem, 2.5vw, 1.75rem); z-index: 2; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; font-size: clamp(1.4rem, 3.8vw, 2.9rem); line-height: 1; color: #fff; background: var(--ink); padding: .3em .45em .25em; transition: background var(--fade); }
.band:hover .band-title { background: #000; }
.band:hover .band-art img { transform: scale(1.03); }
.band:hover .band-art::before { opacity: 1; }
.resume-page { background: #eee; padding: 1.5rem 1rem 3rem; }
.resume-back { max-width: 850px; margin: 0 auto 1rem; }
.resume-back a { color: var(--link); text-decoration: none; font-weight: 600; }
.resume-back a:hover { color: var(--ink); }
.resume-sheet { max-width: 850px; margin: 0 auto; box-shadow: 0 2px 18px rgba(0,0,0,.12); background: #fff; }
.resume-sheet img { width: 100%; }
.eyebrow-sm { margin: 0 0 .6rem; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--link); }
.block-split.wide { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); margin: 3.5rem 0; }
.block-split.wide.reverse { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.block-split.wide p:not(.eyebrow-sm) { font-size: .95rem; color: var(--muted); }
@media (max-width: 760px) { .block-split.wide, .block-split.wide.reverse { grid-template-columns: 1fr; } }
.block-split.wide p:not(.eyebrow-sm) { line-height: 1.45; }
.pgap { display: block; height: .55em; }
.block-sheet { margin: 5rem 0 1rem; padding: clamp(1rem, 2.5vw, 1.75rem); background: #f2f2f2; border: 1px solid var(--line); }
.block-sheet h2 { font-size: 1.3rem; margin-bottom: 1.25rem; }
.sheet-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem 1rem; }
.sheet-frame { aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid #cfcfcf; background: #fff; }
.sheet-frame img { width: 100%; height: 100%; object-fit: cover; }
.sheet-grid p { margin: .5rem 0 0; font-size: .82rem; line-height: 1.35; color: var(--muted); display: flex; gap: .5rem; align-items: baseline; }
.sheet-num { font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: .85rem; border: 1.5px solid var(--ink); padding: 0 .35em; line-height: 1.4; }
@media (max-width: 760px) { .sheet-grid { grid-template-columns: repeat(2, 1fr); } }
.feature-media video { display: block; width: 100%; height: auto; }
.grid-images.cols-3 { grid-template-columns: repeat(3, 1fr); }
.split-list { margin: .75rem 0; padding-left: 1.2rem; }
.split-list li { margin: .35rem 0; }
.split-text p + p { margin-top: .9rem; }
@media (max-width: 760px) { .grid-images.cols-3 { grid-template-columns: 1fr; } }
.block-image.tall video { max-width: 640px; margin-inline: auto; }
.case-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.case-head.media-logo { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.case-head h2 { color: var(--muted); }
.case-media video, .case-media img { display: block; width: 100%; height: auto; }
.case-head.media-logo .case-media img { max-width: 300px; margin-left: auto; }
.case-logos-row { display: flex; justify-content: center; margin: 1.5rem 0 3rem; }
.case-logos-row .case-logos { margin: 0; max-width: min(100%, 560px); }
@media (max-width: 760px) { .case-head, .case-head.media-logo { grid-template-columns: 1fr; } .case-head.media-logo .case-media img { margin: 0; max-width: 200px; } }
.project-head + .case-head { margin-top: 1rem; padding-top: 0; border-top: 0; }
.project-head .lede + .meta { margin-top: 1.5rem; }
