/* ==========================================================================
   82 Degrees — one-page site
   ========================================================================== */

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

:root {
  --bg: #f6f2ec;
  --bg-elev: #fffdf9;
  --ink: #0f0e0c;
  --ink-2: #2a2824;
  --muted: #6b6760;
  --line: #e4ddd1;
  --line-strong: #cfc6b4;
  --accent: #ff6a1a;
  --accent-ink: #ffffff;
  --scene-stroke: rgba(15, 14, 12, 0.08);
  --scene-dot: rgba(15, 14, 12, 0.12);
  --shadow-sm: 0 1px 2px rgba(15, 14, 12, 0.04), 0 1px 1px rgba(15, 14, 12, 0.03);
  --shadow-md: 0 10px 30px -12px rgba(15, 14, 12, 0.18);

  --radius: 14px;
  --radius-lg: 24px;
  --font-sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", "Times New Roman", serif;
  --maxw: 1160px;
  --pad: clamp(1.25rem, 3vw, 2rem);
}

/* Dark theme — applied when user selects dark or when "auto" + system = dark */
:root[data-theme="dark"],
:root[data-theme="auto"] {
  /* auto falls back to media query below */
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #0f0e0c;
    --bg-elev: #181613;
    --ink: #f6f2ec;
    --ink-2: #e4ddd1;
    --muted: #a19b90;
    --line: #2a2824;
    --line-strong: #3a3731;
    --scene-stroke: rgba(246, 242, 236, 0.08);
    --scene-dot: rgba(246, 242, 236, 0.1);
    --shadow-md: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
  }
}

:root[data-theme="dark"] {
  --bg: #0f0e0c;
  --bg-elev: #181613;
  --ink: #f6f2ec;
  --ink-2: #e4ddd1;
  --muted: #a19b90;
  --line: #2a2824;
  --line-strong: #3a3731;
  --scene-stroke: rgba(246, 242, 236, 0.08);
  --scene-dot: rgba(246, 242, 236, 0.1);
  --shadow-md: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
}

/* ----- Base ----------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.3s ease, color 0.3s ease;
}

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

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
  position: relative;
  z-index: 1;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  border-radius: 8px;
}

/* ----- Scene (decorative scroll-driven shapes) ----------------------- */

.scene {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.scene__grid {
  position: absolute;
  inset: -10% -10% auto -10%;
  width: 120%;
  height: 120%;
  color: var(--scene-dot);
  opacity: 0.9;
  transform: translate3d(0, calc(var(--scroll, 0) * -0.04px), 0);
  transition: color 0.3s ease;
}
.scene__grid circle {
  fill: currentColor;
}

.scene__blob {
  position: absolute;
  width: 42vmax;
  height: 42vmax;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  pointer-events: none;
}
.scene__blob--a {
  top: -20vmax;
  right: -12vmax;
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--accent) 45%, transparent),
    transparent 70%
  );
  transform: translate3d(0, calc(var(--scroll, 0) * 0.08px), 0);
}
.scene__blob--b {
  bottom: -18vmax;
  left: -14vmax;
  width: 36vmax;
  height: 36vmax;
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--ink) 18%, transparent),
    transparent 70%
  );
  opacity: 0.3;
  transform: translate3d(0, calc(var(--scroll, 0) * -0.06px), 0);
}

.scene__ring {
  position: absolute;
  top: 22vh;
  left: -8vmax;
  width: 32vmax;
  height: 32vmax;
  stroke: var(--scene-stroke);
  transform: translate3d(0, calc(var(--scroll, 0) * 0.12px), 0)
    rotate(calc(var(--scroll-ratio, 0) * 60deg));
  transition: stroke 0.3s ease;
}

.scene__cross {
  position: absolute;
  top: 60vh;
  right: 8vw;
  width: 34px;
  height: 34px;
  stroke: var(--scene-stroke);
  transform: translate3d(0, calc(var(--scroll, 0) * -0.15px), 0)
    rotate(calc(var(--scroll-ratio, 0) * 180deg));
}

.scene__arc {
  position: absolute;
  bottom: -6vmax;
  right: -8vmax;
  width: 40vmax;
  height: 40vmax;
  stroke: var(--scene-stroke);
  transform: translate3d(0, calc(var(--scroll, 0) * -0.1px), 0);
}

