@import url('../fonts/fonts.css');

/* ── Palette A · Electric Blue ─────────────────────────────── */
:root {
  --abyss: #1B2632;
  --blue: #2C3B4D;
  --truffle: #A45139;
  --flame: #FBB063;
  --oat: #C9C1B1;
  --pall: #EEE8DE;

  /* Palladian paper seen under the red safelight */
  --paper-lit: #E3BFA8;
  --paper-lit-2: #CFA48C;

  --f-display: 'Instrument Serif', 'Times New Roman', serif; /* stand-in for Elgarin */
  --f-body: 'Montserrat', system-ui, sans-serif;
  --f-hand: 'Reenie Beanie', 'Bradley Hand', cursive;

  --gutter: clamp(16px, 4vw, 56px);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lock { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--abyss);
  background: var(--pall);
  -webkit-font-smoothing: antialiased;
}
body.is-room { background: var(--abyss); color: var(--paper-lit); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--flame); outline-offset: 4px; }
.is-paper :focus-visible { outline-color: var(--truffle); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--pall); color: var(--abyss); padding: 8px 14px; text-decoration: none; font-size: 14px; }
.skip-link:focus { top: 12px; }

/* ── Film grain over everything ───────────────────────────── */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .16;
  animation: grain 1.1s steps(5) infinite;
}
.is-paper .grain { opacity: .11; }
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ── Logo lockup (stand-in until real logo files) ─────────── */
.logo { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; }
.logo-name { font-family: var(--f-display); font-size: 30px; letter-spacing: -.01em; }
.logo-sub { display: flex; align-items: center; gap: 8px; font-size: 9px; letter-spacing: .42em; font-weight: 500; margin-top: 3px; padding-left: .42em; }
.logo-sub::before, .logo-sub::after { content: ''; width: 22px; height: 1px; background: currentColor; opacity: .7; }

/* ── Site header ──────────────────────────────────────────── */
.site-head {
  position: absolute; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--gutter);
}
.is-paper .site-head { position: relative; color: var(--blue); }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.nav a {
  text-decoration: none; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  position: relative; padding: 6px 0;
}
.nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor; transition: right .35s var(--ease-out); }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.sound {
  display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid currentColor; border-radius: 99px;
  padding: 5px 12px 5px 9px; cursor: pointer; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; opacity: .85;
}
.sound:hover { opacity: 1; }
.sound svg { width: 16px; height: 16px; }
.sound .wave { opacity: 0; transition: opacity .2s; }
.sound[aria-pressed="true"] .wave { opacity: 1; }
.sound[aria-pressed="true"] .mute { opacity: 0; }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; padding: 8px 0; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: 0; z-index: 60; flex-direction: column; justify-content: center; gap: 26px; background: var(--abyss); color: var(--pall);
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
  .nav a { font-family: var(--f-display); font-size: 44px; letter-spacing: 0; text-transform: none; font-weight: 400; }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav .sound { margin-top: 12px; }
  .nav-close { position: absolute; top: 22px; right: var(--gutter); }
}
@media (min-width: 861px) { .nav-close { display: none; } }

