/* ==========================================================================
   amandasartini.com
   Cream paper, espresso ink, baby blue as the accent, baby yellow for warmth, a little sage.
   Folders hold the services, stamps hold the photos, letters hold the contact.
   ========================================================================== */

:root {
  --cream: #FAF6EE;
  --paper: #F3EBDD;
  --card: #FFFDF8;
  --ink: #3A2318;
  --ink-2: #6E5546;
  --ink-3: #9A8576;
  --line: rgba(58, 35, 24, .16);
  --accent: #6E9AD3;      /* baby blue, deep enough to read as type */
  --accent-deep: #4E78B0;
  --error: #A8402E;
  --blush: #F8D5CB;
  --blush-2: #EDB9AB;
  --blue: #C7DEF5;
  --blue-2: #A9C8EA;
  --blue-air: #8DB7E6;
  --yellow: #FBF0A9;
  --yellow-2: #EDDC7C;
  --green: #5E8C61;
  --sage: #D6E4CF;
  --sage-2: #B9CFB0;

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --header: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 30px 50px -32px rgba(58, 35, 24, .5);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--cream);
  /* A faint paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .23 0 0 0 0 .14 0 0 0 0 .09 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
em { font-style: italic; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--cream); border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
.eyebrow { margin: 0 0 16px; font: 600 .72rem/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.sec-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(2.7rem, 6.2vw, 5rem); line-height: .98; letter-spacing: -.015em; }
.sec-lede { max-width: 38ch; margin: 18px auto 0; color: var(--ink-2); font-size: 1.05rem; }
.sec-head { max-width: var(--max); margin: 0 auto clamp(40px, 6vw, 64px); padding: 0 var(--gutter); }
.sec-head.center { text-align: center; }
.sec-head.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; }
.sec-head.split .sec-lede { margin: 0; }
.section { padding: clamp(76px, 9vw, 120px) 0; }
.story { padding-bottom: clamp(30px, 4vw, 50px); }

/* ---------- Buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 28px; border-radius: 999px; border: 1px solid transparent; font: 600 .92rem/1 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: #5A3A28; }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--cream); }
.more-link { display: inline-flex; align-items: center; gap: 10px; margin: 36px 0 0; font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.more-link svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.more-link:hover svg { transform: translateX(5px); }

/* ---------- Header: floating pills over the page ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 10px;
  height: var(--header);
  padding: 0 var(--gutter);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.glass, .brand, .nav, .sub-link, .back {
  background: rgba(250, 246, 238, .76);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 0 0 1px rgba(58, 35, 24, .08), 0 14px 30px -18px rgba(58, 35, 24, .4);
}
.brand { margin-right: auto; padding: 10px 18px; border-radius: 999px; font-family: var(--serif); font-style: italic; font-size: 1.4rem; line-height: 1; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.back { margin-right: auto; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px 11px 14px; border-radius: 999px; font-size: .86rem; font-weight: 500; text-decoration: none; transition: background .3s; }
.back svg { width: 16px; height: 16px; transform: scaleX(-1); }
.back:hover { background: var(--card); }
.nav { position: absolute; left: 50%; translate: -50% 0; display: flex; padding: 5px; border-radius: 999px; }
.nav a { position: relative; z-index: 1; padding: 9px 18px; border-radius: 999px; font-size: .86rem; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap; transition: color .3s; }
.nav a:hover, .nav a[aria-current="true"] { color: var(--ink); }
.nav-ind { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: var(--w, 0); transform: translateX(var(--x, 0)); background: var(--card); border-radius: 999px; box-shadow: 0 2px 10px -3px rgba(58, 35, 24, .3); opacity: 0; transition: transform .55s var(--ease), width .55s var(--ease), opacity .3s; }
.nav-ind.on { opacity: 1; }
.nav-ind::before { content: ""; position: absolute; top: -10px; left: 50%; width: 22px; height: 4px; translate: -50% 0; background: var(--ink); border-radius: 0 0 4px 4px; }
.sub-wrap { position: relative; }
.sub-link { padding: 12px 18px; border: 0; border-radius: 999px; font-size: .86rem; font-weight: 500; cursor: pointer; transition: background .3s; }
.sub-link:hover, .sub-link[aria-expanded="true"] { background: var(--card); }
.hire-btn { padding: 12px 22px; font-size: .86rem; box-shadow: 0 14px 30px -16px rgba(58, 35, 24, .6); }

/* A small label, bottom left, naming the part of the page you're on */
.chapter { position: fixed; z-index: 40; left: 22px; bottom: 22px; display: flex; align-items: center; gap: 10px; margin: 0; color: var(--ink-3); font-size: .64rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: 0; pointer-events: none; transition: opacity .4s; }
.chapter.on { opacity: 1; }
.chapter .star { width: 22px; height: 22px; animation: none; transition: rotate .8s var(--ease); }
.chapter span { transition: opacity .25s, translate .25s; }
.chapter.swap .star { rotate: 180deg; }
.chapter.swap span { opacity: 0; translate: 0 6px; }

/* Words that light up one by one as you read down */
[data-words] .w { opacity: var(--o, 1); transition: opacity .2s linear; }

.news-pop {
  position: absolute; right: 0; top: calc(100% + 14px); z-index: 60;
  width: min(370px, calc(100vw - 32px));
  padding: 26px 24px 22px;
  background: var(--card);
  border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 40px 70px -30px rgba(58, 35, 24, .5);
  animation: popIn .35s var(--ease);
}
.news-pop[hidden] { display: none; }
.pop-title { margin: 0 0 8px; font-family: var(--serif); font-size: 2rem; line-height: 1; }
.pop-text { margin: 0 0 16px; color: var(--ink-2); font-size: .92rem; }
.pop-close { position: absolute; top: 10px; right: 14px; padding: 4px; border: 0; background: none; font-size: 1.5rem; line-height: 1; color: var(--ink-2); cursor: pointer; }

/* Newsletter forms (popover, postcard, inner pages) */
.news-form { display: flex; flex-wrap: wrap; gap: 8px; }
.news-form input[type="email"] { flex: 1 1 190px; min-width: 0; padding: 13px 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: .95rem; color: var(--ink); }
.news-form input[type="email"]::placeholder { color: var(--ink-3); }
.news-form button[type="submit"] { padding: 13px 22px; border: 0; border-radius: 999px; background: var(--ink); color: var(--cream); font-size: .9rem; font-weight: 600; cursor: pointer; transition: background .3s; }
.news-form button[type="submit"]:hover { background: #5A3A28; }
.news-form button[disabled] { opacity: .6; cursor: progress; }
.news-msg { flex-basis: 100%; min-height: 1.2em; margin: 2px 0 0 6px; font-size: .86rem; }
.news-msg:empty { display: none; }
.news-msg.err { color: var(--error); }
.news-form.done input, .news-form.done button { display: none; }
.news-form.done .news-msg { display: block; margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--ink); }

