/* ═══════════════════════════════════════════════════════════════════
   UGC Creator Portfolio
   Design language: Apple - restrained motion, system typography,
   translucent materials, size-specific tracking, adaptive light/dark.
   No dependencies. No build step.
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. Tokens ─────────────────────────────────────────────────── */

:root {
  color-scheme: light dark;

  /* Motion - one spring-ish curve used everywhere, so the whole site
     decelerates with the same personality. */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-soft: cubic-bezier(0.25, 0.9, 0.25, 1);
  --dur-fast: 140ms;
  --dur: 400ms;
  --dur-slow: 620ms;

  /* Layout */
  --pad: clamp(20px, 5vw, 40px);
  --max: 1120px;
  --nav-h: 56px;
  --radius: 18px;
  --radius-sm: 12px;

  /* Light palette (Apple off-white, not pure white) */
  --bg: #fbfbfd;
  --bg-alt: #f2f2f5;
  --card: #ffffff;
  --chrome: rgba(251, 251, 253, 0.72);
  --fill: rgba(0, 0, 0, 0.045);
  --fill-strong: rgba(0, 0, 0, 0.075);

  --text: #1d1d1f;
  --text-2: #56565c;
  --text-3: #86868b;

  --line: rgba(0, 0, 0, 0.11);
  --line-soft: rgba(0, 0, 0, 0.06);

  --accent: #0071e3;
  --accent-solid: #0071e3;   /* buttons: white on this is 4.7:1 */

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 14px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.05), 0 20px 44px rgba(0, 0, 0, 0.11);

  /* Category colours (light - deepened for legibility on white) */
  --health: #1f9d4d;
  --fitness: #cf7000;
  --running: #de1c48;
  --tech: #5250d0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #0b0b0d;
    --card: #131315;
    --chrome: rgba(12, 12, 14, 0.66);
    --fill: rgba(255, 255, 255, 0.065);
    --fill-strong: rgba(255, 255, 255, 0.11);

    --text: #f5f5f7;
    --text-2: #a8a8ae;
    --text-3: #86868b;

    --line: rgba(255, 255, 255, 0.13);
    --line-soft: rgba(255, 255, 255, 0.07);

    --accent: #0a84ff;        /* brighter, for text on black */
    --accent-solid: #0071e3;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5), 0 4px 14px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.5), 0 20px 44px rgba(0, 0, 0, 0.55);

    /* Vivid again - dark backgrounds carry saturation without hurting contrast */
    --health: #30d158;
    --fitness: #ff9f0a;
    --running: #ff375f;
    --tech: #7d7aff;
  }
}

.cat-health  { --c: var(--health); }
.cat-fitness { --c: var(--fitness); }
.cat-running { --c: var(--running); }
.cat-tech    { --c: var(--tech); }

/* ── 2. Base ───────────────────────────────────────────────────── */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0;              /* body sits near zero - see §15 tracking */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
svg { display: block; }
a { color: inherit; }

/* Every icon in the site is stroke-based at a consistent weight. */
svg[viewBox] {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--text); color: var(--bg);
  font-size: 0.875rem; font-weight: 500; text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

/* ── 3. Typography scale ───────────────────────────────────────── */
/* Tracking is size-specific: large type tightens, small type opens up. */

.hero-name {
  font-size: clamp(2.75rem, 11vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.sec-title {
  font-size: clamp(1.75rem, 5.2vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.024em;
  max-width: 18ch;
}

.contact-title {
  font-size: clamp(2.25rem, 8vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;         /* small type opens up */
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.contact-inner .eyebrow { justify-content: center; }

.sec-head { margin-bottom: clamp(2.5rem, 6vw, 4rem); }

.sec-lede {
  margin-top: 1rem;
  max-width: 46ch;
  font-size: clamp(1rem, 2.4vw, 1.1875rem);
  line-height: 1.55;
  color: var(--text-2);
}

/* ── 4. Buttons ────────────────────────────────────────────────── */
/* Press is fast (feedback on pointer-down), release decelerates. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.375rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--dur) var(--ease),
    background-color var(--dur-fast) linear,
    border-color var(--dur-fast) linear,
    opacity var(--dur-fast) linear;
}
.btn:active {
  transform: scale(0.965);
  transition-duration: var(--dur-fast);
}

.btn-primary { background: var(--accent-solid); color: #fff; }
.btn-primary:hover { background: color-mix(in oklab, var(--accent-solid) 86%, #000); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--fill); border-color: transparent; }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg {
  padding: 0.9375rem 1.75rem;
  font-size: 1.0625rem;
}

/* ── 5. Nav - translucent material, content scrolls under ──────── */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top);
  background: transparent;
  transition: background-color var(--dur) var(--ease-soft);
}
.nav::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--chrome);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-soft);
  pointer-events: none;
}
.nav.is-scrolled::after { opacity: 1; }

