/* Enes - portfolio. Midnight charcoal premium design system (R4, two-page site).
   Owner: Sonnet 1. System fonts only, no external requests. */

:root {
  --bg: #0d1014;
  --bg-2: #141920;
  --surface: #181e26;
  --surface-2: #1d242d;     /* raised surface, e.g. card hover / inner panels */
  --line: #29313c;
  --line-strong: #3b4654;   /* brighter hairline for hover / outlines */
  --text: #e6ebf0;
  --text-muted: #9aa6b2;    /* 7.69:1 on --bg, 6.76:1 on --surface, 6.1:1 on --surface-2 */
  --mint: #7fe0c0;
  --mint-ink: #7fe0c0;      /* 12.1:1 on --bg, 10.64:1 on --surface */
  --mint-soft: rgba(127, 224, 192, 0.08);
  --mint-line: rgba(127, 224, 192, 0.28);
  --on-mint: #0d1014;       /* 12.1:1 on --mint */
  --focus: #ffffff;
  --hl: inset 0 1px 0 rgba(255, 255, 255, 0.04);   /* subtle top highlight for layered surfaces */
  --shadow-lg: 0 30px 80px -40px rgba(0, 0, 0, 0.7);

  --font-display: "Segoe UI Variable Display", "Segoe UI", "SF Pro Display", Inter, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Segoe UI Variable Text", "Segoe UI", "SF Pro Text", Inter, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2.5rem;
  --s-7: 4rem;
  --s-8: 7rem;

  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 180ms;
  --maxw: 64rem;
  --measure: 38rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(4rem, 9vw, 7rem);
  --sidebar-w: 16.5rem;
  --bar-h: 60px;             /* mobile top bar height; 0 on desktop */
  --tabnum: tabular-nums lining-nums;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 1rem);
  background: var(--bg);
  color-scheme: dark;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg, canvas, video { max-width: 100%; }

/* ---------- Type ---------- */
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 8.5vw, 5.75rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1.02; }
h2 { font-size: clamp(2rem, 4.8vw, 3.25rem); letter-spacing: -0.035em; }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }

p, ul, ol { margin: 0 0 var(--s-4); }
ul, ol { padding-left: 1.25rem; }
small { font-size: 0.875rem; color: var(--text-muted); }

a {
  color: var(--mint-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color var(--dur) var(--ease);
}
a:hover { color: var(--text); }

code, kbd {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.1em 0.4em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow-wrap: anywhere;
}

::selection { background: var(--mint); color: var(--on-mint); }

/* ---------- Focus ---------- */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
  box-shadow: 0 0 0 6px var(--bg);
}

/* ---------- Buttons ---------- */
button {
  min-height: 44px;
  min-width: 44px;
  padding: 0 var(--s-5);
  font: 600 1rem/1 var(--font-body);
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
button:hover { border-color: var(--mint); color: var(--mint-ink); }
button[disabled] { opacity: 0.55; cursor: not-allowed; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--s-5);
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn-primary { background: var(--mint); color: var(--on-mint); }
.btn-primary:hover { background: #a6efd6; color: var(--on-mint); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn-primary:hover { transform: translateY(-1px); }
}
.btn-secondary { color: var(--text); border-color: var(--line-strong); background: transparent; }
.btn-secondary:hover { color: var(--text); border-color: var(--mint); background: var(--mint-soft); }

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--s-3);
  top: -4rem;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--s-5);
  background: var(--mint);
  color: var(--on-mint);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-pill);
}
.skip-link:focus { top: var(--s-3); color: var(--on-mint); }

/* ---------- Layout + sidebar ---------- */
.layout { display: block; }
.content { display: block; min-width: 0; }