/* ---------- Hero: the giant name with a cut-out collage in the middle ---------- */
.hero { position: relative; min-height: max(640px, calc(100svh - var(--header) - 60px)); overflow: hidden; --p: 0; }
.hello { position: absolute; z-index: 4; right: calc(var(--gutter) + 2%); top: 5%; margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 1.5vw, 1.45rem); line-height: 1.15; color: var(--ink-2); text-align: right; }
.hello-arrow { position: absolute; z-index: 4; right: calc(var(--gutter) + 15%); top: calc(5% + 54px); width: 96px; height: 72px; transform: scaleX(-1) rotate(-8deg); fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.name { position: absolute; inset: 0; z-index: 3; margin: 0; pointer-events: none; font-family: var(--serif); font-weight: 400; font-size: clamp(5.5rem, 16vw, 15.5rem); line-height: .8; letter-spacing: -.035em; white-space: nowrap; }
.name-line { position: absolute; display: block; -webkit-text-stroke: .07em var(--cream); paint-order: stroke fill; }
.name-1 { left: calc(var(--gutter) - .03em); top: 4%; transform: translateX(calc(var(--p) * -14vw)); }
.name-2 { right: var(--gutter); top: 29%; padding-right: .06em; font-style: italic; color: var(--accent); transform: translateX(calc(var(--p) * 14vw)); }
.ltr { display: inline-block; }

.collage {
  position: absolute; z-index: 2; left: 50%; bottom: 0;
  height: min(680px, 92%); aspect-ratio: 4 / 5; max-width: 38vw;
  translate: -50% calc(var(--p) * -50px);
}
.collage > * { position: absolute; }
.arch { left: 9%; right: 9%; top: 25%; bottom: 0; background: var(--blue); border-radius: 999px 999px 0 0; }
.arch::after { content: ""; position: absolute; inset: -12px -12px 0; border: 1px solid rgba(58, 35, 24, .25); border-bottom: 0; border-radius: 999px 999px 0 0; }
.cut { height: auto; filter: drop-shadow(0 12px 16px rgba(58, 35, 24, .2)); transition: scale .5s var(--ease); }
.cut:hover { scale: 1.03; }
.c-laptop { left: 1%; bottom: 31%; width: 43%; rotate: -7deg; }
.c-main { left: 50%; bottom: 0; width: 74%; z-index: 2; translate: -50% 0; transform-origin: 50% 100%; }
.c-wine { left: -1%; bottom: 0; width: 33%; z-index: 3; }
.c-lamb { right: -5%; bottom: 0; width: 42%; z-index: 4; }

/* Stars, used sparingly */
.star { display: block; color: var(--sc, var(--accent)); pointer-events: none; }
.s-yellow { --sc: #EFC23F; }
.s-accent { --sc: var(--accent); }
.s-ink { --sc: var(--ink); }
.h-s1 { left: -3%; top: 30%; z-index: 5; width: 34px; height: 34px; rotate: -12deg; }
.h-s2 { right: 6%; top: 19%; z-index: 5; width: 24px; height: 24px; }
.h-s3 { right: 16%; top: 13%; z-index: 5; width: 13px; height: 13px; }

.hero-meta { position: absolute; z-index: 4; left: var(--gutter); bottom: 7%; width: clamp(280px, calc(31vw - 60px), 360px); }
.pitch { margin: 0 0 10px; font-family: var(--serif); font-size: clamp(2.4rem, 3.4vw, 3.2rem); line-height: 1; }
.pitch em { color: var(--accent); }
.pitch-sub { margin: 0 0 22px; color: var(--ink-2); font-size: 1rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-ctas .btn { padding: 14px 24px; }
.status-card { position: absolute; z-index: 4; right: var(--gutter); bottom: 9%; width: min(290px, 22vw); margin: 0; padding: 22px 22px 20px; background: var(--card); border-radius: 16px; box-shadow: 0 30px 44px -28px rgba(58, 35, 24, .5); rotate: 2.5deg; }
.sc-seal { position: absolute; top: -26px; right: -18px; width: 62px; height: 62px; rotate: 14deg; filter: drop-shadow(0 6px 6px rgba(58, 35, 24, .3)); }
.sc-top { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--green); }
.sc-main { margin: 0 0 8px; font-family: var(--serif); font-size: 1.55rem; line-height: 1.08; }
.sc-main em { color: var(--accent); }
.sc-sub { margin: 0; color: var(--ink-2); font-size: .84rem; }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(94, 140, 97, .2); }

/* ---------- Stamps (perforated edges) ---------- */
.stamp-wrap { filter: drop-shadow(0 12px 14px rgba(58, 35, 24, .22)); }
.stamp {
  --r: 5px;
  padding: 11px;
  background: var(--card);
  -webkit-mask:
    radial-gradient(var(--r), #0000 97%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)),
    linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r));
  mask:
    radial-gradient(var(--r), #0000 97%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)),
    linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r));
}
.stamp-face { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--face, var(--blue)); }
.stamp-face img { width: 100%; height: 100%; object-fit: cover; }
.stamp-face.cut img { object-fit: contain; object-position: 50% 100%; padding-top: 10%; }
.stamp-val { position: absolute; top: 6px; right: 8px; font-family: var(--serif); font-size: 1.15rem; line-height: 1; color: #fff; text-shadow: 0 1px 6px rgba(58, 35, 24, .35); }
.s-yellow { --face: var(--yellow); }
.s-blue { --face: var(--blue); }
.s-sage { --face: var(--sage); }
.s-accent { --face: var(--accent); }
.s-blush { --face: var(--blush); }
.stamp-face.type, .stamp-face:has(.stamp-mono) { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; }
.stamp-face.type::after, .stamp-face:has(.stamp-mono)::after { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(58, 35, 24, .25); pointer-events: none; }
.stamp-face.type::after { border-color: rgba(255, 255, 255, .55); }
.stamp-mono { font-family: var(--serif); font-style: italic; font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1; color: var(--ink); }
.stamp-small { padding: 0 10px; font-size: .56rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.next-q { font-size: .62rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #fff; }
.next-city { font-family: var(--serif); font-style: italic; font-size: clamp(2.2rem, 3.4vw, 2.9rem); line-height: 1; color: #fff; }
.next-when { font-size: .74rem; font-weight: 600; color: #fff; }

/* Postmark: a round cancel with wavy lines */
.postmark {
  position: absolute; z-index: 3;
  width: 108px; height: 108px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 1.5px solid rgba(58, 35, 24, .5); border-radius: 50%;
  color: rgba(58, 35, 24, .62);
  font-size: .58rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-align: center;
  rotate: -14deg;
  pointer-events: none;
}
.postmark::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(58, 35, 24, .3); border-radius: 50%; }
.postmark::after {
  content: ""; position: absolute; right: 88%; top: 32%; width: 130px; height: 36px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='130' height='12' viewBox='0 0 130 12'%3E%3Cpath d='M0 6 q 8 -6 16 0 t 16 0 t 16 0 t 16 0 t 16 0 t 16 0 t 16 0 t 16 0 t 16 0' fill='none' stroke='%233A2318' stroke-opacity='.42' stroke-width='1.5'/%3E%3C/svg%3E") repeat-y 0 0 / 130px 12px;
}
.postmark i { font-style: normal; font-weight: 600; opacity: .85; }

/* ---------- Proof: a bento of numbers ---------- */
.proof { padding-top: clamp(40px, 6vw, 80px); }
.bento { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: minmax(200px, auto); gap: 18px; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.bento-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: 28px; background: var(--card); border-radius: 24px; box-shadow: 0 26px 44px -34px rgba(58, 35, 24, .5); transition: transform .5s var(--ease); }
.bento-card:hover { transform: translateY(-4px); }
.bento-card b { font-family: var(--serif); font-weight: 400; font-size: clamp(3.4rem, 6vw, 5.2rem); line-height: .9; color: var(--accent); font-variant-numeric: tabular-nums; }
.bento-card span { max-width: 32ch; color: var(--ink-2); font-size: .92rem; line-height: 1.45; }
.bento-feature { grid-row: span 2; justify-content: space-between; background: var(--ink); color: var(--cream); }
.bento-feature p { margin: 40px 0 0; font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 2.7rem); line-height: 1.1; }
.bento-feature em { color: var(--yellow); }
.bento-feature span { color: rgba(250, 246, 238, .6); font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.bento-feature .star { position: absolute; top: 26px; right: 26px; width: 36px; height: 36px; }
.bento-wide { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; align-items: flex-end; gap: 26px; min-height: 0; }
.bento-wide span { max-width: 46ch; padding-bottom: 8px; }

/* ---------- Proof: three honest numbers under the hero ---------- */
.proof-row { padding: clamp(36px, 5vw, 64px) var(--gutter) 0; }
.proof-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: var(--max); margin: 0 auto; padding: 0; list-style: none; }
.proof-list li { display: flex; flex-direction: column; gap: 12px; padding: 26px 28px 24px; background: #DFECF9; border-radius: 22px; box-shadow: 0 26px 44px -34px rgba(58, 35, 24, .5); }
.proof-list li:nth-child(2) { background: #FCF3C4; }
.proof-list li:nth-child(3) { background: var(--ink); color: var(--cream); }
.proof-list b { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 5vw, 4.4rem); line-height: .9; font-variant-numeric: tabular-nums; }
.proof-list li:nth-child(3) b { color: var(--yellow); }
.proof-list span { max-width: 32ch; color: var(--ink-2); font-size: .92rem; line-height: 1.45; }
.proof-list li:nth-child(3) span { color: rgba(250, 246, 238, .72); }

/* ---------- Free Claude Skills ---------- */
.free { padding-top: clamp(40px, 6vw, 80px); }
.free-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.free-card { display: flex; flex-direction: column; padding: 12px 12px 22px; background: var(--card); border-radius: 22px; color: inherit; text-decoration: none; box-shadow: 0 26px 44px -34px rgba(58, 35, 24, .5); transition: transform .45s var(--ease), box-shadow .45s; }
.free-card:hover { transform: translateY(-6px); box-shadow: 0 34px 50px -32px rgba(58, 35, 24, .55); }
.free-media { display: block; aspect-ratio: 1200 / 630; margin-bottom: 16px; overflow: hidden; background: var(--paper); border-radius: 14px; }
.free-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.free-card:hover .free-media img { transform: scale(1.04); }
.free-card .work-title, .free-card .work-text, .free-card .work-link { margin-left: 10px; margin-right: 10px; }
.free-card .work-title { font-size: 1.7rem; }
.step-list code { padding: .1em .35em; font-size: .9em; background: var(--paper); border-radius: 6px; }
.free-card .work-text { font-size: .95rem; }
.free-card .work-link { align-self: flex-start; margin-top: auto; padding-top: 14px; }
a.free-card:hover .work-link svg { transform: translateX(4px); }
.free-note { max-width: var(--max); margin: 34px auto 0; padding: 0 var(--gutter); color: var(--ink-2); text-align: center; }
.free-note a, .side-note a { font-weight: 600; color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.side-note { margin: 0; padding: 0 8px; color: var(--ink-2); font-size: .92rem; }

/* ---------- Agora: the app I'm building ---------- */
.agora { padding: clamp(40px, 6vw, 80px) var(--gutter) 0; }
.agora-card {
  position: relative;
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 5vw, 70px); align-items: center;
  max-width: var(--max); margin: 0 auto;
  padding: clamp(26px, 4vw, 52px);
  background: #DFECF9; border-radius: 32px;
}
.agora-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.agora-brand img { width: 44px; height: auto; }
.badge { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; background: var(--card); border-radius: 999px; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 8px 18px -12px rgba(29, 40, 70, .4); }
.badge .dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(110, 154, 211, .22); }
.agora .sec-title { font-size: clamp(2.4rem, 4.4vw, 3.7rem); }
.agora-lede { max-width: 44ch; margin: 18px 0 22px; color: var(--ink-2); font-size: 1.08rem; }
.ticks { display: grid; gap: 10px; margin: 0 0 26px; padding: 0; list-style: none; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; font-size: .98rem; }
.ticks svg { flex: none; width: 20px; height: 20px; margin-top: 2px; padding: 3px; border-radius: 50%; background: var(--ink); color: var(--cream); }
.waitlist { max-width: 460px; }
.fine { margin: 12px 0 0 8px; color: var(--ink-3); font-size: .8rem; }
.agora-shot { position: relative; }
.agora-shot video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #F3F1EE; border: 8px solid #fff; border-radius: 24px; box-shadow: 0 44px 64px -36px rgba(29, 40, 70, .55); rotate: 1.5deg; }
.a-s1 { position: absolute; left: -22px; top: -20px; width: 46px; height: 46px; rotate: -14deg; }
.a-s2 { position: absolute; right: -12px; bottom: 16%; width: 28px; height: 28px; }

/* ---------- Services: cards that stack as you scroll ---------- */
.services { padding-bottom: clamp(40px, 6vw, 80px); }
.stack { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.stack-card {
  --cc: var(--card);
  position: sticky; top: calc(var(--header) + 12px + var(--i) * 16px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 60px); align-items: center;
  margin-bottom: 36px; padding: clamp(26px, 3.6vw, 46px);
  background: var(--cc); border-radius: 32px;
  box-shadow: 0 30px 60px -40px rgba(58, 35, 24, .55), 0 0 0 1px rgba(58, 35, 24, .05);
  transform-origin: 50% 0; scale: var(--s, 1);
}
.stack-card:last-child { margin-bottom: 0; }
.sc-skills { --cc: #FFFDF8; }
.sc-web { --cc: #FCF3C4; }
.sc-social { --cc: #E2EDDC; }
.sc-ugc { --cc: #EFE6D8; }
.sc-apps { --cc: #DFECF9; }
.stack-label { margin: 0 0 14px; color: var(--ink-2); font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.stack-copy h3 { margin: 0 0 14px; font-family: var(--serif); font-weight: 400; font-size: clamp(2.3rem, 4vw, 3.5rem); line-height: .98; letter-spacing: -.01em; }
.stack-copy h3 em { color: var(--accent); }
.stack-copy > p { max-width: 42ch; margin: 0 0 22px; color: var(--ink-2); font-size: 1.06rem; }
.stack-copy > p b { color: var(--ink); font-weight: 600; }
.stack-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.stack-ctas .btn svg { width: 16px; height: 16px; }
.stack-art { position: relative; display: block; aspect-ratio: 16 / 10; }
.stack-art img { position: absolute; height: auto; object-fit: cover; border-radius: 14px; box-shadow: 0 26px 40px -26px rgba(58, 35, 24, .55); transition: transform .7s var(--ease); }
.stack-card:hover .stack-art img { transform: translateY(-6px); }
.art-skills img { width: 76%; aspect-ratio: 1200 / 630; border: 6px solid #fff; }
.art-skills img:nth-child(1) { left: 0; top: 4%; rotate: -3deg; }
.art-skills img:nth-child(2) { right: 0; bottom: 4%; rotate: 3deg; }
.art-skills .star { position: absolute; left: -12px; top: -4%; z-index: 2; width: 40px; height: 40px; }
.art-web img { border: 6px solid #fff; }
.art-web img:nth-child(1) { left: 0; top: 4%; width: 82%; aspect-ratio: 16 / 10; rotate: -2deg; }
.art-web img:nth-child(2) { right: 0; bottom: 2%; width: 66%; aspect-ratio: 16 / 9; rotate: 3deg; }
.art-fan img { top: 6%; width: 36%; aspect-ratio: 4 / 5; border: 5px solid #fff; }
.art-fan img:nth-child(1) { left: 6%; rotate: -8deg; }
.art-fan img:nth-child(2) { left: 32%; top: 2%; z-index: 1; rotate: 1deg; }
.art-fan img:nth-child(3) { left: 58%; rotate: 8deg; }
.art-trio img { top: 8%; width: 31%; aspect-ratio: 4 / 5; }
.art-trio img:nth-child(1) { left: 2%; top: 12%; rotate: -4deg; }
.art-trio img:nth-child(2) { left: 34.5%; top: 3%; z-index: 1; }
.art-trio img:nth-child(3) { left: 67%; top: 14%; rotate: 4deg; }
.art-apps img { left: 8%; top: 3%; width: 84%; aspect-ratio: 16 / 11; object-position: 50% 0; border: 8px solid #fff; border-radius: 22px; rotate: 2deg; }

.work-card { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.work-card.wide { grid-column: 1 / -1; }
.work-media { position: relative; display: block; aspect-ratio: 4 / 3; margin-bottom: 12px; overflow: hidden; background: var(--paper); border-radius: 14px; }
.work-media > img, .work-media > video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: transform .7s var(--ease); }
a.work-card:hover .work-media > img, a.work-card:hover .work-media > video { transform: scale(1.04); }
.work-tag { margin-bottom: 4px; color: var(--ink-3); font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.work-title { margin-bottom: 4px; font-family: var(--serif); font-size: 1.3rem; line-height: 1.05; }
.work-text { color: var(--ink-2); font-size: .88rem; line-height: 1.45; }
.work-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .86rem; font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.work-link svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
a.work-card:hover .work-link svg { transform: translateX(4px); }
.work-media.soon { display: grid; place-items: center; background: repeating-linear-gradient(90deg, var(--yellow) 0 14px, #FDF6CF 14px 28px); }
.work-media.soon span { padding: 8px 14px; background: var(--card); border-radius: 6px; font-family: var(--serif); font-size: 1.6rem; rotate: -3deg; box-shadow: 0 10px 18px -12px rgba(58, 35, 24, .4); }
.work-media.soon em { color: var(--accent); }
.work-media.trio { aspect-ratio: 16 / 8; }
.work-media.fan { background: var(--blue); }
.work-media.fan img { position: absolute; top: 12%; width: 36%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border: 4px solid #fff; border-radius: 6px; box-shadow: 0 14px 22px -14px rgba(58, 35, 24, .5); }
.work-media.fan img:nth-child(1) { left: 6%; rotate: -8deg; }
.work-media.fan img:nth-child(2) { left: 32%; top: 8%; z-index: 1; rotate: 1deg; }
.work-media.fan img:nth-child(3) { left: 58%; rotate: 8deg; }
.work-media.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: none; border-radius: 0; }
.work-media.trio img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }

/* ---------- My content: blue stripes, a phone and stamps ---------- */
.social { padding: clamp(70px, 8vw, 104px) 0; background: repeating-linear-gradient(90deg, var(--blue) 0 24px, #DDEBF9 24px 48px); }
.social-stage { position: relative; max-width: 980px; min-height: 560px; margin: 0 auto; padding: 0 var(--gutter); display: grid; place-items: center; }
.ig-stamps { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.ig-stamps li { position: absolute; width: clamp(150px, 17vw, 186px); filter: drop-shadow(0 14px 16px rgba(29, 60, 100, .28)); transition: transform .5s var(--ease); }
.ig-stamps li:nth-child(1) { left: 7%; top: 16%; rotate: -7deg; }
.ig-stamps li:nth-child(2) { right: 7%; top: 24%; rotate: 6deg; }
.ig-stamps li:nth-child(n+3) { display: none; }
.ig-stamps li:hover { transform: scale(1.06) rotate(calc(-1 * var(--tw, 0deg))); z-index: 3; }
.ig-stamps a {
  --r: 5px;
  position: relative; display: block; padding: 10px; background: var(--card);
  -webkit-mask:
    radial-gradient(var(--r), #0000 97%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)),
    linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r));
  mask:
    radial-gradient(var(--r), #0000 97%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)),
    linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r));
}
.ig-stamps img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.ig-stamps a[data-kind]::after { content: attr(data-kind); position: absolute; top: 16px; right: 16px; color: #fff; font-size: .7rem; font-weight: 700; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }

.phone { position: relative; z-index: 2; width: min(276px, 78vw); padding: 11px; background: #1E1714; border-radius: 46px; box-shadow: 0 60px 90px -45px rgba(29, 40, 70, .7); }
.phone-screen { overflow: hidden; background: #fff; border-radius: 36px; }
.ig-top { display: flex; align-items: center; gap: 8px; padding: 16px 16px 10px; font-size: .8rem; }
.ig-top b { font-weight: 600; }
.ig-top span { margin-left: auto; max-width: 48%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink-3); font-size: .72rem; }
.ig-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.ig-media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #EEE7DD; touch-action: pan-y; }
.ig-slides { display: flex; height: 100%; transform: translateX(calc(var(--slide, 0) * -100%)); transition: transform .65s var(--ease); }
.ig-slides img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; }
.ig-nav { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 28px; height: 28px; padding: 0 0 2px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .88); font-size: 1.15rem; line-height: 1; cursor: pointer; translate: 0 -50%; }
.ig-prev { left: 8px; }
.ig-next { right: 8px; }
.ig-dots { display: flex; justify-content: center; gap: 4px; min-height: 20px; padding: 10px 0 4px; }
.ig-dots i { width: 6px; height: 6px; border-radius: 50%; background: #D8D2CC; transition: background .3s; }
.ig-dots i.on { background: #3897F0; }
.ig-caption { margin: 2px 16px 20px; font-size: .8rem; line-height: 1.4; }
.ig-caption b { font-weight: 600; }
.ig-sound { position: absolute; right: 10px; bottom: 10px; z-index: 2; padding: 6px 12px; border: 0; border-radius: 999px; background: rgba(30, 23, 20, .72); color: #fff; font-size: .76rem; font-weight: 600; cursor: pointer; }

.handles { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 44px auto 0; padding: 0 var(--gutter); list-style: none; }
.handles a { display: flex; align-items: center; gap: 12px; padding: 10px 24px 10px 10px; background: var(--card); border-radius: 999px; text-decoration: none; box-shadow: 0 14px 24px -18px rgba(29, 40, 70, .55); transition: background .3s, color .3s, transform .3s var(--ease); }
.handles a:hover { background: var(--ink); color: var(--cream); transform: translateY(-3px); }
.handles svg { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--blue); fill: var(--ink); }
.handles span { display: flex; flex-direction: column; font-weight: 600; font-size: .92rem; line-height: 1.2; }
.handles small { font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .7; }

/* ---------- About: a route of stamps ---------- */
.route { position: relative; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); --route: 1; }
.route-line { position: absolute; z-index: 0; left: var(--gutter); top: 70px; width: calc(100% - 2 * var(--gutter)); height: 130px; color: var(--accent); overflow: visible; }
.route-draw { stroke-dasharray: 1 1; stroke-dashoffset: calc(1 - var(--route)); }
.stops { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; margin: 0; padding: 0; list-style: none; }
.stop { text-align: center; }
.stop .stamp-wrap { width: min(196px, 100%); margin: 0 auto 22px; rotate: var(--r, 0deg); transition: rotate .6s var(--ease), transform .6s var(--ease); }
.stop:hover .stamp-wrap { rotate: 0deg; transform: translateY(-6px) scale(1.03); }
.stop-place { margin: 0 0 6px; font-family: var(--serif); font-size: 1.55rem; line-height: 1.1; }
.stop p:not(.stop-place) { max-width: 25ch; margin: 0 auto; color: var(--ink-2); font-size: .95rem; }

.about-grid { max-width: 1060px; margin: clamp(70px, 9vw, 110px) auto 0; padding: 0 var(--gutter); display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.about-lead { margin: 0 0 22px; font-family: var(--serif); font-size: clamp(1.75rem, 2.8vw, 2.35rem); line-height: 1.12; }
.about-lead em { color: var(--accent); }
.about-text p:not(.about-lead) { margin: 0; color: var(--ink-2); }
.facts { margin: 0; }
.facts div { padding: 14px 0; border-top: 1px solid var(--line); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { margin: 0 0 4px; font-size: .66rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.facts dd { margin: 0; font-size: .98rem; }

.about-solo { max-width: 780px; margin: 0 auto; padding: 0 var(--gutter); text-align: center; }
.about-solo p:not(.about-lead) { max-width: 58ch; margin: 0 auto; color: var(--ink-2); }

/* A strip of photos that drifts sideways as you scroll */
.strip { margin-top: clamp(60px, 8vw, 100px); overflow: hidden; }
.strip-track { display: flex; gap: 14px; width: max-content; transform: translateX(var(--sx, 0)); will-change: transform; }
.strip img { width: clamp(140px, 15vw, 210px); aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }

/* ---------- Library ---------- */
.library .bookcase, .library .more-link { max-width: var(--max); margin-left: auto; margin-right: auto; }
.library .more-link { display: flex; width: fit-content; margin-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
.bookcase { position: relative; padding: 0 var(--gutter); }
.shelf-status { margin: 0 0 18px; color: var(--ink-2); font-size: .95rem; }
.shelf-status:empty { display: none; }
.shelf-status a { font-weight: 600; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.shelf-label { display: flex; align-items: baseline; gap: 14px; margin: 34px 0 10px; }
.shelf-label b { font-family: var(--serif); font-weight: 400; font-size: 2.1rem; line-height: 1; }
.shelf-label span { color: var(--ink-3); font-size: .86rem; font-weight: 600; }
.shelf {
  position: relative;
  display: flex; align-items: flex-end; gap: 3px;
  min-height: 260px; padding: 44px 26px 0;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: thin; scrollbar-color: var(--ink-3) transparent;
  background: linear-gradient(#EFE4D2, #F6EEE1);
  border-radius: 14px 14px 0 0;
  box-shadow: inset 0 14px 20px -16px rgba(58, 35, 24, .35);
}
.shelf-plank { height: 16px; background: linear-gradient(#5A3A28, var(--ink)); border-radius: 0 0 6px 6px; box-shadow: 0 16px 20px -14px rgba(58, 35, 24, .6); }
.book {
  flex: none; position: relative;
  display: flex; align-items: center; justify-content: center;
  width: var(--w, 30px); height: var(--h, 180px);
  padding: 12px 0;
  background: var(--c, var(--blue)); color: var(--t, var(--ink));
  border: 0; border-radius: 3px 3px 0 0;
  box-shadow: inset 3px 0 0 rgba(255, 255, 255, .3), inset -3px 0 0 rgba(0, 0, 0, .08);
  cursor: pointer;
  transform-origin: 50% 100%;
  transition: transform .35s var(--ease);
}
.book span { writing-mode: vertical-rl; max-height: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-family: var(--serif); font-size: .92rem; letter-spacing: .01em; }
.book::after { content: ""; position: absolute; left: 4px; right: 4px; top: 12px; height: 1px; background: currentColor; opacity: .35; box-shadow: 0 4px 0 currentColor; }
.book:hover, .book:focus-visible, .book.out { transform: translateY(-20px) rotate(-2deg); z-index: 2; }
.book.lean { rotate: 6deg; margin-left: 8px; }
.book.blank { cursor: default; opacity: .9; }
.book.blank:hover { transform: none; }
.shelf-sign { position: absolute; left: 50%; top: 50%; z-index: 3; margin: 0; padding: 16px 26px; translate: -50% -50%; background: var(--card); border-radius: 4px; box-shadow: var(--shadow); font-family: var(--serif); font-style: italic; font-size: 1.6rem; line-height: 1.1; text-align: center; white-space: nowrap; rotate: -2deg; }
.face-out { flex: none; position: relative; width: 120px; margin-right: 16px; padding: 0; border: 0; background: none; cursor: pointer; transform-origin: 50% 100%; transition: transform .35s var(--ease); }
.face-out img { width: 120px; height: 180px; object-fit: cover; border-radius: 3px 3px 0 0; box-shadow: 4px 0 10px rgba(58, 35, 24, .2); }
.face-out:hover, .face-out.out { transform: translateY(-14px) rotate(-3deg); }
.face-out small { position: absolute; top: -28px; left: 50%; padding: 3px 10px; translate: -50% 0; background: var(--accent-deep); color: #fff; border-radius: 999px; font-size: .66rem; font-weight: 600; letter-spacing: .06em; white-space: nowrap; }
.book-card {
  position: absolute; z-index: 20;
  display: grid; grid-template-columns: 88px 1fr; gap: 16px;
  width: min(340px, calc(100vw - 32px)); padding: 16px;
  background: var(--card); border-radius: 14px;
  box-shadow: 0 30px 50px -24px rgba(58, 35, 24, .55);
  animation: popIn .3s var(--ease);
}
.book-card[hidden] { display: none; }
.book-card img { width: 88px; height: 132px; object-fit: cover; border-radius: 3px; background: var(--paper); }
.book-card h4 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 1.3rem; line-height: 1.1; }
.book-card p { margin: 4px 0 0; color: var(--ink-2); font-size: .86rem; }
.book-card .stars { color: #D29A1E; letter-spacing: 2px; font-size: 1rem; }
.book-card a { display: inline-block; margin-top: 8px; font-weight: 600; font-size: .85rem; text-decoration-color: var(--accent); text-underline-offset: 4px; }

/* ---------- Thoughts ---------- */
.thoughts-teaser .post-list, .thoughts-teaser .more-link { max-width: var(--max); margin-left: auto; margin-right: auto; padding: 0 var(--gutter); }
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { display: flex; flex-direction: column; gap: 10px; padding: 28px 26px 26px; background: var(--card); border-radius: 18px; text-decoration: none; box-shadow: 0 20px 34px -28px rgba(58, 35, 24, .5); transition: transform .4s var(--ease), box-shadow .4s; }
.post-card:hover { transform: translateY(-5px); box-shadow: 0 30px 44px -28px rgba(58, 35, 24, .55); }
.post-card h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.08; }
.post-card p { margin: 0; color: var(--ink-2); font-size: .96rem; }
.post-meta { margin: 0; font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Contact: a letter and a postcard ---------- */
.contact { padding: clamp(84px, 10vw, 130px) 0 clamp(90px, 11vw, 140px); background: var(--paper); }
.mail { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.letter {
  padding: 13px;
  background: repeating-linear-gradient(-45deg, var(--blue-air) 0 16px, var(--card) 16px 26px, var(--yellow-2) 26px 42px, var(--card) 42px 52px);
  border-radius: 6px;
  box-shadow: 0 50px 70px -45px rgba(58, 35, 24, .55);
  rotate: 0deg;
}
.letter-paper { position: relative; padding: clamp(30px, 4.5vw, 48px); background: var(--card); border-radius: 2px; }
.letter-top { position: relative; height: 96px; margin-bottom: 8px; }
.letter-stamp { position: absolute; right: -6px; top: -10px; width: 92px; rotate: 6deg; }
.letter-stamp .stamp { --r: 4px; padding: 8px; }
.letter-stamp .stamp-val { font-size: .95rem; }
.pm-letter { right: 74px; top: 2px; width: 88px; height: 88px; font-size: .5rem; }
.letter-hi { margin: 0 0 18px; font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 3.4vw, 2.6rem); line-height: 1.02; }
.letter-paper > p { max-width: 46ch; margin: 0; color: var(--ink-2); }
.letter-paper > .letter-hi { margin: 0 0 24px; color: var(--ink); }
.brief { display: grid; gap: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.chips legend, .field label { margin-bottom: 10px; padding: 0; color: var(--ink-3); font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.chips label { position: relative; }
.chips input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chips span { display: inline-block; padding: 9px 16px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; font-weight: 500; transition: background .25s, color .25s, border-color .25s; }
.chips label:hover span { border-color: var(--ink); }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.field { display: grid; }
.field label { margin-bottom: 4px; }
.field input { width: 100%; padding: 10px 2px; background: transparent; border: 0; border-bottom: 1.5px solid var(--line); border-radius: 0; font: inherit; font-size: 1.05rem; color: var(--ink); transition: border-color .25s; }
.field textarea { width: 100%; min-height: 128px; padding: 0 2px; background: repeating-linear-gradient(to bottom, transparent 0 31px, rgba(58, 35, 24, .16) 31px 32px); border: 0; border-radius: 0; font: inherit; font-size: 1.05rem; line-height: 32px; color: var(--ink); resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.field textarea:focus { background: repeating-linear-gradient(to bottom, transparent 0 31px, rgba(58, 35, 24, .4) 31px 32px); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.err > label, .chips.err legend { color: var(--error); }
.field.err input { border-bottom-color: var(--error); }
.brief-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 4px; }
.brief-note { margin: 0; color: var(--ink-3); font-family: var(--serif); font-style: italic; font-size: 1.05rem; }
.brief-msg { margin: 0; font-size: .9rem; }
.brief-msg:empty { display: none; }
.brief-msg.err { color: var(--error); }
/* After sending: the airmail border goes (it flew away) and a thank-you card takes its place */
.letter.is-sent { padding: 0; background: none; box-shadow: none; }
.letter.is-sent .letter-paper { display: grid; place-items: center; min-height: 420px; text-align: center; border-radius: 22px; box-shadow: 0 26px 44px -34px rgba(58, 35, 24, .5); }
.letter.is-sent .letter-top, .letter.is-sent .letter-hi { display: none; }
.brief[hidden], .brief-done[hidden] { display: none; }
.brief-done { max-width: 34ch; }
.brief-done:focus { outline: none; }
.done-trail { display: block; width: 190px; margin: 0 auto 14px; }
.done-trail svg { display: block; width: 100%; height: auto; overflow: visible; }
.done-title { margin: 0 0 10px; font-family: var(--serif); font-size: clamp(2.3rem, 4vw, 3.2rem); line-height: 1; color: var(--ink); }
.done-title em { color: var(--accent); }
.brief-done .done-sub { margin: 0 0 18px; color: var(--ink-2); font-size: 1.12rem; }
.brief-done .letter-sign span { margin-top: 0; }
.plane-fly { position: fixed; z-index: 90; width: 0; height: 0; pointer-events: none; }
.plane-fly svg { position: absolute; left: -56px; top: -36px; width: 112px; height: auto; filter: drop-shadow(0 16px 14px rgba(58, 35, 24, .22)); }
.plane-trail { position: fixed; inset: 0; z-index: 89; width: 100vw; height: 100vh; pointer-events: none; overflow: visible; }
.side { display: grid; gap: 22px; }
.side-card { position: relative; padding: 28px 28px 26px; background: var(--card); border-radius: 22px; box-shadow: 0 26px 44px -34px rgba(58, 35, 24, .5); }
.side-card h3 { margin: 0 0 6px; font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1.05; }
.side-card h3 em { color: var(--accent); }
.side-card > p { margin: 0 0 16px; color: var(--ink-2); font-size: .95rem; }
.side-card .btn[hidden] { display: none; }
.side-star { position: absolute; top: -16px; right: 22px; width: 34px; height: 34px; rotate: 12deg; }
.side .email-row { margin: 4px 0 18px; }
.side .email { font-size: 1.35rem; }
.side .socials { margin: 0; }
.side .postcard { margin-top: 26px; }
.side .news-title { font-size: clamp(2rem, 3vw, 2.5rem); }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 26px 0 24px; }
.email { font-family: var(--serif); font-size: clamp(1.5rem, 2.7vw, 2.1rem); line-height: 1.1; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 6px; overflow-wrap: anywhere; }
.copy { padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-size: .78rem; font-weight: 600; cursor: pointer; transition: background .3s, color .3s; }
.copy:hover { background: var(--ink); color: var(--cream); }
.cv-btn { margin: 0 0 26px; padding: 17px 30px; font-size: 1rem; }
.socials { display: flex; gap: 10px; margin: 0 0 30px; padding: 0; list-style: none; }
.socials a { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; transition: background .3s, color .3s, border-color .3s; }
.socials a:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.letter-sign { margin: 0; font-family: var(--serif); font-size: 1.15rem; line-height: 1.2; color: var(--ink); }
.letter-sign span { display: block; margin-top: 4px; font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--accent); }

.postcard { position: relative; isolation: isolate; margin-top: 34px; padding: 46px 34px 40px; rotate: .8deg; filter: drop-shadow(0 30px 30px rgba(58, 35, 24, .22)); }
.postcard::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  --r: 10px;
  background: var(--blue);
  -webkit-mask:
    radial-gradient(var(--r), #0000 97%, #000) round calc(-1 * var(--r)) calc(-1 * var(--r)) / calc(2 * var(--r)) calc(2 * var(--r)),
    linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 2 * var(--r)) calc(100% - 2 * var(--r));
  mask:
    radial-gradient(var(--r), #0000 97%, #000) round calc(-1 * var(--r)) calc(-1 * var(--r)) / calc(2 * var(--r)) calc(2 * var(--r)),
    linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 2 * var(--r)) calc(100% - 2 * var(--r));
}
.pc-seal { position: absolute; top: -40px; right: 26px; width: 92px; height: 92px; rotate: 12deg; filter: drop-shadow(0 8px 8px rgba(58, 35, 24, .3)); }
.postcard .eyebrow { margin-bottom: 12px; }
.news-title { margin: 0 0 14px; font-family: var(--serif); font-weight: 400; font-size: clamp(2.5rem, 4vw, 3.3rem); line-height: .98; }
.postcard > p:not(.eyebrow) { margin: 0 0 22px; color: var(--ink-2); }
.postcard .d-cup { right: 22px; bottom: -34px; width: 70px; height: 70px; rotate: 8deg; }

/* ---------- Footer ---------- */
.footer { padding: clamp(60px, 8vw, 100px) var(--gutter) 34px; background: var(--ink); color: var(--cream); }
.foot-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; max-width: var(--max); margin: 0 auto 54px; }
.foot-statement { max-width: 30ch; margin: 0; font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.12; }
.foot-statement a { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.foot-star { flex: none; width: 70px; height: 70px; color: var(--yellow); }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: var(--max); margin: 0 auto; padding-top: 30px; border-top: 1px solid rgba(250, 246, 238, .2); }
.foot-cols nav { display: grid; align-content: start; gap: 12px; }
.foot-cols a, .foot-bottom a { width: fit-content; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: underline; text-decoration-color: rgba(250, 246, 238, .3); text-underline-offset: 5px; transition: text-decoration-color .3s; }
.foot-cols a:hover, .foot-bottom a:hover { text-decoration-color: var(--yellow); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; max-width: var(--max); margin: 54px auto 0; }
.foot-bottom p { margin: 0; font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }

/* ---------- Inner pages ---------- */
.page-hero { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 96px) var(--gutter) 10px; }
.page-hero .sec-title { font-size: clamp(3.6rem, 10vw, 7.4rem); }
.page-hero .lede { max-width: 40em; margin: 22px 0 0; color: var(--ink-2); font-size: 1.15rem; }
.page-hero + .section { padding-top: 44px; }
.lib-stats { display: flex; flex-wrap: wrap; gap: 14px; max-width: var(--max); margin: 0 auto 30px; padding: 0 var(--gutter); list-style: none; }
.lib-stats:empty { display: none; }
.lib-stats li { padding: 16px 22px; background: var(--card); border-radius: 14px; box-shadow: 0 16px 28px -24px rgba(58, 35, 24, .5); }
.lib-stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: 2.4rem; line-height: 1; }
.lib-stats span { color: var(--ink-2); font-size: .86rem; }
.thoughts-page { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.empty-note { max-width: 620px; padding: 30px 32px; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); }
.empty-note p { margin: 0 0 6px; color: var(--ink-2); }
.empty-note .big { margin: 0 0 8px; font-family: var(--serif); font-style: italic; font-size: 2rem; line-height: 1.1; color: var(--ink); }
.news-block { max-width: 720px; margin: 0 auto; padding: 30px var(--gutter) clamp(90px, 10vw, 130px); }
.news-block .postcard { margin-top: 40px; rotate: -1deg; }
.article { max-width: 720px; margin: 0 auto; padding: clamp(50px, 7vw, 80px) var(--gutter) 30px; }
.article-back { display: inline-block; margin-bottom: 30px; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.article-back:hover { text-decoration: underline; text-underline-offset: 5px; }
.article h1 { margin: 10px 0 16px; font-family: var(--serif); font-weight: 400; font-size: clamp(2.8rem, 7vw, 4.6rem); line-height: .98; letter-spacing: -.015em; }
.article .dek { margin: 0 0 28px; color: var(--ink-2); font-size: 1.28rem; line-height: 1.45; }
.article-body { font-size: 1.12rem; line-height: 1.75; }
.article-body h2 { margin: 2em 0 .5em; font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.1; }
.article-body p, .article-body ul, .article-body ol { margin: 0 0 1.2em; }
.article-body a { text-decoration-color: var(--accent); text-underline-offset: 4px; }
.article-body blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--accent); font-family: var(--serif); font-style: italic; font-size: 1.7rem; line-height: 1.25; }
.article-body img { margin: 1.6em auto; border-radius: 12px; }
.article-nav { display: flex; justify-content: space-between; gap: 20px; max-width: 720px; margin: 0 auto; padding: 10px var(--gutter) 10px; font-weight: 600; }
.article-nav a { text-decoration-color: var(--accent); text-underline-offset: 5px; }

/* ---------- Internship page ---------- */
.intern-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; max-width: var(--max); margin: 0 auto; padding: clamp(50px, 8vw, 110px) var(--gutter) clamp(10px, 2vw, 30px); }
.intern-hero h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(3.4rem, 8vw, 6.6rem); line-height: .92; letter-spacing: -.025em; }
.intern-hero h1 em { color: var(--accent); }
.intern-hero .lede { max-width: 42ch; margin: 22px 0 30px; color: var(--ink-2); font-size: clamp(1.1rem, 1.6vw, 1.3rem); }
.status-card.static { position: relative; right: auto; bottom: auto; width: auto; max-width: 340px; justify-self: center; }
@media (max-width: 900px) {
  .intern-hero { grid-template-columns: 1fr; }
  .status-card.static { justify-self: start; margin: 10px 0 0 4px; }
}

/* ---------- Service pages ---------- */
.svc-hero { position: relative; max-width: 1000px; margin: 0 auto; padding: clamp(40px, 7vw, 100px) var(--gutter) 20px; text-align: center; }
.svc-icon { display: block; width: 72px; height: 72px; margin: 0 auto 20px; }
img.svc-icon { width: auto; height: 80px; }
.svc-hero h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(3.8rem, 12vw, 9.6rem); line-height: .9; letter-spacing: -.03em; }
.svc-hero h1 em { color: var(--accent); }
.svc-hero .lede { max-width: 40ch; margin: 24px auto 0; color: var(--ink-2); font-size: clamp(1.1rem, 1.8vw, 1.35rem); }
.svc-hero .lede b { color: var(--ink); font-weight: 600; }
.svc-hero .hero-ctas { justify-content: center; margin-top: 30px; }
.hand-note { display: inline-flex; flex-direction: column; align-items: center; margin-top: 40px; color: var(--accent); font-family: var(--serif); font-style: italic; font-size: 1.3rem; rotate: -3deg; text-decoration: none; }
.hand-note svg { width: 34px; height: 64px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.premise { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: start; max-width: var(--max); margin: 0 auto; padding: clamp(80px, 12vw, 150px) var(--gutter); }
.premise-text { margin: 0; font-family: var(--serif); font-size: clamp(2.1rem, 4.4vw, 3.8rem); line-height: 1.05; letter-spacing: -.01em; }
.premise-text em { color: var(--accent); }
.strike-label { margin: 10px 0 18px; color: var(--ink-3); font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.strike-list { margin: 0; padding: 0; list-style: none; }
.strike-list li { position: relative; width: fit-content; margin-bottom: 14px; color: var(--ink-3); font-size: 1.1rem; }
.strike-list li::after { content: ""; position: absolute; left: -2px; right: -2px; top: 54%; height: 2px; background: var(--accent); transform-origin: left; }
.strike-after { margin: 26px 0 0; font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; }
.work-sec { --tint: var(--paper); padding: clamp(70px, 9vw, 120px) 0; background: linear-gradient(var(--cream), var(--tint) 160px, var(--tint) calc(100% - 160px), var(--cream)); }
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 46px 30px; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.work-grid .work-card.wide { grid-column: 1 / -1; }
.work-grid .work-media { aspect-ratio: 16 / 10; border-radius: 20px; margin-bottom: 16px; box-shadow: 0 30px 50px -40px rgba(58, 35, 24, .6); }
.work-grid .wide .work-media { aspect-ratio: 21 / 9; }
.work-grid .work-title { font-size: clamp(1.7rem, 2.4vw, 2.1rem); }
.work-grid .work-text { max-width: 50ch; font-size: .98rem; }
.work-media.phones { display: flex; align-items: center; justify-content: center; gap: 4%; padding: 5% 0; background: var(--yellow); }
.work-media.phones img { width: 26%; height: auto; aspect-ratio: 4 / 5; border-radius: 12px; box-shadow: 0 20px 30px -20px rgba(58, 35, 24, .6); object-fit: cover; }
.work-media.phones img:nth-child(2) { width: 30%; }
.work-media.soon-big { display: grid; place-items: center; background: repeating-linear-gradient(90deg, var(--blue) 0 16px, #E3EEF9 16px 32px); }
.work-media.soon-big span { padding: 14px 20px; background: var(--card); border-radius: 6px; font-family: var(--serif); font-size: 1.9rem; rotate: -3deg; box-shadow: 0 14px 24px -14px rgba(58, 35, 24, .5); }
.work-media.soon-big em { color: var(--accent); }
.steps { max-width: var(--max); margin: 0 auto; padding: clamp(70px, 10vw, 130px) var(--gutter) 0; }
.step-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
.step-list li { padding: 28px 24px 26px; background: var(--card); border-radius: 22px; box-shadow: 0 24px 40px -32px rgba(58, 35, 24, .5); }
.step-num { display: block; margin-bottom: 18px; color: var(--accent); font-family: var(--serif); font-style: italic; font-size: 2.6rem; line-height: 1; }
.step-list h3 { margin: 0 0 8px; font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.05; }
.step-list p { margin: 0; color: var(--ink-2); font-size: .94rem; }
.chips-inline { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.chips-inline li { padding: 6px 14px; background: var(--card); border-radius: 999px; font-size: .86rem; font-weight: 500; }

/* ==========================================================================
   Motion. Everything is calm and nothing takes over the scroll.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js .ltr { opacity: 0; transform: translateY(.3em); animation: ltrIn .8s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 55ms + 100ms); }
  .js .cut { opacity: 0; animation: cutIn .9s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 80ms + 300ms); }
  .js .arch { opacity: 0; animation: fadeUp .9s var(--ease) .15s forwards; }
  .star { animation: twinkle 3.8s ease-in-out infinite; }
  .h-s2, .a-s2 { animation-delay: -1.3s; }
  .h-s3 { animation-delay: -2.4s; }
  .js .hero-meta, .js .status-card, .js .hello { opacity: 0; animation: fadeUp .9s var(--ease) forwards; }
  .js .hello { animation-delay: .9s; }
  .js .hero-meta { animation-delay: .6s; }
  .js .status-card { animation-delay: 1.1s; }
  .js .draw path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s ease 1.3s; }
  .js .draw.in path { stroke-dashoffset: 0; }
  .dot { animation: pulse 2.4s ease-in-out infinite; }

  .js .reveal { opacity: 0; translate: 0 34px; transition: opacity .9s var(--ease), translate .9s var(--ease); }
  .js .reveal.in { opacity: 1; translate: 0 0; }
  .js .sec-head .sec-title { opacity: 0; translate: 0 22px; transition: opacity .9s var(--ease), translate .9s var(--ease); }
  .js .sec-head.in .sec-title { opacity: 1; translate: 0 0; }

  .js .bento .reveal:nth-child(2), .js .step-list .reveal:nth-child(2) { transition-delay: .08s; }
  .js .bento .reveal:nth-child(3), .js .step-list .reveal:nth-child(3) { transition-delay: .16s; }
  .js .bento .reveal:nth-child(4), .js .step-list .reveal:nth-child(4) { transition-delay: .24s; }
  .js .bento .reveal:nth-child(5) { transition-delay: .32s; }
  .js .strike-list li::after { transform: scaleX(0); transition: transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 280ms + 300ms); }
  .js .strike-list.in li::after { transform: scaleX(1); }
  .js .strike-after { opacity: 0; translate: 0 10px; transition: opacity .8s var(--ease) 1.4s, translate .8s var(--ease) 1.4s; }
  .js .strike-list.in + .strike-after { opacity: 1; translate: 0 0; }

  .js .route .stop { opacity: 0; translate: 0 34px; transition: opacity .8s var(--ease), translate .8s var(--ease); transition-delay: calc(var(--i, 0) * 140ms); }
  .js .route.in .stop { opacity: 1; translate: 0 0; }

  .js .letter { opacity: 0; translate: 0 70px; rotate: 3deg; transition: opacity 1s var(--ease), translate 1.1s var(--ease), rotate 1.1s var(--ease); }
  .js .letter.in { opacity: 1; translate: 0 0; rotate: 0deg; }

  .js .bookcase .book, .js .bookcase .face-out { animation: bookIn .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 22ms); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@keyframes ltrIn { to { opacity: 1; transform: none; } }
@keyframes cutIn { from { opacity: 0; transform: translateY(50px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes twinkle { 50% { scale: .8; opacity: .7; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(94, 140, 97, .08); } }
@keyframes bookIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Smaller screens
   ========================================================================== */
@media (max-width: 1080px) {
  /* The hero stacks into one piece: "Sartini" overlaps the top of the arch, and the photos tuck into the card with the words */
  .hero { min-height: 0; padding: 22px var(--gutter) 40px; display: flex; flex-direction: column; }
  .hello { position: static; order: 0; margin: 0 0 14px; text-align: left; }
  .hello-arrow { display: none; }
  .name { position: relative; inset: auto; order: 1; font-size: clamp(4rem, 19vw, 10rem); }
  .name-line { position: relative; top: auto; left: auto; right: auto; }
  .name-2 { text-align: right; margin-top: .02em; }
  .collage { --cw: min(440px, 84vw); position: relative; order: 2; left: auto; bottom: auto; width: var(--cw); height: auto; max-width: none; margin: calc(var(--cw) * -.3) auto 0; translate: 0 0; }
  .h-s2 { right: -2%; top: 44%; }
  .h-s3 { left: 9%; top: 17%; right: auto; }
  .hero-meta { position: relative; order: 3; left: auto; bottom: auto; width: 100%; max-width: 520px; margin: -40px auto 0; padding: 28px 22px 22px; background: var(--card); border-radius: 26px; box-shadow: 0 -16px 28px -22px rgba(58, 35, 24, .45), var(--shadow); }
  .hero-ctas .btn { flex: 1 1 auto; }
  .status-card { position: relative; order: 4; right: auto; bottom: auto; width: auto; max-width: 340px; margin: 34px 0 0 4px; }
  .post-list { grid-template-columns: 1fr 1fr; }
  .chapter { display: none; }
  .free-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .stops { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
  .route-line { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .mail { grid-template-columns: 1fr; max-width: 640px; }
  .agora-card, .premise { grid-template-columns: 1fr; }
  .step-list { grid-template-columns: 1fr 1fr; }
  .agora-shot { max-width: 520px; }
  .postcard { margin-top: 50px; }
  .social-stage { min-height: 0; display: flex; flex-direction: column; gap: 40px; }
  .ig-stamps { position: static; order: 2; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; width: min(420px, 100%); }
  .ig-stamps li { position: relative; inset: auto !important; width: auto; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .topbar { gap: 16px; }
  .brand { font-size: 1.5rem; }
  .sub-wrap { display: none; }
  .brand { padding: 9px 14px; font-size: 1.3rem; }
  .nav { position: fixed; z-index: 60; top: auto; bottom: 14px; }
  .nav a { padding: 9px 16px; }
  .hire-btn { padding: 11px 20px; }
  .field-row { grid-template-columns: 1fr; }
  .proof-list, .free-grid { grid-template-columns: 1fr; }
  .proof-list li { flex-direction: row; align-items: center; gap: 18px; padding: 20px 22px; }
  .proof-list b { flex: none; min-width: 2.6em; font-size: 2.8rem; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .bento-card { min-height: 170px; padding: 22px; }
  .bento-feature, .bento-wide { grid-column: 1 / -1; grid-row: auto; }
  .bento-wide { flex-direction: column; align-items: flex-start; gap: 10px; }
  .stack-card { grid-template-columns: 1fr; top: calc(var(--header) + 6px + var(--i) * 10px); min-height: 0; margin-bottom: 30px; padding: 24px; border-radius: 26px; }
  .stack-art { order: -1; aspect-ratio: 16 / 11; }
  .footer { padding-bottom: 100px; }
  .foot-top { flex-direction: column-reverse; gap: 18px; }
  .foot-star { width: 48px; height: 48px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-cols nav:last-child { grid-column: 1 / -1; }
  .work-grid { grid-template-columns: 1fr; }
  .step-list { grid-template-columns: 1fr; }
  .sec-head.split { align-items: flex-start; }
  .post-list { grid-template-columns: 1fr; }
  .letter-top { height: 84px; }
  .letter-stamp { width: 80px; }
  .pm-letter { right: 62px; }
  .letter.is-sent .letter-paper { min-height: 340px; }
}

@media (max-width: 480px) {
  .stops { grid-template-columns: 1fr 1fr; gap: 40px 18px; }
  .stop-place { font-size: 1.3rem; }
  .stop p:not(.stop-place) { font-size: .88rem; }
  .postcard { padding: 44px 24px 36px; }
  .email { font-size: 1.45rem; }
}

/* On short screens a card can be taller than the window, so the cards scroll normally instead of stacking */
@media (max-height: 700px) {
  .stack-card { position: relative; top: auto; scale: 1; }
}
