/* Clare Low — portfolio. Built on the Index Folio design system. */
:root {
  --paper: #e6dfcd;
  --paper-raised: #efe9da;
  --paper-sunken: #d8cfb9;
  --ink: #1f1e1a;
  --ink-muted: #57534a;
  --line: #a39c88;
  --line-strong: #6d6858;
  --olive: #8c8b78;
  --slate: #808a99;
  --kraft: #a8865f;
  --sage: #82856f;
  --cream: #e3dac3;
  --carbon: #262521;
  --on-folder: #1a1916;
  --on-carbon: #e9e3d3;
  --on-carbon-muted: #a8a291;
  --signal: #b28a35;
  --signal-bright: #d1a94e;
  --darkroom: #171613;
  --edge: -8px 0 14px rgba(31, 30, 26, .22);
  --display: "Unbounded", "Archivo Black", system-ui, sans-serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Space Mono", "Courier New", monospace;
  --serif: "Bodoni Moda", Didot, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body.reel-playing { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.on-carbon :focus-visible, .reel :focus-visible { outline-color: var(--signal-bright); }

.mono { font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.disp { font-family: var(--display); text-transform: uppercase; }
.serif { font-family: var(--serif); font-style: italic; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 24px; }

.grain { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .22; mix-blend-mode: multiply; z-index: 50; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 46px; padding: 14px 28px; font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; cursor: pointer; background: none; }
.btn .arrow { display: inline-block; transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-light { background: var(--paper-raised); color: var(--ink); }
.btn-ghost-dark { color: var(--on-carbon); border-color: var(--on-carbon-muted); }
.btn-dark { background: var(--carbon); color: var(--on-carbon); }
.btn-ghost { color: var(--ink); border-color: var(--line-strong); }
.link { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; padding: 12px 0; display: inline-flex; gap: 8px; }
.link .arrow { transition: transform .15s ease; }
.link:hover .arrow { transform: translateX(3px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand { margin-right: auto; font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -.01em; text-transform: uppercase; text-decoration: none; }
.nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav a { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); text-decoration: none; padding: 6px 0; }
.nav a b { color: var(--ink); margin-right: 6px; }
.nav a:hover, .nav a[aria-current="true"] { color: var(--ink); border-bottom: 1px solid var(--ink); }
.status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px rgba(178, 138, 53, .25); }

.file-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 18px 0 10px; border-bottom: 1px solid var(--ink); font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.file-bar .muted { color: var(--ink-muted); }
section { scroll-margin-top: 64px; }

/* ---------- Landing reel ---------- */
.reel { position: fixed; inset: 0; z-index: 100; background: var(--darkroom); color: #ebe5d5; overflow: hidden; transition: opacity .9s ease, background-color .6s ease; }
.reel.is-developing { background: var(--paper); }
.reel.is-done { opacity: 0; pointer-events: none; }
.reel[hidden] { display: none; }
.reel-rail { position: absolute; top: 0; bottom: 0; width: 56px; background: #211f1b; display: flex; flex-direction: column; justify-content: space-around; align-items: center; z-index: 4; animation: railRun .35s linear infinite; }
.reel-rail span { width: 20px; height: 28px; background: #0d0c0a; border-radius: 3px; }
.reel-rail.left { left: 0; } .reel-rail.right { right: 0; }
@keyframes railRun { from { transform: translateY(0); } to { transform: translateY(-36px); } }
.reel-edge { position: absolute; writing-mode: vertical-rl; font-family: var(--mono); font-size: 11px; letter-spacing: .32em; color: var(--signal-bright); text-transform: uppercase; z-index: 4; }
.reel-edge.l { left: 66px; top: 12vh; } .reel-edge.r { right: 66px; bottom: 12vh; }
.reel-gate { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(960px, calc(100% - 200px)); aspect-ratio: 16 / 9; background: #2b2924; border: 1px solid #4a463d; overflow: hidden; z-index: 3; animation: weave .5s steps(1) infinite; }
@keyframes weave { 0%,100% { transform: translate(-50%, -50%); } 25% { transform: translate(calc(-50% + 1px), calc(-50% - 1px)); } 50% { transform: translate(calc(-50% - 1px), -50%); } 75% { transform: translate(-50%, calc(-50% + 1px)); } }
.reel-gate .cross-h, .reel-gate .cross-v { position: absolute; background: #8a8473; }
.reel-gate .cross-h { left: 0; right: 0; top: 50%; height: 1px; }
.reel-gate .cross-v { top: 0; bottom: 0; left: 50%; width: 1px; }
.reel-gate .ring { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); aspect-ratio: 1; border: 2px solid #8a8473; border-radius: 50%; }
.reel-gate .ring.a { height: 88%; } .reel-gate .ring.b { height: 64%; }
.reel-gate .sweep { position: absolute; left: 50%; top: 50%; height: 88%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: conic-gradient(rgba(168, 134, 95, .45) 0deg 120deg, transparent 120deg); animation: sweep .8s linear infinite; }
@keyframes sweep { from { transform: translate(-50%, -50%) rotate(0); } to { transform: translate(-50%, -50%) rotate(360deg); } }
.reel-count { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -52%); font-family: var(--display); font-weight: 800; font-size: clamp(120px, 22vw, 300px); line-height: 1; }
.reel-gate .corner { position: absolute; width: 22px; height: 22px; border: 0 solid var(--signal-bright); }
.corner.tl { left: 14px; top: 14px; border-left-width: 1px; border-top-width: 1px; }
.corner.tr { right: 14px; top: 14px; border-right-width: 1px; border-top-width: 1px; }
.corner.bl { left: 14px; bottom: 14px; border-left-width: 1px; border-bottom-width: 1px; }
.corner.br { right: 14px; bottom: 14px; border-right-width: 1px; border-bottom-width: 1px; }
.reel-gate .gate-label { position: absolute; left: 44px; top: 20px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.reel-title { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 18px; z-index: 6; }
.reel.is-glitching .reel-title, .reel.is-developing .reel-title { display: flex; }
.reel.is-glitching .reel-gate, .reel.is-developing .reel-gate { display: none; }
.glitch { position: relative; font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; line-height: 1; font-size: clamp(48px, 9.2vw, 134px); white-space: nowrap; margin: 0; color: #ebe5d5; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; }
.glitch::before { color: #555e6b; transform: translateX(-8px); z-index: -1; animation: jitterA .36s steps(1) infinite; }
.glitch::after { color: var(--signal-bright); opacity: .7; transform: translateX(8px); clip-path: inset(30% 0 52% 0); animation: jitterB .44s steps(1) infinite; }
@keyframes jitterA { 0%,100% { transform: translateX(-8px); } 50% { transform: translateX(-3px) translateY(2px); } }
@keyframes jitterB { 0%,100% { clip-path: inset(30% 0 52% 0); transform: translateX(12px); } 33% { clip-path: inset(62% 0 20% 0); transform: translateX(-18px); } 66% { clip-path: inset(12% 0 74% 0); transform: translateX(24px); } }
.reel.is-developing .glitch { color: var(--ink); transition: color .6s ease; }
.reel.is-developing .glitch::before, .reel.is-developing .glitch::after { opacity: 0; transition: opacity .4s ease; }
.reel-sub { font-family: var(--display); font-weight: 700; font-size: clamp(16px, 2vw, 24px); text-transform: uppercase; letter-spacing: -.01em; text-align: center; padding: 0 24px; }
.reel.is-developing .reel-sub { color: var(--ink); }
.reel-progress { display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.reel-progress .bar { width: 240px; height: 2px; background: #4a463d; position: relative; }
.reel-progress .bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--signal-bright); transition: width 1.6s linear; }
.reel.is-glitching .reel-progress .bar i, .reel.is-developing .reel-progress .bar i { width: 100%; }
.reel-burn { position: absolute; right: -200px; top: -200px; width: 720px; height: 720px; background: radial-gradient(circle, rgba(209, 169, 78, .32) 0%, rgba(178, 138, 53, .12) 35%, transparent 62%); mix-blend-mode: screen; pointer-events: none; z-index: 7; }
.reel-scratch { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(235, 229, 213, .16); z-index: 7; pointer-events: none; }
.reel-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, .6) 100%); z-index: 8; pointer-events: none; }
.reel.is-developing .reel-vignette, .reel.is-developing .reel-burn, .reel.is-developing .reel-scratch, .reel.is-developing .reel-rail, .reel.is-developing .reel-edge { opacity: 0; transition: opacity .5s ease; }
.reel-flicker { position: absolute; inset: 0; background: #ebe5d5; opacity: 0; z-index: 9; pointer-events: none; animation: flicker 2.4s steps(1) infinite; }
@keyframes flicker { 0%,100% { opacity: 0; } 8% { opacity: .07; } 12% { opacity: 0; } 47% { opacity: .04; } 52% { opacity: 0; } 81% { opacity: .09; } 84% { opacity: 0; } }
.reel-bar { position: absolute; left: 96px; right: 96px; display: flex; justify-content: space-between; align-items: center; gap: 16px; z-index: 10; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.reel-bar.top { top: 28px; } .reel-bar.bottom { bottom: 28px; }
.reel-bar .muted { color: #a8a291; }
.skip { background: #ebe5d5; color: var(--darkroom); }
.reel.is-developing .reel-bar { color: var(--ink); }

/* ---------- About ---------- */
.about { padding: 96px 0 64px; overflow: hidden; }
.hero { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 48px; align-items: end; margin-top: 40px; }
.hero-text { display: flex; flex-direction: column; gap: 24px; }
.name { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(56px, 8.4vw, 120px); line-height: .9; letter-spacing: -.02em; text-transform: uppercase; }
.lede { margin: 0; font-family: var(--serif); font-style: italic; font-size: 28px; line-height: 34px; }
.intro { margin: 0; max-width: 34em; font-size: 18px; line-height: 28px; }
/* ---------- Work drawers ---------- */
.work { padding: 64px 0; }
.h2 { margin: 24px 0 56px; font-family: var(--display); font-weight: 700; font-size: clamp(40px, 5vw, 72px); line-height: .92; letter-spacing: -.015em; text-transform: uppercase; }
.drawer + .drawer { margin-top: 80px; }
.drawer-title { margin: 24px 0 12px; font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3vw, 40px); line-height: 1; letter-spacing: -.01em; text-transform: uppercase; }
.drawer-intro { margin: 0 0 40px; max-width: 46em; font-size: 18px; line-height: 28px; }
.drawer-title + .stack { margin-top: 40px; }
.stack { display: flex; height: 560px; padding-left: 32px; }
.folder { position: relative; flex: 0 0 80px; box-shadow: var(--edge); transition: flex-basis .5s cubic-bezier(.2, .7, .2, 1); color: var(--on-folder); }
.folder.is-open { flex: 1 1 auto; }
.folder.dark { color: var(--on-carbon); }
.folder-tab { position: absolute; left: -32px; width: 32px; height: 120px; padding: 10px 0; border: 0; border-radius: 10px 0 0 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; background: inherit; color: inherit; }
.folder-tab span { writing-mode: vertical-rl; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.spine-face { position: absolute; inset: 0; width: 100%; background: none; border: 0; cursor: pointer; color: inherit; padding: 0; }
.spine-face .sub { position: absolute; left: 50%; top: 24px; transform: translateX(-50%); writing-mode: vertical-rl; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .8; white-space: nowrap; }
.spine-face .label { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); writing-mode: vertical-rl; font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -.01em; text-transform: uppercase; white-space: nowrap; }
.folder.is-open .spine-face { display: none; }
.folder-body { display: none; height: 100%; padding: 32px 40px 24px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; animation: fadeIn .4s ease .15s both; }
.folder.is-open .folder-body { display: grid; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.folder-info { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.folder-info .row { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.folder-info .row span:last-child { font-weight: 400; }
.folder-info h4 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.12; letter-spacing: -.01em; text-transform: uppercase; }
.folder-info p { margin: 0; max-width: 30em; font-size: 16px; line-height: 24px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 3px 8px; border: 1px solid currentColor; border-radius: 2px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.role { font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 26px; }
.folder-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 12px; border-top: 1px solid currentColor; font-family: var(--mono); font-size: 13px; letter-spacing: .02em; text-transform: uppercase; }
.folder-foot a { font-weight: 700; letter-spacing: .06em; text-decoration: none; padding: 8px 0; }
.still { position: relative; display: block; margin: 0; aspect-ratio: 16 / 9; background: var(--carbon); overflow: hidden; }
.still img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.still .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border: 1px solid #e9e3d3; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #e9e3d3; background: rgba(23, 22, 19, .45); transition: transform .2s ease; }
.still:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.still .cap { position: absolute; left: 16px; bottom: 16px; padding: 3px 8px; background: var(--paper-raised); color: var(--ink); font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.still.reserved { border: 1px dashed #8a8473; background: #3a3832; display: flex; align-items: center; justify-content: center; color: var(--signal-bright); }
.folder.ai { outline: 1px solid var(--signal); outline-offset: -14px; }
.pending { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-muted); }
.pending .dot { width: 7px; height: 7px; box-shadow: none; }


/* Film border around every video */
.film { position: relative; align-self: center; background: var(--darkroom); padding: 22px 14px; box-shadow: 0 8px 18px rgba(23, 22, 19, .25); }
.film::before, .film::after { content: ""; position: absolute; left: 10px; right: 10px; height: 7px; background: repeating-linear-gradient(90deg, var(--paper) 0 10px, transparent 10px 22px); opacity: .9; }
.film::before { top: 8px; } .film::after { bottom: 8px; }

/* Drawer B: title on top, videos fill the folder */
.folder-body.pm-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 20px; padding: 30px 36px 28px; }
.pm-body .folder-info { gap: 12px; }
.pm-body .row a { text-decoration: none; font-weight: 700; }
.pm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pm-head h4 { font-size: clamp(24px, 2.4vw, 34px); font-weight: 800; line-height: 1; }
.tag.plain { border-color: transparent; opacity: .8; }
.pm-body .film { align-self: stretch; display: flex; align-items: stretch; justify-content: center; min-height: 0; overflow: hidden; }
.pm-body .film .still { height: 100%; width: auto; max-width: 100%; }
.reels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; height: 100%; max-width: 100%; aspect-ratio: 2.4 / 1; min-height: 0; }
.reel-frame { position: relative; display: block; height: 100%; min-width: 0; background: var(--carbon); color: #e9e3d3; }
.reel-frame .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; border: 1px solid #e9e3d3; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.reel-frame .cap { position: absolute; left: 8px; bottom: 8px; padding: 2px 6px; background: var(--paper-raised); color: var(--ink); font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* Drawer C: apps, coming soon */
.folder-body.ai-body { align-items: center; padding: 36px 40px; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); }
.folder-info h4.big { font-size: clamp(36px, 4vw, 60px); font-weight: 800; line-height: .92; }
.pending.gold { color: var(--signal-bright); font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.app-shots { position: relative; height: 380px; }
.win { position: absolute; background: #1e1d1a; border: 1px solid #4a463d; box-shadow: 0 10px 22px rgba(0, 0, 0, .35); }
.win.desktop { left: 0; top: 10px; width: 78%; }
.win.phone { right: 0; bottom: 0; width: 26%; }
.win .bar { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-bottom: 1px solid #4a463d; font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--on-carbon-muted); }
.win .bar i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid #8a8473; }
.win .bar span { margin-left: 8px; }
.win .shot { position: relative; display: flex; align-items: center; justify-content: center; color: var(--signal-bright); background: repeating-linear-gradient(135deg, #262521 0 10px, #2b2924 10px 20px); }
.win.desktop .shot { aspect-ratio: 16 / 10; } .win.phone .shot { aspect-ratio: 9 / 17; }
.win .cap { position: absolute; left: 8px; bottom: 8px; padding: 2px 6px; background: var(--paper-raised); color: var(--ink); font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Skills: call sheet ---------- */
.skills { padding: 96px 0 64px; }
.callsheet { position: relative; background: var(--paper-raised); color: var(--on-folder); padding: 28px 32px 24px; box-shadow: var(--edge), 0 10px 24px rgba(31, 30, 26, .12); }
.callsheet .tab { position: absolute; top: -30px; left: 24px; height: 30px; display: flex; align-items: center; padding: 0 14px; background: var(--paper-raised); border-radius: 10px 10px 0 0; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.cs-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 2px solid var(--on-folder); }
.cs-head h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(32px, 3.4vw, 44px); line-height: 1; letter-spacing: -.015em; text-transform: uppercase; }
.cs-meta { display: grid; grid-template-columns: auto auto; gap: 4px 16px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; text-align: right; }
.cs-meta span:nth-child(odd) { color: var(--ink-muted); } .cs-meta span:nth-child(even) { font-weight: 700; }
.cs-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr); gap: 32px; margin-top: 20px; }
.cs-cols h3 { margin: 0; padding: 6px 10px; background: var(--carbon); color: var(--on-carbon); font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.cs-cols ul { list-style: none; margin: 0; padding: 0; }
.cs-cols li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 22px; font-weight: 600; }
.cs-cols li::before { content: "✓"; flex: 0 0 18px; height: 18px; border: 1.5px solid var(--on-folder); display: flex; align-items: center; justify-content: center; font-size: 13px; line-height: 1; }
.cs-stamp { position: absolute; right: 36px; bottom: 26px; transform: rotate(-8deg); padding: 6px 14px; border: 3px solid var(--signal); color: var(--signal); font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Folio 01: index card in a folder ---------- */
.folio01 { overflow: hidden; }
.cardbox { position: relative; max-width: 1220px; margin: 60px auto 0; padding: 0 24px; }
.box-tab { position: absolute; top: -26px; right: 84px; height: 26px; display: flex; align-items: center; padding: 0 18px; background: #8c6d4b; color: #f1ebdc; border-radius: 10px 10px 0 0; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.box-back { position: relative; background: #8c6d4b; padding: 82px 70px 0; box-shadow: 0 10px 30px rgba(31, 30, 26, .25); }
.box-back::before { content: ""; position: absolute; left: 24px; right: 24px; top: 18px; height: 1px; background: rgba(26, 25, 22, .25); }
.card-stack { position: relative; }
.back-card { position: absolute; left: 0; right: 0; top: calc(var(--up) * -1); bottom: 0; box-shadow: 0 -3px 8px rgba(31, 30, 26, .14); }
.back-card.olive, .back-card.olive .bc-tab { background: var(--olive); }
.back-card.slate, .back-card.slate .bc-tab { background: var(--slate); }
.back-card.kraft, .back-card.kraft .bc-tab { background: var(--kraft); }
.back-card.sage, .back-card.sage .bc-tab { background: var(--sage); }
.bc-tab { position: absolute; top: -32px; left: var(--l); height: 32px; display: flex; align-items: center; padding: 0 16px; border-radius: 10px 10px 0 0; color: var(--on-folder); text-decoration: none; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: transform .2s ease; }
.bc-tab:hover { transform: translateY(-4px); }
.bc-tab .short { display: none; }
.index-card { position: relative; z-index: 10; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding: 44px 52px 96px; color: var(--on-carbon); background-color: var(--carbon); background-image: repeating-linear-gradient(180deg, transparent 0 33px, rgba(233, 227, 211, .05) 33px 34px); box-shadow: 0 -5px 12px rgba(31, 30, 26, .22); }
.index-card::before { content: ""; position: absolute; left: 52px; right: 52px; top: 30px; height: 2px; background: var(--signal); }
.index-card::after { content: ""; position: absolute; left: 30px; top: 0; bottom: 0; width: 1px; background: rgba(209, 169, 78, .35); }
.ic-tab { position: absolute; top: -34px; left: 40px; height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 18px; background: var(--carbon); border-radius: 10px 10px 0 0; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ic-tab span { font-weight: 400; }
.ic-left { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.k { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--on-carbon-muted); }
.index-card h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(40px, 4.4vw, 64px); line-height: .9; letter-spacing: -.02em; text-transform: uppercase; }
.ic-sub { margin: 0; font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 26px; letter-spacing: -.01em; text-transform: uppercase; }
.stamp { align-self: flex-start; margin-top: 12px; transform: rotate(-7deg); padding: 6px 14px; border: 3px solid var(--signal-bright); color: var(--signal-bright); font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; }
.ic-right { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.fields { margin: 0; border-top: 1px solid var(--on-carbon); }
.fields div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid #4a463d; }
.fields dt { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--on-carbon-muted); }
.fields dd { margin: 0; font-family: var(--mono); font-size: 17px; line-height: 24px; overflow-wrap: anywhere; }
.fields a { color: var(--on-carbon); text-decoration: underline; text-decoration-color: var(--signal-bright); text-underline-offset: 5px; }
.btn-row.left { justify-content: flex-start; }
.pocket { position: relative; z-index: 20; height: 150px; margin: -58px -70px 0; background: var(--kraft); box-shadow: 0 -8px 16px rgba(31, 30, 26, .28); clip-path: polygon(0 18px, 34% 18px, 37% 0, 63% 0, 66% 18px, 100% 18px, 100% 100%, 0 100%); display: flex; align-items: center; justify-content: center; gap: 24px; padding: 18px 40px 0; }
.pocket-label { display: flex; align-items: center; gap: 12px; padding: 10px 18px; background: var(--paper-raised); color: var(--signal); box-shadow: 0 2px 4px rgba(31, 30, 26, .18); }
.pocket-label span { color: var(--ink); font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pocket-note { position: absolute; top: 64px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--on-folder); }
.pocket-note.l { left: 76px; } .pocket-note.r { right: 76px; }
.eyelet { position: absolute; top: 60px; width: 22px; height: 22px; border-radius: 50%; background: #c9b48a; box-shadow: inset 0 0 0 5px #8c6d4b; }
.eyelet.l { left: 40px; } .eyelet.r { right: 40px; }

/* ---------- About: polaroid and blurb ---------- */
.polaroid { position: relative; margin: 8px 12px 0; padding: 18px 18px 0; background: #f7f3ea; box-shadow: 0 2px 3px rgba(31, 30, 26, .12), 0 14px 30px rgba(31, 30, 26, .22); transform: rotate(2deg); }
.polaroid::before { content: ""; position: absolute; left: 50%; top: -14px; width: 110px; height: 28px; transform: translateX(-50%) rotate(-3deg); background: rgba(178, 138, 53, .32); }
.polaroid img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 30%; filter: saturate(.85); }
.polaroid figcaption { display: flex; align-items: center; justify-content: center; height: 84px; font-family: "Permanent Marker", "Marker Felt", cursive; font-size: 26px; line-height: 1; color: #2a2724; transform: rotate(-2deg); }
.otr { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.otr-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 16px; background: transparent; color: var(--ink); border: 1px dashed var(--line-strong); font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.otr-btn svg { color: var(--signal); transition: transform .3s ease; }
.otr-btn[aria-expanded="true"] svg { transform: rotate(45deg); }
.otr-note { position: relative; max-width: 30em; padding: 20px 22px 18px; background: var(--paper-raised); box-shadow: 0 8px 18px rgba(31, 30, 26, .14); transform: rotate(-1.2deg); animation: fadeIn .3s ease; }
.otr-note::before { content: ""; position: absolute; left: 50%; top: -10px; width: 84px; height: 20px; transform: translateX(-50%) rotate(2deg); background: rgba(178, 138, 53, .35); }
.otr-note .k { display: block; margin-bottom: 8px; color: var(--ink-muted); }
.otr-note p { margin: 0; font-size: 16px; line-height: 24px; }

/* ---------- Archive reel ---------- */
.archive { padding: 64px 0; }
.reel-strip { position: relative; margin-top: 24px; background: var(--darkroom); padding: 34px 0; }
.reel-strip::before, .reel-strip::after { content: ""; position: absolute; left: 12px; right: 12px; height: 9px; background: repeating-linear-gradient(90deg, var(--paper) 0 14px, transparent 14px 30px); }
.reel-strip::before { top: 10px; } .reel-strip::after { bottom: 10px; }
.af-list { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #4a463d transparent; }
.af { flex: 0 0 236px; min-height: 220px; display: flex; flex-direction: column; gap: 8px; padding: 14px; background: #2b2924; border: 1px solid #4a463d; color: var(--on-carbon); scroll-snap-align: start; }
.af-tag { align-self: flex-start; padding: 2px 6px; background: var(--slate); color: var(--on-folder); font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.af.edu .af-tag { background: var(--cream); }
.af-when { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--signal-bright); }
.af-what { font-size: 16px; line-height: 21px; font-weight: 600; }
.af-where { margin-top: auto; font-size: 13px; line-height: 18px; color: var(--on-carbon-muted); }
.reel-strip-foot { display: flex; justify-content: space-between; margin-top: 10px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.reel-strip-foot .gold { color: var(--signal); }

.site-footer { background: var(--paper-sunken); border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
.site-footer .copy { font-family: var(--mono); font-size: 13px; letter-spacing: .02em; color: var(--ink-muted); }
.site-footer nav { display: flex; gap: 24px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); padding: 10px 16px; background: var(--carbon); color: var(--on-carbon); font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; opacity: 0; transition: opacity .2s ease, transform .2s ease; z-index: 60; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .box-back { padding: 82px 32px 0; }
  .pocket { margin: -58px -32px 0; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .hero, .two, .cs-cols, .index-card { grid-template-columns: minmax(0, 1fr); }
  .index-card { gap: 24px; padding: 34px 24px 90px 34px; }
  .index-card::before { left: 34px; right: 24px; top: 20px; }
  .index-card::after { left: 18px; }
  .bc-tab { left: var(--l-sm); padding: 0 10px; height: 26px; top: -26px; }
  .bc-tab .long { display: none; } .bc-tab .short { display: inline; }
  .ic-tab { left: 0; height: 28px; top: -28px; padding: 0 12px; font-size: 10px; }
  .pocket-note, .eyelet { display: none; }
  .cs-stamp { position: static; display: inline-block; margin-top: 20px; }
  .stack { flex-direction: column; height: auto; padding-left: 0; }
  .folder { flex: none; box-shadow: 0 -6px 12px rgba(31, 30, 26, .14); }
  .folder-tab { display: none; }
  .spine-face { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 64px; padding: 0 20px; text-align: left; }
  .spine-face .sub, .spine-face .label { position: static; transform: none; writing-mode: horizontal-tb; }
  .spine-face .label { font-size: 18px; order: -1; }
  .folder-body { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; height: auto; }
  .folder.ai { outline-offset: -8px; }
  .folder-body.pm-body, .folder-body.ai-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; padding: 24px 20px; }
  .pm-body .film .still { height: auto; width: 100%; }
  .pm-body .film { display: block; }
  .reels { grid-template-columns: repeat(2, minmax(0, 1fr)); height: auto; width: 100%; aspect-ratio: auto; }
  .reel-frame { height: auto; aspect-ratio: 9 / 16; }
  .app-shots { height: 300px; }
  .logrow { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .logrow .id { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .status { display: none; }
  .cardbox { padding: 0 10px; margin-top: 40px; }
  .box-back { padding: 52px 14px 0; }
  .pocket { margin: -58px -14px 0; height: 130px; padding: 0 16px; }
  .pocket-label span { font-size: 10px; }
  .box-tab { right: 18px; font-size: 9px; }
  .fields div { grid-template-columns: 72px minmax(0, 1fr); }
  .fields dd { font-size: 14px; }
  .index-card h1 { font-size: 40px; }
  .ic-sub { font-size: 15px; line-height: 20px; }
  .polaroid { margin: 16px 8px 0; }
  .btn-row { flex-direction: column; width: 100%; }
  .btn-row .btn { justify-content: space-between; }
  .reel-rail { width: 32px; } .reel-rail span { width: 12px; height: 18px; }
  .reel-edge { display: none; }
  .reel-gate { width: calc(100% - 96px); }
  .reel-bar { left: 48px; right: 48px; }
  .reel-bar .hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