/* ── Draft tag ────────────────────────────────────────────── */
.draft-tag {
  position: fixed; left: 14px; bottom: 14px; z-index: 80; max-width: 250px;
  font-family: var(--f-hand); font-size: 20px; line-height: 1.1;
  background: var(--flame); color: var(--abyss); padding: 8px 12px 9px; transform: rotate(-2deg);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.draft-tag small { display: block; font-family: var(--f-body); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; margin-top: 3px; font-weight: 500; }
.draft-tag button { position: absolute; top: 2px; right: 6px; background: none; border: 0; cursor: pointer; font-size: 14px; line-height: 1; padding: 2px; }

/* ════════════════════════════════════════════════════════════
   THE DARKROOM
   ════════════════════════════════════════════════════════════ */
.room { position: relative; min-height: 100vh; overflow: hidden; isolation: isolate; }

/* the safelight glow follows you as you scroll the room */
.glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70vmax 60vmax at 50% -6%, rgba(164,81,57,.62), rgba(164,81,57,.22) 42%, transparent 72%),
    radial-gradient(40vmax 30vmax at 50% -2%, rgba(251,176,99,.22), transparent 60%),
    radial-gradient(140vmax 100vmax at 50% 40%, transparent 50%, rgba(8,12,18,.65) 100%),
    var(--abyss);
}
.glow::after { /* the walls: faint vertical boards */
  content: ''; position: absolute; inset: 0; opacity: .07;
  background: repeating-linear-gradient(90deg, transparent 0 180px, rgba(0,0,0,.9) 180px 182px);
}
.dark { position: fixed; inset: 0; z-index: 30; background: #06090d; pointer-events: none; opacity: 0; }

/* the lamp: enamel shade, brass holder, red safelight bulb */
.lamp { position: absolute; top: 0; left: 50%; width: 150px; margin-left: -75px; z-index: 2; pointer-events: none; transform-origin: 50% 0; animation: lamp-sway 8s ease-in-out infinite; }
.lamp svg { position: relative; display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 14px 18px rgba(0,0,0,.5)); }
.lamp-cone {
  position: absolute; top: 205px; left: 50%; width: 1100px; height: 80vh; transform: translateX(-50%);
  background: radial-gradient(ellipse 48% 100% at 50% 0, rgba(251,176,99,.13), rgba(164,81,57,.06) 45%, transparent 75%);
  clip-path: polygon(46.5% 0, 53.5% 0, 100% 100%, 0 100%); filter: blur(22px); mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
}
@keyframes lamp-sway { 0%, 100% { transform: rotate(-.7deg); } 50% { transform: rotate(.7deg); } }
@media (prefers-reduced-motion: reduce) { .lamp { animation: none; } }

/* room header */
.room-head {
  position: relative; z-index: 3; padding: clamp(96px, 13vh, 150px) var(--gutter) 0; max-width: 1500px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); column-gap: 40px; align-items: end;
}
.room-head-text { padding-bottom: 8px; }
@media (max-width: 860px) { .room-head { grid-template-columns: 1fr; } }
.room-head h1 {
  font-family: var(--f-display); font-weight: 400; margin: 0;
  font-size: clamp(64px, 10.5vw, 168px); line-height: .82; letter-spacing: -.02em;
  color: var(--paper-lit);
  text-shadow: 0 0 60px rgba(164,81,57,.35);
}
.room-head h1 em { font-style: italic; color: var(--flame); opacity: .92; }
.room-head .disciplines { font-family: var(--f-hand); font-size: clamp(24px, 2.6vw, 34px); color: var(--flame); margin: 14px 0 0 clamp(4px, 1vw, 16px); transform: rotate(-1.5deg); display: inline-block; }
.room-head .hello { max-width: 46ch; font-size: 15px; line-height: 1.75; color: var(--paper-lit); opacity: .85; margin: 26px 0 0; }
.room-head .hello a { color: var(--flame); text-underline-offset: 3px; }
.pick-one { position: absolute; left: calc(var(--gutter) + 40%); bottom: -46px; font-family: var(--f-hand); font-size: 32px; color: var(--flame); transform: rotate(-6deg); display: flex; align-items: flex-end; gap: 6px; }
.pick-one svg { width: 54px; height: 60px; }