.nav-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--nav-h);
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.nav-brand {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  text-decoration: none;
  margin-right: auto;
}

.nav-links { display: none; gap: 0.25rem; }
.nav-links a {
  position: relative;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--text-2);
  text-decoration: none;
  transition: color var(--dur-fast) linear, background-color var(--dur-fast) linear;
}
.nav-links a:hover { color: var(--text); background: var(--fill); }
.nav-links a[aria-current="true"] { color: var(--accent); font-weight: 500; }

@media (min-width: 700px) {
  .nav-links { display: flex; }
  .nav-brand { margin-right: 0; }
  .nav-links { margin-inline: auto; }
}

/* ── 6. Hero ───────────────────────────────────────────────────── */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 88vh;
  min-height: 88svh;
  padding-top: calc(var(--nav-h) + clamp(2rem, 7vw, 4.5rem));
  padding-bottom: clamp(4rem, 12vw, 7rem);
  overflow: hidden;
}

/* Static wash - depth without a moving background (§14). */
.hero-wash {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 90%;
  pointer-events: none;
  background:
    radial-gradient(44% 54% at 14% 18%, color-mix(in oklab, var(--accent) 30%, transparent), transparent 70%),
    radial-gradient(42% 50% at 86% 8%, color-mix(in oklab, var(--tech) 24%, transparent), transparent 70%),
    radial-gradient(48% 46% at 58% 48%, color-mix(in oklab, var(--running) 15%, transparent), transparent 72%);
  filter: blur(24px);
  opacity: 0.9;
}
@media (prefers-color-scheme: dark) {
  .hero-wash { opacity: 0.55; }
}

/* Type on the left, photo on the right. On mobile the photo leads and the
   type stacks under it. */
.hero-grid {
  position: relative;
  display: grid;
  gap: clamp(1.25rem, 5vw, 4rem);
  align-items: center;
}

.hero-photo { order: -1; }

.hero-photo img {
  width: 100%;
  max-width: 235px;
  /* The width/height attributes on the tag reserve space against layout
     shift, but they also count as a set height - which switches
     aspect-ratio off. height:auto hands control back to the ratio. */
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--line-soft);
  /* The colour cast under the photo is what ties it to the accent. */
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.06),
    0 22px 55px color-mix(in oklab, var(--accent) 26%, transparent);
}

@media (min-width: 880px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr); }
  .hero-photo { order: 0; }
  .hero-photo img { max-width: 400px; margin-left: auto; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem 0.375rem 0.6875rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--fill);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--text-2);
  margin-bottom: 1.25rem;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--health);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--health) 55%, transparent);
  animation: pulse 2.4s var(--ease-soft) infinite;
}
@keyframes pulse {
  0%          { box-shadow: 0 0 0 0 color-mix(in oklab, var(--health) 50%, transparent); }
  70%, 100%   { box-shadow: 0 0 0 7px transparent; }
}

.hero-tagline {
  margin-top: 1.125rem;
  font-size: clamp(1.0625rem, 3.6vw, 1.5rem);
  line-height: 1.35;
  letter-spacing: -0.014em;
  color: var(--text-2);
}
.hero-role { color: var(--accent); font-weight: 500; }
.hero-cats { color: var(--text); font-weight: 500; }

.hero-sub {
  margin-top: 1.25rem;
  max-width: 42ch;
  font-size: clamp(1rem, 2.4vw, 1.125rem);
  line-height: 1.55;
  color: var(--text-3);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}
.hero-actions .btn { flex: 1 1 auto; min-width: 12rem; }
@media (min-width: 560px) {
  .hero-actions .btn { flex: 0 0 auto; }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(1.25rem, 4vw, 2.25rem);
  translate: -50% 0;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: var(--text-3);
  transition: color var(--dur-fast) linear, transform var(--dur) var(--ease);
}
.scroll-cue svg { width: 22px; height: 22px; }
.scroll-cue:hover { color: var(--accent); }
.scroll-cue:active { transform: scale(0.9); }

/* ── 7. Sections ───────────────────────────────────────────────── */

.section { padding-block: clamp(4.5rem, 12vw, 8.75rem); }
.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line-soft);
}

