/* ============================================================
   Neeraj Sihag, portfolio
   Tokens → base → components. Dark by default, light supported.
   ============================================================ */
:root {
  --bg: #06080b;
  --bg-2: #0b0f14;
  --panel: rgba(18, 24, 32, .62);
  --line: rgba(148, 163, 184, .14);
  --line-2: rgba(148, 163, 184, .28);
  --fg: #e7edf3;
  --fg-2: #9aa7b4;
  --fg-3: #5f6b78;
  --accent: #37f29b;
  --accent-ink: #04140c;
  --accent-soft: rgba(55, 242, 155, .12);
  --warn: #ffb547;
  --danger: #ff5d6c;
  --glow: 0 0 0 1px rgba(55,242,155,.35), 0 10px 40px -10px rgba(55,242,155,.35);
  --radius: 18px;
  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) {
  --bg: #f4f2ec;
  --bg-2: #ebe8df;
  --panel: rgba(255, 255, 255, .7);
  --line: rgba(15, 23, 42, .12);
  --line-2: rgba(15, 23, 42, .24);
  --fg: #0d1117;
  --fg-2: #48525e;
  --fg-3: #8a929c;
  --accent: #0a8f55;
  --accent-ink: #f4fff9;
  --accent-soft: rgba(10, 143, 85, .1);
  --glow: 0 0 0 1px rgba(10,143,85,.35), 0 10px 40px -14px rgba(10,143,85,.35);
  color-scheme: light;
} }
:root[data-theme="light"] {
  --bg: #f4f2ec;
  --bg-2: #ebe8df;
  --panel: rgba(255, 255, 255, .7);
  --line: rgba(15, 23, 42, .12);
  --line-2: rgba(15, 23, 42, .24);
  --fg: #0d1117;
  --fg-2: #48525e;
  --fg-3: #8a929c;
  --accent: #0a8f55;
  --accent-ink: #f4fff9;
  --accent-soft: rgba(10, 143, 85, .1);
  --glow: 0 0 0 1px rgba(10,143,85,.35), 0 10px 40px -14px rgba(10,143,85,.35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .4s ease, color .4s ease;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.mono { font-family: var(--mono); }
.accent { color: var(--accent); }
.dim { color: var(--fg-3); }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ============ NAV ============ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 80; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter); transition: background-color .3s, border-color .3s, transform .4s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font: 700 12px var(--mono); }
.brand-name { font-family: var(--mono); font-size: 14px; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); backdrop-filter: blur(10px); }
.nav-links a { display: block; padding: 7px 14px; border-radius: 999px; font-size: 14px; color: var(--fg-2); transition: color .2s, background-color .2s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--fg); background: var(--accent-soft); }
.nav-links a.is-active { color: var(--accent); }
.nav-actions { display: flex; gap: 8px; }
.kbd-btn, .icon-btn { height: 36px; min-width: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 2px;
  border: 1px solid var(--line-2); border-radius: 10px; font: 500 12px var(--mono); color: var(--fg-2); background: var(--panel); transition: color .2s, border-color .2s; }
.kbd-btn:hover, .icon-btn:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ============ HERO ============ */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 120px 0 80px; overflow: hidden; isolation: isolate; }
#net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 50% at 20% 40%, transparent 0%, var(--bg) 100%), linear-gradient(to bottom, transparent 70%, var(--bg)); }
.status-pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border: 1px solid var(--line-2); border-radius: 999px;
  font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--fg-2); background: var(--panel); backdrop-filter: blur(8px); }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; flex: none; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--accent); animation: ping 1.8s cubic-bezier(0,0,.2,1) infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