/* ── The lines ────────────────────────────────────────────── */
.lines { position: relative; z-index: 3; padding-bottom: 120px; }
.line { position: relative; height: clamp(500px, 74vh, 660px); max-width: 1500px; margin: 0 auto; }
.line + .line { margin-top: -20px; }
.string { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.string path { fill: none; stroke: #c7b6a4; stroke-opacity: .55; stroke-width: 1.2; }
.string .nail { fill: #7d6d60; }

/* the discipline tag (manila tag clipped to the string) */
.tag {
  position: absolute; z-index: 4; transform-origin: 50% 0;
  display: flex; flex-direction: column; align-items: center;
}
.tag-loop { width: 1px; height: 26px; background: #c7b6a4; opacity: .7; }
.tag-card {
  position: relative; padding: 18px 16px 12px; min-width: 120px; text-align: center;
  background: linear-gradient(180deg, #d6ad8e, #c79a7b); color: #26170f;
  clip-path: polygon(18% 0, 82% 0, 100% 14%, 100% 100%, 0 100%, 0 14%);
  box-shadow: 0 10px 20px rgba(0,0,0,.4);
}
.tag-card::before { content: ''; position: absolute; top: 6px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #1B2632; box-shadow: inset 0 0 0 2px #e9c9b3; }
.tag-card h2 { margin: 0; font-family: var(--f-body); font-weight: 600; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; }
.tag-card span { display: block; font-family: var(--f-hand); font-size: 21px; line-height: 1; margin-top: 4px; }

/* a hung print */
.hang { position: absolute; z-index: 5; width: var(--w, 260px); transform-origin: 50% 0; }
.hang.is-pending { visibility: hidden; }
.swing { transform-origin: 50% 0; }
.peg {
  position: absolute; z-index: 3; top: -36px; left: 50%; width: 15px; height: 52px; margin-left: -7.5px;
  background: url(../img/peg.svg) center / contain no-repeat;
  filter: drop-shadow(2px 5px 3px rgba(0,0,0,.5));
}
.room .peg { filter: drop-shadow(2px 5px 3px rgba(0,0,0,.55)) brightness(.92) saturate(1.1); }

.print {
  position: relative; display: block; text-decoration: none; cursor: pointer;
  background: var(--paper-lit); padding: 10px;
  box-shadow: 0 22px 34px -10px rgba(0,0,0,.65), 0 2px 4px rgba(0,0,0,.35);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.print-img { position: relative; display: block; overflow: hidden; aspect-ratio: var(--ratio, 4/5); background: #3a1d16; }
.print-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3) contrast(1.06) brightness(.96); transition: filter .6s; }
.print-img .wash { position: absolute; inset: 0; background: #b8452c; mix-blend-mode: color; opacity: .42; transition: opacity .6s; }
.print-img::after { /* paper sheen */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,220,190,.16), transparent 38%, transparent 70%, rgba(0,0,0,.18));
}
.print:hover, .print:focus-visible { transform: translateY(-6px) scale(1.035); box-shadow: 0 34px 50px -12px rgba(0,0,0,.75), 0 2px 4px rgba(0,0,0,.35); }
.print:hover .wash, .print:focus-visible .wash { opacity: .1; }
.print:hover img, .print:focus-visible img { filter: grayscale(.1) contrast(1.03) brightness(1); }

/* papers */
.paper-border { padding: 12px; }
.paper-polaroid { padding: 11px 11px 50px; background: linear-gradient(180deg, #e8c7b2, #dcb59d); }
.paper-polaroid .print-cap { position: absolute; left: 14px; right: 14px; bottom: 10px; font-family: var(--f-hand); font-size: 24px; line-height: 1; color: #3b2219; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.paper-full { padding: 0; }
.paper-deckle { padding: 16px; clip-path: var(--deckle); }

/* grease-pencil note under each print */
.note {
  display: block; margin-top: 16px; text-align: center; pointer-events: none;
  font-family: var(--f-hand); font-size: 25px; line-height: 1.05; color: var(--flame);
  opacity: .0; transform: translateY(-6px) rotate(-1.5deg); transition: opacity .4s, transform .4s var(--ease-out);
}
.note b { display: block; font-weight: 400; color: var(--paper-lit); font-size: 30px; }
.note i { font-style: normal; display: block; font-family: var(--f-body); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--paper-lit); opacity: .7; margin-top: 6px; }
.hang:hover .note, .hang:focus-within .note, .is-touch .note { opacity: 1; transform: none; }

/* the exposure test strip (decoration) */
.strip { position: absolute; z-index: 4; width: 64px; transform-origin: 50% 0; pointer-events: none; }
.strip .peg { top: -30px; width: 12px; height: 42px; margin-left: -6px; }
.strip-paper { background: var(--paper-lit); padding: 6px; box-shadow: 0 16px 24px -8px rgba(0,0,0,.6); }
.strip-img { position: relative; height: 250px; overflow: hidden; }
.strip-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.2); }
.strip-img .wash { position: absolute; inset: 0; background: #b8452c; mix-blend-mode: color; opacity: .9; }
.strip-img .bands { position: absolute; inset: 0; display: flex; flex-direction: column; }
.strip-img .bands span { flex: 1; border-top: 1px solid rgba(0,0,0,.4); font-family: var(--f-hand); font-size: 15px; color: #f3d2bd; padding: 2px 4px; line-height: 1; }

/* ── Intro sequence ───────────────────────────────────────── */
.intro { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.intro[hidden] { display: none; }
.camera { position: absolute; left: 67%; top: 12vh; width: min(300px, 62vw); margin-left: calc(min(300px, 62vw) / -2); z-index: 2; filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)); }
.camera svg { width: 100%; height: auto; overflow: visible; display: block; }
.camera .c-line { fill: none; stroke: var(--paper-lit); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.camera .c-body { fill: #1f2a37; stroke: var(--paper-lit); stroke-width: 1.6; }
.camera .c-glass { fill: #0b1016; }
.camera .c-btn { fill: var(--flame); }
.camera .c-hl { fill: none; stroke: var(--flame); stroke-width: 2; stroke-linecap: round; opacity: .7; }
.slot { position: absolute; left: 50%; overflow: hidden; z-index: 1; }
.flash { position: fixed; inset: 0; z-index: 3; background: #fff7ec; opacity: 0; pointer-events: none; }
.flying { position: fixed; z-index: 4; pointer-events: none; transform-origin: 50% 0; will-change: transform; }
.flying .print-img img { filter: grayscale(calc(1 - .7 * var(--dev, 1))) contrast(calc(.45 + .67 * var(--dev, 1))) brightness(calc(2.3 - 1.38 * var(--dev, 1))); opacity: calc(.2 + .8 * var(--dev, 1)); }
.flying .print-img { background: var(--paper-lit); }
.flying .print-img .wash { opacity: calc(.42 * var(--dev, 1)); }
.skip {
  position: fixed; right: var(--gutter); bottom: 22px; z-index: 55;
  background: none; border: 1px solid rgba(227,191,168,.6); color: var(--paper-lit); border-radius: 99px; cursor: pointer;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; padding: 9px 16px; font-weight: 500;
}
.skip[hidden] { display: none; }

/* ════════════════════════════════════════════════════════════
   THE STORY (a print carried into daylight)
   ════════════════════════════════════════════════════════════ */
.daylight { position: fixed; inset: 0; z-index: 60; background: var(--pall); opacity: 0; visibility: hidden; pointer-events: none; }
.story {
  position: fixed; inset: 0; z-index: 70; overflow-y: auto; overscroll-behavior: contain;
  background: var(--pall); color: var(--abyss);
  opacity: 0; visibility: hidden;
}
.story.is-open { visibility: visible; }
.story-bar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px var(--gutter); background: rgba(238,232,222,.92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(44,59,77,.12); color: var(--blue);
}
.back { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; padding: 6px 0; text-decoration: none; }
.back svg { width: 22px; height: 12px; transition: transform .3s var(--ease-out); }
.back:hover svg { transform: translateX(-4px); }
.story-bar .count { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }
.story-bar .logo-name { font-size: 24px; }
@media (max-width: 640px) { .story-bar .logo { display: none; } }

.story-head { max-width: 1320px; margin: 0 auto; padding: clamp(40px, 7vw, 90px) var(--gutter) 0; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.story-kicker { font-family: var(--f-hand); font-size: 28px; color: var(--truffle); margin: 0 0 6px; transform: rotate(-2deg); display: inline-block; }
.story-head h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(56px, 8.4vw, 136px); line-height: .88; letter-spacing: -.02em; margin: 0; color: var(--abyss); }
.story-lede { font-family: var(--f-display); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; margin: 28px 0 0; max-width: 30ch; color: var(--blue); }
.log { margin: 34px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0; border-top: 1px solid rgba(27,38,50,.25); }
.log div { padding: 12px 14px 12px 0; border-bottom: 1px solid rgba(27,38,50,.25); }
.log dt { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--truffle); }
.log dd { margin: 4px 0 0; font-size: 14px; line-height: 1.4; }
.story-hero { position: relative; }
.story-hero .frame { background: #fff; padding: clamp(10px, 1.2vw, 16px); box-shadow: 0 30px 50px -24px rgba(27,38,50,.45); transform: rotate(1.2deg); }
.story-hero img { width: 100%; aspect-ratio: var(--ratio); object-fit: cover; }
.story-hero .pegged { position: absolute; top: -32px; left: 50%; margin-left: -7.5px; }
.story-hero .pegged .peg { position: static; display: block; margin: 0; }

.story-body { max-width: 1320px; margin: 0 auto; padding: clamp(60px, 8vw, 120px) var(--gutter) 60px; }
.b-text { max-width: 640px; margin: 0 0 clamp(50px, 7vw, 90px) clamp(0px, 14vw, 220px); }
.b-text h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(32px, 3.4vw, 46px); line-height: 1; margin: 0 0 18px; }
.b-text p { margin: 0 0 1.1em; font-size: 17px; line-height: 1.8; }
.b-text p:first-of-type::first-letter { font-family: var(--f-display); float: left; font-size: 78px; line-height: .78; padding: 6px 10px 0 0; color: var(--truffle); }
.b-full { margin: 0 calc(var(--gutter) * -1) clamp(50px, 7vw, 90px); }
.b-full img { width: 100%; max-height: 88vh; object-fit: cover; }
.b-full.is-plain { margin-left: 0; margin-right: 0; }
.b-full.is-plain img { max-height: none; object-fit: contain; box-shadow: 0 20px 40px -24px rgba(27,38,50,.4); }
figcaption { font-family: var(--f-hand); font-size: 24px; line-height: 1.1; color: var(--truffle); margin: 12px var(--gutter) 0; max-width: 46ch; }
.b-full.is-plain figcaption, .b-pair figcaption { margin-left: 0; }
.b-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 44px); margin: 0 0 clamp(50px, 7vw, 90px); align-items: start; }
.b-pair > div:nth-child(2) { margin-top: clamp(40px, 9vw, 140px); }
.b-pair img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.b-pair img.is-plain { aspect-ratio: auto; box-shadow: 0 20px 40px -24px rgba(27,38,50,.4); }
.b-pair figcaption { grid-column: 1 / -1; }
.b-small { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 560px); gap: clamp(28px, 5vw, 80px); align-items: center; justify-content: center; margin: 0 0 clamp(50px, 7vw, 90px); }
.b-small.is-left { grid-template-columns: minmax(0, 560px) minmax(0, 340px); }
.b-small.is-left .b-small-img { order: 2; }
.b-small-img { position: relative; background: #fff; padding: 12px 12px 46px; box-shadow: 0 20px 40px -20px rgba(27,38,50,.45); transform: rotate(-2.2deg); }
.b-small.is-left .b-small-img { transform: rotate(2deg); }
.b-small-img img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.b-small-img span { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-family: var(--f-hand); font-size: 24px; color: var(--truffle); line-height: 1; }
.b-small p { font-size: 17px; line-height: 1.8; margin: 0; }
.b-quote { margin: 0 auto clamp(50px, 7vw, 90px); max-width: 940px; text-align: center; }
.b-quote p { font-family: var(--f-display); font-style: italic; font-size: clamp(34px, 4.4vw, 64px); line-height: 1.08; margin: 0; color: var(--blue); }
.b-quote p::before { content: '“'; display: block; font-size: 1.6em; line-height: .6; color: var(--truffle); font-style: normal; }
.b-quote cite { display: block; margin-top: 18px; font-style: normal; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; }
.b-results { background: var(--abyss); color: var(--pall); margin: 0 calc(var(--gutter) * -1) clamp(50px, 7vw, 90px); padding: clamp(36px, 5vw, 64px) var(--gutter); position: relative; }
.b-results h2 { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; font-weight: 600; color: var(--flame); margin: 0 0 24px; }
.b-results ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.b-results li { padding: 6px 24px 6px 0; border-left: 1px solid rgba(238,232,222,.18); padding-left: 24px; }
.b-results li:first-child { border-left: 0; padding-left: 0; }
.b-results .num { display: block; font-family: var(--f-display); font-size: clamp(54px, 6.4vw, 96px); line-height: .95; color: var(--pall); }
.b-results .lbl { display: block; font-size: 14px; line-height: 1.5; color: var(--oat); max-width: 24ch; margin-top: 8px; }
.b-results .frame-no { position: absolute; right: var(--gutter); top: 18px; font-family: var(--f-hand); font-size: 22px; color: var(--flame); opacity: .8; }
.b-postcard { max-width: 560px; margin: 0 auto clamp(50px, 7vw, 90px); background: #fbf8f2; padding: 30px 34px 34px; box-shadow: 0 20px 40px -20px rgba(27,38,50,.35); transform: rotate(-1.4deg); position: relative;
  background-image: repeating-linear-gradient(transparent 0 37px, rgba(44,59,77,.16) 37px 38px); background-position: 0 30px; }
.b-postcard:nth-of-type(even) { transform: rotate(1.2deg); }
.b-postcard .stamp { position: absolute; top: 18px; right: 22px; width: 60px; height: 72px; border: 2px dashed var(--truffle); display: grid; place-items: center; font-family: var(--f-body); font-size: 9px; letter-spacing: .2em; color: var(--truffle); text-transform: uppercase; font-weight: 600; transform: rotate(4deg); }
.b-postcard .date { font-family: var(--f-body); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--truffle); }
.b-postcard p { font-family: var(--f-hand); font-size: 30px; line-height: 38px; margin: 8px 70px 0 0; color: var(--blue); }

.next-print { border-top: 1px solid rgba(27,38,50,.2); max-width: 1320px; margin: 0 auto; padding: 50px var(--gutter) 90px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.next-link { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); text-decoration: none; }
.next-link .thumb { width: clamp(90px, 12vw, 150px); background: #fff; padding: 8px; transform: rotate(-3deg); box-shadow: 0 16px 30px -16px rgba(27,38,50,.5); transition: transform .4s var(--ease-out); }
.next-link:hover .thumb { transform: rotate(0) scale(1.05); }
.next-link .thumb img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.next-link small { display: block; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--truffle); }
.next-link strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(36px, 5vw, 72px); line-height: 1; }
.btn-line { display: inline-flex; align-items: center; gap: 10px; border: 1px solid currentColor; border-radius: 99px; padding: 12px 22px; text-decoration: none; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; background: none; cursor: pointer; transition: background .3s, color .3s; }
.btn-line:hover { background: var(--abyss); color: var(--pall); border-color: var(--abyss); }

@media (max-width: 820px) {
  .story-head { grid-template-columns: 1fr; }
  .story-hero { order: -1; max-width: 520px; }
  .b-text { margin-left: 0; }
  .b-pair { grid-template-columns: 1fr; }
  .b-pair > div:nth-child(2) { margin-top: 0; width: 82%; margin-left: auto; }
  .b-small, .b-small.is-left { grid-template-columns: 1fr; }
  .b-small-img { max-width: 300px; }
  .b-small.is-left .b-small-img { order: 0; margin-left: auto; }
  .b-results ol { grid-template-columns: 1fr; }
  .b-results li { border-left: 0; padding-left: 0; padding-bottom: 22px; }
  .b-postcard p { margin-right: 0; margin-top: 70px; }
}

/* ════════════════════════════════════════════════════════════
   DAYLIGHT PAGES (About, CV, Work with me, Contact)
   ════════════════════════════════════════════════════════════ */
.page { max-width: 1320px; margin: 0 auto; padding: clamp(40px, 7vw, 90px) var(--gutter) 100px; }
.eyebrow { font-family: var(--f-hand); font-size: 30px; color: var(--truffle); margin: 0; transform: rotate(-2deg); display: inline-block; }
.page-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(60px, 10vw, 160px); line-height: .86; letter-spacing: -.02em; margin: 4px 0 0; }
.page-title em { color: var(--truffle); }
.lead { font-family: var(--f-display); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.28; max-width: 30ch; color: var(--blue); margin: 26px 0 0; }
.prose p { font-size: 17px; line-height: 1.8; margin: 0 0 1.1em; max-width: 60ch; }
.site-foot { border-top: 1px solid rgba(27,38,50,.18); padding: 34px var(--gutter) 90px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; font-size: 13px; color: var(--blue); }
.site-foot a { text-decoration: none; }
.site-foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.is-room .site-foot { border-color: rgba(227,191,168,.2); color: var(--paper-lit); position: relative; z-index: 3; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 7vw, 120px); align-items: start; margin-top: clamp(40px, 6vw, 80px); }
.tray { position: sticky; top: 30px; }
.tray-paper { background: #fff; padding: 16px 16px 60px; box-shadow: 0 30px 50px -24px rgba(27,38,50,.45); transform: rotate(-1.5deg); position: relative; }
.tray-paper img { width: 100%; aspect-ratio: 10/13; object-fit: cover; filter: grayscale(1) contrast(calc(.3 + .8 * var(--dev, 0))) brightness(calc(2.6 - 1.6 * var(--dev, 0))); opacity: calc(.12 + .88 * var(--dev, 0)); }
.tray-paper span { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; font-family: var(--f-hand); font-size: 26px; color: var(--truffle); }
.tray small { display: block; margin-top: 18px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); opacity: .7; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 40px 0; padding: 30px 0; border-top: 1px solid rgba(27,38,50,.2); border-bottom: 1px solid rgba(27,38,50,.2); }
.three h3 { font-family: var(--f-display); font-weight: 400; font-size: 30px; margin: 0 0 6px; }
.three p { margin: 0; font-size: 14px; line-height: 1.6; }
.prose .signoff, .signoff { font-family: var(--f-hand); font-size: 46px; color: var(--blue); margin: 10px 0 0; transform: rotate(-3deg); display: inline-block; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } .tray { position: relative; top: 0; max-width: 380px; } .three { grid-template-columns: 1fr; } }

/* CV: the contact sheet */
.cv-top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 30px; }
.sheet { margin-top: clamp(40px, 6vw, 80px); background: #12191f; color: var(--pall); padding: clamp(18px, 3vw, 36px); position: relative; box-shadow: 0 40px 60px -30px rgba(27,38,50,.6); }
.sheet::before { content: 'KH 400 · CONTACT SHEET · ' attr(data-label); display: block; font-size: 10px; letter-spacing: .3em; color: var(--flame); margin-bottom: 16px; font-weight: 500; }
.strip-row { position: relative; background: #1d140f; padding: 26px 0; margin-bottom: 18px; }
.strip-row::before, .strip-row::after { content: ''; position: absolute; left: 0; right: 0; height: 10px; background: linear-gradient(90deg, rgba(233,226,214,.55) 0 9px, transparent 9px) 6px 0 / 22px 10px repeat-x; border-radius: 2px; }
.strip-row::before { top: 7px; } .strip-row::after { bottom: 7px; }
.strip-row ol { list-style: none; margin: 0; padding: 0 18px; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 14px; }
.frame { position: relative; background: #e9e2d6; color: var(--abyss); padding: 22px 22px 26px; min-height: 230px; }
.frame .no { position: absolute; top: -21px; left: 2px; font-size: 10px; letter-spacing: .18em; color: var(--flame); font-weight: 600; }
.frame .when { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--truffle); font-weight: 600; }
.frame h3 { font-family: var(--f-display); font-weight: 400; font-size: 30px; line-height: 1; margin: 8px 0 2px; }
.frame .where { font-size: 13px; margin: 0 0 12px; color: var(--blue); font-weight: 500; }
.frame ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.55; }
.frame.is-pick::after { /* grease-pencil circle */
  content: ''; position: absolute; inset: -12px -10px; border: 3px solid var(--flame); border-radius: 48% 52% 46% 54% / 55% 45% 55% 45%; transform: rotate(-2deg); pointer-events: none; opacity: .9;
}
.frame .mark { position: absolute; right: 14px; bottom: 6px; font-family: var(--f-hand); font-size: 26px; color: var(--truffle); transform: rotate(-6deg); }
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 60px); margin-top: clamp(50px, 7vw, 90px); }
.skills h2 { font-family: var(--f-display); font-weight: 400; font-size: 36px; margin: 0 0 12px; }
.skills ul { list-style: none; margin: 0; padding: 0; }
.skills li { padding: 9px 0; border-bottom: 1px solid rgba(27,38,50,.15); font-size: 15px; }
@media (max-width: 900px) { .strip-row ol { grid-template-columns: 1fr; } .frame .no { position: static; display: block; margin-bottom: 6px; } .skills { grid-template-columns: 1fr; } }

