/* --- style/00-tokens.css --- */
/* FiRe ehf — design tokens. Layer order is declared here, once. */

@layer tokens, base, components, pages;

@layer tokens {
  :root {
    /* basalt (ink) */
    --basalt-950: #10151a;
    --basalt-800: #1d2630;
    --basalt-700: #2b3745;

    /* steel (secondary) */
    --steel-600: #4c5a68;
    --steel-400: #8494a3;
    --steel-200: #ccd6de;

    /* glacier (surfaces) */
    --glacier-100: #e9eef2;
    --glacier-50: #f4f7f9;
    --white: #ffffff;

    /* fjord — sampled from the logo */
    --fjord-700: #002292;   /* hover/pressed — 12.8:1 on white   */
    --fjord-600: #0030d0;   /* accent — 9.0:1 both directions ✓AAA */
    --fjord-400: #6185ff;   /* on-dark accent — 5.5:1 on basalt  */
    --fjord-100: #e6ebff;

    /* ember — the logo red replaces the old orange entirely */
    --ember-600: #c10000;
    --ember-500: #f80000;   /* 4.2:1 on white — dots yes, small text no */
    --ember-100: #ffe3e3;

    /* semantic */
    --ink: var(--basalt-950);
    --ink-2: var(--steel-600);
    --surface: var(--white);
    --surface-2: var(--glacier-50);
    --line: var(--glacier-100);
    --accent: var(--fjord-600);
    --accent-down: var(--fjord-700);
    --signal: var(--ember-500);

    --font-display: "Archivo", system-ui, sans-serif;
    --font-body: "IBM Plex Sans", system-ui, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, monospace;

    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.375rem;
    --text-2xl: 1.75rem;
    --text-3xl: clamp(2.1rem, 1.5rem + 2.5vw, 3.25rem);

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-24: 6rem;

    --radius: 6px;
    --radius-lg: 10px;
    --container: 72rem;
    --nav-h: 4.5rem;

    --shadow-1: 0 1px 2px rgb(16 21 26 / 0.06), 0 2px 8px rgb(16 21 26 / 0.05);
    --shadow-2: 0 2px 4px rgb(16 21 26 / 0.06), 0 12px 28px rgb(16 21 26 / 0.10);
    --ring: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent);
  }
}

/* --- style/01-base.css --- */
/* Reset, typography, layout primitives. */

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

  * { margin: 0; }

  html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
  }

  body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--ink);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
  }

  img, picture, video, svg { display: block; max-width: 100%; }

  input, button, textarea, select { font: inherit; color: inherit; }

  a { color: inherit; }

  :focus-visible {
    outline: none;
    box-shadow: var(--ring);
    border-radius: var(--radius);
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
  }

  /* ---------- typography ---------- */

  h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.015em;
    text-wrap: balance;
  }

  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl); }
  h4 { font-size: var(--text-lg); }

  p { max-width: 65ch; }

  .lead {
    font-size: var(--text-lg);
    color: var(--ink-2);
  }

  .muted { color: var(--ink-2); }

  .eyebrow {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-down);
  }

  /* ---------- layout ---------- */

  main { min-height: 100vh; }

  .container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--space-6);
  }

  .section { padding-block: var(--space-24); }
  .section--tight { padding-block: var(--space-16); }
  .section--alt { background: var(--surface-2); }

  .stack > * + * { margin-top: var(--space-4); }
  .stack--lg > * + * { margin-top: var(--space-8); }

  .grid {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  }

  .center { text-align: center; }
  .center p { margin-inline: auto; }

  @media (max-width: 40rem) {
    .section { padding-block: var(--space-16); }
  }
}

/* --- style/02-primitives.css --- */
/* Buttons, cards, badges — cross-page primitives. */

