/* ==========================================================================
   Aegean Web Services — styles.css
   Vanilla CSS, mobile-first. Sections:
   1. Design tokens      6. Hero
   2. Reset & base       7. Services
   3. Layout utilities   8. Work
   4. Buttons & links    9. Advantages
   5. Header & nav      10. Contact form
                        11. Footer
                        12. Reveal animations & reduced motion
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens (light theme default; dark follows the device or the toggle)
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light dark;

  /* Colors: warm paper, ink navy, one Aegean blue accent */
  --c-bg: #f5f3ee;
  --c-bg-tint: #ebe8e0;
  --c-surface: #fbfaf7;
  --c-text: #16213a;
  --c-text-muted: #5a6273;
  --c-border: #d9d4c8;
  --c-accent: #1f4e8c;
  --c-accent-hover: #173d6f;
  --c-accent-contrast: #ffffff;
  --c-error: #b42318;
  --c-success: #1e7a45;
  --c-score: #0a8f4c;
  --c-logo-ink: #16244f;
  --c-logo-sea: #1f5fa8;
  --c-logo-sky: #1f86c4;

  /* Typography: system fonts only, zero network requests */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Noto Serif", "DejaVu Serif", serif;
  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --fs-2xl: clamp(1.875rem, 1.5rem + 1.6vw, 2.625rem);
  --fs-hero: clamp(2.375rem, 1.5rem + 4.4vw, 4.5rem);

  /* Spacing */
  --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-section: clamp(4rem, 3rem + 4vw, 6.5rem);

  /* Misc */
  --container: 70rem;
  --gutter: 1rem;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4rem;
}

/* Dark: follows the device unless the theme toggle picked one (data-theme) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-bg: #0e1726;
    --c-bg-tint: #131e31;
    --c-surface: #16223a;
    --c-text: #e9e6df;
    --c-text-muted: #a2aab8;
    --c-border: #27354e;
    --c-accent: #8db3e6;
    --c-accent-hover: #adc8ef;
    --c-accent-contrast: #0e1726;
    --c-error: #f19a90;
    --c-success: #7fd1a1;
    --c-score: #3ee08f;
    --c-logo-ink: #e9e6df;
    --c-logo-sea: #4f8fd8;
    --c-logo-sky: #5cc0ee;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --c-bg: #0e1726;
  --c-bg-tint: #131e31;
  --c-surface: #16223a;
  --c-text: #e9e6df;
  --c-text-muted: #a2aab8;
  --c-border: #27354e;
  --c-accent: #8db3e6;
  --c-accent-hover: #adc8ef;
  --c-accent-contrast: #0e1726;
  --c-error: #f19a90;
  --c-success: #7fd1a1;
  --c-score: #3ee08f;
  --c-logo-ink: #e9e6df;
  --c-logo-sea: #4f8fd8;
  --c-logo-sky: #5cc0ee;
}

:root[data-theme="light"] {
  color-scheme: light;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  cursor:default;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

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

img {
  height: auto;
}

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

a {
  color: var(--c-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--c-accent-hover);
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  background: var(--c-accent);
  color: var(--c-accent-contrast);
}

.skip-link:focus {
  top: var(--space-2);
}

/* --------------------------------------------------------------------------
   3. Layout utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--space-section);
  border-top: 1px solid var(--c-border);
}

.section-tinted {
  background: var(--c-bg-tint);
}

.section-title {
  margin-bottom: var(--space-8);
  font-size: var(--fs-2xl);
}

/* Title on the left, content on the right (desktop) */
.split {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 48em) {
  :root {
    --gutter: 1.5rem;
  }
}

@media (min-width: 60em) {
  .split {
    grid-template-columns: 1fr 2fr;
    gap: var(--space-12);
  }
}