.hero-title { margin: 28px 0 24px; font-weight: 600; font-size: clamp(44px, 8.4vw, 124px); line-height: .95; letter-spacing: -.045em; max-width: 12ch; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .word { display: inline-block; will-change: transform; }
.hero-sub { max-width: 560px; color: var(--fg-2); font-size: clamp(16px, 1.4vw, 19px); margin: 0 0 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 22px; border-radius: 999px; font-weight: 500; font-size: 15px; transition: background-color .25s, color .25s, border-color .25s, box-shadow .25s; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { box-shadow: var(--glow); }
.btn-ghost { border: 1px solid var(--line-2); background: var(--panel); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Hero layout: text and status panel share a grid, so they can never overlap */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: end; }
.hero-inner { min-width: 0; }
.hud { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); overflow: hidden; font-size: 13px; }
.hud-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hud { max-width: 520px; }
}
.hud-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 600 11px var(--mono); letter-spacing: .1em; color: var(--fg-2); }
.hud-head .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.hud-clock { margin-left: auto; font-weight: 400; color: var(--fg-3); }
.hud-grid { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.hud-grid > div { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.hud-grid > div:nth-child(odd) { border-right: 1px solid var(--line); }
.hud-grid dt { font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--fg-3); }
.hud-grid dd { margin: 4px 0 0; font: 600 26px var(--sans); letter-spacing: -.03em; }
.hud-grid dd.small { font-size: 13px; font-weight: 500; letter-spacing: 0; line-height: 1.35; color: var(--fg-2); }
/* ============ SECTIONS ============ */
.section { padding-top: clamp(96px, 14vw, 180px); }
.sec-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 48px; }
.sec-idx { font-size: 12px; color: var(--accent); letter-spacing: .1em; }
.sec-title { margin: 0; font-size: clamp(32px, 4.6vw, 60px); font-weight: 600; letter-spacing: -.035em; line-height: 1; }
.sec-rule { flex: 1; height: 1px; background: var(--line-2); transform-origin: left; }
.sec-note { color: var(--fg-3); font-size: 13px; margin: -24px 0 32px; }

/* about */
.about-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-lead { margin: 0; font-size: clamp(24px, 2.8vw, 38px); line-height: 1.25; letter-spacing: -.02em; font-weight: 500; }
.about-lead .w { display: inline-block; opacity: .16; transition: none; }
.about-body p { color: var(--fg-2); margin: 0 0 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 28px 0 0; }
.tags li { padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; font: 500 12px var(--mono); color: var(--fg-2); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* spotlight cards */
.spot { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; isolation: isolate; transition: border-color .3s; }
.spot::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--accent-soft), transparent 60%); }
.spot:hover { border-color: var(--line-2); }
.spot:hover::before { opacity: 1; }

.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cap { padding: 26px 24px 28px; min-height: 320px; display: flex; flex-direction: column; }
.cap-top { display: flex; justify-content: space-between; margin-bottom: auto; }
.cap-tag { font-size: 11px; letter-spacing: .12em; color: var(--accent); display: inline-flex; align-items: center; gap: 8px; }
.cap h3 { margin: 80px 0 10px; font-size: 24px; letter-spacing: -.02em; font-weight: 600; }
.cap p { margin: 0; color: var(--fg-2); font-size: 15px; }
.cap-ico { position: absolute; top: 58px; left: 24px; width: 44px; height: 44px; fill: none; stroke: var(--fg-3); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s, transform .4s; }
.cap:hover .cap-ico { stroke: var(--accent); transform: rotate(-6deg) scale(1.06); }
@media (max-width: 1100px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cap-grid { grid-template-columns: 1fr; } .cap { min-height: 0; } }

