/*
 * TYLER PORTFOLIO — DOCUMENTED STYLESHEET
 *
 * Organization:
 * 01 Design tokens and themes       09 Capabilities
 * 02 Global defaults                10 Web Projects
 * 03 Accessibility and utilities    11 Experience
 * 04 Header and navigation          12 Creative Lab
 * 05 Hero and sun clock             13 Contact and footer
 * 06 Shared section primitives      14 Lightbox
 * 07 What I Bring                   15 Responsive layouts
 * 08 Work banner and accordion      16 Reduced-motion overrides
 *
 * Reusable values are CSS custom properties. Most decoration is produced with
 * gradients and pseudo-elements, which avoids extra image downloads. JavaScript
 * changes state through data attributes, utility classes, and custom properties;
 * those integration points are documented beside the relevant rules.
 */

/* ==========================================================================
   01. DESIGN TOKENS AND DAY/NIGHT THEMES
   Change these values first when rebranding. Day mode uses :root; Night mode
   overrides only the properties that require different contrast or intensity.
   ========================================================================== */
:root {
  --ink: #0a1b2b;
  --ink-soft: #18364c;
  --blue: #348eee;
  --aqua: #7ef0d5;
  --sun: #f2a93c;
  --sky: #d9f2ff;
  --paper: #f3f5f0;
  --paper-warm: #ebece6;
  --white: #ffffff;
  --muted: #617180;
  --line: rgba(10, 27, 43, 0.15);
  --line-dark: rgba(255, 255, 255, 0.16);
  --pattern-blue: rgba(52, 142, 238, 0.055);
  --pattern-aqua: rgba(126, 240, 213, 0.1);
  --pattern-neutral: rgba(10, 27, 43, 0.04);
  --shadow: 0 24px 70px rgba(10, 27, 43, 0.14);
  --radius: 22px;
  --shell: min(1440px, calc(100vw - 64px));
}

/* ==========================================================================
   02. GLOBAL DEFAULTS
   A small reset creates predictable sizing, typography, links, media, and form
   controls without loading a framework or third-party reset stylesheet.
   ========================================================================== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  color-scheme: light;
  overflow-x: hidden;
}

html[data-theme="night"] {
  --ink-soft: #c4d5df;
  --muted: #9fb3c0;
  --line: rgba(231, 244, 252, 0.15);
  --paper: #07131e;
  --paper-warm: #0c1c29;
  --pattern-blue: rgba(52, 142, 238, 0.12);
  --pattern-aqua: rgba(126, 240, 213, 0.09);
  --pattern-neutral: rgba(255, 255, 255, 0.035);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  color-scheme: dark;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s ease, color 0.35s ease;
}

html[data-theme="night"] body {
  color: #eaf4fa;
}

body.no-scroll {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

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

/* ==========================================================================
   03. ACCESSIBILITY AND GLOBAL UTILITIES
   `.sr-only` keeps meaningful text available to screen readers. `.skip-link`
   appears on keyboard focus. `[hidden]` is also used by accordion and lightbox
   JavaScript, so its forced display rule must remain authoritative.
   ========================================================================== */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--aqua);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 24px;
  top: -80px;
  z-index: 1000;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--aqua);
  color: var(--ink);
  font-weight: 800;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 18px;
}

.section-shell {
  width: var(--shell);
  margin-inline: auto;
}

#main-content > section {
  position: relative;
}

/* Fixed Back to Top control. site.js toggles `.is-visible` after the hero. */
/* Circular dial: the rim doubles as a scroll-progress ring (see the SVG in
   index.html and the [data-scroll-ring] writer in site.js). The ring replaces
   the old 1px border as the button's edge. */
