/* =========================================================
   Kiara Gelle · kiaragelle.com
   Brand: burgundy + butter yellow on cream
   Fonts: Inter Tight (headlines/body), Instrument Serif (accents),
          Pinyon Script (labels)
   ========================================================= */

:root {
  --burgundy: #7B1C2E;
  --burgundy-deep: #5C1222;
  --burgundy-ink: #3A0C16;
  --butter: #F3D96B;
  --butter-soft: #FCE9A6;
  --cream: #FFF6E6;
  --paper: #FBEFD9;
  --white: #FFFDF8;
  --ink: #2B1518;
  --ink-soft: #6E4B50;
  --line: rgba(123, 28, 46, .18);

  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --script: "Pinyon Script", "Snell Roundhand", cursive;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4.5vw, 64px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--cream);
  /* faint paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .48 0 0 0 0 .11 0 0 0 0 .18 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--butter); color: var(--burgundy-ink); }

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.035em; line-height: .98; color: var(--burgundy); }
h1 em, h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
}
h2 { font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4.4rem); }
p { margin: 0 0 1em; }

/* Pinyon Script labels, like the ones in Kiara's reels */
.kicker {
  font-family: var(--script);
  font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.7rem);
  line-height: 1;
  color: var(--burgundy);
  margin: 0 0 .35em;
  transform: rotate(-3deg);
  transform-origin: left center;
  display: inline-block;
}
.kicker-light { color: var(--butter); }

.section-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-sub { color: var(--ink-soft); font-size: 1.08em; margin-top: 1.1em; max-width: 560px; }

/* buttons + links (no pills, no dots) */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  background: var(--burgundy); color: var(--cream);
  border: 0; border-radius: 3px;
  padding: .95em 1.4em;
  font-weight: 700; font-size: 1rem; letter-spacing: -.01em;
  text-decoration: none; cursor: pointer;
  transition: background .2s, transform .2s var(--ease);
}
.btn span { transition: transform .25s var(--ease); }
.btn:hover { background: var(--burgundy-deep); }
.btn:hover span { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn-outline { background: transparent; color: var(--burgundy); box-shadow: inset 0 0 0 1.5px var(--burgundy); }
.btn-outline:hover { background: var(--butter-soft); }
.btn-outline:hover span { transform: translate(3px, -3px); }

.text-link {
  font-weight: 600; text-decoration: none; color: var(--burgundy);
  background: linear-gradient(var(--butter), var(--butter)) no-repeat 0 92% / 100% .38em;
  padding: 0 .1em;
  transition: background-size .25s var(--ease);
}
.text-link:hover { background-size: 100% 100%; }

:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; border-radius: 2px; }

/* highlighter swipe (her reels' butter highlighter) */
.hl {
  background: linear-gradient(100deg, transparent 0 .2em, var(--butter) .2em calc(100% - .15em), transparent calc(100% - .15em)) no-repeat 0 78% / 0% .62em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size 1.1s var(--ease);
  padding: 0 .06em;
}
.hl.on { background-size: 100% .62em; }

/* =============== NAV =============== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  transition: background .3s, box-shadow .3s, padding .3s;
}
.nav.scrolled {
  background: rgba(255, 246, 230, .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 8px;
}
.wordmark {
  font-family: var(--script); font-size: 2rem; line-height: 1;
  color: var(--burgundy); text-decoration: none; padding-top: 4px;
}
.nav-links { display: flex; gap: clamp(18px, 2.4vw, 34px); align-items: center; }
.nav-links a {
  text-decoration: none; font-weight: 500; font-size: .98rem; color: var(--ink);
  position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--burgundy); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links .nav-hi { color: var(--burgundy); font-weight: 700; }
.nav-links .nav-hi::after { transform: scaleX(1); background: var(--butter); height: 6px; bottom: 3px; z-index: -1; }
.menu-btn {
  display: none; background: none; border: 0; cursor: pointer;
  font-weight: 700; color: var(--burgundy); padding: 8px 0;
}

/* =============== HERO =============== */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(110px, 14vh, 150px) var(--gutter) clamp(56px, 8vw, 96px);
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 56px); align-items: center;
  min-height: min(100svh, 940px);
}
.hero h1 {
  font-size: clamp(3rem, 1.5rem + 4.2vw, 4.85rem);
  margin-bottom: .4em;
}
.hero h1 em { color: var(--burgundy); }
.lede { font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); max-width: 31em; color: var(--ink); }
.aside {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem);
  color: var(--burgundy); margin-bottom: 1.4em;
}
.hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }

/* the desk: draggable scrapbook */
.desk {
  position: relative; width: 100%; max-width: 640px; justify-self: end;
  aspect-ratio: 1 / 1.03;
  container-type: inline-size;
}
.item {
  position: absolute;
  translate: var(--x, 0px) var(--y, 0px);
  rotate: var(--r, 0deg);
  user-select: none; -webkit-user-select: none;
  animation: drop .9s var(--ease) both;
  animation-delay: calc(var(--d, 0s) + .15s);
  transition: scale .2s var(--ease), filter .2s;
  filter: drop-shadow(0 1px 1px rgba(58, 12, 22, .12)) drop-shadow(0 12px 18px rgba(58, 12, 22, .18));
}
.can-drag .item { cursor: grab; touch-action: none; }
.item.dragging { cursor: grabbing; scale: 1.04; filter: drop-shadow(0 2px 2px rgba(58, 12, 22, .12)) drop-shadow(0 26px 30px rgba(58, 12, 22, .26)); }
.item.landed { animation: none; }
.item.landed.wiggle { animation: wiggle .5s var(--ease); }
@keyframes drop {
  from { opacity: 0; transform: translateY(-26px) scale(1.08); }
  to { opacity: 1; transform: none; }
}
@keyframes wiggle {
  0%, 100% { transform: none; }
  30% { transform: rotate(-4deg) scale(1.03); }
  65% { transform: rotate(3deg); }
}

.polaroid { margin: 0; background: var(--white); padding: 3.2cqw 3.2cqw 10cqw; }
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; pointer-events: none; }
.polaroid figcaption {
  position: absolute; left: 0; right: 0; bottom: 2.4cqw; text-align: center;
  font-family: var(--script); font-size: 5.6cqw; line-height: 1; color: var(--burgundy);
}
.p-cafe { width: 47cqw; left: 7cqw; top: 3cqw; z-index: 2; }
.p-cafe img { object-position: 50% 40%; }
.p-forum { width: 36cqw; right: 3cqw; top: 11cqw; z-index: 3; }
.p-forum img { object-position: 50% 30%; }
.p-forum figcaption { font-size: 5cqw; }

.tape {
  position: absolute; top: -3.4cqw; left: 50%; width: 19cqw; height: 6cqw;
  translate: -50% 0; rotate: -4deg;
  background: rgba(243, 217, 107, .78);
  clip-path: polygon(3% 0, 97% 4%, 100% 22%, 97% 45%, 100% 70%, 96% 100%, 4% 96%, 0 74%, 3% 50%, 0 24%);
  z-index: 2;
}
.tape-r { rotate: 7deg; width: 15cqw; background: rgba(252, 233, 166, .85); }

.pass {
  width: 58cqw; left: 0; bottom: 9cqw; z-index: 4;
  display: flex; background: var(--white); border-radius: 1.6cqw; overflow: hidden;
  font-size: 2.3cqw; color: var(--ink);
}
.pass-main { flex: 1; padding: 2.8cqw 3.2cqw 3cqw; }
.pass-top {
  display: flex; justify-content: space-between; gap: 2cqw;
  text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: 1.7cqw;
  color: var(--burgundy); border-bottom: 1px dashed var(--line); padding-bottom: 1.6cqw;
}
.pass-route { display: flex; align-items: center; gap: 2.6cqw; margin: 2cqw 0 1.6cqw; }
.pass-route .code { font-weight: 900; font-size: 8.4cqw; letter-spacing: -.04em; line-height: .9; color: var(--burgundy); }
.plane { width: 5.4cqw; height: 5.4cqw; fill: var(--burgundy); rotate: 90deg; }
.pass-rows { display: flex; gap: 3.4cqw; font-weight: 700; font-size: 2.1cqw; line-height: 1.25; }
.pass-rows small { display: block; font-weight: 500; font-size: 1.5cqw; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }
.pass-stub {
  width: 11cqw; background: var(--burgundy); position: relative;
  display: flex; align-items: center; justify-content: center;
  border-left: 2px dashed var(--cream);
}
.barcode {
  width: 5.2cqw; height: 72%;
  background: repeating-linear-gradient(0deg, var(--cream) 0 2px, transparent 2px 4px, var(--cream) 4px 5px, transparent 5px 8px, var(--cream) 8px 11px, transparent 11px 13px);
}