/* Mobile (< 960px): sticky top bar; panel drops below it */
.sidebar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-height: var(--bar-h);
  padding: 0 var(--gutter);
}
.sidebar-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
  line-height: 1.2;
}
.sidebar-brand:hover { color: var(--text); }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.brand-role {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.nav-toggle { display: none; padding: 0 var(--s-4); }
html.js .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
.sidebar[data-open] .nav-toggle { border-color: var(--mint); color: var(--mint-ink); }

.sidebar-panel {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  max-height: calc(100dvh - var(--bar-h));
  overflow-y: auto;
  padding: var(--s-4) var(--gutter) var(--s-5);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
html.js .sidebar:not([data-open]) .sidebar-panel { display: none; }
/* no JS: panel shows expanded in normal flow under the top bar */
html:not(.js) .sidebar { position: relative; }
html:not(.js) .sidebar-panel { position: static; max-height: none; box-shadow: none; }

.side-pages, .side-sections, .side-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.side-pages li, .side-sections li, .side-links li { margin: 0; }

.side-pages a, .side-sections a, .side-links a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--s-3) 0 var(--s-4);
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.side-pages a { font-weight: 600; font-size: 1.05rem; }
.side-sections a, .side-links a { font-size: 0.95rem; }
.side-pages a:hover, .side-sections a:hover, .side-links a:hover {
  color: var(--text);
  background: rgba(230, 235, 240, 0.05);
}
/* mint indicator bar */
.side-pages a::before, .side-sections a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 3px;
  border-radius: 3px;
  background: var(--mint);
  opacity: 0;
  transform: scaleY(0.4);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.side-pages a[aria-current="page"] { color: var(--text); background: var(--mint-soft); }
.side-sections a[aria-current="location"] { color: var(--text); background: rgba(230, 235, 240, 0.05); }
.side-pages a[aria-current="page"]::before,
.side-sections a[aria-current="location"]::before { opacity: 1; transform: none; }

.sidebar-panel nav + nav,
.sidebar-panel nav + .side-links { margin-top: var(--s-5); }
.sidebar-panel nav[aria-label="On this page"]::before,
.side-links::before {
  display: block;
  margin: 0 0 var(--s-2) var(--s-4);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.sidebar-panel nav[aria-label="On this page"]::before { content: "On this page"; }
.side-links::before { content: "Elsewhere"; }
.side-links {
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
}

/* Desktop (>= 960px): fixed left sidebar */
@media (min-width: 60rem) {
  :root { --bar-h: 0px; }
  html { scroll-padding-top: 1rem; }
  .layout {
    display: grid;
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
    align-items: start;
  }
  html:not(.js) .sidebar, .sidebar {
    position: sticky;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    background: linear-gradient(180deg, var(--bg-2), var(--bg) 40%);
  }
  .sidebar-top {
    display: block;
    min-height: 0;
    padding: var(--s-6) var(--s-5) var(--s-5);
  }
  .brand-name { font-size: 1.3rem; display: block; }
  .brand-role { display: block; margin-top: var(--s-1); font-size: 0.875rem; }
  .nav-toggle, html.js .nav-toggle { display: none; }
  html.js .sidebar:not([data-open]) .sidebar-panel,
  .sidebar-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    position: static;
    max-height: none;
    padding: 0 var(--s-3) var(--s-5);
    background: transparent;
    border-bottom: 0;
    box-shadow: none;
    overflow-y: auto;
  }
  .side-links { margin-top: auto; }
}

/* ---------- Shared section frame ---------- */
.content > section:not(.hero) {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: var(--section-y) var(--gutter);
}
.content > section + section:not(.hero) { border-top: 1px solid var(--line); }
.section-intro, .projects > p {
  max-width: var(--measure);
  margin: var(--s-3) 0 var(--s-6);
  font-size: 1.1rem;
  color: var(--text-muted);
}
.education h2, .skills h2, .projects h2 { margin-bottom: var(--s-3); }

/* ---------- Hero (shared) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: max(34rem, calc(100svh - var(--bar-h))); /* hero fills the first screen */
  padding: var(--s-7) var(--gutter) var(--s-8);
  text-align: center;
  overflow: hidden;
  background: radial-gradient(ellipse 60% 50% at 50% 38%, rgba(127, 224, 192, 0.09), transparent 70%);
}
.hero > * { position: relative; z-index: 1; }

.hero-avatar {
  display: block;
  width: clamp(72px, 9vw, 104px);
  height: auto;
  aspect-ratio: 1;
  margin: 0 auto var(--s-5);
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow:
    0 0 0 4px var(--bg),
    0 0 0 5px rgba(127, 224, 192, 0.22),
    0 0 36px 4px rgba(127, 224, 192, 0.10);
}