.back-to-top {
  position: fixed;
  right: clamp(18px, 2.2vw, 32px);
  bottom: clamp(18px, 2.2vw, 32px);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(10, 27, 43, 0.9);
  box-shadow: 0 14px 34px rgba(10, 27, 43, 0.28);
  color: var(--white);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  visibility: hidden;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.back-to-top-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.back-to-top-ring circle {
  fill: none;
  stroke-width: 3;
}

.back-to-top-ring-track {
  stroke: rgba(255, 255, 255, 0.22);
}

.back-to-top-ring-progress {
  stroke: var(--aqua);
  stroke-linecap: round;
  /* pathLength="100" normalizes the circumference; dashoffset 100 = empty
     ring, 0 = full. site.js writes 100 − scrollPercent per animation frame,
     so no transition here — the scroll position IS the animation. The circle
     (not the svg) rotates so the fill starts at 12 o'clock while the Uptime
     motif in the same viewBox stays upright. */
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transform: rotate(-90deg);
  transform-origin: 24px 24px;
}

/* Middle layer: the Uptime motif. Chevrons rise on a loop (the "to top"
   gesture); the aqua ECG trace draws itself across the baseline — the
   "site is alive" gesture. Stroke widths are in 24-space, doubled by the
   scale(2) wrapper in the markup. */
.back-to-top-motif {
  fill: none;
  stroke: var(--white);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btt-chevron-a,
.btt-chevron-b {
  stroke-width: 1.4;
  animation: btt-run 2.6s ease-in infinite;
}

.btt-chevron-b {
  animation-delay: 1.3s;
}

.btt-baseline {
  stroke-width: 1;
  opacity: 0.3;
}

.btt-ecg {
  stroke: var(--aqua);
  stroke-width: 1.3;
  animation: btt-ecg 3.2s ease-in-out infinite;
}

.back-to-top:hover .btt-chevron-a,
.back-to-top:hover .btt-chevron-b,
.back-to-top:focus-visible .btt-chevron-a,
.back-to-top:focus-visible .btt-chevron-b {
  animation-duration: 1s;
}

.back-to-top:hover .btt-chevron-b,
.back-to-top:focus-visible .btt-chevron-b {
  animation-delay: 0.5s;
}

.back-to-top:hover .btt-ecg,
.back-to-top:focus-visible .btt-ecg {
  animation-duration: 1.2s;
}

@keyframes btt-run {
  0% {
    transform: translateY(2px);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: translateY(-3px);
    opacity: 0;
  }
}

/* Sweeps the dash window across the trace: the pulse draws in, then chases
   itself out the far end before repeating. */
@keyframes btt-ecg {
  0% {
    stroke-dashoffset: 34;
  }
  55%,
  100% {
    stroke-dashoffset: -34;
  }
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--blue);
  transform: translateY(-3px);
}

.back-to-top:hover .back-to-top-ring-track,
.back-to-top:focus-visible .back-to-top-ring-track {
  stroke: rgba(255, 255, 255, 0.45);
}

.section-kicker i,
.eyebrow i {
  width: 1.2em;
  margin-right: 0.3em;
  text-align: center;
}

/* ==========================================================================
   04. STICKY HEADER AND NAVIGATION
   The three-column desktop grid becomes an overlay menu at tablet width.
   Theme overrides keep the translucent header readable in Night mode.
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 78px;
  padding: 0 max(32px, calc((100vw - 1440px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(243, 245, 240, 0.9);
  backdrop-filter: blur(18px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  width: max-content;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.wordmark .tn-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.site-brand {
  gap: 12px;
}

/* Day/Night logo swap: both images are always in the DOM (no JS involved),
   CSS shows the one matching `html[data-theme]`. Width is fixed so both
   variants occupy the same box and never shift header layout on swap. */
.brand-logo {
  display: block;
  width: 82px;
  height: auto;
}

.brand-logo-night {
  display: none;
}

html[data-theme="night"] .brand-logo-day {
  display: none;
}

html[data-theme="night"] .brand-logo-night {
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a,
.nav-contact {
  position: relative;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--blue);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-contact {
  justify-self: end;
  padding: 10px 0 8px;
  border-bottom: 2px solid var(--ink);
  transition: color 0.25s ease, border-color 0.25s ease, text-shadow 0.25s ease;
}

.nav-contact:hover,
.nav-contact:focus-visible,
.nav-contact:active {
  color: var(--blue);
  border-color: var(--blue);
  text-shadow: 0 0 10px rgba(52, 142, 238, 0.5), 0 0 22px rgba(52, 142, 238, 0.3);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 14px;
}

.theme-switcher {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

.theme-choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.theme-choice:hover {
  color: var(--blue);
  transform: translateY(-1px);
}

.theme-choice[aria-pressed="true"] {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 3px 10px rgba(10, 27, 43, 0.16);
}

/* Animated Auto/Day/Night icons. Idle motion only plays on the active
   choice; hover gives every icon a quick physical reaction independent of
   the theme transition itself. Reduced-motion is handled by the global
   `*, *::before, *::after` override further down this file. */
.theme-icon {
  width: 16px;
  height: 16px;
  overflow: visible;
  display: block;
}

.theme-choice.is-activating .theme-icon {
  animation: theme-icon-pulse 0.4s ease;
}

@keyframes theme-icon-pulse {
  0% { transform: scale(1); }
  45% { transform: scale(1.22); }
  100% { transform: scale(1); }
}

/* Day icon: sun + rays */
.icon-day .sun-core {
  fill: var(--sun);
  transition: fill 0.2s ease;
}

.icon-day .sun-ray {
  stroke: var(--sun);
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: 0.35;
  transform-origin: 12px 12px;
  transition: opacity 0.25s ease;
}

.theme-choice[aria-pressed="true"] .icon-day .sun-ray {
  opacity: 0.75;
  animation: sun-ray-breathe 3.2s ease-in-out infinite;
}

@keyframes sun-ray-breathe {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

.theme-choice[aria-pressed="true"] .icon-day .sun-core {
  animation: sun-core-glow 3.2s ease-in-out infinite;
}

@keyframes sun-core-glow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(242, 169, 60, 0)); }
  50% { filter: drop-shadow(0 0 3px rgba(242, 169, 60, 0.75)); }
}

.theme-choice:hover .icon-day .sun-ray {
  animation: sun-ray-flare 0.6s ease-in-out infinite;
}

@keyframes sun-ray-flare {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* Night icon: crescent moon + stars */
.icon-night .moon-body {
  fill: var(--aqua);
  transition: fill 0.2s ease;
}

.icon-night .star {
  fill: var(--aqua);
  opacity: 0.4;
  transform-origin: center;
  transform-box: fill-box;
}

.theme-choice[aria-pressed="true"] .icon-night .star {
  animation: theme-star-twinkle 2.4s ease-in-out infinite;
}

.icon-night .star-1 { animation-delay: 0s !important; }
.icon-night .star-2 { animation-delay: 0.5s !important; }
.icon-night .star-3 { animation-delay: 1s !important; }

@keyframes theme-star-twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.15); }
}

.theme-choice[aria-pressed="true"] .icon-night .moon-body {
  animation: moon-glow 3.6s ease-in-out infinite;
}

@keyframes moon-glow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(126, 240, 213, 0)); }
  50% { filter: drop-shadow(0 0 3px rgba(126, 240, 213, 0.7)); }
}

.theme-choice:hover .icon-night .moon-body {
  animation: moon-rock 0.9s ease-in-out infinite;
}

@keyframes moon-rock {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(8deg); }
}

/* Night active pill turns aqua, so the moon/stars need a dark fill to stay
   visible against their own background — same contrast trick used for the
   pill's text color below. */
html[data-theme="night"] .theme-choice[aria-pressed="true"] .icon-night .moon-body,
html[data-theme="night"] .theme-choice[aria-pressed="true"] .icon-night .star {
  fill: #07131e;
}

/* Auto icon: split disc with an orbiting dot */
.icon-auto {
  transform-origin: 12px 12px;
}

.icon-auto .auto-half-sun {
  fill: var(--sun);
}

.icon-auto .auto-half-moon {
  fill: var(--aqua);
}

html[data-theme="night"] .theme-choice[aria-pressed="true"] .icon-auto .auto-half-moon {
  fill: #07131e;
}

.icon-auto .auto-orbit {
  transform-origin: 12px 12px;
  opacity: 0.5;
}

.theme-choice[aria-pressed="true"] .icon-auto .auto-orbit {
  animation: auto-orbit-spin 4s linear infinite;
  opacity: 1;
}

@keyframes auto-orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.theme-choice:hover .icon-auto {
  animation: auto-icon-nudge 0.7s ease-in-out infinite;
}

@keyframes auto-icon-nudge {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(6deg); }
}

html[data-theme="night"] .site-header {
  border-color: var(--line);
  background: rgba(7, 19, 30, 0.9);
}

html[data-theme="night"] .theme-switcher {
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="night"] .theme-choice[aria-pressed="true"] {
  background: var(--aqua);
  color: #07131e;
}

html[data-theme="night"] .nav-contact {
  border-color: var(--aqua);
}