/* --------------------------------------------------------------------------
   4. Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.375rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn-primary {
  background: var(--c-accent);
  color: var(--c-accent-contrast);
}

.btn-primary:hover {
  background: var(--c-accent-hover);
  color: var(--c-accent-contrast);
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.link-arrow {
  font-weight: 600;
  text-decoration: none;
}

.link-arrow::after {
  content: "→";
  display: inline-block;
  margin-left: 0.35em;
  transition: transform 0.2s var(--ease);
}

.link-arrow:hover::after {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   5. Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  margin-right: auto;
  align-items: center;
  gap: var(--space-2);
  font-weight: 650;
  color: var(--c-text);
  text-decoration: none;
  white-space: nowrap;
}

.logo:hover {
  color: var(--c-text);
}

.logo-mark {
  flex-shrink: 0;
  width: 3.3rem;
  height: 2.75rem;
}

.lm-ink { fill: var(--c-logo-ink); }
.lm-sea { fill: var(--c-logo-sea); }
.lm-sky { fill: var(--c-logo-sky); }
.lm-code { stroke: var(--c-logo-sky); }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-logo-ink);
  letter-spacing: -0.01em;
}

.logo-sub {
  margin-top: 0.125rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--c-logo-sky);
}

/* Light/dark theme toggle */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: var(--c-text);
  background: none;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.theme-toggle:hover {
  color: var(--c-accent);
}

.theme-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Show the icon of the theme you would switch to */
.theme-icon-sun {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-icon-sun {
    display: block;
  }

  :root:not([data-theme="light"]) .theme-icon-moon {
    display: none;
  }
}

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

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

/* Hamburger toggle (mobile only) */
.nav-toggle {
  position: relative;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.5rem;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 1.375rem;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}

.nav-toggle-bar {
  position: relative;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bar::before {
  transform: translateY(-7px);
}

.nav-toggle-bar::after {
  transform: translateY(7px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  transform: rotate(-45deg);
}

/* Mobile drawer */
.site-nav {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 55;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-8);
  width: min(20rem, 85vw);
  padding: calc(var(--header-h) + var(--space-6)) var(--space-6) var(--space-6);
  background: var(--c-surface);
  border-left: 1px solid var(--c-border);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s var(--ease), visibility 0s linear 0.3s;
}

.site-nav.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.3s var(--ease), visibility 0s;
}

.nav-list {
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.nav-list a {
  display: block;
  padding: var(--space-3) 0;
  font-size: var(--fs-lg);
  color: var(--c-text);
  text-decoration: none;
  border-bottom: 1px solid var(--c-border);
}

.nav-list a:hover,
.nav-list a[aria-current="true"] {
  color: var(--c-accent);
}

/* Dim overlay behind the drawer */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgb(10 16 28 / 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.nav-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

body.nav-locked {
  overflow: hidden;
}

/* Desktop navigation */
@media (min-width: 56em) {
  .nav-toggle,
  .nav-backdrop {
    display: none;
  }

  .site-nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: var(--space-8);
    width: auto;
    padding: 0;
    background: none;
    border: 0;
    transform: none;
    visibility: visible;
    transition: none;
  }

  .nav-list {
    flex-direction: row;
    gap: var(--space-6);
  }

  .nav-list a {
    padding: var(--space-2) 0;
    font-size: var(--fs-sm);
    border: 0;
  }

  .nav-list a[aria-current="true"] {
    text-decoration: underline;
    text-underline-offset: 0.4em;
  }

  .theme-toggle {
    order: 1;
    margin-left: var(--space-4);
    margin-right: -0.5rem;
  }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  padding-block: clamp(3rem, 2rem + 5vw, 6rem) var(--space-section);
}

.hero-inner {
  display: grid;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 60em) {
  .hero-inner {
    grid-template-columns: 1.15fr 1fr;
    gap: var(--space-8);
  }
}

.hero-title {
  max-width: 12ch;
  font-size: var(--fs-hero);
  letter-spacing: -0.01em;
}

.hero-lead {
  max-width: 34rem;
  margin-top: var(--space-6);
  font-size: var(--fs-lg);
  color: var(--c-text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

/* Phone mockup: a small, always-light example site */
.hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 18rem);
}

.phone {
  padding: 0.625rem;
  background: #1b2333;
  border-radius: 2.25rem;
  box-shadow: 0 30px 60px -30px rgb(10 16 28 / 0.55);
}

.phone-screen {
  overflow: hidden;
  padding-bottom: 2.75rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #1e2633;
  background: #fffdf8;
  border-radius: 1.75rem;
}

.demo-cover {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.25rem;
  height: 9.5rem;
  padding: 1rem;
  color: #fff;
  background:
    linear-gradient(to top, rgb(0 0 0 / 0.45), transparent 70%),
    radial-gradient(circle at 24% 46%, #fde9b8 0 1.1rem, transparent 1.15rem),
    linear-gradient(#e9b98a, #8fb3d9 50%, #2f5e93 50% 100%);
}

.demo-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
}

.demo-open {
  font-size: 0.6875rem;
  opacity: 0.9;
}

.demo-open::first-letter {
  color: #4ade80;
}

.demo-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.375rem;
  padding: 0.875rem 1rem 0;
}

.demo-actions span {
  padding: 0.4375rem 0;
  font-size: 0.6875rem;
  font-weight: 600;
  text-align: center;
  border: 1px solid #d9d4c8;
  border-radius: 0.5rem;
}

.demo-actions .is-primary {
  color: #fff;
  background: #1f4e8c;
  border-color: #1f4e8c;
}

.demo-heading {
  padding: 1rem 1rem 0.25rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
}

.demo-menu {
  padding-inline: 1rem;
}

.demo-menu li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding-block: 0.5rem;
  border-bottom: 1px dashed #e1dccf;
}

