/* Daak on the web: the app's two-tone envelope (cobalt + cream). Cards and photos are the only full colour. */
:root {
  --cobalt: #0e2fa0;
  --cobalt-deep: #0a2275;
  --cream: #f6eedf;
  --paper: #fbf6ea;
  --line: rgba(14, 47, 160, 0.16);
  --soft: rgba(14, 47, 160, 0.66);
  --display: 'Newsreader', Georgia, serif;
  --ui: 'Schibsted Grotesk', -apple-system, 'Segoe UI', sans-serif;
  --hand: 'Gochi Hand', cursive;
  --post: 'Courier Prime', 'Courier New', monospace;
  --gutter: max(clamp(16px, 4vw, 48px), env(safe-area-inset-left), env(safe-area-inset-right));
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--cream); color: var(--cobalt); font: 500 17px/1.5 var(--ui); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.ink { background: var(--cobalt); color: var(--cream); }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2.5px solid currentColor; outline-offset: 3px; }
[hidden] { display: none !important; }

/* ---- type */
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(44px, 7.4vw, 104px); line-height: 0.96; }
h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.02; }
h3 { font-size: 24px; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
.hand { font-family: var(--hand); font-size: 23px; line-height: 1.3; }
.post { font-family: var(--post); font-size: 13px; letter-spacing: 0.08em; }
.soft { color: var(--soft); }
.ink .soft { color: rgba(246, 238, 223, 0.72); }
.paper { background: var(--cream); color: var(--cobalt); }
.ink .paper .soft { color: var(--soft); }
.ink .paper .btn.solid { background: var(--cobalt); color: var(--cream); border-color: var(--cobalt); }

/* ---- frame */
.wrap { width: min(100%, 1240px); margin: 0 auto; padding: 0 var(--gutter); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 76px; }
.bar .logo img { height: 30px; display: block; }
.bar nav { display: flex; align-items: center; gap: 6px; }
.bar nav a { white-space: nowrap; text-decoration: none; font-weight: 700; font-size: 15px; padding: 10px 14px; border-radius: 999px; }
.bar nav a:hover { background: var(--line); }
.ink .bar nav a:hover { background: rgba(246, 238, 223, 0.12); }

/* back: every page but the front door has one, so nobody gets stuck */
.bar .left { display: flex; align-items: center; gap: 4px; }
.backbtn, .iconbtn { appearance: none; background: none; border: 0; color: inherit; width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; cursor: pointer; text-decoration: none; }
.backbtn { margin-left: -10px; }
.backbtn:hover, .iconbtn:hover { background: var(--line); }
.ink .backbtn:hover, .ink .iconbtn:hover { background: rgba(246, 238, 223, 0.12); }

/* small phones: with a back button in the bar, the app button steps aside (every page has its own) */
@media (max-width: 430px) { .bar:has(.backbtn) #get { display: none; } .bar nav a:not(.btn) { padding: 10px; } }

/* ---- buttons: filled pill, outlined pill */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 999px; padding: 0 26px; font: 700 16px var(--ui); border: 1.5px solid currentColor; background: none; color: inherit; cursor: pointer; text-decoration: none; transition: transform 0.15s ease, background 0.2s; }
.btn:active { transform: scale(0.97); }
.btn.solid { background: var(--cobalt); color: var(--cream); border-color: var(--cobalt); }
.ink .btn.solid { background: var(--cream); color: var(--cobalt); border-color: var(--cream); }
.btn.small { min-height: 40px; padding: 0 18px; font-size: 15px; }
.bar nav a.btn.small { padding: 0 18px; }
.bar nav a.btn.solid:hover { background: var(--cobalt-deep); }
.ink .bar nav a.btn.solid:hover { background: var(--paper); }
.row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- landing */
.hero { display: grid; gap: 28px; padding-block: 12px 56px; }
.hero .copy { display: grid; gap: 22px; align-content: center; }
.hero .copy .hand { max-width: 30ch; }
.hero .stage { position: relative; }
.mapbox { position: relative; border-radius: 28px; overflow: hidden; background: var(--cobalt); box-shadow: 0 0 0 2px var(--cobalt), 0 24px 60px -24px rgba(10, 20, 60, 0.45); }
/* the map is framed in ink, so its cream land never runs into a cream page */
.mapbox::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 6px var(--cobalt), inset 0 0 0 7.5px var(--cream); pointer-events: none; }
.ink .mapbox { box-shadow: 0 0 0 2px rgba(246, 238, 223, 0.55); }
.mapbox canvas { display: block; width: 100%; height: 100%; }
.hero .mapbox { aspect-ratio: 4 / 5; }
@media (min-width: 600px) { .hero .mapbox { aspect-ratio: 5 / 4; } }
.ticket { position: absolute; left: 14px; right: 14px; bottom: 14px; display: grid; gap: 8px; background: var(--cream); color: var(--cobalt); border-radius: 20px; padding: 14px 16px; }
.ticket .soft { color: var(--soft); }
.ticket .top { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; font-size: 15px; }
.ticket .top .soft { white-space: nowrap; }
.track { position: relative; height: 4px; background: var(--line); border-radius: 2px; }
.track i { position: absolute; inset: 0 auto 0 0; background: var(--cobalt); border-radius: 2px; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 5fr 7fr; gap: 56px; min-height: calc(100svh - 76px); padding-bottom: 48px; align-items: center; }
  .ticket { left: auto; width: 320px; }
}

