/* Madras theme: cotton-cream pages, an ink panel for the B-sides, a marigold footer.
   Flat colours only. Vermillion means "action"; marigold means "look here". */
:root {
  /* Colours from Madras check, the cotton plaid named after Chennai: flat, no gradients */
  --paper: #f5f0e6;
  --paper-2: #ece4d4;
  --card: #fffdf8;
  --ink: #1c1a17;
  --body: #2e2a25;
  --muted: #6b6358;
  --muted-dark: #a89f92;
  --line: rgba(28, 26, 23, 0.14);
  --line-dark: rgba(245, 240, 230, 0.16);

  --red: #d2421f;
  --red-ink: #b5381a;
  --yellow: #f5b700;
  --blue: #2457a6;
  --green: #2a7549;
  --orange: #e8742a;
  --teal: #0f6e6a;
  --online: #1f9d55;

  /* Items cycle through c0…c5: the colour, a shade for text on paper (-t) and the text colour on top of it (-on) */
  --c0: var(--red);    --c0-t: var(--red-ink); --c0-on: #fff;
  --c1: var(--blue);   --c1-t: var(--blue);    --c1-on: #fff;
  --c2: var(--yellow); --c2-t: #8a5d00;        --c2-on: var(--ink);
  --c3: var(--green);  --c3-t: var(--green);   --c3-on: #fff;
  --c4: var(--orange); --c4-t: #a64d14;        --c4-on: var(--ink);
  --c5: var(--teal);   --c5-t: var(--teal);    --c5-on: #fff;

  --shadow: 0 24px 50px -28px rgba(28, 26, 23, 0.4);
  --shadow-sm: 0 10px 24px -16px rgba(28, 26, 23, 0.35);
  --radius: 26px;
  --radius-sm: 14px;
  --display: "Syne", "Plus Jakarta Sans", system-ui, sans-serif;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--yellow); color: var(--ink); }
h1, h2, h3 { text-wrap: balance; }

.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -64px; z-index: 300; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 16px; }
/* A marigold highlighter stroke that sweeps in behind a word */
.hl { padding: 0 .06em; margin: 0 -.06em; background: linear-gradient(transparent 56%, var(--yellow) 56% 92%, transparent 92%) no-repeat 0 0 / 0% 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size 1.1s var(--ease) .3s; }
.is-ready .hl { background-size: 100% 100%; }

.label {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px;
  font: 600 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--red-ink);
}
.label::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: currentColor; }
.dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 0 rgba(31,157,85,.5); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(31,157,85,0); } 100% { box-shadow: 0 0 0 0 rgba(31,157,85,0); } }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 4px; font-weight: 700; color: var(--red-ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .45s var(--ease); }
.link-arrow:hover { background-size: 100% 2px; }
.link-arrow span { transition: transform .45s var(--ease); }
.link-arrow:hover span { transform: translateX(5px); }

