/* ==========================================================
   Hardik Mittal — portfolio
   Bold & playful bento. Light/dark via data-theme or system.
   ========================================================== */

:root {
  --bg: #F6F1E7;
  --surface: #FFFDF8;
  --ink: #151515;
  --muted: #55524C;
  --line: #151515;
  --shadow: #151515;
  --chip: #EEE7D8;

  --tomato: #FF6B4A;
  --lime: #C8F560;
  --lilac: #C3B5FF;
  --sky: #8ED1FF;
  --sun: #FFD250;
  --mint: #7EE2B8;
  --pink: #FFB3D1;
  --on-color: #151515;

  --radius: 26px;
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111111;
    --surface: #1B1B1C;
    --ink: #F3EEE3;
    --muted: #B3AEA4;
    --line: #F3EEE3;
    --shadow: #F3EEE3;
    --chip: #2A2A2B;
  }
}
:root[data-theme="dark"] {
  --bg: #111111;
  --surface: #1B1B1C;
  --ink: #F3EEE3;
  --muted: #B3AEA4;
  --line: #F3EEE3;
  --shadow: #F3EEE3;
  --chip: #2A2A2B;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--body);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--tomato); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 14px; z-index: 50;
  display: flex; justify-content: center; margin-top: 14px; pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  display: flex; align-items: center; gap: 4px;
  background: var(--surface); border: 2px solid var(--line); border-radius: 999px;
  padding: 6px; box-shadow: 3px 3px 0 var(--shadow);
}
.nav a, .nav button {
  font: 600 14px/1 var(--body); color: var(--ink); text-decoration: none;
  padding: 10px 14px; border-radius: 999px; border: 0; background: none; cursor: pointer;
}
.nav a:hover, .nav button:hover { background: var(--chip); }
.nav .logo { font-family: var(--display); font-weight: 800; background: var(--ink); color: var(--bg); }
.nav .logo:hover { background: var(--ink); }
.theme-toggle { font-size: 16px !important; }

/* ---------- Tiles ---------- */
.tile {
  position: relative;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--shadow);
  padding: 24px;
  overflow: hidden;
  transition: transform .18s cubic-bezier(.3,1.6,.5,1), box-shadow .18s ease;
}
.tile.hoverable:hover { transform: translate(-3px, -3px) rotate(-.4deg); box-shadow: 7px 7px 0 var(--shadow); }
.tile.c-tomato { background: var(--tomato); color: var(--on-color); }
.tile.c-lime   { background: var(--lime);   color: var(--on-color); }
.tile.c-lilac  { background: var(--lilac);  color: var(--on-color); }
.tile.c-sky    { background: var(--sky);    color: var(--on-color); }
.tile.c-sun    { background: var(--sun);    color: var(--on-color); }
.tile.c-mint   { background: var(--mint);   color: var(--on-color); }
.tile.c-pink   { background: var(--pink);   color: var(--on-color); }
.tile.c-ink    { background: var(--ink);    color: var(--bg); }
.tile [class^="c-"] .muted, .tile.c-tomato .muted, .tile.c-lime .muted, .tile.c-lilac .muted,
.tile.c-sky .muted, .tile.c-sun .muted, .tile.c-mint .muted, .tile.c-pink .muted { color: rgba(21,21,21,.72); }

