/* ==========================================================================
   Ancient Resin — one-page preview ("Preview night")
   Same system as the concept site: tokens map 1:1 to
   Prospects/Ancient Resin/_context/Visual Brand Guidelines.md
   ========================================================================== */

:root {
  /* Grounds */
  --night: #150F0A;      /* inside of an unlit stone — primary ground */
  --night-2: #1F1711;
  --day: #F6EEDF;        /* their cream, tightened */
  --paper: #EFE4CF;      /* the label card */

  /* Ink */
  --ink: #2A1D12;
  --ink-2: #5A4636;
  --ink-3: #6E5A47;
  --bone: #F3E8D5;
  --bone-2: #BFAE95;
  --bone-3: #958671;

  /* The one accent: actions, the wait bar, the email drop. Never paragraph text. */
  --amber: #F0A325;
  --amber-deep: #C27A12;

  --rule-d: rgba(243, 232, 213, .14);
  --rule-l: rgba(42, 29, 18, .16);

  --f-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --f-sans: "Switzer", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(20px, 3.4vw, 44px);
  --maxw: 1440px;
  --nav-h: 72px;

  --ease-brand: cubic-bezier(.625, .05, 0, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --t-display: clamp(3.1rem, 0.9rem + 6.6vw, 9.25rem);
  --t-h2: clamp(2.4rem, 1rem + 4.1vw, 5.75rem);
  --t-h3: clamp(1.5rem, 1.1rem + 1.1vw, 2.25rem);
  --t-lead: clamp(1.15rem, 1rem + .55vw, 1.5rem);
  --t-body: clamp(1rem, .95rem + .22vw, 1.125rem);
  --t-mono: .78rem;
}

/* The body carries the current ground; sections flip it as they take the stage. */
body[data-theme="dark"] { --bg: var(--night); --fg: var(--bone); --fg-2: var(--bone-2); --fg-3: var(--bone-3); --rule: var(--rule-d); }
body[data-theme="light"] { --bg: var(--day); --fg: var(--ink); --fg-2: var(--ink-2); --fg-3: var(--ink-3); --rule: var(--rule-l); }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-sans);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .9s var(--ease-brand), color .9s var(--ease-brand);
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* Grain: texture instead of gradient */
body::after {
  content: "";
  position: fixed; inset: -50%;
  z-index: 90; pointer-events: none;
  opacity: .05;
  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 .5 0 0 0 0 .4 0 0 0 0 .3 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Type ---------- */
h1, h2 {
  font-family: var(--f-display);
  font-weight: 300;
  font-optical-sizing: auto;
  letter-spacing: -.025em;
  line-height: 1.02;
  text-wrap: balance;
}
h1 { font-size: var(--t-display); line-height: 1; }
h2 { font-size: var(--t-h2); }
h3 { font-family: var(--f-display); font-weight: 400; font-size: var(--t-h3); line-height: 1.1; letter-spacing: -.015em; }
.lead { font-family: var(--f-display); font-size: var(--t-lead); line-height: 1.45; font-weight: 350; color: var(--fg-2); max-width: 34ch; text-wrap: pretty; }
p { text-wrap: pretty; }
.mono { font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: .02em; font-weight: 400; line-height: 1.5; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.nowrap { white-space: nowrap; }

/* SplitText masks: descenders are part of the letter */
.sl-mask { padding-bottom: .18em; margin-bottom: -.18em; padding-right: .08em; }
.js.motion:not(.no-anim):not(.is-split) [data-split] { visibility: hidden; }

.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; }
.skip { position: fixed; top: 10px; left: 10px; z-index: 200; padding: .7rem 1rem; background: var(--amber); color: var(--ink); text-decoration: none; transform: translateY(-160%); transition: transform .2s; }
.skip:focus { transform: none; }

/* Touch vs pointer hints */
.hint-touch, .hint-short { display: none; }
@media (hover: none) { .hint-fine { display: none; } .hint-touch { display: inline; } }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex: none; }
.dot--ping { animation: ping 2.4s var(--ease-out) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(240, 163, 37, .55); } 70%, 100% { box-shadow: 0 0 0 14px rgba(240, 163, 37, 0); } }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Links & buttons (one voice: rectangular, 2px, fill slides up) ---------- */
.link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .28em;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  transition: text-decoration-color .2s, color .2s;
}
.link:hover { text-decoration-color: var(--amber); }

