/* asmith.photography — journal stylesheet */
:root {
  --ink: #0c0b0a;
  --ink-2: #161412;
  --ink-3: #221f1b;
  --line: rgba(243, 238, 228, .12);
  --paper: #f3eee4;
  --paper-dim: #bdb6a9;
  --muted: #8b8478;
  --safelight: #ff4d1c;
  --film: #f2c14e;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font: 400 17px/1.65 var(--sans); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
::selection { background: var(--safelight); color: var(--ink); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); color: var(--ink); padding: 8px 14px; z-index: 200; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--film); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.serif { font-family: var(--serif); font-weight: 400; }

/* Film grain over everything */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); } 60% { transform: translate(-6%, 1%); } 80% { transform: translate(5%, 4%); }
}

/* Aperture intro */
.iris { position: fixed; inset: 0; z-index: 150; pointer-events: none; display: grid; place-items: center; }
.iris::before {
  content: ""; position: absolute; inset: 0; background: var(--ink);
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent var(--r, 0%), #000 calc(var(--r, 0%) + .5%));
  mask: radial-gradient(circle at 50% 50%, transparent var(--r, 0%), #000 calc(var(--r, 0%) + .5%));
}
.iris span { position: relative; font-family: var(--mono); font-size: 12px; letter-spacing: .3em; color: var(--paper-dim); transition: opacity .3s; }
.iris.open::before { animation: iris 1s var(--ease) forwards; }
.iris.open span { opacity: 0; }
@property --r { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
@keyframes iris { to { --r: 80%; } }
.iris.gone { display: none; }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  transition: background .4s, backdrop-filter .4s, transform .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   become the containing block for the fixed mobile menu and clip it to 68px. */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(12, 11, 10, .72); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); opacity: 0; transition: opacity .4s; pointer-events: none; }
.site-header.solid { border-color: var(--line); }
.site-header.solid::before { opacity: 1; }
.site-header.hide { transform: translateY(-100%); }
.menu-open .site-header { transform: none; border-color: transparent; }
.menu-open .site-header::before { opacity: 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -.01em; font-size: 18px; }
.logo i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--paper); position: relative; display: inline-block; }
.logo i::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--safelight); transition: inset .4s var(--ease); }
.logo:hover i::after { inset: 1px; }
.logo em { font-style: normal; color: var(--muted); font-weight: 400; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { text-decoration: none; font-size: 14px; color: var(--paper-dim); position: relative; padding: 4px 0; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px; background: var(--safelight); transition: right .35s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--paper); }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav .cta { border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; color: var(--paper); }
.nav .cta::after { display: none; }
.nav .cta:hover { background: var(--paper); color: var(--ink); }
.menu-btn { display: none; background: none; border: 0; color: var(--paper); width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.menu-btn span { display: block; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform .3s var(--ease), opacity .3s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
@media (max-width: 900px) {
  .menu-btn { display: block; position: relative; z-index: 2; }
  .logo { position: relative; z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1; height: 100vh; height: 100dvh; background: var(--ink);
    flex-direction: column; justify-content: center; align-items: flex-start; padding: 88px var(--gutter) 40px;
    gap: 6px; overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  .nav a { font-family: var(--serif); font-size: clamp(34px, 9vw, 48px); line-height: 1.15; color: var(--paper); opacity: 0; transform: translateY(14px); transition: opacity .4s var(--ease), transform .4s var(--ease), color .2s; }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { color: var(--film); }
  .menu-open .nav a { opacity: 1; transform: none; }
  .menu-open .nav a:nth-child(2) { transition-delay: .04s; } .menu-open .nav a:nth-child(3) { transition-delay: .08s; }
  .menu-open .nav a:nth-child(4) { transition-delay: .12s; } .menu-open .nav a:nth-child(5) { transition-delay: .16s; }
  .menu-open .nav a:nth-child(6) { transition-delay: .2s; } .menu-open .nav a:nth-child(7) { transition-delay: .24s; }
  .nav .cta { font-family: var(--sans); font-size: 16px; margin-top: 12px; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }
}

/* Hero (home) */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); animation: kenburns 22s var(--ease) infinite alternate; filter: saturate(.85) contrast(1.05); }
@keyframes kenburns { to { transform: scale(1.0) translate(-1.5%, -1%); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12,11,10,.55) 0%, rgba(12,11,10,.1) 40%, rgba(12,11,10,.92) 100%); }
.leak {
  position: absolute; inset: -20%; z-index: -1; mix-blend-mode: screen; opacity: .55; pointer-events: none;
  background: radial-gradient(40% 50% at 85% 20%, rgba(255, 77, 28, .55), transparent 70%), radial-gradient(30% 40% at 10% 90%, rgba(242, 193, 78, .35), transparent 70%);
  animation: leak 14s ease-in-out infinite alternate;
}
@keyframes leak { 0% { transform: translate(0, 0) rotate(0); opacity: .35; } 50% { opacity: .65; } 100% { transform: translate(-6%, 4%) rotate(6deg); opacity: .45; } }
.viewfinder { position: absolute; inset: 88px var(--gutter) 28px; pointer-events: none; z-index: 0; }
.viewfinder b { position: absolute; width: 34px; height: 34px; border-color: rgba(243, 238, 228, .7); border-style: solid; border-width: 0; }
.viewfinder b:nth-child(1) { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.viewfinder b:nth-child(2) { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.viewfinder b:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.viewfinder b:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.viewfinder .focus { position: absolute; left: 50%; top: 42%; width: 64px; height: 44px; transform: translate(-50%, -50%); border: 1px solid rgba(243, 238, 228, .55); transition: left .6s var(--ease), top .6s var(--ease), border-color .3s; }
.viewfinder .focus.locked { border-color: var(--film); }
.hud { position: absolute; top: 10px; left: 50px; right: 50px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: rgba(243, 238, 228, .8); }
.hud .rec::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--safelight); margin-right: 8px; vertical-align: 0; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-copy { padding: 0 var(--gutter) clamp(56px, 9vh, 110px); width: 100%; max-width: var(--max); margin: 0 auto; position: relative; z-index: 1; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 9.4vw, 148px); line-height: .92; letter-spacing: -.02em; margin: 14px 0 22px; max-width: 12ch; }
.hero h1 em { color: var(--film); }
.hero p.lede { max-width: 540px; color: var(--paper-dim); font-size: clamp(16px, 1.4vw, 19px); margin: 0 0 28px; }
.split .ch { display: inline-block; transform: translateY(105%); opacity: 0; transition: transform 1s var(--ease), opacity 1s var(--ease); }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; }
.split.in .ch { transform: none; opacity: 1; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 15px; background: var(--paper); color: var(--ink); border: 1px solid var(--paper); transition: background .25s, color .25s, transform .25s var(--ease); }
.btn:hover { background: var(--safelight); border-color: var(--safelight); transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--paper); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--paper); background: transparent; }
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.scroll-cue { position: absolute; right: var(--gutter); bottom: 40px; writing-mode: vertical-rl; font-family: var(--mono); font-size: 11px; letter-spacing: .3em; color: var(--paper-dim); display: flex; align-items: center; gap: 12px; }
.scroll-cue::after { content: ""; width: 1px; height: 64px; background: linear-gradient(var(--paper), transparent); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 700px) { .scroll-cue, .hud .hide-sm { display: none; } .hud { left: 40px; right: 40px; } }

