:root {
  --bg: #f7f4ee;
  --paper: #fffdf8;
  --ink: #111827;
  --ink-soft: #5b6475;
  --navy: #0f172d;
  --navy-soft: #1d2436;
  --gold: #f6a400;
  --gold-deep: #ef8f00;
  --gold-soft: #ffe2a3;
  --line: rgba(17, 24, 39, 0.08);
  --shadow: 0 22px 60px rgba(17, 24, 39, 0.12);
  --shadow-soft: 0 14px 32px rgba(17, 24, 39, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.container { width: min(var(--container), calc(100% - 32px)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(247, 244, 238, 0.88);
  border-bottom: 1px solid rgba(17,24,39,.07);
}
.nav {
  min-height: 92px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { font-size: clamp(1.9rem, 2vw, 2.6rem); font-weight: 900; letter-spacing: -.04em; }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2vw, 44px); }
.nav-links a { font-weight: 700; font-size: 1.02rem; position: relative; }
.nav-links a:hover::after,
.nav-links a:first-child::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 3px; border-radius: 999px; background: var(--gold);
}
.menu-toggle {
  display: none; border: 1px solid var(--line); background: white; width: 48px; height: 48px; border-radius: 14px; font-size: 1.25rem;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, #f7a000 0%, #ffbe1b 45%, #ffd66c 100%);
  padding: 24px 0 0;
}
.hero-decor {
  position: absolute; border-radius: 999px; pointer-events: none; opacity: .35;
}
.hero-decor-1 { width: 620px; height: 620px; right: -180px; bottom: -280px; background: radial-gradient(circle at center, #ffe08d 0, #ffe08d 45%, rgba(255,224,141,0) 65%); }
.hero-decor-2 { width: 420px; height: 420px; right: 18%; top: -160px; background: radial-gradient(circle at center, rgba(255,247,205,.95) 0, rgba(255,247,205,.4) 45%, rgba(255,247,205,0) 68%); }
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  gap: 16px; align-items: stretch;
}
.hero-copy { padding: 8px 0 24px; max-width: 620px; align-self: end; }
.eyebrow {
  margin: 0 0 10px; color: white; font-weight: 900; letter-spacing: .12em; font-size: .78rem;
}
.hero h1 {
  margin: 0; line-height: .95; letter-spacing: -.06em; font-size: clamp(2.2rem, 4.8vw, 4.4rem); font-weight: 900;
}
.hero h1 span { display: block; }
.hero h1 .invert { color: white; }
.hero-subtitle {
  max-width: 520px; font-size: clamp(.98rem, 1.5vw, 1.12rem); line-height: 1.45; margin: 12px 0 14px; color: rgba(17,24,39,.92);
}
.hero-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.hero-tags span {
  padding: 7px 12px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.56); background: rgba(255,255,255,.12); color: white; font-weight: 800; font-size: .82rem; box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 999px; font-weight: 800; font-size: 1.05rem; transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-primary { background: var(--navy); color: white; }
.btn-outline { border: 2px solid rgba(255,255,255,.9); color: white; }
.hero-footnote {
  max-width: 460px; padding-left: 12px; border-left: 3px solid rgba(255,255,255,.65); font-size: .92rem; line-height: 1.4; color: rgba(17,24,39,.94); margin: 0;
}

.hero-visual {
  position: relative;
  min-height: 380px;
  height: 100%;
  align-self: stretch;
  overflow: visible;
}
.hero-figure-wrap {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: calc((min(var(--container), 100vw - 32px) - 100vw) / 2);
  overflow: visible;
}
.hero-figure {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 100%;
  width: auto;
  max-width: 100%;
  max-height: 100%;
  z-index: 2;
  display: block;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(0 20px 32px rgba(0,0,0,.14));
  pointer-events: none;
}
.feature-card {
  position: absolute; z-index: 3; background: rgba(255,250,242,.96); border: 2px solid rgba(255,255,255,.42);
  box-shadow: 0 34px 80px rgba(45, 35, 0, 0.18); border-radius: 32px; overflow: hidden;
}
/* Landscape platform card on the palm, kept inside the right column */
.feature-card-main {
  width: min(24vw, 300px);
  max-width: calc(100% - 12px);
  left: clamp(0%, 2vw, 5%);
  bottom: 18%;
  top: auto;
  border-radius: 14px;
  z-index: 3;
}
.feature-card-main .feature-head {
  padding: 8px 12px; font-size: .84rem; gap: 6px;
}
.feature-card-main .window-dots i { width: 8px; height: 8px; }
.feature-card-main .feature-grid {
  gap: 6px; padding: 8px 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.feature-card-main .mini-card,
.feature-card-main .chart-box {
  padding: 6px 8px; min-height: 42px; border-radius: 10px;
}
.feature-card-main .mini-card strong { font-size: 1rem; margin-top: 2px; }
.feature-card-main .mini-label { font-size: .64rem; }
.feature-card-main .mini-card small { margin-top: 2px; font-size: .6rem; line-height: 1.25; }
.feature-card-main .chart-box { grid-column: span 2; min-height: 52px; }
.feature-card-main .chart-line { height: 26px; bottom: 8px; left: 8px; right: 10px; }
.feature-card-main .floating-badge {
  right: 8px; bottom: 8px; padding: 6px 8px; font-size: .6rem; border-radius: 8px;
}
.feature-card-main .floating-badge strong { font-size: .66rem; }
.feature-head {
  display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.88); padding: 20px 22px; font-weight: 800; font-size: 1.28rem;
}
.window-dots { display: inline-flex; gap: 7px; }
.window-dots i { width: 12px; height: 12px; border-radius: 50%; background: #ff6d70; }
.window-dots i:nth-child(2){ background: #ffcb57; }
.window-dots i:nth-child(3){ background: #27c93f; }
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 18px;
}
.mini-card, .chart-box {
  background: #fffdf9; border: 1px solid rgba(17,24,39,.08); border-radius: 20px; padding: 16px; min-height: 94px;
}
.mini-card strong { display: block; font-size: 2rem; line-height: 1; margin-top: 10px; }
.mini-card small { display: block; margin-top: 10px; color: var(--ink-soft); font-weight: 700; line-height: 1.45; }
.mini-card.accent strong { color: var(--gold-deep); }
.mini-card.dark { background: var(--navy); color: white; }
.mini-card.soft { background: #fff8e6; }
.mini-label { font-size: .95rem; font-weight: 800; opacity: .92; }
.chart-box { grid-column: span 2; position: relative; background: linear-gradient(180deg, #f9fafb, #f3f4f7); overflow: hidden; }
.chart-box::before {
  content: ""; position: absolute; inset: 14px 16px 20px; background: linear-gradient(to right, transparent 24%, rgba(17,24,39,.06) 25%, transparent 26%, transparent 49%, rgba(17,24,39,.06) 50%, transparent 51%, transparent 74%, rgba(17,24,39,.06) 75%, transparent 76%);
}
.chart-line {
  position: absolute; left: 14px; right: 20px; bottom: 18px; height: 64px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 80'%3E%3Cpolyline fill='none' stroke='%23f5a100' stroke-width='6' stroke-linecap='round' stroke-linejoin='round' points='10,60 55,32 92,45 132,18 168,31 224,6'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}
.floating-badge {
  position: absolute; right: 26px; bottom: 24px; padding: 14px 18px; border-radius: 18px; background: var(--navy); color: white; font-size: .95rem; box-shadow: var(--shadow-soft);
}
.floating-badge strong { font-size: 1rem; }

.section { padding: 96px 0; }
.section.alt { background: #f0eee8; }
.section.compact { padding: 72px 0; }
.section-kicker {
  margin: 0 0 10px; color: var(--gold-deep); letter-spacing: .14em; text-transform: uppercase; font-size: .9rem; font-weight: 900;
}
.section-heading { text-align: center; max-width: 900px; margin: 0 auto 40px; }
.section h2, .section-heading h2 { margin: 0 0 14px; font-size: clamp(2.3rem, 4vw, 4rem); line-height: 1; letter-spacing: -.05em; }
.section-heading p { margin: 0; font-size: 1.2rem; color: var(--ink-soft); }
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 720px; }

.summary-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 36px; align-items: start; }
.summary-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.summary-card {
  background: white; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-soft);
}
.summary-card h3 { margin: 0 0 10px; font-size: 1.28rem; }
.summary-card p { margin: 0; color: var(--ink-soft); }

.stats-strip {
  background: linear-gradient(90deg, #0d1327 0%, #101733 100%); padding: 36px 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 22px;
}
.stat-card {
  border-radius: 30px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); padding: 30px 34px; min-height: 210px;
}
.stat-card strong {
  display: block; color: #ffb624; font-size: clamp(2.6rem, 4vw, 4.1rem); line-height: .94; letter-spacing: -.06em; font-weight: 900; margin-bottom: 18px;
}
.stat-card strong.stat-location {
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
  line-height: 1.02;
  letter-spacing: -.04em;
}
.stat-card span { color: rgba(255,255,255,.82); font-size: clamp(1rem,1.35vw,1.25rem); font-weight: 700; }

.showcase-block + .showcase-block { margin-top: 42px; }
.showcase-card-heading {
  max-width: 860px;
  margin: 0 0 18px;
}
.showcase-card-kicker {
  margin: 0 0 8px;
  color: var(--gold-deep);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .82rem;
  font-weight: 900;
}
.showcase-card-heading h3 {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -.03em;
}
.showcase-card-heading p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 760px;
}
.showcase-slider {
  background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,.92));
  border: 1px solid rgba(17,24,39,.06); border-radius: 36px; padding: 14px; box-shadow: var(--shadow);
}
.slides { position: relative; min-height: 640px; }
.showcase-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .55s ease, transform .55s ease;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, .92fr); align-items: center; gap: 34px; padding: 26px;
  transform: translateX(16px);
}
.showcase-slide.reverse { grid-template-columns: minmax(340px, .92fr) minmax(0, 1.2fr); transform: translateX(-16px); }
.showcase-slide.reverse .slide-media { order: 2; }
.showcase-slide.reverse .slide-copy { order: 1; }
.showcase-slide.active {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(0);
}
.slide-media { position: relative; padding: 18px 8px; }
.device-frame {
  position: relative; background: linear-gradient(180deg, #fbfbfd, #ebeef3); border-radius: 34px; padding: 22px 22px 28px; box-shadow: 0 20px 50px rgba(17,24,39,.12);
  border: 1px solid rgba(17,24,39,.08); overflow: hidden;
}
.device-frame.landscape::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at top right, rgba(255,226,163,.6) 0, rgba(255,226,163,.6) 18%, rgba(255,226,163,0) 40%), radial-gradient(circle at bottom left, rgba(255,193,7,.18) 0, rgba(255,193,7,.18) 16%, rgba(255,193,7,0) 38%);
}
.device-frame.soft-gold { background: linear-gradient(180deg, #fffefb, #f7f1de); }
.device-frame.dark-bezel { background: linear-gradient(180deg, #f7f7fa, #e9edf4); }
.device-top { display: flex; justify-content: center; margin-bottom: 14px; }
.camera-dot { width: 72px; height: 8px; border-radius: 999px; background: rgba(17,24,39,.18); }
.screen {
  border-radius: 20px; overflow: hidden; border: 9px solid #111827; background: #111827; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.screen img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center top; }
.float-pill {
  position: absolute; display: inline-flex; align-items: center; justify-content: center; padding: 12px 16px; border-radius: 999px; background: white; box-shadow: var(--shadow-soft); font-weight: 800; color: var(--navy);
}
.float-pill.top { left: 12px; top: 0; }
.float-pill.bottom { right: 18px; bottom: 0; }
.slide-copy {
  background: rgba(255,255,255,.78); backdrop-filter: blur(10px); border: 1px solid rgba(17,24,39,.06); border-radius: 28px; padding: 32px 32px 28px;
}
.tag {
  display: inline-flex; padding: 8px 14px; border-radius: 999px; background: #fdf1d0; color: #a86800; font-weight: 900; letter-spacing: .08em; font-size: .85rem; text-transform: uppercase;
}
.slide-copy h3 { margin: 16px 0 16px; font-size: clamp(2rem, 3vw, 3.35rem); line-height: 1.02; letter-spacing: -.05em; }
.slide-copy p { margin: 0 0 18px; color: var(--ink-soft); font-size: 1.12rem; }
.slide-copy ul { margin: 0 0 20px; padding-left: 1.2rem; display: grid; gap: 10px; }
.slide-copy li { font-weight: 700; }
.stack { padding-top: 18px; border-top: 1px solid rgba(17,24,39,.08); color: var(--ink-soft); font-size: 1.04rem; }

.overview-screen { background: linear-gradient(180deg, #fffdf8, #f6f3eb); padding: 24px; border-radius: 20px; }
.overview-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; align-items: start;
}
.overview-box {
  background: white; border: 1px solid rgba(17,24,39,.08); border-radius: 18px; padding: 16px; min-height: 112px;
}
.overview-box span { display: block; font-weight: 800; color: var(--ink-soft); }
.overview-box strong { display: block; font-size: 2.45rem; line-height: 1; margin-top: 12px; }
.overview-box.dark { background: var(--navy); color: white; }
.overview-box.gold { background: #fff4d9; }
.overview-box.gold strong { color: var(--gold-deep); }
.overview-chart {
  grid-column: 1 / span 2; min-height: 190px; border-radius: 22px; border: 1px solid rgba(17,24,39,.08); background: linear-gradient(180deg, #f9fafb, #f3f4f7);
  position: relative; overflow: hidden;
}
.overview-chart::before {
  content:""; position:absolute; inset: 16px; background: linear-gradient(to right, transparent 24%, rgba(17,24,39,.06) 25%, transparent 26%, transparent 49%, rgba(17,24,39,.06) 50%, transparent 51%, transparent 74%, rgba(17,24,39,.06) 75%, transparent 76%);
}
.overview-chart::after {
  content:""; position:absolute; left: 22px; right: 20px; bottom: 24px; height: 90px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 90'%3E%3Cpolyline fill='none' stroke='%23f5a100' stroke-width='7' stroke-linecap='round' stroke-linejoin='round' points='10,70 58,36 103,50 158,18 210,38 286,8'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}
.overview-copy {
  grid-column: 3 / span 2; min-height: 190px; border-radius: 22px; background: #fffef8; border: 1px solid rgba(17,24,39,.08); padding: 24px; color: var(--ink-soft); font-size: 1.08rem;
}
.slider-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 10px 18px 14px;
}
.slider-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  margin-bottom: 2px;
}
.slider-hint {
  margin: 0;
  color: var(--ink-soft);
  font-size: .95rem;
  font-weight: 700;
}
.slider-countdown {
  margin: 0;
  color: var(--ink);
  font-size: .95rem;
  font-weight: 800;
}
.slider-countdown strong {
  display: inline-block;
  min-width: 1.1ch;
  color: var(--gold-deep);
  font-size: 1.08rem;
}
.showcase-slider.is-paused .slider-countdown strong {
  color: var(--navy);
}
.slider-controls .slider-btn:first-of-type { grid-column: 1; justify-self: end; }
.slider-controls .slider-dots { grid-column: 2; }
.slider-controls .slider-btn:last-of-type { grid-column: 3; justify-self: start; }
.slider-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(17,24,39,.12); background: white; font-size: 2rem; line-height: 1; cursor: pointer;
}
.slider-dots { display: flex; gap: 10px; align-items: center; }
.slider-dots button {
  width: 12px; height: 12px; border-radius: 50%; border: 0; background: rgba(17,24,39,.16); cursor: pointer;
}
.slider-dots button.active { width: 30px; border-radius: 999px; background: var(--gold); }

.capability-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px;
}
.capability-card {
  background: white; border: 1px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: var(--shadow-soft);
}
.capability-card .icon {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: #fff1cf; color: #9d6400; font-weight: 900; font-size: 1rem; margin-bottom: 18px;
}
.capability-card h3 { margin: 0 0 10px; font-size: 1.32rem; }
.capability-card p { margin: 0; color: var(--ink-soft); }

.resume-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(340px, .75fr); gap: 28px; align-items: start; }
.timeline { display: grid; gap: 18px; }
.timeline-item {
  background: white; border: 1px solid var(--line); border-radius: 22px; padding: 24px; box-shadow: var(--shadow-soft);
}
.timeline-item .date { color: #a86800; font-weight: 800; margin-bottom: 10px; }
.timeline-item h3 { margin: 0 0 6px; font-size: 1.28rem; }
.timeline-item p { margin: 10px 0 0; color: var(--ink-soft); }
.skills-panel {
  position: sticky; top: 118px; background: white; border: 1px solid var(--line); border-radius: 28px; padding: 28px; box-shadow: var(--shadow-soft);
}
.skills-panel h3 { margin: 0 0 18px; font-size: 1.5rem; }
.skill + .skill { margin-top: 16px; }
.skill-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-weight: 800; }
.skill-track { height: 12px; border-radius: 999px; background: #ebeef4; overflow: hidden; }
.skill-fill { display: block; width: var(--w); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffb21f, #f39200); }

.education-grid { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); gap: 28px; }
.education-list {
  background: white; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-soft); overflow: hidden;
}
.education-list div { padding: 18px 22px; font-weight: 700; }
.education-list div + div { border-top: 1px solid var(--line); }

.footer { padding: 28px 0 48px; }
.footer-inner {
  display: flex; justify-content: space-between; gap: 20px; align-items: center; border-top: 1px solid rgba(17,24,39,.08); padding-top: 28px; color: var(--ink-soft);
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .14s; }

@media (max-width: 1100px) {
  .hero-grid,
  .summary-grid,
  .resume-grid,
  .education-grid,
  .showcase-slide,
  .showcase-slide.reverse {
    grid-template-columns: 1fr;
  }
  .showcase-slide.reverse .slide-media,
  .showcase-slide.reverse .slide-copy { order: initial; }
  .hero-copy { padding-top: 8px; padding-bottom: 20px; }
  .hero-visual {
    min-height: 360px;
    overflow: hidden;
  }
  .hero-figure-wrap { right: 0; }
  .feature-card-main { width: min(52vw, 280px); left: 4%; bottom: 20%; top: auto; }
  .stats-grid, .capability-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .showcase-slide { padding: 18px; min-height: unset; }
  .slides { min-height: 1020px; }
  .skills-panel { position: static; }
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute; top: calc(100% + 12px); left: 16px; right: 16px; background: rgba(255,255,255,.98);
    padding: 18px; border: 1px solid rgba(17,24,39,.08); border-radius: 24px; box-shadow: var(--shadow-soft); display: none; flex-direction: column; align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .hero h1 { font-size: clamp(2rem, 10vw, 3.4rem); }
  .hero-subtitle, .hero-footnote { font-size: .95rem; }
  .hero-tags span { font-size: .8rem; }
  .btn { min-height: 48px; font-size: 1rem; }
  .hero-visual { min-height: 320px; overflow: hidden; }
  .hero-figure-wrap { right: 0; }
  .feature-card-main { width: min(62vw, 260px); left: 3%; bottom: 22%; top: auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .chart-box { grid-column: 1 / -1; }
  .slides { min-height: 1160px; }
  .slide-copy { padding: 24px; }
  .slide-copy h3 { font-size: 2rem; }
  .overview-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .overview-chart, .overview-copy { grid-column: 1 / -1; min-height: 180px; }
}

@media (max-width: 640px) {
  .container { width: min(var(--container), calc(100% - 20px)); }
  .nav { min-height: 78px; }
  .brand { font-size: 1.9rem; }
  .hero { padding-bottom: 0; }
  .hero-grid { gap: 6px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .hero-visual { min-height: 280px; overflow: hidden; }
  .hero-figure-wrap { right: 0; }
  .feature-card-main { width: min(72vw, 240px); left: 2%; bottom: 24%; top: auto; }
  .feature-head { padding: 14px 16px; font-size: 1.04rem; }
  .feature-grid { padding: 12px; gap: 10px; }
  .mini-card strong { font-size: 1.55rem; }
  .stats-grid, .capability-grid, .summary-cards { grid-template-columns: 1fr; }
  .stat-card { min-height: auto; }
  .slides { min-height: 1020px; }
  .showcase-slider { padding: 8px; }
  .showcase-slide { gap: 18px; padding: 14px; }
  .device-frame { padding: 14px 14px 20px; border-radius: 24px; }
  .screen { border-width: 6px; }
  .slide-copy { border-radius: 22px; }
  .slide-copy p, .slide-copy ul, .stack { font-size: .98rem; }
  .float-pill { font-size: .85rem; padding: 10px 14px; }
  .slider-controls { gap: 10px; padding-inline: 10px; }
  .slider-meta { flex-direction: column; align-items: flex-start; }
  .slider-btn { width: 44px; height: 44px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
