/* =====================================================================
   Ethan Favis — CV site
   Dark, web-native. Same DNA as the print CV (Inter Tight / Source Serif /
   JetBrains Mono, editorial restraint) pushed for screen: bigger type,
   warm near-black, amber accent, motion.
   ===================================================================== */

:root {
  --bg:    #0e0c09;
  --bg-2:  #15120d;
  --bg-3:  #1b1711;
  --bg-4:  #221d15;
  --line:  #2a241b;
  --line-2:#3a3225;
  --ink:   #f3efe4;
  --ink-2: #c6bfac;
  --ink-3: #8d8573;
  --ink-4: #5e574a;
  --accent:   #e0a45c;   /* warm amber — echoes the copper in the photo */
  --accent-2: #69c79c;   /* green — "online / available" signal only */
  --accent-soft: rgba(224,164,92,.13);

  --f-sans:  "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --f-mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --maxw: 1120px;
  --pad-x: clamp(20px, 5vw, 64px);
  --r: 14px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* warm grain / vignette ambience */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1100px 700px at 78% -8%, rgba(224,164,92,.10), transparent 60%),
    radial-gradient(900px 600px at -5% 12%, rgba(105,199,156,.05), transparent 55%);
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: #1a1206; }

.wrap { width: min(100% - 0px, var(--maxw)); margin-inline: auto; padding-inline: var(--pad-x); }

.mono { font-family: var(--f-mono); }

/* eyebrow ------------------------------------------------------------ */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent);
  opacity: .7;
}

/* =====================================================================
   NAV
   ===================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(14,12,9,.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  width: min(100% , var(--maxw));
  margin-inline: auto;
  padding: 16px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding .35s var(--ease);
}
.nav.scrolled .nav-inner { padding-top: 12px; padding-bottom: 12px; }
.brand {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -.01em;
  display: flex; align-items: center; gap: 10px;
}
.brand .mark {
  width: 26px; height: 26px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  display: grid; place-items: center;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--accent);
  background: var(--bg-2);
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-size: 14px;
  color: var(--ink-3);
  padding: 8px 12px;
  border-radius: 8px;
  transition: color .2s, background .2s;
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 3px;
  height: 1.5px;
  background: var(--accent);
}
.nav-cta {
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--bg) !important;
  background: var(--accent);
  padding: 9px 15px !important;
  border-radius: 9px;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 7px;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -10px rgba(224,164,92,.7); }
.nav-links a.nav-cta::after { display: none; }
.nav-toggle { display: none; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 60px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr .9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  width: 100%;
}
.hero-name {
  font-size: clamp(52px, 9vw, 116px);
  line-height: .92;
  letter-spacing: -.04em;
  font-weight: 600;
  margin: 18px 0 0;
}
.hero-name .ln2 { color: var(--ink-3); font-weight: 400; }
.hero-sub {
  font-family: var(--f-serif);
  font-size: clamp(19px, 2.1vw, 25px);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 30ch;
  margin: 26px 0 0;
}
.hero-sub b { color: var(--ink); font-weight: 600; }

.avail {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
  font-family: var(--f-mono);
  letter-spacing: .01em;
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--bg-2);
}
.pulse {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent-2);
  position: relative;
  flex: none;
}
.pulse::after {
  content: "";
  position: absolute; inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--accent-2);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%   { transform: scale(.6); opacity: .9; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .pulse::after { animation: none; } }

.hero-cta {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 34px;
}
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px;
  font-weight: 500;
  padding: 13px 20px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  color: var(--ink);
  background: var(--bg-2);
  cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s, background .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--ink-3); }
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: var(--accent);
  color: #1a1206;
  border-color: var(--accent);
  font-weight: 600;
}
.btn-primary:hover { box-shadow: 0 14px 30px -12px rgba(224,164,92,.6); border-color: var(--accent); }

/* hero portrait */
.hero-portrait { position: relative; justify-self: center; width: 100%; max-width: 380px; }
.hero-portrait .frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.8);
  aspect-ratio: 1/1;
}
.hero-portrait image-slot { width: 100%; height: 100%; display: block; }
.hero-portrait .badge {
  position: absolute;
  bottom: -16px; left: -16px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: 13px;
  padding: 12px 16px;
  font-family: var(--f-mono);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.7);
}
.hero-portrait .badge .b-num { font-size: 22px; color: var(--accent); font-weight: 600; line-height: 1; }
.hero-portrait .badge .b-lab { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-top: 5px; }

/* scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 26px; left: 50%; transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-4);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-cue .line { width: 1px; height: 34px; background: linear-gradient(var(--ink-4), transparent); }

/* =====================================================================
   STATS STRIP
   ===================================================================== */
.stats {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 34px var(--pad-x);
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; }
.stat .num {
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--ink);
}
.stat .num .u { color: var(--accent); font-size: .55em; margin-left: 3px; font-weight: 500; }
.stat .lab {
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--ink-3);
  text-transform: uppercase;
  line-height: 1.4;
}

/* =====================================================================
   SECTION SCAFFOLD
   ===================================================================== */
.section { position: relative; z-index: 1; padding: clamp(72px, 11vh, 130px) 0; }
.section-head { margin-bottom: 52px; max-width: 720px; }
.section-head h2 {
  font-size: clamp(32px, 5vw, 54px);
  letter-spacing: -.03em;
  font-weight: 600;
  line-height: 1.02;
  margin: 16px 0 0;
}
.section-head p {
  margin: 18px 0 0;
  color: var(--ink-2);
  font-size: 18px;
  max-width: 60ch;
}
.section-num {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-4);
  letter-spacing: .1em;
}

/* =====================================================================
   ABOUT
   ===================================================================== */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.about-lead {
  font-family: var(--f-serif);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.4;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0;
}
.about-lead .hl { color: var(--accent); }
.about-body { margin: 26px 0 0; color: var(--ink-2); font-size: 17.5px; }
.about-body p { margin: 0 0 16px; }
.about-body b { color: var(--ink); font-weight: 600; }

.about-side { display: flex; flex-direction: column; gap: 14px; }
.fact {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 20px;
  background: var(--bg-2);
}
.fact .ft { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.fact .fv { margin-top: 7px; font-size: 16px; color: var(--ink); }
.fact .fv a { color: var(--accent); }

/* =====================================================================
   EXPERIENCE TIMELINE
   ===================================================================== */
.timeline { position: relative; }
.tl-item {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 40px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.tl-item:last-child { border-bottom: 1px solid var(--line); }
.tl-when {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: .03em;
  padding-top: 6px;
}
.tl-when .cur { color: var(--accent-2); }
.tl-body h3 { margin: 0; font-size: clamp(21px, 2.4vw, 27px); font-weight: 600; letter-spacing: -.01em; }
.tl-org { margin-top: 6px; font-family: var(--f-mono); font-size: 13.5px; color: var(--ink-3); }
.tl-org .at { color: var(--accent); }
.tl-list { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 11px; }
.tl-list li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.tl-list li::before {
  content: ""; position: absolute; left: 2px; top: 11px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); opacity: .8;
}

/* =====================================================================
   HOMELAB
   ===================================================================== */
.homelab { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lab-top { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end; margin-bottom: 50px; }
.repo-link {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-mono); font-size: 13px;
  color: var(--ink-2);
  border: 1px solid var(--line-2);
  background: var(--bg-3);
  padding: 11px 16px; border-radius: 10px;
  transition: border-color .2s, color .2s, transform .2s;
  white-space: nowrap;
}
.repo-link:hover { color: var(--ink); border-color: var(--ink-3); transform: translateY(-1px); }
.repo-link svg { width: 16px; height: 16px; }

/* architecture diagram */
.diagram {
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background:
    linear-gradient(var(--bg-3), var(--bg-3)) padding-box,
    var(--bg-3);
  padding: clamp(24px, 4vw, 44px);
  position: relative;
  overflow: hidden;
}
.diagram::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .35;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000, transparent);
          mask-image: radial-gradient(80% 70% at 50% 40%, #000, transparent);
}
.diag-grid { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0; }
.node {
  position: relative;
  background: var(--bg-4);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 14px 22px;
  text-align: center;
  min-width: 220px;
  z-index: 1;
}
.node .n-t { font-weight: 600; font-size: 15.5px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.node .n-s { font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-3); margin-top: 4px; letter-spacing: .02em; }
.node.accent { border-color: rgba(224,164,92,.5); box-shadow: 0 0 0 1px rgba(224,164,92,.12), 0 14px 30px -18px rgba(224,164,92,.5); }
.node.accent .n-t { color: var(--accent); }
.node.green { border-color: rgba(105,199,156,.45); }
.node.green .dotg { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); }
.connector { width: 1.5px; height: 30px; background: linear-gradient(var(--line-2), var(--accent)); position: relative; z-index: 0; }
.connector .cap { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); font-family: var(--f-mono); font-size: 10px; color: var(--ink-3); background: var(--bg-3); padding: 2px 8px; white-space: nowrap; letter-spacing: .04em; }