/* Film strip marquee */
.strip { position: relative; background: #050505; padding: 22px 0; overflow: hidden; border-block: 1px solid var(--line); }
.strip::before, .strip::after { content: ""; position: absolute; left: 0; right: 0; height: 10px; background: repeating-linear-gradient(90deg, transparent 0 14px, rgba(243, 238, 228, .16) 14px 26px); border-radius: 2px; }
.strip::before { top: 6px; } .strip::after { bottom: 6px; }
.strip-track { display: flex; gap: 0; width: max-content; animation: marquee 38s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
.strip a { display: inline-flex; align-items: center; gap: 18px; padding: 8px 28px; text-decoration: none; font-family: var(--serif); font-size: clamp(28px, 4vw, 52px); white-space: nowrap; color: var(--paper-dim); transition: color .2s; }
.strip a:hover { color: var(--paper); }
.strip a::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--safelight); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
section { position: relative; }
.section { padding: clamp(72px, 11vw, 150px) 0; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--film); display: inline-flex; gap: 10px; align-items: center; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 5vw, 64px); flex-wrap: wrap; }
.section-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5.6vw, 84px); line-height: 1; margin: 12px 0 0; letter-spacing: -.015em; max-width: 16ch; }
.section-head p { max-width: 420px; color: var(--paper-dim); margin: 0; }