.btn {
  --btn-bg: transparent; --btn-fg: var(--fg); --btn-fill: var(--fg); --btn-fill-fg: var(--bg);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 54px; padding: 1rem 1.6rem;
  border: 0; border-radius: 2px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--f-sans); font-size: 1rem; font-weight: 500; letter-spacing: .005em; line-height: 1;
  text-decoration: none; white-space: nowrap;
  transition: color .35s var(--ease-brand);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-fill);
  transform: translateY(101%);
  transition: transform .45s var(--ease-brand);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:hover, .btn:focus-visible { color: var(--btn-fill-fg); }
.btn--amber { --btn-bg: var(--amber); --btn-fg: var(--ink); --btn-fill: var(--bone); --btn-fill-fg: var(--ink); }
.btn--ink { --btn-bg: var(--ink); --btn-fg: var(--day); --btn-fill: var(--day); --btn-fill-fg: var(--ink); }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 2.2rem;
  padding-inline: var(--gutter);
  color: var(--fg);
  border-bottom: 1px solid transparent;
  transition: transform .5s var(--ease-brand), background-color .9s var(--ease-brand), color .9s var(--ease-brand), border-color .5s;
}
.nav.is-solid { background: var(--bg); border-bottom-color: var(--rule); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; min-height: 44px; }
.nav__brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav__brand span { font-family: var(--f-display); font-size: 1.35rem; font-weight: 400; letter-spacing: -.01em; }
.nav__links { display: flex; gap: 2rem; }
.nav__links a, .nav__join { position: relative; text-decoration: none; font-size: .95rem; font-weight: 500; padding-block: .6rem; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .3rem; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-brand);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__join { display: inline-flex; align-items: center; gap: .6rem; }
.nav__join::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.nav__join:hover { text-decoration: underline; text-underline-offset: .3em; text-decoration-color: var(--amber); }
.nav__menu { display: none; background: none; border: 0; padding: .7rem 0; font-weight: 500; min-height: 44px; }

@media (max-width: 860px) {
  .nav__links, .nav__join { display: none; }
  .nav__menu { display: inline-block; }
}

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 70;
  background: var(--night); color: var(--bone);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 2.5rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease-brand), visibility 0s .7s;
  visibility: hidden;
}
.menu.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .7s var(--ease-brand); }
.menu__close { position: absolute; top: 14px; right: var(--gutter); background: none; border: 0; color: inherit; font-weight: 500; padding: .7rem 0; min-height: 44px; }
.menu ul { display: grid; gap: .1rem; }
.menu a { font-family: var(--f-display); font-size: clamp(2.5rem, 11vw, 4rem); font-weight: 300; text-decoration: none; letter-spacing: -.02em; line-height: 1.18; }
.menu li:last-child a { color: var(--amber); }
.menu .mono { margin-top: 2.5rem; color: var(--bone-2); }

/* ---------- Specimen loupe: "Hold it to the light" ---------- */
.specimen { position: relative; overflow: hidden; background: var(--night); --x: 50%; --y: 50%; --r: 0px; --z: 1.6; --edge: 88%; touch-action: pan-y; }
.specimen[data-no-ring] { --edge: 62%; }
.specimen > picture { display: block; width: 100%; height: 100%; }
.specimen > img, .specimen > video, .specimen > picture > img, .specimen__lit img { width: 100%; height: 100%; object-fit: cover; }
.specimen__lit {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 var(--edge), transparent 100%);
          mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 var(--edge), transparent 100%);
}
.specimen__lit picture { display: block; width: 100%; height: 100%; }
.specimen__lit img {
  transform: scale(var(--z)); transform-origin: var(--x) var(--y);
  filter: brightness(1.14) saturate(1.08) contrast(1.05);
}
.specimen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(circle calc(var(--r) * 1.9) at var(--x) var(--y), rgba(255, 196, 102, .16), transparent 70%);
  mix-blend-mode: screen;
}
[data-no-ring] .specimen__ring { display: none; }
.specimen__ring {
  position: absolute; z-index: 1; left: var(--x); top: var(--y); width: calc(var(--r) * 1.9); aspect-ratio: 1;
  translate: -50% -50%; border-radius: 50%; pointer-events: none;
  border: 1.5px solid rgba(255, 238, 205, .6);
  box-shadow: 0 0 0 1px rgba(21, 15, 10, .25), inset 0 0 24px rgba(255, 214, 140, .18);
}

