/* ==========================================================================
   Sam Johnston Photography
   Layout concept: full-bleed photographs on a blue-black ground. Type is the
   one loud element, set in wide extended capitals like broadcast lower
   thirds and scoreboard type. Everything else stays monochrome so the photos carry all
   of the color. Left-aligned throughout.
   ========================================================================== */
:root {
  --ink: #090b10;          /* page ground, the blue-black of an arena before the lights */
  --ink-raise: #10141c;    /* raised surfaces, fields, empty tiles */
  --line: #252b38;         /* hairlines */
  --paper: #eceef3;        /* primary text */
  --mute: #8f97a8;         /* secondary text */
  --ice: #b9d4ff;          /* focus, selection, hover: rink light */

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;  /* set at 125% width */
  --display-stretch: 125%;
  --body: "Figtree", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --gap: 6px;
  --nav-h: 68px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  background: var(--ink);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
html.no-scroll { overflow: hidden; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--ice); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 2px;
}
.skip:focus { left: 16px; }

.wrap {
  width: 100%;
  max-width: 1760px;
  margin-left: auto;
  margin-right: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* ---------- Type ---------- */
.title {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-stretch: var(--display-stretch);
  font-size: clamp(1.7rem, 3.6vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: 0.005em;
}
.note { color: var(--mute); max-width: 46ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.82em 1.4em;
  border-radius: 2px;
  font-weight: 600; font-size: 0.98rem; line-height: 1.2;
  border: 1px solid transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn--solid { background: var(--paper); color: var(--ink); }
.btn--solid:hover { background: var(--ice); }
.btn--ghost { border-color: rgba(236, 238, 243, 0.45); color: var(--paper); }
.btn--ghost:hover { border-color: var(--paper); background: rgba(236, 238, 243, 0.08); }
.btn--small { padding: 0.62em 1.05em; font-size: 0.9rem; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}
.nav::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: -28px; z-index: -1;
  background: linear-gradient(to bottom, rgba(9, 11, 16, 0.7), rgba(9, 11, 16, 0));
  pointer-events: none; transition: opacity 0.3s;
}
.nav.is-solid {
  background: rgba(9, 11, 16, 0.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav.is-solid::before { opacity: 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }

.brand {
  font-family: var(--display); font-stretch: var(--display-stretch); font-weight: 800; font-size: clamp(1rem, 1.6vw, 1.2rem);
  text-transform: uppercase; letter-spacing: 0.04em; line-height: 1;
}
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav-link {
  font-size: 0.96rem; font-weight: 500; opacity: 0.84; transition: opacity 0.2s;
  padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav-link:hover, .nav-link.is-current { opacity: 1; }
.nav-link.is-current { border-bottom-color: var(--paper); }

.dd { position: relative; }
.dd-btn { display: inline-flex; align-items: center; gap: 6px; }
.dd-btn svg { width: 10px; height: 10px; transition: transform 0.2s; }
.dd:hover .dd-btn svg, .dd.is-open .dd-btn svg { transform: rotate(180deg); }
.dd-menu {
  position: absolute; top: 100%; left: -18px; min-width: 232px; padding-top: 16px;
  display: none;
}
.dd-menu ul { background: var(--ink-raise); border: 1px solid var(--line); padding: 8px; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu, .dd.is-open .dd-menu { display: block; }
.dd-menu a { display: block; padding: 0.6em 0.9em; font-size: 0.96rem; border-radius: 2px; }
.dd-menu a:hover { background: rgba(236, 238, 243, 0.07); }

.menu-btn { display: none; width: 44px; height: 44px; margin-right: -10px; position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--paper); transition: transform 0.25s, top 0.25s; }
.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 25px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--ink);
  display: none; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)) max(32px, env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
  overflow-y: auto;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  display: block; padding: 0.12em 0;
  font-family: var(--display); font-stretch: var(--display-stretch); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.6rem, 7vw, 2.4rem); line-height: 1.1;
}
.mobile-menu .sub a { font-size: clamp(1.1rem, 4.6vw, 1.5rem); line-height: 1.35; color: var(--mute); }
.mobile-menu .sub a:hover { color: var(--paper); }
.mobile-menu .btn { margin-top: 22px; font-family: var(--body); font-size: 1rem; text-transform: none; display: inline-flex; padding: 0.9em 1.5em; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--ink);
  height: 92svh; min-height: 560px; max-height: 1080px;
}
.slides {
  position: absolute; inset: -16px;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  transition: transform 0.7s ease-out;
}
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.3s ease; }
.slide.is-active { opacity: 1; z-index: 1; }
.slide img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: var(--focal, 50% 50%);
}
.slide.is-active img { animation: drift 9s ease-out both; }
.hero.is-paused .slide.is-active img, .hero.is-offscreen .slide.is-active img { animation-play-state: paused; }
@keyframes drift { from { transform: scale(1.07); } to { transform: scale(1); } }

