/* garrow.work — direction D "Loud folders" (picked by Toby, 4 Dec 2026; mockup in design-directions/).
   Near-black background, one hot colour, Inter Tight for headings and text (the type from mockup B),
   JetBrains Mono for small labels. Small centred ID at the top, floating nav bottom right,
   dark project folders whose images always show and tuck under the next folder. */
:root {
  --bg: #0e0e0e;
  --fg: #f1ede4;
  --hot: #ff4f1f;
  --mute: #8b867d;
  --line: #2b2a28;
  --panel: #1b1a19;
  --fold-a: #1b1a19;
  --fold-b: #242220;

  --f-display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --gutter: max(16px, 2.4vw, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, 2.4vw, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg); color: var(--fg);
  font-family: var(--f-display); font-weight: 400;
  font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; }
img { max-width: 100%; }
::selection { background: var(--hot); color: #000; }
:focus-visible { outline: 2px solid var(--hot); outline-offset: 3px; }
.ui, .mono { font-family: var(--f-mono); font-size: 11px; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; font-weight: 400; }
.wrap { padding-left: var(--gutter); padding-right: var(--gutter-r); }
.inner { max-width: 1440px; margin: 0 auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--fg); color: #000; padding: 8px 12px; }

/* ---------- ID (top of every page) ---------- */
.site-id { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 64px 16px 88px; text-align: center; font-size: 14px; letter-spacing: .12em; }
.site-id a { text-decoration: none; color: var(--fg); font-weight: 500; }
.site-id a:hover { color: var(--hot); }
.site-id span { color: var(--mute); }

/* ---------- Floating nav (bottom right, always there) ---------- */
.dock { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px)); z-index: 50;
  display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 999px;
  background: rgba(22, 22, 21, .74); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 10px 30px -10px rgba(0,0,0,.6); }
.dock a { text-decoration: none; color: var(--fg); padding: 9px 11px; border-radius: 999px; white-space: nowrap; }
.dock a:hover { color: var(--hot); }
.dock a[aria-current="page"] { background: var(--fg); color: #000; }
.dock .sep { width: 1px; height: 14px; background: rgba(255,255,255,.18); margin: 0 4px; }
.dock .icon { display: grid; place-items: center; padding: 8px 9px; }
.dock svg { width: 15px; height: 15px; display: block; }
@media (max-width: 560px) {
  .dock { left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom, 0px)); justify-content: space-between; }
  .dock a { padding: 10px 8px; letter-spacing: .04em; }
  .dock .sep, .dock .icon { display: none; }
}

/* ---------- Reel ---------- */
.reel { margin: 0 auto; max-width: 1440px; }
.reel-embed { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; }
.reel-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.reel-link { position: absolute; inset: 0; display: block; }
.reel-link img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.reel-link:hover img { transform: scale(1.015); }
.play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(14,14,14,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background-color .25s, transform .35s var(--ease); }
.play svg { width: 24px; height: 24px; margin-left: 4px; }
.reel-link:hover .play, .reel-link:focus-visible .play { background: var(--hot); transform: scale(1.06); }

/* ---------- Project folders ----------
   Each folder is a solid dark fill (no outlines). The tab joins the folder with concave
   fillets drawn by radial gradients. The image always shows, grows on hover (on touch
   screens, for the folder in the middle of the screen) and runs under the next folder. */
.drawer { --tuck: 56px; --r: 14px; list-style: none; margin: 0; padding: 120px 0 0; }
.fold { position: relative; margin-top: calc(var(--tuck) * -1); }
.fold:first-child { margin-top: 0; }
.fold:nth-child(odd) { --c: var(--fold-a); }
.fold:nth-child(even) { --c: var(--fold-b); }
.fold > a { display: block; text-decoration: none; color: var(--fg); outline: none; }
.fold .tab { --tw: clamp(150px, 15vw, 210px); position: absolute; bottom: 100%; height: 38px; width: var(--tw);
  left: calc(var(--gutter) + (100% - var(--gutter) - var(--gutter-r) - var(--tw)) * var(--i) / 7);
  background: var(--c); border-radius: var(--r) var(--r) 0 0;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 16px; white-space: nowrap; transition: color .2s; }
