/* ============================================================
   Portfolio v2 — Editorial Sticker
   Cream + ink + amber. Fraunces / Instrument Serif / Inter /
   JetBrains Mono / Caveat. Hard borders + offset shadows.
   ============================================================ */

.gtm-noscript { display: none; visibility: hidden; }

.share-row {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1.5px solid var(--ink);
}
.share-title {
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 14px;
}
.share-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.share-btn {
  display: inline-block;
  padding: 8px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13px;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.share-btn:hover,
.share-btn:focus-visible {
  background: var(--ink);
  color: var(--accent);
  transform: translate(-1px, -1px);
}

:root {
  --bg: #F4F1EA;
  --ink: #0E0E0C;
  --muted: #6B6A63;
  --accent: #FFC93C;
  --accent-deep: #E5A91A;
  --line: #1a1a18;
  --paper: #EDE8DC;
  --card: #FFFFFF;

  --container: 1280px;
  --gutter: 32px;
  --section-pad: 110px;

  --border: 1.5px solid var(--ink);
  --shadow-card: 4px 4px 0 var(--ink);
  --shadow-card-lg: 6px 6px 0 var(--ink);
  --shadow-photo: 8px 8px 0 var(--ink);

  --font-sans: 'Satoshi', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', serif;
  --font-serif: 'Instrument Serif', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-grotesk: 'Space Grotesk', sans-serif;
  --font-marker: 'Caveat', cursive;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* legacy fallback */
  overflow-x: clip;   /* clip without creating a scroll container — preserves position: sticky */
  min-height: 100vh;
}
img, svg, video { display: block; max-width: 100%; }
ul, ol { list-style: none; padding: 0; margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

::selection { background: var(--accent); color: var(--ink); }

/* Type families */
.display  { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; line-height: 0.95; }
.serif    { font-family: var(--font-serif); }
.italic   { font-style: italic; }
.mono     { font-family: var(--font-mono); }
.grotesk  { font-family: var(--font-grotesk); }
.marker   { font-family: var(--font-marker); font-size: 22px; line-height: 1; }
.muted    { color: var(--muted); }
.accent-dot { color: var(--accent-deep); }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--bg);
  border: var(--border);
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
  transition: top 0.18s;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

/* Cursor follower */
.cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.18s, height 0.18s, background 0.18s;
  mix-blend-mode: difference;
}
.cursor-dot.is-hover {
  width: 40px; height: 40px;
  background: transparent;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 1px rgba(14, 14, 12, 0.15);
  mix-blend-mode: normal;
}
@media (max-width: 800px), (pointer: coarse) {
  .cursor-dot { display: none; }
}

/* ===== Sticker chip primitive ===== */
.sticker {
  background: var(--accent);
  display: inline-block;
  padding: 2px 12px;
  transform: rotate(-1.5deg);
  border: var(--border);
  box-shadow: 3px 3px 0 var(--ink);
}

/* ===== Layout ===== */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  padding: var(--section-pad) 0;
  position: relative;
}
.section-paper {
  background: var(--paper);
  border-top: var(--border);
  border-bottom: var(--border);
}

/* ===== Nav ===== */
nav.top {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--ink);
}
nav.top .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
}
.logo-mark {
  width: 28px; height: 28px;
  background: var(--ink);
  color: var(--accent);
  display: grid; place-items: center;
  border-radius: 6px;
  font-size: 14px; font-weight: 700;
}
.logo-tag { color: var(--muted); margin-left: 6px; }

.nav-list {
  display: flex;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.nav-list a { position: relative; padding: 4px 0; }
.nav-list a::before {
  content: "↳ ";
  display: inline-block;
  opacity: 0;
  width: 0;
  margin-right: 0;
  transition: opacity 0.15s, width 0.15s, margin-right 0.15s;
}
.nav-list a:hover::before,
.nav-list a[aria-current="true"]::before {
  opacity: 1;
  width: auto;
  margin-right: 4px;
}
.nav-list a[aria-current="true"] { color: var(--ink); font-weight: 600; }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 201, 60, 0.8);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 201, 60, 0.8); }
  70%  { box-shadow: 0 0 0 8px rgba(255, 201, 60, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 201, 60, 0); }
}

