/* ==========================================================================
   Hans Daduya — portfolio
   Gala design language: paper, ink, sun amber. Plus Jakarta Sans throughout.
   Motion uses one property per job: `rotate` for resting tilts,
   `translate` for entrance/reveal, `transform` for hover.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --paper: #f9f9f7;
  --surface: #ffffff;
  --mist: #f4f4f2;
  --ink: #111118;
  --loam: #52483f;       /* body copy */
  --dusk: #6f6453;       /* eyebrows, meta */
  --sun: #d98a1e;        /* fills & accents only — never small text */
  --gold: #f4b63a;
  --amber-ink: #8f560b;  /* amber-coloured text on light surfaces */
  --cream: #ffe3a3;
  --cream-ink: #6b4500;
  --night: #17120d;
  --night-text: #d7c9b3;
  --live: #a8e63d;
  --rail: #e7e2d8;

  /* RGB channels for translucent variants */
  --paper-rgb: 249 249 247;
  --sun-rgb: 217 138 30;
  --cream-rgb: 255 227 163;
  --shadow-rgb: 31 26 20;

  --sunlit: linear-gradient(135deg, var(--gold), var(--sun));
  --shadow-soft: 0 20px 60px rgb(var(--shadow-rgb) / .05);
  --shadow-lift: 0 30px 70px rgb(var(--shadow-rgb) / .1);
  --ease: cubic-bezier(.2, .8, .2, 1);

  --max: 1240px;
  --gutter: 20px;
  --section-gap: clamp(64px, 10vh, 120px);

  --font: "Plus Jakarta Sans", "Jakarta Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Metric-matched fallback so the 136px name doesn't jump when the web font lands. */
@font-face {
  font-family: "Jakarta Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 104%;
  ascent-override: 98%;
  descent-override: 21%;
  line-gap-override: 0%;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
time { font-variant-numeric: tabular-nums; }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  translate: 0 -200%;
}
.skip-link:focus-visible { translate: none; outline-color: var(--sun); }

/* ---------- Shared type ---------- */
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dusk);
}
.eyebrow--gold { color: var(--gold); }
.eyebrow--on-sun { color: var(--ink); opacity: .78; }

.dot { color: var(--sun); }

.section { padding-top: var(--section-gap); scroll-margin-top: 24px; }
#work { scroll-margin-top: 16px; }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
}
.section__title {
  margin-top: 10px;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1;
  letter-spacing: -.035em;
  font-weight: 800;
  text-wrap: balance;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 700;
  color: var(--loam);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 22px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s;
}
.btn .icon { font-size: 16px; }
.btn--sun {
  background: var(--sunlit);
  color: var(--ink);
  box-shadow: 0 16px 40px rgb(var(--sun-rgb) / .32);
}
.btn--plain {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 8px 30px rgb(var(--shadow-rgb) / .06);
}
.btn--ghost {
  background: rgb(var(--paper-rgb) / .08);
  color: var(--paper);
}

/* Chips (non-interactive labels) */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--mist);
  font-size: 12px;
  font-weight: 600;
  color: var(--loam);
  white-space: nowrap;
}
.chips--night li {
  padding: 6px 12px;
  background: rgb(var(--paper-rgb) / .08);
  color: var(--paper);
}

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: fixed;
  top: 16px;
  inset-inline: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: calc(100% - 32px);
  margin-inline: auto;
  padding: 6px;
  border-radius: 999px;
  background: rgb(var(--paper-rgb) / .8);
  -webkit-backdrop-filter: blur(32px) saturate(1.4);
  backdrop-filter: blur(32px) saturate(1.4);
  box-shadow: 0 12px 40px rgb(var(--shadow-rgb) / .08);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav { background: rgb(var(--paper-rgb) / .94); }
}
.nav__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--sunlit);
  color: var(--ink);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -.02em;
  flex-shrink: 0;
}
.nav__links { display: none; align-items: center; gap: 2px; }
.nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--loam);
  transition: background-color .2s, color .2s;
}
.nav__links a[aria-current="true"] { background: var(--mist); color: var(--ink); }
.nav__cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .2s, color .2s;
}
@media (min-width: 600px) {
  .nav__links { display: flex; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(112px, 16svh, 180px) 0 clamp(48px, 8svh, 96px);
}
.hero__glow {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60vw;
  max-width: 760px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(var(--cream-rgb) / .55), rgb(var(--cream-rgb) / 0));
  pointer-events: none;
  animation: drift 18s ease-in-out infinite;
}
.hero__grid {
  position: relative;
  display: grid;
  gap: 48px;
}
.hero__copy { min-width: 0; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 8px 30px rgb(var(--shadow-rgb) / .05);
  font-size: 12px;
  font-weight: 600;
  color: var(--loam);
}
.status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  animation: pulse 2s ease-out infinite;
}
.hero .eyebrow { margin-top: 28px; }