/* ── 8. About ──────────────────────────────────────────────────── */

/* Prose left, the quick-facts table right. */
.about-body {
  display: grid;
  gap: clamp(1.75rem, 5vw, 3.5rem);
}
@media (min-width: 860px) {
  .about-body {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    align-items: start;
  }
}

.prose {
  display: grid;
  gap: 1.125rem;
  max-width: 60ch;
  font-size: clamp(1rem, 2.2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--text-2);
}

.about-facts {
  display: grid;
  gap: 0;
  border-top: 2px solid var(--accent);
}
.about-facts li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8125rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.9375rem;
}
.about-facts span { color: var(--text-3); }

.niche-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 620px)  { .niche-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .niche-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }

.niche {
  padding: clamp(1.25rem, 3vw, 1.625rem);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
@media (hover: hover) {
  .niche:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: color-mix(in oklab, var(--c) 32%, transparent);
  }
}

.niche-icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 13px;
  margin-bottom: 1rem;
  color: var(--c);
  background: color-mix(in oklab, var(--c) 12%, transparent);
}
.niche-icon svg { width: 22px; height: 22px; stroke-width: 1.7; }

.niche h3 {
  font-size: 1.0625rem;
  letter-spacing: -0.012em;
  margin-bottom: 0.4375rem;
}
.niche p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-2);
}

/* ── 10. Work - filter ─────────────────────────────────────────── */

.filter-scroll {
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  /* Fade the edge instead of a hard cut when the row overflows. */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 14px, #000 calc(100% - 14px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 14px, #000 calc(100% - 14px), transparent);
}
.filter-scroll::-webkit-scrollbar { display: none; }

.filter {
  position: relative;
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  margin: 0 1px;
  border-radius: 999px;
  background: var(--fill);
  border: 1px solid var(--line-soft);
}

/* The one physically-moving element: springs between segments. */
.filter-pill {
  position: absolute;
  top: 3px;
  left: 0;
  height: calc(100% - 6px);
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  will-change: transform, width;
  pointer-events: none;
}

.filter-btn {
  position: relative;
  z-index: 1;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.004em;
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
/* Narrow phones: tighten the segments so all five fit without scrolling. */
@media (max-width: 400px) {
  .filter-btn { padding-inline: 0.75rem; font-size: 0.8125rem; }
}

.filter-btn:hover { color: var(--text); }
.filter-btn.is-active { color: var(--accent); }
.filter-btn:active { transform: scale(0.95); transition-duration: var(--dur-fast); }

/* ── 11. Work - grid ───────────────────────────────────────────── */

.work-grid {
  display: grid;
  gap: clamp(0.75rem, 2.2vw, 1.25rem);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px)  { .work-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .work-grid { grid-template-columns: repeat(4, 1fr); } }

.work-card {
  /* FLIP moves live on this element only, so they never fight the
     reveal transform on .work-card-in. */
  transition:
    transform var(--dur-slow) var(--ease),
    opacity 240ms linear;
}
.work-card[hidden] { display: none !important; }
.work-card.is-entering { opacity: 0; transform: scale(0.94); }

.work-card-in { height: 100%; }

.card-media {
  position: relative;
  aspect-ratio: 9 / 16;      /* vertical - the format UGC actually ships in */
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(155deg,
      color-mix(in oklab, var(--c) 15%, var(--card)) 0%,
      var(--card) 62%);
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
@media (hover: hover) {
  .work-card-in:hover .card-media {
    box-shadow: var(--shadow-lg);
    border-color: color-mix(in oklab, var(--c) 34%, transparent);
  }
  .work-card-in:hover .card-glyph { transform: scale(1.08); color: var(--c); }
}

.card-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* When a real image is present, the placeholder furniture steps aside. */
.work-card.has-img .card-glyph,
.work-card.has-img .card-status { display: none; }

.card-status {
  position: absolute;
  top: 10px; left: 10px;
  padding: 0.25rem 0.5625rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--c) 14%, transparent);
  color: var(--c);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.card-glyph {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  color: var(--text-3);
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}
.card-glyph svg { width: 22px; height: 22px; fill: currentColor; stroke: none; margin-left: 2px; }

.card-meta { padding: 0.75rem 0.25rem 0; }
.card-meta h3 {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.card-tag {
  margin-top: 0.1875rem;
  font-size: 0.8125rem;
  letter-spacing: 0.005em;
  color: var(--text-3);
}

.work-note {
  margin-top: clamp(2rem, 5vw, 3rem);
  text-align: center;
  font-size: 0.9375rem;
  color: var(--text-3);
}

/* ── 12. Services ──────────────────────────────────────────────── */

.services {
  border-top: 1px solid var(--line);
  max-width: 60rem;
}
.service {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 0.5rem 1rem;
  align-items: start;
  padding: clamp(1.375rem, 3.5vw, 2rem) 0;
  border-bottom: 1px solid var(--line-soft);
}
@media (min-width: 700px) {
  .service { grid-template-columns: 4.5rem 1fr; gap: 2rem; }
}

.service-num {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  padding-top: 0.3rem;
}
.service h3 {
  font-size: clamp(1.0625rem, 2.6vw, 1.25rem);
  letter-spacing: -0.014em;
  margin-bottom: 0.375rem;
}
.service p {
  max-width: 52ch;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-2);
}

/* ── 13. Contact ───────────────────────────────────────────────── */

.contact { position: relative; overflow: hidden; }
.contact::before {
  content: "";
  position: absolute;
  left: -10%; right: -10%; top: 0;
  height: 100%;
  background: radial-gradient(44% 48% at 50% 40%,
    color-mix(in oklab, var(--accent) 22%, transparent), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}
.contact-inner { position: relative; text-align: center; }
.contact-inner .eyebrow { margin-bottom: 1rem; }

.contact-lede {
  margin: 1.25rem auto 0;
  max-width: 44ch;
  font-size: clamp(1rem, 2.4vw, 1.1875rem);
  line-height: 1.55;
  color: var(--text-2);
}

/* A long address wraps instead of pushing the page sideways. */
.contact .btn-primary {
  margin-top: 2.25rem;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}

.socials {
  display: grid;
  gap: 0.5rem;
  margin: clamp(2.5rem, 6vw, 3.5rem) auto 0;
  max-width: 24rem;
}
/* Flex rather than a fixed 3-up, so the row stays centred and evenly sized
   whether there are two profiles or three. */
@media (min-width: 700px) {
  .socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 46rem;
    gap: 0.75rem;
  }
  .socials li { flex: 0 1 14rem; }
}

.socials a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--card);
  text-decoration: none;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