.note {
  width: 33cqw; right: 1cqw; bottom: 0; z-index: 5;
  background: var(--butter-soft);
  padding: 3.2cqw 3.4cqw 3.6cqw;
  font-family: var(--serif); font-size: 3.3cqw; line-height: 1.25; color: var(--burgundy-ink);
  background-image: linear-gradient(180deg, rgba(243, 217, 107, .65) 0 15%, transparent 15%);
}
.note-title { font-family: var(--script); font-size: 6cqw; line-height: 1; margin: 0 0 1.6cqw; color: var(--burgundy); }
.note ul { list-style: none; margin: 0; padding: 0; }
.note li { position: relative; padding-left: 4.6cqw; margin: .5cqw 0; font-style: italic; }
.note li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 2.6cqw; height: 2.6cqw;
  border: 1.5px solid var(--burgundy); border-radius: 2px;
}
.note li.done { text-decoration: line-through; text-decoration-color: var(--burgundy); text-decoration-thickness: 1.5px; }
.note li.done::after {
  content: ""; position: absolute; left: .6cqw; top: .05em; width: 1.3cqw; height: 2.6cqw;
  border: solid var(--burgundy); border-width: 0 2.5px 2.5px 0; rotate: 40deg;
}

.burst {
  width: 27cqw; height: 27cqw; right: -1cqw; top: -4cqw; z-index: 6;
  display: grid; place-items: center; text-align: center;
}
.burst svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.burst-shape { fill: var(--burgundy); }
.burst span {
  position: relative; font-weight: 700; font-size: 1.85cqw; line-height: 1.2; color: var(--butter-soft);
  text-transform: uppercase; letter-spacing: .04em;
}
.burst b { display: block; font-weight: 900; color: var(--butter); font-size: 2.3cqw; }

.desk-hint {
  position: absolute; left: 22cqw; bottom: -6cqw; margin: 0;
  display: flex; align-items: flex-end; gap: 6px;
  font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--ink-soft);
  opacity: 0; animation: fadein .8s ease 1.6s forwards;
}
.desk-hint svg { width: 46px; height: 30px; fill: none; stroke: var(--ink-soft); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; rotate: 180deg; scale: -1 1; margin-bottom: 6px; }
.no-drag .desk-hint { display: none; }
@keyframes fadein { to { opacity: 1; } }

/* =============== TAPE STRIP =============== */
.tape-strip {
  background: var(--burgundy); color: var(--butter);
  rotate: -1.6deg; margin: 0 -20px; overflow: hidden;
  padding: 14px 0; position: relative; z-index: 3;
  box-shadow: 0 10px 24px -14px rgba(58, 12, 22, .5);
}
.tape-track {
  display: flex; align-items: center; gap: 28px; width: max-content;
  animation: slide 38s linear infinite;
  font-weight: 800; font-size: clamp(1.05rem, .9rem + .7vw, 1.5rem); text-transform: uppercase; letter-spacing: -.01em;
  white-space: nowrap;
}
.tape-track i {
  width: .8em; height: .8em; background: var(--butter-soft); display: inline-block;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
@keyframes slide { to { transform: translateX(-50%); } }

/* =============== ABOUT =============== */
.about {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(80px, 11vw, 150px) var(--gutter) clamp(40px, 6vw, 80px);
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 110px); align-items: start;
}
.about-photos { position: relative; padding-bottom: 60px; }
.photo-main { margin: 0; }
.photo-main img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 60%; border-radius: 2px; }
.photo-sticker {
  position: absolute; width: 42%; right: -6%; bottom: 0; margin: 0;
  background: var(--white); padding: 8px 8px 8px; rotate: 5deg;
  box-shadow: 0 16px 30px -16px rgba(58, 12, 22, .45);
}
.photo-sticker img { aspect-ratio: 1; object-fit: cover; object-position: 50% 30%; width: 100%; }
.photo-label {
  position: absolute; left: 0; bottom: 6px; margin: 0;
  font-family: var(--serif); font-style: italic; color: var(--ink-soft); font-size: 1rem; line-height: 1.3;
}
.about-text h2 { margin-bottom: .55em; }
.about-text > p:not(.kicker) { max-width: 34em; font-size: 1.07em; }

.index-card {
  margin-top: 36px; max-width: 470px;
  background: var(--white);
  border-top: 3px solid var(--burgundy);
  padding: 16px 24px 12px;
  rotate: -1deg;
  box-shadow: 0 14px 30px -20px rgba(58, 12, 22, .45);
}
.index-title { font-family: var(--script); font-size: 2rem; color: var(--burgundy); margin: 0 0 4px; line-height: 1.2; }
.index-card dl { margin: 0; }
.index-card dl div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; min-height: 38px; align-items: center; border-bottom: 1px solid rgba(123, 28, 46, .13); padding: 4px 0; }
.index-card dl div:last-child { border-bottom: 0; }
.index-card dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--ink-soft); }
.index-card dd { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.18rem; line-height: 1.2; color: var(--ink); }