html[data-theme="night"] .nav-contact:hover,
html[data-theme="night"] .nav-contact:focus-visible,
html[data-theme="night"] .nav-contact:active {
  color: var(--aqua);
  border-color: var(--aqua);
  text-shadow: 0 0 10px var(--aqua), 0 0 22px rgba(126, 240, 213, 0.6);
}

html[data-theme="night"] .menu-toggle span {
  background: #eaf4fa;
}

.nav-contact span {
  color: var(--blue);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 6px auto;
  background: var(--ink);
}

/* ==========================================================================
   05. HERO, ROTATING MEDIA, AND LOCAL SUN CLOCK
   `.hero-media img` fills the viewport with `object-fit: cover`. site.js updates
   `--parallax-y` while scrolling and adds `.is-changing` during image swaps.
   Keep important subjects near image center because mobile viewports crop sides.
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: clamp(720px, calc(100svh - 78px), 920px);
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: -9% 0;
  z-index: -3;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  filter: saturate(0.92) contrast(1.06);
  transform: translate3d(0, var(--parallax-y, 0), 0) scale(1.08);
  will-change: transform;
  transition: opacity 0.32s ease, filter 0.35s ease;
}

.hero-media img.is-changing {
  opacity: 0.18;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 17, 28, 0.96) 0%, rgba(5, 20, 33, 0.9) 40%, rgba(5, 20, 33, 0.45) 72%, rgba(5, 20, 33, 0.18) 100%),
    linear-gradient(0deg, rgba(5, 20, 33, 0.8) 0%, transparent 50%),
    linear-gradient(180deg, rgba(5, 20, 33, 0.16), transparent 30%);
}

html[data-theme="night"] .hero-overlay {
  background:
    linear-gradient(90deg, rgba(2, 10, 17, 0.98) 0%, rgba(3, 14, 24, 0.94) 42%, rgba(3, 14, 24, 0.58) 74%, rgba(3, 14, 24, 0.28) 100%),
    linear-gradient(0deg, rgba(2, 10, 17, 0.9) 0%, transparent 54%),
    linear-gradient(180deg, rgba(3, 13, 22, 0.36), transparent 34%);
}

.hero-content {
  position: relative;
  display: flex;
  align-items: center;
  min-height: inherit;
  padding-block: 112px 92px;
}

.hero-copy {
  width: min(940px, 78%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 28px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--aqua);
}

.hero h1 {
  margin: 0;
  max-width: 930px;
  color: var(--white);
  font-size: clamp(54px, 6.35vw, 94px);
  font-weight: 810;
  letter-spacing: -0.038em;
  line-height: 0.98;
}

/* ==========================================================================
   SPLIT-TEXT LETTER-BY-LETTER ANIMATION
   ========================================================================== */
[data-split-letters] .char-line {
  display: block;
  margin: 0;
  line-height: inherit;
}

[data-split-letters] .char-line-highlight {
  color: var(--aqua);
}

[data-split-letters] .char-word {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  padding-top: 0.05em;
  padding-bottom: 0.22em;       /* Full clearance for 'g', 'p', 'y', 'j', 'q' descenders */
  margin-bottom: -0.22em;       /* Preserves tight heading line height */
  vertical-align: bottom;
  line-height: inherit;
}

[data-split-letters] .char-space {
  display: inline-block;
  width: 0.26em;
}

[data-split-letters] .char {
  display: inline-block;
  transform: translateY(140%);
  will-change: transform;
}

/* Hero animates on page load */
.hero [data-split-letters] .char {
  animation: letter-rise 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--i, 0) * 26ms + 100ms);
}

/* Sub-fold sections animate when scrolled into view */
.is-visible [data-split-letters] .char,
[data-split-letters].is-visible .char {
  animation: letter-rise 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--i, 0) * 22ms + 50ms);
}

/* Fallback when JS is disabled or reveal is not active */
html:not(.reveal-ready) [data-split-letters] .char {
  transform: translateY(0%);
}

@keyframes letter-rise {
  from {
    transform: translateY(140%);
  }
  to {
    transform: translateY(0%);
  }
}

.hero-intro {
  max-width: 760px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 23px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  gap: 18px;
  background: var(--aqua);
  color: var(--ink);
}

.button-primary:hover {
  background: var(--white);
}

.button-ghost {
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(5, 20, 33, 0.28);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.button-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  max-width: 900px;
  margin: 52px 0 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  list-style: none;
}

.hero-proof li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 86px;
  padding: 15px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-proof li:first-child {
  padding-left: 0;
}

.hero-proof li:last-child {
  border-right: 0;
}

.hero-proof > li > i {
  color: var(--aqua);
  font-size: 19px;
}