.hero-scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(to top, rgba(9, 11, 16, 0.94) 0%, rgba(9, 11, 16, 0.6) 30%, rgba(9, 11, 16, 0) 64%),
    linear-gradient(to right, rgba(9, 11, 16, 0.42) 0%, rgba(9, 11, 16, 0) 55%);
}
.hero-copy { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding-bottom: clamp(22px, 3.4vw, 44px); }
.hero-credit { color: rgba(236, 238, 243, 0.74); max-width: 56ch; margin-top: 12px; font-size: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px;
  margin-top: clamp(20px, 3vw, 34px);
}
.hero-tag { font-size: 0.95rem; font-weight: 500; border-bottom: 1px solid rgba(236, 238, 243, 0.4); padding-bottom: 2px; transition: border-color 0.2s, opacity 0.3s; }
.hero-tag:hover { border-bottom-color: var(--paper); }
.hero-ctl { display: flex; align-items: center; gap: 14px; }

@keyframes fill { to { width: 100%; } }

@media (prefers-reduced-motion: no-preference) {
  .hero-credit { animation: rise 0.8s 0.18s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-actions, .hero-foot { animation: rise 0.8s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .slide { transition-duration: 0.5s; }
  .slide.is-active img { animation: none; }
  .slides { transition: none; }
}

/* ---------- Photo rows (justified grid) ---------- */
.selected { padding-block: clamp(64px, 9vw, 120px); scroll-margin-top: 68px; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 32px; margin-bottom: clamp(20px, 3vw, 36px); }
.rows { --h: 300px; display: flex; flex-wrap: wrap; gap: var(--gap); }
.rows::after { content: ""; flex-grow: 1000000; }
.rows li {
  flex: calc(var(--ar) * 100) 1 calc(var(--ar) * var(--h));
  aspect-ratio: var(--ar);
  position: relative; overflow: hidden; background: var(--ink-raise);
}
.tile { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.35s;
}
@media (hover: hover) {
  .tile:hover img { transform: scale(1.035); }
  .rows:hover li:not(:hover) img { filter: brightness(0.6); }
}

/* ---------- Gallery index ---------- */
.galleries { padding-block: clamp(64px, 9vw, 136px); border-top: 1px solid var(--line); scroll-margin-top: 68px; }
.g-list { border-top: 1px solid var(--line); margin-top: clamp(20px, 3vw, 36px); }
.g-row a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; align-items: baseline;
  padding: clamp(16px, 2.2vw, 28px) 0; border-bottom: 1px solid var(--line);
}
.g-name {
  font-family: var(--display); font-stretch: var(--display-stretch); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.35rem, 2.7vw, 2.4rem); line-height: 1.05;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), color 0.3s;
}
.g-meta { color: var(--mute); font-size: 0.95rem; text-align: right; white-space: nowrap; }
.g-blurb { grid-column: 1 / -1; color: var(--mute); font-size: 0.98rem; max-width: 46ch; }
.g-row a:hover .g-name, .g-row a:focus-visible .g-name { transform: translateX(10px); }
@media (hover: hover) {
  .g-list:hover .g-row:not(:hover) .g-name { color: var(--mute); }
}

