/* ============================================================
   Suraj Vaghela: portfolio
   Direction: "the trust boundary". Two semantic accents:
   amber for what the client claims, cyan for what enforces it.
   Type: Bricolage Grotesque (display) + IBM Plex Sans/Mono.
   ============================================================ */

/* ── tokens ─────────────────────────────────────────────── */
:root {
  /* dark is the default surface; light is defined further down */
  --ink:     #0A1A1E;
  --ink-2:   #0E2429;
  --ink-3:   #133038;
  --rule:    #1C3D45;
  --rule-2:  #2C5A66;
  --bone:    #EFE7D8;
  --bone-2:  #BFB6A6;
  --dim:     #85999F;
  --amber:   #E9A63F;
  --cyan:    #5FD3C6;
  --amber-soft: rgba(233, 166, 63, .12);
  --cyan-soft:  rgba(95, 211, 198, .12);

  --display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --sans:    "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1180px;
  --gutter: 28px;
  --r: 4px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

html[data-theme="light"] {
  --ink:     #F3EFE5;
  --ink-2:   #FCFAF4;
  --ink-3:   #E9E3D5;
  --rule:    #D9D1BE;
  --rule-2:  #B8AC93;
  --bone:    #10262B;
  --bone-2:  #3B575D;
  --dim:     #6B8087;
  --amber:   #A2650A;
  --cyan:    #0C7A70;
  --amber-soft: rgba(162, 101, 10, .10);
  --cyan-soft:  rgba(12, 122, 112, .10);
}

/* ── base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; line-height: 1.06; letter-spacing: -.032em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
b, strong { font-weight: 600; color: var(--bone); }
em { font-style: italic; }

code {
  font-family: var(--mono);
  font-size: .86em;
  color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 7%, transparent);
  padding: .1em .34em;
  border-radius: var(--r);
  overflow-wrap: break-word;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 14px;
}

.skip-link {
  position: absolute; left: 0; top: 0; z-index: 100;
  background: var(--cyan); color: var(--ink); padding: 10px 16px;
  clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus { clip-path: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* the recurring motif: a boundary rule */
.boundary-rule {
  height: 1px;
  background: linear-gradient(90deg, var(--amber) 0%, var(--amber) 32%, var(--rule-2) 32%, var(--rule-2) 34%, var(--cyan) 34%, var(--cyan) 100%);
  transform-origin: left center;
}

/* ── nav ────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--rule); }
.nav-inner { display: flex; align-items: center; gap: 22px; height: 68px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-rules { display: grid; gap: 4px; width: 22px; flex: none; }
.brand-rules i { display: block; height: 2px; border-radius: 2px; }
.brand-rules i:first-child { width: 13px; background: var(--amber); }
.brand-rules i:last-child  { width: 22px; background: var(--cyan); }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 15.5px; letter-spacing: -.02em; white-space: nowrap; }

.nav-links { display: flex; gap: 2px; }
.nav-links a {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em;
  color: var(--dim); text-decoration: none;
  padding: 8px 11px; border-radius: var(--r);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav-links a:hover { color: var(--bone); background: var(--ink-2); }
.nav-links a.is-active { color: var(--cyan); }

.nav-resume {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  font-family: var(--mono); font-size: 12.4px; letter-spacing: .02em; font-weight: 500;
  padding: 8px 13px; border-radius: var(--r);
  background: var(--cyan); border: 1px solid var(--cyan); color: var(--ink);
  text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.nav-resume:hover { background: transparent; color: var(--cyan); }
.nav-resume svg { flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.theme-toggle {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none;
  border: 1px solid var(--rule); border-radius: var(--r);
  background: transparent; color: var(--bone-2); cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.theme-toggle:hover { color: var(--bone); border-color: var(--rule-2); }
.theme-toggle svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav-progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: var(--cyan); transform: scaleX(0); transform-origin: left center;
}

/* ── hero ───────────────────────────────────────────────── */
.hero { padding: 54px 0 78px; }

/* Portrait sits right of the headline on wide screens and above it on
   phones, so a face is on the first screen either way. */
.hero-intro {
  display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px;
  align-items: center;
}
.hero-portrait { grid-column: 2; grid-row: 1; }
.hero-copy { grid-column: 1; grid-row: 1; min-width: 0; }

.hero-eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--dim); margin-bottom: 22px;
}

.hero-thesis {
  font-size: clamp(2.5rem, 6.4vw, 4.4rem);
  font-weight: 700; letter-spacing: -.04em; line-height: 1;
  margin-bottom: 26px; max-width: 16ch;
}
.hero-thesis .line { display: block; overflow: hidden; }
.hero-thesis .line > span { display: block; }
.hero-thesis .line:last-child > span { color: var(--amber); }

.hero-rule { max-width: 560px; margin-bottom: 24px; }

