/* ==========================================================
   Huwaidah Martina - Portfolio
   White base, blue gradient accents.
   Edit colors in :root to restyle the whole site.
   ========================================================== */

:root {
  --ink: #0b1b3a;
  --ink-2: #33425f;
  --muted: #5a6a87;
  --line: #e1e9f6;
  --mist: #f3f7ff;
  --white: #ffffff;

  --blue-900: #0f2a8f;
  --blue-700: #1e40d8;
  --blue-500: #2f6bff;
  --sky-400: #22b8f0;
  --sky-700: #0284c7;

  --grad: linear-gradient(120deg, #1e40d8 0%, #2f6bff 55%, #22b8f0 100%);
  --grad-deep: linear-gradient(135deg, #0f2a8f 0%, #1e40d8 55%, #2f6bff 100%);
  --grad-text: linear-gradient(100deg, #1e40d8 0%, #2f6bff 50%, #0284c7 100%);

  --font-display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 32px;

  --shadow-soft: 0 10px 30px -12px rgba(30, 64, 216, 0.25);
  --shadow-lift: 0 24px 50px -22px rgba(30, 64, 216, 0.38);

  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

:focus-visible {
  outline: 3px solid var(--sky-400);
  outline-offset: 3px;
  border-radius: 6px;
}

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.75rem;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-s);
  z-index: 100;
}
.skip-link:focus { left: 0.75rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-soft); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-outline { background: #fff; color: var(--blue-700); border-color: #c8d6f5; }
.btn-outline:hover { border-color: var(--blue-500); background: var(--mist); }
.btn-light { background: #fff; color: var(--blue-900); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.5); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.btn-sm { padding: 0.55rem 1.05rem; font-size: 0.92rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -18px rgba(11, 27, 58, 0.35); }

.nav { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0;
}
.brand-name { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.1rem; letter-spacing: -0.01em; }

.nav-menu { display: flex; align-items: center; gap: 0.4rem; }
.nav-menu a:not(.btn) {
  text-decoration: none;
  font-weight: 500;
  color: var(--ink-2);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-menu a:not(.btn):hover { background: var(--mist); color: var(--blue-700); }
.nav-menu a[aria-current="page"] { color: var(--blue-700); background: var(--mist); font-weight: 600; }
.nav-menu .btn { margin-left: 0.6rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform 0.25s ease, top 0.25s ease, opacity 0.2s ease;
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5.5rem);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 0;
  pointer-events: none;
}
.hero::before { width: 560px; height: 560px; right: -120px; top: -160px; background: radial-gradient(circle, rgba(47, 107, 255, 0.28), transparent 65%); }
.hero::after { width: 460px; height: 460px; left: -160px; bottom: -200px; background: radial-gradient(circle, rgba(34, 184, 240, 0.22), transparent 65%); }

.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.status {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.45rem 0.95rem 0.45rem 0.8rem;
  border: 1px solid #cfe0ff;
  background: #fff;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 6px 18px -12px rgba(30, 64, 216, 0.5);
}
.status .dot {
  width: 10px; height: 10px; border-radius: 50%; background: #16c47f; position: relative;
}
.status .dot::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid #16c47f; opacity: 0;
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(0.6); opacity: 0.8; } 100% { transform: scale(1.6); opacity: 0; } }

.hero h1 {
  margin-top: 1.4rem;
  font-size: clamp(3.3rem, 9.2vw, 7rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
}
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.08em;
}
.hero-role {
  margin-top: 1.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
  max-width: 26ch;
  line-height: 1.2;
}
.hero-lead { margin-top: 1rem; max-width: 56ch; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

.industry-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.2rem; }
.industry-list li {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--mist);
  color: var(--blue-700);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid #dbe7ff;
}

/* Portrait */
.portrait-wrap { position: relative; width: min(100%, 420px); margin-inline: auto; }
.portrait-wrap::before {
  content: "";
  position: absolute; inset: 0;
  transform: translate(18px, 18px) rotate(3deg);
  border-radius: 999px 999px 30px 30px;
  background: var(--grad);
  opacity: 0.9;
}
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 30px 30px;
  overflow: hidden;
  background: linear-gradient(160deg, #e8f0ff, #c9dcff);
  border: 6px solid #fff;
  box-shadow: var(--shadow-lift);
}
.portrait img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.portrait .portrait-fallback {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 6rem; font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

.chip {
  position: absolute;
  z-index: 2;
  background: #fff;
  border-radius: var(--radius-m);
  padding: 0.75rem 1rem;
  box-shadow: 0 18px 40px -18px rgba(11, 27, 58, 0.45);
  border: 1px solid var(--line);
  max-width: 220px;
}
.chip strong { display: block; font-family: var(--font-display); font-size: 1.55rem; color: var(--ink); letter-spacing: -0.03em; line-height: 1.05; }
.chip span { display: block; margin-top: 0.2rem; font-size: 0.82rem; line-height: 1.35; color: var(--muted); }
.chip-a { left: -2.2rem; top: 14%; }
.chip-b { right: -1.4rem; bottom: 9%; }

/* One orchestrated entrance on page load */
.seq { opacity: 0; transform: translateY(18px); animation: seq-in 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; animation-delay: calc(var(--i, 0) * 110ms + 80ms); }
@keyframes seq-in { to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-tint { background: var(--mist); }
.section-head { max-width: 640px; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 700; }
.section-head p { margin-top: 0.9rem; color: var(--muted); }
.section-head-row { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; max-width: none; }
.section-head-row > div { max-width: 640px; }

/* ---------- Work list (Home) ---------- */
.work-list { border-top: 1px solid var(--line); }
.work-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) 2.2fr auto;
  gap: clamp(1rem, 3vw, 3rem);
  align-items: center;
  padding: 2rem 0.5rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background 0.25s ease, padding 0.25s ease;
}
.work-row::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: var(--grad); transition: width 0.25s ease; border-radius: 0 4px 4px 0;
}
.work-row:hover { background: var(--mist); padding-left: 1.5rem; }
.work-row:hover::before { width: 5px; }
.work-metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  padding-bottom: 0.08em;
}
.work-metric span { display: block; margin-top: 0.4rem; font-size: 0.88rem; color: var(--muted); max-width: 22ch; line-height: 1.4; }
.work-main h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 700; }
.work-main p { margin-top: 0.45rem; color: var(--muted); max-width: 60ch; }
.work-go {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid #c8d6f5; color: var(--blue-700);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.work-go svg { width: 20px; height: 20px; }
.work-row:hover .work-go { background: var(--blue-700); color: #fff; border-color: var(--blue-700); transform: rotate(-45deg); }

/* ---------- Collaborate band ---------- */
.collab {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-l);
  background: var(--grad-deep);
  color: #dfe9ff;
  padding: clamp(2rem, 5vw, 4rem);
}
.collab::before {
  content: ""; position: absolute; right: -120px; top: -140px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 184, 240, 0.55), transparent 65%);
  filter: blur(30px);
}
.collab > * { position: relative; }
.collab h2 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 700; max-width: 18ch; }
.collab-intro { margin-top: 0.9rem; max-width: 52ch; color: #cfdcff; }
.lanes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 3vw, 2.5rem); margin-top: 2.4rem; }
.lane { padding-top: 1.1rem; border-top: 2px solid rgba(255, 255, 255, 0.45); }
.lane h3 { color: #fff; font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.lane p { margin-top: 0.6rem; font-size: 0.98rem; color: #d3e0ff; }
.collab-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.4rem; }