/* Work with me: notebook pages */
.pages { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); margin-top: clamp(50px, 7vw, 90px); align-items: start; }
.nb { position: relative; background: #fbf8f2; padding: 46px 30px 34px 54px; box-shadow: 0 24px 44px -24px rgba(27,38,50,.45);
  background-image: linear-gradient(90deg, transparent 38px, rgba(164,81,57,.45) 38px 39px, transparent 39px), repeating-linear-gradient(transparent 0 31px, rgba(44,59,77,.14) 31px 32px);
  background-position: 0 0, 0 40px; }
.nb:nth-child(1) { transform: rotate(-1.6deg); }
.nb:nth-child(2) { transform: rotate(1deg); margin-top: 40px; }
.nb:nth-child(3) { transform: rotate(-.6deg); margin-top: 10px; }
.nb .tape { position: absolute; top: -14px; left: 50%; width: 110px; height: 30px; margin-left: -55px; background: rgba(201,193,177,.75); transform: rotate(-3deg); }
.nb h2 { font-family: var(--f-display); font-weight: 400; font-size: 44px; line-height: 1; margin: 0; }
.nb .for { font-family: var(--f-hand); font-size: 26px; color: var(--truffle); margin: 2px 0 14px; line-height: 1; }
.nb ul { margin: 0; padding: 0; list-style: none; }
.nb li { font-size: 15px; line-height: 32px; }
.nb li::before { content: '— '; color: var(--truffle); }
.nb .from { margin-top: 18px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--blue); }
.cta-band { margin-top: clamp(60px, 9vw, 120px); background: var(--abyss); color: var(--pall); padding: clamp(40px, 6vw, 80px) var(--gutter); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 30px; }
.cta-band p { font-family: var(--f-display); font-size: clamp(34px, 4.4vw, 64px); line-height: 1; margin: 0; max-width: 18ch; }
.cta-band .btn-line { color: var(--pall); }
.cta-band .btn-line:hover { background: var(--pall); color: var(--abyss); }
@media (max-width: 900px) { .pages { grid-template-columns: 1fr; } .nb:nth-child(n) { margin-top: 0; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 7vw, 120px); margin-top: clamp(40px, 6vw, 80px); align-items: start; }
.direct dt { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--truffle); margin-top: 22px; }
.direct dd { margin: 4px 0 0; font-family: var(--f-display); font-size: 30px; }
.direct dd a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease-out); }
.direct dd a:hover { background-size: 100% 1px; }
.letter { background: #fbf8f2; padding: clamp(28px, 4vw, 50px); box-shadow: 0 30px 50px -28px rgba(27,38,50,.5); transform: rotate(.6deg); }
.field { margin-bottom: 26px; }
.field label { display: block; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--blue); }
.field input, .field textarea, .field select {
  width: 100%; border: 0; border-bottom: 1px solid rgba(27,38,50,.35); background: transparent; padding: 10px 0; font-family: var(--f-hand); font-size: 28px; color: var(--abyss); border-radius: 0;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 38px; background-image: repeating-linear-gradient(transparent 0 37px, rgba(27,38,50,.2) 37px 38px); border-bottom: 0; padding-top: 0; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--truffle); }
