/* site.css — the café's look, shared by every page. The first part is the
   single-page café's stylesheet unchanged; page additions follow it. */
:root {
  /* Café portal palette */
  --espresso:    #3D2B1F;
  --espresso-2:  #5a4232;
  --cream:       #FDFBF7;
  --cream-2:     #f4ead4;
  --cream-deep:  #e8d5b3;
  --coral:       #FF7F6A;
  --coral-deep:  #d65a48;
  --teal:        #1f3d40;
  --teal-mid:    #2d5a5f;
  --teal-light:  #4a7e84;
  --teal-glow:   #9cc4cc;
  --yellow:      #f0b528;
  --yellow-warm: #ffc94a;
  --yellow-glow: #ffd877;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  background: var(--cream);
  color: var(--espresso);
  font-family: "Open Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: none;  /* the yellow lantern replaces the cursor */
}

a { color: inherit; text-decoration: none; }

/* ============= PAPER + GRAIN BACKDROP ============= */

.paper {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255,255,255,0.48), rgba(244,234,212,0.16) 45%, rgba(255,255,255,0.28)),
    radial-gradient(ellipse at 30% 20%, #fff8eb 0%, transparent 55%),
    radial-gradient(ellipse at 75% 75%, rgba(244,234,212,0.78) 0%, transparent 60%),
    repeating-linear-gradient(90deg, rgba(80, 60, 35, 0.018) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(0deg, rgba(80, 60, 35, 0.012) 0 1px, transparent 1px 6px),
    var(--cream);
  z-index: -2;
}
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.24  0 0 0 0 0.17  0 0 0 0 0.12  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
  z-index: -1;
}

/* ============= CAFE WINDOW HERO BANNER (experimental) ============= */
/*
  Optional slim hero above the brand header. Sets the "you're in a café"
  vibe before the portal. To remove: delete .cafe-hero CSS + the
  <section class="cafe-hero"> in the HTML.
*/

.cafe-hero {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;   /* full-bleed, edge to edge */
}
.cafe-hero-frame {
  position: relative;
  width: 100%;
  height: clamp(300px, 36vw, 520px);  /* taller so the whole scene shows */
  overflow: hidden;
  box-shadow: 0 16px 32px -18px rgba(60, 40, 20, 0.35);
}
.cafe-hero-frame img,
.cafe-hero-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;  /* favor the table, notebook, coffee, view */
  display: block;
}
/* Still is the base layer; the motion loop sits on top and fades in once
   it can play. If JS is off or the video never loads, the still stays. */
.cafe-hero-video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.cafe-hero-frame.is-playing .cafe-hero-video { opacity: 1; }
/* Soft cream vignette so the image blends into the page */
.cafe-hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(253,251,247,0) 60%, rgba(253,251,247,0.6) 100%),
    linear-gradient(to right, rgba(253,251,247,0.25), transparent 30%, transparent 70%, rgba(253,251,247,0.25));
  pointer-events: none;
}
@media (max-width: 760px) {
  .cafe-hero-frame { height: clamp(220px, 56vw, 320px); }
}

/* ============= INTRO ANIMATION HEADER ============= */
/*
  Plays once on page load: "Hannah Choi" fades in, fragments, then
  transforms into "HanChoco" with an ink bloom. Settles to a compact
  header with the cup logo + motto.
*/

.brand {
  position: relative;
  padding: 32px 32px 20px;
  text-align: center;
  z-index: 2;
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

/* The animated wordmark */
.brand-word {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-variation-settings: "opsz" 96;
  font-size: 52px;
  color: var(--espresso);
  letter-spacing: 0.005em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  position: relative;
  white-space: nowrap;
}
.brand-word .ch {
  display: inline-block;
  will-change: transform, opacity, filter;
  position: relative;
}
.brand-word .gap {
  display: inline-block;
  width: 0;
}
.ink-bloom {
  position: absolute;
  pointer-events: none;
  width: 2em;
  height: 2em;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 0;
  background:
    radial-gradient(circle at 45% 45%,
      rgba(107,74,45,0.32) 0%,
      rgba(168,116,60,0.22) 30%,
      rgba(240,181,40,0.12) 55%,
      transparent 75%);
  filter: blur(12px);
  mix-blend-mode: multiply;
}

/* ===== DEMI — the cup mascot (logo + eyes + micro-animations) ===== */
/* Hidden during intro, fades in at the end alongside the motto. */
.demi {
  position: relative;
  display: inline-block;
  width: 96px; height: 96px;
  opacity: 0;
  transform: scale(0.6);
  flex-shrink: 0;
}
.demi img {
  width: 100%; height: 100%;
  object-fit: contain;   /* seasonal variants vary in aspect — never squish */
  display: block;
}
/* Idle: an almost-imperceptible bob, like a resting breath */
.brand.is-settled .demi {
  animation: demi-bob 4.5s ease-in-out infinite;
}
@keyframes demi-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-2px); }
}
/* Playful tilt when someone greets Demi with the cursor */
.demi:hover { animation-play-state: paused; }
.demi:hover img { transform: rotate(-5deg); transition: transform 0.3s cubic-bezier(.34,1.56,.64,1); }
.demi img { transition: transform 0.3s ease; }

/* demi-blink keyframes are shared with Decon's and Loop's eyes below */
@keyframes demi-blink {
  0%, 90%, 100% { transform: scaleY(1); }
  93%, 96%      { transform: scaleY(0.08); }
}

/* "Studio" — quiet letterspaced line under the wordmark */
.brand-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.brand-studio {
  font-family: "Open Sans", Arial, sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.52em;
  margin-right: -0.52em;  /* re-centres the letterspaced text */
  text-transform: uppercase;
  color: var(--espresso-2);
  opacity: 0;
}

.brand-motto {
  font-family: "Caveat", cursive;
  font-weight: 600;
  font-size: 26px;
  color: var(--coral);
  letter-spacing: 0.02em;
  opacity: 0;
}

/* Studio one-liner — quiet description, now placed in the footer */
.studio-line {
  text-align: center;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 13.5px;
  font-style: italic;
  color: var(--espresso-2);
  max-width: 480px;
  margin: 0 auto 10px;
  padding: 0 22px;
  opacity: 0;
}
.studio-line strong {
  font-style: normal;
  font-weight: 600;
  color: var(--espresso);
}

.brand::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 220px;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(to right, transparent, rgba(255, 127, 106, 0.55), transparent);
  opacity: 0;
}
.brand.is-settled::after { opacity: 1; transition: opacity 0.6s ease; }