.hero-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px 48px;
  align-items: start; max-width: 1000px; margin-bottom: 26px;
}
.hero-body { font-size: 1.06rem; line-height: 1.58; color: var(--bone); }
.hero-meta { font-size: .96rem; color: var(--bone-2); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 34px; }

.btn {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: 12.8px; letter-spacing: .04em;
  padding: 11px 18px; border-radius: var(--r);
  border: 1px solid var(--rule-2); background: transparent;
  color: var(--bone); text-decoration: none;
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.btn:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-primary { background: var(--cyan); border-color: var(--cyan); color: var(--ink); font-weight: 500; }
.btn-primary:hover { background: transparent; color: var(--cyan); }

.index { display: grid; border-top: 1px solid var(--rule); }
.index a {
  display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr) auto;
  gap: 10px 28px; align-items: baseline;
  padding: 14px 4px; border-bottom: 1px solid var(--rule);
  text-decoration: none; position: relative;
  transition: padding-left .25s var(--ease-out);
}
.index a::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--cyan); transform: scaleY(0);
  transition: transform .25s var(--ease-out);
}
.index a:hover { padding-left: 16px; }
.index a:hover::before { transform: scaleY(1); }
.index-name {
  font-family: var(--display); font-size: 1.14rem; font-weight: 600;
  letter-spacing: -.024em; color: var(--bone);
  transition: color .2s var(--ease);
}
.index a:hover .index-name { color: var(--cyan); }
.index-desc { font-size: 14.4px; color: var(--bone-2); }
.index-status {
  font-family: var(--mono); font-size: 10.8px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--dim); white-space: nowrap;
}
.index-status.status-live  { color: var(--cyan); }
.index-status.status-award { color: var(--amber); }

.hero-disclosure {
  font-size: 13.6px; color: var(--dim); max-width: 68ch;
  padding-left: 16px; border-left: 2px solid var(--amber);
}

/* ── sections ───────────────────────────────────────────── */
.section { padding: 86px 0; border-top: 1px solid var(--rule); }
.section-work, .section-contact { background: var(--ink-2); }

.section-head { max-width: 40ch; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.7rem, 3.9vw, 2.65rem); }
.section-sub { margin-top: 16px; color: var(--bone-2); font-size: .97rem; max-width: 56ch; }

/* ── about ──────────────────────────────────────────────── */
/* Copy on the left, education and certification cards stacked on the right. */
.about-grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 52px; align-items: start;
}

.portrait { margin: 0; }
.portrait-frame {
  position: relative; aspect-ratio: 1; width: 100%;
  border: 1px solid var(--rule-2); border-radius: var(--r);
  background: var(--ink-3); overflow: hidden;
}
/* The portrait file is pre-cropped square, so cover is a no-op here; it is
   kept so a differently-shaped replacement still fills the frame instead of
   distorting. */
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.portrait-frame img:not([src]) { display: none; }
.portrait-frame::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--amber) 0 38%, var(--cyan) 38% 100%);
}
.portrait-mono {
  display: none;
  position: absolute; inset: 0; place-items: center;
  font-family: var(--display); font-size: 4.6rem; font-weight: 700;
  letter-spacing: -.04em; color: var(--rule-2);
}
.portrait-frame.is-empty .portrait-mono { display: grid; }
.portrait figcaption {
  margin-top: 14px; font-family: var(--mono); font-size: 11.5px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--dim);
}
.portrait figcaption span { display: block; color: var(--bone); letter-spacing: .06em; margin-bottom: 3px; }

.about-copy .lede { font-family: var(--display); font-size: 1.28rem; font-weight: 500; line-height: 1.38; letter-spacing: -.02em; margin-bottom: 1.1em; }
.about-copy p { color: var(--bone-2); max-width: 64ch; }
.about-ask { color: var(--bone) !important; border-left: 2px solid var(--cyan); padding-left: 16px; }

.about-cards { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; }
.mini-card { border: 1px solid var(--rule); border-radius: var(--r); padding: 22px; background: var(--ink); }
html[data-theme="light"] .mini-card { background: var(--ink-2); }
.mini-title { font-family: var(--display); font-size: 1.04rem; font-weight: 600; letter-spacing: -.02em; margin-bottom: 3px; }
.mini-title span { color: var(--dim); font-weight: 500; }
.mini-sub { font-size: 13.6px; color: var(--bone-2); margin-bottom: 14px; }
.mini-list { display: grid; gap: 6px; }
.mini-list li { font-size: 13.4px; color: var(--bone-2); padding-left: 15px; position: relative; }
.mini-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 1px; background: var(--cyan); }
.label-inline { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule); }