@media (max-width: 900px) {
  .nav-list { display: none; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: var(--border);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}
.btn:active { transform: translate(0, 0); box-shadow: 0 0 0 var(--ink); }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-ghost   { background: transparent; }
.btn-block   { width: 100%; justify-content: center; }

/* ===== Card primitive ===== */
.card {
  background: var(--card);
  border: var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

/* ===== Chip primitive ===== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: default;
  transition: background 0.15s, transform 0.1s;
}
.chip.is-expert,
.chip.is-on,
.chip.is-accent { background: var(--accent); }
.chip.is-off    { opacity: 0.5; }
button.chip      { cursor: pointer; }
button.chip:hover{ transform: translateY(-1px); }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ===== Doodles ===== */
.doodle {
  position: absolute;
  pointer-events: none;
}
.doodle-squiggle { top: 14px; left: -8px; width: 80px; }
.doodle-star     { top: 30px; right: 60px; width: 38px; }

/* ===== Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s, transform 0.8s;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ===== HERO ===== */
.heroPad { padding-top: 100px; padding-bottom: 60px; }
.hero-wrap { position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  margin: 0 0 44px 0;
}
.eyebrow-rule {
  width: 28px;
  height: 1px;
  background: var(--ink);
  display: inline-block;
}
.hero-title {
  font-size: clamp(54px, 8.5vw, 124px);
  margin: 0;
}
.hero-title .serif {
  font-weight: 400;
  font-style: italic;
}
.hero-stack { position: relative; display: inline-block; }
.hero-stack .sticker {
  font-family: var(--font-mono);
  font-size: 0.32em;
  vertical-align: middle;
  margin-right: 14px;
}
.hero-lede {
  font-size: 18px;
  line-height: 1.6;
  max-width: 540px;
  margin: 36px 0 0 0;
  color: #2c2c2a;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-visual {
  position: relative;
  height: 520px;
}
.blob {
  position: absolute;
  width: 380px; height: 380px;
  top: 60px; right: 0;
  background: var(--accent);
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  filter: drop-shadow(6px 6px 0 var(--ink));
}
.photo-card {
  position: absolute;
  top: 30px; right: 30px;
  width: 320px; height: 420px;
  margin: 0;
  background: var(--paper);
  border: var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-photo);
  display: grid;
  grid-template-rows: 1fr auto;
  z-index: 2;
}
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.photo-caption {
  padding: 10px 14px;
  border-top: var(--border);
  background: #fff;
  font-size: 11px;
  color: #888;
}
.sticker-card {
  position: absolute;
  padding: 10px 14px;
  z-index: 3;
}
.sticker-currently {
  left: -10px;
  bottom: 60px;
  transform: rotate(-4deg);
}
.sticker-currently-text { font-size: 14px; font-weight: 600; }
.sticker-hi {
  right: -20px;
  top: 0;
  background: var(--accent);
  transform: rotate(6deg);
  padding: 8px 12px;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: 460px; }
  .blob { width: 280px; height: 280px; right: auto; left: 50%; transform: translateX(-50%); top: 30px; }
  .photo-card { left: 50%; right: auto; transform: translateX(-50%); width: 240px; height: 320px; }
  .sticker-currently { left: 50%; right: auto; bottom: 36px; transform: translateX(-150px) rotate(-4deg); }
  .sticker-hi { left: 50%; right: auto; top: -8px; transform: translateX(110px) rotate(6deg); }
  .doodle-star, .doodle-squiggle { display: none; }
}