/* Story cards */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2vw, 28px); }
.card { grid-column: span 4; text-decoration: none; display: flex; flex-direction: column; gap: 14px; position: relative; }
.card.wide { grid-column: span 8; } .card.half { grid-column: span 6; }
.card .frame { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink-3); border-radius: 4px; transform-style: preserve-3d; transition: transform .5s var(--ease); }
.card.wide .frame { aspect-ratio: 16 / 9; }
.card .frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(.85); transform: scale(1.04); transition: filter .7s var(--ease), transform 1.1s var(--ease); }
.card:hover .frame img, .card:focus-visible .frame img { filter: grayscale(0) contrast(1) brightness(1); transform: scale(1.1); }
.card .frame::after { content: attr(data-frame); position: absolute; left: 12px; bottom: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--film); opacity: .9; }
.card .tag { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.3vw, 34px); line-height: 1.08; margin: 0; letter-spacing: -.01em; }
.card.wide h3 { font-size: clamp(30px, 3.4vw, 50px); }
.card p { margin: 0; color: var(--paper-dim); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card h3 span { background: linear-gradient(var(--safelight), var(--safelight)) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.card:hover h3 span { background-size: 100% 1px; }
@media (max-width: 960px) { .card, .card.wide, .card.half { grid-column: span 6; } }
@media (max-width: 620px) { .card, .card.wide, .card.half { grid-column: span 12; } }

/* Develop-on-scroll reveal */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.develop img { filter: brightness(2.4) blur(14px) grayscale(1); transition: filter 1.8s var(--ease); }
.develop.in img { filter: none; }
.card.develop.in .frame img { filter: grayscale(1) contrast(1.1) brightness(.85); }
.card.develop.in:hover .frame img { filter: none; }

/* Categories block */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.cat { position: relative; padding: 34px 28px 30px 0; border-bottom: 1px solid var(--line); text-decoration: none; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.cat:nth-child(3n+2), .cat:nth-child(3n) { padding-left: 28px; border-left: 1px solid var(--line); }
.cat .n { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.cat strong { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 42px); line-height: 1; }
.cat span.c { color: var(--paper-dim); font-size: 14px; }
.cat::before { content: ""; position: absolute; inset: 0; background: var(--safelight); transform: translateY(101%); transition: transform .5s var(--ease); z-index: -1; }
.cat:hover::before { transform: none; }
.cat:hover, .cat:hover .n, .cat:hover span.c { color: var(--ink); }
@media (max-width: 800px) { .cats { grid-template-columns: 1fr; } .cat, .cat:nth-child(3n+2), .cat:nth-child(3n) { padding-left: 0; border-left: 0; } }

/* Exposure lab */
.lab { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.lab-view { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 4px; background: #000; }
.lab-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter .25s; }
.lab-view .noise { position: absolute; inset: 0; mix-blend-mode: overlay; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.lab-view .readout { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.meter { display: flex; gap: 3px; align-items: end; }
.meter i { width: 3px; height: 10px; background: rgba(243,238,228,.35); }
.meter i.on { background: var(--film); height: 14px; }
.meter i.zero { height: 16px; background: var(--paper); }
.lab-controls { display: grid; gap: 26px; }
.lab-controls label { display: grid; gap: 10px; }
.lab-controls .row { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--paper-dim); }
.lab-controls output { color: var(--film); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 2px; background: repeating-linear-gradient(90deg, var(--paper-dim) 0 1px, transparent 1px 12px), var(--line); }
input[type=range]::-moz-range-track { height: 2px; background: var(--line); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); margin-top: -8px; border: 3px solid var(--ink); box-shadow: 0 0 0 1px var(--paper); }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); }
.lab-note { color: var(--paper-dim); font-size: 15px; margin: 0; min-height: 3.2em; }
@media (max-width: 860px) { .lab { grid-template-columns: 1fr; } }

/* Statement */
.statement { font-family: var(--serif); font-size: clamp(32px, 5vw, 76px); line-height: 1.06; letter-spacing: -.015em; max-width: 20ch; margin: 0; }
.statement .dim { color: #4a4640; transition: color .4s; }
.statement .dim.lit { color: var(--paper); }

/* Article */
.a-hero { position: relative; min-height: 88svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.a-hero .hero-media img { transform: scale(1.08); animation: none; will-change: transform; }
.a-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 70% at 15% 85%, rgba(12,11,10,.75), transparent 70%), linear-gradient(180deg, rgba(12,11,10,.65), rgba(12,11,10,.4) 35%, rgba(12,11,10,.97)); }
.a-hero h1, .a-hero .dek, .hero h1 { text-shadow: 0 2px 30px rgba(0,0,0,.45); }
.a-hero .hero-copy { max-width: 1100px; }
.a-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 7vw, 104px); line-height: .96; margin: 14px 0 18px; letter-spacing: -.02em; }
.a-hero .dek { font-size: clamp(17px, 1.6vw, 21px); color: var(--paper-dim); max-width: 680px; margin: 0 0 22px; }
.meta { display: flex; gap: 22px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.crumbs { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--paper-dim); }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--paper); }
.crumbs span { margin: 0 8px; color: var(--muted); }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 6vw, 96px); padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(56px, 8vw, 110px); }
.prose { max-width: 700px; font-size: 18.5px; line-height: 1.75; color: #e6e0d4; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.08; margin: 1.8em 0 .55em; color: var(--paper); letter-spacing: -.01em; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.25em; }
.prose > p:first-of-type::first-letter { font-family: var(--serif); float: left; font-size: 5.2em; line-height: .82; margin: .06em .1em 0 0; color: var(--film); }
.pull { margin: 2em 0; padding: 0 0 0 28px; border-left: 2px solid var(--safelight); font-family: var(--serif); font-size: clamp(28px, 3vw, 40px); line-height: 1.15; color: var(--paper); }
.aside { position: relative; }
.aside-inner { position: sticky; top: 96px; display: grid; gap: 22px; }
.notes { border: 1px solid var(--line); border-radius: 6px; padding: 24px; background: linear-gradient(180deg, var(--ink-2), var(--ink)); }
.notes h2 { margin: 0 0 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--film); font-weight: 500; }
.notes ol { margin: 0; padding: 0; list-style: none; counter-reset: n; display: grid; gap: 12px; }
.notes li { counter-increment: n; display: grid; grid-template-columns: 30px 1fr; font-size: 14.5px; color: var(--paper-dim); line-height: 1.5; }
.notes li::before { content: counter(n, decimal-leading-zero); font-family: var(--mono); font-size: 11px; color: var(--muted); padding-top: 3px; }
.toc { font-size: 14px; display: grid; gap: 8px; }
.toc a { text-decoration: none; color: var(--muted); transition: color .2s, padding .3s var(--ease); border-left: 1px solid var(--line); padding-left: 12px; }
.toc a.on, .toc a:hover { color: var(--paper); border-color: var(--safelight); padding-left: 16px; }
.credit { font-size: 12px; color: var(--muted); margin-top: 2.5em; padding-top: 16px; border-top: 1px solid var(--line); }
.credit a { color: var(--paper-dim); }
@media (max-width: 980px) { .article { grid-template-columns: 1fr; } .aside-inner { position: static; } .toc-box { display: none; } }
.progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 85; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--film), var(--safelight)); }