.kicker {
  font: 600 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.dot.live { background: #21C55D; box-shadow: 0 0 0 0 rgba(33,197,93,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(33,197,93,0); } 100% { box-shadow: 0 0 0 0 rgba(33,197,93,0); } }

.muted { color: var(--muted); }

/* ---------- Hero bento ---------- */
.bento {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px;
  margin: 40px 0 0;
}
.hero { grid-column: span 8; grid-row: span 2; min-height: 430px; display: flex; flex-direction: column; justify-content: space-between; }
.hero h1 {
  font: 800 clamp(48px, 7.4vw, 96px)/.92 var(--display);
  letter-spacing: -0.035em; margin: 8px 0 18px; position: relative; z-index: 1;
}
.hero h1 .wave { display: inline-block; transform-origin: 70% 70%; cursor: pointer; }
.hero h1 .wave:hover, .hero h1 .wave.go { animation: wave 1.2s ease; }
@keyframes wave { 0%,60%,100% { transform: rotate(0); } 10%,30% { transform: rotate(14deg); } 20% { transform: rotate(-8deg); } 40% { transform: rotate(-4deg); } 50% { transform: rotate(10deg); } }
.hero .lede { font-size: clamp(17px, 1.6vw, 21px); max-width: 34ch; margin: 0; position: relative; z-index: 1; }
.hero .lede strong { white-space: nowrap; background: var(--lime); color: var(--on-color); padding: 0 6px; border-radius: 6px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; position: relative; z-index: 1; }

.blob {
  position: absolute; border-radius: 50%; filter: blur(42px); opacity: .55; z-index: 0; pointer-events: none;
}
.blob.b1 { width: 320px; height: 320px; background: var(--tomato); right: -60px; top: -80px; }
.blob.b2 { width: 260px; height: 260px; background: var(--lilac); right: 140px; bottom: -120px; }
.blob.b3 { width: 200px; height: 200px; background: var(--sun); right: -40px; bottom: 40px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 15px/1 var(--body); text-decoration: none; cursor: pointer;
  padding: 14px 18px; border-radius: 14px; border: 2px solid var(--line);
  background: var(--surface); color: var(--ink); box-shadow: 3px 3px 0 var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--shadow); }
.btn:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--shadow); }
.btn.primary { background: var(--ink); color: var(--bg); }

.sticker { grid-column: span 4; display: grid; place-items: center; min-height: 207px; }
.sticker .ring { width: 170px; height: 170px; position: relative; cursor: pointer; }
.sticker .ring svg.text { position: absolute; inset: 0; animation: spin 16s linear infinite; }
.sticker .ring .mono {
  position: absolute; inset: 34px; border-radius: 50%; background: var(--ink); color: var(--tomato);
  display: grid; place-items: center; font: 800 38px/1 var(--display); letter-spacing: -0.04em;
  transition: transform .3s cubic-bezier(.3,1.6,.5,1);
}
.sticker .ring:hover .mono { transform: scale(1.08) rotate(-8deg); }
@keyframes spin { to { transform: rotate(360deg); } }

.now { grid-column: span 4; min-height: 207px; }
.now h2 { font: 800 26px/1.05 var(--display); margin: 0 0 10px; letter-spacing: -0.02em; }
.now p { margin: 0; }

.mini { grid-column: span 3; min-height: 168px; display: flex; flex-direction: column; justify-content: space-between; }
.big-num { font: 800 clamp(40px, 4.4vw, 56px)/1 var(--display); letter-spacing: -0.04em; }
.mini p { margin: 6px 0 0; font-size: 14px; }

.clock-time { font: 800 clamp(34px, 3.6vw, 46px)/1 var(--display); letter-spacing: -0.03em; }

.socials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.socials a, .socials span {
  display: grid; place-items: center; aspect-ratio: 1; border-radius: 14px;
  border: 2px solid var(--line); background: var(--surface); color: var(--ink);
  font: 700 13px/1 var(--mono); text-decoration: none; transition: transform .15s ease, background .15s ease;
}
.socials a:hover { transform: translateY(-3px) rotate(-3deg); background: var(--lime); color: var(--on-color); }
.socials .todo { border-style: dashed; opacity: .55; cursor: help; }

