/* ===================================================================
   Julian Köttstorfer — Portfolio
   Hero section

   Direction: an engineer's field instrument — dark khaki "canvas",
   a faint blueprint grid, a live particle/node network, and a
   monospace spec-sheet of real facts. Precision over decoration.

   Type roles:
     display  → Space Grotesk   (name, section labels)
     body     → Inter           (title, tagline, buttons)
     utility  → JetBrains Mono  (eyebrow, meta spec-sheet, scroll cue)
=================================================================== */

:root {
  /* --- Color tokens --- */
  --ink-950: #121109;      /* deepest background */
  --ink-900: #1a180f;      /* background gradient base */
  --surface-800: #241f14;  /* raised surface tint */
  --line-700: #3c351f;     /* hairline borders / rules */
  --khaki-600: #5c5738;    /* muted labels */
  --khaki-500: #877d55;    /* secondary text, mono meta keys */

  --vanilla-100: #f7ecd2;  /* brightest text (headline) */
  --vanilla-300: #e8dab0;  /* body text */
  --vanilla-300-a: rgba(232, 218, 176, 0.72);

  --gold-300: #f1cd86;     /* bright accent / hover */
  --gold-500: #d3a45a;     /* primary accent */
  --gold-700: #a97b39;     /* deep accent, shadows */
  --gold-glow: rgba(211, 164, 90, 0.32);

  /* --- Type --- */
  --font-display: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;

  /* --- Layout --- */
  --hero-max-width: 1320px;
  --hero-pad-inline: clamp(1.5rem, 6vw, 6rem);
  --rise: 14px;
  --nav-h: 4.5rem;
}

@media (max-width: 560px) {
  :root {
    --nav-h: 3.75rem;
  }
}

/* --- Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

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

body {
  min-height: 100svh;
  background: var(--ink-950);
  color: var(--vanilla-300);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

:focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ===================================================================
   Background layers
=================================================================== */

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--ink-950);
}

/* subtle paper grain — keeps the flat khaki from feeling like a solid fill */
.bg__grain {
  position: absolute;
  inset: -10%;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* faint engineering grid — precision instrument, not terrain */
.bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-700) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-700) 1px, transparent 1px),
    linear-gradient(var(--line-700) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-700) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 16px 16px, 16px 16px;
  opacity: 0.22;
  mask-image: radial-gradient(85% 75% at 65% 30%, black 0%, transparent 78%);
}

.bg__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, var(--ink-900) 0%, var(--ink-950) 55%, #0c0b07 100%);
}

/* the two glows live on their own oversized, animated layer so the
   background visibly breathes and drifts — inset -20% keeps the
   edges covered while it translates/scales */
.bg__glow {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(38% 40% at 80% 8%, var(--gold-glow) 0%, rgba(211, 164, 90, 0) 62%),
    radial-gradient(46% 40% at 6% 100%, rgba(60, 53, 31, 0.65) 0%, rgba(60, 53, 31, 0) 58%);
  animation: glow-drift 22s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes glow-drift {
  0%   { transform: translate(0%, 0%) scale(1); }
  50%  { transform: translate(-4%, 3%) scale(1.08); }
  100% { transform: translate(3%, -4%) scale(1); }
}

#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.9;
}

/* vignette to keep text legible over the animated layers */
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 18% 42%, rgba(18, 17, 9, 0.1) 0%, rgba(18, 17, 9, 0.5) 68%, rgba(18, 17, 9, 0.82) 100%);
}

/* ===================================================================
   Hero layout
=================================================================== */

.hero {
  position: relative;
  z-index: 1;
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-inline: var(--hero-pad-inline);
  padding-block: clamp(4rem, 10vh, 6rem);
  scroll-margin-top: var(--nav-h);
}

.hero__frame {
  max-width: var(--hero-max-width);
  width: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
}

.hero__content > * {
  opacity: 0;
  transform: translateY(var(--rise));
  animation: rise-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero__content > *:nth-child(1) { animation-delay: 0.05s; }
.hero__content > *:nth-child(2) { animation-delay: 0.16s; }
.hero__content > *:nth-child(3) { animation-delay: 0.28s; }
.hero__content > *:nth-child(4) { animation-delay: 0.4s; }
.hero__content > *:nth-child(5) { animation-delay: 0.52s; }

/* --- Eyebrow --- */

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 1.9rem;
}

.hero__eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 0 var(--gold-glow);
  animation: pulse 2.4s ease-out infinite;
}

/* --- Name --- */

.hero__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(4rem, 12vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--vanilla-100);
}