@layer components {
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.625rem 1.25rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: var(--text-sm);
    text-decoration: none;
    cursor: pointer;
    transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
  }

  .btn--primary {
    background: var(--accent);
    color: var(--white);
  }
  .btn--primary:hover { background: var(--accent-down); }

  .btn--ghost {
    border-color: var(--steel-200);
    background: transparent;
    color: var(--ink);
  }
  .btn--ghost:hover { border-color: var(--steel-400); }

  .btn--glass {
    border-color: rgb(255 255 255 / 0.25);
    background: rgb(255 255 255 / 0.10);
    backdrop-filter: blur(4px);
    color: var(--white);
  }
  .btn--glass:hover { background: rgb(255 255 255 / 0.18); }

  .btn:disabled { opacity: 0.5; cursor: not-allowed; }

  .card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    box-shadow: var(--shadow-1);
  }

  .card > h3 { margin-bottom: var(--space-3); }
  .card > p { color: var(--ink-2); }

  .badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.375rem 0.875rem;
    border: 1px solid rgb(255 255 255 / 0.25);
    border-radius: 999px;
    background: rgb(255 255 255 / 0.10);
    backdrop-filter: blur(4px);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--white);
    width: fit-content;
  }

  .badge__dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--signal);
    animation: pulse 2s ease-in-out infinite;
  }

  .texture-matrix {
    background-image: radial-gradient(
      circle at 1px 1px,
      color-mix(in srgb, var(--accent) 14%, transparent) 1px,
      transparent 0
    );
    background-size: 28px 28px;
  }

  @keyframes pulse {
    50% { opacity: 0.35; }
  }
}

/* --- style/main.css --- */
/* FiRe ehf — foundation stylesheet */

/* ---------- tokens ---------- */

:root {
  /* basalt (ink) */
  --basalt-950: #10151a;
  --basalt-800: #1d2630;
  --basalt-700: #2b3745;

  /* steel (secondary) */
  --steel-600: #4c5a68;
  --steel-400: #8494a3;
  --steel-200: #ccd6de;

  /* glacier (surfaces) */
  --glacier-100: #e9eef2;
  --glacier-50: #f4f7f9;
  --white: #ffffff;

  /* ember (accent — use sparingly) */
  --ember-600: #c43d12;
  --ember-500: #e5491a;
  --ember-100: #fbe3d9;

  --ink: var(--basalt-950);
  --ink-2: var(--steel-600);
  --surface: var(--white);
  --surface-2: var(--glacier-50);
  --line: var(--glacier-100);
  --accent: var(--ember-500);
  --accent-down: var(--ember-600);

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: clamp(2.1rem, 1.5rem + 2.5vw, 3.25rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  --radius: 6px;
  --radius-lg: 10px;
  --container: 72rem;
  --nav-h: 4.5rem;

  --shadow-1: 0 1px 2px rgb(16 21 26 / 0.06), 0 2px 8px rgb(16 21 26 / 0.05);
  --shadow-2: 0 2px 4px rgb(16 21 26 / 0.06), 0 12px 28px rgb(16 21 26 / 0.10);
  --ring: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent);

  /* fjord — primary accent, sampled from the logo blue.
   These are PLACEHOLDERS — replace with real sampled values. */
  --fjord-700: #17527f;
  --fjord-600: #1d6aa5;
  --fjord-100: #e3eef7;

  /* ember stays, demoted to signal duty; resample from the logo red */

  --accent: var(--fjord-600);
  --accent-down: var(--fjord-700);
  --signal: var(--ember-500);
}

/* ---------- reset ---------- */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img, picture, video, svg { display: block; max-width: 100%; }

input, button, textarea, select { font: inherit; color: inherit; }

a { color: inherit; }

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--radius);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ---------- typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

p { max-width: 65ch; }

.lead {
  font-size: var(--text-lg);
  color: var(--ink-2);
}

.muted { color: var(--ink-2); }

/* mono label above headings: "MEDICAL DEVICE / CLASS IIa" etc. */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-down);
}

