/* pramodlama.com home. Colours are taken from the portrait: warm cream, taupe, suit navy. */
:root {
  --cream: #f5f0e8;
  --sand: #e8dfd2;
  --navy: #15233f;
  --navy-2: #2b3c60;
  --ink-2: #5d5a55;
  --warm: #d9622b;
  --warm-text: #b4481b;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--cream); color: var(--navy);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--warm); outline-offset: 3px; border-radius: 10px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: 40px; }
@media (max-width: 640px) { .wrap { padding-inline: 20px; } }

/* Top bar */
.bar { position: absolute; inset: 0 0 auto; z-index: 3; }
.bar .wrap { display: flex; justify-content: space-between; align-items: center; height: 76px; }
.bar .me { font-weight: 650; letter-spacing: -.01em; }
.bar nav { display: flex; gap: 6px; }
.bar nav a { padding: 7px 14px; border-radius: 99px; font-size: 15px; color: var(--navy-2); transition: background .2s; }
.bar nav a:hover { background: rgb(21 35 63 / .07); }

/* Hero */
.hero { position: relative; min-height: min(88svh, 820px); display: flex; align-items: center; padding: 100px 0 40px;
  background: radial-gradient(70% 80% at 85% 40%, #efe5d7 0%, transparent 70%), var(--cream); }
.hero .wrap { display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }
.hi { font-size: 15px; font-weight: 600; color: var(--warm); letter-spacing: .01em; display: flex; align-items: center; gap: 10px; }
.hi::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.hero h1 { margin-top: 22px; font-size: clamp(36px, 4.6vw, 62px); line-height: 1.02; letter-spacing: -.045em; font-weight: 700; }
.hero h1 span { display: inline; }
.hero h1 .soft { color: var(--navy-2); opacity: .55; }
.hero h1 .trip { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-style: italic; font-weight: 500; letter-spacing: -.03em; color: var(--warm); }
.hero .lede { margin-top: 28px; max-width: 31em; display: grid; gap: 14px; font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); }
.hero .lede b { color: var(--navy); font-weight: 600; }
.cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.pill { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: 99px; font-size: 16px; font-weight: 550;
  background: var(--navy); color: #fff; transition: transform .25s var(--ease), box-shadow .25s; box-shadow: 0 10px 24px -12px rgb(21 35 63 / .6); }
.pill:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgb(21 35 63 / .6); }
.pill svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.pill:hover svg { transform: translateY(2px); }
.pill.ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px rgb(21 35 63 / .18); }
.pill.ghost:hover { box-shadow: inset 0 0 0 1.5px rgb(21 35 63 / .4); }

.photo { position: relative; justify-self: end; width: 100%; max-width: 470px; }
.photo .frame { border-radius: 32px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--sand);
  box-shadow: 0 50px 80px -40px rgb(21 35 63 / .55), 0 0 0 1px rgb(21 35 63 / .06); }
.photo .frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; transform: scale(1.04); transition: transform 1.2s var(--ease); }
.photo:hover .frame img { transform: scale(1); }
.tag { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 16px; font-size: 14px; line-height: 1.3;
  background: rgb(255 255 255 / .72); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 0 0 1px rgb(255 255 255 / .6), 0 18px 36px -16px rgb(21 35 63 / .45); animation: float 6s ease-in-out infinite; }