.fold .tab::before, .fold .tab::after { content: ""; position: absolute; bottom: 0; width: var(--r); height: var(--r); }
.fold .tab::before { right: 100%; background: radial-gradient(circle at 0 0, transparent calc(var(--r) - .5px), var(--c) var(--r)); }
.fold .tab::after { left: 100%; background: radial-gradient(circle at 100% 0, transparent calc(var(--r) - .5px), var(--c) var(--r)); }
.fold .body { display: block; background: var(--c); border-radius: var(--r) var(--r) 0 0; padding: 14px var(--gutter-r) 0 var(--gutter); box-shadow: 0 -18px 40px -20px rgba(0,0,0,.7); }
.fold .head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 12px; }
.fold .t { font-size: clamp(22px, 2.6vw, 38px); font-weight: 500; letter-spacing: -.03em; line-height: 1; transition: color .2s; }
.fold .k { color: var(--mute); text-align: right; }
.fold .shot { display: block; height: calc(120px + var(--tuck)); border-radius: 8px 8px 0 0; overflow: hidden; background: #000; transition: height .5s var(--ease); }
.fold .shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fold > a:hover .shot, .fold > a:focus-visible .shot, .fold.open .shot { height: calc(200px + var(--tuck)); }
.fold > a:hover .t, .fold > a:hover .tab, .fold > a:focus-visible .t, .fold > a:focus-visible .tab { color: var(--hot); }
.fold > a:focus-visible .tab { outline: 2px solid var(--hot); outline-offset: -4px; }
@media (max-width: 700px) {
  .drawer { --tuck: 40px; padding-top: 96px; }
  .fold .tab { --tw: 124px; height: 34px; padding: 0 12px; font-size: 10px; }
  .fold .head { flex-direction: column; gap: 6px; }
  .fold .k { text-align: left; }
  .fold .shot { height: calc(100px + var(--tuck)); }
  .fold.open .shot, .fold > a:hover .shot { height: calc(160px + var(--tuck)); }
}
@media (prefers-reduced-motion: reduce) { .fold .shot, .reel-link img { transition: none; } }

/* ---------- Home welcome text and /motion intro/outro ---------- */
.welcome .inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 640px); gap: 32px; padding-block: 120px 0; }
.welcome h1 { font-size: clamp(36px, 5vw, 72px); font-weight: 500; letter-spacing: -.04em; line-height: .98; margin: 0; }
.welcome p { margin: 0 0 16px; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.35; letter-spacing: -.01em; }
.lede .inner { text-align: center; padding-top: 8px; }
.lede p { margin: 0 auto; max-width: 52ch; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.3; letter-spacing: -.01em; }
.outro .inner { padding-top: 96px; }
.outro p { max-width: 60ch; margin: 0; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.35; }

/* ---------- Footer ---------- */
.site-foot .inner { padding-block: 140px 120px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; }
.site-foot .mail { font-size: clamp(28px, 4.4vw, 64px); font-weight: 500; letter-spacing: -.04em; line-height: 1; text-decoration: none; color: var(--hot); }
.site-foot .mail:hover { color: var(--fg); }
.site-foot .meta { display: flex; gap: 20px; color: var(--mute); }
.site-foot .meta a { text-decoration: none; }
.site-foot .meta a:hover { color: var(--fg); }

/* ---------- Gallery (Illustration&Design) ---------- */
.gallery .inner { padding-block: 0 0; }
.gal-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 20px; }
.back { color: var(--mute); text-decoration: none; }
.back:hover, .back:focus-visible { color: var(--hot); }
.gal { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; }
.stagebox { display: flex; flex-direction: column; min-width: 0; background: var(--panel); border-radius: 14px; overflow: hidden; }
.stagebox figure { margin: 0; padding: 28px; flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; }
.stagebox img { max-height: min(72vh, 760px); width: auto; max-width: 100%; display: block; border-radius: 6px; transition: opacity .25s; }
.stagebar { border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.stagebar .ctrls { display: flex; gap: 8px; }
.btn { font: inherit; color: var(--fg); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.btn:hover, .btn:focus-visible { border-color: var(--hot); color: var(--hot); outline: none; }
.side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.side .about { padding: 20px; background: var(--panel); border-radius: 14px; }
.side .about h1 { font-size: 32px; font-weight: 500; letter-spacing: -.03em; line-height: 1; margin: 0 0 14px; }
.side .about p { margin: 0; font-size: 16px; }
.thumbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.thumbs button { border: 0; background: transparent; padding: 0; cursor: pointer; border-radius: 8px; overflow: hidden; }
.thumbs img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; display: block; opacity: .5; transition: opacity .25s; }
.thumbs button:hover img, .thumbs button[aria-current="true"] img { opacity: 1; }

/* ---------- Text pages (About, project pages, 404) ---------- */
.stub .inner { padding-block: 0 0; }
.stub h1 { font-size: clamp(40px, 6vw, 92px); font-weight: 500; letter-spacing: -.04em; line-height: .98; margin: 0 0 32px; text-wrap: balance; }
.stub h2 { font-size: clamp(24px, 2.6vw, 38px); font-weight: 500; letter-spacing: -.03em; line-height: 1; margin: 40px 0 16px; }
.stub p { max-width: 62ch; margin: 0 0 16px; }
.stub .ui, .stub .kicker { color: var(--mute); }
.stub .kicker { margin: 0 0 14px; }
.stub a { text-decoration-color: var(--hot); text-underline-offset: 3px; }
.stub a:hover { color: var(--hot); }

.about-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 48px; align-items: start; }
.about-grid img { width: 100%; height: auto; display: block; border-radius: 14px; }
.about-grid p { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.4; }

.project .head { padding-block: 16px 40px; }
.project .head h1 { margin: 0; }
.project .body { display: flex; flex-direction: column; gap: 32px; }
.project .body > p, .project .body > h2 { max-width: 62ch; margin: 0; }
.project .body > p { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.4; }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.figs.one { grid-template-columns: minmax(0, 1fr); }
.figs img { width: 100%; height: auto; display: block; border-radius: 10px; background: var(--panel); }
.next { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 40px; }
.next a { color: var(--mute); text-decoration: none; }
.next a:hover, .next a:focus-visible { color: var(--hot); }

@media (max-width: 900px) {
  .welcome .inner, .about-grid { grid-template-columns: 1fr; }
  .welcome .inner { padding-top: 88px; }
  .gal { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-foot .inner { padding-bottom: 110px; }
}