.demo-menu li span:last-child {
  font-variant-numeric: tabular-nums;
  color: #5a6273;
}

/* Lighthouse-style score badge overlapping the phone */
.score-badge {
  position: absolute;
  bottom: -1.75rem;
  left: -3.5rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 1.125rem 0.75rem 0.75rem;
  color: var(--c-text);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  box-shadow: 0 18px 40px -18px rgb(10 16 28 / 0.55);
}

.score-gauge {
  position: relative;
  flex: none;
  width: 3.25rem;
  height: 3.25rem;
}

.score-gauge svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-gauge circle {
  fill: none;
  stroke-width: 3.5;
}

.score-track {
  fill: rgb(12 206 107 / 0.12) !important;
  stroke: rgb(12 206 107 / 0.2);
}

.score-arc {
  stroke: #0cce6b;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.4s var(--ease) 0.4s;
}

/* Mobile hero: tighter spacing, full-width CTA, compact phone mockup */
@media (max-width: 59.99em) {
  .hero {
    padding-top: var(--space-8);
  }

  .hero-inner {
    gap: var(--space-12);
  }

  .hero-lead {
    margin-top: var(--space-4);
    font-size: 1.0625rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
    margin-top: var(--space-6);
  }

  .hero-actions .btn {
    justify-content: center;
    text-align: center;
  }

  .hero-actions .link-arrow {
    align-self: center;
  }

  .hero-visual {
    width: min(100%, 15rem);
  }

  .phone {
    border-radius: 2rem;
  }

  .phone-screen {
    padding-bottom: 1rem;
    border-radius: 1.5rem;
  }

  .demo-cover {
    height: 7.5rem;
  }

  .demo-menu li:nth-child(n + 4) {
    display: none;
  }

  .score-badge {
    right: -1.75rem;
    bottom: -1.25rem;
    left: auto;
    gap: 0.625rem;
    padding: 0.5rem 0.875rem 0.5rem 0.5rem;
  }

  .score-gauge {
    width: 2.5rem;
    height: 2.5rem;
  }

  .score-value {
    font-size: 0.875rem;
  }

  .score-label strong {
    font-size: 0.8125rem;
  }

  .score-label span {
    font-size: 0.6875rem;
  }
}

/* Arc fills up when the hero visual is revealed */
.js .hero-visual:not(.is-visible) .score-arc {
  stroke-dashoffset: 100;
}

.score-value {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--c-score);
}

.score-label {
  display: grid;
  line-height: 1.25;
}

.score-label strong {
  font-size: 0.9375rem;
}

.score-label span {
  font-size: 0.75rem;
  color: var(--c-text-muted);
}

