/* Eswar Varun S portfolio — "web developer's desk" scrapbook theme.
   Layout: graph-paper desk; props (badge, sticky notes, polaroids, index cards, terminal, ticket) carry each section. */
:root {
  --paper: #f4f0e6;
  --paper-2: #ebe4d3;
  --white: #fffdf7;
  --grid: rgba(54, 92, 160, 0.085);
  --ink: #17171b;
  --muted: #5d5950;
  --yellow: #ffd23a;
  --pink: #ff9fc6;
  --blue: #a9d8ff;
  --green: #a6e8b9;
  --red: #e0362b;
  --tape: rgba(243, 226, 166, 0.82);
  --line: rgba(23, 23, 27, 0.14);
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; color: var(--ink); font: 400 1.03rem/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background-color: var(--paper);
  background-image: var(--grain), linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 180px 180px, 28px 28px, 28px 28px;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 0.95; letter-spacing: 0.005em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1232px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.hand { font-family: var(--hand); font-weight: 700; }
.label { font: 700 0.8rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border-radius: 12px; border: 2px solid var(--ink); font: 700 0.98rem/1 var(--body); text-decoration: none; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); transition: transform 0.15s, box-shadow 0.15s; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-lg { padding: 16px 24px; font-size: 1.03rem; }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-line { background: var(--white); color: var(--ink); }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: rgba(244, 240, 230, 0.94); border-bottom: 2px dashed var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.name { font: 400 1.6rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; text-decoration: none; }
.name span { color: var(--red); }
.nav { display: flex; align-items: center; gap: 24px; font-weight: 600; }
.nav a:not(.btn) { text-decoration: none; color: var(--muted); }
.nav a:not(.btn):hover { color: var(--ink); text-decoration: underline wavy var(--red); text-underline-offset: 5px; }
.nav .btn { padding: 9px 16px; font-size: 0.92rem; }

/* ============ Hero / desk ============ */
.hero { padding: 40px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: start; }
.hero-copy { display: flex; flex-direction: column; gap: 18px; padding-top: 34px; min-width: 0; }
.hello { display: flex; align-items: center; gap: 12px; font-size: 2.1rem; line-height: 1; color: var(--red); transform: rotate(-3deg); transform-origin: left; }
.avatar { display: none; width: 58px; height: 58px; border-radius: 50%; object-fit: cover; object-position: 40% 20%; border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--ink), 3px 4px 0 2px var(--ink); flex: none; }
@media (max-width: 960px) { .avatar { display: block; } }
.hero h1 { font-size: clamp(3.2rem, 7.6vw, 6.6rem); }
.hero h1 mark { color: inherit; background: linear-gradient(transparent 52%, var(--yellow) 52%, var(--yellow) 90%, transparent 90%); padding: 0 6px; margin: 0 -6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 54ch; }
.cta { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.builds { list-style: none; margin: -4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.builds li { padding: 4px 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); font: 700 1.2rem/1.1 var(--hand); }
.builds li:nth-child(odd) { background: var(--yellow); }
.builds li:nth-child(3) { background: var(--blue); }
.note-cta { font-size: 1.6rem; color: var(--red); transform: rotate(-6deg); margin-left: 6px; }

.desk { position: relative; min-height: 640px; }
.lanyard-drop { position: absolute; left: 50%; top: -40px; width: 280px; margin-left: -140px; animation: drop 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes drop { from { transform: translateY(-120px); } }
.lanyard { position: relative; transform-origin: 50% 0; animation: sway 6s ease-in-out 1.1s infinite; }
@keyframes sway { 0%, 100% { rotate: -1.6deg; } 50% { rotate: 1.6deg; } }
.strap { position: relative; width: 38px; height: 170px; margin: 0 auto; background: var(--red); overflow: hidden; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.12); }
.strap span { position: absolute; left: 50%; top: 0; transform: translateX(-50%) rotate(180deg); writing-mode: vertical-rl; white-space: nowrap; font: 700 0.62rem/1 var(--mono); letter-spacing: 0.18em; color: #ffe1dc; }
.clip { width: 54px; height: 30px; margin: -2px auto 0; border-radius: 8px 8px 12px 12px; background: linear-gradient(180deg, #d9dbe0, #8d929b); box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25); position: relative; z-index: 2; }
.clip::after { content: ""; position: absolute; left: 50%; bottom: -14px; width: 18px; height: 22px; margin-left: -9px; border: 4px solid #9aa0a8; border-radius: 10px; }
.badge {
  position: relative; margin-top: 4px; padding: 26px 22px 20px; border-radius: 18px;
  background: var(--white); border: 2px solid var(--ink); box-shadow: 0 30px 50px -24px rgba(23, 23, 27, 0.55), 8px 8px 0 var(--ink);
  display: flex; flex-direction: column; gap: 8px; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.2s;
}
.badge::before { content: ""; position: absolute; top: 9px; left: 50%; width: 46px; height: 9px; margin-left: -23px; border-radius: 6px; background: var(--paper-2); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25); }
.badge::after { content: ""; position: absolute; inset: 0; border-radius: 16px; background: linear-gradient(115deg, rgba(255, 255, 255, 0) 62%, rgba(255, 255, 255, 0.35) 72%, rgba(255, 255, 255, 0) 82%); pointer-events: none; } /* plastic glare, kept below the photo */
.badge-head { display: flex; justify-content: space-between; font: 700 0.7rem/1 var(--mono); letter-spacing: 0.12em; color: var(--muted); padding-top: 6px; }
.photo { width: 100%; aspect-ratio: 5 / 6; border-radius: 10px; object-fit: cover; border: 2px solid var(--ink); }
.photo-empty { display: grid; place-content: center; justify-items: center; gap: 4px; background: repeating-linear-gradient(45deg, var(--paper) 0 10px, var(--paper-2) 10px 20px); border-style: dashed; color: var(--muted); }
.initials { font: 400 3.6rem/1 var(--display); color: var(--ink); }
.photo-empty .hand { font-size: 1.35rem; color: var(--red); }
.badge-name { font: 400 2rem/1 var(--display); text-transform: uppercase; margin-top: 6px; }
.badge-role { font-weight: 600; color: var(--muted); font-size: 0.95rem; }
.badge-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; padding-top: 10px; border-top: 2px dashed var(--line); font: 700 0.75rem/1 var(--mono); }
.barcode { width: 92px; height: 28px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px); }

.sticky {
  position: absolute; width: 150px; padding: 22px 16px 18px; font: 700 1.45rem/1.05 var(--hand); color: var(--ink);
  box-shadow: 0 12px 18px -10px rgba(23, 23, 27, 0.45); animation: slap 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.sticky::before { content: ""; position: absolute; top: -10px; left: 50%; width: 64px; height: 20px; margin-left: -32px; background: var(--tape); transform: rotate(-4deg); }
.sticky b { font-size: 1.7rem; }
.s-yellow { background: var(--yellow); left: -10px; top: 420px; transform: rotate(-7deg); animation-delay: 0.9s; }
.s-pink { background: var(--pink); right: -6px; top: 80px; transform: rotate(6deg); animation-delay: 1.1s; }
.s-blue { background: var(--blue); right: 0; top: 470px; transform: rotate(4deg); animation-delay: 1.3s; }
@keyframes slap { from { opacity: 0.2; scale: 1.25; } }
.coffee { position: absolute; left: 4px; top: 120px; width: 120px; height: 120px; border-radius: 50%; border: 9px solid rgba(120, 72, 30, 0.13); box-shadow: inset 0 0 0 3px rgba(120, 72, 30, 0.06); transform: rotate(20deg); clip-path: polygon(0 0, 100% 0, 100% 82%, 70% 100%, 0 100%); }
.doodle-arrow { position: absolute; left: -70px; top: 300px; width: 110px; height: 66px; color: var(--ink); transform: scaleX(-1) rotate(-14deg); opacity: 0.75; }

/* ============ Keycaps ============ */
.keys-wrap { position: relative; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding-top: 10px; padding-bottom: 70px; }
.key {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px 16px; border-radius: 12px; text-decoration: none;
  background: linear-gradient(180deg, #fff, #ecebe6); border: 2px solid var(--ink);
  box-shadow: 0 6px 0 var(--ink), 0 10px 16px -6px rgba(23, 23, 27, 0.35); transition: transform 0.08s, box-shadow 0.08s;
}
.key kbd { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--ink); color: var(--yellow); font: 700 1.05rem/1 var(--mono); }
.key span { font-weight: 700; font-size: 1.02rem; }
.key:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--ink), 0 8px 12px -6px rgba(23, 23, 27, 0.35); }
.key:active, .key.pressed { transform: translateY(6px); box-shadow: 0 0 0 var(--ink), 0 4px 8px -6px rgba(23, 23, 27, 0.35); }
.keys-hint { font-size: 1.35rem; color: var(--muted); transform: rotate(-3deg); margin-left: 8px; }

/* ============ Section heads ============ */
.sec-head { position: relative; display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; max-width: 760px; }
.sec-head h2 { font-size: clamp(2.8rem, 6.6vw, 5.4rem); }
.sec-head .side { position: absolute; right: -170px; top: 6px; font-size: 1.7rem; color: var(--red); transform: rotate(-6deg); white-space: nowrap; }
.sub { color: var(--muted); font-size: 1.05rem; max-width: 62ch; }

/* ============ Work: polaroids ============ */
.work { padding: 20px 0 110px; }
.board { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 44px; padding-top: 10px; }
.polaroid {
  position: relative; display: flex; flex-direction: column; text-decoration: none; padding: 14px 14px 20px; background: var(--white);
  box-shadow: 0 2px 0 rgba(23, 23, 27, 0.06), 0 22px 40px -22px rgba(23, 23, 27, 0.55); rotate: var(--r, 0deg);
  transition: rotate 0.4s cubic-bezier(0.22, 1, 0.36, 1), translate 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s;
}
.polaroid:hover, .polaroid:focus-visible { rotate: 0deg; translate: 0 -8px; box-shadow: 0 2px 0 rgba(23, 23, 27, 0.06), 0 36px 60px -26px rgba(23, 23, 27, 0.6); }
.tape { position: absolute; top: -14px; left: 50%; width: 120px; height: 30px; margin-left: -60px; background: var(--tape); transform: rotate(-3deg); z-index: 3; clip-path: polygon(3% 0, 97% 4%, 100% 50%, 97% 100%, 2% 96%, 0 50%); }
.polaroid:nth-child(even) .tape { transform: rotate(4deg); }
.shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); border: 1px solid var(--line); }
.shot > img:first-child { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone { position: absolute; right: 4%; bottom: -16%; width: 19%; border-radius: 16px; border: 5px solid var(--ink); box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.5); transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.polaroid:hover .phone { transform: translateY(-14px); }
.cap { display: flex; flex-direction: column; gap: 4px; padding: 16px 6px 0; }
.type { font: 700 0.72rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.cap h3 { font: 400 1.9rem/1 var(--display); text-transform: uppercase; }
.cap p { color: var(--muted); max-width: 52ch; }
.scrawl { font-size: 1.5rem; color: var(--red); line-height: 1.1; }
.feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.45fr 1fr; gap: 26px; align-items: center; }
.feature .cap { padding: 0 10px 0 0; gap: 10px; }
.feature .cap h3 { font-size: 2.8rem; }

/* ============ Notebook ============ */
.includes { padding: 0 0 110px; }
.notebook {
  position: relative; max-width: 980px; margin: 0 auto; padding: 48px 40px 40px 96px; rotate: -0.6deg;
  background-color: #fffef9;
  background-image: linear-gradient(90deg, transparent 70px, rgba(224, 54, 43, 0.45) 70px 72px, transparent 72px), repeating-linear-gradient(transparent 0 31px, rgba(54, 120, 200, 0.22) 31px 32px);
  background-position: 0 0, 0 14px;
  box-shadow: 0 30px 50px -30px rgba(23, 23, 27, 0.5);
}
.notebook::before { content: ""; position: absolute; left: 24px; top: 40px; bottom: 40px; width: 20px; background: radial-gradient(circle, var(--paper) 7px, rgba(0, 0, 0, 0.12) 8px, transparent 9px) 0 0 / 20px 96px repeat-y; }
.notebook h2 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: 20px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 36px; }
.checklist li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.checklist svg { width: 36px; height: 36px; color: var(--red); margin-top: -4px; }
.checklist h3 { font: 700 1.6rem/1.1 var(--hand); }
.checklist p { color: var(--muted); font-size: 0.97rem; }