/* ---------- layout ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.section { padding-block: var(--space-24); }
.section--tight { padding-block: var(--space-16); }
.section--alt { background: var(--surface-2); }

.stack > * + * { margin-top: var(--space-4); }
.stack--lg > * + * { margin-top: var(--space-8); }

.grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

/* ---------- navbar ---------- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--white) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.navbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.navbar__brand img { height: 2.25rem; width: auto; }

.navbar__wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  letter-spacing: -0.02em;
}

.navbar__wordmark small {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--ink-2);
  margin-left: var(--space-1);
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
  padding: 0;
}

.navbar__link {
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-2);
  transition: color 120ms ease;
}

.navbar__link:hover { color: var(--ink); }

.navbar__link--active {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.625rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
}
.btn--primary:hover { background: var(--accent-down); }

.btn--ghost {
  border-color: var(--steel-200);
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--steel-400); }

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- cards ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-1);
}

.card > h3 { margin-bottom: var(--space-3); }
.card > p { color: var(--ink-2); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(80vh, 44rem);
  color: var(--white);
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media picture { height: 100%; }

/* legibility scrim over the photo */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgb(16 21 26 / 0.82) 0%,
    rgb(16 21 26 / 0.35) 55%,
    rgb(16 21 26 / 0.15) 100%
  );
}

.hero__content { padding-block: var(--space-16); }

.hero .eyebrow { color: var(--ember-100); }
.hero .lead { color: var(--glacier-100); }

/* ---------- forms (contact) ---------- */

.field { display: grid; gap: var(--space-2); }

.field label {
  font-size: var(--text-sm);
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  background: var(--surface);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  transition: border-color 120ms ease;
}

.field input:hover,
.field textarea:hover { border-color: var(--steel-400); }

.field input:focus-visible,
.field textarea:focus-visible {
  border-color: var(--accent);
  box-shadow: var(--ring);
}

.field textarea { min-height: 9rem; resize: vertical; }

.form-note {
  font-size: var(--text-sm);
  color: var(--ink-2);
}

.form-success {
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  background: var(--ember-100);
  color: var(--accent-down);
  font-weight: 500;
}

/* ---------- footer ---------- */

.footer {
  background: var(--basalt-950);
  color: var(--steel-400);
  padding-block: var(--space-12);
  font-size: var(--text-sm);
}

.footer a { color: var(--steel-200); text-decoration: none; }
.footer a:hover { color: var(--white); }

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

/* ---------- responsive ---------- */

@media (max-width: 40rem) {
  .section { padding-block: var(--space-16); }
  .navbar__links { gap: var(--space-4); }
  .navbar__wordmark small { display: none; }
}
/* ---------- additions: mobile nav, badge, band, tech cards ---------- */

main { min-height: 100vh; }

.center { text-align: center; }
.center p { margin-inline: auto; }

/* mobile menu (details/summary, no JS) */
.navbar__menu { display: none; }

.navbar__menu summary {
  list-style: none;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  padding: var(--space-2);
  border-radius: var(--radius);
}
.navbar__menu summary::-webkit-details-marker { display: none; }
.navbar__menu summary:hover { background: var(--surface-2); }

.navbar__close { display: none; }
.navbar__menu[open] .navbar__close { display: inline; }
.navbar__menu[open] .navbar__burger { display: none; }

.navbar__drawer {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  display: grid;
  gap: var(--space-1);
  padding: var(--space-4) var(--space-6);
  background: color-mix(in srgb, var(--white) 96%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.navbar__drawer a {
  padding: var(--space-3);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  color: var(--ink-2);
}
.navbar__drawer a:hover { background: var(--surface-2); color: var(--ink); }
.navbar__drawer .navbar__link--active {
  color: var(--ink);
  background: var(--surface-2);
}
.navbar__drawer .btn--primary { color: var(--white); text-align: center; }

@media (max-width: 48rem) {
  .navbar__links { display: none; }
  .navbar__menu { display: block; }
}

/* hero extras */
.hero__accent { color: var(--accent); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.btn--glass {
  border-color: rgb(255 255 255 / 0.25);
  background: rgb(255 255 255 / 0.10);
  backdrop-filter: blur(4px);
  color: var(--white);
}
.btn--glass:hover { background: rgb(255 255 255 / 0.18); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.375rem 0.875rem;
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.10);
  backdrop-filter: blur(4px);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--white);
  width: fit-content;
}

.badge__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  50% { opacity: 0.35; }
}