/* Skip intro button — visible during animation only */
.skip-intro {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: 1px solid rgba(60,40,20,0.3);
  color: var(--espresso-2);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0.5;
  z-index: 200;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.skip-intro:hover { opacity: 1; }

/* ============= LAYOUT — SPLIT PORTAL ============= */

.portal {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 72px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 56px 84px;
  align-items: start;
}

.portal-title {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 72px;
  margin-bottom: 18px;
}
.portal-title h2 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 4px;
}
.portal-title .sub {
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 14px;
  color: var(--espresso-2);
  letter-spacing: 0;
}
.portal-title .col {
  position: relative;
  padding-top: 4px;
}
/* Right-column title aligns with the centered Cocoyellow card (max-width 360) */
.portal-title .col:nth-child(2) {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}
.portal-title .col::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--coral);
}

/* ============= CAFE MEMO BOARD (left) ============= */

.board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  grid-auto-flow: row;
  gap: 34px 24px;
  position: relative;
  align-content: start;
  padding: 28px 24px 26px;
}
.board::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.24), rgba(146,112,72,0.06)),
    radial-gradient(circle at 20% 18%, rgba(255, 248, 235, 0.32), transparent 32%),
    repeating-linear-gradient(90deg, rgba(95, 70, 42, 0.035) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(0deg, rgba(95, 70, 42, 0.026) 0 1px, transparent 1px 9px),
    #eadfc8;
  box-shadow:
    inset 0 0 0 1px rgba(95, 70, 42, 0.08),
    0 18px 38px -28px rgba(60, 40, 20, 0.28);
  opacity: 0.42;
  transform: rotate(-0.35deg);
  pointer-events: none;
  z-index: 0;
}
/* Top row: Unconfound's ventures (Labs + InnoPath) */
/* Bottom row: Personal tools (Build + Read) */
.card-labs     { grid-column: 1; grid-row: 1; --rot: -1.4deg; }
.card-innopath { grid-column: 2; grid-row: 1; --rot: 1.6deg; }
.card-build    { grid-column: 1; grid-row: 2; --rot: 1.2deg; }
.card-read     { grid-column: 2; grid-row: 2; --rot: -1.8deg; }

/* Apply tilts after layout */
.card { transform: rotate(var(--rot, 0deg)); }
a.card:hover { transform: rotate(var(--rot, 0deg)) translateY(-3px); }

.card {
  position: relative;
  z-index: 1;
  border-radius: 14px;
  padding: 18px 20px 18px;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease;
  display: block;
}

/* Yellow-dot thumbtack on each card */
.card::after {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 14px;
  height: 14px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff2c2 0%, var(--yellow-warm) 30%, var(--yellow) 75%, #b87f12 100%);
  box-shadow:
    0 0 8px rgba(255, 201, 74, 0.6),
    0 1px 3px rgba(60,40,20,0.45),
    inset 0 -1px 2px rgba(40,25,10,0.3);
  transition: box-shadow 0.35s ease;
  z-index: 3;
  pointer-events: none;
}
a.card:hover::after {
  box-shadow:
    0 0 16px rgba(255, 201, 74, 0.9),
    0 0 36px rgba(255, 201, 74, 0.5),
    0 1px 3px rgba(60,40,20,0.45),
    inset 0 -1px 2px rgba(40,25,10,0.3);
}

.card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Open Sans", Arial, sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.card h3 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-variation-settings: "opsz" 48;
  font-size: 22px;
  margin: 0 0 6px;
  letter-spacing: 0.005em;
}
.card .desc {
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 12px;
}
.card .cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.13em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--coral-deep);
  border-bottom: 1px solid rgba(214, 90, 72, 0.62);
  padding-bottom: 2px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
a.card:hover .cta {
  color: var(--coral-deep);
  border-color: var(--coral-deep);
}
.card .coords {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.18em;
  opacity: 0.7;
  margin-top: 10px;
}
.card-art {
  display: block;
  margin: 2px auto 8px;
  filter: drop-shadow(0 8px 10px rgba(60, 40, 20, 0.14));
}
/* ----- Demi activity icon — peeks from each card's top-left corner -----
   Semantic match per card (research / reading / idea / dispatch). Always
   visible (mobile too, per the phone-traffic rule); a small lift + settle
   on hover is desktop garnish only. */
.card-demi {
  position: absolute;
  top: -16px;
  left: -12px;
  width: 52px;
  height: auto;
  z-index: 3;
  transform: rotate(-8deg);
  filter: drop-shadow(0 4px 6px rgba(60, 40, 20, 0.18));
  transition: transform 0.35s cubic-bezier(.34, 1.56, .64, 1);
  pointer-events: none;
}
a.card:hover .card-demi,
a.card:focus-within .card-demi {
  transform: rotate(4deg) translateY(-3px) scale(1.08);
}
@media (max-width: 760px) {
  .card-demi { width: 44px; top: -12px; left: -8px; }
}
@media (prefers-reduced-motion: reduce) {
  .card-demi { transition: none; }
}
/* Small Demi tucked beside a card's name (e.g. Cocoyellow) */
.name-demi {
  height: 1.5em;
  width: auto;
  vertical-align: -0.35em;
  margin-left: 4px;
  filter: drop-shadow(0 2px 3px rgba(60, 40, 20, 0.18));
}
.source-tag {
  display: inline-block;
  font-family: "Fraunces", serif;
  font-size: 12px;
  background: rgba(61, 43, 31, 0.08);
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  color: var(--espresso);
  border: 1px solid rgba(80, 60, 30, 0.2);
  margin: 0 0 12px;
}
.card-meta {
  font-family: "Open Sans", Arial, sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(90, 66, 50, 0.66);
  margin-top: 10px;
}

/* ============= HOVER-TO-REVEAL ARCHITECTURE =============
   Collapsed by default: big illustration + title only.
   On hover (desktop), the details glide down. On mobile the
   reveal is always open (touch has no hover). */

.card { align-self: start; }   /* collapsed card doesn't stretch to row height */

.card-visible-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.card-visible-header .card-art {
  margin: 0 auto 12px;
}
.card-visible-header h3 {
  margin: 0;
}

.card-reveal-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(10px);
  text-align: center;
  transition:
    max-height 0.45s cubic-bezier(0.25, 1, 0.5, 1),
    opacity   0.4s  ease,
    transform 0.45s cubic-bezier(0.25, 1, 0.5, 1),
    margin-top 0.45s ease;
}
.card:hover .card-reveal-content,
.card:focus-within .card-reveal-content {
  max-height: 340px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 14px;
}
/* A subtle "more on hover" cue under the title when collapsed */
.card-visible-header::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  margin: 12px auto 0;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.28;
  transition: opacity 0.35s ease, width 0.35s ease;
}
.card:hover .card-visible-header::after,
.card:focus-within .card-visible-header::after {
  opacity: 0;
  width: 0;
}

/* ----- LABS — deep teal research note ----- */

