/* Fonts are self-hosted (all SIL Open Font License): faster first paint, no layout shift from a late swap,
   and no third-party request to Google. Ranges mirror Google Fonts: latin + latin-ext (covers ₹). */
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/caveat-normal-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/caveat-normal-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/caveat-normal-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/caveat-normal-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/dm-sans-normal-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/dm-sans-normal-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/dm-sans-normal-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/dm-sans-normal-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/dm-sans-normal-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/dm-sans-normal-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(assets/fonts/instrument-serif-italic-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(assets/fonts/instrument-serif-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/instrument-serif-normal-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/instrument-serif-normal-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens ---------- */
:root {
  --paper: #f7f1e6;
  --paper-2: #efe6d6;
  --ink: #1a1714;
  --ink-soft: #4d463e;
  --tomato: #ff5a36;
  /* WHY: #ff5a36 only reaches ~2.5:1 as text; this deeper shade passes WCAG AA (4.5:1+) on every background used */
  --tomato-ink: #b03316;
  /* WHY: contact section fill darkened so the cream "brief?" passes 3:1 (large text) and ink text stays above 4.5:1 */
  --tomato-deep: #e8492a;
  --butter: #ffd84d;
  --lilac: #c9b6ff;
  --mint: #9fe2bf;
  --sky: #8ecbff;
  --serif: "Instrument Serif", Georgia, serif;
  --hand: "Caveat", "Comic Sans MS", cursive;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1160px;
  --border: 2px solid var(--ink);
  --pop: 6px 6px 0 var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* Paper grain */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 200; pointer-events: none; opacity: .35; mix-blend-mode: multiply;
  background-image: 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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.38 0 0 0 0 0.3 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.02; margin: 0 0 .4em; letter-spacing: -0.01em; }
h2 em, h1 em { font-style: italic; }
p { margin: 0 0 1em; }
.hand { font-family: var(--hand); font-weight: 500; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 300; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--tomato); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: .98rem; text-decoration: none; border: var(--border); transition: transform .15s, box-shadow .15s, background .2s; }
.btn-ink { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--tomato); }
.btn-line { background: var(--paper); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--tomato); }
.btn-line:hover, .btn-paper:hover { box-shadow: 6px 6px 0 var(--butter); }
.text-link { font-weight: 700; text-decoration: none; background: linear-gradient(var(--butter), var(--butter)) 0 88% / 100% 40% no-repeat; padding: 0 2px; }
.text-link:hover { background-size: 100% 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 241, 230, .9); backdrop-filter: blur(8px); border-bottom: 2px solid transparent; transition: border-color .3s; }
.site-header.scrolled { border-color: var(--ink); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-family: var(--serif); font-style: italic; font-size: 1.9rem; text-decoration: none; line-height: 1; }
.logo span { color: var(--tomato-ink); }
.site-nav { display: flex; gap: 26px; align-items: center; }
.site-nav a { text-decoration: none; font-weight: 500; font-size: .95rem; position: relative; }
.site-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -3px; height: 2px; background: var(--tomato); transition: right .25s; }
.site-nav a:not(.nav-cta):hover::after { right: 0; }
.site-nav .nav-cta { background: var(--butter); border: var(--border); padding: 7px 18px; border-radius: 999px; font-weight: 700; transform: rotate(-3deg); transition: transform .2s; }
.site-nav .nav-cta:hover { transform: rotate(2deg) scale(1.05); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 10px; width: 24px; height: 2px; background: var(--ink); transition: transform .25s, top .25s; }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 26px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 96px; position: relative; }
.hero-inner { position: relative; }
.hero-hello { font-size: 1.9rem; color: var(--tomato-ink); margin: 0 0 4px; transform: rotate(-3deg); display: inline-block; }
.hero h1 { font-size: clamp(3rem, 8.6vw, 7.4rem); max-width: 12ch; margin-bottom: .35em; }
.circled { position: relative; display: inline-block; font-style: italic; white-space: nowrap; }
.circled svg { position: absolute; left: -6%; top: -18%; width: 112%; height: 136%; overflow: visible; pointer-events: none; }
.circled path { fill: none; stroke: var(--tomato); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 1.4s .4s ease-out forwards; vector-effect: non-scaling-stroke; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-bottom { display: flex; gap: 40px; align-items: flex-start; }
.hero-sub { font-size: 1.2rem; color: var(--ink-soft); max-width: 54ch; margin-bottom: 1.8em; }
.margin-note { font-size: 1.6rem; line-height: 1.1; color: var(--ink-soft); transform: rotate(4deg); margin-top: 6px; white-space: nowrap; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.stickers { position: absolute; right: 24px; top: 30px; display: grid; gap: 18px; justify-items: end; }
.sticker { margin: 0; width: 132px; height: 132px; border-radius: 50%; border: var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-weight: 500; font-size: .85rem; line-height: 1.2; box-shadow: 4px 4px 0 var(--ink); animation: bob 5s ease-in-out infinite; }
.sticker b { display: block; font-family: var(--serif); font-size: 2.3rem; font-weight: 400; line-height: 1; }
.s-butter { background: var(--butter); transform: rotate(-8deg); }
.s-lilac { background: var(--lilac); transform: rotate(6deg); margin-right: 70px; animation-delay: -1.5s; }
.s-mint { background: var(--mint); transform: rotate(-4deg); animation-delay: -3s; }
.s-mint b { font-family: var(--hand); font-size: 1.6rem; }
@keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: var(--paper); border-block: var(--border); overflow: hidden; transform: rotate(-1.5deg); margin: 0 -20px; padding: 16px 0; }
.marquee-track { display: flex; gap: 28px; width: max-content; animation: scroll 32s linear infinite; font-family: var(--serif); font-size: 2rem; white-space: nowrap; align-items: center; }
.marquee-track i { font-style: normal; color: var(--butter); font-size: 1.4rem; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 120px 0; }
.section h2 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.section h2 em { color: var(--tomato-ink); }
.section-head { max-width: 680px; margin-bottom: 60px; }
.section-sub { font-size: 1.12rem; color: var(--ink-soft); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 64px; }
.about-note { font-size: 1.5rem; color: var(--ink-soft); transform: rotate(-2deg); }
.about-copy p { font-size: 1.1rem; color: var(--ink-soft); }
.about-copy .lead { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.2; color: var(--ink); }
.hl { color: var(--ink); font-weight: 700; padding: 0 4px; border-radius: 4px; }
.hl-butter { background: var(--butter); }
.hl-lilac { background: var(--lilac); }
.hl-mint { background: var(--mint); }

/* ---------- Case studies ---------- */
.case { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; border: var(--border); border-radius: 28px; padding: 56px; box-shadow: 10px 10px 0 var(--ink); margin-bottom: 56px; }
.case:last-child { margin-bottom: 0; }
.case-tomato { background: #ffd9cd; }
.case-mint { background: #d8f3e5; }
.case-lilac { background: #e7defe; }
.case-butter { background: #fff1b8; }
.case:nth-child(odd) { rotate: -.6deg; }
.case:nth-child(even) { rotate: .6deg; }
.case-flip .case-text { order: 2; }
.case-no { position: absolute; top: -34px; left: 40px; font-family: var(--serif); font-style: italic; font-size: 4.4rem; line-height: 1; color: var(--ink); background: var(--paper); padding: 0 12px; border-radius: 12px; }
.case-flip .case-no { left: auto; right: 40px; }
.case-tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--paper); border: var(--border); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.case h3 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.case p { color: var(--ink-soft); }
.annotation { font-size: 1.65rem; line-height: 1.1; color: var(--tomato-ink); transform: rotate(-3deg); margin: 22px 0 0; display: inline-block; }
.case-visual { display: flex; justify-content: center; }

/* Phone */
.phone { position: relative; width: 100%; max-width: 330px; background: #efe7dc; border-radius: 40px; padding: 30px 14px 22px; border: 10px solid var(--ink); rotate: 2deg; }
.phone-notch { position: absolute; top: 8px; left: 50%; translate: -50% 0; width: 90px; height: 18px; background: var(--ink); border-radius: 999px; }
.phone-bar { text-align: center; font-size: .78rem; font-weight: 700; color: var(--ink-soft); padding-bottom: 12px; }
.bubble { font-size: .85rem; line-height: 1.5; padding: 12px 14px; border-radius: 18px; margin-bottom: 12px; max-width: 92%; }
.bubble.sms { background: #fff; border-bottom-left-radius: 4px; }
.bubble.wa { background: #dcf8c6; margin-left: auto; border-bottom-right-radius: 4px; }

/* Notebook */
.notebook { list-style: none; padding: 22px 22px 22px 46px; margin: 0; width: 100%; max-width: 420px; background: #fffdf7; border: var(--border); border-radius: 14px; rotate: -1.5deg;
  background-image: linear-gradient(90deg, transparent 32px, #ff9b85 32px, #ff9b85 34px, transparent 34px); }
.notebook li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid #cfe3f0; font-size: .9rem; color: var(--ink-soft); }
.notebook li:last-child { border-bottom: 0; }
.notebook b { display: block; color: var(--ink); font-size: .98rem; }
.nb-day { flex: 0 0 auto; font-family: var(--hand); font-size: 1.4rem; font-weight: 700; color: var(--tomato-ink); width: 44px; line-height: 1.2; }

/* Push stack */
.push-stack { width: 100%; max-width: 360px; display: grid; gap: 10px; }
.push { background: rgba(255,255,255,.85); border: var(--border); border-radius: 18px; padding: 12px 16px; font-size: .86rem; color: var(--ink-soft); line-height: 1.45; transition: transform .2s; }
.push:nth-child(1) { rotate: -2deg; }
.push:nth-child(2) { rotate: 1.5deg; margin-left: 18px; }
.push:nth-child(3) { rotate: -1deg; }
.push:hover { transform: scale(1.03); }
.push b { display: block; color: var(--ink); }
.push-app { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; margin-bottom: 3px; color: #6b645b; } /* WHY: solid grey instead of 60% opacity, which measured 3.1:1 */
.inbox-banner { margin-top: 6px; background: var(--tomato); color: #fff; border: var(--border); border-radius: 18px; padding: 24px 20px; font-family: var(--serif); font-size: 1.7rem; line-height: 1.05; rotate: 1.5deg; }
.inbox-banner span { display: block; font-family: var(--sans); font-size: .8rem; font-weight: 700; margin-top: 12px; background: var(--paper); color: var(--ink); width: max-content; padding: 4px 10px; border-radius: 999px; }

/* Compare */
.compare { width: 100%; max-width: 420px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.compare-col { background: #fff; border: var(--border); border-radius: 18px; padding: 18px; font-size: .92rem; }
.compare-col:first-child { rotate: -2deg; }
.compare-col:last-child { rotate: 2deg; }
.compare-col p { margin: 0; }
.compare-label { display: block; font-family: var(--hand); font-size: 1.35rem; font-weight: 700; color: var(--tomato-ink); margin-bottom: 6px; }
.compare mark { background: var(--butter); font-weight: 700; padding: 0 4px; border-radius: 4px; box-shadow: 0 0 0 2px var(--ink); }

/* ---------- Social ---------- */
.social { background: var(--paper-2); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.filter { font: inherit; font-size: .92rem; font-weight: 700; background: var(--paper); border: var(--border); color: var(--ink); padding: 8px 18px; border-radius: 999px; cursor: pointer; transition: transform .15s, background .2s; }
.filter:hover { transform: rotate(-3deg); }
.filter.is-active { background: var(--ink); color: var(--paper); }
/* WHY: posts are 880px restored images, so tiles can grow freely; 210px minimum gives 4 per row on desktop */
.gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 40px 34px; }
.gallery li[hidden] { display: none; }
.polaroid { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: zoom-in; background: #fff; padding: 12px 12px 8px; box-shadow: 0 6px 18px rgba(26,23,20,.15); border-radius: 4px; transition: transform .25s, rotate .25s, box-shadow .25s; position: relative; }
.polaroid::before { content: ""; position: absolute; top: -12px; left: 50%; translate: -50% 0; width: 76px; height: 24px; background: rgba(255, 216, 77, .75); rotate: -4deg; }
.gallery li:nth-child(4n+1) .polaroid { rotate: -3deg; }
.gallery li:nth-child(4n+2) .polaroid { rotate: 2deg; }
.gallery li:nth-child(4n+3) .polaroid { rotate: -1.5deg; }
.gallery li:nth-child(4n) .polaroid { rotate: 3deg; }
.gallery li:nth-child(3n) .polaroid::before { background: rgba(201, 182, 255, .75); rotate: 3deg; }
.gallery li:nth-child(3n+1) .polaroid::before { background: rgba(159, 226, 191, .8); }
.polaroid:hover { rotate: 0deg !important; transform: scale(1.04); box-shadow: 0 16px 36px rgba(26,23,20,.22); z-index: 2; }
.polaroid:focus-visible { outline: 3px solid var(--tomato); outline-offset: 4px; }
.polaroid img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.polaroid span { display: block; text-align: center; font-size: 1.45rem; padding-top: 6px; color: var(--ink); }

/* ---------- Skills ---------- */
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 16px 14px; }
.tags li { border: var(--border); border-radius: 999px; padding: 12px 24px; font-weight: 700; font-size: 1.05rem; box-shadow: 3px 3px 0 var(--ink); transition: transform .2s; cursor: default; }
.tags li:nth-child(odd) { transform: rotate(-2.5deg); }
.tags li:nth-child(3n) { transform: rotate(2deg); }
.tags li:hover { transform: rotate(0) scale(1.08); }
.t-tomato { background: #c73e1d; color: #fff; }
.t-butter { background: var(--butter); }
.t-lilac { background: var(--lilac); }
.t-mint { background: var(--mint); }
.t-sky { background: var(--sky); }
.t-ink { background: var(--ink); color: var(--paper); box-shadow: 3px 3px 0 var(--tomato) !important; }

/* ---------- Experience ---------- */
.experience { background: var(--paper-2); }
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: #fffdf7; border: var(--border); border-radius: 6px; padding: 30px 26px; box-shadow: var(--pop); position: relative;
  background-image: repeating-linear-gradient(transparent 0 31px, #d9e7f2 31px 32px); background-position: 0 78px; }
.card:nth-child(1) { rotate: -1.5deg; }
.card:nth-child(2) { rotate: 1deg; margin-top: 24px; }
.card:nth-child(3) { rotate: -.5deg; }
.card::before { content: ""; position: absolute; top: -10px; right: 24px; width: 18px; height: 18px; border-radius: 50%; background: var(--tomato); border: var(--border); }
.card-date { font-family: var(--hand); font-size: 1.4rem; font-weight: 700; color: var(--tomato-ink); }
.card h3 { font-size: 1.85rem; margin: 6px 0 2px; }
.card-co { font-weight: 700; margin-bottom: .8em; }
.card p:last-child { color: var(--ink-soft); font-size: .96rem; line-height: 2; margin: 0; }
.edu { margin-top: 64px; border-top: 2px dashed var(--ink); padding-top: 24px; }
.edu p { margin: 0 0 6px; color: var(--ink-soft); }
.edu b { color: var(--ink); }
.edu-title { font-size: 1.6rem; color: var(--tomato-ink) !important; }

/* ---------- Contact ---------- */
.contact { background: var(--butter); color: var(--ink); text-align: center; border-top: var(--border); position: relative; overflow: hidden; }
.contact-inner { position: relative; max-width: 820px; }
.contact h2 { font-size: clamp(3.4rem, 10vw, 8rem); margin-bottom: 0; }
.contact h2 em { color: var(--tomato-ink); }
.contact-note { font-size: 1.8rem; transform: rotate(-2deg); margin-bottom: 1.2em; }
.contact-copy { font-size: 1.15rem; max-width: 52ch; margin: 0 auto 1.6em; }
.big-mail { display: inline-block; font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 4.2vw, 2.6rem); text-decoration: none; background: var(--paper); border: var(--border); border-radius: 18px; padding: 10px 26px; box-shadow: var(--pop); word-break: break-all; transition: transform .15s, box-shadow .15s; }
.big-mail:hover { transform: translate(-3px, -3px) rotate(-1deg); box-shadow: 9px 9px 0 var(--ink); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 32px 0 20px; }
.contact-loc { font-weight: 700; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(247,241,230,.6); font-size: .85rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.footer-inner p { margin: 0; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 250; background: rgba(26, 23, 20, .92); display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; text-align: center; background: #fff; padding: 14px 14px 10px; rotate: -1deg; border-radius: 4px; }
/* WHY: 480px keeps the restored posts sharp (880px source covers 2x screens) and leaves room for the arrows */
.lightbox img { width: min(480px, 80vw); max-height: 72vh; object-fit: contain; margin: 0 auto; }
.lightbox figcaption { font-family: var(--hand); font-size: 1.4rem; line-height: 1.2; margin: 10px auto 0; max-width: 480px; color: var(--ink); }
.lightbox-close { position: absolute; top: 16px; right: 20px; background: var(--butter); border: var(--border); border-radius: 50%; color: var(--ink); font-size: 1.8rem; line-height: 1; cursor: pointer; width: 48px; height: 48px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; translate: 0 30px; transition: opacity .7s ease, translate .7s ease; }
.reveal.is-visible { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .circled path { stroke-dashoffset: 0; }
  .reveal { opacity: 1; translate: 0 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .stickers { position: static; display: flex; flex-wrap: wrap; justify-items: initial; gap: 14px; margin-top: 48px; }
  .s-lilac { margin-right: 0; }
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 20px; }
  .case { grid-template-columns: 1fr; gap: 40px; padding: 48px 28px 36px; }
  .case-flip .case-text { order: 0; }
  .cards { grid-template-columns: 1fr; gap: 32px; }
  .card:nth-child(2) { margin-top: 0; }
  .hero-bottom { flex-direction: column; gap: 0; }
  .margin-note { display: none; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: var(--border); padding: 8px 24px 22px; display: none; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; font-size: 1.1rem; }
  .site-nav .nav-cta { text-align: center; margin-top: 10px; transform: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .hero { padding: 48px 0 72px; }
  .section { padding: 84px 0; }
  .hero-actions .btn { flex: 1 1 100%; }
  .sticker { width: 104px; height: 104px; font-size: .75rem; }
  .sticker b { font-size: 1.8rem; }
  .s-mint b { font-size: 1.3rem; }
  .marquee-track { font-size: 1.5rem; }
  .case { padding: 44px 18px 30px; box-shadow: 6px 6px 0 var(--ink); rotate: 0deg !important; }
  .case-no { font-size: 3.4rem; top: -28px; left: 20px; }
  .case-flip .case-no { right: 20px; }
  .compare { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .polaroid { padding: 8px 8px 4px; }
  .polaroid span { font-size: 1.35rem; line-height: 1.1; } /* WHY: handwriting reads small on phones; 1.35rem stays on one line at 2 columns */
  .tags li { font-size: .92rem; padding: 10px 18px; }
}

/* ---------- SMS + WhatsApp: two separate phones (a WhatsApp bubble never labels itself) ---------- */
.phone-duo { display: flex; flex-direction: column; align-items: flex-start; width: 100%; max-width: 380px; }
/* WHY: stacked rather than side by side, so the WhatsApp phone never covers the SMS text */
.phone-duo .phone { width: 86%; max-width: none; padding-left: 10px; padding-right: 10px; }
.phone-duo .phone:first-child { rotate: -3deg; z-index: 1; }
.phone-duo .phone-wa { margin: -36px 0 0 14%; rotate: 3deg; z-index: 2; box-shadow: -8px 10px 24px rgba(26,23,20,.18); }
.wa-header { display: flex; align-items: center; gap: 8px; background: #1f7a5c; color: #fff; font-size: .8rem; font-weight: 700; margin: -4px -10px 12px; padding: 8px 12px; }
.wa-avatar { width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #1f7a5c; display: grid; place-items: center; font-size: .75rem; }
.phone-duo .bubble { max-width: 100%; font-size: .8rem; }
/* WHY: a message received from a business shows as a white, left-aligned bubble; green is for messages you sent */
.phone-wa .bubble.wa { background: #fff; margin-left: 0; border-radius: 4px 18px 18px 18px; }

/* ---------- Lightbox arrows ---------- */
.lightbox-nav { position: absolute; top: 50%; translate: 0 -50%; width: 56px; height: 56px; border-radius: 50%; border: var(--border); background: var(--paper); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: 4px 4px 0 var(--tomato); transition: transform .15s; z-index: 2; }
.lightbox-nav:hover { transform: scale(1.08) rotate(-4deg); }
.lightbox-prev { left: max(16px, calc(50% - 340px)); }
.lightbox-next { right: max(16px, calc(50% - 340px)); }
.lightbox-count { font-size: .8rem; font-weight: 700; letter-spacing: .08em; color: var(--ink-soft); margin: 6px 0 0; }
@media (max-width: 560px) {
  /* WHY: on phones the arrows sit below the photo so they never cover it */
  .lightbox-nav { top: auto; bottom: 24px; translate: none; width: 52px; height: 52px; }
  .lightbox-prev { left: calc(50% - 70px); }
  .lightbox-next { right: calc(50% - 70px); }
}

/* ---------- About photo (taped polaroid, matches the gallery) ---------- */
.about-photo { position: relative; margin: 36px 0 0; max-width: 300px; background: #fff; padding: 14px 14px 10px; border-radius: 4px; box-shadow: 0 10px 28px rgba(26,23,20,.18); rotate: -3deg; transition: rotate .3s; }
.about-photo:hover { rotate: 0deg; }
.about-photo::before { content: ""; position: absolute; top: -13px; left: 50%; translate: -50% 0; width: 90px; height: 26px; background: rgba(255, 90, 54, .55); rotate: 3deg; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.about-photo figcaption { text-align: center; font-size: 1.45rem; padding-top: 6px; }
@media (max-width: 900px) {
  .about-photo { max-width: 260px; margin: 24px auto 8px; }
}


/* =====================================================================
   Motion layer. Every "hidden before it animates" state is scoped to
   html.anim, which script.js adds only when motion is allowed, so the
   page is fully visible without JavaScript or with reduced motion.
   ===================================================================== */

/* 9. Reading progress: an ink line along the top of the page */
.ink-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 60; background: var(--tomato); transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); }

/* 10. Current section in the menu */
.site-nav a.is-current:not(.nav-cta)::after { right: 0; }
.site-nav a.is-current:not(.nav-cta) { color: var(--ink); }

/* 1. Headline edited live */
/* WHY: the final words reserve their line while drafts are typed on top, so the headline never changes height */
.slot { position: relative; display: inline-block; }
.drafts { position: absolute; left: 0; top: 0; white-space: nowrap; }
.drafts .draft { position: relative; color: var(--ink-soft); }
.drafts .draft::after { content: ""; position: absolute; left: -2%; top: 55%; height: .07em; width: 0; background: var(--tomato); border-radius: 4px; transition: width .25s ease-out; }
.drafts .draft.struck::after { width: 104%; }
.drafts .caret { display: inline-block; width: .06em; height: .8em; margin-left: .04em; background: var(--tomato); vertical-align: -.05em; animation: blink .8s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.anim .circled:not(.is-on) { visibility: hidden; }
.anim .circled path { animation: none; }
.anim .circled.is-on { animation: popIn .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.anim .circled.is-on path { animation: draw 1.2s .25s ease-out forwards; }
@keyframes popIn { from { opacity: 0; transform: translateY(.15em) scale(.96); } }

/* Waving hand, once */
.wave { display: inline-block; transform-origin: 70% 80%; }
.anim .wave { animation: wave 1.6s .3s ease-in-out 1; }
@keyframes wave { 0%, 60%, 100% { rotate: 0deg; } 10%, 30% { rotate: 16deg; } 20%, 40% { rotate: -8deg; } 50% { rotate: 12deg; } }

/* 12. Stickers bob three times, then rest */
.sticker { animation-iteration-count: 3; }

/* 2. Chat plays out: SMS arrives, "typing…", then WhatsApp */
.typing { display: flex; gap: 4px; width: max-content; background: #fff; border-radius: 4px 14px 14px 14px; padding: 10px 12px; margin-bottom: 10px; max-height: 0; opacity: 0; overflow: hidden; padding-block: 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9a948c; animation: dot 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.anim .phone-duo:not(.play) .bubble, .anim .phone-duo:not(.play) .phone-wa { opacity: 0; }
.anim .phone-duo.play .bubble.sms { animation: bubbleIn .5s .2s cubic-bezier(.2, 1.3, .4, 1) both; }
.anim .phone-duo.play .phone-wa { animation: slideUp .6s .9s cubic-bezier(.2, 1.1, .4, 1) both; }
.anim .phone-duo.play .typing { animation: typingShow 1.4s 1.5s both; }
.anim .phone-duo.play .bubble.wa { animation: bubbleIn .5s 2.9s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(14px) scale(.92); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(40px); } }
@keyframes typingShow { 0% { max-height: 0; opacity: 0; padding-block: 0; } 12%, 88% { max-height: 40px; opacity: 1; padding-block: 10px; } 100% { max-height: 0; opacity: 0; padding-block: 0; margin-bottom: 0; } }

/* 3. Notifications slide in one by one */
.anim .push-stack:not(.play) > * { opacity: 0; }
.anim .push-stack.play > * { animation: notif .55s cubic-bezier(.2, 1.2, .4, 1) both; }
.anim .push-stack.play > :nth-child(1) { animation-delay: .1s; }
.anim .push-stack.play > :nth-child(2) { animation-delay: .5s; }
.anim .push-stack.play > :nth-child(3) { animation-delay: .9s; }
.anim .push-stack.play > :nth-child(4) { animation-delay: 1.4s; }
@keyframes notif { from { opacity: 0; transform: translateY(-26px) scale(.95); } }

/* 4. Character counters */
.char-count { display: block; margin-top: 10px; font-family: var(--hand); font-size: 1.25rem; color: var(--ink-soft); }
.char-count b { color: var(--tomato-ink); font-variant-numeric: tabular-nums; }

/* 5. Polaroids develop as they come into view */
.anim .gallery .polaroid img { filter: sepia(.75) saturate(.35) brightness(1.18) contrast(.85) blur(1.5px); transition: filter 1.8s ease-out; }
.anim .gallery li.developed .polaroid img { filter: var(--post-lift); }

/* 6. Highlighter swipe behind the italic word in headings (not on the red contact section) */
.section:not(.contact) h2 em { background: linear-gradient(var(--butter), var(--butter)) 0 88% / 0% 34% no-repeat; padding: 0 .06em; }
html:not(.anim) .section:not(.contact) h2 em, .section:not(.contact) h2.inked em { background-size: 100% 34%; }
.anim .section:not(.contact) h2 em { transition: background-size .8s .2s cubic-bezier(.6, 0, .2, 1); }

/* 7. Handwritten notes underline themselves */
.annotation::after { content: ""; display: block; height: 10px; margin-top: 2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6 Q 25 1 50 5 T 100 5 T 150 5 T 198 4' fill='none' stroke='%23ff5a36' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; clip-path: inset(0 0 0 0); }
.anim .annotation::after { clip-path: inset(0 100% 0 0); transition: clip-path .9s .5s ease-out; }
.anim .case.is-visible .annotation::after { clip-path: inset(0 0 0 0); }

/* 11. Copy email */
.copy-row { margin: 14px 0 0; display: flex; gap: 10px; justify-content: center; align-items: center; min-height: 36px; }
.copy-mail { font: inherit; font-weight: 700; font-size: .9rem; background: transparent; color: var(--ink); border: 2px dashed var(--ink); border-radius: 999px; padding: 6px 16px; cursor: pointer; transition: background .2s, transform .15s; }
.copy-mail:hover { background: rgba(255, 255, 255, .55); transform: rotate(-2deg); }
.copy-status { font-family: var(--hand); font-size: 1.4rem; }
.anim .copy-status:not(:empty) { animation: bubbleIn .35s cubic-bezier(.2, 1.3, .4, 1) both; }

/* Sparkles on the "Say hi" button */
.site-nav .nav-cta { position: relative; }
.anim .site-nav .nav-cta::before { content: "✎"; position: absolute; right: -10px; top: -12px; font-size: .9rem; color: var(--tomato); opacity: 0; transition: opacity .2s, transform .3s; }
.anim .site-nav .nav-cta:hover::before { opacity: 1; transform: rotate(90deg) scale(1.2); }

@media (prefers-reduced-motion: reduce) {
  .ink-progress { display: none; }
  .typing { display: none; }
}

/* WHY: the source screenshots were flattened by Instagram compression and look hazy, especially on the dark
   preview background. A gentle lift restores punch; stronger values pushed Konica's muted brand tones orange. */
:root { --post-lift: saturate(1.15) contrast(1.08); }
.gallery .polaroid img, .lightbox img { filter: var(--post-lift); }

/* Text for screen readers only */
.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; }

/* ---------- Contact decoration: paper plane + postage stamp (replaces the spinning starbursts) ---------- */
.flight { position: absolute; left: 0; top: 10px; width: min(560px, 62vw); height: auto; pointer-events: none; overflow: visible; }
.flight .trail { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-dasharray: 10 9; stroke-linecap: round; opacity: .55; }
.anim .flight .trail { clip-path: inset(0 100% 0 0); transition: clip-path 1.6s ease-in-out; }
.anim .contact.is-flying .flight .trail { clip-path: inset(0 0 0 0); }
.anim .flight .plane { opacity: 0; translate: -420px 120px; transition: translate 1.6s cubic-bezier(.45, 0, .2, 1), opacity .4s; }
.anim .contact.is-flying .flight .plane { opacity: 1; translate: 0 0; }
.stamp { position: absolute; right: max(24px, calc(50% - 560px)); top: 36px; width: 132px; padding: 8px; text-align: center; rotate: 7deg;
  /* WHY: a dotted border in the section's own yellow, drawn over the paper fill, reads as a perforated stamp edge */
  background: #fffdf7; background-clip: border-box; border: 7px dotted var(--butter);
  filter: drop-shadow(3px 4px 0 rgba(26, 23, 20, .22)); }
.stamp span { display: block; border: 2px solid var(--tomato-ink); padding: 10px 4px 8px; font-family: var(--hand); font-size: 1.35rem; line-height: 1; color: var(--tomato-ink); }
.stamp b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.7rem; display: block; margin-top: 2px; }
.stamp small { display: block; margin-top: 6px; font-size: .58rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6b645b; }
@media (max-width: 760px) {
  .stamp { display: none; }
  .flight { width: 86vw; top: 4px; opacity: .85; }
  .contact-note { font-size: 1.45rem; }
}

/* Hand-drawn samosa (there is no samosa emoji; 🥟 is a dumpling) */
.samosa { width: 1.05em; height: .9em; vertical-align: -.1em; margin-left: .1em; rotate: -8deg; }