.hero__name-line {
  display: block;
}

.hero__title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--gold-300);
  margin-top: 1.15rem;
  letter-spacing: -0.005em;
}

.hero__tagline {
  margin-top: 1.5rem;
  max-width: 46ch;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.65;
  color: var(--vanilla-300-a);
}

/* --- CTAs --- */

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.75rem;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 0.95rem 1.85rem;
  border-radius: 8px;
  border: 1.5px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold-300) 0%, var(--gold-500) 100%);
  color: var(--ink-950);
  box-shadow: 0 8px 22px -8px var(--gold-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -8px rgba(211, 164, 90, 0.48);
}

.btn--secondary {
  background: rgba(232, 218, 176, 0.03);
  color: var(--vanilla-100);
  border-color: var(--line-700);
}

.btn--secondary:hover {
  border-color: var(--gold-500);
  color: var(--gold-300);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.6);
}

/* shared tactile press feedback across every button variant */
.btn--primary:active,
.btn--secondary:active {
  transform: translateY(0) scale(0.97);
}

.btn__arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.btn--secondary:hover .btn__arrow {
  transform: translateX(3px);
}

/* ===================================================================
   Meta spec-sheet (desktop: right rail / mobile: stacked strip)
=================================================================== */

.hero__meta {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-left: clamp(1.5rem, 2.4vw, 2.25rem);
  border-left: 1px solid var(--line-700);
  opacity: 0;
  transform: translateY(var(--rise));
  animation: rise-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.62s;
}

.hero__meta-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.hero__meta-k {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--khaki-500);
}

.hero__meta-v {
  font-size: 0.86rem;
  color: var(--vanilla-300);
}

#local-time {
  font-variant-numeric: tabular-nums;
  color: var(--gold-300);
}

/* --- Scroll cue --- */

.hero__scroll {
  position: absolute;
  left: var(--hero-pad-inline);
  bottom: clamp(1.5rem, 4vh, 2.5rem);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--khaki-500);
}

.hero__scroll-line {
  width: 1px;
  height: 30px;
  background: var(--line-700);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(var(--gold-500), transparent);
  animation: scroll-drip 2.2s ease-in-out infinite;
}

/* ===================================================================
   Motion
=================================================================== */

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(var(--rise));
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--gold-glow); }
  70% { box-shadow: 0 0 0 8px rgba(211, 164, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(211, 164, 90, 0); }
}

@keyframes scroll-drip {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__content > *,
  .hero__meta,
  .hero__eyebrow-dot,
  .hero__scroll-line::after,
  .bg__glow,
  .btn {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ===================================================================
   Responsive
=================================================================== */

@media (max-width: 860px) {
  .hero__frame {
    grid-template-columns: 1fr;
    row-gap: 2.75rem;
  }

  .hero__meta {
    border-left: none;
    border-top: 1px solid var(--line-700);
    padding-left: 0;
    padding-top: 1.5rem;
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 2.5rem;
  }
}

@media (max-width: 560px) {
  .hero__scroll {
    display: none;
  }

  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }

  .hero__meta {
    gap: 1rem 2rem;
  }
}

/* ===================================================================
   Content sections (About, Skills)
   Shared shell below — each section only adds its own content layout,
   so the two never fight over the same property.
=================================================================== */

.content-section {
  position: relative;
  z-index: 1;
  max-width: var(--hero-max-width);
  margin-inline: auto;
  padding-inline: var(--hero-pad-inline);
  padding-block: clamp(3.5rem, 9vh, 5.5rem);
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

.content-section + .content-section {
  border-top: 1px solid var(--line-700);
}

/* --- Scroll-reveal (see script.js) --- */

.reveal {
  opacity: 0;
  transform: translateY(var(--rise));
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================================
   About
=================================================================== */

.about {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  column-gap: clamp(2rem, 6vw, 5rem);
}

.about__label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--khaki-500);
  padding-top: 0.3rem;
}

.about__body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about__heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--vanilla-100);
  max-width: 20ch;
}

.about__paragraph {
  max-width: 65ch;
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  line-height: 1.75;
  color: var(--vanilla-300-a);
}

/* ===================================================================
   Skills
=================================================================== */

.skills__label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--khaki-500);
}

.skills__heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--vanilla-100);
  margin-top: 0.6rem;
}

.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2.75rem;
}

.skill-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--line-700);
  border-radius: 10px;
  background: rgba(232, 218, 176, 0.03);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.skill-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-500);
  background: rgba(232, 218, 176, 0.05);
  box-shadow: 0 16px 32px -18px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(211, 164, 90, 0.12);
}

