/* ==========================================================================
   Oliver Stamatatos — style.css
   ========================================================================== */

/* Palette: Oliver's Earth — warm charcoal, SHUTEYE blues, paper cream; poster yellow + one red dot */
:root {
  --charcoal: #14161A;  /* warm near-black — the main ground */
  --graphite: #1E2126;  /* raised charcoal */
  --navy: #081428;      /* ink on light bands */
  --cobalt: #2A5DB0;    /* mid-page band, hard shadows */
  --steel: #4C7FCC;     /* hairlines on dark grounds */
  --sky: #7FA4DC;       /* accent on dark grounds */
  --mist: #C9D3E2;      /* light contact band */
  --paper: #EEE4CF;     /* text on dark grounds, small light bands */
  --yellow: #F2DE1B;    /* poster yellow — decorative shapes only, sparingly */
  --red: #D8141C;       /* poster red — a single tiny accent */
  --ink: var(--navy);

  --f-title: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-name: "League Gothic", "Archivo", Impact, sans-serif;
  --f-body: "Newsreader", Georgia, "Times New Roman", serif;

  --fs-body: clamp(17px, 1.2vw, 20px);
  --fs-small: clamp(12px, .85vw, 14px);
  --fs-h3: clamp(24px, 2.4vw, 36px);

  --gutter: clamp(16px, 3vw, 48px);
  --gap: clamp(10px, 1.2vw, 18px);
  --section-y: clamp(80px, 14vh, 180px);
  --nav-h: 68px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

body[data-theme="charcoal"] {
  --bg: var(--charcoal); --fg: var(--paper); --fg-soft: rgba(238, 228, 207, .72);
  --rule: rgba(238, 228, 207, .22); --hover: var(--sky); --accent: var(--sky); --on-accent: var(--charcoal);
  --field: rgba(238, 228, 207, .05); --shadow: var(--cobalt); --pop: var(--yellow); --grain: .07;
}
body[data-theme="cobalt"] {
  --bg: var(--cobalt); --fg: var(--paper); --fg-soft: rgba(201, 211, 226, .9);
  --rule: rgba(201, 211, 226, .4); --hover: var(--sky); --accent: var(--sky); --on-accent: var(--navy);
  --field: rgba(8, 20, 40, .18); --shadow: var(--sky); --pop: var(--yellow); --grain: .05;
}
body[data-theme="cream"] {
  --bg: var(--paper); --fg: var(--navy); --fg-soft: rgba(8, 20, 40, .66);
  --rule: rgba(8, 20, 40, .24); --hover: var(--cobalt); --accent: var(--cobalt); --on-accent: var(--paper);
  --field: rgba(8, 20, 40, .03); --shadow: var(--cobalt); --pop: var(--cobalt); --grain: .04;
}
body[data-theme="mist"] {
  --bg: var(--mist); --fg: var(--navy); --fg-soft: rgba(8, 20, 40, .7);
  --rule: rgba(8, 20, 40, .26); --hover: var(--cobalt); --accent: var(--cobalt); --on-accent: var(--paper);
  --field: rgba(238, 228, 207, .45); --shadow: var(--cobalt); --pop: var(--cobalt); --grain: .04;
}

/* ---------- Lenis ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg); color: var(--fg);
  font-family: var(--f-body); font-size: var(--fs-body); line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color .7s ease, color .7s ease;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--sky); color: var(--navy); }
:focus-visible { outline: 2px solid var(--hover); outline-offset: 3px; }

.skip { position: fixed; left: 12px; top: 12px; z-index: 300; padding: 10px 14px; background: var(--ink); color: var(--paper); transform: translateY(-200%); }
.skip:focus { transform: none; }
body::after {
  content: ""; position: fixed; inset: 0; z-index: 400; pointer-events: none;
  opacity: var(--grain, 0); transition: opacity .7s ease; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.label {
  font-family: var(--f-body); font-size: var(--fs-small); font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; line-height: 1.4;
}
.soft { color: var(--fg-soft); transition: color .7s ease; }
.section { position: relative; padding: var(--section-y) var(--gutter); }

.title {
  font-family: var(--f-title); font-weight: 850; text-transform: none;
  line-height: .88; letter-spacing: -.055em;
  font-variation-settings: "wdth" 100;
}
.poster__line { display: block; white-space: nowrap; overflow: hidden; padding-bottom: .16em; margin-bottom: -.14em; }  /* room for descenders (g, y, p) without changing the line spacing */
.title .poster__line { letter-spacing: -.055em; }
.poster__line > span { display: inline-block; }
/* Anton (from the SHUTEYE branding) alternates with Archivo inside big titles */
.anton { font-family: "Anton", var(--f-title); font-weight: 400; font-variation-settings: normal; letter-spacing: -.01em; }

.link { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease), color .3s; }
.link:hover, .link:focus-visible { background-size: 100% 1px; color: var(--hover); }