.hero__name {
  margin-top: 10px;
  font-size: clamp(56px, 10vw, 136px);
  line-height: .92;
  letter-spacing: -.045em;
  font-weight: 800;
}
.hero__lede {
  margin-top: 28px;
  max-width: 520px;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.5;
  color: var(--loam);
  text-wrap: pretty;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.socials { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: var(--dusk);
  font-size: 20px;
  transition: background-color .2s, color .2s;
}

.hero__media {
  position: relative;
  min-width: 0;
  padding-bottom: 8px;
}
.portrait {
  width: min(100% - 24px, 380px);
  aspect-ratio: 4 / 5;
  margin-inline: auto;
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 40px 80px rgb(var(--shadow-rgb) / .12);
  rotate: 2deg;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }

.badge {
  position: absolute;
  left: 0;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 20px 50px rgb(var(--shadow-rgb) / .12);
  rotate: -3deg;
  transition: transform .2s var(--ease);
}
.badge__sun { width: 36px; height: 36px; animation: spin 24s linear infinite; }
.badge__label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dusk);
}
.badge__title {
  display: block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
}

@media (max-width: 479px) {
  /* keep the badge over the (centred) portrait on narrow phones */
  .badge { left: calc((100% - min(100% - 24px, 380px)) / 2 + 8px); bottom: 16px; padding: 10px 14px 10px 10px; }
  .badge__sun { width: 30px; height: 30px; }
  .badge__title { font-size: 14px; }
}
@media (min-width: 480px) and (max-width: 959px) {
  .badge { left: max(0px, calc(50% - 260px)); }
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: end;
  }
  .portrait { width: min(100% - 24px, 440px); margin: 0 12px 0 auto; }
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee {
  overflow: hidden;
  padding: 18px 0;
  background: var(--mist);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee:focus-visible { outline-offset: -3px; }
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__list {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  min-width: 100vw;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dusk);
  white-space: nowrap;
}
.marquee__list li { display: flex; align-items: center; gap: 40px; }
.marquee__list li::after { content: "✦"; color: var(--sun); letter-spacing: 0; }

/* ==========================================================================
   Featured: Gala
   ========================================================================== */
.gala {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--night);
  color: var(--paper);
  padding: clamp(28px, 5vw, 64px) clamp(22px, 5vw, 64px);
}
.gala :focus-visible { outline-color: var(--gold); }
.gala__glow {
  position: absolute;
  right: -20%;
  top: -40%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(var(--sun-rgb) / .35), rgb(var(--sun-rgb) / 0));
  pointer-events: none;
}
.gala__grid { position: relative; display: grid; gap: 48px; align-items: center; }
.gala__copy { min-width: 0; }
.gala__head { display: flex; align-items: center; gap: 12px; }
.gala__head img { width: 40px; height: 40px; flex-shrink: 0; }
.gala__title {
  margin-top: 24px;
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 800;
  text-wrap: balance;
}
.gala__lede {
  margin-top: 20px;
  max-width: 540px;
  font-size: 17px;
  color: var(--night-text);
  text-wrap: pretty;
}
.gala__points { display: grid; gap: 14px; margin-top: 28px; font-size: 15px; line-height: 1.5; }
.gala__points li { display: flex; gap: 12px; }
.gala__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sunlit);
  color: var(--ink);
  font-size: 15px;
  flex-shrink: 0;
}
.gala .chips { margin-top: 28px; }
.gala__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.gala__actions .btn { font-size: 12px; }

.gala__media { display: flex; justify-content: center; min-width: 0; }
.phone {
  width: min(260px, 87%);
  padding: 10px;
  border-radius: 40px;
  background: #0d0d14;
  box-shadow: 0 60px 100px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .08);
  rotate: -4deg;
}
.phone img {
  width: 100%;
  aspect-ratio: 599 / 1304;
  object-fit: cover;
  border-radius: 31px;
}

@media (min-width: 960px) {
  .gala__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 64px); }
  .phone { width: min(300px, 100%); }
}

/* ==========================================================================
   Projects
   ========================================================================== */