.scene__line {
  position: absolute;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--line-strong) 20%,
    var(--line-strong) 80%,
    transparent
  );
  opacity: 0.7;
}
.scene__line--v {
  top: 10vh;
  bottom: 10vh;
  left: 50%;
  transform: translate3d(0, calc(var(--scroll, 0) * 0.04px), 0);
}

/* Hide the denser decorations on small screens to reduce noise */
@media (max-width: 720px) {
  .scene__ring,
  .scene__arc,
  .scene__line--v {
    display: none;
  }
  .scene__grid {
    opacity: 0.5;
  }
}

/* ----- Nav ------------------------------------------------------------ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.3s ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
}
.nav__brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  line-height: 1;
}
.logo--sm {
  font-size: 1.25rem;
}
.logo__deg {
  color: var(--accent);
  margin-left: 1px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
  margin-left: auto;
}
.nav__links a {
  text-decoration: none;
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav__links a:hover {
  color: var(--ink);
}
.nav__links .nav__cta {
  background: var(--ink);
  color: var(--bg);
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-weight: 600;
}
.nav__links .nav__cta:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

@media (max-width: 800px) {
  .nav__links a:not(.nav__cta) {
    display: none;
  }
}

/* Theme toggle */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink-2);
  cursor: pointer;
  transition: transform 0.2s ease, color 0.15s ease, border-color 0.15s ease,
    background 0.2s ease;
  position: relative;
}
.theme-toggle:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  transform: rotate(15deg);
}
.theme-toggle__icon {
  width: 18px;
  height: 18px;
  position: absolute;
  transition: opacity 0.2s ease, transform 0.3s ease;
}
.theme-toggle__icon--sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
}
.theme-toggle__icon--moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}
/* when dark is active, show the sun (to switch to light) */
:root[data-theme="dark"] .theme-toggle__icon--sun,
:root[data-theme="auto"] .theme-toggle__icon--sun {
  opacity: 0;
}
:root[data-theme="dark"] .theme-toggle__icon--moon,
:root[data-theme="auto"] .theme-toggle__icon--moon {
  opacity: 1;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] .theme-toggle__icon--sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
  :root[data-theme="auto"] .theme-toggle__icon--moon {
    opacity: 0;
    transform: rotate(90deg) scale(0.6);
  }
}
:root[data-theme="dark"] .theme-toggle__icon--sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}
:root[data-theme="dark"] .theme-toggle__icon--moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.6);
}

/* ----- Hero ----------------------------------------------------------- */

.hero {
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 7vw, 5rem);
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 1.25rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elev);
}
.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
  }
  50% {
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 8%, transparent);
  }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 7.5vw, 6.25rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 1.25rem;
  max-width: 14ch;
}
.hero__title span {
  display: block;
}
.hero__title--accent {
  font-style: italic;
}
.hero__title--accent::first-letter {
  color: var(--accent);
}

.hero__lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-2);
  max-width: 58ch;
  margin: 0 0 2rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

/* Buttons */
.btn {
  --pad-y: 0.85rem;
  --pad-x: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease,
    border-color 0.15s ease;
}
.btn--primary {
  background: var(--ink);
  color: var(--bg);
}
.btn--primary:hover {
  background: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}
.btn--full {
  width: 100%;
}

/* Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats__item {
  padding: 1.25rem 1rem;
  border-right: 1px solid var(--line);
}
.stats__item:last-child {
  border-right: 0;
}
.stats dt {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}
.stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}
@media (max-width: 720px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats__item {
    border-bottom: 1px solid var(--line);
  }
  .stats__item:nth-child(even) {
    border-right: 0;
  }
  .stats__item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

/* ----- Section shell ------------------------------------------------- */

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.section__head {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  max-width: 60ch;
}
.section__head--center {
  margin-inline: auto;
  text-align: center;
}
.section__kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 0.75rem;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}
.section__sub {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 60ch;
  margin-inline: auto;
}

.section__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.section__body p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--ink-2);
}
.section__body .muted {
  color: var(--muted);
  font-size: 0.95rem;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  margin-top: 1.25rem;
}
@media (max-width: 820px) {
  .section__grid {
    grid-template-columns: 1fr;
  }
}

/* ----- Cards (What I do) --------------------------------------------- */

.cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
}
.card__num {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 1rem;
}
.card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}
.card p {
  color: var(--ink-2);
  margin: 0;
  font-size: 0.98rem;
}
@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

/* ----- Projects ------------------------------------------------------ */