/* ===== MARQUEE ===== */
.marquee {
  border-top: var(--border);
  border-bottom: var(--border);
  background: var(--ink);
  color: var(--bg);
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 14px;
}
.marquee-track {
  display: inline-block;
  animation: marquee 28s linear infinite;
  will-change: transform;
}
.marquee span { padding: 0 22px; }
.marquee .dot { color: var(--accent); padding: 0 4px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== Section heads ===== */
.section-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0;
}
.section-h2 {
  font-size: clamp(38px, 5.5vw, 72px);
  margin: 8px 0 0 0;
  max-width: 900px;
}
.section-h2-stacked { margin: 8px 0 50px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}
.section-aside {
  font-size: 13px;
  max-width: 320px;
  color: #2c2c2a;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 80px;
  align-items: start;
}
.about-grid > .section-label {
  white-space: nowrap;
  padding-top: 20px;
  font-size: 12px;
}
.about-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 80px;
}
.about-body p {
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 16px 0;
}
.kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 24px;
  margin: 0;
  font-size: 15px;
}
.kv dt {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.kv dd { margin: 0; }
.kv a {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
}

/* Breathing room between the kv table and the social chips below it */
.about-body .chip-row {
  margin-top: 32px;
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .about-body { grid-template-columns: 1fr; gap: 40px; margin-top: 50px; }
  .about-body .chip-row { margin-top: 24px; }
}

/* ===== SKILLS ===== */
.skills-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: start;
}
.skill-cards { display: grid; gap: 14px; }
.skill-card { padding: 18px 22px; transition: transform 0.18s, box-shadow 0.18s; }
.skill-card:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-card-lg); }
.skill-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.skill-card-title {
  font-size: 13px;
  font-weight: 700;
  margin: 0;
}
.skill-count { font-size: 11px; color: var(--muted); }
.skill-pills { display: flex; flex-wrap: wrap; gap: 6px; }