.projects { display: grid; gap: 16px; }
@media (min-width: 640px) { .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .projects { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  padding: 28px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  --lift-transition: transform .25s var(--ease), box-shadow .25s;
  transition: var(--lift-transition);
}
.card__meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card__year {
  font-size: 11px;
  font-weight: 600;
  color: var(--dusk);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.award {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 100%;
  margin-bottom: 12px;
  padding: 6px 12px 6px 9px;
  border-radius: 14px;
  background: var(--cream);
  color: var(--cream-ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}
.award .icon { font-size: 14px; margin-top: 1px; }
.card__title { font-size: 24px; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
.card__body { margin-top: 10px; font-size: 15px; color: var(--loam); text-wrap: pretty; }
.card .chips { margin-top: auto; }
.card__links { display: flex; flex-wrap: wrap; gap: 16px; }
.card__links a,
.card__private {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 700;
}
.card__links .icon { font-size: 16px; }
.card__private { font-weight: 600; color: var(--dusk); }

/* ==========================================================================
   Experience — "the route so far", drawn like a Gala itinerary
   ========================================================================== */
.xp { display: grid; gap: 40px; }
.xp__intro { min-width: 0; }
.xp__lede { margin-top: 20px; max-width: 440px; color: var(--loam); text-wrap: pretty; }

.edu {
  margin-top: 32px;
  padding: 24px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.edu__title { margin-top: 10px; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.edu__school { margin-top: 4px; font-size: 14px; color: var(--loam); }
.edu__body { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--loam); }

.route { display: grid; min-width: 0; }
.stop {
  position: relative;
  display: grid;
  --when: 44px;
  --node: 18px;
  --gap: 10px;
  grid-template-columns: var(--when) var(--node) minmax(0, 1fr);
  column-gap: var(--gap);
  padding-bottom: 16px;
}
/* the rail: runs from this stop's dot down to the next one */
.stop::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: -24px;
  left: calc(var(--when) + var(--gap) + var(--node) / 2 - 1px);
  width: 2px;
  border-radius: 2px;
  background: var(--rail);
}
.stop:last-child::before { display: none; }

.stop__when {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 18px;
  line-height: 1.1;
}
.stop__year { font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.stop__month { font-size: 12px; font-weight: 600; color: var(--dusk); }

.stop__node {
  position: relative;
  z-index: 1;
  width: var(--node);
  height: var(--node);
  margin-top: 20px;
  border-radius: 50%;
  background: var(--rail);
  box-shadow: 0 0 0 4px var(--paper);
}
.stop--now .stop__node { background: var(--sun); animation: pulse-sun 2.4s ease-out infinite; }

.stop__card {
  min-width: 0;
  padding: 20px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.stop__chip {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--cream-ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.stop__title { font-size: 19px; line-height: 1.2; letter-spacing: -.02em; font-weight: 800; }
.stop__org { margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--amber-ink); }
.stop__meta {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--dusk);
  font-variant-numeric: tabular-nums;
}
.stop__body { margin-top: 12px; font-size: 15px; color: var(--loam); text-wrap: pretty; }
.stop .chips { margin-top: 14px; }

@media (min-width: 640px) {
  .stop { --when: 56px; --gap: 16px; }
  .stop__year { font-size: 17px; }
  .stop__card { padding: 24px; }
}

@media (min-width: 960px) {
  .xp { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 5vw, 72px); }
}
@media (min-width: 960px) and (min-height: 720px) {
  .xp__intro { position: sticky; top: 100px; align-self: start; }
}

/* ==========================================================================
   Stack
   ========================================================================== */
.stack {
  border-radius: 28px;
  background: var(--mist);
  padding: clamp(24px, 4vw, 56px);
}
.stack .section__head { margin-bottom: 32px; }
.stack__note { max-width: 380px; font-size: 14px; line-height: 1.5; color: var(--loam); }
.stack__grid { display: grid; gap: 12px; }
.tool { min-width: 0; padding: 24px; border-radius: 18px; background: var(--surface); }
.tool__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
}
.tool__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #fff7ed;
  color: var(--sun);
  font-size: 18px;
}
.tool .chips { margin-top: 18px; }
.tool .chips li { padding: 6px 11px; font-size: 13px; color: var(--ink); }

/* 2 columns: dense packing lets Infra sit beside AI & data; Backend takes a full row */
@media (min-width: 640px) and (max-width: 1023px) {
  .stack__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; }
  .tool--full-at-2 { grid-column: span 2; }
}
/* 3 + 2: three narrow groups, then the two big ones share a row */
@media (min-width: 1024px) {
  .stack__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tool { grid-column: span 2; }
  .tool--wide { grid-column: span 3; }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--sunlit);
  color: var(--ink);
  padding: clamp(28px, 6vw, 80px) clamp(22px, 6vw, 80px);
  box-shadow: 0 40px 100px rgb(var(--sun-rgb) / .28);
}
.contact :focus-visible { outline-color: var(--ink); }
.contact__glow {
  position: absolute;
  right: -10%;
  bottom: -40%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(var(--cream-rgb) / .55), rgb(var(--cream-rgb) / 0));
  pointer-events: none;
}
.contact__grid { position: relative; display: grid; gap: 32px; align-items: end; }
.contact__title {
  margin-top: 12px;
  font-size: clamp(34px, 5.5vw, 72px);
  line-height: .98;
  letter-spacing: -.04em;
  font-weight: 800;
  text-wrap: balance;
}
.contact__lede { margin-top: 20px; max-width: 460px; font-size: 17px; line-height: 1.5; text-wrap: pretty; }
.contact__actions { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .36);
  font-size: 15px;
  font-weight: 700;
  transition: transform .2s var(--ease), background-color .2s;
}
.row--solid { background: var(--surface); box-shadow: 0 12px 30px rgba(107, 69, 0, .18); }
.row__label { display: flex; align-items: center; gap: 12px; min-width: 0; }
.row__icon { font-size: 20px; }
.row--solid .row__icon { color: var(--amber-ink); }
.row__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pills a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .36);
  font-size: 13px;
  font-weight: 700;
  transition: background-color .2s;
}