.card-labs {
  background: linear-gradient(165deg, var(--teal) 0%, var(--teal-mid) 100%);
  color: #e6f0f0;
  box-shadow:
    0 14px 30px -14px rgba(20,40,40,0.55),
    0 1px 0 rgba(255,255,255,0.06) inset;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.card-labs .card-tag { color: var(--teal-glow); }
.card-labs h3 { color: #f4ead4; }
.card-labs .desc { color: rgba(244, 234, 212, 0.85); }
.card-labs .cta { color: var(--yellow-warm); border-color: rgba(255, 201, 74, 0.45); }
a.card-labs:hover .cta { color: var(--yellow-glow); border-color: var(--yellow-glow); }
.card-labs .card-art {
  width: 200px;
  max-width: 80%;
  filter: drop-shadow(0 8px 12px rgba(4, 18, 20, 0.3));
}
.card-labs .coords {
  color: var(--teal-glow);
  text-shadow: 0 0 6px rgba(156, 196, 204, 0.55);
}
.card-labs .sub-link {
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 13px;
  color: rgba(244, 234, 212, 0.65);
  display: block;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(244, 234, 212, 0.15);
}
.card-labs .sub-link a {
  color: var(--yellow-warm);
  border-bottom: 1px solid rgba(255, 201, 74, 0.4);
  padding-bottom: 1px;
  transition: color 0.2s ease;
}
.card-labs .sub-link a:hover { color: var(--yellow-glow); }

/* Glowing coordinate beacon */
.card-labs .beacon-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--yellow-warm);
  box-shadow: 0 0 8px var(--yellow-warm), 0 0 16px rgba(255, 201, 74, 0.5);
  animation: beacon 3.6s ease-in-out infinite;
  margin-right: 8px;
  vertical-align: middle;
}
@keyframes beacon {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1;   }
}

/* Mint tape detail */
.card-labs::before {
  content: "";
  position: absolute;
  top: -10px;
  right: 16px;
  width: 48px;
  height: 18px;
  background: rgba(156, 196, 204, 0.6);
  transform: rotate(8deg);
  border-radius: 1px;
  box-shadow: 0 2px 6px rgba(20, 40, 40, 0.25);
}

/* ----- INNOPATH — cream with a lilac accent stripe (per Innopath brand) ----- */