.eyebrow {
  margin: 0 0 var(--s-5);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mint-ink);
}
.hero h1 { max-width: 16ch; margin-inline: auto; }
.lede {
  max-width: 34rem;
  margin: var(--s-5) auto var(--s-6);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--text-muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-3);
}

/* Orbit linework: decorative, thin, low opacity (Roblox hero) */
.hero-orbits {
  position: absolute;
  inset: 0;
  z-index: 0 !important;
  pointer-events: none;
  overflow: hidden;
}
.hero-orbits::before,
.hero-orbits::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  border-radius: 50%;
  border: 1px solid rgba(127, 224, 192, 0.12);
  transform: translate(-50%, -50%);
}
.hero-orbits::before {
  width: min(78rem, 140vw);
  aspect-ratio: 1;
  box-shadow:
    0 0 0 min(9rem, 14vw) rgba(127, 224, 192, 0.025),
    inset 0 0 0 min(9rem, 14vw) rgba(230, 235, 240, 0.02);
  border-color: rgba(230, 235, 240, 0.07);
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 85%);
  mask-image: linear-gradient(to bottom, #000 40%, transparent 85%);
}
.hero-orbits::after {
  width: min(52rem, 100%);
  aspect-ratio: 1;
  -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent 80%);
  mask-image: linear-gradient(to bottom, #000 35%, transparent 80%);
}

@media (prefers-reduced-motion: no-preference) {
  .hero > :not(.hero-orbits) { animation: rise 700ms var(--ease) both; }
  .hero > .lede { animation-delay: 80ms; }
  .hero > .hero-actions { animation-delay: 160ms; }
  .hero > .hero-facts { animation-delay: 240ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

/* ---------- Main-page hero: asymmetric, left-aligned ---------- */
.hero-main {
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  text-align: left;
  overflow: clip;
  background: none;
  padding-block: var(--s-7) var(--s-7);
}
.hero-main::before {
  /* one faint atmospheric glow, bleeding off the content edge */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 30% 42%, rgba(127, 224, 192, 0.09), transparent 72%);
}
.hero-main .eyebrow { display: flex; align-items: center; gap: var(--s-3); }
.hero-main .eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--mint);
  flex: none;
}
.hero-main h1 {
  max-width: 11ch;
  margin-inline: 0;
  font-size: clamp(3rem, 8vw, 6.25rem);
}
.hero-main .lede {
  max-width: var(--measure);
  margin: var(--s-5) 0 var(--s-6);
}
.hero-main .hero-actions { justify-content: flex-start; }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  max-width: 44rem;
  margin: var(--s-7) 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.hero-fact {
  display: flex;
  flex-direction: column-reverse;   /* value above label */
  justify-content: flex-end;
  gap: var(--s-1);
  min-width: 0;
  padding: var(--s-4) var(--s-4) 0 0;
}
.hero-fact + .hero-fact { padding-left: var(--s-4); border-left: 1px solid var(--line); }
.hero-fact dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.4vw, 2.1rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: var(--tabnum);
  color: var(--text);
}
.hero-fact dt {
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--text-muted);
}

/* ---------- Projects (wrapper only; cards live in projects.css) ---------- */
.project-list { list-style: none; margin: 0; padding: 0; }

/* ---------- Skills ---------- */
.skill-group {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: var(--s-3) var(--s-5);
  padding: var(--s-5) 0;
  border-top: 1px solid var(--line);
}
.skills h2 + .skill-group, .skills .section-intro + .skill-group { margin-top: var(--s-6); }
.skill-group:last-of-type { border-bottom: 1px solid var(--line); }
.skill-group h3 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 0.35rem;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.tag {
  margin: 0;
  padding: 0.25rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--hl);
}

