/* emirttac — signal paper portfolio */

:root {
  --bg: #e6ebf2;
  --bg-deep: #d5dde8;
  --ink: #0b1220;
  --ink-soft: #3a4558;
  --muted: #6b7588;
  --line: rgba(11, 18, 32, 0.12);
  --line-strong: rgba(11, 18, 32, 0.22);
  --accent: #c81e1e;
  --accent-soft: rgba(200, 30, 30, 0.12);
  --steel: #2f4a6e;
  --panel: rgba(255, 255, 255, 0.42);
  --surface: rgba(255, 255, 255, 0.35);
  --surface-strong: rgba(255, 255, 255, 0.55);
  --header-bg: rgba(230, 235, 242, 0.72);
  --header-bg-scrolled: rgba(230, 235, 242, 0.88);
  --nav-sheet: rgba(238, 242, 247, 0.96);
  --btn-primary-fg: #f4f6f8;
  --btn-primary-hover: #1a2438;
  --glow-accent: rgba(200, 30, 30, 0.18);
  --glow-steel: rgba(47, 74, 110, 0.22);
  --hud-border: rgba(11, 18, 32, 0.1);
  --hud-fill: linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04));
  --scan: rgba(200, 30, 30, 0.08);
  --brand-glow: rgba(230, 235, 242, 0.85);
  --lead-glow: rgba(230, 235, 242, 0.9);
  --shadow: rgba(11, 18, 32, 0.1);
  --noise-opacity: 0.035;
  --noise-blend: multiply;
  --body-bg:
    radial-gradient(ellipse 90% 60% at 10% -10%, #f7f9fc 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 95% 15%, #c9d6e8 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, #dfe6f0 0%, transparent 55%),
    linear-gradient(165deg, #eef2f7 0%, var(--bg) 45%, var(--bg-deep) 100%);
  --select-fill: rgba(255, 255, 255, 0.45);
  --theme-icon-size: 1.1rem;
  --font-display: "Syne", sans-serif;
  --font-body: "Outfit", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --space: clamp(1.25rem, 3vw, 2.5rem);
  --max: 72rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

/* Matte navy dark — extreme depth, desaturated lacivert, no gloss */
[data-theme="dark"] {
  --bg: #0a1220;
  --bg-deep: #070e1a;
  --ink: #d8e0ec;
  --ink-soft: #8f9eb3;
  --muted: #617086;
  --line: rgba(140, 160, 190, 0.1);
  --line-strong: rgba(140, 160, 190, 0.18);
  --accent: #d63a3a;
  --accent-soft: rgba(214, 58, 58, 0.16);
  --steel: #6d839c;
  --panel: rgba(12, 20, 34, 0.62);
  --surface: rgba(14, 22, 38, 0.78);
  --surface-strong: rgba(18, 28, 46, 0.92);
  --header-bg: rgba(10, 18, 32, 0.8);
  --header-bg-scrolled: rgba(10, 18, 32, 0.94);
  --nav-sheet: rgba(11, 19, 34, 0.98);
  --btn-primary-fg: #0a1220;
  --btn-primary-hover: #c2cddc;
  --glow-accent: rgba(214, 58, 58, 0.12);
  --glow-steel: rgba(55, 85, 125, 0.18);
  --hud-border: rgba(140, 160, 190, 0.12);
  --hud-fill: linear-gradient(145deg, rgba(20, 30, 48, 0.55), rgba(10, 16, 28, 0.22));
  --scan: rgba(214, 58, 58, 0.1);
  --brand-glow: rgba(10, 18, 32, 0.75);
  --lead-glow: rgba(10, 18, 32, 0.8);
  --shadow: rgba(2, 6, 14, 0.55);
  --noise-opacity: 0.06;
  --noise-blend: soft-light;
  --body-bg:
    radial-gradient(ellipse 80% 55% at 8% -8%, #121c30 0%, transparent 52%),
    radial-gradient(ellipse 65% 45% at 96% 12%, #0e1830 0%, transparent 48%),
    radial-gradient(ellipse 55% 40% at 50% 100%, #0a1424 0%, transparent 55%),
    linear-gradient(165deg, #0c1526 0%, var(--bg) 48%, var(--bg-deep) 100%);
  --select-fill: rgba(14, 22, 38, 0.88);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.55;
  background: var(--body-bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: color 0.35s var(--ease), background 0.35s var(--ease);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
}

p {
  margin: 0;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: var(--noise-blend);
}

/* Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--space);
  backdrop-filter: blur(14px) saturate(1.2);
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: var(--header-bg-scrolled);
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

.theme-toggle {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--select-fill);
  color: var(--ink);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--ink);
  outline: none;
}

.theme-toggle svg {
  width: var(--theme-icon-size);
  height: var(--theme-icon-size);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

.lang-switch select {
  appearance: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  background:
    linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%) calc(100% - 14px) calc(50% - 2px) / 5px 5px no-repeat,
    linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%) calc(100% - 10px) calc(50% - 2px) / 5px 5px no-repeat,
    var(--select-fill);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.4rem 1.7rem 0.4rem 0.8rem;
  cursor: pointer;
  min-height: 2.2rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.lang-switch select:hover,
.lang-switch select:focus-visible {
  border-color: var(--ink);
  outline: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
}

.nav-github {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink) !important;
}

.nav-github:hover {
  border-color: var(--ink);
  background: var(--surface-strong);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  gap: 6px;
  flex-direction: column;
}

.nav-toggle span {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 6.5rem var(--space) 4.5rem;
  overflow: clip;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
  opacity: 0.7;
  animation: grid-drift 28s linear infinite;
}

.hero-glow {
  position: absolute;
  width: min(70vw, 42rem);
  height: min(70vw, 42rem);
  top: 8%;
  right: -8%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 40%, var(--glow-accent), transparent 55%),
    radial-gradient(circle at 70% 60%, var(--glow-steel), transparent 60%);
  filter: blur(8px);
  animation: glow-breathe 7s ease-in-out infinite alternate;
}

.hud-frame {
  position: absolute;
  top: auto;
  bottom: 28%;
  right: max(0.5%, calc((100% - var(--max)) / 2 - 3rem));
  width: min(34vw, 22rem);
  aspect-ratio: 16 / 10;
  border: 1px solid var(--hud-border);
  background: var(--hud-fill);
  backdrop-filter: blur(6px);
  overflow: hidden;
  opacity: 0.78;
  pointer-events: none;
  mask-image: linear-gradient(105deg, transparent 0%, #000 22%, #000 100%);
  -webkit-mask-image: linear-gradient(105deg, transparent 0%, #000 22%, #000 100%);
  animation: hud-in 1.1s var(--ease) both;
}

.hud-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--accent);
  border-style: solid;
}

.hud-corner.tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.hud-corner.tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.hud-corner.bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.hud-corner.br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.hud-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 28%;
  background: linear-gradient(180deg, transparent, var(--scan), transparent);
  animation: scan 4.5s ease-in-out infinite;
}

.hud-metrics {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--steel);
  text-transform: uppercase;
}

.hero-content {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: min(100%, 38rem);
  max-width: 100%;
  min-width: 0;
  justify-self: start;
  margin-left: max(0px, calc((100% - var(--max)) / 2));
  isolation: isolate;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 1rem;
}

.hero-brand {
  font-size: clamp(2.5rem, 0.6rem + 8.2vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.9;
  margin-bottom: 1.25rem;
  max-width: 100%;
  white-space: nowrap;
  text-shadow: 0 0 28px var(--brand-glow);
}

.hero-lead {
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 32rem;
  margin-bottom: 2rem;
  text-shadow: 0 0 20px var(--lead-glow);
}

.hero-eyebrow,
.hero-lead {
  max-width: 100%;
  overflow-wrap: break-word;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 550;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--ink);
  color: var(--btn-primary-fg);
}

.btn-primary:hover {
  background: var(--btn-primary-hover);
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--surface-strong);
}

/* Sections */

.section {
  width: min(100% - (var(--space) * 2), var(--max));
  margin-inline: auto;
  padding: 5.5rem 0 1rem;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.75rem;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: 0.85rem;
}

.section-lead {
  color: var(--ink-soft);
  max-width: 34rem;
}

/* Projects */

.project-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-strong);
}

.project {
  border-bottom: 1px solid var(--line);
  transition: background 0.35s var(--ease);
}

.project.is-open {
  background: var(--panel);
}

.project-trigger {
  display: grid;
  grid-template-columns: 9rem 1fr auto;
  gap: 1.5rem;
  align-items: start;
  width: 100%;
  padding: 1.75rem 0.35rem;
  text-align: left;
  cursor: pointer;
  transition: padding 0.3s var(--ease);
}

.project-trigger:hover,
.project-trigger:focus-visible {
  padding-left: 0.85rem;
  padding-right: 0.85rem;
  outline: none;
}

.project.featured .project-trigger {
  padding-top: 2.1rem;
  padding-bottom: 2.1rem;
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 0.2rem;
}

.project-index {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.project-stack {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--steel);
  line-height: 1.35;
}

.project-body h3 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin-bottom: 0.55rem;
  transition: color 0.25s ease;
}

.project-trigger:hover .project-body h3,
.project-trigger:focus-visible .project-body h3,
.project.is-open .project-body h3 {
  color: var(--accent);
}

.project-teaser {
  color: var(--ink-soft);
  max-width: 40rem;
  font-size: 0.98rem;
  transition: opacity 0.3s ease;
}

.project.is-open .project-teaser {
  opacity: 0.72;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.project-tags li {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: var(--surface);
}

.project-chevron {
  position: relative;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.25rem;
  color: var(--muted);
  transition: transform 0.4s var(--ease), color 0.2s ease;
}

.project-chevron::before,
.project-chevron::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.55rem;
  height: 2px;
  background: currentColor;
  transition: transform 0.35s var(--ease);
}

.project-chevron::before {
  transform: translate(-70%, -50%) rotate(45deg);
}

.project-chevron::after {
  transform: translate(-30%, -50%) rotate(-45deg);
}

.project.is-open .project-chevron {
  color: var(--accent);
  transform: rotate(180deg);
}

.project-trigger:hover .project-chevron {
  color: var(--accent);
}

.project-panel {
  display: block;
  overflow: hidden;
}

.project-panel-inner {
  padding: 0.15rem 0.85rem 1.85rem;
}

.project-summary {
  color: var(--ink-soft);
  max-width: 44rem;
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1.15rem;
}

.project-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.35rem;
  max-width: 40rem;
}

.project-highlights li {
  position: relative;
  padding-left: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--steel);
  line-height: 1.45;
}

.project-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 1px;
  background: var(--accent);
  transform: rotate(45deg);
}

.project-github {
  min-width: 11rem;
}

.project-github:hover {
  transform: translateY(-2px);
}

/* About */

.about {
  padding-top: 6rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.about-copy p + p {
  margin-top: 1rem;
}

.about-copy p:not(.section-kicker) {
  color: var(--ink-soft);
  max-width: 36rem;
}

.about-stack {
  padding: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
}

.about-stack h3 {
  font-size: 1rem;
  letter-spacing: -0.02em;
  margin-bottom: 1.15rem;
}

.about-stack li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.about-stack li span:first-child {
  font-weight: 550;
}

.about-stack li span:last-child {
  color: var(--muted);
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

/* Contact */

.contact {
  padding-bottom: 4rem;
  text-align: left;
}

.contact .section-lead {
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
}

.contact-links a {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Footer */

.site-footer {
  width: min(100% - (var(--space) * 2), var(--max));
  margin: 0 auto 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

/* Reveal */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Motion prefs */

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

  .hero-grid,
  .hero-glow,
  .hud-scan,
  .hud-frame {
    animation: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .project-github:hover,
  .project.is-open .project-chevron {
    transform: none;
  }

  /* Accordion height animation stays on — it's direct UI feedback from a click. */
}

/* Responsive */

@media (max-width: 980px) {
  .hud-frame {
    width: min(42vw, 20rem);
    top: auto;
    bottom: 18%;
    right: 2%;
    opacity: 0.6;
  }

  .hero-content {
    max-width: 34rem;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: grid;
  }

  .header-actions {
    gap: 0.65rem;
  }

  .nav {
    position: fixed;
    top: 3.75rem;
    left: var(--space);
    right: var(--space);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem;
    background: var(--nav-sheet);
    border: 1px solid var(--line-strong);
    border-radius: 0.75rem;
    box-shadow: 0 16px 40px var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.25s ease, transform 0.25s var(--ease);
  }

  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav a {
    padding: 0.85rem 1rem;
    border-radius: 0.5rem;
  }

  .nav-github {
    border: 0;
    border-radius: 0.5rem;
    margin-top: 0.25rem;
    background: var(--ink);
    color: var(--btn-primary-fg) !important;
    text-align: center;
  }

  .hero {
    align-items: center;
    padding-top: 7.5rem;
  }

  .hero-content {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
  }

  .hud-frame {
    width: min(58vw, 16rem);
    top: auto;
    bottom: 14%;
    right: calc(var(--space) + 0.5rem);
    opacity: 0.45;
  }

  .project-trigger {
    grid-template-columns: 1fr auto;
    gap: 1rem;
  }

  .project-meta {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-bottom: 3rem;
  }

  .hud-frame {
    display: none;
  }

  .hero-eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.04em;
  }

  .hero-lead {
    font-size: 1.05rem;
  }
}

/* Keyframes */

@keyframes grid-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 64px 64px, 64px 64px; }
}

@keyframes glow-breathe {
  from { transform: scale(1) translate(0, 0); opacity: 0.9; }
  to { transform: scale(1.08) translate(-2%, 3%); opacity: 1; }
}

@keyframes scan {
  0%, 100% { top: -10%; }
  50% { top: 75%; }
}

@keyframes hud-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