/* matrix */
.matrix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tactic { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.tactic-h { margin: 0; padding: 16px 18px; font-size: 15px; font-weight: 600; background: var(--accent-soft); border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; }
.tactic-h .mono { font-size: 11px; color: var(--accent); font-weight: 500; }
.tactic ul { list-style: none; margin: 0; padding: 8px; display: grid; gap: 6px; }
.tactic li { position: relative; padding: 11px 14px 11px 32px; border: 1px solid var(--line); border-radius: 10px; font: 500 13.5px var(--mono); color: var(--fg-2); transition: color .2s, border-color .2s, background-color .2s, translate .2s; cursor: default; }
.tactic li::before { content: ""; position: absolute; left: 13px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 2px; background: var(--fg-3); transition: background-color .2s, box-shadow .2s; }
.tactic li:hover { color: var(--fg); border-color: var(--accent); background: var(--accent-soft); translate: 4px 0; }
.tactic li:hover::before { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
@media (max-width: 860px) { .matrix { grid-template-columns: 1fr; } }

/* projects */
.proj-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin: -24px 0 28px; }
.proj-bar .sec-note { margin: 0; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; font: 500 12px var(--mono); color: var(--fg-2); transition: color .2s, background-color .2s, border-color .2s; }
.chip:hover { color: var(--fg); }
.chip.is-on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.cases { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.case { grid-column: span 4; padding: 24px; min-height: 240px; display: flex; flex-direction: column; transform-style: preserve-3d; will-change: transform; }
.case.feat { grid-column: span 6; min-height: 340px; }
.case.is-out { display: none; }
.case-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; font: 600 10.5px var(--mono); letter-spacing: .12em; }
.badge.live { color: var(--accent); background: var(--accent-soft); }
.badge.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.badge.stealth { color: var(--warn); background: rgba(255,181,71,.1); }
.case h3 { margin: 0 0 8px; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.025em; font-weight: 600; }
.case.feat h3 { font-size: clamp(28px, 3vw, 40px); }
.case p { margin: 0 0 20px; color: var(--fg-2); font-size: 15px; }
.case-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.case-stack { display: flex; gap: 6px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.case-stack li { font: 500 11px var(--mono); padding: 4px 9px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--fg-2); }
.case-link { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; transition: all .25s; }
.case:hover .case-link { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: rotate(-45deg); }
.case-note { font: 11.5px var(--mono); color: var(--accent); margin: -8px 0 18px; }
@media (max-width: 1100px) { .case, .case.feat { grid-column: span 6; } }
@media (max-width: 700px) { .case, .case.feat { grid-column: span 12; min-height: 0; } }

/* talk / now */
.talk-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.talk, .now { padding: clamp(24px, 3vw, 40px); }
.talk-title { margin: 18px 0 14px; font-size: clamp(26px, 3.2vw, 44px); line-height: 1.08; letter-spacing: -.03em; font-weight: 600; }
.talk p { margin: 0; color: var(--fg-2); max-width: 560px; }
.now-text { margin: 18px 0 0; font-size: clamp(20px, 2vw, 26px); line-height: 1.35; letter-spacing: -.015em; }
.now-text em { font-style: normal; color: var(--accent); }
@media (max-width: 860px) { .talk-grid { grid-template-columns: 1fr; } }

/* contact */
.contact { padding-bottom: 100px; text-align: center; }
.contact .sec-idx { display: block; margin-bottom: 20px; }
.contact-title { margin: 0; font-size: clamp(64px, 15vw, 220px); line-height: .9; letter-spacing: -.06em; font-weight: 600; }
.contact-title .ch { display: inline-block; }
.contact-sub { color: var(--fg-2); max-width: 520px; margin: 28px auto 40px; }
.contact-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.mail { display: inline-flex; align-items: center; gap: 14px; height: 56px; padding: 0 8px 0 24px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 15px; transition: box-shadow .25s; }
.mail:hover { box-shadow: var(--glow); }
.mail-act { padding: 8px 14px; border-radius: 999px; background: rgba(0,0,0,.16); font-size: 12px; }
.social { display: inline-flex; align-items: center; height: 56px; padding: 0 24px; border: 1px solid var(--line-2); border-radius: 999px; transition: color .25s, border-color .25s; }
.social:hover { border-color: var(--accent); color: var(--accent); }
.pgp { margin-top: 36px; font-size: 12px; color: var(--fg-3); }
.pgp a { color: var(--fg-2); text-decoration: underline; text-underline-offset: 3px; }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; padding-bottom: 32px; border-top: 1px solid var(--line); font-size: 13px; color: var(--fg-2); }
kbd { font: 11px var(--mono); padding: 2px 6px; border: 1px solid var(--line-2); border-radius: 5px; }

/* ============ PALETTE ============ */
.palette, .term { position: fixed; inset: 0; z-index: 140; display: grid; place-items: start center; padding: 12vh 16px 16px; background: rgba(2,4,6,.6); backdrop-filter: blur(6px); }
.palette[hidden], .term[hidden] { display: none; }
.palette-box { width: min(620px, 100%); border: 1px solid var(--line-2); border-radius: 16px; background: var(--bg-2); box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); overflow: hidden; }
#paletteInput { width: 100%; padding: 18px 20px; font: 16px var(--sans); background: transparent; color: var(--fg); border: 0; border-bottom: 1px solid var(--line); outline: none; }
#paletteList { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow: auto; }
#paletteList li { display: flex; justify-content: space-between; align-items: center; padding: 11px 12px; border-radius: 10px; cursor: pointer; font-size: 14.5px; }
#paletteList li small { font: 11px var(--mono); color: var(--fg-3); }
#paletteList li[aria-selected="true"] { background: var(--accent-soft); color: var(--accent); }
.palette-foot { display: flex; gap: 18px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 11px; color: var(--fg-3); }