/* section labels: a visitor always knows which part of the story they're in */
.kicker { opacity: 0.7; }
.got { padding-block: 72px 56px; display: grid; gap: 16px; justify-items: start; }
.got > p { max-width: 46ch; }
.got .hand { margin-top: 8px; font-size: 21px; }
/* Outlined pills with a line underneath, like the app's lists */
.pills { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pills li { border: 1.5px solid currentColor; border-radius: 22px; padding: 14px 18px; display: grid; gap: 2px; }
.pills b { font-size: 17px; }
.pills span { font-size: 15px; opacity: 0.78; }
.pills a { text-decoration: none; display: grid; gap: 2px; }
.pills li:has(a):hover { background: var(--line); }

.cardshow { padding-block: 24px 96px; display: grid; gap: 36px; align-items: center; }
.cardshow .copy { display: grid; gap: 16px; max-width: 40ch; }
@media (min-width: 900px) { .cardshow { grid-template-columns: 5fr 7fr; gap: 56px; } }

.foot { padding-block: 72px 40px; display: grid; gap: 28px; }
.foot .big { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 720px) { .foot .big { grid-template-columns: auto 1fr; gap: 32px; } }
.foot .small { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; justify-content: space-between; border-top: 1.5px solid rgba(246, 238, 223, 0.3); padding-top: 20px; }
.foot .small nav { display: flex; gap: 18px; }

/* ---- the postcard: two faces on a 3D turn, tilts toward the pointer */
.card { position: relative; width: 100%; perspective: 1800px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.card .tilt { transition: transform 0.5s var(--ease); transform-style: preserve-3d; }
.card .turn { position: relative; transition: transform 0.9s var(--ease); transform-style: preserve-3d; }
.card.back .turn { transform: rotateY(180deg); }
.card .side-f, .card .side-b { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.card .side-b { position: absolute; inset: 0; transform: rotateY(180deg); }
.card img.photo { width: 100%; display: block; filter: drop-shadow(0 22px 28px rgba(10, 20, 60, 0.32)); }
.hint { text-align: center; font-size: 14px; margin-top: 14px; }

/* ---- reading a daak: the card on the left, everything about it on the right */
.read { display: grid; gap: 28px; padding-block: 8px 72px; }
/* phones: the title, then the envelope or card, then what you can do with it */
.read aside { display: contents; }
.read .from { order: -1; }
.read #after { order: 1; }
@media (min-width: 960px) {
  .read aside { display: grid; gap: 22px; align-content: start; }
  .read { grid-template-columns: minmax(0, 7fr) minmax(320px, 4fr); gap: 56px; min-height: calc(100svh - 76px); align-items: center; }
}
.from { display: grid; gap: 10px; }
.from h1 { font-size: clamp(40px, 5vw, 68px); }

/* the envelope you tear open: drag along the top strip and it peels away from the left */
.stagecol { min-width: 0; }
.envelope { position: relative; width: min(100%, 640px); aspect-ratio: 3 / 2; margin: 0 auto; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.envelope.tearing { cursor: grabbing; }
/* picked up: it comes toward you a little, and the shadow drops away */
.envelope { transition: transform 0.5s var(--ease), filter 0.5s var(--ease); }
.envelope.lifted { transform: translateY(-8px) scale(1.025); filter: drop-shadow(0 22px 22px rgba(5, 15, 50, 0.35)); }
.envelope .inside { position: absolute; left: 7%; right: 7%; top: 15%; z-index: 1; transition: transform 1.1s var(--ease) 0.25s; }
.envelope .body { position: absolute; inset: 13% 0 0; z-index: 2; background: var(--paper); border-radius: 0 0 12px 12px; box-shadow: 0 24px 40px rgba(5, 15, 50, 0.4); color: var(--cobalt); }
.envelope .body::before { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 10px solid; border-top: 0; border-image: repeating-linear-gradient(-45deg, #c2452d 0 16px, var(--paper) 0 24px, var(--cobalt) 0 40px, var(--paper) 0 48px) 12; }
.envelope .addr { position: absolute; left: 9%; bottom: 17%; display: grid; font-family: var(--hand); font-size: clamp(24px, 4.2vw, 40px); line-height: 1.1; }
.envelope .addr small { font-size: 0.5em; opacity: 0.78; }
.envelope .estamp { position: absolute; right: 7%; top: 12%; width: 14%; padding: 3px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18); }
.envelope .estamp img { display: block; width: 100%; }
.envelope .cancel { white-space: pre-line; position: absolute; right: 15%; top: 18%; width: 20%; aspect-ratio: 1; border: 2.5px solid var(--cobalt); border-radius: 50%; opacity: 0.7; display: grid; place-items: center; text-align: center; font-size: clamp(9px, 1.3vw, 12px); line-height: 1.2; mix-blend-mode: multiply; rotate: -10deg; }
.envelope .par { position: absolute; left: 9%; top: 14%; font-size: clamp(10px, 1.4vw, 13px); opacity: 0.7; }
.envelope .strip { position: absolute; left: 0; right: 0; top: 0; height: 13.5%; z-index: 3; background: var(--paper); border-radius: 12px 12px 0 0; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-right: 18px; color: var(--cobalt); }
/* the perforation you tear along */
.envelope .strip::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; border-bottom: 2.5px dashed rgba(14, 47, 160, 0.6); }
.envelope .strip.peel { justify-content: flex-start; clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); box-shadow: 0 6px 10px rgba(5, 15, 50, 0.25); }
.envelope .strip.rest .post { font-weight: 700; }
.envelope.open .strip.peel { transition: transform 0.7s cubic-bezier(0.5, 0, 0.75, 0), opacity 0.6s 0.1s; transform: translate(-60px, -140px) rotate(-38deg) !important; opacity: 0; }
.envelope.open .inside { transform: translateY(-62%); }
.envelope.open { transition: opacity 0.35s 1.15s; opacity: 0; pointer-events: none; }
.sealedmsg { text-align: center; margin-top: 18px; }

/* the stamp's ink on the back of the card: comes down fast, lands, the card jolts */
.inkmark { position: absolute; left: 57%; top: 47%; width: 24%; aspect-ratio: 1; color: #1d3aa8; opacity: 0.86; mix-blend-mode: multiply; filter: url(#rough); rotate: -14deg; pointer-events: none; }
.inkmark.onimg { left: 55%; top: 44%; width: 21%; }
.inkmark svg { width: 100%; height: 100%; display: block; }
.inkmark.press { animation: press 0.26s cubic-bezier(0.55, 0, 0.8, 0.2) both; }
.card.jolt .tilt { animation: jolt 0.3s; }
#opened { animation: envin 0.6s var(--ease) both; }

/* stamp it back */
.marks { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.mark { appearance: none; background: none; border: 0; padding: 4px 0; color: inherit; cursor: pointer; display: grid; gap: 6px; justify-items: center; font: inherit; border-radius: 14px; }
.mark svg { width: 100%; max-width: 72px; aspect-ratio: 1; transition: transform 0.22s cubic-bezier(0.5, 0, 0.75, 0), opacity 0.16s; }
.mark span { font-size: 12.5px; line-height: 1.2; text-align: center; }
.marks.chosen .mark:not(.on) { opacity: 0.38; }
.mark.on svg { transform: rotate(-6deg) scale(1.04); }
.mark:hover svg { transform: rotate(-3deg); }

/* ---- tracking: the map is the page; the story sits beside it */
.trackpage { display: grid; }
.trackpage .mapbox { border-radius: 0; height: 58svh; }
.sheet { position: relative; z-index: 2; margin-top: -24px; background: var(--cream); border-radius: 28px 28px 0 0; padding: 26px var(--gutter) 48px; display: grid; gap: 22px; }
@media (min-width: 960px) {
  .trackpage { height: calc(100svh - 76px); position: relative; }
  .trackpage .mapbox { position: absolute; inset: 0 var(--gutter) var(--gutter); height: auto; border-radius: 28px; }
  .sheet { position: absolute; top: 24px; bottom: calc(var(--gutter) + 24px); left: calc(var(--gutter) + 24px); width: 420px; margin: 0; border-radius: 24px; overflow-y: auto; padding: 28px; box-shadow: 0 20px 50px rgba(5, 15, 50, 0.35); }
}
.sheet h1 { font-size: clamp(32px, 3.4vw, 44px); line-height: 1.04; }
.scrub { display: grid; gap: 6px; }
.scrub input { width: 100%; accent-color: var(--cobalt); margin: 0; }
.ends { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; }
.sealed { display: flex; gap: 14px; align-items: center; border: 1.5px dashed var(--cobalt); border-radius: 22px; padding: 14px 16px; }
.sealed .env { width: 64px; height: 44px; flex: none; background: var(--cobalt); border-radius: 4px; position: relative; }
.sealed .env::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, transparent 49%, var(--cream) 50%, var(--cream) 53%, transparent 54%), linear-gradient(20deg, transparent 49%, var(--cream) 50%, var(--cream) 53%, transparent 54%); }
/* the step timeline: done steps in ink, the rest pencilled in */
.steps { list-style: none; margin: 0; padding: 0; display: grid; }
.steps li { display: grid; grid-template-columns: 18px 1fr; gap: 14px; padding-bottom: 16px; position: relative; }
.steps li::before { content: ''; width: 12px; height: 12px; margin-top: 6px; border-radius: 50%; border: 2px solid var(--cobalt); background: var(--cobalt); }
.steps li::after { content: ''; position: absolute; left: 7px; top: 22px; bottom: 0; border-left: 2px solid var(--cobalt); }
.steps li:last-child::after { display: none; }
.steps li.later { opacity: 0.45; }
.steps li.later::before { background: var(--cream); }
.steps li.later::after { border-left-style: dotted; }
.steps li.now::before { box-shadow: 0 0 0 5px rgba(14, 47, 160, 0.18); }
.steps b { display: block; font-size: 16px; }
.steps span { font-size: 15px; }
.steps time { font-size: 13px; color: var(--soft); }

/* ---- sign in */
.gate { min-height: calc(100svh - 76px); display: grid; place-items: center; padding-block: 24px 80px; }
.gate form { width: min(100%, 440px); display: grid; gap: 18px; }
.field { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.field input { font: 600 20px var(--ui); color: var(--cobalt); background: var(--paper); border: 1.5px solid transparent; border-radius: 16px; padding: 15px 18px; outline: none; }
.field input:focus { border-color: var(--cream); box-shadow: 0 0 0 4px rgba(246, 238, 223, 0.25); }
.field input.code { letter-spacing: 0.4em; font-size: 28px; text-align: center; }
.err { font-weight: 700; color: #ffd3c9; min-height: 1.5em; }

/* ---- mailbox */
.box { padding-block: 8px 80px; display: grid; gap: 32px; }
.box .hello { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; }
.box .mapbox { height: clamp(240px, 38vw, 420px); }
.tabs { display: flex; gap: 6px; border-bottom: 1.5px solid var(--line); }
.tabs button { appearance: none; background: none; border: 0; font: 700 17px var(--ui); color: var(--soft); padding: 12px 16px; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1.5px; }
.tabs button[aria-selected='true'] { color: var(--cobalt); border-color: var(--cobalt); }
.tabs button .n { font-weight: 500; margin-left: 4px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 28px 22px; }
.tile { display: grid; gap: 12px; text-decoration: none; }
.tile .face { position: relative; aspect-ratio: 840 / 750; border-radius: 6px; display: grid; place-items: center; transition: transform 0.35s var(--ease); }
.tile:hover .face { transform: translateY(-4px) rotate(-0.6deg); }
.tile .face > .pc { width: 100%; box-shadow: 0 10px 20px rgba(10, 20, 60, 0.2); }
.tile .face img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 16px rgba(10, 20, 60, 0.22)); }
.tile .face.sealed-env .who { width: 100%; aspect-ratio: 3 / 2; display: grid; place-items: center; background: var(--paper); border: 7px solid; border-image: repeating-linear-gradient(-45deg, #c2452d 0 12px, var(--paper) 0 18px, var(--cobalt) 0 30px, var(--paper) 0 36px) 10; box-shadow: 0 12px 24px rgba(10, 20, 60, 0.14); font-family: var(--hand); font-size: 22px; }
.tile .face .tag { position: absolute; top: 10px; left: 10px; background: var(--cobalt); color: var(--cream); font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.tile .meta { display: grid; gap: 2px; }
.tile .meta b { font-size: 17px; }
.tile .meta span { font-size: 15px; color: var(--soft); }
.tile .track { margin-top: 6px; }
.empty { border: 1.5px dashed var(--cobalt); border-radius: 28px; padding: 40px 24px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.empty img { width: 90px; }

/* ---- plain pages (help, privacy, terms) */
.doc { max-width: 720px; padding-bottom: 72px; }
.doc h1 { font-size: 48px; margin: 24px 0 8px; }
.doc h2 { font: 700 19px var(--ui); letter-spacing: 0; margin: 30px 0 6px; }
.doc p, .doc li { line-height: 1.6; }
.quiet { margin-top: 40px; font-family: var(--hand); font-size: 19px; }

/* ---- why slow: one sentence, said plainly, then how it goes */
.why { padding-block: clamp(56px, 7vw, 96px) 0; display: grid; gap: 36px; }
.why header { display: grid; gap: 12px; }
.why .say { font: 600 clamp(28px, 3.8vw, 50px)/1.12 var(--display); letter-spacing: -0.015em; max-width: 26ch; text-wrap: balance; }
.how { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: how; }
.how li { display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; counter-increment: how; }
.how li::before { content: counter(how); grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--cobalt); display: grid; place-items: center; font: 24px/1 var(--hand); }
.how b { font-size: 18px; }
.how span { color: var(--soft); font-size: 16px; }
@media (min-width: 900px) { .why { grid-template-columns: 7fr 5fr; gap: 64px; align-items: center; } }

/* ---- stories: who the cards are for */
.stories { padding-block: 64px 40px; display: grid; gap: 36px; }
.stories > header, .maker > header { display: grid; gap: 12px; max-width: 48ch; }
.storygrid { display: grid; gap: 64px 44px; }
.story { display: grid; gap: 16px; align-content: start; }
.story .who { font-size: 26px; line-height: 1.2; }
.story > .soft { font-size: 16px; max-width: 48ch; }
@media (min-width: 900px) { .storygrid { grid-template-columns: 1fr 1fr; } .story:nth-child(even) { margin-top: 72px; } }
/* phones: a rail you swipe through, one card at a time */
@media (max-width: 899px) {
  .storygrid { grid-auto-flow: column; grid-auto-columns: 86%; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 8px var(--gutter) 28px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .storygrid::-webkit-scrollbar { display: none; }
  .story { scroll-snap-align: start; }
}

/* ---- make one now */
.maker { padding-block: 72px; display: grid; gap: 36px; }
.makergrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.makerstage { position: sticky; top: 0; z-index: 3; background: var(--cream); padding-block: 12px 4px; }
.makerstage #mk-card { width: min(100%, 560px); margin: 0 auto; transition: transform 0.9s var(--ease), opacity 0.45s 0.5s; }
@media (min-width: 960px) {
  .makergrid { grid-template-columns: minmax(0, 7fr) minmax(340px, 5fr); gap: 56px; }
  .makerstage { top: 24px; padding: 0; }
  .makerstage #mk-card { width: 100%; }
}
.makerform, .makerdone { display: grid; gap: 20px; }
.makerdone { align-content: center; min-height: 300px; }
.makerform fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.makerform legend { font-weight: 700; font-size: 15px; padding: 0; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { appearance: none; border: 1.5px solid var(--cobalt); background: none; color: var(--cobalt); border-radius: 999px; min-height: 40px; padding: 0 16px; font: 700 15px var(--ui); cursor: pointer; }
.chip:hover { background: var(--line); }
.chip[aria-pressed='true'] { background: var(--cobalt); color: var(--cream); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; }
.thumb { appearance: none; padding: 0; border: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 1; cursor: pointer; background: var(--line); outline: 2.5px solid transparent; outline-offset: 2px; transition: transform 0.2s var(--ease); }
.thumb:hover { transform: translateY(-2px); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb[aria-pressed='true'] { outline-color: var(--cobalt); }
.stamps .thumb { aspect-ratio: 647 / 831; border-radius: 3px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field input, .field textarea { width: 100%; min-width: 0; }
.paper .field input, .paper .field textarea { background: #fffdf8; border: 1.5px solid rgba(14, 47, 160, 0.28); color: var(--cobalt); font-size: 17px; padding: 13px 16px; }
.paper .field input:focus, .paper .field textarea:focus { border-color: var(--cobalt); box-shadow: 0 0 0 4px rgba(14, 47, 160, 0.12); }
.field textarea { font: 500 17px/1.45 var(--ui); resize: vertical; border-radius: 16px; outline: none; }
.count { justify-self: end; font-weight: 500; font-size: 13px; }

/* sealing: the card slides into an airmail envelope, then the postmark comes down */
.sealenv { position: absolute; left: 50%; top: 12px; width: min(100%, 560px); translate: -50% 0; aspect-ratio: 3 / 2; background: var(--paper); border: 9px solid; border-image: repeating-linear-gradient(-45deg, #c2452d 0 16px, var(--paper) 0 24px, var(--cobalt) 0 40px, var(--paper) 0 48px) 12; box-shadow: 0 24px 40px -12px rgba(10, 20, 60, 0.35); color: var(--cobalt); animation: envin 0.8s var(--ease) 0.45s both; }
@media (min-width: 960px) { .sealenv { top: 0; width: 100%; } }
.sealenv .flap { position: absolute; inset: 0 0 auto; height: 52%; background: #efe5d2; clip-path: polygon(0 0, 100% 0, 50% 100%); filter: drop-shadow(0 2px 0 rgba(14, 47, 160, 0.2)); }
.sealenv .addr { position: absolute; left: 10%; bottom: 14%; display: grid; font-family: var(--hand); font-size: clamp(24px, 4vw, 38px); line-height: 1.1; }
.sealenv .addr small { font-size: 0.5em; opacity: 0.75; }
.sealenv .envstamp { position: absolute; right: 6%; top: 8%; width: 14%; padding: 3px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18); }
.sealenv .envmark { position: absolute; right: 13%; top: 14%; width: 22%; aspect-ratio: 1; border: 3px solid var(--cobalt); border-radius: 50%; display: grid; place-items: center; text-align: center; white-space: pre-line; font: 700 clamp(10px, 1.4vw, 14px)/1.25 var(--post); letter-spacing: 0.06em; opacity: 0; mix-blend-mode: multiply; }
.makerstage.sealing #mk-card { transform: translateY(14%) scale(0.86); opacity: 0; }
.makerstage.sealed .envmark { animation: press 0.32s cubic-bezier(0.5, 0, 0.75, 0) both; }
.makerstage.sealed { animation: jolt 0.28s 0.3s; }
@keyframes envin { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes press { from { opacity: 0; transform: scale(1.9) rotate(-24deg); } to { opacity: 0.8; transform: scale(1) rotate(-12deg); } }
@keyframes jolt { 30% { transform: translateY(3px); } 60% { transform: translateY(-1px); } }

/* ---- Daak Plus: a quiet cobalt room with a printed card on the table */
.plus { padding-block: 24px 16px; }
.plusbox { background: var(--cobalt); color: var(--cream); border-radius: 32px; padding: clamp(24px, 4vw, 56px); display: grid; gap: 44px; align-items: center; }
.paper .plusbox .soft { color: rgba(246, 238, 223, 0.72); }
.plusbox .btn.solid { background: var(--cream) !important; color: var(--cobalt) !important; border-color: var(--cream) !important; }
.pluscopy { display: grid; gap: 18px; }
.pluscopy .post { opacity: 0.8; }
.pluscopy .pills li { border: 0; border-left: 1.5px solid rgba(246, 238, 223, 0.45); border-radius: 0; padding: 2px 0 2px 16px; }
.plusform { display: grid; gap: 10px; }
.plusform .field > span { font-size: 15px; }
.plusrow { display: flex; flex-wrap: wrap; gap: 10px; }
.plusrow input { flex: 1 1 220px; font-size: 17px !important; padding: 13px 18px !important; border-radius: 999px !important; }
.plusrow input:focus { border-color: var(--cream); box-shadow: 0 0 0 4px rgba(246, 238, 223, 0.25); }
.plusrow .btn { flex: 0 0 auto; }
.plusmsg { font: 21px/1.3 var(--hand); min-height: 1.3em; }
@media (max-width: 599px) { .plusrow .btn { flex: 1 1 100%; } }
/* on a phone, show the printed card first, then what it is */
@media (max-width: 959px) { .plusbox { gap: 28px; } .plusart { order: -1; padding-top: 8%; } .plusart figcaption { margin-top: 14%; } }
.plusart { margin: 0; position: relative; display: grid; padding: 4% 6% 0; }
.plusart .printed { grid-area: 1 / 1; }
/* card stock: a few hairlines of edge under each card, so it reads as thick paper, not a screen */
.plusart .printed .pc { box-shadow: 0 1px 0 #e4d8c3, 0 2px 0 #d6c9b1, 0 3px 0 #cbbda3, 0 18px 40px rgba(0, 0, 0, 0.35); }
.plusart .under { rotate: 6deg; translate: 9% -12%; }
.plusart .over { rotate: -3deg; translate: -5% 8%; }
.plusart figcaption { margin-top: 18%; text-align: center; font-size: 21px; }
@media (min-width: 960px) { .plusbox { grid-template-columns: 6fr 5fr; gap: 56px; } }

.foot canvas.him { width: 120px; height: 120px; display: block; border-radius: 50%; background: var(--cream); }
@media (min-width: 720px) { .foot canvas.him { width: 150px; height: 150px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- phones: most people meet daak here, so it gets its own pass */
@media (max-width: 599px) {
  /* hero: tighter, so the map (the point of the page) peeks above the fold */
  .hero { gap: 24px; padding-block: 0 40px; }
  .hero .copy { gap: 16px; }
  .hero .copy .hand { font-size: 20px; }
  .hero .row { flex-wrap: nowrap; }
  .hero .row .btn { flex: 1 1 0; padding: 0 12px; font-size: 15px; white-space: nowrap; }
  .pills li { padding: 12px 16px; }
  .got, .maker { padding-block: 56px; }
}
@media (max-width: 899px) {
  /* stories: where you are in the rail */
  .dots { display: flex; justify-content: center; gap: 2px; margin-top: -24px; }
  .storygrid { padding-bottom: 12px; align-items: start; }
  .dots button { appearance: none; border: 0; background: none; width: 32px; height: 32px; padding: 0; cursor: pointer; display: grid; place-items: center; }
  .dots button::before { content: ''; width: 8px; height: 8px; border-radius: 4px; background: var(--line); transition: width 0.3s var(--ease), background 0.3s; }
  .dots button[aria-current='true']::before { width: 22px; background: var(--cobalt); }
}
@media (min-width: 900px) { .dots { display: none; } }
@media (max-width: 959px) {
  /* writing with the keyboard up: the preview steps back so the words have room */
  .makergrid:has(.makerform :is(input, textarea):focus) #mk-card { width: 58%; }
  .makergrid:has(.makerform :is(input, textarea):focus) #mk-hint { display: none; }
}
/* the journey slider: a thumb you can actually hold */
.scrub input { -webkit-appearance: none; appearance: none; height: 36px; background: none; cursor: pointer; touch-action: none; }
.scrub input::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(var(--cobalt), var(--cobalt)) 0 / var(--p, 0%) 100% no-repeat, var(--line); }
.scrub input::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -12px; border-radius: 50%; background: var(--cream); border: 2.5px solid var(--cobalt); box-shadow: 0 3px 8px rgba(10, 20, 60, 0.25); }
.scrub input::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line); }
.scrub input::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--cobalt); }
.scrub input::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--cream); border: 2.5px solid var(--cobalt); box-shadow: 0 3px 8px rgba(10, 20, 60, 0.25); }
.foot .small a { display: inline-block; padding: 10px 0; }
.tile .face:has(> .pc), .tile .face.sealed-env { aspect-ratio: auto; }
@media (max-width: 959px) {
  /* the envelope sits in the middle of the screen, under your thumb, not up by the title */
  .read { min-height: calc(100svh - 76px); grid-template-rows: auto 1fr auto; }
  .stagecol { display: grid; align-content: center; padding-bottom: 8vh; }
  .read:has(#after:not([hidden])) .stagecol { padding-bottom: 0; }
}
@media (max-width: 369px) { .hero .row { flex-wrap: wrap; } .hero .row .btn { flex-basis: 100%; } }