.skill-card__category {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--khaki-500);
}

.skill-card__name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--vanilla-100);
}

/* ===================================================================
   Work (project cards)
=================================================================== */

.work__label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--khaki-500);
}

.work__heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--vanilla-100);
  margin-top: 0.6rem;
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.75rem;
  align-items: stretch;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem 1.75rem 1.5rem;
  border: 1px solid var(--line-700);
  border-radius: 12px;
  background: rgba(232, 218, 176, 0.03);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-500);
  background: rgba(232, 218, 176, 0.05);
  box-shadow: 0 18px 36px -18px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(211, 164, 90, 0.12);
}

.project-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: var(--vanilla-100);
}

.project-card__desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--vanilla-300-a);
}

.project-card__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.project-card__stack li {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--khaki-500);
  padding: 0.32rem 0.6rem;
  border: 1px solid var(--line-700);
  border-radius: 999px;
}

.project-card__cta {
  margin-top: auto;
  align-self: flex-start;
  padding: 0.7rem 1.4rem;
  font-size: 0.9rem;
}

/* ===================================================================
   Contact
=================================================================== */

.contact__label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--khaki-500);
}

.contact__heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--vanilla-100);
  margin-top: 0.6rem;
}

.contact__intro {
  margin-top: 1.25rem;
  max-width: 55ch;
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  line-height: 1.7;
  color: var(--vanilla-300-a);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.5rem;
  max-width: 640px;
}

.contact__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--khaki-500);
}

.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--vanilla-100);
  background: rgba(232, 218, 176, 0.03);
  border: 1px solid var(--line-700);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  resize: vertical;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.field input:focus-visible,
.field textarea:focus-visible {
  border-color: var(--gold-500);
  background: rgba(232, 218, 176, 0.05);
}

.contact__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.contact__status {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--gold-300);
}

/* ===================================================================
   Nav
=================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Solid (no backdrop-filter) on purpose: blurring the live particle
     canvas underneath on every scroll frame was heavy enough to make
     scrolling feel stuck and hover states lag on less powerful machines. */
  background: rgba(15, 14, 9, 0.94);
  border-bottom: 1px solid var(--line-700);
}

.nav__inner {
  max-width: var(--hero-max-width);
  margin-inline: auto;
  padding-inline: var(--hero-pad-inline);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--vanilla-100);
  transition: color 0.25s ease;
}

.nav__brand:hover {
  color: var(--gold-300);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  list-style: none;
}

.nav__links a {
  position: relative;
  display: inline-block;
  padding: 0.4rem 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--khaki-500);
  transition: color 0.25s ease;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav__links a:hover {
  color: var(--vanilla-100);
}

.nav__links a:hover::after {
  transform: scaleX(1);
}

.nav__links a.is-active {
  color: var(--gold-300);
}

.nav__links a.is-active::after {
  transform: scaleX(1);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line-700);
  border-radius: 8px;
  background: rgba(232, 218, 176, 0.03);
  cursor: pointer;
  transition: border-color 0.25s ease;
}

.nav__toggle:hover {
  border-color: var(--gold-500);
}

.nav__toggle-bar {
  display: block;
  width: 16px;
  height: 1.5px;
  margin-inline: auto;
  background: var(--vanilla-100);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ===================================================================
   Footer
=================================================================== */

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line-700);
}

.site-footer__inner {
  max-width: var(--hero-max-width);
  margin-inline: auto;
  padding-inline: var(--hero-pad-inline);
  padding-block: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer__copy {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--khaki-500);
}

.site-footer__top {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--khaki-500);
  transition: color 0.25s ease;
}

.site-footer__top:hover {
  color: var(--gold-300);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .skill-card,
  .project-card {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .nav__links,
  .nav__toggle-bar {
    transition: none !important;
  }
}

@media (max-width: 720px) {
  .about {
    grid-template-columns: 1fr;
    row-gap: 1.25rem;
  }

  .about__heading {
    max-width: none;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.75rem var(--hero-pad-inline) 1.25rem;
    background: rgba(15, 14, 9, 0.98);
    border-bottom: 1px solid var(--line-700);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease;
  }

  .nav__links.is-open {
    max-height: 320px;
    opacity: 1;
  }

  .nav__links a {
    width: 100%;
    padding: 0.6rem 0;
  }
}

@media (max-width: 560px) {
  .contact__row {
    grid-template-columns: 1fr;
  }

  .site-footer__inner {
    justify-content: center;
    text-align: center;
  }
}