/* Journal index */
.page-head { padding: clamp(130px, 18vw, 220px) 0 clamp(36px, 5vw, 64px); }
.page-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 11vw, 168px); line-height: .9; margin: 14px 0 22px; letter-spacing: -.03em; }
.page-head p { color: var(--paper-dim); max-width: 620px; font-size: 18px; margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 40px; align-items: center; }
.chip { font: inherit; font-size: 14px; background: transparent; color: var(--paper-dim); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; transition: all .25s var(--ease); }
.chip:hover { color: var(--paper); border-color: var(--paper-dim); }
.chip[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.chip sup { font-family: var(--mono); font-size: 10px; margin-left: 4px; opacity: .6; }
.search { margin-left: auto; position: relative; }
.search input { font: inherit; font-size: 14px; background: var(--ink-2); color: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; width: 240px; }
.search input:focus { outline: none; border-color: var(--film); }
@media (max-width: 700px) { .search { margin-left: 0; width: 100%; } .search input { width: 100%; } }
.card.hidden { display: none; }
.empty { color: var(--muted); display: none; }

/* Prose pages */
.plain { max-width: 760px; padding-bottom: clamp(64px, 9vw, 120px); }
.plain h2 { font-family: var(--serif); font-weight: 400; font-size: 36px; margin: 1.6em 0 .4em; }
.plain p, .plain li { color: #e6e0d4; }
.plain a { color: var(--film); }
.credits-list { list-style: none; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.credits-list li { border-bottom: 1px solid var(--line); padding-bottom: 10px; color: var(--paper-dim); }

/* Contact */
.form { display: grid; gap: 18px; max-width: 640px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-dim); }
.field input, .field textarea, .field select { font: inherit; color: var(--paper); background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 10px 0; transition: border-color .25s; border-radius: 0; }
.field select option { background: var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--film); }
.field textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 18px; border: 1px solid var(--film); border-radius: 6px; color: var(--film); display: none; }
.notice.show { display: block; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: clamp(56px, 8vw, 100px) 0 36px; overflow: hidden; }
.foot-big { font-family: var(--serif); font-size: clamp(64px, 16vw, 260px); line-height: .85; letter-spacing: -.04em; margin: 0 0 48px; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(243, 238, 228, .35); transition: color .6s; }
.foot-big:hover { color: var(--paper); }
.foot-big b { color: var(--safelight); -webkit-text-stroke: 0; font-weight: 400; }
.foot-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot-cols h2 { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 0 0 14px; }
.foot-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-cols a { text-decoration: none; color: var(--paper-dim); font-size: 15px; }
.foot-cols a:hover { color: var(--paper); }
.foot-cols p { color: var(--paper-dim); font-size: 14px; margin: 0; max-width: 380px; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.foot-base a { color: var(--paper-dim); }
@media (max-width: 860px) { .foot-cols { grid-template-columns: 1fr 1fr; } .foot-cols > div:first-child { grid-column: 1 / -1; } }

/* Custom cursor (fine pointers only) */
.cursor { position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1px solid rgba(243, 238, 228, .7); border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--ink); transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s, border-color .3s; opacity: 0; }
.cursor.on { opacity: 1; }
.cursor.big { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--paper); border-color: var(--paper); }
.cursor span { opacity: 0; transition: opacity .2s; }
.cursor.big span { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* 404 */
.lost { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter) 60px; }
.lost h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(90px, 22vw, 300px); line-height: .8; margin: 0; color: transparent; -webkit-text-stroke: 1px var(--paper-dim); }
.lost p { color: var(--paper-dim); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .split .ch { opacity: 1; transform: none; }
  .develop img { filter: none; }
  .iris { display: none; }
  .hero-media img { transform: none; }
}