/* ---------- Background ---------- */
.bg { position: fixed; inset: 0; z-index: -2; background: var(--paper); }
.grain { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .2; mix-blend-mode: multiply;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E"); }
.progress { position: fixed; left: 0; top: 0; z-index: 120; height: 3px; width: 100%; transform-origin: left; transform: scaleX(0); background: var(--red); }
.dev-badge { position: fixed; left: 14px; bottom: 14px; z-index: 170; margin: 0; padding: 8px 14px; border-radius: 999px; pointer-events: none;
  background: var(--yellow); color: var(--ink); font-size: 12px; font-weight: 700; box-shadow: var(--shadow-sm); }

/* ---------- Hover effects ---------- */
/* Cards lift and drop a solid block of their colour behind them. */
.glow { position: relative; transition: translate .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.glow:hover { translate: -4px -4px; border-color: var(--ink); box-shadow: 8px 8px 0 var(--c, var(--yellow)); }
.panel--dark .glow:hover { border-color: var(--c, var(--yellow)); }
/* Cards lean towards the pointer. */
.tilt { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .7s var(--ease); }
.tilt.is-tilting { transition: transform .12s linear; }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; overflow: hidden; background: var(--yellow); color: var(--ink); }
.is-loading .loader { display: grid; }
.loader > * { grid-area: 1 / 1; }
.loader.is-done { animation: loaderOut 1s var(--ease) forwards; }
@keyframes loaderOut { to { clip-path: inset(0 0 100% 0 round 0 0 50% 50%); } }
.loader__ring { width: min(62vmin, 380px); height: min(62vmin, 380px); transform: rotate(-90deg); overflow: visible; }
.loader__track { fill: none; stroke: rgba(28,26,23,.16); stroke-width: 1.5; }
.loader__arc { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: 339.3; }
/* Each greeting arrives as a chat bubble */
.loader__word { position: relative; margin: 0; padding: .26em .6em .32em; border-radius: .55em .55em .55em .12em; background: var(--ink); color: var(--paper);
  font-family: var(--display); font-weight: 800; font-size: clamp(30px, 6vw, 60px); line-height: 1.1; letter-spacing: -.03em; transition: opacity .2s, transform .2s; }
.loader__word::after { content: ""; position: absolute; left: -.2em; bottom: 0; width: .4em; height: .34em; background: inherit; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.loader__word.is-swap { opacity: 0; transform: translateY(8px); }
.loader__count { align-self: end; margin: 0 0 clamp(24px, 6vh, 56px); font-size: 13px; letter-spacing: .2em; color: var(--ink); }

/* ---------- Custom cursor: a chat-bubble pin that swings as it moves and speaks on hover ---------- */
/* The sharp top-left corner is the hotspot; the bubble hangs from it. */
.cursor { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; opacity: 0; transition: opacity .25s; will-change: transform; }
.cursor.is-visible { opacity: 1; }
.cursor.is-visible.is-hidden { opacity: 0; }
.cursor__bubble { position: absolute; left: 0; top: 0; width: 18px; height: 18px; overflow: hidden; border-radius: 1px 50% 50% 50%;
  background: var(--ink); box-shadow: 0 0 0 1.5px var(--paper); transform-origin: 0 0; will-change: transform;
  transition: width .38s var(--ease), height .38s var(--ease), border-radius .38s var(--ease), background .2s, box-shadow .2s; }
.cursor__label { position: absolute; left: 15px; top: 50%; translate: 0 -50%; font: 700 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap; color: var(--ink); opacity: 0; transition: opacity .15s; }
.cursor.is-dark .cursor__bubble { background: var(--paper); box-shadow: 0 0 0 1.5px var(--ink); }
.cursor.is-link .cursor__bubble { background: var(--yellow); box-shadow: 0 0 0 1.5px var(--ink); }
.cursor.is-label .cursor__bubble { width: var(--lw, 84px); height: 36px; border-radius: 2px 18px 18px 18px; background: var(--yellow); box-shadow: 0 0 0 1.5px var(--ink); }
.cursor.is-label .cursor__label { opacity: 1; transition-delay: .12s; }
/* A little burst of lines from the tip on click */
.cursor__burst i { position: absolute; left: 0; top: -1px; width: 11px; height: 2.5px; border-radius: 2px; background: var(--red); transform-origin: 0 50%; opacity: 0; }
.cursor__burst i:nth-child(1) { --a: 190deg; } .cursor__burst i:nth-child(2) { --a: 225deg; } .cursor__burst i:nth-child(3) { --a: 260deg; }
.cursor.is-click .cursor__burst i { animation: burst .42s var(--ease); }
@keyframes burst { from { opacity: 1; transform: rotate(var(--a)) translateX(5px) scaleX(.2); } to { opacity: 0; transform: rotate(var(--a)) translateX(16px) scaleX(1); } }
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor :is(input, textarea, select) { cursor: auto !important; }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(var(--max), calc(100% - 32px)); display: flex; align-items: center; gap: 16px; padding: 8px 8px 8px 22px;
  background: rgba(255, 253, 248, .9); border: 1px solid var(--line); border-radius: 999px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background .3s, box-shadow .3s, transform .5s var(--ease); }
.nav.is-scrolled { background: var(--card); box-shadow: var(--shadow-sm); }
.nav.is-hidden { transform: translate(-50%, -130%); }
.nav__logo { margin-right: auto; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.03em; color: var(--ink); }
.nav__logo::after { content: "."; color: var(--red); }
.nav__links { display: flex; gap: 2px; }
.nav__links a { padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--muted); transition: color .2s, background .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__links a.is-active { color: var(--ink); background: var(--yellow); }
.nav__toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.nav__toggle span { width: 18px; height: 2px; background: var(--ink); transition: transform .3s; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 820px) {
  .nav { border-radius: 22px; flex-wrap: wrap; }
  .nav__toggle { display: flex; }
  .nav__links { order: 3; width: 100%; flex-direction: column; display: none; padding: 0 0 6px; }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { padding: 12px 14px; font-size: 18px; }
}

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 16px var(--font); cursor: pointer; transition: transform .25s, background .25s, color .25s, border-color .25s; }
.btn--primary { color: #fff; background: var(--red); }
.btn--primary:hover { color: var(--paper); background: var(--ink); }
.btn__dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: pingW 2s infinite; }
@keyframes pingW { 70% { box-shadow: 0 0 0 7px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.btn--ghost { color: var(--ink); background: transparent; border-color: var(--ink); }
.btn--ghost:hover { color: var(--paper); background: var(--ink); }
.btn--small { padding: 9px 18px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Hero ---------- */
.hero { position: relative; display: flex; flex-direction: column; gap: 22px; padding: 112px var(--gutter) 70px; overflow: hidden; }
.hero > * { position: relative; z-index: 1; }
.hero__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 13px; color: var(--muted);
  padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.hero__meta > span { display: inline-flex; align-items: center; gap: 10px; }
.hero__meta b { color: var(--ink); font-weight: 600; }
.hero__base { position: relative; }
.hero__base > .stamp--hero { --w: 66px; position: absolute; right: calc(100% + 18px); top: -16px; z-index: 2; }
.hero__base > .stamp--hero .postmark { left: 34%; top: 34%; }
.hero__base > .stamp--hero .postmark__waves { display: none; }
.hero__dots { position: absolute !important; inset: 0; z-index: 0 !important; pointer-events: none;
  background-image: radial-gradient(rgba(28,26,23,.18) 1px, transparent 1.5px); background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 50% 60%, #000 15%, transparent 72%); -webkit-mask-image: radial-gradient(ellipse at 50% 60%, #000 15%, transparent 72%); }

.hero__headline { position: relative; display: flex; flex-direction: column; gap: 12px; }
.hero__title { margin: 0; display: flex; flex-direction: column; gap: 4px; font-weight: 400; container-type: inline-size; }
.hero__greet { display: inline-flex; align-items: center; gap: .3em; font: 700 clamp(28px, 4vw, 58px)/1.05 var(--display); letter-spacing: -.03em; color: var(--ink); }
.wave { display: inline-block; transform-origin: 70% 80%; animation: wave 2.8s ease-in-out 1.4s infinite; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(16deg); } 20% { transform: rotate(-8deg); } 40% { transform: rotate(-4deg); } 50% { transform: rotate(10deg); } }
/* Labels in the hero are chat bubbles, with a tail at the bottom-left */
.hero__badge { position: absolute; right: 0; top: clamp(2px, 1vw, 14px); display: inline-flex; align-items: center; gap: 12px; margin: 0; padding: 14px 24px;
  border-radius: 26px 26px 26px 5px; background: var(--ink); color: var(--paper);
  font-size: clamp(15px, 1.15vw, 19px); font-weight: 600; letter-spacing: .03em; white-space: nowrap; }
.hero__badge::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); }
.hero__badge::after { content: ""; position: absolute; left: -9px; bottom: 0; width: 18px; height: 15px; background: inherit;
  clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.hero__name { display: flex; justify-content: space-between; font-family: var(--display); font-weight: 800; text-transform: uppercase;
  line-height: .82; letter-spacing: -.045em; white-space: nowrap;
  /* Fills the width in the display font from the very first paint, so nothing moves when the font loads
     (the script then fine-tunes it). 11.3vw is for browsers without container units. */
  font-size: 11.3vw; font-size: 12.3cqi;
  min-height: .86em; /* its height before the script adds the letters, so nothing below it moves */ }
.hero__name .ch { display: inline-block; overflow: hidden; padding-bottom: .04em; }
.hero__name .ch > span { display: inline-block; transform: translateY(105%); color: var(--ink); transition: transform 1s var(--ease), color .25s; }
.hero__name .ch:last-child > span { color: var(--red); }
/* Letters flash through the palette once after they land, and on hover */
.hero__name .ch:hover > span { color: var(--hc); }
.hero__name .ch:nth-child(2) > span { transition-delay: .04s; } .hero__name .ch:nth-child(3) > span { transition-delay: .08s; }
.hero__name .ch:nth-child(4) > span { transition-delay: .12s; } .hero__name .ch:nth-child(5) > span { transition-delay: .16s; }
.hero__name .ch:nth-child(6) > span { transition-delay: .2s; } .hero__name .ch:nth-child(7) > span { transition-delay: .24s; }
.hero__name .ch:nth-child(8) > span { transition-delay: .28s; } .hero__name .ch:nth-child(9) > span { transition-delay: .32s; }
.is-ready .hero__name .ch > span { transform: none; animation: flash 1.3s var(--ease) calc(1.3s + var(--n, 0) * 90ms); }
@keyframes flash { 30%, 55% { color: var(--hc); } }

.hero__layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 64px); align-items: start; margin-top: 18px; }
/* The intro: one statement whose passion words carry their bubble's colour, the day job, two buttons */
.hero__intro { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.hero__statement { max-width: 15em; margin: 0 0 20px; font: 700 clamp(32px, 3.9vw, 74px)/1.04 var(--display); letter-spacing: -.035em; color: var(--ink); text-wrap: balance; }
.hero__word { padding: 0 .04em; margin: 0 -.04em; border-radius: .08em; color: inherit; white-space: nowrap;
  text-decoration: underline .13em var(--c); text-underline-offset: .12em; text-decoration-skip-ink: none;
  background: linear-gradient(var(--c), var(--c)) no-repeat 0 100% / 100% 0;
  transition: background-size .35s var(--ease), color .25s, text-decoration-color .25s; }
.hero__word:hover, .hero__word:focus-visible, .hero__word.is-on { color: var(--con); background-size: 100% 100%; text-decoration-color: transparent; }
/* A die-cut sticker after each passion word, each with its own little loop */
.sticker { display: inline-grid; place-items: center; width: .62em; height: .62em; margin-left: .12em; vertical-align: .04em;
  border-radius: 50%; background: var(--c); color: var(--con); box-shadow: 0 0 0 .05em #fff, .04em .06em 0 .05em rgba(28, 26, 23, .18);
  rotate: -8deg; transition: rotate .35s var(--ease), scale .35s var(--ease); }
.sticker svg { width: 60%; height: 60%; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hero__word:hover .sticker, .hero__word.is-on .sticker { rotate: 8deg; scale: 1.15; }
.st-nod { transform-origin: 12px 18px; animation: st-nod .5s ease-in-out infinite alternate; }
@keyframes st-nod { from { rotate: -9deg; } to { rotate: 9deg; } }
.st-clap { transform-origin: 4px 11px; animation: st-clap 1.8s ease-in-out infinite; }
@keyframes st-clap { 0%, 55%, 100% { rotate: 0deg; } 68% { rotate: -24deg; } 80% { rotate: 0deg; } }
.st-line { stroke-dasharray: 22; animation: st-draw 2s ease-in-out infinite; }
@keyframes st-draw { from { stroke-dashoffset: 22; } 60%, to { stroke-dashoffset: 0; } }
.st-pen { animation: st-pen 2s ease-in-out infinite; }
@keyframes st-pen { from { translate: -9px 3px; } 60%, to { translate: 0 0; } }
.st-rec { fill: #ff5a3c; stroke: none; animation: st-rec 1.1s steps(1, end) infinite; }
@keyframes st-rec { 50% { opacity: 0; } }
.st-swing { transform-origin: 12px 1px; animation: st-swing 1.1s ease-in-out infinite alternate; }
@keyframes st-swing { from { rotate: -14deg; } to { rotate: 14deg; } }
.st-lift { animation: st-lift .8s ease-in-out infinite alternate; }
@keyframes st-lift { from { translate: 0 3px; } to { translate: 0 -3px; } }
.hero__day { position: relative; margin: 0 0 26px; padding-left: 42px; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.5; color: var(--muted); }
.hero__day::before { content: ""; position: absolute; left: 0; top: .75em; width: 28px; height: 2px; background: var(--ink); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.hero__find { align-self: stretch; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 22px; padding-top: 18px; border-top: 1px solid var(--line); }
@media (min-width: 901px) {
  /* Next to the photo, the socials sit level with its bottom edge */
  .hero__intro { align-self: stretch; padding-bottom: 46px; }
  .hero__find { margin-top: auto; }
}
.hero__find > span { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.links a { font: 700 17px/1.3 var(--display); letter-spacing: -.01em; color: var(--ink); transition: color .3s; }
.links a:hover { color: var(--red-ink); }

.hero__visual { position: relative; display: grid; place-items: center; min-width: 0; padding: 20px 0 46px; }
.hero__photo { position: relative; width: 100%; max-width: clamp(290px, 22vw, 360px); }
/* Portrait: an arch with a block of marigold behind it */
.portrait { position: relative; z-index: 2; margin: 0; }
.portrait__frame { position: relative; aspect-ratio: 4 / 5; max-width: 100%; border: 2px solid var(--ink); border-radius: 50% 50% 32px 32px / 40% 40% 32px 32px;
  background: var(--paper-2); box-shadow: 14px 14px 0 var(--yellow); overflow: hidden; transform: rotate(2deg); transition: transform .8s var(--ease); }
.portrait:hover .portrait__frame { transform: rotate(0deg); }
.portrait__frame img, .portrait__fallback { width: 100%; height: 100%; }
.portrait__frame img { object-fit: cover; transition: transform 1.2s var(--ease); }
.portrait:hover .portrait__frame img { transform: scale(1.04); }
.portrait__fallback { display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 84px; color: var(--paper); background: var(--ink); }
/* The hero film fades in over the photo. It zooms with the photo on hover, so the two always line up
   and the film starts and ends exactly on the photo, even when it is replayed by clicking the portrait. */
.portrait__clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .35s var(--ease), transform 1.2s var(--ease); pointer-events: none; }
.portrait:hover .portrait__clip { transform: scale(1.04); }
.portrait__clip.is-on { opacity: 1; }

/* Passions arrive as chat messages beside the portrait: typing dots first, then the text */
.chat { --overlap: 16%; position: absolute; inset: 0; z-index: 3; margin: 0; padding: 0; list-style: none; pointer-events: none;
  translate: calc(var(--px, 0) * -18px) calc(var(--py, 0) * -12px); transition: translate .6s var(--ease); }
.chat__msg { position: absolute; top: var(--top); width: max-content; animation: bob 4.6s ease-in-out calc(var(--i, 0) * -1.3s) infinite alternate; }
.chat__msg:nth-child(odd) { right: calc(100% - var(--overlap)); }
.chat__msg:nth-child(even) { left: calc(100% - var(--overlap)); }
@keyframes bob { to { translate: 0 -8px; } }
.chat__msg:hover { animation-play-state: paused; }
.chat__bubble { position: relative; display: flex; align-items: center; padding: 10px 15px; border-radius: 18px; pointer-events: auto;
  background: var(--c); color: var(--con); font: 600 14px/1.2 var(--font); white-space: nowrap; box-shadow: 0 12px 24px -14px rgba(28,26,23,.6);
  transform: scale(0); transition: transform .55s cubic-bezier(.34, 1.56, .64, 1), translate .3s var(--ease), scale .3s var(--ease); }
.chat__bubble::after { content: ""; position: absolute; bottom: 0; width: 13px; height: 12px; background: inherit; }
.chat__msg:nth-child(odd) .chat__bubble { transform-origin: 100% 100%; border-bottom-right-radius: 4px; }
.chat__msg:nth-child(odd) .chat__bubble::after { right: -7px; clip-path: polygon(0 0, 100% 100%, 0 100%); }
.chat__msg:nth-child(even) .chat__bubble { transform-origin: 0 100%; border-bottom-left-radius: 4px; }
.chat__msg:nth-child(even) .chat__bubble::after { left: -7px; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.chat__msg.is-typing .chat__bubble, .chat__msg.is-sent .chat__bubble, .chat__bubble:focus-visible { transform: none; }
.chat__bubble:hover { translate: 0 -3px; }
.chat__msg.is-hinted .chat__bubble { scale: 1.12; }
.chat__typing, .chat__body { display: grid; transition: grid-template-columns .45s var(--ease); }
.chat__typing { grid-template-columns: 1fr; }
.chat__body { grid-template-columns: 0fr; }
.chat__typing > span, .chat__body > span { display: flex; align-items: center; min-width: 0; overflow: hidden; }
.chat__typing > span { gap: 4px; height: 1.2em; }
.chat__typing i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: typing 1s ease-in-out infinite; }
.chat__typing i:nth-child(2) { animation-delay: .15s; }
.chat__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .4; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.chat__body > span { gap: 8px; }
.chat__body .ico { flex: none; width: 16px; height: 16px; }
.chat__msg.is-sent .chat__typing { grid-template-columns: 0fr; }
.chat__msg.is-sent .chat__body { grid-template-columns: 1fr; }
.ico { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* From here down the bubbles reach into the photo, so they move to the heights that keep the face clear */
@media (max-width: 1200px) { .chat { --overlap: 24%; } .chat__msg { top: var(--top-clear, var(--top)); } .chat__bubble { padding: 8px 12px; font-size: 13px; } }
@media (max-width: 1100px) { .chat { --overlap: 36%; } .chat__bubble { padding: 7px 11px; font-size: 12px; } .chat__body .ico { width: 14px; height: 14px; } }
/* Tablets and phones: the photo and its bubbles go on top */
@media (max-width: 900px) {
  .hero__badge { position: relative; align-self: flex-start; margin-left: 7px; border-radius: 4px 20px 20px 20px; }
  .hero__badge::after { top: 0; bottom: auto; clip-path: polygon(100% 0, 100% 100%, 0 0); }
  .hero__layout { grid-template-columns: 1fr; gap: 8px; }
  .hero__visual { order: -1; padding: 16px 0 44px; }
  .hero__base > .stamp--hero { --w: 34px; position: relative; right: auto; top: auto; rotate: -8deg; }
  .hero__base > .stamp--hero :is(.postmark, .stamp__name, .stamp__value) { display: none; }
  .hero__photo { width: min(270px, 62vw); }
  .chat { --overlap: 20%; }
}
@media (max-width: 760px) {
  .hero { padding-top: 104px; padding-bottom: 50px; }
  .hero__photo { width: min(250px, 62vw); }
  .chat { --overlap: 34%; }
}
/* Narrow phones: the bubbles reach further in (they're clear of the face) so they stay on screen */
@media (max-width: 380px) {
  .chat { --overlap: 40%; }
  .chat__bubble { padding: 6px 10px; font-size: 11px; }
  .chat__body > span { gap: 6px; }
  .chat__body .ico { width: 13px; height: 13px; }
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: 22px 0; background: var(--ink); color: var(--paper); transform: rotate(-1.5deg) scale(1.03); }
.marquee__track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee__track span { display: inline-flex; align-items: center; gap: 36px; padding-right: 36px; white-space: nowrap;
  font-family: var(--display); font-weight: 700; font-size: clamp(28px, 4.5vw, 56px); text-transform: uppercase; letter-spacing: -.02em; }
.marquee__track span:nth-child(even) { color: var(--yellow); }
.marquee__track i { font-style: normal; color: var(--red); font-size: .6em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 120px var(--gutter) 20px; scroll-margin-top: 30px; }
.section--tight { padding-top: 40px; }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 40px; }
.section__head h2 { margin: 0; font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(30px, 7.5vw, 96px); line-height: .9; letter-spacing: -.04em; overflow-wrap: anywhere; }

.statement__text { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(28px, 4.6vw, 64px); line-height: 1.08; letter-spacing: -.025em; }
.statement__text .w { opacity: .14; transition: opacity .25s, color .25s; }
.statement__text .w.is-lit { opacity: 1; }
.statement__text .w--key.is-lit { color: var(--red-ink); }

/* ---------- Page heads (inner pages) ---------- */
.page-head { position: relative; max-width: var(--max); margin: 0 auto; padding: 150px var(--gutter) 30px; }
.page-head__title { margin: 0; max-width: 15ch; font: 800 clamp(44px, 7.4vw, 108px)/.95 var(--display); letter-spacing: -.045em; }
.page-head__lead { max-width: 660px; margin: 24px 0 0; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--muted); }
.page-head__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.page-head .filters { margin-top: 30px; }
.page-head--split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.page-head--center { text-align: center; padding-bottom: 120px; }
.page-head--center .page-head__title, .page-head--center .page-head__lead { margin-inline: auto; }
.page-head--center .page-head__cta { justify-content: center; }
@media (max-width: 860px) { .page-head--split { grid-template-columns: 1fr; } }

/* ---------- Dark panels ---------- */
.panel--dark { position: relative; margin: 100px 12px 0; border-radius: 40px; overflow: hidden; color: var(--paper); scroll-margin-top: 20px; background: var(--ink); }
.panel--dark > * { position: relative; }
.panel--dark .section { padding-top: clamp(60px, 8vw, 110px); padding-bottom: clamp(50px, 6vw, 90px); }
.panel--dark .label { color: var(--yellow); }
.panel--dark .section__head h2 { color: var(--paper); }
.panel--dark .section__note { color: var(--muted-dark); }
.panel__subhead { margin: 64px 0 18px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-dark); }
@media (max-width: 900px) { .panel--dark { margin-inline: 8px; border-radius: 28px; } }

/* ---------- Liner notes: a line or two on each B-side ---------- */
.notes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
.note { position: relative; display: grid; grid-template-columns: 64px minmax(0, 5fr) minmax(0, 7fr); gap: 12px 28px; align-items: baseline;
  padding: 28px 16px 28px 22px; border-bottom: 1px solid var(--line-dark); }
.note::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 4px; border-radius: 4px; background: var(--c);
  transform: scaleY(0); transform-origin: top; transition: transform .45s var(--ease); }
.note:hover::before { transform: none; }
.note__num { font: 600 15px var(--mono); color: var(--yellow); }
.note__title { margin: 0; font: 700 clamp(24px, 2.6vw, 36px)/1.05 var(--display); letter-spacing: -.02em; color: var(--paper); }
.note__tag { display: block; margin-top: 8px; font: 500 14px/1.4 var(--font); letter-spacing: 0; color: var(--muted-dark); }
.note__story { margin: 0; max-width: 58ch; font-size: 17px; line-height: 1.6; color: rgba(245, 240, 230, .86); }
.note__link { display: inline-flex; gap: 6px; margin-top: 12px; font-weight: 700; color: var(--yellow); }
.note__link:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .note { grid-template-columns: 40px minmax(0, 1fr); padding-left: 18px; }
  .note__body { grid-column: 2; }
}