/* ==========================================================================
   01 · Hero: the specimen on its stand
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-top: calc(var(--nav-h) + 1.5rem);
  padding-bottom: clamp(1.6rem, 4vh, 3rem);
  overflow: hidden;
  background: var(--night);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img, .hero__media > video { object-position: 62% 50%; }
.hero__video { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease-out); }
.hero__video.is-playing { opacity: 1; }
/* Functional scrim so the copy holds over the rock */
.hero__scrim {
  position: absolute; inset: auto 0 0; height: 62%; pointer-events: none; z-index: 1;
  background: linear-gradient(to top, rgba(21, 15, 10, .86) 8%, rgba(21, 15, 10, .45) 52%, rgba(21, 15, 10, 0));
}
.hero__content {
  position: relative; z-index: 2; pointer-events: none;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
}
.hero__content a, .hero__content button { pointer-events: auto; }
.hero__copy { grid-column: 1 / span 8; }
.hero__title { max-width: 14.5ch; }
.hero__lead {
  margin-top: clamp(1.2rem, 2.6vh, 2rem);
  font-family: var(--f-display); font-weight: 350; letter-spacing: -.01em;
  font-size: clamp(1.45rem, 1.05rem + 1.3vw, 2.4rem); line-height: 1.15;
  color: var(--bone);
}
.hero__sub { margin-top: .7rem; max-width: 46ch; color: var(--bone-2); font-size: clamp(.98rem, .93rem + .2vw, 1.08rem); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.8rem; margin-top: clamp(1.4rem, 3vh, 2.2rem); }
.hero__ask { font-weight: 500; padding-block: .8rem; }

.hero__hint {
  position: absolute; z-index: 2; right: var(--gutter); top: calc(var(--nav-h) + 3vh);
  display: flex; align-items: center; gap: .7rem; color: var(--bone-2);
}
.hero__hint .dot { animation: ping 2.4s var(--ease-out) infinite; }

/* ---------- Signature: the 99-million-year progress bar ---------- */
.wait { grid-column: 1 / -1; margin-top: clamp(2rem, 5vh, 3.6rem); }
.wait__read { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.2rem; }
.wait__pct {
  font-family: var(--f-mono); font-weight: 300; letter-spacing: -.03em;
  font-size: clamp(1.7rem, 1.1rem + 2vw, 2.9rem); line-height: 1;
  color: var(--amber);
  min-width: 9.2ch;
}
.wait__pt { margin-inline: -.24em; }
.wait__cap { color: var(--bone-2); font-size: .95rem; max-width: 34ch; }
.wait__bar { position: relative; height: 22px; margin-top: .9rem; }
.wait__bar::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(243, 232, 213, .22); }
.wait__fill {
  position: absolute; left: 0; right: 5px; top: calc(50% - 1px); height: 2px;
  background: var(--amber); transform-origin: 0 50%;
}
.wait__now {
  position: absolute; right: 0; top: 50%; width: 9px; height: 9px; translate: 0 -50%; border-radius: 50%;
  background: var(--amber); animation: ping 2.4s var(--ease-out) infinite;
}
.wait__tick { position: absolute; left: var(--at); top: 50%; width: 1px; height: 11px; translate: 0 -50%; background: rgba(243, 232, 213, .55); }
.wait__tick .mono { position: absolute; left: -.5ch; top: calc(100% + .45rem); white-space: nowrap; color: var(--bone-3); }
@media (max-width: 1100px) { .wait__tick { display: none; } }
.wait__ends { display: flex; justify-content: space-between; gap: 1rem; margin-top: .55rem; color: var(--bone-2); }