.hero-proof li > span {
  display: flex;
  flex-direction: column;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero-proof strong {
  margin-bottom: 4px;
  color: var(--white);
  font-size: 18px;
  letter-spacing: -0.01em;
  text-transform: none;
}

.count-up {
  font-size: inherit;
  font-variant-numeric: tabular-nums;
}

.hero-signature {
  position: absolute;
  top: 52px;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: rgba(255, 255, 255, 0.9);
  text-align: right;
}

.hero-signature > span {
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.045em;
}

.hero-signature small {
  color: var(--aqua);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* Live time/countdown panel populated by `[data-sun-clock]` logic in site.js. */
.hero-clock {
  display: grid;
  justify-items: end;
  gap: 4px;
  min-width: 176px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.26);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hero-clock-local,
.hero-clock-sun {
  line-height: 1.35;
}

.hero-clock-local {
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.035em;
}

.hero-clock-sun {
  color: var(--aqua);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0.025em;
}

.photo-note {
  position: absolute;
  right: 0;
  bottom: 30px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.photo-note i {
  margin-right: 6px;
  color: var(--aqua);
}

.hero-enter {
  animation: rise-in 0.8s ease both;
}

.hero-enter-delay {
  animation-delay: 0.16s;
}

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

html.reveal-ready .scroll-reveal {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.75, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.75, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

html.reveal-ready .scroll-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ==========================================================================
   06. SHARED SECTION PRIMITIVES
   These rules standardize width, vertical rhythm, decorative stacking, headings,
   cards, and reveal behavior across otherwise independent content sections.
   ========================================================================== */
.intro-section,
.story-section,
.projects-section,
.creative-section {
  padding-block: 132px;
}

.intro-section,
.story-section,
.creative-section {
  isolation: isolate;
}

.intro-section::before,
.story-section::before,
.creative-section::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  transform: translateX(-50%);
  content: "";
  pointer-events: none;
}

/* ==========================================================================
   07. WHAT I BRING
   A responsive two-column introduction with a CSS-only signal field. The small
   nodes suggest reach and connection without adding a background asset.
   ========================================================================== */
.intro-section {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.intro-section::before {
  /* Signal field: small data points suggest range, impact and connection. */
  background:
    radial-gradient(circle at 8% 18%, rgba(126, 240, 213, 0.2), transparent 27%),
    radial-gradient(circle at 88% 78%, rgba(52, 142, 238, 0.09), transparent 24%),
    radial-gradient(circle, var(--pattern-blue) 0 1.4px, transparent 1.7px) 0 0 / 28px 28px,
    radial-gradient(circle, var(--pattern-aqua) 0 1px, transparent 1.3px) 14px 14px / 56px 56px,
    linear-gradient(180deg, var(--paper), var(--paper-warm));
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.8fr);
  gap: 10vw;
  align-items: start;
}

.intro-grid h2,
.section-heading h2,
.story-lead h2,
.contact-grid h2 {
  margin: 0;
  font-size: clamp(44px, 5.2vw, 76px);
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 0.98;
}

.intro-copy {
  color: var(--ink-soft);
  font-size: 18px;
}

.intro-copy p {
  margin: 0 0 22px;
}

/* ==========================================================================
   08. WORK BANNER AND IMPACT ACCORDION
   Oversized pseudo-elements create quiet interface-panel outlines. The banner
   image is written to `background-image` by site.js; the accordion's visual
   open state follows `.case-item.is-open` and matching ARIA/hidden state.
   ========================================================================== */
.work-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 0 112px;
  border-top: 1px solid var(--line);
  /* Soft interface panels: large, quiet shapes inspired by digital workspaces. */
  background:
    radial-gradient(circle at 94% 58%, rgba(126, 240, 213, 0.16), transparent 24%),
    radial-gradient(circle at 4% 94%, rgba(52, 142, 238, 0.09), transparent 26%),
    linear-gradient(180deg, var(--paper), var(--paper-warm));
}

.work-section::before,
.work-section::after {
  position: absolute;
  z-index: 0;
  border-radius: 34px;
  content: "";
  pointer-events: none;
}

.work-section::before {
  top: clamp(520px, 50vw, 650px);
  right: -145px;
  width: 430px;
  height: 285px;
  border: 1px solid rgba(52, 142, 238, 0.14);
  box-shadow:
    0 0 0 48px rgba(52, 142, 238, 0.028),
    0 0 0 96px rgba(52, 142, 238, 0.018);
  transform: rotate(-6deg);
}

.work-section::after {
  bottom: -115px;
  left: -155px;
  width: 360px;
  height: 240px;
  border: 1px solid rgba(126, 240, 213, 0.22);
  box-shadow:
    0 0 0 42px rgba(126, 240, 213, 0.03),
    0 0 0 84px rgba(52, 142, 238, 0.018);
  transform: rotate(7deg);
}

.work-banner,
.work-list {
  position: relative;
  z-index: 1;
}

.work-banner {
  --work-image: url("assets/work/work-1.webp");
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(350px, 46vw, 520px);
  overflow: hidden;
  background-color: var(--ink);
  background-image:
    linear-gradient(90deg, rgba(5, 20, 33, 0.9) 0%, rgba(5, 20, 33, 0.56) 48%, rgba(5, 20, 33, 0.3) 100%),
    linear-gradient(0deg, rgba(5, 20, 33, 0.64), transparent 55%),
    var(--work-image);
  background-position: center var(--work-parallax-y, 50%);
  background-size: cover;
  color: var(--white);
  will-change: background-position;
}

.work-banner::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  content: "";
  pointer-events: none;
}

.work-banner-content {
  position: relative;
  z-index: 1;
  padding-block: 64px;
}

.work-banner-content .section-kicker {
  margin-bottom: 14px;
  color: var(--aqua);
}

.work-banner h2 {
  margin: 0;
  font-size: clamp(58px, 9vw, 118px);
  font-weight: 780;
  letter-spacing: -0.022em;
  line-height: 0.88;
}

.work-banner-content > p:last-child {
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 560;
}

.work-list {
  padding-top: 72px;
}

.work-list-intro {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 0.9fr);
  gap: 9vw;
  align-items: start;
  margin-bottom: 56px;
}

.work-list-intro h3 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 780;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.work-list-intro p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 390px);
  gap: 80px;
  align-items: end;
  margin-bottom: 64px;
}

.section-heading .section-kicker {
  margin-bottom: 22px;
}

.section-heading > p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

/* Accordion container and item states; JavaScript permits one open item. */
.case-accordion {
  border-top: 1px solid var(--line);
}

.case-item {
  border-bottom: 1px solid var(--line);
}

.case-heading {
  margin: 0;
}