/* full-bleed image band (Iceland section) */
.band {
  position: relative;
  isolation: isolate;
  padding-block: var(--space-24);
  text-align: center;
  color: var(--white);
}

.band__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(16 21 26 / 0.72);
}

.band .lead { color: var(--glacier-100); margin-inline: auto; }

/* tech cards: hover lift + reveal */
.card--tech {
  transition: box-shadow 300ms ease, translate 300ms ease, border-color 300ms ease;
}
.card--tech:hover {
  translate: 0 -4px;
  box-shadow: var(--shadow-2);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.icon-chip {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--ember-500), var(--ember-600));
  margin-bottom: var(--space-6);
}

.card__reveal {
  display: block;
  margin-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--accent-down);
  opacity: 0;
  transition: opacity 300ms ease;
}
.card--tech:hover .card__reveal { opacity: 1; }

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.footer__brand img { height: 2rem; width: auto; border-radius: var(--radius); }
.footer__tag { color: var(--steel-400); }

/* two-column story layout */
.split { display: grid; gap: var(--space-8); align-items: center; }
@media (min-width: 48rem) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-16); }
}

.frame {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }


/* --- src/components/footer.css --- */
@layer components {
  .footer {
    background: var(--basalt-950);
    color: var(--steel-400);
    padding-block: var(--space-12);
    font-size: var(--text-sm);
  }

  .footer a { color: var(--steel-200); text-decoration: none; }
  .footer a:hover { color: var(--white); }

  .footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
  }

  .footer__brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
  }

  /* white plate is deliberate while the logo has a white background;
     remove once we have a transparent/SVG mark */
  .footer__brand img {
    height: 2rem;
    width: auto;
    border-radius: var(--radius);
    background: var(--white);
    padding: 2px;
  }

  .footer__tag { color: var(--steel-400); }
}

/* --- src/components/navbar.css --- */
@layer components {
  .navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--nav-h);
    background: color-mix(in srgb, var(--white) 92%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }

  .navbar__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
  }

  .navbar__brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
  }

  .navbar__brand img { height: 2.25rem; width: auto; }

  .navbar__wordmark {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-xl);
    letter-spacing: -0.02em;
  }

  .navbar__wordmark small {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--ink-2);
    margin-left: var(--space-1);
  }

  .navbar__links {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    list-style: none;
    padding: 0;
  }

  .navbar__link {
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--ink-2);
    transition: color 120ms ease;
  }

  .navbar__link:hover { color: var(--ink); }

  .navbar__link--active {
    color: var(--ink);
    box-shadow: inset 0 -2px 0 var(--accent);
  }

  /* mobile menu (details/summary, no JS) */
  .navbar__menu { display: none; }

  .navbar__menu summary {
    list-style: none;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    padding: var(--space-2);
    border-radius: var(--radius);
  }
  .navbar__menu summary::-webkit-details-marker { display: none; }
  .navbar__menu summary:hover { background: var(--surface-2); }

  .navbar__close { display: none; }
  .navbar__menu[open] .navbar__close { display: inline; }
  .navbar__menu[open] .navbar__burger { display: none; }

  .navbar__drawer {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    display: grid;
    gap: var(--space-1);
    padding: var(--space-4) var(--space-6);
    background: color-mix(in srgb, var(--white) 96%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }

  .navbar__drawer a {
    padding: var(--space-3);
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    color: var(--ink-2);
  }
  .navbar__drawer a:hover { background: var(--surface-2); color: var(--ink); }
  .navbar__drawer .navbar__link--active {
    color: var(--ink);
    background: var(--surface-2);
  }
  .navbar__drawer .btn--primary { color: var(--white); text-align: center; }

  @media (max-width: 48rem) {
    .navbar__links { display: none; }
    .navbar__menu { display: block; }
  }

  @media (max-width: 40rem) {
    .navbar__links { gap: var(--space-4); }
    .navbar__wordmark small { display: none; }
  }
}