/* Tape — gaffer-tape labels and masking-tape strips on photos */
.tape--label {
  display: inline-grid; place-items: center;
  padding: .75em 1.7em .65em;
  font-family: var(--f-title); font-size: 13px; font-weight: 800; line-height: 1;
  letter-spacing: .08em; text-transform: uppercase;
  background: url("assets/tex/tape-black-1.png") center / 100% 100% no-repeat;
  color: var(--paper); rotate: -2deg;
}
.tape--label.tape--alt { background-image: url("assets/tex/tape-black-2.png"); rotate: 1.5deg; }
.tape-strip { position: absolute; z-index: 3; pointer-events: none; height: auto; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .22)); }
.card { position: relative; }

/* Poster boxed labels */
.boxlabel { display: inline-flex; align-items: center; gap: 10px; }
.box-label {
  display: inline-block; padding: 5px 10px 4px; border: 1.5px solid currentColor;
  font-family: var(--f-title); font-size: 12px; font-weight: 700; line-height: 1;
  letter-spacing: .1em; text-transform: uppercase; font-variation-settings: "wdth" 100;
}
.spark { width: 18px; height: 18px; fill: currentColor; color: var(--pop, var(--accent)); transition: color .7s ease; }
.spark use { fill: currentColor; stroke: none; }

/* Grain */
.grain {
  position: fixed; inset: -50%; z-index: 200; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.15' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .26; mix-blend-mode: overlay;
  animation: grain 1s steps(8) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); } 12% { transform: translate(-3%, 2%); } 25% { transform: translate(2%, -4%); }
  37% { transform: translate(-4%, -1%); } 50% { transform: translate(3%, 3%); } 62% { transform: translate(-2%, 4%); }
  75% { transform: translate(4%, -2%); } 87% { transform: translate(-1%, -3%); }
}


/* Line-art marks (built in script.js) */
.has-deco { isolation: isolate; }
.deco { position: absolute; z-index: -1; height: auto; color: var(--fg); pointer-events: none; overflow: visible; transition: color .7s ease; }
.deco--solid { color: var(--pop, var(--accent)); }
.deco--yellow { color: var(--yellow); }
.deco--red { color: var(--red); }
.deco--black { color: #0E0F0D; }
.deco--wire use { stroke-width: 1; }
:is(section, header, footer).has-deco { overflow-x: clip; }
.deco use { fill: none; stroke: currentColor; stroke-width: 1.2; }
.deco--solid use { fill: currentColor; stroke: none; }
.deco--bold use { stroke-width: 4; }
.deco--spin { animation: deco-spin 60s linear infinite; }
.deco--twinkle { animation: deco-twinkle 4s ease-in-out infinite; }
@keyframes deco-spin { to { rotate: 360deg; } }
@keyframes deco-twinkle { 0%, 100% { scale: 1; opacity: 1; } 50% { scale: .72; opacity: .6; } }
@media (max-width: 899px) { .deco--lg { display: none; } }
@media (min-width: 900px) { .deco--sm { display: none; } }


/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px;
  padding: 0 var(--gutter);
  background: var(--bg); color: var(--fg);
  transition: background-color .7s ease, color .7s ease;
}
.nav__brand { justify-self: start; }
.nav__name, .bigname {
  font-family: var(--f-name); font-weight: 400; line-height: .9; letter-spacing: .005em;
  font-variation-settings: "wdth" 100; white-space: nowrap;
}
.nav__name { display: block; font-size: 34px; padding-top: 4px; }
.nav__links, .nav__clock { display: none; }
.nav__links a { transition: color .3s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--hover); }
.nav__menu { background: none; border: 0; padding: 8px 0; cursor: pointer; }
@media (min-width: 900px) {
  .nav { grid-template-columns: 1fr auto 1fr; }
  .nav__links { display: flex; gap: clamp(20px, 2.4vw, 40px); }
  .nav__clock { display: block; justify-self: end; font-feature-settings: "tnum"; }
  .nav__menu { display: none; }
}