.case-toggle {
  display: grid;
  grid-template-columns: 48px minmax(130px, 0.34fr) minmax(0, 1fr) 36px;
  gap: 20px;
  align-items: center;
  width: 100%;
  min-height: 94px;
  padding: 22px 4px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.case-toggle:hover {
  color: var(--blue);
}

.case-index,
.case-category {
  color: var(--blue);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-category i {
  width: 1.25em;
  margin-right: 5px;
  text-align: center;
}

.case-index {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.case-title {
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 780;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.case-toggle-icon {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.case-toggle-icon::before,
.case-toggle-icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}

.case-toggle-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.case-toggle[aria-expanded="true"] .case-toggle-icon {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.case-toggle[aria-expanded="true"] .case-toggle-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.case-panel-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.62fr);
  gap: 7vw;
  padding: 0 60px 34px 68px;
}

.case-panel p {
  max-width: 680px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.case-panel .case-outcome {
  margin: 0 0 7px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.case-panel ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-content: flex-start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-panel li {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 780;
}

/* ==========================================================================
   09. CAPABILITIES
   Dark technical section with a CSS-generated network grid and node details.
   Cards are content-driven and reflow from columns to a single mobile stack.
   ========================================================================== */
.expertise-section {
  padding-block: 132px;
  background-color: var(--ink);
  /* Network grid: technical paths, nodes and infrastructure connections. */
  background-image:
    radial-gradient(circle at 82% 24%, rgba(52, 142, 238, 0.25), transparent 28%),
    radial-gradient(circle at 1px 1px, rgba(126, 240, 213, 0.18) 0 1.3px, transparent 1.7px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-position: 0 0, 0 0, 0 0, 0 0;
  background-size: auto, 80px 80px, 40px 40px, 40px 40px;
  color: var(--white);
}

.section-heading-dark > p {
  color: rgba(255, 255, 255, 0.58);
}

.section-heading-dark .section-kicker {
  color: var(--aqua);
}

.capability-list {
  border-top: 1px solid var(--line-dark);
}

.capability-row {
  display: grid;
  grid-template-columns: 60px minmax(220px, 0.7fr) 1.4fr;
  gap: 30px;
  align-items: center;
  min-height: 122px;
  border-bottom: 1px solid var(--line-dark);
}

.capability-index {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(126, 240, 213, 0.36);
  border-radius: 50%;
  color: var(--aqua);
  font-size: 15px;
}

.capability-row h3 {
  margin: 0;
  font-size: 25px;
  font-weight: 720;
  letter-spacing: -0.04em;
}

.capability-row ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.capability-row li {
  padding: 7px 11px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

/* ==========================================================================
   10. WEB PROJECTS
   External-link cards combine image artwork, metadata, tags, and hover/focus
   feedback. The large ring motif is decorative and generated by a pseudo-element.
   ========================================================================== */
.projects-section {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 92% 8%, rgba(126, 240, 213, 0.3), transparent 25%),
    linear-gradient(180deg, var(--paper-warm), var(--paper));
}

.projects-section::before {
  position: absolute;
  top: 48px;
  right: -90px;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(52, 142, 238, 0.14);
  border-radius: 50%;
  box-shadow:
    0 0 0 48px rgba(52, 142, 238, 0.035),
    0 0 0 96px rgba(52, 142, 238, 0.025);
  content: "";
  pointer-events: none;
}

.projects-section .section-shell {
  position: relative;
  z-index: 1;
}

html[data-theme="night"] .project-card {
  border-color: var(--line);
  background: rgba(12, 30, 43, 0.88);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.2);
}

html[data-theme="night"] .project-card:hover,
html[data-theme="night"] .project-card:focus-visible {
  border-color: rgba(126, 240, 213, 0.52);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.34);
}

html[data-theme="night"] .creative-card:hover,
html[data-theme="night"] .creative-card:focus-visible,
html[data-theme="night"] .creative-video-card:hover,
html[data-theme="night"] .creative-video-card:focus-within,
html[data-theme="night"] .creative-video-trigger:hover,
html[data-theme="night"] .creative-video-trigger:focus-visible {
  border-color: rgba(126, 240, 213, 0.52);
}

html[data-theme="night"] .filters button:hover,
html[data-theme="night"] .filters button.is-active {
  border-color: var(--aqua);
  background: var(--aqua);
  color: #07131e;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 42px rgba(10, 27, 43, 0.07);
  transition: transform 0.35s cubic-bezier(0.2, 0.75, 0.2, 1), border-color 0.25s ease, box-shadow 0.35s ease;
}

button.project-card {
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

.project-visual-360dna-flowchart img {
  object-position: center top;
}

.project-card:hover,
.project-card:focus-visible {
  border-color: rgba(52, 142, 238, 0.52);
  box-shadow: 0 24px 58px rgba(10, 27, 43, 0.14);
  transform: translateY(-7px);
}

.project-card:focus-visible {
  outline-offset: 5px;
}

.project-visual {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink-soft);
}

.project-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 20, 33, 0.04), rgba(5, 20, 33, 0.42));
  content: "";
}

.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.2, 0.75, 0.2, 1), filter 0.35s ease;
}

.project-visual-build img {
  object-position: center 52%;
}

.project-visual-fgiq img {
  object-position: center 45%;
}

.project-visual-360dna img {
  object-position: center top;
}

.project-card:hover .project-visual img,
.project-card:focus-visible .project-visual img {
  filter: saturate(1.08);
  transform: scale(1.045);
}

.project-number {
  position: absolute;
  bottom: 15px;
  left: 17px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.78);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.project-launch {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  background: rgba(5, 20, 33, 0.34);
  color: var(--white);
  font-size: 14px;
  backdrop-filter: blur(10px);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.project-card:hover .project-launch,
.project-card:focus-visible .project-launch {
  background: var(--aqua);
  color: var(--ink);
  transform: rotate(4deg);
}

.project-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px 25px 25px;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--blue);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-meta > span:last-child {
  color: var(--muted);
}

.project-meta i {
  margin-right: 4px;
}

.project-content > strong {
  margin-top: 24px;
  font-size: clamp(25px, 2.4vw, 34px);
  font-weight: 790;
  letter-spacing: -0.05em;
  line-height: 1;
}

.project-description {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 26px;
}

/* Used only by cards that link to more than one destination (e.g. the
   Claude + Claude Code Cheatsheet card) instead of the whole card being one
   <a>. Sits between .project-description and .project-tags. */
.project-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding: 0;
  list-style: none;
}

.project-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.project-links a:hover,
.project-links a:focus-visible {
  border-color: rgba(52, 142, 238, 0.5);
  background: rgba(52, 142, 238, 0.07);
  color: var(--blue);
}

.project-links a i {
  color: var(--muted);
  font-size: 11px;
}

html[data-theme="night"] .project-links a:hover,
html[data-theme="night"] .project-links a:focus-visible {
  border-color: rgba(126, 240, 213, 0.5);
  background: rgba(126, 240, 213, 0.08);
  color: var(--aqua);
}

.project-tags > span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 780;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   11. EXPERIENCE TIMELINE
   The timeline uses a two-column layout, a continuous vertical rule, and dot
   milestones. `scroll-margin-top` tunes the #story anchor below the sticky header.
   ========================================================================== */
.story-section {
  position: relative;
  overflow: hidden;
  /* Let the Experience anchor settle slightly farther into the section so the
     final timeline entry is visible on common laptop-height viewports. */
  scroll-margin-top: -24px;
}

/* The grid lives on the inner shell, not the section itself, so the
   section's own box stays full-width for the ::before background below. */
.story-section > .section-shell {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(460px, 1.22fr);
  gap: 10vw;
  align-items: start;
}