/* ---------- Contact ---------- */
.contact { padding-block: clamp(64px, 9vw, 136px); border-top: 1px solid var(--line); scroll-margin-top: 68px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact .note { margin-top: 18px; }
.direct { margin-top: 28px; color: var(--mute); font-size: 0.97rem; }
.direct a.mail { color: var(--paper); border-bottom: 1px solid var(--line); user-select: all; word-break: break-all; }
.direct a.mail:hover { border-bottom-color: var(--paper); }
.copy { margin-left: 10px; font-size: 0.88rem; color: var(--paper); border: 1px solid var(--line); border-radius: 2px; padding: 0.25em 0.7em; transition: border-color 0.2s; }
.copy:hover { border-color: var(--paper); }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.93rem; color: var(--mute); }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; font: inherit; color: var(--paper);
  background-color: var(--ink-raise); border: 1px solid var(--line); border-radius: 2px;
  padding: 0.85em 1em; transition: border-color 0.2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #3a4254; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ice); }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.6em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238f97a8' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1em center;
}
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form-note { color: var(--mute); font-size: 0.95rem; flex: 1 1 260px; min-height: 1.5em; }
.form-note.is-error { color: #ffb4a8; }
.form-note.is-ok { color: var(--ice); }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 30px max(40px, env(safe-area-inset-bottom, 0px)); color: var(--mute); font-size: 0.93rem; }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 32px; }
.social { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.social a { transition: color 0.2s; }
.social a:hover { color: var(--paper); }

/* ---------- Gallery pages ---------- */
.page-head { padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + clamp(44px, 7vw, 104px)); padding-bottom: clamp(26px, 4vw, 52px); }
.page-head h1 {
  font-family: var(--display); font-stretch: var(--display-stretch); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.3rem, 7vw, 6.2rem); line-height: 0.95; letter-spacing: 0;
}
.page-head--long h1 { font-size: clamp(1.75rem, 5vw, 4.6rem); line-height: 1; max-width: 12em; }
.page-head .note { margin-top: clamp(16px, 2vw, 26px); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: clamp(22px, 3vw, 36px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 0.5em 1.05em; border: 1px solid var(--line); border-radius: 2px; font-size: 0.93rem; font-weight: 500; transition: border-color 0.2s, background-color 0.2s, color 0.2s; }
.chip:hover { border-color: var(--mute); }
.chip[aria-pressed="true"] { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.count { color: var(--mute); font-size: 0.93rem; }
.gallery-body { padding-bottom: clamp(56px, 8vw, 110px); }
.empty { border: 1px dashed #343b4b; padding: clamp(28px, 5vw, 60px); max-width: 640px; }
.empty p { color: var(--mute); margin-top: 10px; }
.empty a { display: inline-block; margin-top: 18px; border-bottom: 1px solid var(--mute); }

.next { border-top: 1px solid var(--line); padding-block: clamp(36px, 6vw, 80px); }
.next a { display: block; }
.next-label { color: var(--mute); font-size: 0.95rem; }
.next-name { font-family: var(--display); font-stretch: var(--display-stretch); font-weight: 800; text-transform: uppercase; font-size: clamp(1.8rem, 5vw, 4.2rem); line-height: 1; margin-top: 6px; transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }
.next a:hover .next-name { transform: translateX(14px); }

/* ---------- About ---------- */
.about { padding-block: clamp(8px, 2vw, 24px) clamp(64px, 9vw, 130px); }
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.headshot { position: sticky; top: calc(var(--nav-h) + 28px); aspect-ratio: 1 / 1; max-width: 100%; overflow: hidden; background: var(--ink-raise); }
.headshot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.about-main { display: grid; gap: clamp(40px, 5vw, 64px); min-width: 0; }
.about-main .side-lists { grid-template-columns: 1fr 1fr; }
.prose { display: grid; gap: 1.1em; }
.prose p { font-size: 1.15rem; line-height: 1.68; max-width: 60ch; text-wrap: pretty; }
.prose p:first-child { font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.32; font-weight: 500; letter-spacing: -0.01em; }
.side-lists { display: grid; gap: clamp(28px, 4vw, 44px); }
.side-lists h2, .featured h2 { font-family: var(--display); font-stretch: var(--display-stretch); font-weight: 800; text-transform: uppercase; font-size: 1.05rem; letter-spacing: 0.03em; line-height: 1.2; margin-bottom: 12px; }
.list { border-top: 1px solid var(--line); }
.list li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.list li span:last-child { color: var(--mute); text-align: right; }

/* ---------- Lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 100; background: rgba(5, 6, 9, 0.97);
  display: grid; grid-template-rows: minmax(0, 1fr) auto;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}
.lb-stage { display: grid; place-items: center; min-height: 0; padding: 64px clamp(12px, 7vw, 110px) 8px; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); width: auto; height: auto; opacity: 0; transition: opacity 0.3s; }
.lb-stage img.is-in { opacity: 1; }
.lb-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 10px max(var(--gutter), env(safe-area-inset-left, 0px)) 18px; font-size: 0.95rem; color: var(--mute); }
.lb-cap { min-width: 0; }
.lb-count { font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb-btn {
  position: fixed; z-index: 2; width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid var(--line); background: rgba(16, 20, 28, 0.72); border-radius: 2px; transition: border-color 0.2s;
}
.lb-btn:hover { border-color: var(--paper); }
.lb-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.lb-close { top: max(14px, env(safe-area-inset-top, 0px)); right: max(14px, env(safe-area-inset-right, 0px)); }
.lb-prev { top: 50%; left: max(12px, env(safe-area-inset-left, 0px)); transform: translateY(-50%); }
.lb-next { top: 50%; right: max(12px, env(safe-area-inset-right, 0px)); transform: translateY(-50%); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .contact-grid, .about-grid { grid-template-columns: 1fr; }
      .rows { --h: 200px; --gap: 4px; gap: 4px; }
  .headshot { position: static; max-width: 440px; }
  .lb-stage { padding-left: 8px; padding-right: 8px; }
  .lb-btn { width: 40px; height: 40px; background: rgba(16, 20, 28, 0.55); }
}
@media (max-width: 560px) {
  .fields { grid-template-columns: 1fr; }
  .about-main .side-lists { grid-template-columns: 1fr; }
  .hero { min-height: 600px; }
  .hero-credit { font-size: 0.95rem; }
  .rows { --h: 150px; }
  .g-meta { font-size: 0.88rem; }
}

/* ---------- Featured in (About) ---------- */
.featured { min-width: 0; }
.press-list {
  display: flex; flex-wrap: wrap; gap: 6px 26px; margin-top: 14px;
  font-family: var(--display); font-stretch: var(--display-stretch); font-weight: 700; text-transform: uppercase;
  font-size: clamp(0.95rem, 1.5vw, 1.2rem); line-height: 1.5; color: rgba(236, 238, 243, 0.7);
}


/* ---------- v2: hero controls, about stats, Instagram grid ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero-lede { font-family: var(--display); font-stretch: var(--display-stretch); font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; font-size: clamp(1.25rem, 2.6vw, 2.3rem); line-height: 1.1; max-width: 22em; text-wrap: balance; }
.hero-btn { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(236, 238, 243, 0.4); border-radius: 50%; transition: border-color 0.2s, background-color 0.2s; }
.hero-btn:hover { border-color: var(--paper); background: rgba(236, 238, 243, 0.08); }
.hero-btn svg { width: 12px; height: 12px; fill: currentColor; }
.hero-prev svg, .hero-next svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
.hero-ctl { gap: 8px; }
.hero-pause .i-play { display: none; }
.hero.is-paused .hero-pause .i-play { display: block; }
.hero.is-paused .hero-pause .i-pause { display: none; }
.hero-bar { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(236, 238, 243, 0.14); }
.hero-bar::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--paper); }
.hero-bar.is-run::after { animation: fill 6.5s linear forwards; animation-duration: inherit; }
.hero.is-paused .hero-bar::after, .hero.is-offscreen .hero-bar::after { animation-play-state: paused; }
@media (prefers-reduced-motion: no-preference) {
  .hero-lede { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
}

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 16px 16px 16px 0; display: grid; gap: 4px; align-content: start; }
.stat + .stat { padding-left: 16px; border-left: 1px solid var(--line); }
.stat dt { color: var(--mute); font-size: 0.86rem; line-height: 1.35; order: 2; }
.stat dd { font-family: var(--display); font-stretch: var(--display-stretch); font-weight: 800; font-size: clamp(1.15rem, 1.8vw, 1.55rem); line-height: 1.1; font-variant-numeric: tabular-nums; order: 1; }
.stat { display: flex; flex-direction: column; }

a.inline { color: var(--paper); border-bottom: 1px solid var(--line); transition: border-color 0.2s; }
a.inline:hover { border-bottom-color: var(--paper); }
.ig { padding-bottom: clamp(56px, 8vw, 110px); }
.ig-note { color: var(--mute); font-size: 0.95rem; margin-bottom: 16px; border-left: 2px solid var(--line); padding-left: 12px; }
.ig-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.ig-grid li { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink-raise); }
.ig-grid a { display: block; width: 100%; height: 100%; }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.35s; }
.ig-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px; font-size: 0.9rem; line-height: 1.35;
  background: linear-gradient(to top, rgba(9, 11, 16, 0.9), rgba(9, 11, 16, 0)); opacity: 0; transition: opacity 0.3s;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ig-play { position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; fill: var(--paper); filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6)); }
@media (hover: hover) {
  .ig-grid a:hover img { transform: scale(1.035); filter: brightness(0.8); }
  .ig-grid a:hover .ig-cap, .ig-grid a:focus-visible .ig-cap { opacity: 1; }
}
.ig-foot { margin-top: clamp(24px, 3vw, 36px); }

@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ig-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
}
.ig-wait { animation: ig-pulse 1.4s ease-in-out infinite alternate; }
@keyframes ig-pulse { from { opacity: 0.55; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ig-wait { animation: none; } }

/* ---------- Drifting collages (Work by category; phone hero) ---------- */
.collage {
  position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr));
  gap: var(--cgap, 8px); overflow: hidden; transition: opacity 0.6s ease;
}
.collage.is-out { opacity: 0; }
.collage-col { min-width: 0; will-change: transform; }
.collage-set { display: flex; flex-direction: column; gap: var(--cgap, 8px); padding-bottom: var(--cgap, 8px); }
.collage-set img { width: 100%; height: auto; aspect-ratio: var(--r, 1.5); object-fit: cover; background: var(--ink-raise); }

.g-stage { position: relative; margin-top: clamp(20px, 3vw, 36px); min-height: 660px; overflow: hidden; background: var(--ink); }
.g-collage { --cols: 5; }
.g-stage::before, .g-stage::after { content: ""; position: absolute; left: 0; right: 0; height: 90px; z-index: 1; pointer-events: none; }
.g-stage::before { top: 0; background: linear-gradient(to bottom, var(--ink), rgba(9, 11, 16, 0)); }
.g-stage::after { bottom: 0; background: linear-gradient(to top, var(--ink), rgba(9, 11, 16, 0)); }
.g-glass {
  position: relative; z-index: 2; box-sizing: border-box; width: min(640px, 52%); min-height: 660px;
  padding: 8px clamp(20px, 2.6vw, 40px);
  background: rgba(9, 11, 16, 0.62);
  -webkit-backdrop-filter: blur(24px) saturate(1.15); backdrop-filter: blur(24px) saturate(1.15);
  border-right: 1px solid rgba(236, 238, 243, 0.08);
}
.g-glass .g-list { margin-top: 0; border-top: 0; }
.g-glass .g-row:last-child a { border-bottom: 0; }
.g-list.has-active .g-row a:not(.is-active) .g-name { color: var(--mute); }
.g-row a.is-active .g-name { transform: translateX(10px); color: var(--paper); }

.hero-collage { display: none; }

@media (max-width: 860px) {
  .g-collage { --cols: 3; --cgap: 6px; }
  .g-stage { min-height: 0; }
  .g-glass { width: 100%; min-height: 0; background: rgba(9, 11, 16, 0.5); -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1); border-right: 0; }
}
@media (max-width: 700px) {
  .hero .slides, .hero-prev, .hero-next, .hero-tag, .hero-bar { display: none; }
  .hero-collage { display: grid; --cols: 3; --cgap: 6px; z-index: 1; }
  .hero-scrim { background: linear-gradient(to top, rgba(9, 11, 16, 0.75) 0%, rgba(9, 11, 16, 0.15) 45%, rgba(9, 11, 16, 0.35) 100%); }
  .hero-card {
    padding: 22px 20px 18px; border-radius: 4px;
    background: rgba(9, 11, 16, 0.55); border: 1px solid rgba(236, 238, 243, 0.1);
    -webkit-backdrop-filter: blur(16px) saturate(1.1); backdrop-filter: blur(16px) saturate(1.1);
  }
  .hero-foot { justify-content: flex-end; margin-top: 14px; }
  .hero-actions { margin-top: 18px; }
}