/* --------------------------------------------------------------------------
   7. Services
   -------------------------------------------------------------------------- */
.services-list {
  display: grid;
  gap: 0 var(--space-12);
}

@media (min-width: 40em) {
  .services-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service {
  padding-block: var(--space-6);
  border-top: 1px solid var(--c-border);
}

.service dt {
  margin-bottom: var(--space-2);
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  font-weight: 600;
  line-height: 1.25;
}

.service dd {
  color: var(--c-text-muted);
}

/* --------------------------------------------------------------------------
   8. Featured work
   -------------------------------------------------------------------------- */
.work-grid {
  display: grid;
  gap: var(--space-12);
}

@media (min-width: 48em) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
}

@media (min-width: 64em) {
  .work-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.work-item h3 {
  margin-top: var(--space-6);
  font-size: var(--fs-xl);
}

.work-item h3 a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--c-text);
  text-decoration: none;
}

.work-item h3 a:hover {
  color: var(--c-accent);
}

.work-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--c-bg-tint);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.work-item:hover .work-media img {
  transform: scale(1.02);
}

.ext-icon {
  flex: none;
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s var(--ease);
}

.work-item h3 a:hover .ext-icon {
  transform: translate(2px, -2px);
}

.work-meta {
  margin: var(--space-1) 0 var(--space-3);
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-4);
  font-size: 0.8125rem;
  color: var(--c-text-muted);
}

/* --------------------------------------------------------------------------
   9. Advantages (problem → solution rows)
   -------------------------------------------------------------------------- */
.why-list {
  border-bottom: 1px solid var(--c-border);
}

.why-item {
  display: grid;
  gap: var(--space-3);
  padding-block: var(--space-8);
  border-top: 1px solid var(--c-border);
}

.why-item h3 {
  font-size: var(--fs-xl);
}

.why-text {
  display: grid;
  gap: var(--space-3);
  max-width: 42rem;
}

.why-problem {
  color: var(--c-text-muted);
}

@media (min-width: 60em) {
  .why-item {
    grid-template-columns: 1fr 2fr;
    gap: var(--space-12);
  }
}

/* --------------------------------------------------------------------------
   10. Contact form
   -------------------------------------------------------------------------- */
.contact-intro .section-title {
  margin-bottom: var(--space-4);
}

.contact-intro p {
  max-width: 24rem;
  margin-bottom: var(--space-4);
  color: var(--c-text-muted);
}

.contact-intro a {
  font-weight: 600;
  word-break: break-word;
}

.contact-form {
  display: grid;
  gap: var(--space-2);
  justify-items: start;
}

.contact-form > .field,
.field-row {
  width: 100%;
}

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

@media (min-width: 40em) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

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

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

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.6875rem 0.75rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease);
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: inset 0 0 0 1px var(--c-accent);
}

.field [aria-invalid="true"] {
  border-color: var(--c-error);
}

.field-error {
  min-height: 1.25em;
  font-size: 0.8125rem;
  color: var(--c-error);
}

.form-status {
  font-size: var(--fs-sm);
}

.form-status:empty {
  display: none;
}

.form-status.is-success {
  color: var(--c-success);
}

.form-status.is-error {
  color: var(--c-error);
}

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding-top: var(--space-12);
  font-size: var(--fs-sm);
  background: var(--c-bg-tint);
  border-top: 1px solid var(--c-border);
}

.footer-inner {
  display: grid;
  gap: var(--space-8);
  padding-bottom: var(--space-8);
}

@media (min-width: 40em) {
  .footer-inner {
    grid-template-columns: 1fr auto;
  }
}

.footer-name {
  margin-bottom: var(--space-1);
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
}

.footer-links a {
  color: var(--c-text);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--c-accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
  padding-block: var(--space-6);
  color: var(--c-text-muted);
  border-top: 1px solid var(--c-border);
}

/* --------------------------------------------------------------------------
   12. Reveal animations & reduced motion
   Hidden state only applies once JS adds .js to <html>, so content is
   always visible without JavaScript.
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
