/* Blaikafi landing page: a café counter under a pendant lamp. Pull the cord to switch the lights. */

.home {
  --paper: #f4ebdf;
  --paper-2: #eadcc8;
  --card: #fffaf1;
  --ink: #2b1d16;
  --soft: #6d5a4d;
  --accent: #92562c;
  --rule: #2b1d16;
  --line: #2b1d16;
  --saucer: #fbf4ea;
  --saucer-2: #e2cfb6;
  --steam-a: rgba(160, 100, 58, .7);
  --steam-b: rgba(107, 66, 40, .6);
  --shade: #c4643d;
  --bulb: #fff1cf;
  --bulb-edge: #ecd29a;
  --shade-in-1: #8a3d1c;
  --shade-in-2: #4e1f0c;
  --glow: 0;
  --wood: #b07a4c;
  --wood-top: #cf9a69;
  --pad: clamp(1.2rem, 4vw, 3rem);
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.6 "Figtree", system-ui, sans-serif;
}
[data-lights="off"] .home {
  --paper: #17100c;
  --paper-2: #221812;
  --card: #fff6e6;
  --ink: #f1e3d0;
  --soft: #b6a08b;
  --accent: #f0a868;
  --rule: #4a372b;
  --line: #1a100b;
  --saucer: #e9d6bd;
  --saucer-2: #8f7458;
  --steam-a: rgba(255, 214, 160, .75);
  --steam-b: rgba(255, 196, 140, .6);
  --bulb: #ffe7a3;
  --bulb-edge: #ffb84d;
  --shade-in-1: #ffe2a0;
  --shade-in-2: #f08a3c;
  --glow: 1;
  --wood: #5b3a24;
  --wood-top: #8a5a37;
}
[data-lights="off"] { color-scheme: dark; background: #17100c; }

/* Paper grain over everything, so flat colour reads like printed stock. */
.home::before {
  content: ""; position: fixed; inset: -50%; z-index: 60; pointer-events: none; opacity: .3; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .17 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-lights="off"] .home::before { mix-blend-mode: screen; opacity: .1; }

/* Switching the lights: the new look spreads out in a circle from the cord. */
.lights-vt::view-transition-old(root) { animation: none; }
.lights-vt::view-transition-new(root) { animation: lights 900ms cubic-bezier(.5, 0, .2, 1) both; }
@keyframes lights { from { clip-path: circle(0 at var(--lx, 80%) var(--ly, 30%)); } to { clip-path: circle(150vmax at var(--lx, 80%) var(--ly, 30%)); } }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem var(--pad); background: var(--paper); transition: box-shadow .3s;
}
.scrolled .top { box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 14%, transparent); }
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; }
.brand span { font: 600 1.5rem/1 "Fraunces", serif; font-variation-settings: "SOFT" 100, "WONK" 1; letter-spacing: -.03em; }
.brand-mark { width: 40px; height: 35px; }
.mini-steam { stroke-dasharray: 18; animation: mini-steam 2.6s ease-in-out infinite; }
@keyframes mini-steam { 0% { stroke-dashoffset: 18; opacity: 0; } 40% { opacity: 1; } 100% { stroke-dashoffset: -18; opacity: 0; } }
.top-nav { display: flex; align-items: center; gap: clamp(.9rem, 2.6vw, 2.2rem); font-weight: 600; font-size: 16px; }
.top-nav a { text-decoration: none; position: relative; padding-block: .3rem; white-space: nowrap; }
.top-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; border-radius: 2px;
  transform: scaleX(0); transform-origin: right; transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.top-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- The counter ---------- */