.field select { font-family: var(--f-body); font-size: 16px; appearance: none; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.chips label { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 14px; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-block; border: 1px solid rgba(27,38,50,.35); border-radius: 99px; padding: 7px 14px; cursor: pointer; transition: all .2s; }
.chips input:checked + span { background: var(--abyss); color: var(--pall); border-color: var(--abyss); }
.chips input:focus-visible + span { outline: 2px solid var(--truffle); outline-offset: 2px; }
.sent { font-family: var(--f-hand); font-size: 30px; color: var(--truffle); margin: 16px 0 0; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* ── Mobile room ──────────────────────────────────────────── */
@media (max-width: 720px) {
  .lamp { left: auto; right: 4%; margin-left: 0; width: 104px; }
  .lamp-cone { top: 142px; width: 700px; }
  .line { height: auto; }
  .note { font-size: 22px; }
  .pick-one { position: static; margin-top: 30px; }
}

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-head, .grain, .draft-tag, .site-foot, .cv-actions { display: none !important; }
  body { background: #fff; }
  .sheet { box-shadow: none; }
}
@media (max-width: 860px) { .camera { left: 50%; top: 30vh; } }
.btn-line svg { width: 22px; height: 12px; flex: none; }
.btn-line { white-space: nowrap; }
.story-hero .pegged { z-index: 2; }
.cv-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-solid { display: inline-flex; align-items: center; gap: 10px; background: var(--abyss); color: var(--pall); border: 1px solid var(--abyss); border-radius: 99px; padding: 12px 22px; text-decoration: none; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; cursor: pointer; transition: background .3s, color .3s; }
.btn-solid:hover { background: var(--truffle); border-color: var(--truffle); }
@media (max-width: 720px) {
  .skip { bottom: auto; top: 70px; }
  .draft-tag { font-size: 17px; max-width: 200px; }
}
@media (max-width: 640px) { .story-bar .count { display: none; } }
@media (min-width: 721px) and (max-width: 860px) { .lamp { left: auto; right: 12%; margin-left: 0; } }

/* ── Things on the walls (decoration, kept in the shadows) ── */
.decor { position: absolute; z-index: 1; pointer-events: none; opacity: .3; filter: blur(.6px) saturate(.6) brightness(.8) drop-shadow(0 12px 16px rgba(0,0,0,.4)); }
.decor svg { display: block; width: 100%; height: auto; }
.decor-diploma { width: 160px; right: 4.5%; top: 170px; transform: rotate(-1.4deg); opacity: .2; }
.decor-timer { width: 136px; left: 3%; top: 220px; transform: rotate(2deg); }
@media (max-width: 999px) { .decor { display: none; } }
.bench { position: relative; z-index: 1; max-width: 1180px; margin: -60px auto 0; padding: 0 var(--gutter); opacity: .38; filter: blur(.5px) saturate(.6) brightness(.85); }
.bench svg { display: block; width: 100%; height: auto; }