.card-innopath {
  background: linear-gradient(165deg, #F8F4EB 0%, #F2ECDE 100%);
  color: var(--espresso);
  box-shadow:
    0 14px 30px -14px rgba(110, 80, 130, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.6) inset;
  border: 1px solid rgba(110, 80, 130, 0.15);
  position: relative;
  /* Left accent stripe in lilac */
  border-left: 4px solid #8E7CC3;
}
.card-innopath .card-tag { color: #8E7CC3; }
.card-innopath h3 { color: var(--espresso); }
.card-innopath .desc { color: var(--espresso-2); }
.card-innopath .cta { color: #c74f60; border-color: rgba(199, 79, 96, 0.52); }
a.card-innopath:hover .cta { color: var(--coral-deep); border-color: var(--coral-deep); }
.card-innopath .card-art {
  width: 196px;
  max-width: 78%;
  filter: drop-shadow(0 8px 10px rgba(80, 60, 110, 0.16));
}
.innopath-wordmark {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 7px;
}
.innopath-brand {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}
.innopath-inno {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0;
}
.innopath-path {
  font-family: "Caveat", cursive;
  font-weight: 600;
  font-size: 1.18em;
  color: #8E7CC3;
  margin-left: 1px;
  transform: translateY(1px) rotate(-1deg);
}
.innopath-learning {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.92em;
  color: rgba(90, 66, 50, 0.78);
}
/* The purple curve with yellow dot — Innopath's signature mark, top-right */
.card-innopath .innopath-curve {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 80px;
  height: 22px;
  pointer-events: none;
}

/* ----- BUILD — warm aged-paper field journal (khaki / olive) ----- */

.card-build {
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(61, 43, 31, 0.04) 0,
      rgba(61, 43, 31, 0.04) 22px,
      rgba(61, 43, 31, 0.1) 22px,
      rgba(61, 43, 31, 0.1) 23px
    ),
    linear-gradient(165deg, #d4c39a 0%, #a8956b 100%);
  color: var(--espresso);
  box-shadow:
    0 14px 30px -14px rgba(80, 60, 30, 0.4),
    0 1px 0 rgba(255, 255, 255, 0.3) inset;
  border: 1px solid rgba(80, 60, 30, 0.18);
}
.card-build .card-tag { color: #6b5530; }
.card-build h3 { color: var(--espresso); }
.card-build .desc { color: var(--espresso-2); }
.card-build .cta { color: #9f3d31; border-color: rgba(159, 61, 49, 0.58); }
a.card-build:hover .cta { color: var(--coral); border-color: var(--coral); }
.card-build .build-note {
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: var(--espresso);
  margin: 0 0 8px;
}
.card-build .card-art {
  width: 160px;
  max-width: 64%;
  margin: 0 auto 8px;
}

/* ----- READ — folded journal page ----- */

.card-read {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  color: var(--espresso);
  box-shadow:
    0 12px 26px -12px rgba(60, 40, 20, 0.4),
    0 1px 0 rgba(255, 255, 255, 0.6) inset;
  border: 1px solid rgba(60, 40, 20, 0.08);
  overflow: visible;
  position: relative;
}
/* The page-curl corner: folded triangle bottom-right */
.card-read::before {
  content: "";
  position: absolute;
  bottom: 0; right: 0;
  width: 36px; height: 36px;
  background: linear-gradient(135deg, transparent 50%, var(--cream-deep) 50%, var(--cream) 100%);
  box-shadow: -1px -1px 2px rgba(60,40,20,0.1);
  transition: width 0.4s ease, height 0.4s ease;
}
a.card-read:hover::before { width: 64px; height: 64px; }
.card-read .card-tag { color: var(--coral); }
.card-read h3 { color: var(--espresso); }
.card-read em {
  font-family: "Open Sans", Arial, sans-serif;
  font-style: italic;
  font-size: 15px;
  line-height: 1.5;
  color: var(--espresso-2);
  display: block;
  margin: 4px 0 8px;
}
.card-read .card-art {
  width: 100%;
  max-width: 150px;
  margin: 2px auto 4px;
}
.card-read .cta { color: var(--coral-deep); border-color: rgba(214, 90, 72, 0.58); }

/* ----- CONTACT — small business-card strip below the memo grid ----- */

.contact-card {
  position: relative;
  margin-top: 46px;
  padding: 20px 22px;
  background: var(--cream);
  border-radius: 14px;
  box-shadow:
    0 12px 26px -12px rgba(60, 40, 20, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.5) inset;
  border: 1px solid rgba(60, 40, 20, 0.1);
  transform: rotate(0.6deg);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}
.contact-card::after {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 14px;
  height: 14px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff2c2 0%, var(--yellow-warm) 30%, var(--yellow) 75%, #b87f12 100%);
  box-shadow:
    0 0 8px rgba(255, 201, 74, 0.6),
    0 1px 3px rgba(60, 40, 20, 0.45),
    inset 0 -1px 2px rgba(40, 25, 10, 0.3);
  z-index: 3;
}
/* Demi answering the phone — corner accent on the "Say hello" strip */
.contact-demi {
  position: absolute;
  top: -20px;
  right: -6px;
  width: 62px;
  height: auto;
  z-index: 3;
  transform: rotate(6deg);
  filter: drop-shadow(0 4px 6px rgba(60, 40, 20, 0.18));
  transition: transform 0.35s cubic-bezier(.34, 1.56, .64, 1);
  pointer-events: none;
}
.contact-card:hover .contact-demi {
  transform: rotate(-4deg) translateY(-3px) scale(1.08);
}
@media (max-width: 760px) {
  .contact-demi { width: 50px; top: -16px; right: -2px; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-demi { transition: none; }
}
.contact-card .contact-tag {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 10px;
}
.contact-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(253, 251, 247, 0.95);
  box-shadow:
    0 0 0 2px rgba(255, 201, 74, 0.28),
    0 10px 24px rgba(60, 40, 20, 0.16);
  background: var(--cream-2);
}
.contact-body {
  min-width: 0;
}
.contact-card .contact-handwritten {
  font-family: "Open Sans", Arial, sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--espresso);
  margin: 0 0 6px;
  letter-spacing: 0.02em;
}
.contact-card .contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--espresso-2);
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
}
.contact-card .contact-list li {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.contact-card .contact-list span.icon {
  font-size: 13px;
  opacity: 0.8;
}
.contact-card .contact-list a {
  color: var(--espresso);
  border-bottom: 1px solid rgba(255, 127, 106, 0.4);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.contact-card .contact-list a:hover {
  color: var(--coral-deep);
  border-color: var(--coral-deep);
}

/* ----- VISIT — watercolor postcard ----- */

.card-visit {
  /* Faint yellow wash + left stripe — brands Cocoyellow (echoes the
     yellow-dot motif), mirrors InnoPath's lilac treatment */
  background: linear-gradient(165deg, #fffdf3 0%, #fdf1c9 100%);
  padding: 14px 14px 18px;
  box-shadow:
    0 14px 30px -12px rgba(120, 90, 30, 0.32),
    0 1px 0 rgba(255, 255, 255, 0.6) inset;
  border: 1px solid rgba(210, 170, 60, 0.22);
  border-left: 4px solid var(--yellow);
  position: relative;
}
.card-visit .postcard {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: #d8c5a3;
  margin-bottom: 12px;
  position: relative;
}
.card-visit .postcard img {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 55%;  /* favor Anna + Coco in the lower-middle */
}
.card-visit .postcard .stamp {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 48px;
  height: 48px;
  display: block;
  object-fit: contain;
  transform: rotate(6deg);
  filter: drop-shadow(0 2px 3px rgba(60, 40, 20, 0.18));
}
.card-visit .card-tag { color: var(--coral); }

/* ============= WINDOW (right) ============= */

.window-pane {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding-top: 8px;
}
/* The Cocoyellow postcard card on the right side is wider/centered */
.window-pane .card-visit {
  width: 100%;
  max-width: 360px;
  --rot: 1.2deg;
  align-self: center;   /* override the grid's align-self:start so it centers with the porthole */
}
.window-pane .card-visit:hover {
  transform: rotate(var(--rot, 0deg)) translateY(-3px);
}

/* ----- PORTHOLE — round watercolor image (transparent PNG, RGBA) -----
   PNG includes the brass rim and transparent corners. Let it show at
   natural shape; drop-shadow respects alpha so the shadow is round. */

.window-frame {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  display: block;
  filter: drop-shadow(0 24px 28px rgba(60, 40, 20, 0.32));
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
}
.window-frame:hover { transform: translateY(-2px); }
.window-frame img.porthole-img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* fill the circle (TEST: round porthole) */
  border-radius: 50%;
  box-shadow:
    0 0 0 8px #c8a56a,               /* brass rim */
    0 0 0 12px #8a6a3e,              /* darker outer ring */
    inset 0 6px 14px rgba(0,0,0,0.28); /* glass depth */
  display: block;
  /* Tone the vivid blues down toward the site's warm palette */
  filter: brightness(0.95) saturate(0.78) sepia(0.14) contrast(0.97);
}

/* Stack that holds the porthole + the (overflowing) watcher portrait */
.window-stack {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 360px;
}

/* ===== Hannah-watching-the-porthole — watcher-girl.png (tight crop) =====
   Pre-cropped to her bounds (~321x533, ratio 0.602) so she fills the slot.
   Box matches her ratio; object-fit: contain keeps her crisp at any size.
*/
.porthole-watcher {
  position: absolute;
  left: -78px;
  bottom: -14px;
  width: 190px;
  height: 316px;
  pointer-events: none;
  z-index: 4;
}
.porthole-watcher img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  display: block;
}
.porthole-watcher svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 14px rgba(60, 40, 20, 0.22));
}
/* Placeholder styling — visible until Hannah drops in her portrait */
.porthole-watcher.is-placeholder svg {
  opacity: 0.42;
}

.porthole-caption {
  text-align: center;
  margin-top: 12px;
}
.porthole-caption .h {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--espresso);
  margin: 0 0 2px;
}
.porthole-caption .sub {
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 13px;
  color: var(--espresso-2);
}

/* ============= ANIMATIONS ============= */

/* Clouds drift very slowly */
.cloud-1 { animation: cloud-drift-1 70s linear infinite; }
.cloud-2 { animation: cloud-drift-2 95s linear infinite; }
@keyframes cloud-drift-1 {
  from { transform: translateX(-30px); }
  to   { transform: translateX(120px); }
}
@keyframes cloud-drift-2 {
  from { transform: translateX(-80px); }
  to   { transform: translateX(160px); }
}

/* Submarine bobs */
.submarine {
  animation: submarine-bob 4.2s ease-in-out infinite;
  transform-origin: center;
}
@keyframes submarine-bob {
  0%, 100% { transform: translateY(0) rotate(-0.5deg); }
  50%      { transform: translateY(-3px) rotate(0.5deg); }
}

/* Water ripples — animate dash offset */
.ripple {
  animation: ripple-drift 8s linear infinite;
}
@keyframes ripple-drift {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -24; }
}

/* Diver lantern pulse */
.diver-lantern {
  animation: diver-pulse 3.2s ease-in-out infinite;
  transform-origin: center;
}
@keyframes diver-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.2); }
}

/* Wandering yellow dot — a quiet horizontal drift across the sky,
   no more up-down chaos. Slow ease, very subtle. */
.wander-dot {
  animation: window-wander 32s ease-in-out infinite;
  transform-origin: 0 0;
}
@keyframes window-wander {
  0%, 100% { transform: translate(80px, 150px); }
  50%      { transform: translate(440px, 160px); }
}

/* ============= CURSOR LANTERN (page-wide) ============= */