/* ---------- Education ---------- */
.edu-card {
  margin-top: var(--s-6);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--hl), var(--shadow-lg);
}
.edu-degree { font-size: clamp(1.35rem, 3vw, 1.9rem); letter-spacing: -0.025em; max-width: 28ch; }
.edu-school { margin: var(--s-3) 0 0; font-size: 1.1rem; color: var(--mint-ink); }
.edu-dates {
  margin: var(--s-1) 0 var(--s-5);
  color: var(--text-muted);
  font-variant-numeric: var(--tabnum);
}
.edu-summary { max-width: var(--measure); margin-bottom: var(--s-3); }
.result-list {
  list-style: none;
  max-width: 36rem;
  margin: 0 0 var(--s-5);
  padding: 0;
}
.result-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  margin: 0;
  padding: var(--s-3) 0;
  border-top: 1px solid var(--line);
}
.result-list li:last-child { border-bottom: 1px solid var(--line); }
.result-name { min-width: 0; }
.result-score {
  flex: none;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-variant-numeric: var(--tabnum);
  color: var(--mint-ink);
}
.edu-note { max-width: var(--measure); margin-bottom: var(--s-2); color: var(--text-muted); }
.edu-note:last-child { margin-bottom: 0; }

/* ---------- Demo (Roblox page) ---------- */
.demo h2 { margin-bottom: var(--s-3); }
.demo-label {
  margin: 0 0 var(--s-6);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Playground: outer frame and placement only. Interior belongs to playground.css */
.playground {
  position: relative;
  width: 100%;
  min-height: 22rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--hl), var(--shadow-lg);
  overflow: hidden;
  color: var(--text);
}
.playground-fallback {
  margin: 0;
  padding: var(--s-6);
  color: var(--text-muted);
}
.playground > noscript p { margin: 0; padding: var(--s-6); color: var(--text-muted); }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact h2 { margin-bottom: var(--s-3); }
.contact-intro {
  max-width: 32rem;
  margin-inline: auto;
  color: var(--text-muted);
  font-size: 1.1rem;
}
.contact-list {
  list-style: none;
  margin: var(--s-6) auto 0;
  padding: 0;
  max-width: 34rem;
  text-align: left;
}
.contact-list li {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-3);
  margin: 0;
  padding-block: var(--s-1);
  border-bottom: 1px solid var(--line);
}
.contact-list li:first-child { border-top: 1px solid var(--line); }
.contact-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact-list a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-size: clamp(1rem, 3.4vw, 1.15rem);
  color: var(--text);
  text-decoration-color: var(--mint);
  overflow-wrap: anywhere;
}
.contact-list a:hover { color: var(--mint-ink); }

.copy-btn { min-height: 44px; padding: 0 var(--s-4); font-size: 0.9rem; }
.copy-btn[data-state="copied"] { background: var(--mint); color: var(--on-mint); border-color: var(--mint); }
.copy-btn[data-state="failed"] { border-color: #ff9a8a; color: #ffb4a8; }

/* ---------- Footer ---------- */
.site-footer {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: var(--s-5) var(--gutter) var(--s-6);
  border-top: 1px solid var(--line);
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
}
.site-footer p { margin: 0; }

/* ---------- Small screens ---------- */
@media (max-width: 47.99rem) {
  .skill-group { grid-template-columns: 1fr; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-fact { flex-direction: row-reverse; justify-content: flex-end; align-items: baseline; gap: var(--s-3); padding: var(--s-3) 0; }
  .hero-fact + .hero-fact { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .hero-fact dd { flex: none; min-width: 7.5rem; }
}
@media (max-width: 30rem) {
  .hero { padding-top: var(--s-6); }
  .hero-avatar { margin-bottom: var(--s-4); }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 20rem; }
  .hero-main .hero-actions { max-width: none; }
  .brand-role { display: none; }
  .contact-list li { grid-template-columns: 1fr; gap: 0; padding-block: var(--s-2); }
  .copy-btn { justify-self: start; margin-bottom: var(--s-2); }
  .playground { min-height: 20rem; }
  .result-list li { flex-direction: column; gap: 0; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .btn-primary:hover { transform: none; }
}

@media (forced-colors: active) {
  :focus-visible { outline-color: Highlight; box-shadow: none; }
  .btn { border-color: ButtonText; }
  .side-pages a[aria-current="page"], .side-sections a[aria-current="location"] { outline: 1px solid Highlight; }
}