.certs { display: grid; }
.certs li {
  display: grid; gap: 2px;
  padding: 11px 0; border-top: 1px solid color-mix(in srgb, var(--rule) 60%, transparent);
}
.certs li:first-child { border-top: none; padding-top: 0; }
.cert-name { font-size: 14.2px; font-weight: 500; color: var(--bone); line-height: 1.4; }
.cert-by {
  font-family: var(--mono); font-size: 11.4px; letter-spacing: .04em; color: var(--dim);
}
.certs-note {
  margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--rule);
  font-family: var(--mono); font-size: 11.2px; letter-spacing: .04em; color: var(--dim);
}
.certs-note a { color: var(--bone-2); text-decoration: none; border-bottom: 1px solid var(--rule-2); }
.certs-note a:hover { color: var(--cyan); border-color: var(--cyan); }
.mini-course { font-size: 12.8px; color: var(--dim); line-height: 1.58; }

/* ── projects ───────────────────────────────────────────── */
.project { padding: 46px 0; border-top: 1px solid var(--rule); }
.project:first-of-type { border-top: none; padding-top: 0; }

.project-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; margin-bottom: 8px; }
.project-title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -.036em; margin-right: auto; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-family: var(--mono); font-size: 10.8px; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 9px; border-radius: var(--r);
  border: 1px solid var(--rule-2); color: var(--dim); white-space: nowrap;
}
.tag-live  { color: var(--cyan);  border-color: var(--cyan);  background: var(--cyan-soft); }
.tag-open  { color: var(--cyan);  border-color: var(--cyan); }
.tag-award { color: var(--amber); border-color: var(--amber); background: var(--amber-soft); }

.project-tagline { font-family: var(--display); font-size: 1.1rem; font-weight: 500; color: var(--bone-2); letter-spacing: -.018em; margin-bottom: 20px; }

.project-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.jump {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 12.4px;
  padding: 7px 12px; border-radius: var(--r);
  border: 1px solid var(--rule); text-decoration: none; color: var(--bone-2);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
a.jump-go:hover { color: var(--cyan); border-color: var(--cyan); }
a.jump-go:hover .jump-arrow { transform: translate(2px, -2px); }
.jump-arrow { display: inline-block; transition: transform .22s var(--ease-out); }
.jump-locked { border-style: dashed; color: var(--dim); }
.jump-locked::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); opacity: .55; }

.project-desc { color: var(--bone-2); max-width: 72ch; margin-bottom: 30px; }

/* the signature: the problem on one side, what came of it on the other */
.case {
  position: relative;
  border: 1px solid var(--rule); border-radius: var(--r);
  background: var(--ink); margin-bottom: 28px; overflow: hidden;
}
html[data-theme="light"] .case { background: var(--ink-2); }

.case-head, .case-body {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px;
  padding: 14px 22px;
}
.case-head {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  border-bottom: 1px solid var(--rule); padding-top: 15px; padding-bottom: 15px;
}
.case-col-a { color: var(--amber); }
.case-col-b { color: var(--cyan); }

.case-rule {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 1px; background: var(--rule);
  transform: scaleY(0); transform-origin: top center;
}

.case-body { padding-top: 20px; padding-bottom: 22px; align-items: start; }
.case-problem { margin: 0; font-size: 14.8px; line-height: 1.62; color: var(--bone-2); }
.case-result  { margin: 0; font-size: 14.8px; line-height: 1.62; color: var(--bone); }

.facts { display: grid; gap: 10px; margin: 0; }
.facts > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: baseline; }
.facts dt {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--dim);
}
.facts dd { margin: 0; font-size: 14.4px; color: var(--bone-2); }

/* ── experience ─────────────────────────────────────────── */
.roles { display: grid; }
.role { display: grid; grid-template-columns: 190px 1fr; gap: 40px; padding: 32px 0; border-top: 1px solid var(--rule); }
.role:first-child { border-top: none; padding-top: 0; }
.role-date { font-family: var(--mono); font-size: 12.2px; letter-spacing: .04em; color: var(--amber); margin: 0; padding-top: 5px; }
.role-body h3 { font-size: 1.28rem; letter-spacing: -.026em; margin-bottom: 4px; }
.role-org { font-family: var(--mono); font-size: 12.6px; color: var(--dim); margin-bottom: 16px; }
.role-body ul { display: grid; gap: 9px; max-width: 78ch; }
.role-body li { position: relative; padding-left: 20px; font-size: 14.8px; color: var(--bone-2); line-height: 1.6; }
.role-body li::before { content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 1px; background: var(--rule-2); }