.lantern {
  position: fixed;
  top: 0; left: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff2c2 0%, var(--yellow-warm) 30%, var(--yellow) 70%, rgba(184, 127, 18, 0) 100%);
  box-shadow:
    0 0 16px rgba(255, 201, 74, 0.65),
    0 0 48px rgba(255, 201, 74, 0.4),
    0 0 120px rgba(255, 201, 74, 0.18);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  mix-blend-mode: multiply;
  transition: opacity 0.4s ease;
  opacity: 0;
}
.lantern.is-active { opacity: 1; }

/* ===== DECON — Unconfound's research submersible "U-?" ===== */
/* Recreated as inline SVG from the real mark (Option B: minimal,
   unannotated) so it stays crisp + transparent at any card size. */
.decon {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 84px;
  height: 43px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.92;
  animation: decon-drift 7s ease-in-out infinite;
}
@keyframes decon-drift {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}
/* Porthole "eye" blinks */
.decon .decon-eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: demi-blink 6.4s ease-in-out infinite;
}
/* The signal — a soft pulse, same rhythm as the beacon dots elsewhere */
.decon .decon-signal {
  animation: beacon 3.6s ease-in-out infinite;
}
/* Bubbles rise faintly from the periscope */
.decon .decon-bubble {
  animation: decon-bubble 3.2s ease-in infinite;
  opacity: 0;
}
.decon .decon-bubble--b { animation-delay: 1.1s; }
.decon .decon-bubble--c { animation-delay: 2.2s; }
@keyframes decon-bubble {
  0%   { transform: translateY(0);    opacity: 0; }
  15%  { opacity: 0.7; }
  100% { transform: translateY(-10px); opacity: 0; }
}
/* Decon perks up when the card is hovered */
a.card-labs:hover .decon { animation-duration: 3s; }

/* ===== LOOP — the InnoPath curve's yellow dot, now with eyes ===== */
.innopath-curve .loop-head {
  transform-box: fill-box;
  transform-origin: center;
  animation: loop-bounce 3.8s ease-in-out infinite;
}
.innopath-curve .loop-eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: demi-blink 4.6s ease-in-out infinite, loop-bounce 3.8s ease-in-out infinite;
}
@keyframes loop-bounce {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -1.5px; }
}
/* Loop gets excited when the card is hovered — bounces quicker */
a.card-innopath:hover .loop-head { animation-duration: 1.2s; }
a.card-innopath:hover .loop-eye  { animation-duration: 4.6s, 1.2s; }

/* ===== FOOTER — quiet studio description + signature ===== */
.site-footer {
  padding: 28px 22px 34px;
}
.site-footer__meta {
  text-align: center;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: rgba(90, 66, 50, 0.55);
  margin: 0;
}
.site-footer .dot { color: var(--yellow); }

/* Respect reduced-motion: characters hold still */
@media (prefers-reduced-motion: reduce) {
  .brand.is-settled .demi,
  .decon, .decon .decon-eye, .decon .decon-bubble,
  .innopath-curve .loop-head, .innopath-curve .loop-eye {
    animation: none !important;
  }
}

/* ============= RESPONSIVE ============= */

@media (max-width: 900px) {
  body { cursor: auto; }
  .lantern { display: none; }
  .portal,
  .portal-title {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-left: 22px;
    padding-right: 22px;
  }
  .portal-title {
    display: contents;
  }
  .portal-title .col:first-child { order: 1; }
  .board-column { order: 2; }
  .portal-title .col:nth-child(2) { order: 3; }
  .window-pane { order: 4; }
  .window-pane { gap: 72px; }
  .board {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 28px;
    padding: 24px 18px;
  }
  /* Touch has no hover — show the reveal content always on mobile */
  .card-reveal-content {
    max-height: none;
    opacity: 1;
    transform: none;
    margin-top: 14px;
  }
  .card-visible-header::after { display: none; }
  .card-labs,
  .card-innopath,
  .card-build,
  .card-read {
    grid-column: auto;
    grid-row: auto;
  }
  .window-frame {
    max-width: min(82vw, 360px);
    aspect-ratio: 1 / 1;
  }
  .contact-card {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 14px;
  }
  .contact-avatar {
    width: 68px;
    height: 68px;
  }
  .brand-word { font-size: 40px; }
  .demi { width: 72px; height: 72px; }
  .brand-studio { font-size: 11px; }
  .brand-motto { font-size: 22px; }
}

/* ================================================================
   MULTI-PAGE ADDITIONS — interior-page header, home doors, the offer
   and the window room. Same palette and paper as the café above.
   ================================================================ */

/* ============= SUBNAV (compact header on interior pages) ============= */
.subnav {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 32px;
}
.subnav .subnav-brand { display: inline-flex; align-items: center; gap: 12px; }
.subnav .subnav-brand img { width: 46px; height: 46px; object-fit: contain; display: block; transition: transform 0.3s ease; }
.subnav .subnav-brand:hover img { transform: rotate(-5deg); }
.subnav .subnav-wordmark { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.subnav .subnav-wordmark .word {
  font-family: "Fraunces", serif; font-weight: 600; font-variation-settings: "opsz" 96;
  font-size: 22px; color: var(--espresso);
}
.subnav .subnav-wordmark .studio {
  font-family: "Open Sans", Arial, sans-serif; font-weight: 600; font-size: 8.5px;
  letter-spacing: 0.5em; text-transform: uppercase; color: var(--espresso-2);
}
.subnav nav { display: flex; gap: 26px; }
.subnav nav a {
  font-family: "Open Sans", Arial, sans-serif; font-weight: 600; font-size: 11.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--espresso-2);
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.subnav nav a:hover { color: var(--coral-deep); border-color: var(--coral-deep); }
.subnav nav a.is-here { color: var(--coral-deep); border-color: rgba(214, 90, 72, 0.5); }

/* Interior pages get a slim strip of the seasonal window under the nav */
.cafe-hero--slim .cafe-hero-frame { height: clamp(110px, 14vw, 170px); }

/* No intro on interior pages, so the footer line is simply there */
body.inner .studio-line { opacity: 1; }

/* ============= PAGE HEADING BLOCK ============= */
.page-head {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 24px auto 10px;
  padding: 0 32px;
  text-align: center;
}
.page-head .eyebrow {
  font-family: "Fraunces", serif; font-weight: 600; font-size: 11px;
  letter-spacing: 0.34em; text-transform: uppercase; color: var(--coral);
  display: inline-block; border-top: 2px solid var(--coral); padding-top: 8px; margin: 0 0 10px;
}
.page-head h1 {
  font-family: "Fraunces", serif; font-weight: 600; font-variation-settings: "opsz" 96;
  font-size: clamp(28px, 4.5vw, 42px); line-height: 1.15; margin: 0 0 12px; color: var(--espresso);
}
.page-head .lede {
  font-family: "Open Sans", Arial, sans-serif; font-size: 16px; line-height: 1.65;
  color: var(--espresso-2); margin: 0 auto; max-width: 620px;
}

/* ============= HOME — tagline + three doors ============= */
.brand-tag {
  text-align: center;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 15.5px;
  color: var(--espresso-2);
  max-width: 560px;
  margin: 2px auto 0;
  padding: 0 22px;
}
.doors {
  max-width: 1040px;
  margin: 34px auto 0;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.door {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid rgba(60, 40, 20, 0.1);
  box-shadow: 0 16px 34px -20px rgba(60, 40, 20, 0.4), 0 1px 0 rgba(255,255,255,0.6) inset;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s ease;
  min-height: 270px;
}
.door:hover, .door:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 26px 48px -22px rgba(60, 40, 20, 0.5), 0 0 0 4px rgba(255, 201, 74, 0.18);
}
.door:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.door-preview { height: 150px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.door-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.door-eyebrow {
  font-family: "Open Sans", Arial, sans-serif; font-weight: 700; font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--coral);
}
.door h2 {
  font-family: "Fraunces", serif; font-weight: 600; font-variation-settings: "opsz" 48;
  font-size: 22px; margin: 0; color: var(--espresso);
}
.door p { font-family: "Open Sans", Arial, sans-serif; font-size: 14px; line-height: 1.55; color: var(--espresso-2); margin: 2px 0 0; }
.door .enter {
  margin-top: auto; padding-top: 12px;
  font-family: "Fraunces", serif; font-weight: 500; font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--coral-deep);
}