.counter {
  position: relative; display: grid; grid-template-rows: 1fr auto auto;
  min-height: calc(100svh - 68px); padding: 0 var(--pad);
}
.entry { align-self: center; max-width: 36rem; padding-block: clamp(1.6rem, 5vh, 3rem); position: relative; z-index: 3; }
.headword { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; }
.headword b { font: 600 clamp(1.9rem, 3vw, 2.6rem)/1 "Fraunces", serif; font-variation-settings: "SOFT" 100, "WONK" 1; letter-spacing: -.01em; }
.ipa { font: italic 400 1.2rem/1 "Fraunces", serif; color: var(--soft); }
.headword i { font: italic 500 1.15rem/1 "Fraunces", serif; color: var(--accent); }
.say {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid currentColor; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), background .2s, color .2s;
}
.say svg { width: 18px; height: 18px; overflow: visible; }
.say:hover { transform: scale(1.1) rotate(-6deg); background: var(--ink); color: var(--paper); }
.say.is-saying .wave-1 { animation: wave-out .6s ease-out 3; }
.say.is-saying .wave-2 { animation: wave-out .6s .15s ease-out 3; }
@keyframes wave-out { 0% { opacity: 0; transform: translateX(-3px); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateX(2px); } }
.senses { margin-top: 1.1rem; padding-left: 1.5rem; font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.5; }
.senses li { padding-left: .3rem; margin: .35rem 0; }
.senses li::marker { font: 600 1rem "Fraunces", serif; color: var(--accent); }
.senses a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.senses a:hover { color: var(--accent); }

.stage {
  --cw: clamp(230px, 28vw, 430px);
  position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 2vw;
  width: 100%; max-width: 1500px; margin: 0 auto;
}