/* Phones and portrait tablets: stone on top, the words beneath it */
@media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) {
  .hero { display: block; min-height: 0; padding-top: 0; padding-bottom: 3.2rem; }
  .hero__media { position: relative; height: 54svh; min-height: 320px; }
  .hero__media img { object-position: 50% 42%; }
  .hero__scrim { display: none; }
  /* The fade lives inside the image box, so it always meets the ground exactly */
  .hero__media::before {
    content: ""; position: absolute; inset: auto 0 0; height: 42%; z-index: 2; pointer-events: none;
    background: linear-gradient(to top, var(--night) 3%, rgba(21, 15, 10, .55) 48%, rgba(21, 15, 10, 0));
  }
  .hero__content { display: block; margin-top: -2.2rem; }
  .hero__title { max-width: none; }
  .hero__hint { top: calc(var(--nav-h) + .4rem); }
  .hero__hint .hint-fine, .hero__hint .hint-touch { display: none; }
  .hero__hint .hint-short { display: inline; }
  .wait__tick { display: none; }
}
@media (max-width: 600px) {
  .hero__hint { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__ask { margin-inline: auto; }
  .wait__ends { flex-direction: column; gap: .1rem; }
  .wait__ends span:last-child { color: var(--bone); }
}
@media (max-width: 760px) and (max-height: 700px) {
  .hero__media { height: 46svh; min-height: 260px; }
}

/* ==========================================================================
   02 · The drawer: the label is already written
   ========================================================================== */
.drawer { padding-block: clamp(6rem, 12vw, 11rem); }
.drawer__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.drawer__fig { grid-column: 1 / span 5; position: sticky; top: calc(var(--nav-h) + 2rem); }
.drawer__media { aspect-ratio: 4 / 5; border-radius: 2px; }
.drawer__fig figcaption { margin-top: 1rem; color: var(--ink-3); }
.drawer__body { grid-column: 7 / span 6; }
.drawer__body .lead { margin-top: 1.6rem; }

.tag {
  color: var(--ink);
  margin-top: clamp(2.6rem, 5vw, 4rem);
  background: var(--paper);
  border: 1px solid var(--rule-l);
  border-radius: 2px;
  padding: clamp(1.4rem, 2.6vw, 2.2rem) clamp(1.3rem, 2.6vw, 2.4rem) 1.2rem;
  box-shadow: 0 1px 0 rgba(42, 29, 18, .04), 0 24px 48px -32px rgba(42, 29, 18, .35);
}
.tag__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1.5rem; padding-bottom: 1.1rem; border-bottom: 1.5px solid var(--ink); }
.tag__head h3 { font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.5rem); font-weight: 350; font-style: italic; }
.tag__head .mono { color: var(--ink-2); }
.tag__rows > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: .3rem 1.2rem; padding-block: 1rem; border-bottom: 1px solid var(--rule-l); }
.tag__rows dt { color: var(--ink-3); padding-top: .2rem; }
.tag__rows dd { color: var(--ink); line-height: 1.5; }
.tag__foot { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1rem; color: var(--ink-3); }

@media (max-width: 860px) {
  .drawer__fig, .drawer__body { grid-column: 1 / -1; }
  .drawer__fig { position: relative; top: auto; order: 2; margin-top: 3rem; }
  .drawer__body { order: 1; }
}
@media (max-width: 480px) {
  .tag__rows > div { grid-template-columns: 1fr; }
}

/* ==========================================================================
   03 · Rooms: the directory board, everything still installing
   ========================================================================== */
.rooms { padding-block: clamp(6rem, 12vw, 11rem); }
.rooms__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 1.6rem; align-items: end; }
.rooms__head h2 { grid-column: 1 / span 8; max-width: 13ch; }
.rooms__intro { grid-column: 9 / span 4; color: var(--fg-2); max-width: 32ch; }
.rooms__list { margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--rule); }
.room {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: baseline;
  padding-block: clamp(1.4rem, 2.6vw, 2.2rem);
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}
.room::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1;
  background: var(--night-2);
  transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform .55s var(--ease-brand);
}
.room:hover::before, .room:focus-visible::before { transform: none; }
.room__no { grid-column: 1 / span 2; color: var(--fg-3); }
.room__name {
  grid-column: 3 / span 5;
  font-family: var(--f-display); font-weight: 300; letter-spacing: -.02em; line-height: 1.05;
  font-size: clamp(1.9rem, 1rem + 2.8vw, 3.6rem);
  transition: transform .55s var(--ease-brand);
}
.room:hover .room__name, .room:focus-visible .room__name { transform: translateX(.5rem); }
.room__desc { grid-column: 8 / span 3; color: var(--fg-2); font-size: .98rem; text-wrap: pretty; }
.room__status { grid-column: 11 / span 2; justify-self: end; display: inline-flex; align-items: center; gap: .55rem; color: var(--fg-2); }
.room:hover .room__status .dot { animation: ping 2.4s var(--ease-out) infinite; }