/* Door 1 — the menu board in miniature: the four memo-card pieces, pinned */
.door-menu .door-preview { background: radial-gradient(circle at 30% 20%, #f6ecd6, #e6d6b4); }
.door-menu .thumbs { display: flex; gap: 10px; }
.door-menu .thumb {
  position: relative;
  width: 54px; height: 66px; padding: 6px;
  border-radius: 5px;
  background: var(--cream);
  box-shadow: 0 6px 14px -6px rgba(60,40,20,0.45);
  transform: rotate(var(--r, 0deg));
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
}
.door-menu .thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.door-menu .thumb::before {
  content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff2c2 0%, var(--yellow-warm) 35%, var(--yellow) 80%);
  box-shadow: 0 0 6px rgba(255, 201, 74, 0.6);
}
.door-menu:hover .thumb { transform: rotate(0deg) translateY(-2px); }

/* Door 2 — Demi pouring: every project is a custom brew */
.door-offer .door-preview { background: radial-gradient(circle at 70% 30%, #efe4cc, #ddc99f); }
.door-offer .door-demi { height: 124px; width: auto; display: block; transition: transform 0.4s cubic-bezier(.34,1.56,.64,1); }
.door-offer:hover .door-demi { transform: rotate(-4deg) translateY(-3px); }

/* Door 3 — the porthole, small and faint */
.door-window .door-preview { background: radial-gradient(circle at 50% 40%, #2d5a5f, #173538); }
.mini-porthole {
  display: block;
  width: 108px; height: 108px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  box-shadow: 0 0 0 3px #c8a56a, 0 0 0 5px #8a6a3e, 0 10px 20px -8px rgba(0,0,0,0.5);
}
.mini-porthole img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: brightness(0.95) saturate(0.78) sepia(0.14) contrast(0.97);
}
.door-window:hover .mini-porthole img { filter: brightness(1.02) saturate(0.85) sepia(0.1); }

/* ============= MENU — the board, with a peek at the window ============= */
.portal--menu { padding-top: 18px; }
.window-teaser {
  display: flex; align-items: center; gap: 16px;
  width: 100%; max-width: 360px;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  border: 1px solid rgba(60, 40, 20, 0.08);
  box-shadow: 0 12px 26px -14px rgba(60, 40, 20, 0.35);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
}
.window-teaser:hover { transform: translateY(-3px); }
.window-teaser .mini-porthole { width: 78px; height: 78px; }
.window-teaser-text { display: flex; flex-direction: column; gap: 3px; }
.window-teaser-text .h { font-family: "Fraunces", serif; font-weight: 600; font-size: 18px; color: var(--espresso); }
.window-teaser-text .sub { font-family: "Open Sans", Arial, sans-serif; font-size: 13px; color: var(--coral-deep); }

/* ============= WORK WITH ME — the offer ============= */
.offer-wrap {
  max-width: 820px;
  margin: 30px auto 0;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 34px;
}
.offer-card {
  position: relative;
  padding: 28px 30px 24px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffdf8 0%, var(--cream-2) 100%);
  border: 1px solid rgba(60, 40, 20, 0.09);
  box-shadow: 0 16px 32px -18px rgba(60, 40, 20, 0.4);
  transform: rotate(var(--rot, 0deg));
  color: var(--espresso);
}
/* yellow-dot thumbtack, like the memo board */
.offer-card::before, .story::before {
  content: ""; position: absolute; top: -8px; left: 50%;
  width: 14px; height: 14px; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff2c2 0%, var(--yellow-warm) 30%, var(--yellow) 75%, #b87f12 100%);
  box-shadow: 0 0 8px rgba(255, 201, 74, 0.6), 0 1px 3px rgba(60,40,20,0.45), inset 0 -1px 2px rgba(40,25,10,0.3);
}
.offer-card--main { border-left: 3px solid var(--yellow); }
.offer-card--deep { background: linear-gradient(165deg, var(--teal) 0%, var(--teal-mid) 100%); color: var(--cream-2); }
.offer-tag {
  font-family: "Open Sans", Arial, sans-serif; font-weight: 700; font-size: 10.5px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--coral); margin-bottom: 6px;
}
.offer-card--deep .offer-tag { color: var(--yellow-warm); }
.offer-card h3 {
  font-family: "Fraunces", serif; font-weight: 600; font-variation-settings: "opsz" 48;
  font-size: 26px; margin: 0 0 10px;
}
.offer-card p, .offer-card li { font-family: "Open Sans", Arial, sans-serif; font-size: 15px; line-height: 1.65; }
.offer-card p { margin: 0 0 10px; color: var(--espresso-2); }
.offer-card--deep p { color: rgba(244, 234, 212, 0.88); }
.offer-card ul { margin: 6px 0 4px; padding-left: 20px; color: var(--espresso-2); }
.offer-card li { margin-bottom: 3px; }
.offer-note { font-family: "Caveat", cursive !important; font-size: 23px !important; font-weight: 600; color: var(--espresso) !important; }
.offer-meta {
  margin: 14px 0 0 !important;
  font-family: "Fraunces", serif !important; font-size: 11px !important; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: rgba(90, 66, 50, 0.7) !important;
}
.offer-card--deep .offer-meta { color: rgba(156, 196, 204, 0.9) !important; }

.story {
  position: relative;
  max-width: 640px;
  margin: 14px auto 0;
  padding: 28px 30px 24px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  border-radius: 14px;
  border: 1px solid rgba(60, 40, 20, 0.08);
  box-shadow: 0 12px 26px -12px rgba(60, 40, 20, 0.3);
  transform: rotate(-0.5deg);
}
.story p { font-family: "Open Sans", Arial, sans-serif; font-size: 15.5px; line-height: 1.7; color: var(--espresso-2); margin: 0 0 12px; }
.story p:last-child { margin-bottom: 0; }
.story p strong { color: var(--espresso); }

.reach-out { text-align: center; margin: 18px auto 0; max-width: 560px; padding: 0 12px; }
.reach-out .hand { font-family: "Caveat", cursive; font-weight: 600; font-size: 30px; color: var(--espresso); margin: 0 0 8px; }
.reach-out p { font-family: "Open Sans", Arial, sans-serif; font-size: 15px; line-height: 1.6; color: var(--espresso-2); margin: 0 0 18px; }
.reach-buttons { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 18px; }
.reach-out .email-btn {
  display: inline-block;
  font-family: "Fraunces", serif; font-weight: 600; font-size: 14px; letter-spacing: 0.06em;
  color: var(--cream); background: var(--coral-deep);
  padding: 13px 26px; border-radius: 999px;
  box-shadow: 0 10px 24px -10px rgba(214, 90, 72, 0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.reach-out .email-btn:hover { background: var(--coral); transform: translateY(-2px); }
.reach-out .demi-btn {
  font-family: "Caveat", cursive; font-weight: 600; font-size: 22px;
  color: var(--espresso); background: none; border: 0; padding: 4px 6px; cursor: inherit;
  border-bottom: 1px dashed rgba(60, 40, 20, 0.35);
}
.reach-out .demi-btn:hover { color: var(--coral-deep); border-color: var(--coral-deep); }
.reach-out .capacity {
  display: block; margin-top: 18px;
  font-family: "Fraunces", serif; font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: rgba(90, 66, 50, 0.6);
}

/* ============= WINDOW — the porthole's own room ============= */
.window-room {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin: 34px auto 0;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.window-room .window-stack { max-width: 420px; }
.window-room .window-frame { max-width: 420px; }
.window-room .porthole-caption { margin-top: 26px; }
.window-room .porthole-caption .h { font-size: 26px; }
.window-room .porthole-caption .sub { font-size: 15px; }
.window-note {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 28px auto 0;
  padding: 0 32px;
  text-align: center;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(90, 66, 50, 0.75);
  font-style: italic;
}

/* ============= RESPONSIVE (multi-page additions) ============= */
@media (max-width: 860px) {
  .doors { grid-template-columns: 1fr; max-width: 460px; }
}
@media (max-width: 640px) {
  .subnav { padding: 14px 18px; gap: 10px; }
  .subnav .subnav-brand img { width: 38px; height: 38px; }
  .subnav .subnav-wordmark .word { font-size: 19px; }
  .subnav nav { gap: 14px; }
  .subnav nav a { font-size: 10px; letter-spacing: 0.1em; }
  .page-head, .offer-wrap, .window-room, .window-note, .doors { padding-left: 18px; padding-right: 18px; }
  .offer-card { padding: 24px 20px 20px; }
  .window-room .window-stack { max-width: min(70vw, 320px); }
}
@media (max-width: 400px) {
  .subnav .subnav-wordmark { display: none; }
}

/* ============= LANTERN — a glow that follows, not a cursor =============
   The real pointer stays, so links are easy to find; the yellow dot
   becomes soft light trailing behind it and brightens over anything
   clickable (the lantern lighting the door). */
html, body { cursor: auto; }
a, button, [data-open-demi] { cursor: pointer; }
.lantern {
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(255, 216, 119, 0.42) 0%, rgba(255, 201, 74, 0.18) 38%, rgba(255, 201, 74, 0) 70%);
  box-shadow: none;
  transition: opacity 0.4s ease, width 0.35s ease, height 0.35s ease;
}
.lantern.is-active { opacity: 0.85; }
.lantern.is-over {
  width: 170px; height: 170px;
  background: radial-gradient(circle, rgba(255, 216, 119, 0.55) 0%, rgba(255, 201, 74, 0.24) 40%, rgba(255, 201, 74, 0) 70%);
}

/* ============= WINDOW — the dive ============= */
.window-page .lantern { mix-blend-mode: screen; }
.dive { position: relative; z-index: 2; }

/* 1 · porthole stage: sticky for a while; scroll progress --p (0→1) grows
   the island out of the glass and lifts the porthole away */
.dive-stage { --p: 0; position: relative; height: 190vh; }
.dive-sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.dive-reveal {
  position: absolute; inset: 0;
  clip-path: circle(calc(150px + var(--p) * 95vmax) at 50% 50%);
  opacity: calc(var(--p) * 3);
}
.dive-reveal img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; display: block; }
.dive-porthole {
  position: relative; z-index: 2;
  max-width: 400px !important;
  transform: scale(calc(1 + var(--p) * 2.4));
  opacity: calc(1 - var(--p) * 1.6);
  will-change: transform, opacity;
}
.dive-porthole .window-frame { max-width: 400px; }
.dive-porthole .porthole-watcher { opacity: calc(1 - var(--p) * 4); }
.dive-cue {
  position: absolute; bottom: 7vh; left: 0; right: 0; margin: 0;
  text-align: center; z-index: 3;
  font-family: "Caveat", cursive; font-size: 24px; font-weight: 600; color: var(--espresso-2);
  opacity: calc(1 - var(--p) * 5);
}
.dive-cue span { display: inline-block; animation: dive-bob 1.8s ease-in-out infinite; }
@keyframes dive-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* 2–4 · chapters: full-bleed watercolor, each fading into the one above */
.dive-chapter {
  position: relative;
  min-height: 130vh;
  overflow: hidden;
  display: flex; align-items: flex-start;
  margin-top: -18vh;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18vh);
          mask-image: linear-gradient(to bottom, transparent 0, #000 18vh);
}
.chapter-surface { margin-top: -100vh; -webkit-mask-image: none; mask-image: none; }
.chapter-art {
  position: absolute; inset: -6% 0; width: 100%; height: 112%;
  object-fit: cover; display: block;
  transform: scale(1.12);
  will-change: transform;
}
.chapter-surface .chapter-art { object-position: center 60%; }
.chapter-reef .chapter-art { object-position: 45% 72%; }
.chapter-archive .chapter-art { object-position: 62% center; }
.chapter-archive { background: #0d2030; }

.dive-log {
  position: sticky; top: 22vh;
  margin: 34vh 0 26vh 7vw;
  max-width: 380px;
  padding: 20px 24px 18px;
  border-radius: 14px;
  background: rgba(253, 251, 247, 0.86);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 18px 38px -20px rgba(20, 30, 40, 0.55);
  color: var(--espresso);
}
.dive-log .depth {
  margin: 0 0 4px;
  font-family: "Caveat", cursive; font-size: 22px; font-weight: 600; color: var(--coral-deep);
}
.dive-log h2 {
  margin: 0 0 8px;
  font-family: "Fraunces", serif; font-weight: 600; font-variation-settings: "opsz" 48; font-size: 26px;
}
.dive-log p:last-child { margin: 0; font-family: "Open Sans", Arial, sans-serif; font-size: 15px; line-height: 1.6; color: var(--espresso-2); }
.dive-log--deep { background: rgba(10, 26, 38, 0.72); color: var(--cream-2); border: 1px solid rgba(255, 216, 119, 0.18); }
.dive-log--deep .depth { color: var(--yellow-warm); }
.dive-log--deep p:last-child { color: rgba(244, 234, 212, 0.85); }

.dive-diver {
  position: absolute; z-index: 1;
  right: 18vw; top: 40%;
  width: clamp(110px, 14vw, 170px); height: auto;
  filter: drop-shadow(0 10px 16px rgba(10, 40, 50, 0.35));
  will-change: transform;
}

/* 5 · the door, not yet open */
.dive-end {
  position: relative;
  padding: 16vh 24px 14vh;
  margin-top: -20vh;
  text-align: center;
  background: linear-gradient(to bottom, rgba(10, 24, 36, 0) 0, #0a1824 20vh, #08131d 100%);
  color: var(--cream-2);
}
.dive-glow {
  display: block; width: 18px; height: 18px; margin: 0 auto 26px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff2c2 0%, var(--yellow-warm) 35%, var(--yellow) 80%);
  box-shadow: 0 0 18px rgba(255, 201, 74, 0.8), 0 0 60px rgba(255, 201, 74, 0.45), 0 0 140px rgba(255, 201, 74, 0.25);
  animation: dive-pulse 3.2s ease-in-out infinite;
}
@keyframes dive-pulse { 0%, 100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.15); opacity: 1; } }
.dive-end-h { margin: 0 0 8px; font-family: "Fraunces", serif; font-weight: 600; font-size: 30px; color: var(--cream); }
.dive-end-sub { margin: 0 auto 26px; max-width: 460px; font-family: "Open Sans", Arial, sans-serif; font-size: 15.5px; line-height: 1.65; color: rgba(244, 234, 212, 0.8); }
.dive-end-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.dive-btn {
  font-family: "Caveat", cursive; font-weight: 600; font-size: 23px;
  color: var(--espresso); background: var(--yellow-warm);
  border: 0; border-radius: 999px; padding: 8px 24px;
  box-shadow: 0 0 0 6px rgba(255, 201, 74, 0.15), 0 12px 26px -12px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s ease;
}
.dive-btn:hover { transform: translateY(-2px); }
.dive-surface { font-family: "Open Sans", Arial, sans-serif; font-size: 13px; letter-spacing: 0.08em; color: rgba(156, 196, 204, 0.85); }
.dive-surface:hover { color: var(--yellow-warm); }

.window-page .site-footer { position: relative; z-index: 2; background: #08131d; margin: 0; padding: 10px 0 34px; }
.window-page .site-footer .studio-line, .window-page .site-footer .studio-line strong { color: rgba(244, 234, 212, 0.75); }
.window-page .site-footer__meta { color: rgba(156, 196, 204, 0.6); }

@media (max-width: 640px) {
  .dive-reveal { clip-path: circle(calc(120px + var(--p) * 110vmax) at 50% 50%); }
  .dive-porthole, .dive-porthole .window-frame { max-width: min(68vw, 300px) !important; }
  .dive-log { margin: 46vh 16px 22vh; max-width: none; }
  .dive-diver { right: auto; left: 8vw; top: 18%; }
}
@media (prefers-reduced-motion: reduce) {
  .dive-stage { height: auto; }
  .dive-sticky { position: relative; height: auto; padding: 30px 0 60px; }
  .dive-reveal, .dive-cue { display: none; }
  .chapter-surface { margin-top: 0; }
}

/* Stage sits above the surface chapter it overlaps; when the sticky lifts
   away it uncovers the very same picture, so the hand-off is seamless. */
.dive-stage { z-index: 2; }
.dive-sticky { background: var(--cream); }
.chapter-surface { z-index: 1; background: #8cc7c3; }
.chapter-surface .chapter-art {
  inset: 0 0 auto 0; height: 100vh; height: 100svh; transform: none !important;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}

/* The surface picture holds still (sticky) while its log card floats up
   over it, then the reef slides in over the top. */
.chapter-surface { display: block; min-height: 0; background: none; padding-bottom: 30vh; }
.chapter-surface .chapter-art {
  position: sticky; top: 0; inset: auto;
  width: 100%; height: 100vh; height: 100svh;
  -webkit-mask-image: none; mask-image: none;
}
.chapter-surface .dive-log { position: relative; top: auto; margin: -38vh 0 0 7vw; }
@media (max-width: 640px) { .chapter-surface .dive-log { margin: -46vh 16px 0; } }
.chapter-surface { padding-bottom: 55vh; }
.chapter-surface .dive-log { margin: -40vh 0 0 7vw; top: auto; position: sticky; top: 30vh; }
.chapter-surface .chapter-art { margin-bottom: 70vh; }
@media (max-width: 640px) { .chapter-surface .dive-log { margin: -40vh 16px 0; top: 40vh; } }
/* overflow: clip (not hidden) so sticky children still stick to the page */
.dive-chapter { overflow: clip; }
.chapter-surface .chapter-art { margin-bottom: 0; }
.chapter-surface .dive-log { margin: 10vh 0 0 7vw; top: 30vh; }
@media (max-width: 640px) { .chapter-surface .dive-log { margin: 10vh 16px 0; top: 40vh; } }
.chapter-surface .chapter-art { inset: auto; top: 0; }
/* sticky stops at the content box, so the space after the card is margin, not padding */
.chapter-surface { padding-bottom: 0; }
.chapter-surface::after { content: ""; display: block; height: 55vh; }

/* Phones: a full-bleed wide painting in a tall chapter only showed its middle.
   Show the reef and archive as a framed band instead, centred on Demi. */
@media (max-width: 640px) {
  .chapter-reef { background: linear-gradient(#2f7378, #225c68 60%, #1c4f5a); }
  .chapter-archive { background: linear-gradient(#1f3f52, #0d2030); }
  .chapter-reef .chapter-art,
  .chapter-archive .chapter-art {
    inset: auto; top: 20vh; left: 0; width: 100%; height: 46vh;
    transform: none !important;
    -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
            mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
  }
  .chapter-reef .chapter-art { object-position: 46% 62%; }
  .chapter-archive .chapter-art { object-position: 74% 50%; }
  .chapter-reef .dive-log, .chapter-archive .dive-log { margin-top: 70vh; }
}