/* =============== WORK =============== */
.work { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(90px, 12vw, 160px); }
.services { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--burgundy); }
.service {
  display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.25fr) 200px;
  gap: 24px; align-items: baseline;
  padding: clamp(26px, 3.2vw, 40px) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background .3s;
}
.service::before {
  content: ""; position: absolute; inset: 0 calc(-1 * var(--gutter)); z-index: -1;
  background: var(--butter-soft); opacity: 0; transition: opacity .3s;
}
.service:hover::before { opacity: .55; }
.service .num { font-family: var(--serif); font-style: italic; font-size: 2.2rem; color: var(--burgundy); line-height: 1; }
.service h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.5rem); }
.service p { margin: 0; color: var(--ink); max-width: 34em; }
.service .for { font-family: var(--serif); font-style: italic; font-size: 1.12rem; color: var(--ink-soft); text-align: right; }
.work-cta { margin-top: 36px; font-size: 1.15rem; }

/* =============== AI SECTION =============== */
.ai {
  background: var(--burgundy); color: var(--cream);
  padding: clamp(90px, 11vw, 150px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px); align-items: center;
  position: relative; overflow: hidden;
}
.ai > * { max-width: 600px; }
.ai-copy { justify-self: end; width: 100%; }
.ai h2 { color: var(--cream); margin-bottom: .55em; }
.ai h2 em { color: var(--butter); }
.ai-copy > p:not(.kicker) { color: rgba(255, 246, 230, .88); font-size: 1.07em; }

.terminal {
  margin-top: 30px; background: var(--burgundy-ink); border-radius: 8px;
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 246, 230, .08);
  font-family: var(--mono); font-size: .9rem; overflow: hidden;
}
.terminal-bar {
  padding: 9px 16px; font-size: .74rem; letter-spacing: .04em; color: rgba(255, 246, 230, .5);
  border-bottom: 1px solid rgba(255, 246, 230, .08);
}
.terminal-body { padding: 16px 18px 18px; min-height: 176px; }
.t-line { margin: 0 0 8px; line-height: 1.45; color: rgba(255, 246, 230, .9); }
.t-prompt { color: var(--cream); }
.t-caret { color: var(--butter); font-weight: 700; }
.t-cursor {
  display: inline-block; width: .55em; height: 1.1em; vertical-align: -.18em; margin-left: 2px;
  background: var(--butter); animation: blink 1s steps(1) infinite;
}
.t-cursor.off { display: none; }
@keyframes blink { 50% { opacity: 0; } }
.t-step { opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s; padding-left: 1.6em; position: relative; }
.t-step::before { content: "✓"; position: absolute; left: 0; color: var(--butter); }
.t-step.show { opacity: 1; transform: none; }
.t-done { color: var(--butter); }
.ai-note { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--butter-soft) !important; margin-top: 16px; }

.ai-stage {
  position: relative; width: 100%; aspect-ratio: 1 / 1.08;
  display: grid; place-items: center;
}
.stage-burst { position: absolute; width: 86%; left: 14%; top: 8%; fill: var(--butter); opacity: .95; animation: spin 60s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.phone {
  position: relative; z-index: 2;
  width: 46%; aspect-ratio: 9 / 18.6;
  background: #120508; border-radius: 13% / 6.3%;
  padding: 3.2%;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55), inset 0 0 0 2px rgba(255, 255, 255, .06);
  translate: 18% 2%;
}
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 10% / 4.9%; overflow: hidden; background: var(--butter); }
.phone-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.phone-screen.playing video { opacity: 1; }
.rendering {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px;
  color: var(--burgundy); font-family: var(--serif); font-style: italic; font-size: 1.15rem;
}
.rendering i { width: 90px; height: 5px; border-radius: 3px; background: rgba(123, 28, 46, .2); position: relative; overflow: hidden; }
.rendering i::after { content: ""; position: absolute; inset: 0; background: var(--burgundy); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .2s linear; }