.story-section::before {
  /* Timeline tracks: quiet vertical paths with milestone nodes. */
  background:
    radial-gradient(circle at 92% 22%, rgba(52, 142, 238, 0.13), transparent 29%),
    radial-gradient(circle at 10% 92%, rgba(126, 240, 213, 0.1), transparent 24%),
    radial-gradient(circle at 76% 26%, var(--pattern-aqua) 0 4px, transparent 4.5px),
    radial-gradient(circle at 84% 50%, var(--pattern-blue) 0 4px, transparent 4.5px),
    radial-gradient(circle at 92% 76%, var(--pattern-aqua) 0 4px, transparent 4.5px),
    linear-gradient(90deg, transparent 76%, var(--pattern-blue) 76%, var(--pattern-blue) calc(76% + 1px), transparent calc(76% + 1px)),
    linear-gradient(90deg, transparent 84%, var(--pattern-neutral) 84%, var(--pattern-neutral) calc(84% + 1px), transparent calc(84% + 1px)),
    linear-gradient(90deg, transparent 92%, var(--pattern-blue) 92%, var(--pattern-blue) calc(92% + 1px), transparent calc(92% + 1px)),
    linear-gradient(180deg, var(--paper), var(--paper-warm));
}

.story-lead {
  position: sticky;
  top: 132px;
}

.story-lead > p:not(.section-kicker) {
  max-width: 470px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.cert-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 42px;
}

.cert-links > span {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cert-links > span i {
  margin-right: 5px;
}

.cert-links a {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease;
}

.cert-links a:hover {
  background: var(--ink);
  color: var(--white);
}

.cert-links i {
  color: var(--blue);
  font-style: normal;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 28px;
  padding: 0 0 66px 28px;
  border-left: 1px solid var(--line);
}

.timeline li:last-child {
  padding-bottom: 0;
  border-color: transparent;
}

.timeline-dot {
  position: absolute;
  top: 5px;
  left: -5px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}

.timeline-years {
  margin: 0;
  color: var(--blue);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.timeline h3 {
  margin: 0;
  font-size: 27px;
  font-weight: 780;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.timeline-context {
  margin: 7px 0 14px !important;
  color: var(--blue) !important;
  font-size: 12px !important;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline li div > p:last-child {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

/* ==========================================================================
   12. CREATIVE LAB
   Filter controls and media cards share one responsive grid. The quiet lens halo
   uses pseudo-elements; Night mode reduces its opacity. Image cards become the
   source for the global lightbox, while video retains native playback controls.
   ========================================================================== */
.creative-section {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.creative-section::before {
  /* Lens halo: two quiet off-canvas arcs frame the image-led creative work. */
  background:
    radial-gradient(circle at 105% 18%, transparent 0 230px, rgba(52, 142, 238, 0.13) 231px 232px, transparent 233px 286px, rgba(52, 142, 238, 0.045) 287px 288px, transparent 289px),
    radial-gradient(circle at 8% 16%, rgba(52, 142, 238, 0.085), transparent 28%),
    radial-gradient(circle at 88% 86%, rgba(126, 240, 213, 0.075), transparent 23%),
    linear-gradient(180deg, var(--paper), var(--paper-warm));
}

html[data-theme="night"] .creative-section::before {
  background:
    radial-gradient(circle at 105% 18%, transparent 0 230px, rgba(126, 240, 213, 0.085) 231px 232px, transparent 233px 286px, rgba(52, 142, 238, 0.035) 287px 288px, transparent 289px),
    radial-gradient(circle at 8% 16%, rgba(52, 142, 238, 0.065), transparent 30%),
    radial-gradient(circle at 88% 86%, rgba(126, 240, 213, 0.05), transparent 25%),
    linear-gradient(180deg, var(--paper), var(--paper-warm));
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -16px 0 32px;
}

.filters button {
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filters button:hover,
.filters button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.creative-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-auto-rows: 310px;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.creative-card {
  position: relative;
  grid-row: span 1;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink);
  text-align: left;
  cursor: zoom-in;
  transition: border-color 0.25s ease;
}

.creative-card:hover,
.creative-card:focus-visible {
  border-color: rgba(52, 142, 238, 0.52);
}

.creative-card-featured {
  grid-column: span 2;
  grid-row: span 2;
}

.creative-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.75, 0.2, 1), filter 0.4s ease;
}

.creative-card:hover > img {
  transform: scale(1.045);
  filter: saturate(1.08);
}

.creative-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(5, 18, 29, 0.78));
}

.creative-meta {
  position: absolute;
  right: 22px;
  bottom: 20px;
  left: 22px;
  display: flex;
  flex-direction: column;
  color: var(--white);
}

.creative-meta > span {
  color: var(--aqua);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.creative-meta strong {
  margin-top: 5px;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.creative-open {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(10, 27, 43, 0.25);
  color: var(--white);
  font-size: 18px;
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, color 0.2s ease;
}

.creative-card:hover .creative-open {
  background: var(--aqua);
  color: var(--ink);
}

.creative-video-card {
  position: relative;
  grid-column: 1 / -1;
  grid-row: span 2;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #030b12;
  transition: border-color 0.25s ease;
}

.creative-video-card:hover,
.creative-video-card:focus-within {
  border-color: rgba(52, 142, 238, 0.52);
}

.creative-video-card video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #030b12;
}

/* Only present on a video opened from .creative-video-trigger (see site.js);
   the always-visible spotlight card has no way to collapse and needs none. */
.creative-video-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(10, 27, 43, 0.55);
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, color 0.2s ease;
}

.creative-video-close:hover,
.creative-video-close:focus-visible {
  background: var(--aqua);
  color: var(--ink);
}

/* Small poster button for a second/extra video (San Pedro Sunrise) that
   should NOT autoload like the spotlight .creative-video-card above. Sized
   and styled like .creative-card; site.js replaces it with a real
   .creative-video-card <article> on click, so once clicked it looks
   identical to the spotlight video and no further rules are needed here. */
.creative-video-trigger {
  position: relative;
  grid-row: span 1;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s ease;
}

.creative-video-trigger:hover,
.creative-video-trigger:focus-visible {
  border-color: rgba(52, 142, 238, 0.52);
}

.creative-video-trigger > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.75, 0.2, 1), filter 0.4s ease;
}

.creative-video-trigger:hover > img {
  transform: scale(1.045);
  filter: saturate(1.08);
}

.creative-video-trigger:hover .creative-open {
  background: var(--aqua);
  color: var(--ink);
}

.creative-video-meta {
  position: absolute;
  top: 20px;
  left: 22px;
  display: flex;
  flex-direction: column;
  max-width: calc(100% - 44px);
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(3, 11, 18, 0.68);
  color: var(--white);
  pointer-events: none;
  backdrop-filter: blur(10px);
}