/* ============ TERMINAL ============ */
.term-win { width: min(760px, 100%); height: min(480px, 70vh); display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: 14px; background: #05070a; color: #cfe3d8; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(55,242,155,.08); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid rgba(148,163,184,.14); }
.tl { width: 12px; height: 12px; border-radius: 50%; } .tl.r { background: #ff5f57; } .tl.y { background: #febc2e; } .tl.g { background: #28c840; }
.term-title { flex: 1; text-align: center; font-size: 12px; color: #6b7a86; }
.term-x { color: #6b7a86; font-size: 14px; padding: 0 4px; } .term-x:hover { color: #fff; }
.term-body { flex: 1; overflow: auto; padding: 14px 16px 4px; font-size: 13px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.term-body .c { color: #37f29b; } .term-body .m { color: #6b7a86; } .term-body .w { color: #ffb547; } .term-body .e { color: #ff5d6c; }
.term-body a { color: #37f29b; text-decoration: underline; }
.term-input { display: flex; gap: 10px; padding: 8px 16px 14px; font-size: 13px; }
.term-input label { color: #37f29b; flex: none; }
.term-input input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: #e7edf3; font: inherit; caret-color: #37f29b; }

/* ============ MOTION PREFS ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .about-lead .w { opacity: 1 !important; }
}

/* stealth projects read as placeholders, not finished cards */
.case.is-stealth { border-style: dashed; background: transparent; }
.case.is-stealth h3 { color: var(--fg-2); }

/* ============ INPUT-TYPE HELPERS ============ */
.touch-only { display: none; }
@media (hover: none), (pointer: coarse) {
  .kbd-only { display: none !important; }
  .touch-only { display: inline; }
}

/* ============ PHONES ============ */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { padding-top: 12px; padding-bottom: 12px; }
  .kbd-btn { padding: 0 14px; font-family: var(--sans); font-size: 13px; }

  .hero { min-height: auto; padding: 104px 0 56px; }
  .hero::after { background: linear-gradient(to bottom, transparent 60%, var(--bg)); }
  .status-pill { font-size: 11px; padding: 6px 12px 6px 10px; }
  .hero-title { font-size: clamp(40px, 12.5vw, 60px); margin: 22px 0 18px; letter-spacing: -.04em; }
  .hero-sub { margin-bottom: 28px; }
  .hero-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-cta .btn { justify-content: center; padding: 0 12px; height: 48px; }
  .hud-grid dd { font-size: 22px; }

  .section { padding-top: 80px; }
  .sec-head { gap: 12px; margin-bottom: 28px; }
  .sec-note { margin: -12px 0 24px; }
  .about-lead { font-size: 22px; }
  .about-lead .w { opacity: .3; }

  .cap { min-height: 0; padding: 22px 20px; }
  .cap-ico { position: static; order: 1; width: 32px; height: 32px; margin: 16px 0 12px; }
  .cap h3 { order: 2; margin: 0 0 8px; font-size: 21px; }
  .cap p { order: 3; }

  /* stack: compact wrapping chips instead of 18 full-width rows */
  .tactic-h { padding: 13px 16px; font-size: 14px; }
  .tactic ul { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; }
  .tactic li { padding: 7px 11px; font-size: 12px; border-radius: 8px; }
  .tactic li::before { display: none; }

  .proj-bar { margin: -12px 0 20px; flex-direction: column; align-items: flex-start; }
  .filters { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); }
  .chip { text-align: center; padding: 8px 4px; }
  .case { padding: 20px; }
  .case h3 { font-size: 22px; }

  .talk-title { font-size: 26px; }
  .contact { padding-bottom: 64px; }
  .contact-title { font-size: clamp(56px, 18vw, 88px); }
  .contact-sub { margin: 20px auto 28px; }
  .contact-row { flex-direction: column; align-items: stretch; max-width: 360px; margin: 0 auto; }
  .mail { justify-content: space-between; height: 52px; padding-left: 20px; }
  .mail-text { font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
  .contact-row .social { justify-content: center; height: 52px; }

  .foot { flex-direction: column; align-items: center; text-align: center; gap: 4px; }
}