.roll { position: absolute; z-index: 3; left: 0; top: 13%; width: 34%; height: 70%; }
.roll img {
  position: absolute; width: 74%; aspect-ratio: 4 / 5; object-fit: cover;
  border: 5px solid var(--white); box-shadow: 0 12px 20px -10px rgba(0, 0, 0, .5);
  transition: transform .9s var(--ease), opacity .7s ease;
}
.roll img:nth-child(1) { left: 0; top: 0; rotate: -8deg; }
.roll img:nth-child(2) { left: 26%; top: 30%; rotate: 6deg; }
.roll img:nth-child(3) { left: 6%; top: 58%; rotate: -4deg; }
.ai-stage.sent .roll img { opacity: 0; transform: translate(190%, 40%) scale(.35) rotate(12deg); }
.ai-stage.sent .roll img:nth-child(2) { transition-delay: .12s; }
.ai-stage.sent .roll img:nth-child(3) { transition-delay: .24s; transform: translate(190%, -20%) scale(.35) rotate(12deg); }
.roll-label, .phone-label {
  position: absolute; z-index: 4; margin: 0;
  font-family: var(--script); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); color: var(--cream); line-height: 1;
  transition: opacity .5s;
}
.roll-label { left: 4%; top: 4%; rotate: -6deg; }
.phone-label { right: -2%; bottom: 10%; rotate: -8deg; color: var(--butter); opacity: 0; }
.ai-stage.sent .roll-label { opacity: 0; }
.ai-stage.done .phone-label { opacity: 1; }
.replay {
  position: absolute; z-index: 5; left: 2%; bottom: 2%;
  background: none; border: 0; cursor: pointer;
  color: var(--butter-soft); font-weight: 600; font-size: .95rem;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
  opacity: 0; pointer-events: none; transition: opacity .4s;
}
.ai-stage.done .replay { opacity: 1; pointer-events: auto; }

/* =============== SHOP =============== */
.shop { max-width: var(--max); margin: 0 auto; padding: clamp(90px, 12vw, 160px) var(--gutter) clamp(60px, 8vw, 110px); }
.shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3.4vw, 48px); }
.zine { display: flex; flex-direction: column; }
.cover {
  position: relative; display: block; aspect-ratio: 3 / 4; text-decoration: none; overflow: hidden;
  border-radius: 2px 6px 6px 2px;
  padding: 9% 9% 8%;
  box-shadow: inset 6px 0 0 rgba(0, 0, 0, .07), 0 18px 34px -22px rgba(58, 12, 22, .55);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  container-type: inline-size;
}
.zine:nth-child(1) .cover { rotate: -1.5deg; }
.zine:nth-child(2) .cover { rotate: 1deg; }
.zine:nth-child(3) .cover { rotate: -.6deg; }
.cover:hover { transform: translateY(-8px) rotate(1deg); box-shadow: inset 6px 0 0 rgba(0, 0, 0, .07), 0 30px 44px -22px rgba(58, 12, 22, .6); }
.cover-tag {
  display: inline-block; font-size: 4.2cqw; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  border-bottom: 2px solid currentColor; padding-bottom: 2px;
}
.cover-title { display: block; font-weight: 900; letter-spacing: -.045em; line-height: .88; margin-top: 12cqw; font-size: 17cqw; }
.cover-script { display: block; font-family: var(--script); font-size: 15cqw; line-height: 1; margin-top: 1cqw; }
.cover-serif { display: block; font-family: var(--serif); font-style: italic; font-size: 6.4cqw; line-height: 1.1; margin-top: 5cqw; max-width: 80%; }
.cover-by { position: absolute; left: 9%; bottom: 7%; font-size: 3.8cqw; font-weight: 600; letter-spacing: .02em; }

.cover-playbook { background: var(--butter); color: var(--burgundy); }
.cover-wifi { position: absolute; right: 9%; bottom: 7%; width: 20cqw; fill: none; stroke: var(--burgundy); stroke-width: 5; stroke-linecap: round; }

.cover-kit { background: var(--burgundy); color: var(--butter); }
.cover-kit .cover-serif { color: var(--butter-soft); }
.filmstrip {
  position: absolute; right: -6%; bottom: 18%; width: 54%; height: 14cqw; rotate: -12deg;
  background:
    repeating-linear-gradient(90deg, var(--burgundy) 0 3cqw, transparent 3cqw 6cqw) 0 1.2cqw / 100% 2cqw no-repeat,
    repeating-linear-gradient(90deg, var(--burgundy) 0 3cqw, transparent 3cqw 6cqw) 0 calc(100% - 1.2cqw) / 100% 2cqw no-repeat,
    linear-gradient(var(--butter), var(--butter));
}

.cover-calls { background: var(--white); color: var(--burgundy); border: 1px solid var(--line); }
.cover-photo {
  position: absolute; right: 9%; top: 8%; width: 40%; aspect-ratio: 1;
  border-radius: 50%; overflow: hidden; border: 4px solid var(--butter);
}
.cover-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.cover-calls .cover-title { margin-top: 42cqw; }