/* ---------- The B-sides: album sleeves with a record that slides out ---------- */
.section__note { max-width: 380px; margin: 0; color: var(--muted); font-size: 16px; }
.albums { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.album { min-width: 0; }
.album__sleeve { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.album__cover { --pat: color-mix(in srgb, var(--con) 20%, transparent); position: absolute; inset: 0; z-index: 2; overflow: hidden; border-radius: 10px; container-type: inline-size;
  background: var(--c); color: var(--con); box-shadow: 0 16px 30px -18px rgba(28,26,23,.6); transition: transform .6s var(--ease); }
.album__cover::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
.album__cover[data-art="music"]::before { background: repeating-radial-gradient(circle at 50% 44%, var(--pat) 0 1px, transparent 1px 9px); }
.album__cover[data-art="film"]::before { background: radial-gradient(circle, var(--pat) 2px, transparent 2.6px) 0 6px / 12px 12px repeat-x,
  radial-gradient(circle, var(--pat) 2px, transparent 2.6px) 0 calc(100% - 6px) / 12px 12px repeat-x; }
.album__cover[data-art="design"]::before { background: linear-gradient(var(--pat) 1px, transparent 1px) 0 0 / 14px 14px, linear-gradient(90deg, var(--pat) 1px, transparent 1px) 0 0 / 14px 14px; }
.album__cover[data-art="content"]::before { background: repeating-linear-gradient(0deg, var(--pat) 0 1px, transparent 1px 6px); }
.album__cover[data-art="calisthenics"]::before { background: repeating-linear-gradient(90deg, var(--pat) 0 2px, transparent 2px 16px); }
.album__cover[data-art="gym"]::before { background: repeating-linear-gradient(135deg, var(--pat) 0 6px, transparent 6px 16px); }
.album__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.album__vol, .album__artist { position: absolute; top: 9%; font-size: clamp(8px, 5.4cqi, 12px); letter-spacing: .14em; text-transform: uppercase; opacity: .85; transition: opacity .3s; }
.album__vol { left: 10%; }
.album__artist { right: 10%; letter-spacing: .06em; text-transform: none; }
.album__icon { position: absolute; left: 50%; top: 45%; width: 40%; translate: -50% -50%; }
.album__icon .ico { display: block; width: 100%; height: auto; stroke-width: 1.6; }
.album__name { position: absolute; left: 10%; right: 8%; bottom: 9%; font: 800 clamp(10px, 6.6cqi, 22px)/1.05 var(--display); letter-spacing: -.02em; text-transform: uppercase; }
.album__eq { position: absolute; right: 10%; top: 8%; display: flex; align-items: flex-end; gap: 2px; height: 14px; opacity: 0; transition: opacity .3s; }
.album.is-playing .album__artist { opacity: 0; }
.album__eq i { width: 3px; height: 30%; border-radius: 2px; background: currentColor; }
.album.is-playing .album__eq { opacity: 1; }
.album.is-playing .album__eq i { animation: eq .8s ease-in-out infinite alternate; }
.album.is-playing .album__eq i:nth-child(2) { animation-delay: -.3s; } .album.is-playing .album__eq i:nth-child(3) { animation-delay: -.55s; } .album.is-playing .album__eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { to { height: 100%; } }
.album__vinyl { position: absolute; z-index: 1; top: 4%; left: 4%; width: 92%; aspect-ratio: 1; border-radius: 50%; transform: translateX(9%);
  background: radial-gradient(circle, var(--paper) 0 2.6%, var(--c) 3% 17%, #0c0b0a 17.6% 19%, transparent 19.6%), repeating-radial-gradient(circle, #151311 0 1.4px, #2b2724 1.4px 2.9px);
  box-shadow: 0 12px 26px -10px rgba(0,0,0,.6); transition: transform .8s var(--ease); }
.album__vinyl::after { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 30deg, transparent 0 18%, rgba(255,255,255,.14) 24%, transparent 32% 68%, rgba(255,255,255,.09) 74%, transparent 82%); }
.album__label { display: none; }
.album:hover .album__vinyl, .album__sleeve:focus-visible .album__vinyl { transform: translateX(30%) rotate(220deg); }
.album:hover .album__cover, .album.is-playing .album__cover { transform: translateX(-5%) rotate(-2deg); }
.album.is-playing .album__vinyl { animation: spinRecord 2.2s linear infinite; }
@keyframes spinRecord { from { transform: translateX(30%) rotate(0deg); } to { transform: translateX(30%) rotate(360deg); } }
.album__title { margin: 18px 0 2px; font: 700 17px/1.2 var(--display); letter-spacing: -.01em; }
.album__tag { margin: 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
@media (max-width: 1100px) { .albums { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; } }
.panel--dark .album__tag { color: var(--muted-dark); }
.panel--dark .album__vinyl { box-shadow: 0 0 0 1px rgba(245, 240, 230, .16), 0 12px 26px -10px rgba(0, 0, 0, .6); }
@media (max-width: 560px) { .albums { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 20px; } }

/* ---------- Postage stamp: Chennai, with a postmark that shows the local time ---------- */
.stamp { --w: 96px; position: relative; display: inline-block; flex: none; width: var(--w); rotate: -6deg; filter: drop-shadow(0 6px 8px rgba(28, 26, 23, .22)); }
.stamp__paper { --r: calc(var(--w) * .035); position: relative; display: flex; flex-direction: column; gap: calc(var(--w) * .04);
  padding: calc(var(--r) * 2.2); background: #fffdf8;
  -webkit-mask: radial-gradient(var(--r) at var(--r) var(--r), #0000 97%, #000) calc(-1 * var(--r)) calc(-1 * var(--r)) / calc(var(--r) * 3) calc(var(--r) * 3) round,
    linear-gradient(#000 0 0) content-box;
  mask: radial-gradient(var(--r) at var(--r) var(--r), #0000 97%, #000) calc(-1 * var(--r)) calc(-1 * var(--r)) / calc(var(--r) * 3) calc(var(--r) * 3) round,
    linear-gradient(#000 0 0) content-box; }
.stamp__art { display: block; width: 100%; height: auto; }
.stamp__value { position: absolute; left: calc(var(--r) * 2.2 + var(--w) * .04); top: calc(var(--r) * 2.2 + var(--w) * .035); padding: .1em .35em; border-radius: 3px;
  background: #fffdf8; color: var(--ink); font-size: calc(var(--w) * .095); font-weight: 700; line-height: 1.2; }
.stamp__name { font: 800 calc(var(--w) * .1)/1 var(--display); letter-spacing: .04em; white-space: nowrap; text-align: center; text-transform: uppercase; color: var(--ink); }
.postmark { position: absolute; left: 52%; top: 12%; width: calc(var(--w) * 1.55); height: auto; rotate: -14deg; color: rgba(28, 26, 23, .72);
  fill: none; stroke: currentColor; stroke-width: 2; pointer-events: none; }
.postmark text { fill: currentColor; stroke: none; font-family: var(--mono); }
.postmark__ring { font-size: 7.2px; font-weight: 600; }
.postmark__time { font-size: 10.5px; font-weight: 700; }

/* ---------- About page ---------- */
.about-photo { position: relative; margin: 0; width: 100%; max-width: 420px; justify-self: end; }
.about-photo__frame { aspect-ratio: 4 / 5; max-width: 100%; border: 2px solid var(--ink); border-radius: 34px; background: var(--paper-2); box-shadow: 14px 14px 0 var(--yellow); overflow: hidden; }
.about-photo__frame img, .about-photo__frame .portrait__fallback { width: 100%; height: 100%; object-fit: cover; }
.about-photo__caption { position: absolute; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm); font-size: 12px; font-weight: 600; }
.prose--about { margin-top: 18px; }
.prose--about p { margin: 0 0 14px; max-width: 62ch; color: var(--muted); font-size: 17px; line-height: 1.65; }
@media (max-width: 860px) { .about-photo { justify-self: center; max-width: 360px; order: -1; } }

.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.fact { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.fact span { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ct); }
.fact b { font: 700 19px/1.25 var(--display); }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }


/* ---------- Blog ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { padding: 9px 18px; border-radius: 999px; cursor: pointer; font: 600 14px var(--font); color: var(--muted);
  background: var(--card); border: 1px solid var(--line); transition: color .2s, background .2s, border-color .2s; }
.filter:hover { color: var(--ink); border-color: var(--ink); }
.filter[aria-pressed="true"] { color: var(--paper); background: var(--ink); border-color: var(--ink); }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.post-grid--list .post-card--featured { grid-column: span 2; }
.post-card { position: relative; border-radius: 26px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.post-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.post-card__media { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; max-width: 100%; overflow: hidden;
  background: var(--c); }
/* The featured post reads like a magazine spread: photo on one side, story on the other */
.post-grid--list .post-card--featured .post-card__link { flex-direction: row; }
.post-grid--list .post-card--featured .post-card__media { flex: 0 0 46%; aspect-ratio: auto; min-height: 340px; }
.post-grid--list .post-card--featured .post-card__body { justify-content: center; padding: clamp(24px, 3vw, 44px); }
.post-grid--list .post-card--featured .post-card__excerpt { font-size: 17px; }
.post-grid--list .post-card--featured .post-card__meta { margin-top: 8px; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__mark { font: 800 96px/1 var(--display); color: var(--con); transition: transform .8s var(--ease); }
.post-card:hover .post-card__mark { transform: scale(1.1) rotate(-6deg); }
.post-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px 24px 24px; }
.post-card__draft { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-size: 11px; font-weight: 700; }
.post-card__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; }
.post-card__tags li { font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ct); }
.post-card__title { margin: 0; font: 700 22px/1.2 var(--display); letter-spacing: -.02em; transition: color .3s; }
.post-card--featured .post-card__title { font-size: clamp(24px, 2.4vw, 32px); }
.post-card:hover .post-card__title { color: var(--red-ink); }
.post-card__excerpt { margin: 0; color: var(--muted); font-size: 15px; }
.post-card__meta { margin: auto 0 0; padding-top: 6px; font-size: 12px; color: var(--muted); }
.post-grid__none { color: var(--muted); }
@media (max-width: 1000px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-grid--list .post-card--featured { grid-column: auto; }
  .post-grid--list .post-card--featured .post-card__link { flex-direction: column; }
  .post-grid--list .post-card--featured .post-card__media { flex: none; aspect-ratio: 4 / 3; min-height: 0; }
}

.empty { max-width: 720px; margin: 0 auto; padding: 48px clamp(22px, 5vw, 48px); border-radius: 32px; text-align: center; background: var(--card); border: 1px solid var(--line); }
.empty__mark { display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 18px; border-radius: 22px; background: var(--yellow); color: var(--ink); font-size: 32px; }
.empty h2 { margin: 0 0 10px; font: 800 clamp(26px, 3vw, 36px)/1.1 var(--display); letter-spacing: -.03em; }
.empty p { max-width: 520px; margin: 0 auto 24px; color: var(--muted); }
.empty__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- Blog post ---------- */
/* Each post carries its accent as --c (fill), --ct (text) and --con (text on the fill) */
.post { padding: 140px var(--gutter) 20px; }
.post-hero { max-width: 1180px; margin: 0 auto; }
.post-head { max-width: 820px; margin: 0 auto; }
.back-link { display: inline-flex; margin-bottom: 28px; font-weight: 600; color: var(--ct, var(--red-ink)); }
.back-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.post-draft { display: inline-block; margin: 0 0 14px; padding: 5px 12px; border-radius: 999px; background: var(--yellow); font-size: 12px; font-weight: 700; }
.post-tags { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags li { padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--c, var(--red)) 16%, var(--card)); color: var(--ct, var(--red-ink));
  font: 600 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.post-title { margin: 0; font: 800 clamp(36px, 6vw, 72px)/1.02 var(--display); letter-spacing: -.04em; }
.post-lead { margin: 20px 0 0; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.5; color: var(--muted); }
.post-meta { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-meta__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: var(--shadow-sm); }
.post-meta b { display: block; }
.post-meta span { font-size: 13px; color: var(--muted); }
.post-cover { max-width: 1100px; margin: 44px auto 0; border: 2px solid var(--ink); border-radius: 28px; overflow: hidden;
  box-shadow: 12px 12px 0 var(--c, var(--yellow)); }
.post-cover img { width: 100%; max-height: 560px; object-fit: cover; }
/* A portrait cover sits beside the title, tilted like the photo on the home page */
.post-hero--split { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(36px, 5vw, 76px); align-items: center; }
.post-hero--split .post-head { max-width: none; margin: 0; }
.post-hero--split .post-title { font-size: clamp(38px, 4.6vw, 66px); }
.post-hero--split .post-cover { max-width: 470px; width: 100%; margin: 0 0 0 auto; aspect-ratio: 4 / 5; transform: rotate(2deg); transition: transform .8s var(--ease); }
.post-hero--split .post-cover:hover { transform: rotate(0deg); }
.post-hero--split .post-cover img { height: 100%; max-height: none; }
@media (max-width: 900px) {
  .post-hero--split { grid-template-columns: 1fr; gap: 40px; }
  .post-hero--split .post-cover { max-width: min(460px, 100% - 14px); margin: 0 auto 0 0; transform: rotate(1deg); }
}

.prose { max-width: 720px; margin: 48px auto 0; font-size: 18.5px; line-height: 1.75; color: var(--body); }
.prose > * { margin: 0; }
.prose > * + * { margin-top: 1.2em; }
.prose h2 { margin-top: 2em; font: 700 clamp(26px, 3vw, 34px)/1.2 var(--display); letter-spacing: -.02em; color: var(--ink); }
.prose h3 { margin-top: 1.6em; font: 700 22px/1.3 var(--display); color: var(--ink); }
.prose a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1.5px; text-decoration-color: var(--c, currentColor); text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--c, var(--red)); }
/* The first letter of a post opens like a storybook */
.prose > p:first-of-type::first-letter { float: left; margin: .1em .12em 0 0; font: 800 3.5em/.8 var(--display); color: var(--ct, var(--red-ink)); }
/* Quotes are pull quotes: the line from the post you'd underline */
.prose blockquote { margin: 2.2em 0; padding: 0; font: 700 clamp(23px, 2.6vw, 30px)/1.32 var(--display); letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }
.prose blockquote::before { content: "\201C"; display: block; height: .42em; font: 800 2.8em/1 var(--display); color: var(--c, var(--red)); }
.prose blockquote p { margin: 0; }
/* Photos: a caption under each; one landscape photo runs wide, two or more sit side by side */
.prose figure { margin: 0; }
.prose .photo, .prose .photos { margin-block: 2.4em; }
.prose figure img { display: block; width: 100%; height: auto; max-height: none; margin: 0; border-radius: 20px; box-shadow: var(--shadow-sm); }
.prose figcaption { position: relative; margin-top: 12px; padding-left: 28px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.prose figcaption::before { content: ""; position: absolute; left: 0; top: .7em; width: 18px; height: 2px; border-radius: 2px; background: var(--c, var(--red)); }
.prose .photo--wide { position: relative; left: 50%; width: min(1040px, 100vw - 2 * var(--gutter)); translate: -50% 0; }
.prose .photo:not(.photo--wide) { width: fit-content; max-width: 100%; margin-inline: auto; }
.prose .photo:not(.photo--wide) img { width: auto; max-width: 100%; max-height: 640px; }
.prose .photos { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 18px; align-items: start; }
.prose .photos img { aspect-ratio: 3 / 4; object-fit: cover; }
.prose .photos figure:nth-child(even) { margin-top: 40px; }
@media (max-width: 560px) {
  .prose .photos { grid-template-columns: 1fr; }
  .prose .photos figure:nth-child(even) { margin-top: 0; }
}
/* "Little things I noticed": a small card at the end of a post */
.prose .noticed { margin-top: 2.8em; padding: 26px 28px 28px; border-radius: 26px; background: var(--card); border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--c, var(--yellow)); }
.prose .noticed h3 { margin: 0 0 16px; font: 700 12px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ct, var(--red-ink)); }
.prose .noticed ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.prose .noticed li { position: relative; padding-left: 30px; font-size: 16.5px; line-height: 1.55; }
.prose .noticed li + li { margin-top: 0; }
.prose .noticed li::before { content: "\2726"; position: absolute; left: 0; top: 0; color: var(--c, var(--yellow)); font-size: 15px; line-height: 1.75; }
.prose code { padding: .15em .45em; border-radius: 6px; background: rgba(28,26,23,.07); color: var(--ink); font: 500 .86em var(--mono); }
.prose pre { padding: 20px 22px; border-radius: 18px; background: var(--ink); color: var(--paper); overflow-x: auto; font-size: 14.5px; line-height: 1.6; }
.prose pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.prose img { width: auto; max-height: 640px; border-radius: 18px; box-shadow: var(--shadow-sm); margin-inline: auto; }
.prose hr { height: 1px; border: 0; background: var(--line); margin: 2.4em 0; }
.prose .table-wrap { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { color: var(--ink); }

.post-foot { max-width: 720px; margin: 56px auto 0; display: flex; flex-direction: column; gap: 28px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.share__label { margin-right: 6px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.share__btn { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font: 600 14px var(--font); color: var(--ink); cursor: pointer; transition: color .2s, border-color .2s; }
.share__btn:hover { border-color: var(--ink); }
.author { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 24px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); }
.author__photo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: var(--shadow-sm); }
.author__text { flex: 1 1 240px; min-width: 0; }
.author__label { margin: 0; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--red-ink); }
.author__name { margin: 2px 0 4px; font: 700 22px var(--display); }
.author__bio { margin: 0; color: var(--muted); font-size: 15px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.post-nav__link { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); transition: border-color .3s, transform .3s; }
.post-nav__link:hover { border-color: var(--ink); transform: translateY(-3px); }
.post-nav__link span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.post-nav__link b { font: 700 17px/1.3 var(--display); }
.post-nav__link--older { grid-column: 2; text-align: right; }
@media (max-width: 560px) { .post-nav { grid-template-columns: 1fr; } .post-nav__link--older { grid-column: auto; text-align: left; } }

/* ---------- Contact block + form ---------- */
.contact-block__head { margin-bottom: 40px; }
.contact-block__title { margin: 0; font: 800 clamp(30px, 7vw, 96px)/.92 var(--display); letter-spacing: -.04em; text-transform: uppercase; overflow-wrap: break-word; }
.contact-block__lead { max-width: 580px; margin: 22px 0 0; color: var(--muted); font-size: 18px; }
.contact-block__body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-list__item { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.contact-list__label { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--red-ink); }
.contact-list__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.contact-list__value { margin: 0; font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
a.contact-list__value:hover { color: var(--red-ink); }
/* "My base": the local time, the city and its stamp on a marigold card */
.contact-base { position: relative; flex-direction: row; align-items: center; justify-content: space-between; gap: 18px; overflow: hidden;
  padding: 22px 24px; background: var(--yellow); border-color: var(--ink); }
.contact-base__text { display: flex; flex: 1; flex-direction: column; min-width: 0; container-type: inline-size; }
.contact-base__time { margin-bottom: 16px; font: 800 clamp(34px, 3vw, 46px)/1 var(--display); font-size: min(46px, 16.5cqi); letter-spacing: -.03em; white-space: nowrap; }
.contact-base__time small { margin-left: .22em; font-size: .4em; letter-spacing: .02em; }
.contact-base__city { font: 800 clamp(24px, 2vw, 30px)/1.05 var(--display); font-size: min(30px, 13.5cqi); letter-spacing: -.02em; }
.contact-base__region { margin-top: 4px; font-size: 15px; font-weight: 700; }
.contact-base__note { margin-top: 6px; font-size: 12px; color: rgba(28, 26, 23, .7); }
.contact-base > .stamp--card { --w: 104px; margin-right: 22px; rotate: 5deg; }
@media (max-width: 420px) { .contact-base { gap: 12px; padding: 20px; } .contact-base > .stamp--card { --w: 84px; margin-right: 12px; } }
@media (max-width: 900px) { .contact-block__body { grid-template-columns: 1fr; } }

.form { display: flex; flex-direction: column; gap: 16px; padding: clamp(22px, 3vw, 34px); border-radius: 28px;
  background: var(--card); border: 1.5px solid var(--ink); box-shadow: 12px 12px 0 var(--yellow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.field em { font-style: normal; font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font: 500 16px var(--font); transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; cursor: pointer; padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b6358' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center; }
.field input::placeholder, .field textarea::placeholder { color: #7d7468; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(245,183,0,.45); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--red); }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form__status { margin: 0; font-size: 14px; color: var(--muted); }
.form__status.is-ok { color: var(--green); }
.form__status.is-error { color: var(--red-ink); }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { --soft: rgba(28,26,23,.76); position: relative; margin: 120px 12px 12px; border-radius: 40px; overflow: hidden; color: var(--ink); background: var(--yellow); }
.footer__inner { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(50px, 7vw, 100px) var(--gutter) 28px; }
.footer .label { color: var(--ink); }
.footer__cta { display: inline-flex; align-items: flex-start; gap: .1em; font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(56px, 12vw, 180px); line-height: .9; letter-spacing: -.045em; transition: color .3s; }
.footer__cta span { font-size: .45em; transition: transform .5s var(--ease); }
.footer__cta:hover { color: var(--red-ink); }
.footer__cta:hover span { transform: translate(8px, -8px) rotate(45deg); }
.footer__sub { max-width: 560px; margin: 18px 0 0; font-size: 18px; color: var(--soft); }
.footer__sub a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer__sub a:hover { text-decoration-thickness: 2px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 56px; padding-top: 32px; border-top: 1px solid rgba(28,26,23,.25); }
.footer__heading { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__col a { font-weight: 500; overflow-wrap: anywhere; transition: color .2s; }
.footer__col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__col p { margin: 0 0 6px; }
.footer__time { font-size: 13px; color: var(--soft); }
.footer__time b { color: var(--ink); font-weight: 600; }
.footer__wordmark { margin-top: 40px; font-family: var(--display); font-weight: 800; font-size: clamp(70px, 21vw, 320px); line-height: .8; letter-spacing: -.05em;
  text-align: center; color: rgba(28,26,23,.09); user-select: none; }
.footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 26px; padding-top: 18px;
  border-top: 1px solid rgba(28,26,23,.25); font-size: 12px; color: var(--soft); }
.footer__base a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .footer { margin-inline: 8px; border-radius: 28px; } .footer__cols { grid-template-columns: 1fr 1fr; } .footer__col:last-child { grid-column: 1 / -1; } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 160; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 10px 18px; border-radius: 999px; font-size: 14px; color: var(--paper); background: var(--ink); transition: opacity .3s, transform .3s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; }
.reveal.is-in { opacity: 1; animation: rise .9s var(--ease) var(--rd, 0ms) backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(36px); } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .hero__name .ch > span { opacity: 1; transform: none; }
  .statement__text .w { opacity: 1; }
  .chat__msg .chat__bubble { transform: none; }
}