.creative-video-meta span {
  color: var(--aqua);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.creative-video-meta strong {
  margin-top: 3px;
  font-size: 17px;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   13. CONTACT AND FOOTER
   site.js rotates Contact artwork through a custom background property. Layered
   gradients preserve text contrast; broadcast-wave decoration reinforces the
   communication theme without another image request.
   ========================================================================== */
.contact-section {
  --contact-image: none;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 60px;
  background: #0f9af0;
  color: var(--white);
}

.contact-section::before {
  position: absolute;
  z-index: -2;
  right: 0;
  bottom: 0;
  width: min(48vw, 680px);
  height: 118%;
  background-image: var(--contact-image);
  background-position: right bottom;
  background-repeat: no-repeat;
  background-size: cover;
  content: "";
  opacity: 0.4;
  filter: saturate(0.9) contrast(1.06);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 38%, #000 100%);
  pointer-events: none;
}

.contact-section::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  /* Broadcast waves: a subtle visual cue for conversation and connection. */
  background:
    radial-gradient(ellipse at 0% 118%,
      transparent 0 34%,
      rgba(255, 255, 255, 0.1) 34.25% 34.65%,
      transparent 34.9% 48%,
      rgba(255, 255, 255, 0.085) 48.25% 48.6%,
      transparent 48.85% 62%,
      rgba(255, 255, 255, 0.07) 62.25% 62.55%,
      transparent 62.8% 76%,
      rgba(255, 255, 255, 0.055) 76.25% 76.5%,
      transparent 76.75%),
    linear-gradient(90deg, rgba(15, 154, 240, 0.99) 0%, rgba(15, 154, 240, 0.94) 54%, rgba(15, 154, 240, 0.3) 100%);
  content: "";
  pointer-events: none;
}

.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.5fr 1.35fr 0.6fr;
  gap: 60px;
  align-items: start;
}

.contact-grid .section-kicker {
  margin-top: 12px;
  color: var(--aqua);
}

.contact-grid h2 {
  max-width: 750px;
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.02;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--aqua);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 750;
}

.contact-email i {
  color: var(--aqua);
  font-size: 0.72em;
}