/* Editor mock */
.editor {
  background: #14141A;
  color: #E8E8E8;
  border-radius: 14px;
  overflow: hidden;
  border: var(--border);
  box-shadow: var(--shadow-card-lg);
  font-family: var(--font-mono);
  font-size: 13px;
}
.editor .titlebar {
  background: #1d1d24;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #2a2a32;
}
.editor .dot3 {
  width: 11px; height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.editor .editor-name {
  margin-left: 10px;
  color: #888;
  font-size: 12px;
}
.editor .body {
  padding: 18px 20px;
  line-height: 1.7;
  color: #E8E8E8;
  margin: 0;
  white-space: pre-wrap;
  overflow-x: auto;
}
.editor .yel { color: #FFC93C; }
.editor .grn { color: #7BD389; }
.editor .pur { color: #B98DEC; }
.editor .gry { color: #6c6c75; }
.editor .blu { color: #6BCBEF; }
.editor .red { color: #F58D8D; }

@media (max-width: 900px) {
  .skills-grid { grid-template-columns: 1fr; }
}

/* ===== EXPERIENCE / TIMELINE ===== */
.timeline { display: grid; gap: 0; }
.role {
  display: grid;
  grid-template-columns: auto 1.2fr 1fr auto;
  gap: 32px;
  padding: 32px 0;
  border-top: var(--border);
  align-items: baseline;
}
.role:last-child { border-bottom: var(--border); }
.role-num {
  font-size: 13px;
  color: var(--muted);
  width: 50px;
}
.role-headings { min-width: 0; }
.role-company {
  font-size: 13px;
  color: var(--accent-deep);
  margin: 0;
}
.role-title {
  font-size: clamp(26px, 3.2vw, 40px);
  margin: 4px 0 0 0;
}
.role-desc {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  color: #2c2c2a;
}
.role-time {
  background: var(--accent);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .role {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
    gap: 12px 18px;
  }
  .role-num { grid-row: 1 / 4; }
  .role-headings { grid-column: 2 / 3; }
  .role-desc { grid-column: 2 / 3; }
  .role-time { grid-column: 2 / 3; justify-self: start; }
}

/* ===== WORK / PROJECTS ===== */
.filter-row { display: flex; gap: 10px; align-items: center; }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}
.project-card {
  display: block;
  padding: 0;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
  background: var(--card);
}
.project-card.tilt-l { transform: rotate(-1deg); }
.project-card.tilt-r { transform: rotate(1deg); }
.project-card:hover {
  transform: translate(-2px, -4px) rotate(0);
  box-shadow: var(--shadow-card-lg);
}
.project-thumb {
  position: relative;
  height: 220px;
  border-bottom: var(--border);
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.project-thumb-word {
  font-size: 64px;
  opacity: 0.18;
  color: var(--ink);
}
.project-meta {
  position: absolute;
  top: 14px; left: 16px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.85);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--ink);
}
.project-live {
  position: absolute;
  top: 14px; right: 16px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #28C840;
  box-shadow: 0 0 6px #28C840;
}
.project-body { padding: 24px; }
.project-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.project-title { font-size: 26px; margin: 0; }
.project-desc {
  font-size: 14px;
  line-height: 1.55;
  color: #3a3a36;
  margin: 0 0 14px 0;
}

/* ===== STATS ===== */
.stats-band {
  background: var(--ink);
  color: var(--bg);
  padding: 80px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 20px 28px;
  border-left: 1px solid #333;
}
.stat:first-child { border-left: none; }
.stat-number {
  font-size: clamp(48px, 7vw, 96px);
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  margin-top: 14px;
  opacity: 0.95;
}
.stat-sub {
  font-size: 11px;
  margin-top: 4px;
  opacity: 0.55;
}

@media (max-width: 800px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat { border-top: 1px solid #333; }
  .stat:first-child, .stat:nth-child(2) { border-top: none; }
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.service-card {
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s;
}
.service-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-card-lg);
}
.service-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.service-num {
  font-size: 38px;
  color: var(--accent-deep);
}
.service-title {
  font-size: 26px;
  margin: 0 0 10px 0;
}
.service-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #3a3a36;
  margin: 0;
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.contact-h2 {
  font-size: clamp(40px, 6vw, 86px);
  margin: 8px 0 30px 0;
  line-height: 0.95;
}
.contact-lede {
  font-size: 17px;
  line-height: 1.6;
  max-width: 420px;
  margin: 0 0 30px 0;
}
.status-card {
  margin-top: 36px;
  padding: 18px;
  background: var(--accent);
  display: inline-block;
}
.status-card p { margin: 0; font-size: 11px; }
.status-text {
  font-size: 16px;
  font-weight: 600;
  margin-top: 4px !important;
}

.contact-form { padding: 32px; }
.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  background: transparent;
  border: var(--border);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  box-shadow: 4px 4px 0 var(--accent);
}
.contact-form textarea {
  resize: vertical;
  min-height: 130px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.form-field { margin-bottom: 18px; }
.form-field:last-of-type { margin-bottom: 24px; }
.budget-row { display: flex; flex-wrap: wrap; gap: 8px; }
.budget-row .chip { padding: 6px 14px; }
.form-foot {
  font-size: 11px;
  color: var(--muted);
  margin-top: 14px;
  text-align: center;
}

.contact-success { text-align: center; padding: 60px 0; }
.contact-thanks { font-size: clamp(48px, 7vw, 110px); margin: 0; }
.contact-success-lede { font-size: 18px; max-width: 480px; margin: 24px auto 0; }
#contactReset { margin-top: 30px; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding: 60px 0 30px;
  border-top: var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-name { font-size: 36px; margin: 0; }
.footer-lede {
  font-size: 14px;
  opacity: 0.7;
  line-height: 1.6;
  margin-top: 14px;
}
.footer-h {
  font-size: 11px;
  opacity: 0.5;
  margin: 0 0 14px 0;
}
.footer-list { font-size: 14px; line-height: 2; }
.footer-list a { color: inherit; transition: color 0.15s; }
.footer-list a:hover { color: var(--accent); }
.footer-now { font-size: 14px; line-height: 1.6; margin: 0; }
.footer-bottom {
  border-top: 1px solid #2a2a28;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
}
.footer-bottom p { margin: 0; opacity: 0.6; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== Density tweak (kept for parity with the design's tweaks) ===== */
body.dense .section { padding: 60px 0 !important; }
body.dense .heroPad { padding: 40px 0 !important; }

/* ============================================================
   ===== Mobile fine-tuning =====
   Targeted overrides for tablets and phones — fixes navbar
   crowding, hero overflow, oversized vertical rhythm, form
   padding, and 4-up layouts that don't fit narrow screens.
   ============================================================ */

@media (max-width: 720px) {
  :root {
    --gutter: 20px;
    --section-pad: 64px;
  }

  /* Navbar: tighten paddings, drop the "// full-stack" comment, slim CTA */
  nav.top .row { padding: 12px var(--gutter); gap: 10px; }
  .logo { font-size: 13px; gap: 8px; }
  .logo-mark { width: 24px; height: 24px; font-size: 12px; border-radius: 5px; }
  .logo-tag { display: none; }
  .cta {
    padding: 8px 14px;
    font-size: 12px;
    gap: 6px;
    white-space: nowrap;
  }

  /* Section vertical rhythm + section heads stack */
  .section { padding: var(--section-pad) 0; }
  .heroPad { padding-top: 60px; padding-bottom: 40px; }
  .section-head { align-items: flex-start; gap: 14px; margin-bottom: 28px; }
  .section-aside { font-size: 12px; }

  /* Hero copy */
  .hero-eyebrow { font-size: 12px; margin-bottom: 18px; }
  .hero-title { font-size: clamp(40px, 11vw, 64px); }
  .hero-stack .sticker { font-size: 0.34em; padding: 2px 10px; margin-right: 10px; }
  .hero-lede { font-size: 16px; margin-top: 24px; }
  .hero-cta { gap: 10px; margin-top: 24px; }
  .btn { padding: 12px 18px; font-size: 12px; }

  /* Hero visual scales down */
  .hero-visual { height: 400px; }
  .blob { width: 240px; height: 240px; top: 20px; }
  .photo-card { width: 220px; height: 290px; top: 24px; }
  .sticker-currently { transform: translateX(-130px) rotate(-4deg); bottom: 24px; }
  .sticker-currently .mono { font-size: 10px; }
  .sticker-currently-text { font-size: 13px; }
  .sticker-hi { transform: translateX(95px) rotate(6deg); top: -6px; }
  .sticker-hi .marker { font-size: 20px; }

  /* About: label sits above the body */
  .about-grid > .section-label { padding-top: 0; font-size: 11px; }
  .about-body { gap: 28px; margin-top: 32px; }

  /* Skills */
  .skill-card { padding: 14px 16px; }
  .skill-card-title { font-size: 12px; }
  .skill-pills { gap: 5px; }
  .editor .body { padding: 14px 14px; font-size: 12px; }

  /* Project cards: less padding inside, no rotation tilt on phones */
  .project-card.tilt-l, .project-card.tilt-r { transform: none; }
  .project-thumb { height: 180px; }
  .project-thumb-word { font-size: 48px; }
  .project-body { padding: 18px; }
  .project-title { font-size: 22px; }

  /* Service cards */
  .service-card { padding: 22px; }
  .service-num { font-size: 32px; }
  .service-title { font-size: 22px; }

  /* Stats: 2 × 2 (already at 800px) but keep edges clean */
  .stats-band { padding: 56px 0; }
  .stat { padding: 16px 18px; }

  /* Contact form */
  .contact-form { padding: 22px; }
  .contact-form input, .contact-form textarea { padding: 12px 14px; font-size: 14px; }
  .contact-form label { font-size: 11px; }
  .contact-h2 { font-size: clamp(36px, 9vw, 56px); margin-bottom: 22px; }
  .contact-lede { font-size: 15px; }
  .status-card { margin-top: 24px; }

  /* Footer: 2 columns at this breakpoint, single col below */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 36px; }
  .site-footer { padding: 40px 0 20px; }
  .footer-name { font-size: 28px; }
}

@media (max-width: 480px) {
  :root { --gutter: 16px; }

  /* Hide the "available · 2026" label, keep the pulse + a tiny "open" tag */
  .cta { padding: 7px 10px; font-size: 11px; }
  .cta span:not(.pulse) { font-size: 11px; }

  /* Tighter hero */
  .hero-title { font-size: clamp(34px, 12vw, 56px); }
  .hero-visual { height: 360px; }
  .blob { width: 200px; height: 200px; top: 16px; }
  .photo-card { width: 200px; height: 260px; top: 20px; }
  .sticker-currently { transform: translateX(-118px) rotate(-4deg); bottom: 18px; padding: 8px 10px; }
  .sticker-hi { transform: translateX(82px) rotate(6deg); top: -4px; padding: 6px 10px; }
  .sticker-hi .marker { font-size: 18px; }

  /* Stats: single column on small phones */
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-left: none; border-top: 1px solid #333; padding: 18px 16px; }
  .stat:first-child { border-top: none; }
  .stat-number { font-size: clamp(40px, 14vw, 64px); }

  /* Footer: single column */
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }

  /* Buttons fit better on tiny screens */
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }

  /* Section heading scales lower */
  .section-h2 { font-size: clamp(30px, 9vw, 44px); }
}

/* Belt-and-braces: kill horizontal scroll without breaking position: sticky.
   `overflow-x: clip` clips overflow but does NOT establish a scroll container
   (which `hidden` does — and that detaches sticky from the viewport). */
html, body {
  overflow-x: hidden; /* fallback for browsers without `clip` (Chrome <90, Firefox <81, Safari <16) */
  overflow-x: clip;
}
.hero {
  overflow-x: hidden;
  overflow-x: clip;
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .pulse { animation: none; }
  .marquee-track { animation: none; }
}

/* ===== FAQ ===== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 36px;
  max-width: 920px;
}
.faq-item {
  padding: 0;
  overflow: hidden;
  background: var(--card);
}
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: background 0.18s ease;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::marker { content: ""; }
.faq-item > summary:hover { background: var(--paper); }
.faq-item > summary:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: -2px;
}
.faq-num {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.faq-q { line-height: 1.3; }
.faq-toggle {
  font-family: var(--font-mono);
  font-size: 22px;
  line-height: 1;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: var(--border);
  background: var(--bg);
  border-radius: 50%;
  transition: transform 0.25s ease, background 0.18s ease;
}
.faq-item[open] > summary { background: var(--paper); }
.faq-item[open] .faq-toggle {
  transform: rotate(45deg);
  background: var(--accent);
}
.faq-a {
  padding: 4px 22px 22px;
  border-top: 1px dashed rgba(14, 14, 12, 0.18);
}
.faq-a p {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  margin: 14px 0 0;
}
.faq-a a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.faq-a a:hover { background: var(--accent); }

@media (max-width: 720px) {
  .faq-item > summary {
    grid-template-columns: 1fr auto;
    padding: 16px 18px;
    font-size: 17px;
  }
  .faq-num { display: none; }
  .faq-a { padding: 0 18px 18px; }
}

/* ===== Color utilities (extracted from inline styles) ===== */
.dot3-red    { background: #FF5F57; }
.dot3-yellow { background: #FEBC2E; }
.dot3-green  { background: #28C840; }

.thumb-lime   { background: #C7E956; }
.thumb-coral  { background: #FF7A59; }
.thumb-violet { background: #C4B5FD; }
.thumb-sky    { background: #7DD3FC; }
.thumb-rose   { background: #F4A0A0; }
.thumb-amber  { background: #FFC93C; }

/* ===== Error pages (404 / 500 / 503 / offline) ===== */
.error-section { padding-top: 80px; }
.error-wrap { max-width: 760px; }
.error-code {
  font-size: clamp(120px, 22vw, 240px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  margin: 18px 0 14px;
  color: var(--ink);
}
.error-title {
  font-size: clamp(36px, 6.5vw, 64px);
  line-height: 1;
  margin: 0 0 22px;
}
.error-lede {
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.65;
  max-width: 60ch;
  color: var(--ink);
  margin: 0 0 28px;
}
.error-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.error-links {
  border-top: 1px dashed rgba(14, 14, 12, 0.25);
  padding-top: 22px;
  max-width: 60ch;
}
.error-links-label {
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.error-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.error-links-list a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.error-links-list a:hover { background: var(--accent); }

/* ===== Legal / Privacy pages ===== */
.legal-section { padding-top: 80px; padding-bottom: 80px; }
.legal-wrap { max-width: 760px; }
.legal-meta {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 12px 0 36px;
}
.legal-body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
}
.legal-body p { margin: 0 0 18px; }
.legal-h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.15;
  margin: 36px 0 14px;
  padding-top: 24px;
  border-top: 1px dashed rgba(14, 14, 12, 0.18);
}
.legal-list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.legal-list li {
  position: relative;
  padding-left: 22px;
  margin: 0 0 10px;
}
.legal-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-deep);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.75;
}
.legal-body code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--paper);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(14, 14, 12, 0.12);
}
.legal-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.legal-body a:hover { background: var(--accent); }
.legal-back {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 48px;
}

@media (max-width: 720px) {
  .error-code { margin: 8px 0 10px; }
  .error-cta { flex-direction: column; align-items: stretch; }
  .error-cta .btn { justify-content: center; }
  .legal-h2 { font-size: 22px; padding-top: 18px; margin-top: 28px; }
}

/* ===== Print ===== */
@media print {
  body { background: white; color: black; }
  .cursor-dot, .marquee, nav.top, .blob, .doodle, .sticker-card { display: none !important; }
  .section { padding: 20px 0; break-inside: avoid; }
  .faq-item { break-inside: avoid; }
  .faq-item .faq-a { display: block !important; }
  .faq-toggle { display: none; }
  .error-cta, .legal-back { display: none; }
}