/* ── skills ─────────────────────────────────────────────── */
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 34px; }
.skill-group ul { display: flex; flex-wrap: wrap; gap: 5px; }
.skill-group li {
  font-family: var(--mono); font-size: 12px;
  padding: 5px 10px; border-radius: var(--r);
  border: 1px solid var(--rule); color: var(--bone-2);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.skill-group li:hover { border-color: var(--cyan); color: var(--cyan); }

/* ── contact ────────────────────────────────────────────── */
.contact { max-width: 760px; }
.contact h2 { font-size: clamp(1.7rem, 3.9vw, 2.65rem); margin-bottom: 18px; }
.contact-body { color: var(--bone-2); max-width: 58ch; margin-bottom: 34px; }
.contact-rule { margin-bottom: 4px; }

.contact-list { display: grid; }
.contact-list li { display: grid; grid-template-columns: 130px 1fr; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.contact-list .label { margin: 0; }
.contact-list a {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-size: 1.16rem; font-weight: 500; letter-spacing: -.022em;
  text-decoration: none; color: var(--bone); width: fit-content;
  transition: color .2s var(--ease);
}
.contact-list a:hover { color: var(--cyan); }
.contact-list a:hover .jump-arrow { transform: translate(2px, -2px); }


/* ── footer ─────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--rule); padding: 30px 0 46px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; align-items: center; }
.footer p { font-family: var(--mono); font-size: 12.2px; color: var(--dim); margin: 0; }
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 12.2px; color: var(--dim); text-decoration: none;
  transition: color .18s var(--ease);
}
.footer-links a svg { flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.footer-links a svg[fill="currentColor"] { fill: currentColor; stroke: none; }
.footer-links a:hover { color: var(--cyan); }

/* ── motion ─────────────────────────────────────────────── */

/* hero load sequence */
[data-seq] { opacity: 0; transform: translateY(14px); }
.hero-thesis .line > span { transform: translateY(102%); }
body.is-ready [data-seq] {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: calc((var(--seq, 1) - 1) * 95ms);
}
body.is-ready .hero-thesis .line > span {
  transform: none;
  transition: transform .95s var(--ease-out);
  transition-delay: calc((var(--seq, 1) - 1) * 95ms);
}
body.is-ready .hero-rule { transform: scaleX(1); }
.hero-rule { transform: scaleX(0); transition: transform 1.1s var(--ease-out) .38s; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .75s var(--ease-out), transform .75s var(--ease-out);
}

/* case study: the divide draws, then problem and outcome arrive in order */
.case-rule { transition: transform .85s var(--ease-out); }
.case.is-in .case-rule { transform: scaleY(1); }
.case-problem, .case-result { opacity: 0; transform: translateY(10px); }
.case.is-in .case-problem, .case.is-in .case-result {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
  transition-delay: 180ms;
}
.case.is-in .case-result { transition-delay: 340ms; }

.contact-rule { transform: scaleX(0); transition: transform 1s var(--ease-out); }
.contact.is-in .contact-rule { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  [data-seq], .reveal, .case-problem, .case-result { opacity: 1 !important; transform: none !important; }
  .hero-thesis .line > span, .hero-rule, .contact-rule, .case-rule { transform: none !important; }
  .index a:hover { padding-left: 4px; }
  .nav-progress { display: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ── responsive ─────────────────────────────────────────── */
@media (max-width: 1000px) {
  .hero-intro { grid-template-columns: minmax(0, 1fr) 220px; gap: 36px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; gap: 16px; }
  .index a { grid-template-columns: minmax(0, 170px) minmax(0, 1fr); }
  .index-status { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  :root { --gutter: 20px; }
  .nav-links { display: none; }
  .nav-resume { padding: 7px 11px; font-size: 11.8px; }
  .hero { padding: 64px 0 60px; }
  .section { padding: 60px 0; }
  .hero-intro { grid-template-columns: 1fr; gap: 24px; }
  .hero-portrait, .hero-copy { grid-column: 1; grid-row: auto; }
  .hero-portrait { width: 132px; }
  .role { grid-template-columns: 1fr; gap: 12px; }
  .role-date { padding-top: 0; }
  .case-head { display: none; }
  .case-body { grid-template-columns: 1fr; gap: 18px; padding: 20px 16px; }
  .case-rule { display: none; }
  .case-problem { padding-left: 14px; border-left: 2px solid var(--amber); }
  .case-result  { padding-left: 14px; border-left: 2px solid var(--cyan); }
  .facts > div { grid-template-columns: 1fr; gap: 3px; }
  .contact-list li { grid-template-columns: 1fr; gap: 6px; }
  .contact-list .label { margin-bottom: 0; }
  .hero-body { font-size: 1.04rem; }
  .hero-eyebrow { margin-bottom: 26px; }
  .project { padding: 36px 0; }
}

@media (max-width: 400px) {
  .nav-resume-word { display: none; }
  .nav-resume { padding: 7px 10px; }
}

@media (max-width: 480px) {
  .index a { grid-template-columns: 1fr; gap: 4px; }
}

@media print {
  .nav, .theme-toggle, .nav-progress, .nav-resume { display: none; }
  body { background: #fff; color: #000; }
  [data-seq], .reveal, .case-problem, .case-result { opacity: 1 !important; transform: none !important; }
}