.tag small { display: block; color: var(--ink-2); font-size: 12px; }
.tag .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.tag .dot svg { width: 18px; height: 18px; }
.tag.work { left: -48px; bottom: 76px; }
.tag.work .dot { background: var(--navy); color: #fff; }
.tag.place { right: -28px; top: 54px; animation-delay: -3s; }
.tag.place .dot { background: #fde3d4; color: var(--warm); }
@keyframes float { 50% { transform: translateY(-8px); } }

@media (max-width: 900px) {
  .hero { min-height: 0; padding-top: 96px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .photo { order: -1; justify-self: start; max-width: 300px; width: 78%; }
  .photo .frame { border-radius: 26px; }
  .tag.work { display: none; } .tag.place { top: auto; bottom: -20px; right: -14px; }
}

/* Entry */
.rise { animation: rise .9s var(--ease) both; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .16s; } .d3 { animation-delay: .24s; } .d4 { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* Off the clock */
.life { padding: 120px 0 120px; background: #eef3f8; border-top: 1px solid #e1e8f0; border-bottom: 1px solid #e1e8f0; }
.life .head { display: grid; gap: 14px; max-width: 640px; }
.life h2 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.02; letter-spacing: -.04em; }
.life h2 em { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-weight: 500; color: var(--warm); }
.life .head p { color: var(--ink-2); max-width: 32em; }
@media (max-width: 760px) { .life { padding: 80px 0; } }

.stamps { margin-top: 48px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px 20px; justify-items: center; align-items: center; }
@media (max-width: 760px) { .stamps { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; } .stamp { width: 150px; height: 120px; } .stamp.round { width: 132px; height: 132px; } .stamp b { font-size: 18px; } }
.stamp { --c: var(--navy); position: relative; width: 176px; height: 136px; display: grid; place-items: center; text-align: center; color: var(--c);
  border: 2.5px solid var(--c); border-radius: 14px; padding: 12px; background: rgb(255 255 255 / .4);
  transform: rotate(var(--r)); transition: transform .4s var(--ease), background .3s, box-shadow .3s; }
.stamp::before { content: ""; position: absolute; inset: 5px; border: 1.5px dashed var(--c); border-radius: 9px; opacity: .5; }
.stamp:hover { transform: rotate(0) scale(1.06); background: #fff; box-shadow: 0 18px 30px -18px rgb(21 35 63 / .4); }
.stamp.round { width: 150px; height: 150px; border-radius: 50%; }
.stamp.round::before { border-radius: 50%; }
.stamp .t { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 9.5px; font-weight: 800; letter-spacing: .2em; opacity: .75; margin-bottom: 4px; }
.stamp .t svg { width: 11px; height: 11px; }
.stamp b { display: block; font-size: 21px; letter-spacing: -.01em; line-height: 1.05; text-transform: uppercase; font-weight: 800; }
.stamp small { display: block; margin-top: 4px; font-size: 9.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
.stamp.next { --c: #a29a8e; background: transparent; border-style: dashed; }
.stamp.next::before { display: none; }
.stamp.next .t { opacity: .9; }
.stamp.next b { font-family: "Iowan Old Style", Palatino, Georgia, serif; text-transform: none; font-style: italic; font-weight: 500; font-size: 26px; }

/* Footer */
.end { background: var(--navy); color: #fff; padding: 64px 0 48px; }
.end .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 32px; }
.end .big { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -.035em; line-height: 1.1; font-weight: 650; }
.end .big span { opacity: .55; }
.end nav { display: flex; gap: 8px; flex-wrap: wrap; }
.end nav a { padding: 9px 16px; border-radius: 99px; font-size: 15px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2); transition: background .2s; }
.end nav a:hover { background: rgb(255 255 255 / .1); }
.end .fine { flex-basis: 100%; display: flex; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .12); font-size: 13px; color: rgb(255 255 255 / .5); }
.end .fine a:hover { color: #fff; }

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

/* Images keep their proportions (the width/height attributes are only for layout). */
img { height: auto; }
.photo .frame img { height: 100%; }

.say { background: rgb(255 255 255 / .22); }
.acc .b.them { background: rgb(255 255 255 / .12); color: #fff; box-shadow: none; }
.seen { align-self: flex-end; font-size: 11px; opacity: .55; margin: 2px 4px 0; }
html.js .thread:not(.in) .b, html.js .thread:not(.in) .seen { opacity: 0; }
.thread.in .b, .thread.in .seen { animation: bubble .45s var(--ease) both; animation-delay: calc(var(--d) * .6); }
@keyframes bubble { from { opacity: 0; transform: translateY(10px) scale(.9); } }
.say { background: rgb(255 255 255 / .22); }
.seen { align-self: flex-end; font-size: 11px; color: #8a8a8e; margin: 2px 4px 0; }
.chat:popover-open .b, .chat:popover-open .seen { animation: bubble .42s var(--ease) both; animation-delay: var(--d); }
@keyframes bubble { from { opacity: 0; transform: translateY(10px) scale(.92); } }
.b.me { transform-origin: 100% 100%; } .b.them { transform-origin: 0 100%; }
@media (max-width: 640px) {
  .chat { margin: auto auto 0; width: 100vw; max-width: none; border-radius: 26px 26px 0 0; transform: translateY(40px); }
  .chat:popover-open { transform: none; }
}
.say { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-style: italic; font-size: 1.08em; padding: 0 .3em; border-radius: 6px; background: rgb(47 107 70 / .12); white-space: nowrap; }

/* Thailand, three times */
.stamp .times { position: absolute; top: -12px; right: -12px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c); color: #fff; font-size: 14px; font-weight: 800; transform: rotate(10deg); box-shadow: 0 6px 14px -6px rgb(0 0 0 / .4); }
@media (max-width: 1040px) { .stamps { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 760px) { .stamps { grid-template-columns: repeat(2, 1fr); } }

.end .fine-links { display: flex; gap: 18px; }

/* ---------- Shared app-section language ---------- */
.app-id { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 650; }
.app-id img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 0 0 1px rgb(0 0 0 / .08); }
.app-id span { font-weight: 500; opacity: .7; }
.app-tuck h2, .app-acc h2, .next-up h2 { margin: 18px 0 18px; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -.04em; }
.sum { font-size: 18px; max-width: 30em; opacity: .85; }
.link { display: inline-flex; align-items: center; height: 50px; padding: 0 6px; font-weight: 550; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 30%, transparent); text-underline-offset: 4px; }
.link:hover { text-decoration-color: currentColor; }
.why { margin: 30px 0 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--rule, currentColor); max-width: 33em; display: grid; gap: 10px; }
.why figcaption { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rule); }
.why p { font-size: 16px; line-height: 1.62; opacity: .9; }
.why b { font-weight: 650; }
.say { background: rgb(40 122 84 / .14); }
.phone { margin: 0; border-radius: 44px; padding: 7px; background: #0f0f10; box-shadow: 0 0 0 1px rgb(255 255 255 / .06) inset, 0 40px 70px -30px rgb(0 0 0 / .5), 0 0 0 1px rgb(0 0 0 / .2); }
.phone img { width: 100%; height: auto; border-radius: 37px; }

/* ---------- Tuckleaf: editorial, three screens fanned ---------- */
.app-tuck { --rule: #287a54; background: linear-gradient(170deg, #f7eedb, #ece0c6); color: #1d2a1f; padding: 120px 0; overflow: hidden; }
.app-tuck h2 { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-style: italic; font-weight: 500; letter-spacing: -.03em; }
.app-tuck .pill { background: #287a54; box-shadow: 0 10px 24px -12px rgb(40 122 84 / .7); }
.tuck-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.fan { position: relative; height: 640px; }
.fan .phone { position: absolute; width: 250px; top: 50%; left: 50%; transition: transform .7s var(--ease); }
.fan .p-mid { width: 270px; transform: translate(-50%, -50%); z-index: 2; }
.fan .p-left { transform: translate(-100%, -46%) rotate(-7deg); }
.fan .p-right { transform: translate(0%, -46%) rotate(7deg); }
.fan:hover .p-left { transform: translate(-108%, -47%) rotate(-9deg); }
.fan:hover .p-right { transform: translate(8%, -47%) rotate(9deg); }

/* ---------- Accent: headline + note across the top, screens as a strip ---------- */
.app-acc { --rule: #f3bf4f; background: #111a38; color: #fff; padding: 120px 0; overflow: hidden; }
.app-acc .pill { background: #f3bf4f; color: #111a38; box-shadow: 0 10px 24px -12px rgb(243 191 79 / .6); }
.app-acc .app-id img { box-shadow: 0 0 0 1px rgb(255 255 255 / .15); }
.acc-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: end; }
.acc-head .why { margin: 0 0 6px; }
.strip { margin-top: 72px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; align-items: start; margin-bottom: -150px; position: relative; z-index: 2; }
.strip .phone:nth-child(even) { margin-top: 56px; }
.strip .phone { transition: transform .5s var(--ease); }
.strip .phone:hover { transform: translateY(-10px); }

/* ---------- On the workbench ---------- */
.next-up { position: relative; padding: 130px 0; color: var(--navy); overflow: hidden;
  background: radial-gradient(rgb(21 35 63 / .09) 1px, transparent 1.3px) 0 0 / 22px 22px, #fbfaf7; }
.next-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--warm); }
.track { list-style: none; margin: 36px 0 0; padding: 0; display: flex; align-items: center; gap: 0; max-width: 420px; }
.track li { position: relative; flex: 1; display: flex; flex-direction: column; gap: 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.track li span { position: relative; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #c9c3b8; background: #fbfaf7; z-index: 1; }
.track li:not(:last-child)::before { content: ""; position: absolute; top: 6px; left: 14px; right: 0; height: 2px; background: #e2ddd3; }
.track li.done span { background: var(--navy); border-color: var(--navy); }
.track li.done::before { background: var(--navy); }
.track li.now { color: var(--navy); }
.track li.now span { border-color: var(--warm); background: var(--warm); box-shadow: 0 0 0 6px rgb(217 98 43 / .18); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgb(217 98 43 / 0); } }

.bench { position: relative; height: 480px; }
.blueprint { position: absolute; right: 0; top: 0; width: 78%; height: 380px; border-radius: 6px; color: #dbe7ff; transform: rotate(3.5deg);
  background: linear-gradient(rgb(255 255 255 / .07) 1px, transparent 1px) 0 0 / 20px 20px, linear-gradient(90deg, rgb(255 255 255 / .07) 1px, transparent 1px) 0 0 / 20px 20px, #1f3f7a;
  box-shadow: 0 30px 60px -30px rgb(21 35 63 / .6), inset 0 0 0 10px rgb(255 255 255 / .03); }
.blueprint svg { position: absolute; inset: 30px 20px 30px 20px; width: calc(100% - 40px); height: calc(100% - 60px); opacity: .85; }
.note { position: absolute; font: 17px/1 "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive; color: #ffd27a; }
.n1 { right: 6%; top: 27%; transform: rotate(-4deg); }
.n2 { right: 3%; top: 60%; transform: rotate(3deg); }
.n3 { left: 8%; top: 9%; color: #dbe7ff; opacity: .7; font-size: 15px; }

.folder { position: absolute; left: 0; bottom: 0; width: 72%; transform: rotate(-2.5deg); transition: transform .6s var(--ease); }
.bench:hover .folder { transform: rotate(-1deg) translate(-6px, 4px); }
.bench:hover .blueprint { transform: rotate(5deg) translate(8px, -6px); transition: transform .6s var(--ease); }
.blueprint { transition: transform .6s var(--ease); }
.folder-tab { position: absolute; top: -26px; left: 28px; height: 30px; padding: 0 18px; display: grid; place-items: center; border-radius: 8px 8px 0 0;
  background: #d9b97c; color: #5a4320; font: 700 12px/1 "American Typewriter", "Courier New", monospace; letter-spacing: .12em; text-transform: uppercase; }
.folder::before { content: ""; position: absolute; inset: 0; border-radius: 4px 8px 8px 8px; background: linear-gradient(170deg, #e2c58c, #d4b06f);
  box-shadow: 0 1px 1px rgb(0 0 0 / .08), 0 30px 60px -28px rgb(60 40 10 / .55); }
.clip { position: absolute; top: -14px; right: 54px; width: 18px; height: 54px; border: 2.5px solid #9aa3ad; border-radius: 9px; z-index: 3; transform: rotate(6deg); }
.clip::after { content: ""; position: absolute; inset: 6px 3px 10px; border: 2px solid #b7bec6; border-radius: 6px; }
.sheet { position: relative; margin: 14px 14px 18px 22px; padding: 22px 24px 18px; background: #fffdf7; border-radius: 3px; transform: rotate(1.4deg);
  box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 10px 20px -12px rgb(0 0 0 / .25); font: 15px/1.4 "American Typewriter", "Courier New", monospace; color: #1d2433; }
.sheet-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1.5px solid #1d2433; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.stampmark { color: #b42318; border: 2px solid #b42318; border-radius: 5px; padding: 3px 9px; transform: rotate(-7deg); letter-spacing: .18em; font-family: -apple-system, sans-serif; font-weight: 800; opacity: .9; }
.sheet dl { margin: 4px 0 0; }
.sheet dl div { display: grid; grid-template-columns: 90px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px dashed rgb(29 36 51 / .2); }
.sheet dt { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6b6558; padding-top: 3px; }
.sheet dd { margin: 0; }
.sheet-foot { margin-top: 10px; font-size: 12px; color: #6b6558; }
.redact { position: relative; display: inline-block; color: transparent; background: #1d2433; border-radius: 1px; line-height: 1.15; cursor: help; letter-spacing: -.08em; }
.redact::after { content: attr(data-say); position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font: 700 11px/1 -apple-system, sans-serif; letter-spacing: .04em; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.redact:hover::after, .redact:focus::after { opacity: 1; }
@media (max-width: 900px) {
  .next-up { padding: 90px 0; }
  .bench { height: 430px; margin-top: 10px; }
  .blueprint { width: 86%; height: 300px; }
  .folder { width: 88%; }
  .n1, .n2 { display: none; }
}
/* ---------- Journal notes (reading, living) ---------- */
.also { margin-top: 72px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.jot { padding-top: 18px; border-top: 1.5px solid var(--navy); }
.jot p:last-child { margin-top: 10px; font-size: 19px; line-height: 1.5; letter-spacing: -.01em; }
.jot a { text-decoration: underline; text-decoration-color: rgb(21 35 63 / .3); text-underline-offset: 3px; }

/* Visited / planned key */
.key { margin-top: 28px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.key span { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.key .k-v { border: 2px solid var(--navy); }
.key .k-p { border: 2px dashed #a29a8e; margin-left: 14px; }
.stamps { margin-top: 24px; }

@media (max-width: 900px) {
  .tuck-grid, .acc-head, .next-grid, .also { grid-template-columns: 1fr; gap: 40px; }
  .app-tuck, .app-acc { padding: 80px 0; }
  .fan { height: 520px; } .fan .phone { width: 200px; } .fan .p-mid { width: 215px; }
  .strip { grid-template-columns: repeat(4, 62%); overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin-inline: -20px; padding-inline: 20px; margin-bottom: -110px; }
  .strip .phone { scroll-snap-align: start; } .strip .phone:nth-child(even) { margin-top: 0; }
}

.lede a.inline { color: var(--navy); font-weight: 600; text-decoration: underline; text-decoration-color: rgb(217 98 43 / .5); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ---------- Postcard contact ---------- */
.write { padding: 120px 0 130px; background: #ffffff; }
.write-head { max-width: 640px; }
.write h2 { margin: 14px 0 12px; font-size: clamp(32px, 3.6vw, 46px); letter-spacing: -.04em; line-height: 1.05; }
.write-head p:last-child { color: var(--ink-2); }
.postcard { margin-top: 40px; display: grid; grid-template-columns: 1.35fr 1fr; background: #fffdf8; border-radius: 8px; transform: rotate(-.6deg);
  box-shadow: 0 1px 1px rgb(0 0 0 / .05), 0 30px 60px -32px rgb(21 35 63 / .45); position: relative; transition: transform .5s var(--ease); }
.postcard:focus-within { transform: rotate(0); }
.postcard::before { content: ""; position: absolute; inset: 10px; border: 1.5px dashed rgb(21 35 63 / .12); border-radius: 4px; pointer-events: none; }
.pc-msg { padding: 34px 34px 30px; border-right: 1.5px solid rgb(21 35 63 / .15); }
.pc-msg textarea { width: 100%; height: 100%; min-height: 250px; border: 0; resize: vertical; background: repeating-linear-gradient(transparent 0 35px, rgb(21 35 63 / .1) 35px 36px);
  line-height: 36px; font: inherit; font-size: 19px; line-height: 36px; color: var(--navy); outline: none; }
.pc-msg textarea::placeholder { color: rgb(21 35 63 / .4); font-family: "Iowan Old Style", Palatino, Georgia, serif; font-style: italic; }
.pc-side { padding: 30px 32px 30px; display: flex; flex-direction: column; position: relative; }
.pc-stamp { align-self: flex-end; width: 86px; height: 102px; display: grid; place-content: center; text-align: center; color: #fff; background: var(--warm); border: 5px dotted #fffdf8; outline: 1px solid rgb(217 98 43 / .25); outline-offset: 2px; transform: rotate(4deg); box-shadow: inset 0 0 0 3px rgb(255 255 255 / .35); }
  -webkit-mask: radial-gradient(circle 4px at 4px 4px, transparent 98%, #000) -4px -4px / 12px 12px; mask: radial-gradient(circle 4px at 4px 4px, transparent 98%, #000) -4px -4px / 12px 12px; transform: rotate(4deg); }
.pc-stamp span { font-size: 24px; font-weight: 800; letter-spacing: .02em; }
.pc-stamp small { font-size: 8.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.pc-to { margin: 18px 0 18px; font-family: "Iowan Old Style", Palatino, Georgia, serif; font-style: italic; font-size: 20px; line-height: 1.35; }
.pc-to span { font-size: 15px; color: var(--ink-2); }
.pc-side label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-top: 10px; }
.pc-side input { border: 0; border-bottom: 1.5px solid rgb(21 35 63 / .2); background: transparent; padding: 8px 0 9px; font: inherit; font-size: 17px; color: var(--navy); outline: none; transition: border-color .2s; }
.pc-side input:focus { border-color: var(--warm); }
.pc-side .pill { margin-top: 26px; align-self: flex-start; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.pc-side .pill:disabled { opacity: .6; cursor: progress; }
.pc-side .pill svg { transition: transform .25s var(--ease); }
.pc-side .pill:hover svg { transform: translateX(3px); }
.pc-status { margin-top: 12px; font-size: 14px; color: var(--ink-2); min-height: 1.4em; }
.postcard.sent .pc-stamp { animation: thunk .5s var(--ease); }
@keyframes thunk { 40% { transform: rotate(-8deg) scale(1.2); } }
.hp { position: absolute; left: -9999px; }
@media (max-width: 800px) {
  .postcard { grid-template-columns: 1fr; transform: none; }
  .pc-msg { border-right: 0; border-bottom: 1.5px solid rgb(21 35 63 / .15); padding: 26px 22px; }
  .pc-msg textarea { min-height: 200px; }
  .pc-side { padding: 24px 22px; }
  .pc-stamp { position: absolute; top: 20px; right: 20px; width: 64px; height: 78px; } .pc-stamp span { font-size: 18px; }
  .pc-to { margin-top: 0; padding-right: 80px; }
}

/* Section surfaces: white, sky, white, so each part reads as its own space. */
.next-up .file { background: #fffdf8; box-shadow: 0 0 0 1px rgb(21 35 63 / .06), 0 24px 50px -28px rgb(21 35 63 / .45); }
.life .stamp { background: rgb(255 255 255 / .75); }
.life .stamp.next { background: rgb(255 255 255 / .35); }
.write .postcard { background: #fffaf0; box-shadow: 0 0 0 1px rgb(21 35 63 / .07), 0 30px 60px -30px rgb(21 35 63 / .4); }
.pc-msg textarea { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-size: 21px; }

/* ---------- Review pass ---------- */
.bar nav a.nav-cta { background: var(--navy); color: #fff; margin-left: 6px; }
.bar nav a.nav-cta:hover { background: var(--navy-2); }
@media (max-width: 520px) { .bar nav a { padding: 7px 10px; font-size: 14px; } .bar nav a:not(.nav-cta):nth-child(2) { display: none; } }
.built-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; padding-bottom: 20px; margin-bottom: 44px; border-bottom: 1px solid rgb(29 42 31 / .15); }
.built-head .label { color: #287a54; }
.built-line { font-size: 18px; opacity: .8; }
.app-tuck { padding-top: 56px; }
.pill .apple { width: 15px; height: 18px; margin-top: -2px; }
.life .label { margin-bottom: 4px; }

/* Footer */
.end { padding: 80px 0 40px; }
.end-main { width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.end .big span { opacity: .55; }
.social { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.social p { font-size: 13px; color: rgb(255 255 255 / .55); margin-right: 6px; }
.social a { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 18px 0 14px; border-radius: 99px; font-size: 15px; font-weight: 550;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .22); transition: background .2s, box-shadow .2s, transform .2s var(--ease); }
.social a:hover { background: #fff; color: var(--navy); transform: translateY(-2px); }
.social svg { width: 17px; height: 17px; }
.end .fine { margin-top: 48px; }
.end .fine-links a:hover { color: #fff; }
@media (max-width: 640px) { .social p { width: 100%; } }

/* ---------- Launch polish ---------- */
.label, .hi { color: var(--warm-text); }
h1, h2, .big { text-wrap: balance; }
p, figcaption, dd { text-wrap: pretty; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }
section[id], div[id] { scroll-margin-top: 84px; }

/* The menu becomes a floating frosted bar once you scroll. */
.bar { position: fixed; transition: background .3s, box-shadow .3s, transform .3s var(--ease); }
.bar.scrolled { background: rgb(251 250 247 / .78); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
  box-shadow: 0 1px 0 rgb(21 35 63 / .08), 0 10px 30px -20px rgb(21 35 63 / .35); }
.bar.scrolled .wrap { height: 62px; }
.bar .wrap { transition: height .3s var(--ease); }

/* Sections settle in as they scroll into view (browsers without scroll timelines just show them). */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    @keyframes settle { from { opacity: 0; transform: translateY(40px) scale(.985); } }
  }
}

/* ---------- Postcard: postmark + thank-you after sending ---------- */
.pc-msg { position: relative; }
.pc-postmark { position: absolute; top: 34px; right: 74px; width: 190px; color: #26407a; opacity: 0; transform: scale(1.5) rotate(-14deg); pointer-events: none; mix-blend-mode: multiply; }
.postcard.sent .pc-postmark { opacity: .78; transform: rotate(-9deg); transition: transform .35s cubic-bezier(.3,1.6,.5,1) .15s, opacity .2s .15s; }
.pc-thanks { position: absolute; inset: 34px 34px 30px; display: none; flex-direction: column; justify-content: center; gap: 6px; outline: none;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-style: italic; font-size: 23px; line-height: 1.45; color: var(--navy);
  background: repeating-linear-gradient(transparent 0 35px, rgb(21 35 63 / .1) 35px 36px); }
.pc-thanks p { margin: 0; }
.pc-thanks p:first-child { font-size: 34px; color: var(--warm); }
.pc-thanks .sig { margin-top: 10px; }
.pc-thanks .sig::before { content: "— "; }
.pc-again { align-self: flex-start; margin-top: 18px; border: 0; background: none; padding: 0; font: 600 15px/1.4 -apple-system, BlinkMacSystemFont, sans-serif; font-style: normal; color: var(--warm-text); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.postcard.sent .pc-msg textarea { visibility: hidden; }
.postcard.sent .pc-thanks { display: flex; animation: pc-in .5s var(--ease) both; }
@keyframes pc-in { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 760px) { .pc-postmark { top: 12px; right: 40px; width: 150px; } .pc-thanks { inset: 26px 22px; font-size: 20px; } }
@media (prefers-reduced-motion: reduce) { .postcard.sent .pc-postmark, .postcard.sent .pc-thanks { transition: none; animation: none; } }
.postcard.sent .pc-side .pill, .postcard.sent .pc-side label, .postcard.sent .pc-side input:not(.hp) { display: none; }
.postcard.sent .pc-status { margin-top: 0; }