/* ---------- SJ mark: brand, corners, footer ---------- */
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 31px; height: auto; flex-shrink: 0; display: block; }
.js .mark-open { clip-path: inset(50% 50% 50% 50%); }
.js .mark-open.is-open { animation: mark-open 1.15s cubic-bezier(0.65, 0, 0.2, 1) forwards; }
@keyframes mark-open {
  0% { clip-path: inset(50% 50% 50% 50%); }
  45% { clip-path: inset(46% 0 46% 0); }
  100% { clip-path: inset(0 0 0 0); }
}
@media (prefers-reduced-motion: reduce) { .js .mark-open, .js .mark-open.is-open { clip-path: none; animation: none; } }

.page-head { position: relative; }
.page-head > :not(.corner-mark) { position: relative; z-index: 1; }
.corner-mark {
  position: absolute; z-index: 0; pointer-events: none; color: var(--paper); opacity: 0.09;
  right: max(var(--gutter), env(safe-area-inset-right, 0px));
  top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 28px);
  width: clamp(110px, 17vw, 260px);
}
.corner-mark svg { display: block; width: 100%; height: auto; }
.contact { position: relative; overflow: hidden; }
.contact-grid { position: relative; z-index: 1; }
.corner-mark--contact { top: auto; bottom: -56px; right: -36px; width: clamp(180px, 22vw, 340px); opacity: 0.05; }

.nav-social { display: flex; align-items: center; gap: 2px; margin: 0 -4px; }
.nav-social a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; opacity: 0.8; transition: opacity 0.2s, background-color 0.2s; }
.nav-social a:hover { opacity: 1; background: rgba(236, 238, 243, 0.08); }
.nav-social svg { width: 19px; height: 19px; }
.mm-social { display: flex; flex-direction: column; gap: 6px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.mobile-menu .mm-social a {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 0;
  font-family: var(--body); font-stretch: normal; font-weight: 500; text-transform: none;
  font-size: 1.02rem; line-height: 1.3; color: var(--mute);
}
.mobile-menu .mm-social a:hover { color: var(--paper); }
.mm-social svg { width: 22px; height: 22px; flex-shrink: 0; }

.foot-brand { display: flex; align-items: center; gap: 12px; margin: 0; }
.foot-mark { width: 28px; height: auto; color: var(--paper); flex-shrink: 0; }
.social a { display: inline-flex; align-items: center; gap: 8px; }
.social svg { width: 18px; height: 18px; flex-shrink: 0; }

@media (max-width: 860px) {
  .corner-mark { width: 96px; opacity: 0.1; }
}
@media (max-width: 700px) {
  .hero-foot { display: none; }
}