.zine-meta { padding: 22px 4px 0; }
.status {
  font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--ink-soft); margin: 0 0 4px;
  display: flex; align-items: center; gap: 10px;
}
.status::before { content: ""; width: 26px; height: 1.5px; background: var(--burgundy); }
.zine-meta h3 { font-size: 1.55rem; margin-bottom: 8px; letter-spacing: -.025em; }
.zine-meta p { color: var(--ink); margin-bottom: 12px; }

/* =============== CONTACT / POSTCARD =============== */
.contact { max-width: var(--max); margin: 0 auto; padding: clamp(60px, 8vw, 110px) var(--gutter) clamp(140px, 16vw, 200px); }
.postcard { perspective: 2000px; max-width: 980px; margin: 0 auto; }
.pc-inner {
  display: grid; position: relative;
  transform-style: preserve-3d; transition: transform 1s var(--ease);
}
.postcard.flipped .pc-inner { transform: rotateY(180deg); }
.pc-face {
  grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: var(--white); border-radius: 6px;
  box-shadow: 0 2px 0 rgba(58, 12, 22, .05), 0 40px 70px -40px rgba(58, 12, 22, .55);
  min-height: 520px;
}
.pc-front {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 48px 28px 40px;
  background:
    radial-gradient(circle at 15% 20%, rgba(243, 217, 107, .35), transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(243, 217, 107, .35), transparent 45%),
    var(--white);
  border: 12px solid var(--white);
  outline: 2px solid var(--butter); outline-offset: -22px;
}
.pc-greet { font-family: var(--script); font-size: clamp(2.4rem, 1.8rem + 2.4vw, 4rem); color: var(--burgundy); margin: 0; line-height: 1; rotate: -4deg; }
.pc-letters { margin: .05em 0 0; line-height: .9; display: flex; justify-content: center; }
.pc-letters span {
  font-weight: 900; font-size: clamp(5.4rem, 2rem + 14vw, 13.5rem); letter-spacing: -.02em;
  background: var(--img) center / cover no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 2px var(--burgundy);
  filter: drop-shadow(5px 5px 0 var(--butter)) drop-shadow(2px 2px 0 var(--burgundy));
  padding: 0 .01em;
}
.pc-br { display: none; }
.pc-letters span:nth-child(odd) { rotate: -2deg; }
.pc-letters span:nth-child(even) { rotate: 2deg; translate: 0 .03em; }
.pc-sub { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--ink-soft); margin: .6em 0 1.4em; }
.pc-flip {
  background: none; border: 0; cursor: pointer; color: var(--burgundy); font-weight: 700; font-size: 1rem;
  text-decoration: underline; text-decoration-color: var(--butter); text-decoration-thickness: 5px; text-underline-offset: -1px;
  text-decoration-skip-ink: none; padding: 6px 2px;
}

.pc-back {
  transform: rotateY(180deg);
  display: grid; grid-template-columns: 1.15fr 1fr;
  padding: 40px 44px;
  background: var(--white);
  position: relative;
}
.pc-back::before { /* the divider down the middle of a postcard */
  content: ""; position: absolute; top: 44px; bottom: 44px; left: 53.5%; width: 1.5px; background: var(--line);
}
.pc-msg { padding-right: 40px; display: flex; flex-direction: column; }
.pc-dear { font-family: var(--script); font-size: 2.4rem; color: var(--burgundy); line-height: 1.1; margin-bottom: 6px; }
.pc-msg textarea {
  flex: 1; min-height: 210px; width: 100%; resize: vertical;
  border: 0; outline: 0; background: transparent;
  font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--ink);
  line-height: 40px;
  background-image: repeating-linear-gradient(180deg, transparent 0 39px, var(--line) 39px 40px);
  background-attachment: local;
  padding: 0 2px;
}
.pc-msg textarea::placeholder { color: rgba(110, 75, 80, .55); }
.pc-msg textarea:focus { background-image: repeating-linear-gradient(180deg, transparent 0 39px, rgba(123, 28, 46, .4) 39px 40px); }
.pc-topics { border: 0; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.pc-topics legend { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--ink-soft); margin-bottom: 8px; padding: 0; }
.pc-topics label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: .98rem; }
.pc-topics input { appearance: none; -webkit-appearance: none; width: 17px; height: 17px; border: 1.5px solid var(--burgundy); border-radius: 50%; margin: 0; display: grid; place-items: center; cursor: pointer; }
.pc-topics input::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--burgundy); scale: 0; transition: scale .15s; }
.pc-topics input:checked::after { scale: 1; }
.pc-topics input:checked + span { color: var(--burgundy); font-weight: 600; background: linear-gradient(var(--butter-soft), var(--butter-soft)) no-repeat 0 85% / 100% .45em; }