/* The name, standing on the counter like objects. Each letter can be poked. */
.wordmark {
  font: 620 clamp(5rem, 20vw, 21rem)/.78 "Fraunces", Georgia, serif; font-variation-settings: "SOFT" 100, "WONK" 1;
  letter-spacing: -.05em; margin-left: -.04em; margin-bottom: -.02em; white-space: nowrap; user-select: none;
}
.wordmark .l {
  display: inline-block; transform-origin: 50% 100%; cursor: pointer;
  transition: transform .45s cubic-bezier(.3, 1.8, .5, 1), color .3s;
  animation: drop .95s cubic-bezier(.25, 1.2, .5, 1) backwards; animation-delay: calc(150ms + var(--i) * 75ms);
}
.wordmark .l:hover { transform: translateY(-.07em) rotate(calc(var(--r) * .6)); color: var(--accent); }
.wordmark .l.boing { animation: boing .7s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes drop {
  0% { transform: translateY(-120%) rotate(var(--r)); opacity: 0; }
  55% { transform: translateY(0) scale(1.06, .84); opacity: 1; }
  75% { transform: translateY(-4%) scale(.97, 1.04); }
  100% { transform: none; }
}
@keyframes boing { 0% { transform: none; } 25% { transform: scale(1.12, .8); } 55% { transform: translateY(-.22em) rotate(var(--r)) scale(.94, 1.08); } 80% { transform: scale(1.04, .95); } 100% { transform: none; } }

/* Cups (they clink when tapped) */
.cups { position: relative; flex: none; width: var(--cw); margin: 0 0 calc(var(--cw) * -.082); }
.cups-art { width: 100%; overflow: visible; cursor: pointer; position: relative; z-index: 2; animation: slide-in 1s .55s cubic-bezier(.2, 1.1, .3, 1) backwards; }
@keyframes slide-in { from { transform: translateX(30%); opacity: 0; } }
/* Only the painted parts catch taps, so the lamp cord behind the drawing's empty corners stays reachable. */
.cups-art { pointer-events: none; }
.cups-art > * { pointer-events: visiblePainted; }
.cups-art .cup { transform-box: fill-box; transition: transform .6s cubic-bezier(.3, 1.6, .5, 1); }
.cup-chai { transform-origin: 100% 100%; }
.cup-coffee { transform-origin: 0% 100%; }
.cups.clink .cup-chai { transform: rotate(9deg) translateX(10px); }
.cups.clink .cup-coffee { transform: rotate(-9deg) translateX(-10px); }
.steam path { stroke-dasharray: 46 160; animation: steam 4.2s linear infinite; }
.steam path:nth-child(2) { animation-delay: -1.6s; animation-duration: 3.6s; }
.steam-b path { animation-delay: -2.3s; }
.steam-b path:nth-child(2) { animation-delay: -.9s; }
@keyframes steam { 0% { stroke-dashoffset: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: .9; } 100% { stroke-dashoffset: -206; opacity: 0; } }
[data-lights="off"] .steam { filter: drop-shadow(0 0 6px rgba(255, 200, 130, .7)); }
.steam-heart { transform-box: fill-box; transform-origin: 50% 100%; opacity: 0; }
.cups.clink .steam-heart { animation: heart-now 1.4s ease-out; }
@keyframes heart-now { 0% { opacity: 0; transform: translateY(14px) scale(.3); } 30% { opacity: 1; transform: scale(1.25); } 100% { opacity: 0; transform: translateY(-40px) scale(1); } }
.cups-note {
  position: absolute; right: 100%; top: 22%; margin-right: -2.5rem; z-index: 3; color: var(--accent);
  font: 600 1.45rem/1.05 "Caveat", cursive; transform: rotate(-7deg); white-space: nowrap; pointer-events: none;
}
.cups-note svg { width: 80px; height: 48px; transform: translate(40px, -2px) rotate(8deg); }

/* The pendant lamp. The wire runs up out of sight. */
.lamp {
  position: absolute; left: 50%; bottom: 100%; margin-bottom: clamp(14px, 4vh, 60px); width: clamp(110px, 12vw, 170px);
  translate: -50% 0; transform-origin: 50% -80vh; z-index: 1; color: var(--ink);
  animation: lamp-in 1.4s cubic-bezier(.3, 1.4, .5, 1) backwards;
}
.lamp.swing { animation: swing 1.8s cubic-bezier(.3, 1.2, .4, 1); }
@keyframes lamp-in { from { transform: translateY(-60vh); } }
@keyframes swing { 0% { transform: rotate(0); } 20% { transform: rotate(1.6deg); } 45% { transform: rotate(-1.1deg); } 70% { transform: rotate(.5deg); } 100% { transform: rotate(0); } }
.lamp-wire { position: absolute; left: 50%; bottom: 96%; width: 2px; height: 120vh; margin-left: -1px; background: currentColor; }
.lamp-shade { position: relative; width: 100%; overflow: visible; z-index: 2; }
.lamp-shade .bulb { transition: filter .4s; }
[data-lights="off"] .lamp-shade .bulb { filter: drop-shadow(0 0 10px #ffd27a) drop-shadow(0 4px 24px #ffb84d); }
.lamp-glow {
  position: absolute; left: 50%; top: 70%; width: 760%; height: 900%; translate: -50% 0; pointer-events: none; z-index: -1;
  background: radial-gradient(ellipse 42% 50% at 50% 0%, rgba(255, 206, 128, .38), rgba(255, 190, 110, .12) 55%, transparent 75%);
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
  opacity: calc(.18 + var(--glow) * .82); transition: opacity .8s;
}

/* The pull cord, hanging from the right of the shade. Tap or tug it. */
.pull { position: absolute; left: 78%; top: 74%; width: 36px; height: 120px; translate: -50% 0; z-index: 3; display: block; touch-action: none; }
.pull-cord { position: absolute; left: 50%; top: 0; width: 2px; height: 74px; margin-left: -1px; background: currentColor; transform-origin: 50% 0; transition: transform .5s cubic-bezier(.3, 1.8, .5, 1); }
.pull-bead {
  position: absolute; left: 50%; top: 70px; width: 14px; height: 18px; margin-left: -7px; border-radius: 50% 50% 45% 45%;
  background: var(--accent); border: 2px solid currentColor; transition: transform .5s cubic-bezier(.3, 1.8, .5, 1);
}
.pull:hover .pull-bead { transform: translateY(3px) scale(1.1); }
.pull.tug .pull-cord { transform: scaleY(1.35); transition-duration: .12s; }
.pull.tug .pull-bead { transform: translateY(26px); transition-duration: .12s; }
.pull:focus-visible { outline-offset: -4px; }

/* The counter itself, seen from the front. */
.countertop {
  position: relative; z-index: 1; height: clamp(54px, 8vw, 110px); margin: 0 calc(var(--pad) * -1);
  border-top: 4px solid var(--line);
  background:
    linear-gradient(var(--wood-top) 0 12px, rgba(0, 0, 0, .18) 12px 15px, transparent 15px),
    repeating-linear-gradient(90deg, transparent 0 140px, rgba(0, 0, 0, .13) 140px 143px),
    linear-gradient(var(--wood), color-mix(in srgb, var(--wood) 80%, #000));
  transition: background .6s;
}

/* ---------- Section heads ---------- */
.h2 { font: 600 clamp(2.4rem, 6vw, 4.8rem)/1 "Fraunces", serif; font-variation-settings: "SOFT" 100, "WONK" 1; letter-spacing: -.03em; }

/* ---------- The apps ---------- */
.apps { max-width: 1500px; margin: 0 auto; padding: clamp(4rem, 9vw, 8rem) var(--pad) clamp(3rem, 6vw, 5rem); }
.apps-head { display: flex; align-items: baseline; gap: 1.2rem; margin-bottom: clamp(1.4rem, 3vw, 2.4rem); }
.apps-head::after { content: ""; order: 1; flex: 1; height: 2px; background: currentColor; opacity: .25; translate: 0 -.4em; }
.apps-count { order: 2; font: italic 500 clamp(1.6rem, 3vw, 2.4rem)/1 "Fraunces", serif; color: var(--accent); }

.rows { border-bottom: 2px solid var(--rule); }
.rows > li { border-top: 2px solid var(--rule); }
.row {
  --row-bg: #22183f; --row-ink: #ffe2a6;
  position: relative; isolation: isolate; display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) 14rem; gap: 1.5rem; align-items: start;
  padding: clamp(1.6rem, 3vw, 2.6rem) .8rem; color: inherit; text-decoration: none; transition: color .4s;
}
.row[data-row="sipwell"] { --row-bg: #cfe9e4; --row-ink: #123a33; }
.row[data-row="sprout"] { --row-bg: #d3f64a; --row-ink: #151518; }
.row-bg { position: absolute; inset: 0; z-index: -1; background: var(--row-bg); clip-path: inset(100% 0 0 0); transition: clip-path .6s cubic-bezier(.7, 0, .2, 1); }
.row:hover, .row:focus-visible { color: var(--row-ink); }
.row:hover .row-bg, .row:focus-visible .row-bg { clip-path: inset(0); }
.row:focus-visible { outline: none; }
.row-no { font: italic 500 1.2rem/1 "Fraunces", serif; color: var(--accent); padding-top: .9rem; transition: color .4s; }
.row:hover .row-no, .row:focus-visible .row-no { color: inherit; }
.row-name { display: block; font-size: clamp(2.5rem, 6.6vw, 6.4rem); line-height: .95; transition: translate .6s cubic-bezier(.2, .8, .2, 1); }
.row:hover .row-name { translate: .25em 0; }
.row[data-row="bento"] .row-name { font-family: "Fredoka", sans-serif; font-weight: 600; letter-spacing: -.01em; }
.row[data-row="sipwell"] .row-name { font-family: "Space Grotesk", sans-serif; font-weight: 700; letter-spacing: -.055em; }
.row[data-row="sprout"] .row-name { font-family: "Google Sans", sans-serif; font-weight: 700; letter-spacing: -.045em; }
.row-line { display: block; max-width: 36rem; margin-top: .8rem; color: var(--soft); font-size: 1.08rem; transition: color .4s; }
.row:hover .row-line, .row:focus-visible .row-line { color: inherit; opacity: .85; }
.row-meta { display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; padding-top: .8rem; font-size: 15px; font-weight: 600; text-align: right; }
.row-status { margin-top: .5rem; padding: .25rem .7rem; border: 1.5px solid currentColor; border-radius: 999px; font-size: 13px; }

/* A picture of each app follows the pointer while you hover its row. */
.row-art {
  position: absolute; left: 0; top: 0; z-index: 3; width: clamp(200px, 18vw, 260px); aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden;
  pointer-events: none; opacity: 0; scale: .5; rotate: var(--tilt, 0deg);
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .55);
  transition: opacity .3s, scale .45s cubic-bezier(.3, 1.5, .5, 1);
}
.row.peek .row-art { opacity: 1; scale: 1; }
.art-bento { background: #1d1538; }
.ab-sky { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.ab-logo { position: absolute; left: 8%; width: 84%; top: 8%; }
.ab-mascot { position: absolute; left: 50%; bottom: 4%; width: 56%; translate: -50% 0; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.art-sipwell { background: radial-gradient(circle at 50% 45%, #f4fbf9, #bfe2db); }
.as-dew { position: absolute; inset: 8% 6% 14%; width: 88%; animation: bob 3s ease-in-out infinite; }
.as-chip, .ap-timer {
  position: absolute; left: 50%; bottom: 8%; translate: -50% 0; padding: .35rem .8rem; border-radius: 999px;
  background: #fff; color: #173a35; font: 700 14px/1 "Space Grotesk", sans-serif; white-space: nowrap; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .4);
}
.art-sprout { background: #d3f64a; }
.ap-buddy { position: absolute; inset: 22% 8% 6%; width: 84%; animation: bob 2.6s ease-in-out infinite; }
.ap-timer { top: 8%; bottom: auto; display: flex; align-items: baseline; gap: .4rem; background: #151518; color: #d3f64a; font-family: "Google Sans", sans-serif; }
.ap-timer b { font-size: 18px; }
.ap-timer small { font-size: 12px; font-weight: 500; opacity: .8; }

/* ---------- Notes on the wall ---------- */
.wall {
  display: flex; justify-content: center; align-items: flex-start; gap: 0; flex-wrap: wrap;
  max-width: 1200px; margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) var(--pad) clamp(5rem, 9vw, 8rem);
}
.note {
  position: relative; width: min(31rem, 100%); padding: 40px 2.3rem 2.4rem; color: #2b1d16; background: var(--card);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .06), 0 22px 40px -24px rgba(43, 29, 22, .55);
  transition: transform .5s cubic-bezier(.3, 1.4, .5, 1), box-shadow .5s;
}
.note-rules {
  rotate: -2deg; z-index: 2;
  background: repeating-linear-gradient(transparent 0 31px, rgba(76, 139, 128, .22) 31px 32px) 0 90px / 100% calc(100% - 90px) no-repeat,
    linear-gradient(90deg, transparent 2.6rem, rgba(229, 138, 114, .45) 2.6rem 2.7rem, transparent 2.7rem), var(--card);
  padding-left: 3.6rem;
}
.note-name { rotate: 2.5deg; margin: 3.5rem 0 0 -1.6rem; background: #fde9a9; width: min(26rem, 100%); }
.note:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 1px 1px rgba(0, 0, 0, .06), 0 34px 50px -24px rgba(43, 29, 22, .55); }
.note-title { font: 700 2.3rem/40px "Caveat", cursive; color: #a0643a; margin-bottom: 16px; }
.note p { line-height: 1.6; margin-top: .8rem; }
.note-doodle { width: 90px; color: #a0643a; margin: 1.2rem 0 0 auto; opacity: .7; }
.tape {
  position: absolute; top: -15px; left: 50%; width: 120px; height: 32px; translate: -50% 0; rotate: -4deg;
  background: rgba(240, 222, 170, .82); box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
  clip-path: polygon(0 8%, 4% 0, 8% 10%, 12% 0, 88% 0, 92% 10%, 96% 0, 100% 8%, 100% 92%, 96% 100%, 92% 90%, 88% 100%, 12% 100%, 8% 90%, 4% 100%, 0 92%);
}
.tape-b { rotate: 6deg; left: 30%; background: rgba(206, 228, 222, .85); }
.rules { list-style: none; padding: 0; margin: 0; line-height: 32px; }
.rules li { display: grid; grid-template-columns: 30px 1fr; gap: .4rem; margin-bottom: 0; }
.rules svg { width: 24px; height: 22px; margin-top: 4px; fill: none; stroke: #4c8b80; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.rules svg path { stroke-dasharray: 40; stroke-dashoffset: 40; transition: stroke-dashoffset .5s cubic-bezier(.6, 0, .3, 1); }
.note.is-in .rules li:nth-child(1) path { transition-delay: .5s; }
.note.is-in .rules li:nth-child(2) path { transition-delay: .8s; }
.note.is-in .rules li:nth-child(3) path { transition-delay: 1.1s; }
.note.is-in .rules li:nth-child(4) path { transition-delay: 1.4s; }
.note.is-in .rules path, html:not(.js) .rules path { stroke-dashoffset: 0; }
.js .note[data-reveal="pop"] { transform: translateY(40px) rotate(4deg) scale(.95); }
.js .note[data-reveal].is-in { transform: none; }
.js .note[data-reveal].is-in:hover { transform: translateY(-6px) rotate(-1deg); }

/* ---------- Write to us: a postcard ---------- */
.write { padding: clamp(3rem, 7vw, 6rem) var(--pad) clamp(5rem, 9vw, 8rem); }
.postcard {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem);
  max-width: 1000px; margin: 0 auto; padding: clamp(1.8rem, 4vw, 3.2rem); color: #2b1d16; rotate: -1.2deg;
  background: #fffaf1 linear-gradient(90deg, transparent calc(50% - 1px), rgba(43, 29, 22, .18) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px));
  box-shadow: 0 1px 1px rgba(0, 0, 0, .06), 0 30px 60px -30px rgba(43, 29, 22, .6);
  transition: rotate .6s cubic-bezier(.3, 1.4, .5, 1), translate .6s cubic-bezier(.3, 1.4, .5, 1);
}
.postcard:hover { rotate: 0deg; translate: 0 -4px; }
.pc-title { font: 700 clamp(2.8rem, 6vw, 4.4rem)/1 "Caveat", cursive; color: #a0643a; margin-bottom: 1rem; rotate: -2deg; }
.pc-msg p { font: 500 clamp(1.35rem, 2.2vw, 1.7rem)/1.35 "Caveat", cursive; margin-top: .6rem; color: #3d2b21; }
.pc-sign { text-align: right; padding-right: 1rem; }
.pc-side { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 300px; }
.pc-stamp {
  align-self: flex-end; position: relative; z-index: 1; width: 100px; height: 120px; padding: 4px; background: #fffaf1; rotate: 4deg;
  filter: drop-shadow(0 2px 2px rgba(43, 29, 22, .25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle, transparent 3.2px, #000 3.7px) -5px -5px / 10px 10px;
  mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle, transparent 3.2px, #000 3.7px) -5px -5px / 10px 10px;
  transition: rotate .5s cubic-bezier(.3, 1.6, .5, 1);
}
.pc-stamp-in {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; height: 100%; padding: 10px 6px 8px;
  background: #c4643d; color: #fff6e6; font: 700 13px/1 "Figtree", sans-serif; letter-spacing: .12em; text-transform: uppercase;
  box-shadow: inset 0 0 0 3px #fffaf1;
}
.postcard:hover .pc-stamp { rotate: -2deg; }
.pc-stamp svg { width: 68px; }
.pc-postmark { position: absolute; z-index: 2; right: 58px; top: 34px; width: 130px; color: rgba(43, 29, 22, .55); rotate: -14deg; pointer-events: none; font-family: "Figtree", sans-serif; }
.pc-postmark text { fill: currentColor; }
.pc-addr { display: grid; gap: .6rem; padding-top: 2.4rem; }
.pc-to { font: italic 500 1.1rem/1 "Fraunces", serif; color: #8a7465; }
.pc-addr .mail {
  font: italic 600 clamp(1.4rem, 3vw, 2.2rem)/1.2 "Fraunces", serif; color: #2b1d16; text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(#a0643a, #a0643a) 0 100% / 0 2px no-repeat; transition: background-size .5s cubic-bezier(.2, .8, .2, 1), color .2s;
}
.pc-addr .mail:hover { background-size: 100% 2px; color: #a0643a; }
.pc-rule { height: 1.5px; background: rgba(43, 29, 22, .25); }
.copy { justify-self: start; padding: .5rem .95rem; border-radius: 999px; border: 2px solid #2b1d16; font-weight: 700; font-size: 14px; color: #2b1d16; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), background .2s, color .2s; }
.copy:hover { transform: rotate(-3deg); background: #2b1d16; color: #fffaf1; }
.copy.done { background: #4c8b80; border-color: #4c8b80; color: #fff; }

/* ---------- Footer ---------- */
.foot { border-top: 2px solid var(--rule); padding: clamp(2.5rem, 5vw, 4rem) var(--pad) 2rem; max-width: 1500px; margin: 0 auto; font-size: 16px; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.foot h2 { font: 700 13px/1 "Figtree", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .9rem; }
.foot li { margin: .35rem 0; }
.foot a { text-decoration: none; color: var(--soft); transition: color .2s; }
.foot a:hover { color: var(--ink); }
.foot-sign { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid color-mix(in srgb, var(--ink) 15%, transparent); color: var(--soft); font-size: 14px; }

/* ---------- Smaller screens ---------- */
@media (max-width: 900px) {
  .row { grid-template-columns: 2.6rem minmax(0, 1fr); }
  .row-meta { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; gap: .3rem .9rem; padding-top: 0; text-align: left; }
  .row-status { margin: 0; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* No hover (phones and tablets): show each app's picture inside its row instead. */
@media (hover: none), (max-width: 760px) {
  .row-art { position: relative; grid-column: 1 / -1; width: 100%; height: 150px; aspect-ratio: auto; opacity: 1; scale: 1; rotate: none; translate: none !important; box-shadow: none; border-radius: 20px; order: 5; }
  .ab-logo { width: auto; height: 58%; left: 6%; top: 21%; }
  .ab-mascot { left: auto; right: 4%; bottom: 6%; width: auto; height: 88%; translate: none; }
  .as-dew { inset: 6% 0 6%; width: 100%; height: 88%; }
  .as-chip { left: auto; right: 5%; translate: none; bottom: 12%; }
  .ap-buddy { inset: 5% 0; width: 100%; height: 90%; }
  .ap-timer { left: 5%; translate: none; top: 12%; }
}

@media (max-width: 760px) {
  .top-nav a[href="/notes/"], .top-nav a[href="/press/"] { display: none; }
  .counter { min-height: auto; grid-template-rows: auto auto auto; }
  .entry { order: 3; padding-block: 2rem 0; }
  .countertop { order: 2; }
  .stage { --cw: min(66vw, 300px); flex-direction: column-reverse; align-items: stretch; gap: 0; margin-top: clamp(8rem, 30vw, 11rem); }
  .cups { align-self: flex-end; margin: 0 0 -.6rem; }
  .cups-note { font-size: 1.25rem; top: 6%; margin-right: -1.2rem; }
  .cups-note svg { width: 56px; height: 34px; transform: translate(26px, 0) rotate(8deg); }
  .wordmark { font-size: 31vw; text-align: left; margin-bottom: -.03em; }
  .lamp { width: 104px; margin-bottom: 6px; }
  .wall { flex-direction: column; align-items: center; }
  .note-name { margin: -.5rem 0 0; }
  .note { padding: 40px 1.5rem 2rem; }
  .note-rules { padding-left: 3.3rem; }
  .postcard { grid-template-columns: minmax(0, 1fr); background: #fffaf1; rotate: -1deg; }
  .pc-side { min-height: 0; border-top: 1.5px solid rgba(43, 29, 22, .18); padding-top: 1.2rem; }
  .pc-stamp { position: absolute; right: 0; top: 1.2rem; width: 80px; height: 100px; }
  .pc-stamp svg { width: 52px; }
  .pc-postmark { width: 100px; right: 40px; top: 1.6rem; }
  .pc-addr { padding-top: 6.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .lamp, .wordmark .l, .cups-art { animation: none; }
}