.projects {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.project {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.project:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.project__tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
}
.project__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin: 0.25rem 0 0;
}
.project p {
  color: var(--ink-2);
  margin: 0;
  flex: 1;
}
.project__link {
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  align-self: flex-start;
}
.project__link:hover {
  color: var(--accent);
}
.project__link--muted {
  color: var(--muted);
  border-bottom-color: var(--line);
  cursor: default;
}
@media (max-width: 900px) {
  .projects {
    grid-template-columns: 1fr;
  }
}

/* ----- Experience / Timeline ---------------------------------------- */

.era {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
}
.era + .era {
  border-top: 1px solid var(--line);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}
.era__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.5rem;
}
.era__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: -0.01em;
  margin: 0;
}
.era__dates {
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.era__note {
  color: var(--muted);
  margin: -0.5rem 0 1.5rem;
  max-width: 72ch;
}

.roles {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}
.roles::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}
.role {
  position: relative;
  padding: 0 0 1.75rem 2rem;
}
.role:last-child {
  padding-bottom: 0.5rem;
}
.role::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line-strong);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.role--current::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent);
}
.role__date {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.role__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}
.role p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.98rem;
  max-width: 72ch;
}

.clients {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.clients li {
  padding: 1rem 1rem 1rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  position: relative;
  transition: padding-left 0.2s ease;
}
.clients li:hover {
  padding-left: 0.75rem;
}
.clients li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.clients li:hover::before {
  width: 0.5rem;
}
.client__name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}
.client__name em {
  color: var(--accent);
  font-style: normal;
  font-weight: 500;
  font-size: 0.85rem;
  margin-left: 0.35rem;
}
.client__role {
  font-size: 0.85rem;
  color: var(--muted);
}
.client__flag {
  display: inline-block;
  width: fit-content;
  margin-top: 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.15rem 0.5rem;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

/* ----- Contact ------------------------------------------------------- */

.section--contact {
  background: var(--bg-elev);
}
.avatar-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 1.5rem;
}
.contact__avatar {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--line);
  box-shadow: var(--shadow-md);
  z-index: 1;
}

/* Concentric rings */
.avatar-ring {
  position: absolute;
  inset: 0;
  stroke: var(--scene-stroke);
  opacity: 0.7;
}
.avatar-ring--outer {
  animation: avatar-spin 90s linear infinite;
}
.avatar-ring--inner {
  animation: avatar-spin 60s linear infinite reverse;
}

/* Orbiting dots */
.avatar-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}
.avatar-dot--a {
  top: 6px;
  left: calc(50% - 2.5px);
  animation: avatar-pulse 3s ease-in-out infinite;
}
.avatar-dot--b {
  bottom: 18px;
  right: 12px;
  width: 4px;
  height: 4px;
  opacity: 0.35;
  animation: avatar-pulse 3s ease-in-out 1s infinite;
}
.avatar-dot--c {
  bottom: 18px;
  left: 12px;
  width: 3px;
  height: 3px;
  opacity: 0.25;
  animation: avatar-pulse 3s ease-in-out 2s infinite;
}

/* Small cross */
.avatar-cross {
  position: absolute;
  top: -6px;
  right: 10px;
  width: 18px;
  height: 18px;
  stroke: var(--scene-stroke);
  animation: avatar-spin 40s linear infinite;
}

/* Decorative arc */
.avatar-arc {
  position: absolute;
  inset: -10px;
  stroke: var(--scene-stroke);
  opacity: 0.5;
  animation: avatar-spin 120s linear infinite reverse;
}

@keyframes avatar-spin {
  to { transform: rotate(360deg); }
}
@keyframes avatar-pulse {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.5); }
}
.contact__centered {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}
.contact__centered p {
  color: var(--ink-2);
  max-width: 52ch;
  margin-inline: auto;
}
.contact__links {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.contact__links--row {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
}
.contact__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  width: fit-content;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.contact__links a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.email-ob {
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* ----- Footer -------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
  position: relative;
  z-index: 1;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.footer__name {
  font-size: 0.95rem;
  color: var(--muted);
}
.footer__meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ----- Reveal on scroll --------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* stagger children if a container has .reveal and children are list/grid items */
.cards.reveal .card,
.projects.reveal .project {
  transition-delay: calc(var(--i, 0) * 80ms);
}

/* ----- Motion preferences ------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .scene__grid,
  .scene__blob,
  .scene__ring,
  .scene__cross,
  .scene__arc,
  .scene__line {
    transform: none !important;
  }
}