@media (max-width: 479px) {
  .contact { padding-inline: 18px; }
  .row { padding: 14px 16px; font-size: 14px; gap: 8px; }
  .row__label { gap: 10px; }
}
@media (min-width: 960px) {
  .contact__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
}

/* ---------- Footer ---------- */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-block: 32px clamp(40px, 6vh, 72px);
  font-size: 12px;
  color: var(--dusk);
}
.footer a { display: inline-block; padding-block: 13px; color: var(--loam); font-weight: 700; }

/* ==========================================================================
   Hover (pointer devices only)
   ========================================================================== */
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn--plain:hover { background: var(--mist); }
  .btn--ghost:hover { background: rgb(var(--paper-rgb) / .16); }
  .nav__links a:hover { background: var(--mist); color: var(--ink); }
  .nav__cta:hover { background: var(--sun); color: var(--ink); }
  .socials a:hover { background: var(--surface); color: var(--amber-ink); }
  .text-link:hover,
  .card__links a:hover,
  .footer a:hover { color: var(--amber-ink); }
  .badge:hover { transform: translateY(-3px); }
  .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
  .row:hover { transform: translateX(6px); background: rgba(255, 255, 255, .5); }
  .row--solid:hover { background: var(--surface); }
  .pills a:hover { background: var(--surface); }
}

/* ==========================================================================
   Motion
   ========================================================================== */
@keyframes rise { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: none; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(168, 230, 61, .7); }
  70% { box-shadow: 0 0 0 10px rgba(168, 230, 61, 0); }
}
@keyframes pulse-sun {
  0% { box-shadow: 0 0 0 4px var(--paper), 0 0 0 4px rgb(var(--sun-rgb) / .55); }
  70%, 100% { box-shadow: 0 0 0 4px var(--paper), 0 0 0 14px rgb(var(--sun-rgb) / 0); }
}
@keyframes drift {
  0%, 100% { translate: 0 0; scale: 1; }
  50% { translate: -6% 8%; scale: 1.08; }
}
@keyframes spin { to { transform: rotate(360deg); } }

.rise { animation: rise .9s var(--ease) both; }
.rise--1 { animation-delay: .08s; }
.rise--2 { animation-delay: .16s; }
.rise--3 { animation-delay: .26s; }
.rise--4 { animation-delay: .36s; }
.rise--5 { animation-delay: .46s; }
.rise--6 { animation-delay: .3s; animation-duration: 1s; }

/* Scroll reveal — site.js only adds .reveal to elements that start below the fold */
.reveal {
  opacity: 0;
  translate: 0 28px;
  transition: opacity .8s var(--ease), translate .8s var(--ease), var(--lift-transition, opacity .8s);
}
.reveal.is-in { opacity: 1; translate: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; translate: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { width: auto; }
  .marquee__list { flex-wrap: wrap; justify-content: center; min-width: 0; padding-inline: var(--gutter); gap: 12px 24px; white-space: normal; }
  .marquee__list li { gap: 24px; }
  .marquee__list[aria-hidden="true"] { display: none; }
}

@media print {
  .nav, .skip-link, .hero__glow, .marquee { display: none; }
  .reveal { opacity: 1; translate: none; transition: none; }
  *, *::before, *::after { animation: none !important; }
}