.host-box {
  border: 1px dashed var(--line-2);
  border-radius: 14px;
  padding: 18px;
  width: 100%;
  max-width: 560px;
  background: rgba(34,29,21,.5);
}
.host-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); text-align: center; margin-bottom: 14px; }
.lxc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px,1fr)); gap: 8px; }
.lxc {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 6px;
  text-align: center;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: .02em;
}
.lxc .d { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-2); display: inline-block; margin-right: 5px; vertical-align: middle; }

.side-node {
  margin-top: 22px;
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}

/* lab spec cards */
.lab-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 14px; margin-top: 30px; }
.spec {
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px; background: var(--bg-3);
}
.spec .sv { font-size: 25px; font-weight: 600; letter-spacing: -.02em; }
.spec .sv .u { color: var(--accent); font-size: .6em; }
.spec .sl { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-top: 8px; line-height: 1.4; }

/* =====================================================================
   SKILLS
   ===================================================================== */
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.skill-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 26px 28px;
  background: var(--bg-2);
  transition: border-color .3s, transform .3s var(--ease);
}
.skill-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.skill-card .sc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.skill-card h3 { margin: 0; font-size: 18.5px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.skill-card .lvl { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; padding-top: 3px; }
.bar { height: 4px; border-radius: 999px; background: var(--line); margin: 22px 0 20px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--accent), #f0c98b); transition: width 1.1s var(--ease); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--ink-2);
  border: 1px solid var(--line-2);
  background: var(--bg-3);
  padding: 6px 11px;
  border-radius: 8px;
  letter-spacing: .01em;
}
.chip.key { color: var(--ink); border-color: rgba(224,164,92,.4); background: var(--accent-soft); }

/* =====================================================================
   INTO / INTERESTS
   ===================================================================== */
.into-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.into-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  background: var(--bg-2);
  transition: transform .3s var(--ease), border-color .3s;
}
.into-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.into-card .ic {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  border: 1px solid rgba(224,164,92,.3);
  color: var(--accent);
  margin-bottom: 20px;
}
.into-card .ic svg { width: 24px; height: 24px; }
.into-card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 600; }
.into-card p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact { border-top: 1px solid var(--line); background: var(--bg-2); }
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.contact h2 { font-size: clamp(36px, 6vw, 68px); letter-spacing: -.035em; font-weight: 600; line-height: .98; margin: 16px 0 0; }
.contact .lead { font-size: 19px; color: var(--ink-2); margin: 22px 0 0; max-width: 44ch; }
.contact-rows { margin-top: 36px; display: flex; flex-direction: column; gap: 2px; }
.crow {
  display: flex; align-items: center; gap: 18px;
  padding: 16px 4px;
  border-top: 1px solid var(--line);
  transition: padding-left .25s var(--ease);
}
.crow:hover { padding-left: 12px; }
.crow:last-child { border-bottom: 1px solid var(--line); }
.crow .ci { color: var(--accent); flex: none; width: 20px; height: 20px; }
.crow .cl { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); width: 92px; flex: none; }
.crow .cv { font-size: 16.5px; color: var(--ink); white-space: nowrap; }
.crow:hover .cv { color: var(--accent); }
.crow .arr { margin-left: auto; color: var(--ink-4); transition: transform .25s, color .25s; }
.crow:hover .arr { transform: translateX(4px); color: var(--accent); }

.contact-card {
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 30px;
  background: var(--bg-3);
  text-align: center;
}
.contact-card .dl-note { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; }
.contact-card .btn { width: 100%; justify-content: center; }

/* footer */
.footer {
  position: relative; z-index: 1;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer .fnote { font-family: var(--f-mono); font-size: 12px; color: var(--ink-4); letter-spacing: .03em; }
.footer .ftop {
  font-family: var(--f-mono); font-size: 12px; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  transition: color .2s;
}
.footer .ftop:hover { color: var(--accent); }

/* =====================================================================
   REVEAL ANIMATION
   ===================================================================== */
/* Hidden state only applies once JS opts in (html.js-anim). If the script
   never runs, all content stays visible. */
.js-anim .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js-anim .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { grid-row: 1; max-width: 280px; margin-bottom: 8px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .skills-grid, .into-grid { grid-template-columns: 1fr; }
  .lab-top { grid-template-columns: 1fr; align-items: start; }
  .tl-item { grid-template-columns: 1fr; gap: 12px; }
  .tl-when { padding-top: 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-left: 0 !important; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
  .into-grid { grid-template-columns: 1fr; }
  .hero-portrait .badge { left: 0; }
}