.pc-side { padding-left: 40px; display: flex; flex-direction: column; }
.pc-stamp-row { display: flex; justify-content: flex-end; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
.pc-stamp {
  width: 90px; height: 110px; position: relative; rotate: 3deg;
  background: var(--white); padding: 7px;
  /* perforated edge: holes along the border, solid in the middle */
  -webkit-mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle at 5px 5px, transparent 3.2px, #000 3.7px) -5px -5px / 10px 10px;
  mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle at 5px 5px, transparent 3.2px, #000 3.7px) -5px -5px / 10px 10px;
  filter: drop-shadow(0 2px 3px rgba(58, 12, 22, .25));
}
.pc-stamp img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.pc-stamp span { position: absolute; right: 10px; bottom: 8px; font-weight: 900; color: var(--white); font-size: .95rem; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.pc-postmark {
  width: 92px; height: 92px; border-radius: 50%; border: 2px solid rgba(123, 28, 46, .55);
  display: grid; place-content: center; text-align: center; rotate: -14deg; margin-top: 18px; margin-right: -30px; z-index: 1;
  color: rgba(123, 28, 46, .6); font-weight: 800; font-size: .7rem; letter-spacing: .14em; line-height: 1.5;
  position: relative;
}
.pc-postmark::before, .pc-postmark::after {
  content: ""; position: absolute; left: 86%; width: 70px; height: 0; border-top: 2px solid rgba(123, 28, 46, .4);
}
.pc-postmark::before { top: 38%; }
.pc-postmark::after { top: 58%; }
.pc-field { display: block; border-bottom: 1.5px solid var(--line); margin-bottom: 14px; padding-bottom: 2px; }
.pc-field:focus-within { border-color: var(--burgundy); }
.pc-field span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--ink-soft); }
.pc-field input {
  width: 100%; border: 0; outline: 0; background: transparent; padding: 4px 0 6px;
  font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--ink);
}
.pc-field input::placeholder { color: rgba(110, 75, 80, .5); }
.pc-to { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--ink-soft); line-height: 1.35; margin: 4px 0 10px; }
.pc-error { color: var(--burgundy); font-weight: 600; font-size: .92rem; min-height: 1.4em; margin: 0 0 6px; }
.pc-actions { display: flex; align-items: center; gap: 20px; margin-top: auto; flex-wrap: wrap; }
.pc-flip-back { font-weight: 600; text-decoration-thickness: 3px; }
.postcard.sent .pc-stamp { animation: stamp .6s var(--ease); }
@keyframes stamp { 40% { scale: 1.25; rotate: -6deg; } }

/* =============== FOOTER =============== */
.footer {
  background: var(--burgundy); color: var(--cream);
  padding: 0 var(--gutter) 40px; position: relative;
}
.doll-track { position: absolute; left: 0; right: 0; top: 0; height: 0; pointer-events: none; }
.doll {
  position: absolute; bottom: -8px; left: 0; height: clamp(104px, 9vw, 140px); width: auto;
  translate: var(--dx, 40px) 0; scale: var(--flip, 1) 1;
  filter: drop-shadow(0 6px 6px rgba(58, 12, 22, .25));
}
.footer-mark {
  font-family: var(--script); color: var(--butter);
  font-size: clamp(4.6rem, 2rem + 13vw, 13rem); line-height: 1.15; margin: 0;
  padding-top: clamp(50px, 6vw, 80px); letter-spacing: -.01em;
  white-space: nowrap;
}
.footer-cols {
  display: grid; grid-template-columns: auto auto 1fr; gap: 28px clamp(40px, 7vw, 110px);
  border-top: 1px solid rgba(255, 246, 230, .2); padding-top: 28px; margin-top: 10px;
  max-width: var(--max);
}
.footer-cols a { display: block; text-decoration: none; padding: 3px 0; font-weight: 500; }
.footer-cols a:hover { color: var(--butter); }
.footer-h { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--butter-soft); margin: 0 0 6px; }
.footer-small { justify-self: end; align-self: end; text-align: right; color: rgba(255, 246, 230, .65); font-size: .9rem; margin: 0; }

