/* ==========================================================================
   abins.me
   Fonts: the first family in each stack is the licensed font. Put the files
   in /assets/fonts (see README.md), then uncomment the @import below.
   ========================================================================== */

@import url("fonts.css");

:root {
  --frame-bg: #252525;
  --paper: #ffffff;
  --ink: #000000;
  --text: #252525;

  --purple: #7929dc;
  --lilac: #d6a8fa;
  --yellow: #fccc30;
  --blue: #4b8ee2;
  --coral: #ff4b36;
  --pink: #f77fce;
  --green: #6da53d;

  --font-display: "Morganite", "League Gothic", "Arial Narrow", sans-serif;
  --font-body: "Roobert", "Figtree", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "Season Mix", "Instrument Serif", Georgia, serif;

  --fold-dur: .6s;
  --exit-dur: .18s;
  --color-dur: .3s;
  --reveal-delay: .3s;
  --reveal-dur: .3s;
  --fold-ease: cubic-bezier(.22, 1, .36, 1);
  --home-ease: cubic-bezier(.23, 1, .32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--frame-bg);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Perforation (paper edges) ---------- */
.perforated {
  --r: 8px;
  --p: 24px;
  -webkit-mask:
    radial-gradient(circle at 50% 0, #0000 calc(var(--r) - .5px), #000 var(--r)) 0 0 / var(--p) 100% repeat-x,
    radial-gradient(circle at 50% 100%, #0000 calc(var(--r) - .5px), #000 var(--r)) 0 100% / var(--p) 100% repeat-x,
    radial-gradient(circle at 0 50%, #0000 calc(var(--r) - .5px), #000 var(--r)) 0 0 / 100% var(--p) repeat-y,
    radial-gradient(circle at 100% 50%, #0000 calc(var(--r) - .5px), #000 var(--r)) 100% 0 / 100% var(--p) repeat-y;
  -webkit-mask-composite: source-in;
  mask:
    radial-gradient(circle at 50% 0, #0000 calc(var(--r) - .5px), #000 var(--r)) 0 0 / var(--p) 100% repeat-x,
    radial-gradient(circle at 50% 100%, #0000 calc(var(--r) - .5px), #000 var(--r)) 0 100% / var(--p) 100% repeat-x,
    radial-gradient(circle at 0 50%, #0000 calc(var(--r) - .5px), #000 var(--r)) 0 0 / 100% var(--p) repeat-y,
    radial-gradient(circle at 100% 50%, #0000 calc(var(--r) - .5px), #000 var(--r)) 100% 0 / 100% var(--p) repeat-y;
  mask-composite: intersect;
}
/* small stamps: 72×76, notch r 2.5px every 12px */
.stamp-mask { --r: 2.5px; --p: 12px; }

/* ==========================================================================
   Shell
   ========================================================================== */
.hero-v2 {
  --edge-top: max(12px, env(safe-area-inset-top, 0px));
  --edge-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  height: 100svh;
  overflow: auto;
  background: var(--frame-bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.02em;
}
/* tablets, phones and touch screens: 12px dark edge above and below the sheet */
@media (max-width: 62rem), (pointer: coarse) {
  .hero-v2 {
    height: 100dvh;
    padding-block: var(--edge-top) var(--edge-bottom);
    padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px);
    scroll-padding-block: calc(80px + var(--edge-top)) var(--edge-bottom);
  }
  .hero-v2 { --sticky-top: var(--edge-top); }
  body .edge-top, body .edge-bottom { display: block; }
}

/* fixed 12px strips above/below the scroll area (tablet, phone, touch):
   top is always the dark frame (header looks attached to the screen edge);
   bottom matches the page — dark on Home, white on inner pages */
.edge-top, .edge-bottom {
  display: none;
  position: fixed;
  inset-inline: 0;
  z-index: 10001;
  pointer-events: none;
}
.edge-top { top: 0; height: max(12px, env(safe-area-inset-top, 0px)); }
.edge-bottom { bottom: 0; height: max(12px, env(safe-area-inset-bottom, 0px)); }
.edge-top::after, .edge-bottom::after { content: ""; position: absolute; inset: 0; }
.edge-top::after { background: var(--frame-bg); }
.edge-bottom::after { background: var(--frame-bg); }
.hero-v2--inner ~ .edge-bottom::after { background: var(--paper); }
@media (prefers-reduced-motion: no-preference) {
  .edge-bottom::after { transition: background-color var(--fold-dur) var(--fold-ease); }
}
.hero-v2--inner { background: var(--paper); }

.stage {
  --frame: 20px;
  --inset: 5.46875%;
  --stage-h: max(680px, 100svh);
  --pattern-h: calc((var(--stage-h) - 2 * var(--frame)) * 257 / 792);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr auto calc(var(--pattern-h) + var(--frame));
  height: var(--stage-h);
}

.paper {
  position: absolute;
  inset: var(--frame);
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--paper) url("/assets/img/paper.svg") center / 106% 106% no-repeat;
}
.paper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--frame-bg);
  opacity: 0;
  pointer-events: none;
}

/* Nav */
.navigation {
  position: absolute;
  z-index: 20;
  inset: 58px var(--inset) auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--ink);
}
.nav-link {
  --accent: var(--purple);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  font-size: 18px;
  font-weight: 600;
  font-style: italic;
  line-height: 20px;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav-link:focus-visible, .nav-link:active { color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .nav-link:hover { color: var(--accent); } }
.hero-v2 a:focus-visible { outline: 2px solid var(--purple); outline-offset: 5px; }

/* Home content */
.content {
  grid-row: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  margin-inline: var(--inset);
  padding-bottom: 50px;
}
.intro {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 466px;
  min-width: 0;
}
.identity {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-block-end: 16px;
}
.portrait {
  flex: 0 0 auto;
  width: 83px;
  height: 74px;
  overflow: hidden;
  filter: grayscale(1);
  background: #d4d4d4;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: 40px;
  color: #5b5b5b;
}
/* italic parallelogram, slanted like the name (same geometry as the reference's mask) */
.portrait { clip-path: polygon(12.05% 0, 100% 0, 87.35% 100%, 0 100%); background: transparent; }
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 54% 50%; transform: scale(1.5); transform-origin: 54% 46%; }
.identity h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 105px;
  font-weight: 700;
  font-style: italic;
  line-height: 74px;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
  text-box: cap alphabetic;
  /* Only Morganite Book was supplied. Until Bold Italic arrives: no stroke (it clogged the
     letters), a touch more tracking so it breathes like the wider Bold cut. */
  letter-spacing: .055em;
}
.intro p {
  margin: 0;
  max-width: 459px;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.02em;
}
.socials {
  font-size: 18px;
  font-weight: 600;
  font-style: italic;
  line-height: 20px;
  letter-spacing: -0.02em;
}
.social-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; }
.social-links :is(a, button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-decoration: none;
  cursor: pointer;
}
.social-links button { min-width: 3.4em; }
.social-links :is(a, button):focus-visible { outline: 2px solid var(--purple); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .social-links :is(a, button):hover { color: var(--purple); } }

.clients { flex: 0 0 auto; width: 345px; }
.clients h2 {
  margin: 0 0 24px;
  font-size: 18px;
  font-weight: 600;
  line-height: 23px;
  letter-spacing: -0.02em;
}
.client-window, .client-track { display: contents; }
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.clients .logo { font-size: 13px; }
.clients .logo--serif { font-size: 15px; }
.clients .logo--caps { font-size: 9.5px; }
.clients .logo--display { font-size: 18px; }
.logos--copy { display: none; }
.logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: #9b9b9b;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}
.logo img { height: 16px; width: auto; max-width: none; filter: grayscale(1); opacity: .55; }
.logo--serif { font-family: var(--font-serif); font-weight: 400; font-size: 17px; letter-spacing: -0.02em; }
.logo--caps { text-transform: uppercase; font-size: 11px; letter-spacing: .1em; }
.logo--display { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: .03em; text-transform: uppercase; }

@media (min-width: 62.001rem) {
  .content {
    display: grid;
    grid-template-columns: minmax(0, 466px) 345px;
    grid-template-rows: auto auto auto;
    gap: 8px 48px;
    align-items: stretch;
  }
  .intro { display: grid; grid-area: 1 / 1 / 4; grid-template-rows: subgrid; width: auto; }
  .socials { align-self: end; }
  .social-links :is(a, button) { align-items: flex-end; }
  .clients { display: grid; grid-area: 2 / 2 / 4; grid-template-rows: subgrid; row-gap: 8px; width: auto; }
  .clients h2 { align-self: end; margin: 0 0 8px; }
  .logos { align-self: end; }
}

/* Pattern band (inside the paper) */
.pattern {
  position: absolute;
  inset: auto 0 0;
  height: var(--pattern-h);
  overflow: hidden;
  pointer-events: auto;
}
.pattern__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.cutouts { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.cutout {
  position: absolute;
  width: 72px;
  height: 76px;
  background: var(--paper);
  transform: translate(-50%, -50%);
}
.stamp-surface {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: crosshair;
  touch-action: pan-y;
}
.hero-v2 .stamp-surface:focus-visible { outline: 3px solid var(--frame-bg); outline-offset: -6px; box-shadow: inset 0 0 0 9px #fff; }
.stamp-aim {
  position: absolute;
  display: none;
  width: 72px;
  height: 76px;
  background: #fff;
  opacity: .7;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.stamp-surface:focus-visible ~ .stamp-aim { display: block; }

/* Stamps */
.placed-layer { position: absolute; inset: 0; z-index: 100; overflow: hidden; pointer-events: none; }
.stamp {
  position: absolute;
  width: 72px;
  height: 76px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / .18)) drop-shadow(0 6px 10px rgb(0 0 0 / .16));
}
.stamp__art { position: absolute; inset: 0; background-repeat: no-repeat; }
.stamp.is-carried { position: fixed; z-index: 10001; transform: translate(-50%, -50%) scale(1.04); }
.stamp.is-placed { animation: stamp-drop .28s var(--home-ease) both; }
@keyframes stamp-drop {
  from { transform: translate(-50%, -50%) scale(1.12); }
  to   { transform: translate(-50%, -50%) scale(1); }
}
body.is-carrying, body.is-carrying * { cursor: none !important; }

.stamp-reset {
  position: fixed;
  right: max(40px, env(safe-area-inset-right));
  bottom: max(40px, env(safe-area-inset-bottom));
  z-index: 10002;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--frame-bg);
  cursor: pointer;
  transition: opacity var(--exit-dur) ease-out, visibility var(--exit-dur);
}
.stamp-reset::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #fff; }
.stamp-reset svg { position: relative; width: 14px; height: 14px; }
.stamp-reset:focus-visible { outline: 2px solid var(--frame-bg); outline-offset: 3px; }
.hero-v2--inner ~ .stamp-reset { opacity: 0; visibility: hidden; }

/* ---------- Cursor ---------- */
.cursor, .cursor-point {
  display: none;
  position: fixed;
  top: 0; left: 0;
  z-index: 10000;
  width: 0; height: 0;
  pointer-events: none;
  user-select: none;
  visibility: hidden;
}
.cursor__stamp { display: none; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  .cursor, .cursor-point { display: block; }
  .cursor[data-visible], .cursor-point[data-visible] { visibility: visible; }
  body[data-cursor], body[data-cursor] * { cursor: none !important; }
  .cursor { --fill: var(--purple); --corner: var(--lilac); transition: transform .1s var(--home-ease); }
  .cursor[data-tone="yellow"] { --fill: var(--yellow); --corner: var(--blue); }
  .cursor[data-tone="coral"] { --fill: var(--coral); --corner: var(--pink); }
  .cursor svg { width: 23px; height: 23px; max-width: none; transform: translate(-50%, -50%); overflow: visible; }
  .cursor__box { fill: var(--fill); }
  .cursor__corners { fill: none; stroke: var(--corner); stroke-width: 1.5; }
  .cursor-point::before {
    content: "";
    display: block;
    width: 3px; height: 3px;
    background: #fff;
    box-shadow: 0 0 0 1px var(--frame-bg);
    transform: translate(-50%, -50%);
  }
  .cursor[data-stamp] { transition: none; }
  .cursor[data-stamp] > svg:not(.cursor__stamp) { display: none; }
  .cursor[data-stamp] .cursor__stamp { display: block; width: 76px; height: 80px; }
  .cursor[data-stamp] + .cursor-point { visibility: hidden; }
}
body.is-carrying .cursor, body.is-carrying .cursor-point { visibility: hidden !important; }

/* ==========================================================================
   Fold: home sheet → sticky dark header on inner pages
   ========================================================================== */
.hero-v2--inner .stage { position: sticky; top: var(--sticky-top, 0px); z-index: 10; height: 80px; color: #fff; }
.hero-v2--inner .paper { inset: -24px var(--frame) 0; }
.hero-v2--inner .paper::before { opacity: 1; }
.hero-v2--inner .navigation { inset: 15px 7.96875% auto; color: #fff; }
.hero-v2--inner .nav-link { --accent: var(--lilac); }
.hero-v2--inner .nav-link:focus-visible { outline-color: #fff; }
.hero-v2--inner :is(.content, .pattern, .placed-layer) {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-24px);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-v2 { transition: background-color var(--fold-dur) var(--fold-ease); }
  .stage { transition: height var(--fold-dur) var(--fold-ease); }
  .paper { transition: inset var(--fold-dur) var(--fold-ease); }
  .paper::before { transition: opacity var(--color-dur) ease-out; }
  .navigation { transition: inset var(--fold-dur) var(--fold-ease), color var(--color-dur) ease-out; }
  :is(.content, .pattern, .placed-layer) {
    transition: transform var(--exit-dur) ease-out, opacity var(--exit-dur) ease-out, visibility var(--exit-dur);
  }
  .hero-v2:not(.hero-v2--inner) .content { transition: opacity var(--reveal-dur) var(--home-ease) var(--reveal-delay); }
  .hero-v2:not(.hero-v2--inner) :is(.pattern, .placed-layer) { transition: opacity var(--reveal-dur) var(--home-ease) var(--exit-dur); }
  .hero-v2--inner .view { animation: view-reveal var(--reveal-dur) var(--reveal-delay) var(--fold-ease) both; }
}
.hero-v2--instant, .hero-v2--instant :is(.stage, .paper, .navigation, .content, .pattern, .placed-layer), .hero-v2--instant .paper::before { transition: none !important; }
.hero-v2--instant .view { animation: none !important; }
@keyframes view-reveal {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Responsive (home sheet)
   ========================================================================== */
@media (max-width: 62rem) {
  .stage { --stage-h: max(780px, 100svh); --inset: 40px; }
  .content { flex-direction: column; align-items: flex-start; gap: 36px; padding-bottom: 40px; }
  .intro { width: min(100%, 466px); }
  .navigation { gap: 16px; }
}
@media (max-width: 35rem) {
  .stage {
    --frame: 12px;
    --inset: 32px;
    --stage-h: max(760px, 100svh);
    --pattern-h: calc((var(--stage-h) - 24px) * .24);
  }
  /* home on phones: the sheet fills the screen; the art takes 28% but never squeezes the text
     (--home-content-h is measured by app.js) */
  .hero-v2:not(.hero-v2--inner) .stage {
    --nav-top: 24px;
    --nav-space: calc(var(--nav-top) + 44px + 16px);
    --min-art: 80px;
    --content-h: var(--home-content-h, 340px);
    --stage-h: max(calc(100dvh - var(--edge-top) - var(--edge-bottom)), calc(var(--nav-space) + var(--content-h) + var(--frame) + var(--min-art)));
    --pattern-h: max(var(--min-art), min(calc(var(--stage-h) * .28), calc(var(--stage-h) - var(--nav-space) - var(--content-h) - var(--frame))));
  }
  .hero-v2:not(.hero-v2--inner) { overscroll-behavior-y: none; }
  .paper.perforated { --r: 6px; --p: 20px; }
  .navigation { top: 24px; inset-inline: 24px; gap: 8px; }
  .hero-v2--inner .navigation { inset-inline: 24px; }
  .nav-link { font-size: 14px; }
  .content { gap: clamp(12px, 2dvh, 20px); padding-bottom: clamp(12px, 2dvh, 20px); min-width: 0; }
  .intro { gap: 4px; }
  .identity { gap: 10px; margin-block-end: 8px; }
  .portrait { width: 58px; height: 52px; font-size: 28px; }
  .identity h1 { font-size: 72px; line-height: 52px; }
  .intro p { font-size: 16px; line-height: 1.4; }
  .socials { font-size: 14px; }
  .social-links { column-gap: 16px; }

  /* logos become a full-bleed marquee */
  .clients {
    display: flex;
    align-items: center;
    width: calc(100% + 2 * (var(--inset) - var(--frame)));
    margin-inline: calc(var(--frame) - var(--inset));
    min-width: 0;
  }
  .clients h2 { display: none; }
  .client-window { display: block; flex: 1 1 0%; min-width: 0; overflow: hidden; }
  .client-track { display: flex; width: max-content; }
  .clients .logos { display: flex; flex-wrap: nowrap; flex: 0 0 auto; gap: 28px; padding-inline-end: 28px; }
  .clients .logo { min-height: 44px; }
  .stamp-reset { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
}
@media (max-width: 35rem) and (prefers-reduced-motion: no-preference) {
  .client-track { animation: logo-travel 28s linear infinite; }
  .hero-v2--inner .client-track { animation-play-state: paused; }
}
@media (max-width: 35rem) and (hover: hover) { .client-window:hover .client-track { animation-play-state: paused; } }
@media (max-width: 35rem) and (prefers-reduced-motion: reduce) { .client-window { overflow-x: auto; } }
@keyframes logo-travel { to { transform: translateX(-50%); } }
@media (max-width: 22rem) {
  .stage { --inset: 28px; }
  .nav-link, .socials { font-size: 13px; }
  .identity h1 { font-size: 62px; line-height: 46px; }
  .portrait { width: 50px; height: 45px; }
}

/* ==========================================================================
   About
   ========================================================================== */
.about-page {
  width: 100%;
  padding-block: 64px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: 0;
  overflow-wrap: break-word;
}
.about-page > article { width: min(100% - 80px, 720px); margin-inline: auto; }
.about-page h1 {
  max-width: 15ch;
  margin: 0 0 48px;
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 400;
  line-height: 43px;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.about-story { max-width: 68ch; }
.about-story p { margin: 0 0 1.25em; }
.about-story p:last-child { margin-bottom: 0; }
.about-story a { color: inherit; text-decoration: underline; text-underline-offset: .15em; }

.hl {
  color: inherit;
  --fill-grad: linear-gradient(to bottom, transparent .1em, var(--fill) .1em, var(--fill) calc(100% - .1em), transparent calc(100% - .1em));
  background: var(--fill-grad) 0 0 / 100% 100% no-repeat;
  border-inline: 2px solid var(--edge);
  padding: .18em .12em;
  -webkit-box-decoration-break: slice;
  box-decoration-break: slice;
}
.hl--purple { --edge: var(--purple); --fill: rgb(214 168 250 / .35); }
.hl--blue   { --edge: var(--blue);   --fill: rgb(75 142 226 / .22); }
.hl--yellow { --edge: var(--yellow); --fill: rgb(252 204 48 / .28); }
.hl--green  { --edge: var(--green);  --fill: rgb(109 165 61 / .22); }
.hl--pink   { --edge: var(--pink);   --fill: rgb(247 127 206 / .25); }
@media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  /* drawn like a text selection: left edge appears, fill sweeps right, right edge lands */
  .hl[data-pending] { background-size: 0% 100%; border-right-color: transparent; border-left-color: transparent; }
  .hl.is-drawing {
    transition: background-size var(--draw, .7s) cubic-bezier(.45, 0, .2, 1), border-right-color 0s linear var(--draw, .7s);
    background-size: 100% 100%;
    border-left-color: var(--edge);
    border-right-color: var(--edge);
  }
}
@media (forced-colors: active) { .hl { background: transparent; border-color: Mark; text-decoration: underline; } }

.about-photos {
  position: relative;
  --photo-size: clamp(140px, 14.4vw, 204px);
  --photo-gap: clamp(16px, 1.76vw, 26px);
  margin-top: 48px;
}
.about-photos__viewport {
  overflow: hidden;
  padding-block: 20px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.about-photos__track { display: flex; width: max-content; }
.about-photos__group {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: var(--photo-gap);
  padding-inline-end: var(--photo-gap);
  min-width: 100vw;
  flex-shrink: 0;
}
.about-photos__card {
  flex: 0 0 var(--photo-size);
  width: var(--photo-size);
  height: var(--photo-size);
  margin: 0;
  transform: rotate(var(--tilt, 0deg));
}
.about-photos__card img,
.about-photos__ph {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
  outline: 1px solid rgb(0 0 0 / .1);
  outline-offset: -1px;
}
.about-photos__ph { display: grid; place-items: center; padding: 14px; text-align: center; color: #fff; font-size: 12px; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .about-photos__track { animation: photo-drift 60s linear infinite; }
  .about-photos:focus-within .about-photos__track { animation-play-state: paused; }
}
@media (hover: hover) and (pointer: fine) { .about-photos:hover .about-photos__track { animation-play-state: paused; } }
@media (prefers-reduced-motion: reduce) {
  .about-photos__viewport { overflow-x: auto; mask-image: none; -webkit-mask-image: none; padding-inline: 20px; }
  .about-photos__group[aria-hidden] { display: none; }
}
@keyframes photo-drift { to { transform: translateX(-50%); } }

@media (max-width: 42rem) {
  .about-page { padding-block: 40px; font-size: 16px; }
  .about-page > article { width: calc(100% - 40px); }
  .about-page h1 { font-size: 32px; line-height: 1.2; margin-bottom: 32px; }
}

/* ==========================================================================
   Work
   ========================================================================== */
.work-page { padding: 40px; max-width: 1680px; margin-inline: auto; }
.work-page h1 {
  margin: 0 0 40px;
  font-family: var(--font-serif);
  font-size: 36px;
  line-height: 43px;
  font-weight: 400;
  letter-spacing: -0.04em;
  color: var(--text);
  text-box: cap alphabetic;
  scroll-margin-top: 120px;
}
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.work-card {
  position: relative;
  container-type: inline-size;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 590 / 372;
  background: #f5f5f5;
}
.work-card > img, .work-card > video { display: block; width: 100%; height: 100%; object-fit: cover; }

.work-media-controls { position: absolute; bottom: 6px; inset-inline-end: 6px; z-index: 1; display: flex; }
.work-media-control {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 0; padding: 0;
  border-radius: 50%;
  background: transparent;
  color: #303030;
  cursor: pointer;
}
.work-media-control::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: rgb(210 210 210 / .82); transition: background-color .15s; }
.work-media-control svg { position: relative; width: 14px; height: 14px; }
@media (hover: hover) { .work-media-control:hover::before { background: rgb(220 220 220 / .94); } }

/* phones triptych */
.work-art--phones { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; gap: 3.4%; }
.work-art--phones img { height: 80%; width: auto; aspect-ratio: 9 / 19.5; object-fit: cover; border-radius: 2.4cqw; box-shadow: 0 1cqw 3cqw rgb(0 0 0 / .14); }

/* editorial: two posts on dark */
.work-art--editorial {
  position: absolute; inset: 0;
  display: flex; gap: 2.887%; align-items: center; justify-content: center;
  background: #232528;
}
.work-post { position: relative; background: #fff; color: #232528; width: 41.452%; height: 82.18%; }
.work-post__art { width: 100%; height: 55.585%; background: url("/assets/img/pattern-still.svg") var(--pos, 30% 50%) / auto 260% no-repeat; }
.work-post__copy { position: absolute; inset-inline: 3.889%; top: 59.85%; }
.work-post__date { margin: 0 0 .69cqw; font: 400 .998cqw/1.3 "DM Mono", monospace; text-transform: uppercase; letter-spacing: 0; }
.work-post__headline { margin: 0; font: 400 2.165cqw/1.25 "Headland One", Georgia, serif; letter-spacing: 0; }
.work-post__brand { position: absolute; margin: 0; bottom: 4.1%; inset-inline-start: 3.889%; font: 400 1.144cqw/1.3 Arial, sans-serif; text-transform: uppercase; letter-spacing: 0; }

/* statement */
.work-art--statement {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 5.4cqw;
  background: var(--bg, #232528);
  color: var(--fg, #fff);
}
.work-art--statement p { margin: 0; }
.work-art--statement .big { font-family: var(--font-serif); font-size: 7.4cqw; line-height: .98; letter-spacing: -0.04em; }
.work-art--statement .small { margin-top: 2cqw; font-size: 2.1cqw; line-height: 1.4; max-width: 60%; opacity: .75; letter-spacing: -0.01em; }

/* brand wall */
.work-art--brands {
  position: absolute; inset: 0;
  display: flex; flex-wrap: wrap; align-content: center; justify-content: center;
  gap: 2.4cqw 4.4cqw;
  padding: 6cqw 7cqw;
  background: #fff;
}
.work-art--brands .logo { color: #232528; font-size: 3.1cqw; }
.work-art--brands .logo--serif { font-size: 3.5cqw; }
.work-art--brands .logo--caps { font-size: 2.3cqw; }
.work-art--brands .logo--display { font-size: 4.3cqw; }
.work-art--brands .logo img { height: 3.4cqw; opacity: .85; }

/* chips */
.work-art--chips {
  position: absolute; inset: 0;
  display: flex; flex-wrap: wrap; align-content: center; justify-content: center;
  gap: 1.6cqw;
  padding: 7cqw;
  background: var(--bg, var(--yellow));
}
.work-art--chips span {
  padding: 1.3cqw 2.6cqw 1.15cqw;
  border-radius: 999px;
  border: .35cqw solid #232528;
  background: #fff;
  color: #232528;
  font-weight: 600;
  font-size: 2.7cqw;
  transform: rotate(var(--r, 0deg));
}

/* timeline */
.work-art--timeline {
  position: absolute; inset: 0;
  display: grid; align-content: center;
  padding: 5cqw 6cqw;
  background: var(--bg, var(--lilac));
  color: #232528;
}
.work-art--timeline div {
  display: grid; grid-template-columns: 11cqw 1fr; gap: 2cqw; align-items: baseline;
  padding: 1.25cqw 0;
  border-bottom: 1px solid rgb(0 0 0 / .12);
  font-size: 2.4cqw;
}
.work-art--timeline div:last-child { border-bottom: 0; }
.work-art--timeline b { font-family: var(--font-display); font-style: italic; font-size: 4.4cqw; letter-spacing: .02em; font-weight: 700; }

/* placeholder (localhost only) */
.work-art--ph {
  position: absolute; inset: 0;
  display: grid; place-items: center; text-align: center;
  padding: 24px;
  color: #6b6b6b; font-size: 13px;
  background: repeating-linear-gradient(-45deg, #f4f4f4 0 12px, #ececec 12px 24px);
  outline: 1.5px dashed #c8c8c8; outline-offset: -1.5px;
}
.work-art--ph strong { display: block; color: #252525; font-size: 15px; margin-bottom: 4px; }

@media (max-width: 42rem) {
  .work-page { padding: 32px 20px; }
  .work-page h1 { font-size: 32px; line-height: 1.2; margin-bottom: 32px; }
  .work-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .work-media-controls { bottom: 2px; inset-inline-end: 2px; }
}

/* 404 */
.notfound { width: min(100% - 40px, 720px); margin: 0 auto; padding-block: 64px; color: var(--text); font-size: 18px; line-height: 1.6; }
.notfound h1 { font-family: var(--font-serif); font-weight: 400; font-size: 36px; line-height: 43px; letter-spacing: -0.04em; margin: 0 0 24px; }
.notfound a { color: inherit; }