@media (hover: hover) {
  .socials a:hover {
    transform: translateY(-2px);
    border-color: color-mix(in oklab, var(--accent) 45%, transparent);
    box-shadow: var(--shadow-sm);
  }
}
.socials a:active { transform: scale(0.98); transition-duration: var(--dur-fast); }

.social-icon { color: var(--text); flex: none; }
.social-icon svg { width: 20px; height: 20px; }
.social-name { font-size: 0.9375rem; font-weight: 500; }
.social-handle { margin-left: auto; font-size: 0.875rem; color: var(--text-3); }

/* ── 14. Footer ────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--line-soft);
  padding-block: 2rem;
  padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  font-size: 0.875rem;
  color: var(--text-3);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.footer-top { text-decoration: none; transition: color var(--dur-fast) linear; }
.footer-top:hover { color: var(--accent); }

/* ── 15. Scroll reveal ─────────────────────────────────────────── */
/* Only applied when JS is on, so the page is fully readable without it. */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 520ms var(--ease-soft),
    transform var(--dur-slow) var(--ease);
  transition-delay: calc(var(--d, 0) * 70ms);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ── 16. Accessibility preferences ─────────────────────────────── */

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

  /* Reduced motion is a gentler equivalent, not the absence of feedback:
     keep cross-fades, drop travel and overshoot. */
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 160ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { transform: none; transition-delay: 0ms; }
  .work-card { transition: opacity 160ms linear !important; }
  .work-card.is-entering { transform: none; }
  .niche:hover, .socials a:hover, .work-card-in:hover .card-media { transform: none; }
  .btn:active, .filter-btn:active, .socials a:active, .scroll-cue:active { transform: none; }
  .badge-dot { animation: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .nav::after {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .hero-wash, .contact::before { display: none; }
}

@media (prefers-contrast: more) {
  :root {
    --text-2: var(--text);
    --line: currentColor;
    --line-soft: rgba(128, 128, 128, 0.55);
  }
  .btn-ghost, .niche, .socials a, .card-media, .hero-photo img { border-width: 1.5px; }
  .hero-wash, .contact::before { display: none; }
}

@media print {
  .nav, .scroll-cue, .filter-scroll, .hero-wash, .footer-top { display: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .section { padding-block: 1.5rem; }
}