/* reveal on scroll (gentle) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* =============== RESPONSIVE =============== */
@media (max-width: 1080px) {
  .service { grid-template-columns: 64px minmax(0, 1fr); gap: 6px 18px; }
  .service h3 { grid-column: 2; }
  .service p { grid-column: 2; margin-top: 6px; }
  .service .for { grid-column: 2; text-align: left; margin-top: 6px; }
  .service .num { grid-row: 1; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 108px; }
  .desk { justify-self: center; max-width: 560px; margin-top: 8px; margin-bottom: 30px; }
  .about { grid-template-columns: 1fr; }
  .about-photos { max-width: 420px; }
  .ai { grid-template-columns: 1fr; }
  .ai-copy { justify-self: start; }
  .ai-stage { max-width: 520px; justify-self: center; }
  .shelf { grid-template-columns: 1fr 1fr; }
  .zine:nth-child(3) { grid-column: 1 / -1; max-width: calc(50% - 12px); }
  .pc-back { grid-template-columns: 1fr; padding: 32px 26px; }
  .pc-back::before { display: none; }
  .pc-msg { padding-right: 0; }
  .pc-side { padding-left: 0; border-top: 1.5px solid var(--line); margin-top: 22px; padding-top: 18px; }
  .pc-stamp-row { order: -1; position: absolute; top: 18px; right: 18px; margin: 0; }
  .pc-stamp { width: 70px; height: 90px; }
  .pc-postmark { width: 70px; height: 70px; font-size: .58rem; margin-top: 10px; }
  .pc-dear { padding-right: 150px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-small { grid-column: 1 / -1; justify-self: start; text-align: left; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed; inset: 58px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--cream); padding: 8px var(--gutter) 20px;
    box-shadow: 0 20px 30px -20px rgba(58, 12, 22, .3);
    transform: translateY(-10px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  }
  .nav-links a { font-size: 1.4rem; font-weight: 700; padding: 10px 0; color: var(--burgundy); }
  .nav-links a::after { display: none; }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav.open { background: var(--cream); }
  .menu-btn { display: block; }
  .hero h1 { font-size: clamp(2.7rem, 11.5vw, 3.6rem); }
  .hero { padding-top: 90px; gap: 8px; }
  .hero .kicker { font-size: 1.8rem; }
  .lede { font-size: 1.02rem; }
  .aside { font-size: 1.22rem; margin-bottom: 1.1em; }
  .hero-links { gap: 12px 22px; }
  .btn { padding: .85em 1.2em; }
  .tape-strip { padding: 10px 0; }
  .shelf { grid-template-columns: 1fr; gap: 34px; }
  .zine:nth-child(3) { max-width: none; }
  .zine { flex-direction: row; align-items: center; gap: 18px; }
  .cover { width: 44%; flex: none; }
  .zine-meta { padding: 0; }
  .zine-meta h3 { font-size: 1.3rem; }
  .zine-meta p { font-size: .95rem; line-height: 1.45; }
  .photo-sticker { width: 44%; right: -2%; }
  .ai-stage { aspect-ratio: 1 / 1.15; }
  .phone { width: 52%; translate: 22% 0; }
  .roll { width: 34%; top: 16%; }
  .pc-face { min-height: 0; }
  .pc-front { padding: 40px 14px 32px; border-width: 8px; outline-offset: -16px; }
  .pc-letters { flex-wrap: wrap; line-height: .92; }
  .pc-br { display: block; flex-basis: 100%; height: 0; }
  .pc-letters span { font-size: 38vw; -webkit-text-stroke-width: 1.5px; filter: drop-shadow(3px 3px 0 var(--butter)) drop-shadow(1px 1px 0 var(--burgundy)); }
  .pc-sub { font-size: 1.1rem; }
  .pc-dear { font-size: 2rem; padding-right: 130px; }
  .pc-stamp { width: 50px; height: 70px; padding: 6px; }
  .pc-stamp span { font-size: .7rem; right: 7px; bottom: 6px; }
  .pc-stamp-row { top: 12px; right: 14px; }
  .pc-postmark { width: 56px; height: 56px; margin-right: -22px; margin-top: 6px; font-size: .52rem; }
  .pc-postmark::before, .pc-postmark::after { width: 40px; }
  .pc-msg textarea { min-height: 170px; font-size: 1.2rem; margin-top: 14px; }
  .index-card { padding: 14px 18px 10px; }
  .index-card dl div { grid-template-columns: 84px 1fr; }
  .index-card dd { font-size: 1.05rem; }
  .footer-mark { font-size: clamp(3.6rem, 20vw, 6rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .tape-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}