@media (max-width: 860px) {
  .rooms__head h2, .rooms__intro { grid-column: 1 / -1; }
  .room { grid-template-columns: 1fr auto; row-gap: .5rem; }
  .room__no { grid-column: 1; grid-row: 1; }
  .room__status { grid-column: 2; grid-row: 1; }
  .room__name { grid-column: 1 / -1; }
  .room__desc { grid-column: 1 / -1; max-width: 40ch; }
}

/* ==========================================================================
   04 · The desk: the email drop
   ========================================================================== */
.desk {
  position: relative; z-index: 3;
  background: var(--amber); color: var(--ink);
  padding-top: clamp(6rem, 12vw, 10rem);
  padding-bottom: clamp(4.5rem, 9vw, 7.5rem);
}
.desk ::selection { background: var(--ink); color: var(--amber); }
.desk :focus-visible { outline-color: var(--ink); }
.desk__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2.4rem; align-items: end; }
.desk h2 { grid-column: 1 / span 7; font-size: clamp(3rem, 1rem + 6.4vw, 8.5rem); line-height: 1; max-width: 9ch; }
.desk__body { grid-column: 8 / span 5; display: grid; gap: 1.2rem; }
.desk__body > p:first-child { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); max-width: 40ch; }
.desk__promise { color: var(--ink); font-size: .85rem; }
.desk__actions { display: grid; gap: 1rem; margin-top: .6rem; }
.desk__addr { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .6rem; font-size: .95rem; color: var(--ink-2); }
.desk__addr .link { color: var(--ink); font-weight: 500; padding-block: .75rem; }
.desk__social { padding-top: 1.2rem; border-top: 1px solid rgba(42, 29, 18, .22); font-size: .95rem; color: var(--ink-2); }
.desk__social .link { color: var(--ink); font-weight: 500; }
.desk .link:hover { text-decoration-color: var(--ink); }

.copy {
  background: none; border: 0; padding: .7rem 0; min-height: 44px;
  font-size: .9rem; font-weight: 500;
  text-decoration: underline; text-underline-offset: .3em; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
}
.copy:hover { text-decoration-color: currentColor; }
.copy.is-done { text-decoration: none; }

/* The resin keeps going: the amber block drips into the night below */
.desk__drips { position: absolute; left: 0; right: 0; top: 100%; height: clamp(70px, 12vw, 180px); margin-top: -1px; pointer-events: none; }
.desk__drips svg { width: 100%; height: 100%; fill: var(--amber); transform-origin: 50% 0; }
.desk__drop {
  position: absolute; left: 71.6%; top: 82%;
  width: clamp(9px, 1.1vw, 14px); aspect-ratio: 1;
  border-radius: 50% 50% 50% 0; rotate: -45deg;
  background: var(--amber); opacity: 0;
}

@media (max-width: 860px) {
  .desk h2, .desk__body { grid-column: 1 / -1; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { position: relative; padding-top: clamp(9rem, 18vw, 15rem); padding-bottom: 2rem; }
.footer__time {
  font-family: var(--f-display); font-weight: 300; letter-spacing: -.02em;
  font-size: clamp(1.9rem, 1rem + 3.2vw, 4.4rem); line-height: 1.12;
  padding-bottom: clamp(3rem, 6vw, 5rem);
  max-width: 22ch;
}
.footer__time .num { color: var(--amber); font-family: var(--f-mono); font-weight: 300; font-size: .82em; letter-spacing: -.03em; }
.footer__base { display: flex; flex-wrap: wrap; gap: .6rem 2rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); color: var(--fg-3); }
.footer__base a { display: inline-block; color: var(--fg-2); text-decoration: none; padding-block: .8rem; margin-block: -.8rem; }
.footer__base a:hover { text-decoration: underline; text-underline-offset: .25em; text-decoration-color: var(--amber); }
.footer__note { margin-left: auto; }
@media (max-width: 860px) { .footer__note { margin-left: 0; flex-basis: 100%; } }

/* ---------- Toast: the "no email app" fallback ---------- */
.toast {
  position: fixed; z-index: 85; left: 50%; bottom: max(16px, env(safe-area-inset-bottom));
  translate: -50% 0;
  width: min(460px, calc(100% - 32px));
  padding: 1rem 1.2rem .4rem;
  background: var(--bone); color: var(--ink);
  border-radius: 2px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
  font-size: .95rem;
}
.toast[hidden] { display: none; }
.toast__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.2rem; }
.toast__row .mono { margin-right: auto; font-size: .82rem; }
.toast__close { background: none; border: 0; padding: .7rem 0; min-height: 44px; color: var(--ink-2); font-size: .9rem; }