/* ============ Packages: pinned index cards ============ */
.packages { padding: 0 0 110px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; align-items: stretch; padding-top: 14px; }
.index-card {
  position: relative; padding: 34px 26px 26px; display: flex; flex-direction: column; gap: 10px; rotate: var(--r, 0deg);
  background: #fffef9 repeating-linear-gradient(transparent 0 27px, rgba(54, 120, 200, 0.16) 27px 28px); background-position: 0 70px;
  border-top: 26px solid #fffef9; box-shadow: 0 24px 40px -24px rgba(23, 23, 27, 0.55);
}
.index-card::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: rgba(224, 54, 43, 0.5); }
.pin { position: absolute; top: -32px; left: 50%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff8a80, var(--red) 55%, #8f150d); box-shadow: 0 6px 6px -2px rgba(0, 0, 0, 0.35); }
.index-card h3 { font: 400 1.6rem/1 var(--display); text-transform: uppercase; }
.amt { font: 400 3rem/1 var(--display); font-variant-numeric: tabular-nums; }
.for { color: var(--muted); }
.index-card ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.index-card li { font: 700 1.3rem/1.15 var(--hand); }
.index-card li::before { content: "→ "; color: var(--red); }
.index-card.pop { background-color: var(--yellow); background-image: none; border-top-color: var(--yellow); translate: 0 -12px; }
.index-card.pop::before { display: none; }
.circled { position: absolute; top: -6px; right: 14px; font-size: 1.5rem; color: var(--red); transform: rotate(6deg); padding: 6px 14px; }
.circled svg { position: absolute; inset: -6px -16px; width: calc(100% + 32px); height: calc(100% + 12px); color: var(--red); }
.care { margin-top: 34px; padding: 18px 22px; border: 2px dashed var(--ink); border-radius: 14px; background: rgba(255, 253, 247, 0.7); }

/* ============ How: terminal ============ */
.how { padding: 0 0 110px; }
.how-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: start; }
.how .sec-head .side { position: static; transform: rotate(-4deg); }
.terminal { background: #121318; color: #e6e6e6; border-radius: 16px; overflow: hidden; box-shadow: 10px 10px 0 var(--ink), 0 30px 60px -30px rgba(0, 0, 0, 0.6); border: 2px solid var(--ink); }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #1e2028; font: 500 0.82rem/1 var(--mono); color: #9aa0ad; }
.term-bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.term-bar i:nth-child(2) { background: #febc2e; }
.term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 10px; }
.term-lines { list-style: none; margin: 0; padding: 22px 24px 6px; display: grid; gap: 18px; }
.term-lines code { font: 700 0.98rem/1.4 var(--mono); color: #fff; overflow-wrap: anywhere; }
.ps { color: #7ee787; margin-right: 6px; }
.flag { color: #79c0ff; }
.term-lines p { margin-top: 4px; font: 500 0.92rem/1.55 var(--mono); color: #b9bcc6; }
.ok { color: var(--yellow); }
.cursor-line { padding: 0 24px 22px; font: 700 0.98rem var(--mono); }
.cursor { display: inline-block; width: 10px; height: 1.1em; background: var(--yellow); vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ============ Areas: torn paper ============ */
.areas { padding: 0 0 110px; }
.torn {
  max-width: 980px; margin: 0 auto; padding: 44px 40px; background: #fffef9; rotate: 0.5deg; display: flex; flex-direction: column; gap: 18px;
  clip-path: polygon(0 3%, 4% 0, 9% 2%, 15% 0, 22% 3%, 30% 1%, 38% 3%, 46% 0, 55% 2%, 63% 0, 71% 3%, 80% 1%, 88% 3%, 95% 0, 100% 2%, 100% 97%, 95% 100%, 88% 98%, 80% 100%, 72% 97%, 63% 100%, 55% 98%, 46% 100%, 38% 97%, 30% 100%, 22% 98%, 14% 100%, 7% 97%, 0 100%);
  filter: drop-shadow(0 18px 24px rgba(23, 23, 27, 0.25));
}
.torn h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.torn p { color: var(--muted); max-width: 70ch; font-size: 1.05rem; }
.area-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.area-list li { padding: 6px 14px; border-radius: 999px; border: 2px solid var(--ink); background: var(--white); font: 700 1.25rem/1.1 var(--hand); }
.area-list li:nth-child(3n + 1) { background: var(--yellow); }
.area-list li:nth-child(5n + 2) { background: var(--blue); }

/* ============ FAQ ============ */
.faq { padding: 0 0 110px; }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: start; }
.qa details { background: var(--white); border: 2px solid var(--ink); border-radius: 14px; margin-bottom: 12px; box-shadow: 4px 4px 0 var(--ink); }
.qa summary { cursor: pointer; list-style: none; padding: 18px 50px 18px 20px; position: relative; font-weight: 700; font-size: 1.08rem; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font: 700 2rem/1 var(--hand); color: var(--red); transition: transform 0.25s; }
.qa details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.qa p { padding: 0 20px 18px; color: var(--muted); }

/* ============ Contact: ticket ============ */
.contact { padding: 0 0 110px; }
.ticket { position: relative; display: grid; grid-template-columns: 1fr 200px; max-width: 1040px; margin: 0 auto; background: var(--yellow); border: 2px solid var(--ink); border-radius: 18px; box-shadow: 10px 10px 0 var(--ink); rotate: -0.8deg; }
.ticket::before, .ticket::after { content: ""; position: absolute; right: 186px; width: 28px; height: 28px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.ticket::before { top: -15px; clip-path: inset(50% 0 0 0); }
.ticket::after { bottom: -15px; clip-path: inset(0 0 50% 0); }
.t-main { padding: clamp(28px, 5vw, 56px); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.t-kicker { font: 700 0.85rem/1 var(--mono); letter-spacing: 0.24em; text-transform: uppercase; }
.t-main h2 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
.t-main > p { font-size: 1.08rem; max-width: 52ch; }
.t-stub { border-left: 3px dashed var(--ink); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; padding: 20px; text-align: center; font: 700 0.8rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }
.t-stub b { font: 400 3.4rem/1 var(--display); writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: 0.06em; }

.foot { border-top: 2px dashed var(--line); padding-block: 26px; color: var(--muted); font-size: 0.92rem; }
.foot-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.sig { font-size: 1.4rem; color: var(--ink); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 800; color: var(--red); text-decoration: underline; cursor: pointer; }
.care.addon { margin-top: 14px; border-color: var(--red); background: rgba(255, 210, 58, 0.28); }

/* ============ AI helpdesk ============ */
.hd-launch {
  position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 80;
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px 11px 13px; border-radius: 999px;
  background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  font: 800 1rem/1 var(--body); cursor: pointer; rotate: -2deg; transition: transform 0.15s, box-shadow 0.15s;
}
.hd-launch:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.hd-launch svg { width: 26px; height: 26px; fill: var(--white); stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body.hd-open .hd-launch { display: none; }
.hd-panel {
  position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  width: min(390px, calc(100vw - 32px)); height: min(600px, calc(100vh - 100px)); display: flex; flex-direction: column;
  background: var(--white); border: 2px solid var(--ink); border-radius: 18px; overflow: hidden;
  box-shadow: 8px 8px 0 var(--ink), 0 30px 60px -30px rgba(0, 0, 0, 0.5); animation: hdIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes hdIn { from { transform: translateY(16px) scale(0.98); opacity: 0.4; } }
.hd-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 14px 16px; background: var(--ink); color: var(--white); }
.hd-head h2 { font-size: 1.45rem; line-height: 1; }
.hd-head p { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 0.82rem; color: #c9c6bd; }
.hd-dot { width: 8px; height: 8px; border-radius: 50%; background: #7ee787; flex: none; }
.hd-offline .hd-dot { background: #f5b83d; }
.hd-close { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.35); background: transparent; color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.hd-log, .hd-chips { background-color: var(--paper); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 22px 22px; }
.hd-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.hd-msg { display: flex; flex-direction: column; max-width: 86%; }
.hd-bot { align-self: flex-start; }
.hd-user { align-self: flex-end; align-items: flex-end; }
.hd-bubble { padding: 10px 13px; border-radius: 14px; border: 2px solid var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.95rem; line-height: 1.45; }
.hd-bot .hd-bubble { background: var(--white); border-bottom-left-radius: 4px; }
.hd-user .hd-bubble { background: var(--yellow); border-bottom-right-radius: 4px; }
.hd-tag { margin-top: 4px; font: 700 0.66rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.hd-typing .hd-bubble { display: inline-flex; gap: 4px; padding: 13px 14px; }
.hd-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); animation: hdDot 1s ease-in-out infinite; }
.hd-typing i:nth-child(2) { animation-delay: 0.15s; }
.hd-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes hdDot { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.hd-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.hd-chips button { padding: 6px 12px; border-radius: 999px; border: 2px dashed var(--ink); background: var(--white); color: var(--ink); font: 700 1.08rem/1.15 var(--hand); cursor: pointer; text-align: left; }
.hd-chips button:hover { background: var(--yellow); border-style: solid; }
.hd-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 2px solid var(--ink); background: var(--white); }
.hd-form textarea { flex: 1; min-width: 0; resize: none; max-height: 120px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; background: var(--paper); font: 400 16px/1.4 var(--body); color: var(--ink); }
.hd-form textarea:focus { outline: none; border-color: var(--ink); background: var(--white); }
.hd-send { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; border: 2px solid var(--ink); background: var(--ink); color: var(--yellow); cursor: pointer; }
.hd-send svg { width: 22px; height: 22px; fill: currentColor; }
.hd-foot { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; background: var(--white); border-top: 1px dashed var(--line); }
.hd-wa { display: flex; justify-content: center; padding: 10px; border-radius: 12px; border: 2px solid var(--ink); background: #25d366; color: #08351a; font-weight: 800; text-decoration: none; }
.hd-wa:hover { background: #2ee874; }
.hd-foot p { font-size: 0.74rem; color: var(--muted); text-align: center; }
@media (max-width: 640px) {
  .hd-launch { padding: 10px 14px 10px 11px; font-size: 0.92rem; }
  .hd-panel { left: 0; right: 0; bottom: 0; width: 100%; height: min(86vh, 640px); height: min(86dvh, 640px); border-radius: 18px 18px 0 0; border-bottom: 0; box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, 0.5); padding-bottom: env(safe-area-inset-bottom, 0px); }
}

/* Slide-in for content below the first screen (always visible at rest) */
.js [data-reveal].below { translate: 0 24px; transition: translate 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.js [data-reveal].below.in { translate: 0 0; }

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .sec-head .side { position: static; transform: rotate(-3deg); }
  .doodle-arrow { display: none; }
}
@media (max-width: 960px) {
  .nav a:not(.btn) { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 10px; }
  .hero-copy { padding-top: 10px; }
  .desk { min-height: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 16px; padding-top: 10px; }
  .lanyard-drop { position: relative; left: auto; top: auto; margin: 0 0 18px; width: 100%; }
  .lanyard { width: min(280px, 78vw); margin: 0 auto; }
  .sticky { position: relative; left: auto; right: auto; top: auto; width: auto; flex: 0 1 150px; font-size: 1.3rem; }
  .coffee { display: none; }
  .board { grid-template-columns: 1fr; gap: 44px; }
  .feature { display: flex; }
  .feature .cap { padding: 16px 6px 0; }
  .feature .cap h3 { font-size: 2.2rem; }
  .checklist { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; gap: 44px; max-width: 460px; margin: 0 auto; }
  .index-card.pop { translate: 0 0; }
  .how-grid, .faq-grid { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: clamp(2.7rem, 13vw, 3.6rem); }
  .cta .btn-lg { flex: 1 1 100%; }
  .note-cta { display: none; }
  .keys-wrap { padding-bottom: 50px; gap: 10px; }
  .key { flex: 1 1 calc(50% - 10px); padding: 10px 12px 14px; }
  .key span { font-size: 0.95rem; }
  .keys-hint { display: none; }
  .notebook { padding: 36px 18px 28px 52px; rotate: 0deg; background-image: linear-gradient(90deg, transparent 40px, rgba(224, 54, 43, 0.45) 40px 42px, transparent 42px), repeating-linear-gradient(transparent 0 31px, rgba(54, 120, 200, 0.22) 31px 32px); }
  .notebook::before { left: 10px; }
  .torn { padding: 36px 20px; rotate: 0deg; }
  .ticket { grid-template-columns: 1fr; rotate: 0deg; }
  .ticket::before, .ticket::after { display: none; }
  .t-stub { border-left: 0; border-top: 3px dashed var(--ink); flex-direction: row; justify-content: space-between; padding: 16px 20px; }
  .t-stub b { writing-mode: horizontal-tb; transform: none; font-size: 2.2rem; }
  .polaroid { padding: 10px 10px 16px; }
  .cap h3 { font-size: 1.6rem; }
  .phone { width: 24%; border-width: 3px; border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lanyard-drop, .lanyard, .sticky, .cursor, .hd-panel, .hd-typing i { animation: none; }
  .polaroid, .btn, .key, .badge, .phone { transition: none; }
  .js [data-reveal].below { translate: none; }
}