.contact-aside {
  padding-top: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.contact-aside p {
  margin: 0 0 28px;
}

.contact-aside p i {
  margin-right: 5px;
  color: var(--aqua);
}

.contact-aside a {
  color: var(--white);
  font-weight: 780;
}

.contact-aside a i {
  margin-left: 5px;
  color: var(--aqua);
}

.contact-bio {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 280px;
  margin-inline: auto;
  padding-top: 4px;
  text-align: center;
}

.contact-bio-photo {
  width: 168px;
  height: 168px;
  margin: 0 0 22px;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(7, 19, 30, 0.28);
}

.contact-bio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.contact-bio h3 {
  margin: 0;
  color: var(--white);
  font-size: 15px;
  font-weight: 820;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-bio h3::after {
  display: block;
  width: 42px;
  height: 3px;
  margin: 12px auto 0;
  border-radius: 99px;
  background: var(--aqua);
  content: "";
}

.contact-bio p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 450;
  line-height: 1.7;
}

.contact-bio-social {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.contact-bio-social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(7, 19, 30, 0.28);
  color: var(--white);
  font-size: 14px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.contact-bio-social a i {
  margin: 0;
  color: inherit;
}

.contact-bio-social a:hover,
.contact-bio-social a:focus-visible {
  border-color: var(--aqua);
  background: var(--aqua);
  color: var(--ink);
  transform: translateY(-2px);
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

html.reveal-ready .contact-bio {
  opacity: 0;
}

html.reveal-ready .contact-bio.is-visible {
  animation: fade-in-up 1s ease both;
}

.site-footer {
  min-height: 82px;
  padding-block: 14px;
  background: var(--ink);
  color: var(--white);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: var(--shell);
  margin-inline: auto;
}

.wordmark-footer {
  color: var(--white);
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
}

.footer-host-link {
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.footer-host-link:hover,
.footer-host-link:focus-visible {
  color: var(--white);
  text-shadow: 0 0 10px var(--aqua), 0 0 22px rgba(126, 240, 213, 0.6);
}

/* ==========================================================================
   14. GLOBAL LIGHTBOX
   `[hidden]` removes the dialog until site.js opens it. The backdrop locks page
   scrolling, the figure stops click propagation, and focus is managed in JS.
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 72px 32px 32px;
  background: rgba(4, 14, 23, 0.94);
  cursor: zoom-out;
  animation: lightbox-in 0.2s ease both;
}

@keyframes lightbox-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  font-size: 26px;
  cursor: pointer;
}

.lightbox figure {
  display: flex;
  flex-direction: column;
  max-width: min(1100px, 94vw);
  max-height: calc(100svh - 110px);
  margin: 0;
  cursor: default;
}

.lightbox figure img {
  max-width: 100%;
  max-height: calc(100svh - 170px);
  object-fit: contain;
  border-radius: 14px;
}

.lightbox figcaption {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-top: 13px;
  color: var(--white);
}

.lightbox figcaption span {
  color: var(--aqua);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.lightbox figcaption strong {
  font-size: 17px;
}

/* ==========================================================================
   15. RESPONSIVE LAYOUTS
   Breakpoints progressively simplify grids and navigation while preserving the
   content hierarchy. Keep overrides near their breakpoint to make testing easy.
   ========================================================================== */
@media (max-width: 1100px) {
  :root {
    --shell: min(100% - 48px, 960px);
  }

  .site-header {
    padding-inline: 24px;
  }

  .nav-links {
    gap: 18px;
  }

  .theme-choice span {
    display: none;
  }

  .theme-choice {
    width: 30px;
    padding-inline: 0;
  }

  .hero-copy {
    width: 88%;
  }

  .hero h1 {
    font-size: clamp(54px, 7vw, 80px);
  }

  .contact-grid {
    grid-template-columns: 0.38fr 1.15fr;
  }

  .contact-aside {
    grid-column: 2;
  }
}

@media (max-width: 820px) {
  :root {
    /* Slightly more breathing room than the old 18px-per-side edge margin,
       which read as cramped on real phones. Keep .site-header,
       .nav-links, and .filters in sync with this value below. */
    --shell: calc(100vw - 36px);
  }

  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 70px;
    padding-inline: 18px;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 18px 24px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 20px 40px rgba(10, 27, 43, 0.12);
  }

  html[data-theme="night"] .nav-links {
    background: var(--paper);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.32);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .nav-links a::after,
  .nav-contact {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .header-actions {
    gap: 9px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    flex-direction: column;
    align-items: flex-start;
    padding-block: 86px 62px;
  }

  .hero-copy {
    width: 100%;
  }

  .hero h1 {
    max-width: 720px;
    font-size: clamp(52px, 10vw, 74px);
  }

  .hero-intro {
    font-size: 18px;
  }

  .hero-proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 650px;
    margin-top: 42px;
  }

  .hero-proof li:nth-child(2) {
    border-right: 0;
  }

  .hero-proof li:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .hero-signature {
    position: static;
    display: flex;
    align-items: flex-start;
    margin-top: 34px;
    text-align: left;
  }

  .hero-clock {
    justify-items: start;
  }

  .photo-note {
    right: auto;
    bottom: 22px;
    left: 0;
  }

  .intro-section,
  .story-section,
  .projects-section,
  .creative-section,
  .expertise-section {
    padding-block: 88px;
  }

  .work-section {
    padding-bottom: 88px;
  }

  .work-banner-content {
    padding-block: 54px;
  }

  .work-list {
    padding-top: 58px;
  }

  .work-list-intro {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 44px;
  }

  .work-list-intro p {
    max-width: 620px;
  }

  .case-toggle {
    grid-template-columns: 42px minmax(118px, 0.35fr) minmax(0, 1fr) 34px;
    gap: 14px;
  }

  .case-panel-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-right: 54px;
    padding-left: 56px;
  }

  .intro-grid,
  .section-heading,
  .story-section > .section-shell,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .intro-grid h2,
  .section-heading h2,
  .story-lead h2,
  .contact-grid h2 {
    font-size: clamp(42px, 11vw, 64px);
  }

  /* Nudges just the "What I Bring" body copy a little further from the edge
     than the section's shared shell padding gives it, without touching
     .intro-section's own edge or its full-bleed ::before background. */
  .intro-copy {
    padding-left: 6px;
  }

  .section-heading {
    margin-bottom: 48px;
  }

  .section-heading > p {
    max-width: 560px;
  }

  .capability-row {
    grid-template-columns: 42px 1fr;
    gap: 10px 16px;
    padding-block: 26px;
  }

  .capability-row ul {
    grid-column: 2;
  }

  .story-lead {
    position: static;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    display: grid;
    grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1.22fr);
  }

  .project-visual {
    min-height: 250px;
    aspect-ratio: auto;
  }

  .creative-grid {
    grid-auto-rows: 290px;
    grid-template-columns: repeat(2, 1fr);
  }

  .creative-card-featured {
    grid-column: span 2;
    grid-row: span 1;
  }

  .creative-video-card {
    grid-column: 1 / -1;
    grid-row: span 2;
  }

  .contact-aside {
    grid-column: auto;
  }

  .footer-inner {
    grid-template-columns: auto 1fr;
    gap: 20px;
  }

  .site-footer p {
    justify-self: end;
    text-align: right;
  }
}

@media (max-width: 560px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 46px;
    height: 46px;
  }

  .theme-switcher {
    gap: 0;
  }

  .theme-choice {
    width: 28px;
    min-height: 28px;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding-block: 78px 66px;
  }

  .eyebrow {
    align-items: flex-start;
    font-size: 10px;
  }

  .hero h1 {
    font-size: clamp(44px, 13vw, 62px);
    line-height: 1;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-proof {
    margin-top: 38px;
  }

  .hero-proof li {
    min-height: 82px;
    padding: 12px 10px;
  }

  .hero-proof li:nth-child(odd) {
    padding-left: 0;
  }

  .hero-proof > li > i {
    font-size: 16px;
  }

  .hero-proof strong {
    font-size: 14px;
  }

  .intro-grid h2,
  .section-heading h2,
  .story-lead h2,
  .contact-grid h2 {
    font-size: 42px;
  }

  .brand-logo {
    width: 66px;
  }

  .work-banner {
    min-height: 340px;
  }

  .work-banner h2 {
    font-size: clamp(64px, 22vw, 92px);
  }

  .work-banner-content > p:last-child {
    margin-top: 22px;
    font-size: 16px;
  }

  .case-toggle {
    grid-template-columns: 34px minmax(0, 1fr) 32px;
    grid-template-rows: auto auto;
    gap: 5px 12px;
    min-height: 108px;
    padding-block: 20px;
  }

  .case-index {
    grid-row: 1 / span 2;
  }

  .case-category {
    grid-column: 2;
    grid-row: 1;
  }

  .case-title {
    grid-column: 2;
    grid-row: 2;
    font-size: 19px;
  }

  .case-toggle-icon {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
    width: 32px;
    height: 32px;
  }

  .case-panel-inner {
    gap: 18px;
    padding: 0 4px 30px 46px;
  }

  .capability-row h3 {
    font-size: 21px;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 9px;
    padding-left: 20px;
  }

  .timeline-years {
    margin-bottom: 2px;
  }

  .creative-grid {
    display: grid;
    grid-auto-rows: auto;
    grid-template-columns: 1fr;
  }

  .creative-card,
  .creative-video-trigger {
    min-height: 310px;
  }

  .creative-card-featured {
    grid-column: span 1;
  }

  .creative-video-card {
    grid-column: 1;
    grid-row: auto;
    aspect-ratio: 16 / 9;
  }

  .creative-video-meta {
    top: 14px;
    left: 14px;
    max-width: calc(100% - 28px);
    padding: 8px 10px;
  }

  .project-card {
    display: flex;
  }

  .project-visual {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .project-content {
    padding: 23px 21px 22px;
  }

  .project-content > strong {
    font-size: 29px;
  }

  .filters {
    flex-wrap: nowrap;
    margin-right: -18px;
    padding-right: 18px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filters button {
    flex: 0 0 auto;
  }

  .contact-section {
    padding-block: 48px;
  }

  .contact-section::before {
    width: 78vw;
    opacity: 0.3;
  }

  .site-footer {
    min-height: 76px;
    padding-block: 11px;
  }

  .site-footer p {
    max-width: 220px;
  }
}

/* ==========================================================================
   16. REDUCED-MOTION ACCESSIBILITY
   Disables nonessential animation and smooth scrolling when the operating system
   requests less motion. site.js observes the same media query for reveal/parallax.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-media img {
    transform: scale(1.08) !important;
  }

  .hero-media img.is-changing {
    opacity: 1;
  }

  html.reveal-ready .scroll-reveal {
    opacity: 1;
    transform: none;
  }

  html.reveal-ready .contact-bio {
    opacity: 1;
    animation: none;
  }

  [data-split-letters] .char {
    transform: none !important;
    animation: none !important;
  }
}