/* ==========================================================================
   Under construction (soon.html) and 404
   ========================================================================== */
.closed {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--nav-h) + 3rem); padding-bottom: 3rem;
}
.closed__room { color: var(--bone-2); display: flex; align-items: center; gap: .7rem; }
.closed h1 { margin-top: 1.4rem; max-width: 10ch; font-size: clamp(3rem, 1rem + 6vw, 8rem); }
.closed__rope { width: min(640px, 100%); margin-top: clamp(1.6rem, 4vh, 2.6rem); overflow: visible; }
.closed__rope .post { fill: none; stroke: var(--bone-2); stroke-width: 1.5; }
.closed__rope .rope { fill: none; stroke: var(--amber); stroke-width: 3; stroke-linecap: round; }
.closed__rope .sign rect { fill: var(--night-2); stroke: var(--bone-3); stroke-width: 1; }
.closed__rope .sign line { stroke: var(--bone-3); stroke-width: 1; }
.closed__rope .sign text { fill: var(--bone); font-family: var(--f-mono); font-size: 13px; letter-spacing: .02em; }
.closed__body { display: grid; gap: 1rem; margin-top: clamp(1.6rem, 4vh, 2.6rem); max-width: 46ch; }
.closed__body p:first-child { font-family: var(--f-display); font-size: var(--t-lead); line-height: 1.4; font-weight: 350; color: var(--bone); }
.closed__body p { color: var(--bone-2); }
.closed__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.8rem; margin-top: 2rem; }
.closed__actions .link { font-weight: 500; padding-block: .8rem; }
.closed__others { margin-top: clamp(3rem, 8vh, 5rem); padding-top: 1.3rem; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: .4rem 2rem; color: var(--bone-3); }
.closed__others a { color: var(--bone-2); text-decoration: none; padding-block: .6rem; }
.closed__others a:hover, .closed__others a[aria-current="page"] { color: var(--bone); text-decoration: underline; text-underline-offset: .3em; text-decoration-color: var(--amber); }
.closed__fig { display: none; }
@media (min-width: 1000px) {
  .closed { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-content: center; align-items: center; }
  .closed__main { grid-column: 1 / span 7; }
  .closed__fig { display: block; grid-column: 9 / span 4; }
  .closed__media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; background: var(--night-2); }
  .closed__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
  .closed__fig figcaption { margin-top: 1rem; color: var(--bone-3); }
}
@media (max-width: 760px) { .closed__actions .btn { flex: 1 1 100%; } }

/* ---------- Resin pour (page transition) ---------- */
.pour { position: fixed; inset: 0; z-index: 100; pointer-events: none; visibility: hidden; }
.pour.is-active { visibility: visible; pointer-events: auto; }
.pour__layer { position: absolute; left: 0; right: 0; top: 0; height: 100%; will-change: transform; }
.pour__layer::before { content: ""; position: absolute; inset: 0; background: var(--c); }
.pour__layer svg { position: absolute; left: 0; top: 100%; width: 100%; height: 24vh; margin-top: -1px; }
.pour__layer--deep { --c: var(--amber-deep); }
.pour__layer--deep svg { fill: var(--amber-deep); }
.pour__layer--main { --c: var(--amber); }
.pour__layer--main svg { fill: var(--amber); }
.pour__label {
  position: absolute; inset: 0; display: grid; place-items: center; padding: var(--gutter); text-align: center;
  font-family: var(--f-display); font-style: italic; font-weight: 300;
  font-size: clamp(2.2rem, 1rem + 4vw, 4.5rem); letter-spacing: -.02em; color: var(--ink);
  opacity: 0;
}
.is-pouring .pour { visibility: visible; }
.is-pouring .pour__label { opacity: 1; }

/* ---------- Reveals: hidden only while the animation layer is alive (no-anim = show everything) ---------- */
.js.motion:not(.no-anim) [data-reveal], .js.motion:not(.no-anim) [data-hero-in] { opacity: 0; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal], [data-hero-in] { opacity: 1 !important; }
  [data-split] { visibility: visible !important; }
}