.menu {
  position: fixed; inset: 0; z-index: 95;
  display: grid; grid-template-rows: 1fr auto;
  padding: calc(var(--nav-h) + 24px) var(--gutter) var(--gutter);
  background: var(--bg); color: var(--fg);
}
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.menu nav a { font-family: var(--f-name); font-size: clamp(64px, 20vw, 140px); line-height: .9; text-transform: uppercase; }
.menu__foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Home: name that docks into the nav ---------- */
.bigname {
  position: absolute; z-index: 110;
  left: var(--gutter); top: calc(var(--nav-h) + 8px);
  font-size: 20vw; color: var(--fg);
  transition: color .7s ease;
}
.bigname__inner { display: block; overflow: hidden; padding-bottom: .04em; }
.bigname .l { display: inline-block; }
.is-docking .bigname { position: fixed; }
.js [data-page="home"]:not(.no-dock) .nav__name { visibility: hidden; }

.hero { position: relative; padding: calc(var(--nav-h) + 8px) var(--gutter) clamp(32px, 5vh, 56px); }
.hero__space { height: 18vw; }

.module { display: flex; flex-wrap: wrap; align-items: center; gap: 22px clamp(18px, 2.4vw, 36px); margin-top: 22px; }
.module__box { display: flex; align-items: stretch; border: 1.5px solid currentColor; min-height: 60px; }
.module__box:first-child { flex: none; min-height: 78px; }
@media (max-width: 699px) { .module__box:first-child { flex: 1 1 100%; } }
.module__cell { display: flex; align-items: center; padding: 8px 14px; border-left: 1.5px solid currentColor; }
.module__cell:first-child { border-left: 0; }
.module__mark { font-family: var(--f-name); font-size: 38px; line-height: 1; padding: 6px 14px 2px; }
.module__roles { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; font-family: var(--f-title); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.module__roles span { display: inline-flex; align-items: center; gap: 8px; }
.module__roles i { width: 8px; height: 8px; background: var(--accent); }

/* ---------- What I shoot (beside the OS box in the hero) ---------- */
.shoot { position: relative; flex: 1 1 420px; min-width: 0; }
.shoot__row { display: flex; flex-direction: column; align-items: flex-start; gap: .06em; }
.shoot__row a {
  font-family: var(--f-body); font-style: italic; font-weight: 500; line-height: .95;
  font-size: clamp(44px, 12vw, 96px); letter-spacing: -.025em;
  transition: letter-spacing .6s var(--ease), color .3s;
}
@media (min-width: 700px) { .shoot__row a { white-space: nowrap; } }
.shoot__row a:hover, .shoot__row a:focus-visible { letter-spacing: .01em; color: var(--hover); }
@media (min-width: 700px) {
  .shoot__row { flex-direction: row; justify-content: space-between; align-items: baseline; gap: .3em; }
}

/* ---------- Work ---------- */
#work { padding-top: clamp(28px, 4vh, 48px); padding-bottom: clamp(24px, 3vh, 40px); }
#more { padding-top: clamp(36px, 5vh, 56px); padding-bottom: clamp(48px, 7vh, 88px); }
.work__head { display: flex; align-items: flex-end; gap: clamp(12px, 2vw, 28px); margin-bottom: clamp(20px, 3vh, 36px); }
.work__mark { position: relative; display: inline-block; }
.work__mark .tape--label { position: absolute; right: -2.2em; bottom: -1.5em; rotate: -7deg; font-size: clamp(13px, 1.1vw, 16px); }
@media (max-width: 699px) { .work__mark .tape--label { font-size: 11px; right: -5.2em; bottom: -2em; } }
.work__title { font-size: clamp(56px, 8vw, 128px); }
/* hard offset shadow so the headline separates from the yellow burst behind it */
.work__title, .about__title { text-shadow: .045em .045em 0 var(--cobalt); }
.scribble { width: clamp(90px, 10vw, 150px); height: auto; margin-bottom: calc(clamp(20px, 3vh, 36px) * -1 - 6px); overflow: visible; color: var(--cobalt); }
.scribble path { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.featured {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: calc(var(--gap) + 6px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 14px;
}
.featured::-webkit-scrollbar { display: none; }
.featured .card { scroll-snap-align: start; }
@media (min-width: 700px) { .featured { grid-auto-columns: 40%; } }
@media (min-width: 1100px) {
  .featured { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; }
}
.all__head { display: flex; justify-content: flex-end; margin: 0 0 clamp(20px, 3vh, 32px); border-top: 1px solid var(--rule); }
.all__head .tape--label { margin: -1.1em clamp(8px, 2vw, 32px) 0 0; font-size: clamp(13px, 1.1vw, 16px); }
.all { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) calc(var(--gap) + 6px); }
@media (min-width: 700px) { .all { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .all { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .all { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.card { display: block; }
.card__media {
  aspect-ratio: 16 / 9; overflow: hidden; background: var(--graphite);
  box-shadow: 6px 6px 0 var(--shadow);
  transition: box-shadow .35s var(--ease), translate .35s var(--ease);
}
.card:hover .card__media, .card:focus-visible .card__media { translate: -2px -2px; box-shadow: 9px 9px 0 var(--shadow); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 10px; }
.card__title {
  --wdth: 100;
  font-family: var(--f-title); font-weight: 800; font-size: clamp(16px, 1.25vw, 21px); line-height: 1.1;
  font-variation-settings: "wdth" var(--wdth); letter-spacing: -.03em;
  transition: font-variation-settings .5s var(--ease), color .3s;
}
.title__artist { font-weight: 400; opacity: .72; }
.card__year { font-size: var(--fs-small); font-feature-settings: "tnum"; }
.card__credit { display: block; margin-top: 4px; font-size: var(--fs-small); font-style: italic; line-height: 1.35; }
.card__type { display: block; margin-bottom: 2px; font-style: normal; font-size: 11px; color: var(--fg); }
.card:hover .card__title, .card:focus-visible .card__title { --wdth: 112; color: var(--hover); }
.card:hover .card__credit, .card:focus-visible .card__credit { color: var(--fg); }

/* Last tile in More projects: a card-sized link to the full Index */
.card--index .card__media {
  display: grid; place-items: center; background: transparent; outline: 1.5px solid currentColor; outline-offset: -1.5px;
}
.card--index .card__big { font-family: var(--f-title); font-weight: 850; font-size: clamp(26px, 2.6vw, 40px); letter-spacing: -.055em; line-height: 1; white-space: nowrap; transition: color .3s; }
.card--index:hover .card__big, .card--index:focus-visible .card__big { color: var(--hover); }

/* ---------- Contact ---------- */
#contact { --cta-pad: clamp(40px, 6vh, 72px); padding-top: var(--cta-pad); padding-bottom: clamp(48px, 7vh, 88px); }
/* Contact tape laid across a hairline, like "More projects" above it (mirrored to the left) */
.cta__head { position: relative; display: flex; border-top: 1px solid var(--rule); }
.cta__head .tape--label { margin: -1.1em 0 0 clamp(8px, 2vw, 32px); font-size: clamp(13px, 1.1vw, 16px); }
.cta__title { font-size: 18vw; margin: clamp(28px, 4.5vh, 48px) 0 clamp(28px, 4vh, 48px); }
@media (min-width: 900px) { .cta__title { max-width: 66%; } }  /* smaller headline; the burst sits in the space to its right */
.cta__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.cta__aside { display: grid; gap: 20px; align-content: start; }
.cta__sub { font-size: var(--fs-h3); line-height: 1.2; font-style: italic; max-width: 20ch; }
.form { display: grid; gap: 16px; }
.form__row { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--rule); border-radius: 0;
  background: var(--field); color: var(--fg);
  font-family: var(--f-body); font-size: 18px;
  appearance: none; transition: border-color .3s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--fg-soft); }
.field select option { color: var(--ink); }
.field select {
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--fg); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #F2A7A0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; margin-bottom: 8px; padding: 0; }
.chip {
  position: relative; display: inline-flex; align-items: center;
  padding: 8px 12px 7px; border: 1.5px solid var(--rule); background: none; cursor: pointer;
  font-family: var(--f-title); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1;
  transition: background .25s, color .25s, border-color .25s;
}
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip:hover { border-color: var(--fg); }
.chip.is-active, .chip:has(input:checked) { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.chip:has(input:focus-visible) { outline: 2px solid var(--hover); outline-offset: 3px; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form__status.is-error { color: #F2A7A0; }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent);
  font-family: var(--f-title); font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  font-variation-settings: "wdth" 85; cursor: pointer;
  transition: background .3s, color .3s, font-variation-settings .5s var(--ease);
}
.btn:hover { background: transparent; color: var(--fg); border-color: var(--fg); font-variation-settings: "wdth" 100; }
.btn[disabled] { opacity: .6; cursor: progress; }
.cta__success { display: grid; gap: 16px; align-content: start; }
.cta__success[hidden] { display: none; }
.cta__success .title { font-size: 16vw; }
@media (min-width: 700px) { .form__row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .cta__grid { grid-template-columns: 4fr 8fr; column-gap: clamp(40px, 5vw, 100px); } }  /* two columns from the same width the NEW YORK oval shows, so it never lands on the form */
@media (max-width: 699px) { .form .btn { width: 100%; justify-content: center; } }

/* ---------- Footer ---------- */
.footer { position: relative; padding: clamp(40px, 6vh, 72px) var(--gutter) var(--gutter); border-top: 1px solid var(--rule); overflow: hidden; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.footer__legal { margin-top: clamp(32px, 5vh, 56px); padding-top: 12px; border-top: 1px solid var(--rule); }
.footer__credits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: end; margin-top: clamp(40px, 6vh, 72px); }
.footer__who { font-family: var(--f-title); font-weight: 700; font-size: 15px; line-height: 1.35; letter-spacing: -.01em; }
.footer__who .label { font-family: var(--f-body); font-weight: 500; }
.wave { position: relative; grid-column: 1 / -1; height: 72px; border: 1.5px solid var(--fg); background: linear-gradient(90deg, transparent 50%, var(--fg) 50%); overflow: hidden; }
.wave svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.wave use { fill: none; stroke: currentColor; stroke-width: 1; }
.wave__a { color: var(--fg); clip-path: inset(0 50% 0 0); }
.wave__b { color: var(--bg); clip-path: inset(0 0 0 50%); }
.footer__blurb { grid-column: 1 / -1; font-family: var(--f-title); font-weight: 600; font-size: 15px; line-height: 1.35; letter-spacing: -.01em; }
@media (min-width: 900px) {
  .footer__credits { grid-template-columns: 1fr 1fr 2.2fr 2.2fr; }
  .wave { grid-column: auto; }
  .footer__blurb { grid-column: auto; text-align: right; }
}

/* ---------- About page ---------- */
.about { padding-top: calc(var(--nav-h) + 48px); }
.about__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(48px, 6vw, 110px); }
.portrait { position: relative; max-width: 620px; rotate: -1.5deg; margin-top: 24px; }
.portrait__photo { width: 100%; box-shadow: 0 1px 0 rgba(0, 0, 0, .08), 0 18px 40px -24px rgba(0, 0, 0, .45); }
.portrait__tape { position: absolute; z-index: 2; pointer-events: none; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
.portrait__tape--1 { width: 34%; top: -5%; left: -6%; rotate: -24deg; }
.portrait__tape--2 { width: 24%; bottom: -4%; right: -4%; rotate: -12deg; }
.portrait figcaption { margin-top: 18px; rotate: 1.5deg; }
.about__photo .about__social { margin-top: 14px; }
.about__text { display: grid; gap: 22px; align-content: start; max-width: 60ch; }
.about { --about-title: clamp(88px, 14vw, 220px); }
.about__title { font-size: var(--about-title); margin-bottom: 8px; }
.about__lead { font-size: clamp(28px, 3vw, 46px); line-height: 1.1; font-style: italic; }
.about__text p .link { background-size: 100% 1px; }
@media (min-width: 900px) {
  .about__grid { grid-template-columns: 5fr 6fr; grid-template-rows: auto 1fr; align-items: start; row-gap: clamp(48px, 7vh, 72px); }
  .about__photo { grid-column: 1; grid-row: 1; margin-top: calc(var(--about-title) * .88 - 18px); }
  .about__text { grid-column: 2; grid-row: 1 / span 2; }
  .help { grid-column: 1; grid-row: 2; }
}

.kit--page { padding-top: calc(var(--nav-h) + 48px); }
.kit__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; width: 100%; }
.kit--page .kit__title { font-size: clamp(96px, 20vw, 320px); }
.kit__head { display: grid; gap: 18px; justify-items: start; margin-bottom: clamp(36px, 6vh, 72px); }
.kit__title { font-size: clamp(72px, 11vw, 180px); }
.kit__intro { font-style: italic; font-size: var(--fs-h3); line-height: 1.2; max-width: 30ch; }
.kit__grid { display: grid; gap: 0 clamp(32px, 5vw, 96px); }
.kit__cat { margin-bottom: clamp(32px, 5vh, 48px); }
.kit__cat h3 { padding-bottom: 10px; border-bottom: 1.5px solid var(--fg); }
.kit__cat li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.kit__name {
  --wdth: 100;
  font-family: var(--f-title); font-weight: 700; font-size: clamp(16px, 1.35vw, 21px); line-height: 1.2; letter-spacing: -.02em;
  font-variation-settings: "wdth" var(--wdth); transition: font-variation-settings .5s var(--ease), color .3s;
}
.kit__cat li:hover .kit__name { --wdth: 110; color: var(--hover); }
.kit__qty { flex: none; font-size: var(--fs-small); color: var(--fg-soft); font-feature-settings: "tnum"; }
@media (min-width: 900px) { .kit__grid { grid-template-columns: 1fr 1fr; } }

/* Compact kit summary on the About page */
.kit-mini { display: grid; gap: 16px; justify-items: start; margin-top: 20px; }
.kit-mini__title { width: 100%; padding-bottom: 10px; border-bottom: 1.5px solid var(--fg); }
/* Three centered columns (camera / lens / light), each an icon, a label and a short list */
.kit-mini__cols { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(10px, 2vw, 28px); margin-top: -2px; }
.kit-mini__col { display: grid; justify-items: center; align-content: start; row-gap: 6px; text-align: center; }
.kit-mini__icon { width: clamp(36px, 3.2vw, 44px); height: clamp(36px, 3.2vw, 44px); margin-bottom: 6px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; }
.kit-mini__col h3 { margin: 0; }
.kit-mini__col ul { margin: 0; padding: 0; list-style: none; font-size: var(--fs-small); font-style: italic; line-height: 1.5; }

.help { display: grid; gap: 18px; justify-items: start; max-width: 620px; }
.help__list { width: 100%; border-top: 1.5px solid var(--fg); }
.help__item { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.help__name { font-family: var(--f-title); font-weight: 850; line-height: 1; font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -.045em; }
.help__sub { font-style: italic; font-size: var(--fs-small); color: var(--fg-soft); }
.help .help__cta { display: grid; gap: 16px; justify-items: start; margin-top: 6px; }
.help .help__cta p { font-size: var(--fs-body); max-width: 34ch; }
.help__cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; margin-top: clamp(48px, 8vh, 96px); }
.help__cta p { font-size: var(--fs-h3); font-style: italic; line-height: 1.2; max-width: 28ch; }

/* ---------- Index page ---------- */
.ix-head { padding: calc(var(--nav-h) + 48px) var(--gutter) clamp(40px, 6vh, 72px); }
.ix-head__title { font-size: clamp(96px, 20vw, 320px); margin: 20px 0 clamp(20px, 4vh, 40px); }
.ix-head__info { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; }
.ix-head .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ix { position: relative; padding: clamp(40px, 6vh, 72px) var(--gutter) max(var(--section-y), 150px); }
.row {
  position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 4px 16px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--rule);
}
.row:first-child { border-top: 1px solid var(--rule); }
.row[hidden] { display: none; }
.row__thumb {
  display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--graphite);
  box-shadow: 4px 4px 0 var(--shadow); transition: box-shadow .35s var(--ease), translate .35s var(--ease);
}
.row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.row__main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.row__title {
  --wdth: 90;
  font-family: var(--f-title); font-weight: 800; font-size: clamp(18px, 2.2vw, 34px); line-height: 1.04; letter-spacing: -.03em;
  font-variation-settings: "wdth" var(--wdth); transition: font-variation-settings .5s var(--ease), color .3s;
}
.row__sub { font-size: var(--fs-small); font-style: italic; line-height: 1.35; }
.row__type, .row__year { display: none; font-feature-settings: "tnum"; }
.row__action { white-space: nowrap; }
.row:hover .row__title, .row:focus-visible .row__title { --wdth: 104; color: var(--hover); }
.row:hover .row__thumb, .row:focus-visible .row__thumb { translate: -2px -2px; box-shadow: 6px 6px 0 var(--shadow); }
@media (max-width: 599px) {
  .row { grid-template-columns: 96px minmax(0, 1fr); }
  .row__action { grid-column: 2; }
}
@media (min-width: 900px) {
  .row { grid-template-columns: 168px minmax(0, 1fr) minmax(0, 13em) 8em 6em; column-gap: 28px; }
  .row__type, .row__year { display: block; }
  .row__action { text-align: right; }
}

/* Small outlined button (homepage → Index) */
.btn-sm {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px 8px; border: 1.5px solid var(--rule);
  font-family: var(--f-title); font-size: 12px; font-weight: 700; line-height: 1; letter-spacing: .1em; text-transform: uppercase;
  transition: background .25s, color .25s, border-color .25s;
}
.btn-sm:hover, .btn-sm:focus-visible { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* ---------- Stills (film photography) ---------- */
.st-head { padding: calc(var(--nav-h) + 48px) var(--gutter) clamp(40px, 6vh, 72px); }
.st-head__title { font-size: clamp(56px, 13vw, 220px); margin: 0 0 clamp(16px, 3vh, 32px); }
.st-head__info { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 32px; }
.st-head__intro { font-style: italic; font-size: var(--fs-h3); line-height: 1.2; max-width: 30ch; }
.st { padding: clamp(40px, 6vh, 72px) var(--gutter) var(--section-y); }
.st-grid { --row-h: clamp(140px, 22vw, 360px); display: flex; flex-wrap: wrap; gap: clamp(6px, .8vw, 12px); }
.st-grid::after { content: ""; flex-grow: 999; }
.st-empty { font-style: italic; font-size: var(--fs-h3); padding: clamp(40px, 10vh, 120px) 0; }
.still {
  flex: var(--ar) 1 calc(var(--ar) * var(--row-h));
  padding: 0; border: 0; background: rgba(0, 0, 0, .22); cursor: zoom-in; overflow: hidden;
}
.still img { display: block; width: 100%; height: auto; opacity: 0; transition: opacity .6s ease, transform 1s var(--ease); }
.still.is-loaded img { opacity: 1; }
.still:hover img { transform: scale(1.025); }
@media (max-width: 699px) { .st-grid { --row-h: 120px; } }

/* ---------- Gallery pages ---------- */
.g-hero { padding: calc(var(--nav-h) + 48px) var(--gutter) clamp(40px, 6vh, 72px); }
.g-hero__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.g-hero__title { font-size: 20vw; margin: clamp(24px, 5vh, 48px) 0 clamp(20px, 4vh, 40px); }
.g-hero__info { display: grid; gap: 8px; }
@media (min-width: 900px) { .g-hero__info { grid-template-columns: auto 1fr; column-gap: 48px; align-items: baseline; } .g-hero__note { justify-self: end; text-align: right; } }
.g-hero__note { font-style: italic; font-size: var(--fs-h3); line-height: 1.2; }
/* An even grid of frames: two across on phones, three on desktop; a short last row sits centered. */
.frames { --cols: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(8px, 1vw, 14px); padding: 0 var(--gutter) var(--section-y); }
.frame { display: block; flex: none; width: calc((100% - (var(--cols) - 1) * clamp(8px, 1vw, 14px)) / var(--cols)); padding: 0; border: 0; background: rgba(0, 0, 0, .15); cursor: zoom-in; overflow: hidden; }
.frame img { display: block; width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.frame:hover img { transform: scale(1.02); }
@media (min-width: 700px) { .frames { --cols: 3; } }
.g-next { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 0 var(--gutter) var(--section-y); }
.g-next__big {
  display: block; font-family: var(--f-title); font-weight: 850; line-height: .9; letter-spacing: -.05em;
  font-size: clamp(40px, 7vw, 120px); font-variation-settings: "wdth" 100; transition: font-variation-settings .6s var(--ease), color .3s;
}
.g-next a:hover .g-next__big { font-variation-settings: "wdth" 112; color: var(--hover); }

/* ---------- Film pages (big title + embedded video) ---------- */
.film { position: relative; padding: 0 var(--gutter) clamp(40px, 7vh, 80px); }
.film__frame {
  position: relative; width: min(100%, calc(80vh * var(--ratio, 1.7778))); aspect-ratio: var(--ratio, 16 / 9); margin: 0 auto;
  background: #000; box-shadow: 8px 8px 0 var(--shadow);
}
.film__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film__foot { display: flex; justify-content: flex-end; width: min(100%, calc(80vh * var(--ratio, 1.7778))); margin: 22px auto 0; }
.film[hidden] { display: none; }
/* a gallery page with its film: the film, then a Frames label over the grid */
.film--gallery { padding-bottom: clamp(28px, 4vh, 44px); }
.film__frames-label { display: flex; margin-top: clamp(48px, 9vh, 110px); }

/* ---------- Lookbook pages (vertical spots + film photos) ---------- */
.reels, .photos { position: relative; display: grid; gap: clamp(20px, 3vh, 32px); padding: 0 var(--gutter) clamp(56px, 9vh, 110px); }
.reels__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
@media (min-width: 700px) { .reels__row { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1000px; } }
.reel-card { display: grid; gap: 10px; }
.reel-card__frame { position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: #000; box-shadow: 6px 6px 0 var(--shadow); }
.reel-card__frame iframe { position: absolute; top: 0; left: 0; width: 360px; height: 640px; border: 0; transform: scale(var(--reel-scale, 1)); transform-origin: 0 0; }
/* Rows are filled by script.js; every photo in a row is the same height, wide frames take more width. */
.photos__grid { display: grid; gap: var(--gap); }
.photos__row { display: flex; gap: var(--gap); }
.lb-photo { display: block; flex: var(--r) 1 0; min-width: 0; aspect-ratio: var(--r); padding: 0; border: 0; background: rgba(0, 0, 0, .2); cursor: zoom-in; overflow: hidden; }
.lb-photo img { display: block; width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.lb-photo:hover img { transform: scale(1.02); }

/* ---------- Dialogs (player + lightbox) ---------- */
.player, .lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: var(--gutter); border: 0;
  background: var(--charcoal); color: var(--paper);
  display: none; grid-template-rows: auto 1fr auto; gap: 16px;
}
.player[open], .lightbox[open] { display: grid; }
.player::backdrop, .lightbox::backdrop { background: var(--charcoal); }
.player__head, .lightbox__head, .lightbox__foot { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.player__title { font-family: var(--f-title); font-weight: 850; line-height: .95; letter-spacing: -.045em; font-size: clamp(28px, 4vw, 64px); }
.player__meta { margin-top: 8px; font-style: italic; font-size: var(--fs-small); opacity: .75; }
.dialog-btn { background: none; border: 1px solid rgba(239, 230, 207, .5); color: var(--paper); padding: 8px 14px; cursor: pointer; }
.dialog-btn:hover { background: var(--paper); color: var(--charcoal); }
.player__stage, .lightbox__stage { display: grid; place-items: center; min-height: 0; }
.player__frame { position: relative; width: min(100%, calc((100dvh - 220px) * var(--ratio, 1.7778))); aspect-ratio: var(--ratio, 16 / 9); background: #000; }
.player__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__foot { text-align: right; }
.lightbox__stage img { max-width: 100%; max-height: calc(100dvh - 160px); width: auto; height: auto; object-fit: contain; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