/* ---------- Sections ---------- */
section.block { margin-top: 110px; scroll-margin-top: 90px; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h2 {
  font: 800 clamp(38px, 5.2vw, 64px)/.95 var(--display); letter-spacing: -0.035em; margin: 0;
}
.section-head h2 .hl { display: inline-block; background: var(--sun); color: var(--on-color); padding: 0 12px; border-radius: 14px; transform: rotate(-2deg); border: 2px solid var(--line); }
.section-head p { margin: 0; max-width: 42ch; color: var(--muted); font-size: 17px; }

/* ---------- Impact cards ---------- */
.impact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.case { display: flex; flex-direction: column; min-height: 300px; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.case .num { font: 800 clamp(48px, 5vw, 68px)/.95 var(--display); letter-spacing: -0.045em; }
.case .num-label { font: 600 13px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .04em; margin: 6px 0 auto; }
.case h3 { font: 800 24px/1.1 var(--display); margin: 26px 0 6px; letter-spacing: -0.02em; }
.case p { margin: 0 0 18px; font-size: 15px; }
.case .more { font: 700 14px/1 var(--body); display: inline-flex; gap: 6px; align-items: center; }
.case:hover .more .arr { transform: translateX(4px); }
.arr { transition: transform .2s ease; display: inline-block; }

/* ---------- Dialog ---------- */
dialog {
  border: 2px solid var(--line); border-radius: 28px; padding: 0; width: min(720px, calc(100% - 32px));
  max-height: calc(100vh - 48px); background: var(--surface); color: var(--ink);
  box-shadow: 8px 8px 0 var(--shadow);
}
dialog::backdrop { background: rgba(17,17,17,.55); backdrop-filter: blur(4px); }
dialog[open] { animation: pop .28s cubic-bezier(.3,1.5,.5,1); }
@keyframes pop { from { transform: translateY(24px) scale(.96); opacity: 0; } }
.dlg-head { padding: 28px 28px 22px; border-bottom: 2px solid var(--line); position: relative; }
.dlg-head .num { font: 800 54px/1 var(--display); letter-spacing: -0.04em; }
.dlg-head h3 { font: 800 30px/1.05 var(--display); margin: 10px 0 0; letter-spacing: -0.02em; }
.dlg-body { padding: 24px 28px 30px; overflow: auto; }
.dlg-body h4 { font: 700 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; margin: 22px 0 8px; color: var(--muted); }
.dlg-body h4:first-child { margin-top: 0; }
.dlg-body p { margin: 0; font-size: 16px; }
.dlg-body ul { margin: 0; padding-left: 18px; }
.dlg-body ul.chips { padding-left: 0; }
.dlg-body li { margin: 4px 0; }
.dlg-close {
  position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid var(--line); background: var(--surface); color: var(--ink); font: 700 18px/1 var(--body); cursor: pointer;
}
.dlg-close:hover { background: var(--lime); color: var(--on-color); }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chips li, .chip {
  font: 600 12px/1 var(--mono); padding: 7px 10px; border-radius: 999px;
  background: var(--chip); color: var(--ink); border: 1.5px solid transparent;
}
.tile[class*="c-"] .chips li { background: rgba(255,255,255,.55); color: var(--on-color); }

/* ---------- Projects ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filters button {
  font: 700 14px/1 var(--body); padding: 11px 16px; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--line); background: var(--surface); color: var(--ink);
  transition: transform .15s ease;
}
.filters button:hover { transform: translateY(-2px); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.filters .count { opacity: .6; margin-left: 4px; font-family: var(--mono); font-size: 12px; }

.projects { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.proj { display: flex; flex-direction: column; min-height: 270px; padding: 20px; }
.proj[hidden] { display: none; }
.proj .top { display: flex; justify-content: space-between; align-items: start; margin-bottom: 18px; }
.proj .icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 26px;
  border: 2px solid var(--line); background: var(--bg);
}
.proj .meta { text-align: right; font: 600 12px/1.5 var(--mono); }
.status { display: inline-block; padding: 4px 8px; border-radius: 999px; border: 1.5px solid currentColor; font: 700 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.status.live { background: #21C55D; color: #0B2E17; border-color: #0B2E17; }
.proj h3 { font: 800 20px/1.1 var(--display); margin: 0 0 6px; letter-spacing: -0.015em; }
.proj p { margin: 0 0 16px; font-size: 14.5px; color: var(--muted); }
.proj[class*="c-"] p { color: rgba(21,21,21,.75); }
.proj .chips { margin-top: auto; }
.proj .link { position: absolute; top: 20px; right: 20px; }
.proj a.ext {
  margin-top: 14px; font: 700 13px/1 var(--body); text-decoration: none; display: inline-flex; gap: 6px;
  align-self: flex-start; border-bottom: 2px solid currentColor; padding-bottom: 2px;
}

.proj.cta { grid-column: span 2; justify-content: space-between; text-decoration: none; }
.proj.cta h3 { font-size: clamp(30px, 3.4vw, 44px); line-height: .98; letter-spacing: -0.03em; margin: 0; }
.proj.cta p { color: inherit; opacity: .75; margin: 12px 0 0; font-size: 16px; }
.proj.cta .go { font: 800 18px/1 var(--display); display: inline-flex; gap: 8px; align-items: center; margin-top: 24px; }
.proj.cta:hover .arr { transform: translateX(6px); }
@media (max-width: 640px) { .proj.cta { grid-column: span 1; } }

/* ---------- Path / timeline ---------- */
.path { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 2px; background: var(--line); opacity: .25; }
.timeline li { position: relative; padding: 0 0 26px 44px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .node {
  position: absolute; left: 0; top: 2px; width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--line); background: var(--sun); display: grid; place-items: center; font-size: 13px;
}
.timeline .when { font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.timeline h3 { font: 800 21px/1.15 var(--display); margin: 6px 0 4px; letter-spacing: -0.015em; }
.timeline p { margin: 0; font-size: 15px; color: var(--muted); }
.promo {
  display: inline-block; margin-top: 8px; font: 700 12px/1 var(--mono); padding: 6px 10px; border-radius: 999px;
  background: var(--lime); color: var(--on-color); border: 1.5px solid var(--line);
}
.lead-list { display: grid; gap: 12px; }
.lead { padding: 18px 20px; }
.lead h3 { font: 800 18px/1.15 var(--display); margin: 0 0 4px; }
.lead p { margin: 0; font-size: 14.5px; }
.lead .when { font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; opacity: .75; }

/* ---------- Toolbox marquee ---------- */
.marquee { overflow: hidden; border-block: 2px solid var(--line); padding: 18px 0; background: var(--surface); }
.marquee + .marquee { border-top: 0; }
.track { display: flex; gap: 12px; width: max-content; animation: scroll 46s linear infinite; }
.marquee.rev .track { animation-direction: reverse; animation-duration: 52s; }
.marquee:hover .track { animation-play-state: paused; }
.track span {
  font: 700 18px/1 var(--display); padding: 12px 18px; border-radius: 999px; border: 2px solid var(--line); white-space: nowrap;
}
.track span:nth-child(6n+1) { background: var(--lime); color: var(--on-color); }
.track span:nth-child(6n+2) { background: var(--surface); }
.track span:nth-child(6n+3) { background: var(--lilac); color: var(--on-color); }
.track span:nth-child(6n+4) { background: var(--surface); }
.track span:nth-child(6n+5) { background: var(--sky); color: var(--on-color); }
.track span:nth-child(6n)   { background: var(--sun); color: var(--on-color); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Off the clock ---------- */
.offclock { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.offclock .tile h3 { font: 800 24px/1.1 var(--display); margin: 0 0 8px; letter-spacing: -0.02em; }
.offclock .tile p { margin: 0; font-size: 15px; }
.offclock .emoji { font-size: 40px; margin-bottom: 18px; display: inline-block; transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.offclock .tile:hover .emoji { transform: rotate(-12deg) scale(1.15); }
.oc-a { grid-column: span 5; } .oc-b { grid-column: span 4; } .oc-c { grid-column: span 3; }
.oc-d { grid-column: span 3; } .oc-e { grid-column: span 4; } .oc-f { grid-column: span 5; }
.eq { display: flex; gap: 4px; align-items: end; height: 26px; margin-top: 16px; }
.eq i { width: 6px; background: var(--on-color); border-radius: 3px; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.2s; } .eq i:nth-child(3) { animation-delay: -.5s; }
.eq i:nth-child(4) { animation-delay: -.7s; } .eq i:nth-child(5) { animation-delay: -.35s; }
@keyframes eq { 0%,100% { height: 6px; } 50% { height: 26px; } }

/* ---------- Contact ---------- */
.contact { margin-top: 110px; padding: clamp(28px, 5vw, 56px); text-align: left; }
.contact h2 { font: 800 clamp(44px, 7vw, 96px)/.92 var(--display); letter-spacing: -0.04em; margin: 0 0 18px; }
.contact p { font-size: 19px; max-width: 46ch; margin: 0 0 28px; }
.contact .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.contact .btn { background: var(--surface); color: var(--ink); }
.contact .btn.primary { background: var(--on-color); color: var(--lime); }
.socials-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.socials-row a, .socials-row span {
  font: 700 14px/1 var(--mono); padding: 11px 14px; border-radius: 999px; border: 2px solid var(--on-color);
  text-decoration: none; color: var(--on-color); background: rgba(255,255,255,.4);
}
.socials-row a:hover { background: var(--on-color); color: var(--lime); }
.socials-row .todo { border-style: dashed; opacity: .6; cursor: help; }

footer { padding: 40px 0 60px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--muted); font: 500 13px/1.4 var(--mono); }

/* ---------- Agent mode ---------- */
.agent-toggle[aria-pressed="true"] { background: var(--lime) !important; color: var(--on-color) !important; }
.agent {
  position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column;
  background: #0D0E0D; color: #D9E0D6; font: 14px/1.65 var(--mono);
}
.agent[hidden] { display: none; }
.agent-bar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid #2A2E29; background: #121411;
}
.agent-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.agent-title strong { color: #C8F560; font-weight: 700; }
.agent-sub { color: #8D9689; font-size: 13px; }
.agent-sub code { color: #D9E0D6; }
.agent-dot { width: 10px; height: 10px; border-radius: 50%; background: #C8F560; box-shadow: 0 0 12px #C8F560; }
.agent-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.agent-actions a, .agent-actions button {
  font: 600 13px/1 var(--mono); color: #D9E0D6; text-decoration: none; cursor: pointer;
  padding: 9px 12px; border-radius: 8px; border: 1px solid #343A33; background: #181B17;
}
.agent-actions a:hover, .agent-actions button:hover { border-color: #C8F560; color: #C8F560; }
.agent-actions .agent-close { background: #C8F560; color: #151515; border-color: #C8F560; }
.agent-actions .agent-close:hover { color: #151515; filter: brightness(1.08); }
.agent-body {
  flex: 1; margin: 0; overflow: auto; padding: 28px max(20px, calc((100vw - 880px) / 2)) 80px;
  white-space: pre-wrap; word-break: break-word; tab-size: 2;
}
.agent-body .h1 { color: #C8F560; font-weight: 700; font-size: 1.15em; }
.agent-body .h2 { color: #8ED1FF; font-weight: 700; }
.agent-body .h3 { color: #FFD250; font-weight: 700; }
.agent-body .q { color: #C3B5FF; }
.agent-body .li { color: #D9E0D6; }
.agent-body .tb { color: #9AA596; }
.agent-body a { color: #7EE2B8; }
.agent-body::selection, .agent-body *::selection { background: #C8F560; color: #151515; }
body.agent-open { overflow: hidden; }
.agent-body:focus { outline: none; }

/* ---------- Toast & confetti ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 120px); z-index: 100;
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; font: 700 14px/1 var(--body);
  transition: transform .3s cubic-bezier(.3,1.5,.5,1);
}
.toast.show { transform: translate(-50%, 0); }
.confetti { position: fixed; pointer-events: none; z-index: 120; font-size: 22px; will-change: transform, opacity; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero { grid-column: span 12; min-height: 0; }
  .sticker, .now { grid-column: span 6; }
  .mini { grid-column: span 6; }
  .impact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .path { grid-template-columns: minmax(0, 1fr); }
  .oc-a, .oc-b, .oc-c, .oc-d, .oc-e, .oc-f { grid-column: span 6; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .bento, .offclock { gap: 12px; }
  .sticker, .now { grid-column: span 12; }
  .mini { grid-column: span 6; min-height: 150px; padding: 18px; }
  .impact, .projects { grid-template-columns: minmax(0, 1fr); }
  .case { min-height: 0; }
  .case h3 { margin-top: 22px; }
  .proj { min-height: 0; }
  .sticker { min-height: 0; padding: 18px; }
  .oc-a, .oc-b, .oc-c, .oc-d, .oc-e, .oc-f { grid-column: span 12; }
  .tile { padding: 20px; border-radius: 22px; }
  .nav a.hide-sm { display: none; }
  .agent-label { display: none; }
  .agent-sub { display: none; }
  .agent-bar { padding: 12px 14px; }
  .agent-body { font-size: 13px; padding: 20px 16px 60px; }
  section.block { margin-top: 80px; }
  .contact { margin-top: 80px; }
  .socials { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dlg-head, .dlg-body { padding-left: 20px; padding-right: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