/* --- src/components/tech_card.css --- */
@layer components {
  .card--tech {
    transition: box-shadow 300ms ease, translate 300ms ease, border-color 300ms ease;
  }
  .card--tech:hover {
    translate: 0 -4px;
    box-shadow: var(--shadow-2);
    border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  }

  .card--tech .matrix { margin-bottom: var(--space-6); }
  .card--tech:hover .matrix__dot--on { fill: var(--accent-down); }

  .card__reveal {
    display: block;
    margin-top: var(--space-4);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--accent-down);
    opacity: 0;
    transition: opacity 300ms ease;
  }
  .card--tech:hover .card__reveal { opacity: 1; }
}

/* --- src/pages/about.css --- */
@layer pages {
  .split { display: grid; gap: var(--space-8); align-items: center; }

  @media (min-width: 48rem) {
    .split { grid-template-columns: 1fr 1fr; gap: var(--space-16); }
  }

  .frame--logo {
    background: var(--surface-2);
    box-shadow: none;
    border: 1px solid var(--line);
  }
  .frame--logo img { object-fit: contain; padding: var(--space-8); }

  .frame {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-2);
  }
  .frame img { width: 100%; height: 100%; object-fit: cover; }
}

/* --- src/pages/contact.css --- */
@layer pages {
  .field { display: grid; gap: var(--space-2); }

  .field label {
    font-size: var(--text-sm);
    font-weight: 600;
  }

  .field input,
  .field textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    background: var(--surface);
    border: 1px solid var(--steel-200);
    border-radius: var(--radius);
    transition: border-color 120ms ease;
  }

  .field input:hover,
  .field textarea:hover { border-color: var(--steel-400); }

  .field input:focus-visible,
  .field textarea:focus-visible {
    border-color: var(--accent);
    box-shadow: var(--ring);
  }

  .field textarea { min-height: 9rem; resize: vertical; }

  .form-error {
      border: 1px solid var(--ember-500);
      border-radius: var(--radius-lg);
      padding: var(--space-6);
      background: var(--surface);
      color: var(--ink);
      font-weight: 500;
    }

  .form-note {
    font-size: var(--text-sm);
    color: var(--ink-2);
  }

  .form-success {
    border: 1px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    background: var(--fjord-100);
    color: var(--accent-down);
    font-weight: 500;
  }
}

/* --- src/pages/home.css --- */
@layer pages {
  .hero {
    position: relative;
    display: grid;
    align-items: end;
    min-height: min(80vh, 44rem);
    color: var(--white);
    isolation: isolate;
  }

  .hero__media {
    position: absolute;
    inset: 0;
    z-index: -1;
  }

  .hero__media picture { height: 100%; }

  .hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to top,
      rgb(16 21 26 / 0.82) 0%,
      rgb(16 21 26 / 0.35) 55%,
      rgb(16 21 26 / 0.15) 100%
    );
  }

  .hero__content { padding-block: var(--space-16); }

  .hero .eyebrow { color: var(--glacier-100); }
  .hero .lead { color: var(--glacier-100); }

  .hero__accent { color: var(--fjord-400); }

  .hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
  }

  /* full-bleed image band (Iceland section) */
  .band {
    position: relative;
    isolation: isolate;
    padding-block: var(--space-24);
    text-align: center;
    color: var(--white);
  }

  .band__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .band::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgb(16 21 26 / 0.72);
  }

  .band .lead { color: var(--glacier-100); margin-inline: auto; }
}

/* --- src/pages/technology.css --- */
@layer pages {
  .steps {
    list-style: none;
    padding: 0;
    margin-top: var(--space-6);
    display: grid;
    gap: var(--space-6);
  }

  .steps__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
  }

  .steps__num {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--accent);
    border-radius: 50%;
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--accent-down);
  }

  .steps__item p { color: var(--ink-2); }
}