/* ---------- Toolkit ---------- */
.toolkit { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem); }
.tool-group h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.8rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags li {
  padding: 0.35rem 0.8rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.9rem; font-weight: 500; color: var(--ink-2);
}
.section-tint .tags li { background: #fff; }

/* ---------- CTA ---------- */
.cta { text-align: center; padding: clamp(3.5rem, 7vw, 6rem) 0; }
.cta h2 { font-size: clamp(2.2rem, 5.4vw, 4rem); font-weight: 800; letter-spacing: -0.035em; max-width: 16ch; margin-inline: auto; }
.cta p { margin: 1rem auto 0; max-width: 46ch; color: var(--muted); }
.cta .hero-actions { justify-content: center; }

/* ---------- Page header (inner pages) ---------- */
.page-head { position: relative; overflow: hidden; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.page-head::before {
  content: ""; position: absolute; right: -140px; top: -200px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.2), transparent 65%); filter: blur(50px);
}
.page-head .container { position: relative; }
.page-head h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); font-weight: 800; letter-spacing: -0.04em; max-width: 16ch; }
.page-head p { margin-top: 1.1rem; max-width: 58ch; color: var(--muted); }

/* ---------- Projects ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.filter {
  font: inherit; font-weight: 600; font-size: 0.95rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid #c8d6f5;
  background: #fff; color: var(--ink-2);
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter:hover { border-color: var(--blue-500); color: var(--blue-700); }
.filter[aria-pressed="true"] { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--shadow-soft); }

.cases { display: grid; gap: 1.5rem; margin-top: 1rem; }
.case {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) 1.6fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(1.5rem, 3.5vw, 2.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: #fff;
  scroll-margin-top: 96px;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.case:hover { box-shadow: var(--shadow-lift); border-color: #cfe0ff; }
.case[hidden] { display: none; }
.case-side { display: flex; flex-direction: column; gap: 0.85rem; }
.case-industry {
  align-self: flex-start;
  padding: 0.28rem 0.8rem; border-radius: 999px;
  background: var(--mist); color: var(--blue-700);
  font-size: 0.85rem; font-weight: 700;
}
.case-side h2 { font-size: clamp(1.5rem, 2.8vw, 2.05rem); font-weight: 700; }
.case-role { color: var(--muted); font-size: 0.98rem; }
.case-metric { margin-top: auto; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.case-metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  font-weight: 800; letter-spacing: -0.045em; line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  padding-bottom: 0.08em;
}
.case-metric span { display: block; margin-top: 0.4rem; font-size: 0.92rem; color: var(--muted); max-width: 30ch; }
.case-body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.6rem; }
.case-body h3:not(:first-child) { margin-top: 1.5rem; }
.case-body li {
  position: relative; padding-left: 1.5rem; margin-bottom: 0.55rem; max-width: 70ch;
}
.case-body li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--grad);
}
.case-body .tags { margin-top: 1.5rem; }

.research-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.research {
  padding: 1.5rem;
  border-radius: var(--radius-m);
  background: #fff; border: 1px solid var(--line);
}
.research time { font-size: 0.86rem; font-weight: 600; color: var(--blue-700); }
.research h3 { margin-top: 0.4rem; font-size: 1.15rem; font-weight: 700; line-height: 1.25; }
.research p { margin-top: 0.5rem; font-size: 0.95rem; color: var(--muted); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.75fr 1.5fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about-aside { position: sticky; top: 100px; }
.about-aside .portrait-wrap { width: min(100%, 340px); margin-inline: 0; }
.facts { margin-top: 2.4rem; display: grid; gap: 0.9rem; }
.facts li { display: flex; flex-direction: column; font-size: 0.98rem; }
.facts b { color: var(--ink); font-weight: 700; }
.facts span { color: var(--muted); }
.about-main > section + section { margin-top: clamp(2.5rem, 5vw, 4rem); }
.about-main h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 1.2rem; }
.bio p + p { margin-top: 1rem; }
.bio { max-width: 62ch; }

.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, #2f6bff, #cfe0ff);
}
.tl-item { position: relative; padding-bottom: 2rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: calc(-2rem + 1px); top: 0.45rem;
  width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--blue-500);
}
.tl-item time { font-size: 0.9rem; font-weight: 600; color: var(--blue-700); }
.tl-item h3 { margin-top: 0.15rem; font-size: 1.25rem; font-weight: 700; }
.tl-item .org { color: var(--muted); font-weight: 500; }
.tl-item p { margin-top: 0.5rem; max-width: 62ch; }

.entry-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.entry-list li:first-child { padding-top: 0; }
.entry-list li:last-child { border-bottom: 0; }
.entry-list b { display: block; color: var(--ink); font-weight: 700; }
.entry-list span { color: var(--muted); font-size: 0.97rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-links { display: grid; gap: 1rem; margin-top: 2rem; }
.contact-link {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  text-decoration: none;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.contact-link:hover { border-color: #b9ceff; box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.contact-main { display: flex; align-items: center; gap: 1rem; text-decoration: none; flex: 1; min-width: 0; }
.contact-link .ico {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: var(--mist); color: var(--blue-700); flex: none;
}
.contact-link .ico svg { width: 22px; height: 22px; }
.contact-link b { display: block; color: var(--ink); }
.contact-link span { color: var(--muted); font-size: 0.95rem; word-break: break-all; }
.copy-btn { margin-left: auto; font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--blue-700); background: var(--mist); border: 0; padding: 0.4rem 0.8rem; border-radius: 999px; cursor: pointer; }
.copy-btn:hover { background: #e2ecff; }

.form-card {
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.form-card h2 { font-size: 1.6rem; font-weight: 700; }
.form-card > p { margin-top: 0.4rem; color: var(--muted); }
.field { margin-top: 1.2rem; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; color: var(--ink); margin-bottom: 0.4rem; }
.field input,
.field textarea {
  width: 100%;
  font: inherit; color: var(--ink);
  padding: 0.85rem 1rem;
  border: 1.5px solid #d3def5;
  border-radius: 14px;
  background: #fbfdff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.15); }
.form-actions { display: grid; gap: 0.7rem; margin-top: 1.4rem; }
.form-card .btn { width: 100%; justify-content: center; }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 1rem; padding: 0.9rem 1rem; border-radius: 12px; font-size: 0.97rem; display: none; }
.form-status.is-ok { display: block; background: #e8fbf2; color: #0b6b44; }
.form-status.is-error { display: block; background: #fff1f1; color: #9a1b1b; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 2.2rem 0; background: #fff; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; font-size: 0.95rem; color: var(--muted); }
.footer-links { display: flex; gap: 1.4rem; }
.footer-links a { text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--blue-700); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait-wrap { order: -1; width: min(100%, 340px); margin-bottom: 1rem; }
  .chip-a { left: -0.6rem; }
  .chip-b { right: -0.6rem; }
  .lanes { grid-template-columns: 1fr; }
  .case { grid-template-columns: 1fr; }
  .case-metric { margin-top: 0.4rem; }
  .research-grid { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-aside { position: static; }
  .toolkit { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: stretch; gap: 0.2rem;
    padding: 1rem 1.25rem 1.4rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(11, 27, 58, 0.4);
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a:not(.btn) { padding: 0.8rem 1rem; }
  .nav-menu .btn { margin: 0.6rem 0 0; justify-content: center; }
  .work-row { grid-template-columns: 1fr; gap: 0.9rem; }
  .work-go { display: none; }
}

@media (max-width: 480px) {
  body { font-size: 1rem; }
  .brand-name { display: none; }
  .chip { padding: 0.6rem 0.8rem; max-width: 170px; }
  .chip strong { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .seq { opacity: 1; transform: none; }
}
