/* ==========================================================================
   nyxloom - styles
   Palette and type taken from "My website draft.pdf":
   black #000000 · cream #FFF4E2 · electric blue #195FFA · Public Sans
   ========================================================================== */

:root {
  --black: #000000;
  --cream: #fff4e2;
  --blue: #195ffa;
  --blue-deep: #1d56e8;
  --blue-soft: #8fb0ff;

  --font: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --pad: clamp(1.25rem, 4.7vw, 4.25rem);
  --header-h: clamp(5.5rem, 9vw, 7.5rem);
  /* Height of the picture-and-copy sections: a full screen, but never taller than a
     16:10 screen of the same width, so a tall window (half of a 4K monitor, a tablet
     held upright) doesn't stretch the pictures and dwarf the copy beside them. */
  --section-h: min(100vh, 62.5vw);
  --radius-pill: 999px;
  --radius-box: 1.1rem;
  --ease: cubic-bezier(.2, .7, .1, 1);

  --h-xl: clamp(3.1rem, 8.4vw, 7.6rem);
  --tracking-tight: -0.055em;

  /* "Night" surfaces = every non-blue section (hero, services, work, made for, about, contact, footer).
     They're black in dark mode and cream in light mode; the blue sections stay blue in both. */
  color-scheme: dark;
  --night-bg: var(--black);
  --night-fg: var(--cream);
  --night-accent: var(--blue-soft);           /* form labels, link hover */
  --night-line: rgba(255, 244, 226, .35);     /* input underlines, chip outlines */
  --night-rule: rgba(255, 244, 226, .12);     /* hairline dividers */
  --night-panel: rgba(0, 0, 0, .45);          /* contact form panel */
  --night-btn-hover-bg: var(--cream);
  --night-btn-hover-fg: var(--black);
  --glow-navy: rgba(24, 58, 170, .75);
  --glow-navy-2: rgba(14, 34, 110, .35);
  --glow-warm: rgba(225, 212, 182, .45);
  --glow-warm-2: rgba(160, 150, 130, .15);
  --night-blue-text: var(--blue-soft);        /* blue body text (lighter on black so it stays readable) */
  --night-label: var(--cream);                /* service pill labels */
  --night-plus: var(--blue);                  /* service pill + icon */
  --night-tag: rgba(255, 244, 226, .45);      /* service tag outlines */
  --neon: #c1fd04;                            /* accent color: used sparingly */
  --night-pop: var(--neon);                   /* accent on the black sections; switches to black on cream */
  --card-alt-bg: var(--cream);                /* the non-blue project cards */
  --card-alt-fg: var(--black);
  --card-alt-cat: var(--black);
}

[data-mode="light"] {
  color-scheme: light;
  --night-bg: var(--cream);
  --night-fg: var(--black);
  --night-accent: var(--blue);
  --night-line: rgba(0, 0, 0, .3);
  --night-rule: rgba(0, 0, 0, .12);
  --night-panel: rgba(255, 255, 255, .5);
  --night-btn-hover-bg: var(--black);
  --night-btn-hover-fg: var(--cream);
  --glow-navy: rgba(25, 95, 250, .32);
  --glow-navy-2: rgba(25, 95, 250, .1);
  --glow-warm: rgba(255, 190, 130, .4);
  --glow-warm-2: rgba(255, 210, 160, .12);
  --night-blue-text: var(--blue);
  --night-label: var(--blue);
  --night-plus: var(--black);
  --night-tag: var(--black);
  --night-pop: var(--black);
  --card-alt-bg: var(--black);                /* cards alternate blue / black on cream */
  --card-alt-fg: var(--cream);
  --card-alt-cat: var(--cream);
  --focus: var(--blue);
}

/* ---------- Font: Public Sans, served from this site (no outside requests) ---------- */
@font-face {
  font-family: "Public Sans"; font-style: normal; font-weight: 300 800; font-display: block;
  src: url("../assets/fonts/public-sans.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans"; font-style: italic; font-weight: 400; font-display: block;
  src: url("../assets/fonts/public-sans-italic.woff2") format("woff2");
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* Very large screens (wider than 1600px, e.g. 4K at native resolution): grow the base size with the window, so
   type, spacing and every rem-based measurement scale together and the layout keeps its proportions.
   The fixed 4px part keeps browser zoom working. */
@media (min-width: 1601px) {
  html { font-size: clamp(16px, calc(4px + .75vw), 40px); }
}
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, .95rem + .25vw, 1.15rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--night-fg);
  background: var(--night-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--neon); color: var(--black); }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--focus, var(--blue-soft)); outline-offset: 3px; border-radius: 4px; }
[data-theme="blue"] { --focus: var(--cream); }
[data-theme="cream"] { --focus: var(--blue); }

.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  background: var(--cream); color: var(--black); padding: .7rem 1.1rem; border-radius: var(--radius-pill); font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- Layout helpers ---------- */
.wrap { padding-inline: var(--pad); max-width: 100rem; margin-inline: auto; }
.wrap-l { padding-left: var(--pad); }
.wrap-r { padding-right: var(--pad); }
section { position: relative; overflow: hidden; }
.t-blue { color: var(--blue); }

.h-xl {
  font-size: var(--h-xl);
  font-weight: 400;
  line-height: .88;
  letter-spacing: var(--tracking-tight);
  text-transform: uppercase;
}

.eyebrow {
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
  color: var(--blue);
}

/* Symbols from the "Design Elements" sheet. Each is a shape only; it takes the current text color,
   so any symbol can be any color. Add a new one with tools/build_symbols.py and a line below. */
.sym {
  display: inline-block; flex: none; aspect-ratio: var(--ar, 1);
  background-color: currentColor;
  -webkit-mask: var(--shape) center / contain no-repeat; mask: var(--shape) center / contain no-repeat;
}
.sym--burst    { --shape: url("../assets/img/sym/burst.png"); }
.sym--flower   { --shape: url("../assets/img/sym/flower.png"); }
.sym--sunburst { --shape: url("../assets/img/sym/sunburst.png"); }
.sym--asterisk { --shape: url("../assets/img/sym/asterisk.png"); }
.sym--notch    { --shape: url("../assets/img/sym/notch.png"); --ar: 2.38; }
.sym--checker  { --shape: url("../assets/img/sym/checker.png"); --ar: 1.68; }
.sym--chevrons { --shape: url("../assets/img/sym/chevrons.png"); --ar: 2.48; }
.sym--plus     { --shape: url("../assets/img/sym/plus.png"); }
.sym--arrow    { --shape: url("../assets/img/sym/arrow.png"); }

/* Shared icon sizes */
.asterisk { width: 4rem; height: 4rem; }
.asterisk--blue { color: var(--neon); }
[data-mode="light"] .asterisk--blue, [data-mode="light"] .resume-mark { color: var(--blue); }  /* neon is too faint on cream */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .95rem 1.5rem;
  border-radius: var(--radius-box);
  border: 1.5px solid var(--blue);
  font-weight: 700; text-transform: uppercase; font-size: .95rem; letter-spacing: -0.005em;
  cursor: pointer; background: transparent;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn svg { width: .85em; height: .85em; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn--blue { background: var(--blue); color: var(--cream); }
.btn--blue:hover { background: var(--night-btn-hover-bg); color: var(--night-btn-hover-fg); border-color: var(--night-btn-hover-bg); }
.btn--ghost:hover { background: var(--blue); color: var(--cream); }
.btn--wide { width: 100%; justify-content: center; }
.btn:disabled { opacity: .6; cursor: progress; }

/* ==========================================================================
   Header - pill bar that recolors itself for the section beneath it
   ========================================================================== */
.site-header {
  position: fixed; inset: clamp(.75rem, 2.4vw, 2.1rem) clamp(.75rem, 2.4vw, 2.1rem) auto;
  z-index: 50;
  --bar-border: var(--blue); --bar-bg: rgba(0, 0, 0, .55); --bar-fg: var(--cream); --bar-accent: var(--blue);
  --cta-bg: var(--blue); --cta-fg: var(--cream);
}
.site-header[data-theme="blue"] {
  --bar-border: var(--cream); --bar-bg: rgba(25, 95, 250, .72); --bar-fg: var(--cream); --bar-accent: var(--black);
  --cta-bg: var(--cream); --cta-fg: var(--blue);
}
.site-header[data-theme="cream"] {
  --bar-border: var(--black); --bar-bg: rgba(255, 244, 226, .8); --bar-fg: var(--blue); --bar-accent: var(--black);
  --cta-bg: var(--blue); --cta-fg: var(--cream);
}
.bar {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 3.2rem;
  padding: .45rem .55rem .45rem 1.6rem;
  border: 1.5px solid var(--bar-border, var(--blue));
  border-radius: var(--radius-pill);
  color: var(--bar-fg, var(--night-fg));
  font-size: .95rem;
}
.site-header .bar {
  background: var(--bar-bg);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; font-size: 1.1rem; letter-spacing: -0.02em; margin-right: auto; }
/* Round logo, paired by mode: the dark logo in dark mode, the light logo in light mode.
   Same size as the round buttons on the right, with a matching outline in the bar's border color. */
.brand-mark {
  width: 2.6rem; height: 2.6rem; border-radius: 50%; flex: none;
  box-shadow: 0 0 0 1.5px var(--bar-border, var(--blue));
  transition: box-shadow .35s var(--ease);
}
.site-header .bar { padding-left: .55rem; }
.brand-mark--light,
[data-mode="light"] .brand-mark--dark { display: none; }
[data-mode="light"] .brand-mark--light { display: block; }
.bar-year { font-weight: 700; color: var(--bar-accent, var(--blue)); transition: color .35s var(--ease); white-space: nowrap; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.25rem); }
.nav a { position: relative; padding-block: .3rem; }
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:not(.nav-cta):hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.nav-cta {
  background: var(--cta-bg); color: var(--cta-fg);
  padding: .55rem 1.1rem !important; border-radius: var(--radius-pill); font-weight: 700;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.site-header .bar-year { order: 1; margin-right: clamp(.5rem, 2vw, 2.5rem); }
.site-header .nav { order: 2; }
.menu-toggle { display: none; order: 4; }

/* Light / dark switch (shows a sun in dark mode, a moon in light mode) */
.mode-toggle {
  order: 3; flex: none;
  display: inline-grid; place-items: center;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  border: 1.5px solid var(--bar-border, var(--blue)); background: transparent; color: var(--bar-fg, var(--night-fg));
  cursor: pointer; transition: border-color .35s var(--ease), color .35s var(--ease), background-color .25s var(--ease);
}
.mode-toggle:hover { background: rgba(127, 127, 127, .16); }
.mode-toggle svg { grid-area: 1 / 1; width: 1.2rem; height: 1.2rem; transition: transform .5s var(--ease), opacity .3s var(--ease); }
.mode-toggle .icon-sun { color: #fff; }
.mode-toggle .icon-moon { opacity: 0; transform: rotate(90deg) scale(.5); }
[data-mode="light"] .mode-toggle .icon-sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
[data-mode="light"] .mode-toggle .icon-moon { opacity: 1; transform: none; }

/* Some same-colour sections sit next to each other (services/work, made for/about), so divide them with a hairline */
.work,
.about { border-top: 1px solid var(--night-rule); }

/* Smooth cross-fade only while the mode is being switched */
.mode-anim, .mode-anim *, .mode-anim *::before, .mode-anim *::after {
  transition: background-color .45s ease, color .45s ease, border-color .45s ease !important;
}

@media (max-width: 960px) {
  .site-header .bar-year { display: none; }
  .bar { padding-left: 1.1rem; }
  .menu-toggle {
    display: inline-grid; place-items: center;
    width: 2.6rem; height: 2.6rem; border-radius: 50%;
    border: 0; background: var(--cta-bg); color: var(--cta-fg); cursor: pointer;
  }
  .menu-lines, .menu-lines::before, .menu-lines::after {
    display: block; width: 1.1rem; height: 2px; background: currentColor; border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s;
  }
  .menu-lines { position: relative; }
  .menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; }
  .menu-lines::before { top: -6px; }
  .menu-lines::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] .menu-lines { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-lines::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-lines::after { transform: translateY(-6px) rotate(-45deg); }

  .nav {
    position: absolute; top: calc(100% + .6rem); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .75rem;
    background: var(--night-bg); color: var(--night-fg);
    border: 1.5px solid var(--blue); border-radius: 1.6rem;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav a { padding: 1rem 1.1rem; font-size: 1.35rem; letter-spacing: -0.03em; border-bottom: 1px solid var(--night-rule); }
  .nav a:not(.nav-cta)::after { display: none; }
  .nav .nav-cta { margin-top: .75rem; text-align: center; border-bottom: 0; background: var(--blue); color: var(--cream); padding: 1rem !important; }
}

/* ==========================================================================
   Glows (soft blurred light, as in the draft's dark slides)
   ========================================================================== */
.glow { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(30px); z-index: 0; }
.glow--navy {
  width: 55vw; height: 55vw; left: -22vw; bottom: -26vw;
  background: radial-gradient(circle, var(--glow-navy) 0%, var(--glow-navy-2) 40%, transparent 68%);
}
.glow--warm {
  width: 34vw; height: 24vw; left: 4vw; bottom: -17vw;
  background: radial-gradient(ellipse, var(--glow-warm) 0%, var(--glow-warm-2) 45%, transparent 70%);
}
.glow--left { bottom: auto; top: 20%; left: -30vw; }
.glow--bottom { bottom: -30vw; }
.glow--bottom-mid { left: 18vw; }
.glow--top-left { left: -18vw; top: -10vw; bottom: auto; width: 70vw; height: 70vw; }
.glow--top { left: 14vw; top: -16vw; bottom: auto; }

/* ==========================================================================
   01 Hero
   ========================================================================== */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto;
  padding-top: var(--header-h);
  background: var(--night-bg);
}
.hero > .wrap { position: relative; z-index: 1; width: 100%; }
.hero-inner { display: flex; flex-direction: column; justify-content: center; padding-block: 1rem 1.5rem; }
.hero .eyebrow { margin-bottom: clamp(1rem, 2.4vw, 1.75rem); text-align: center; }
/* Lockup: exactly as wide as the headline, so the eyebrow, text and buttons share its left and right edges.
   (width: 0 + min-width: 100% stops the paragraph from stretching the lockup wider than the headline.) */
.hero-lockup { align-self: center; display: inline-grid; justify-items: center; max-width: 100%; }
.hero-lockup > .eyebrow, .hero-lockup > .hero-foot { width: 0; min-width: 100%; }
/* Layered headline, as in the draft: the asterisk and the checker sit ON TOP of
   line 1 but tuck BEHIND line 2. Line 1 has no z-index, the icons are z-index 2,
   and line 2 is z-index 3, all inside the title's own stacking context. */
.hero-title {
  align-self: center;
  position: relative; isolation: isolate;
  font-weight: 400;
  font-size: clamp(3.75rem, 18.5vw, 17rem);
  line-height: .76;
  letter-spacing: -0.06em;
  color: var(--night-fg);
  display: grid;
  margin-left: -0.04em;
  padding-bottom: .12em;
  --indent: .68em;
}
.hero-title .line { display: block; position: relative; width: max-content; }
.hero-title .line-2 { margin-left: var(--indent); z-index: 3; }
/* optical nudge for line 1 (uses `left`, not a transform, so the icon layering isn't affected) */
.hero-title .line-1 { left: var(--l1-shift, 0em); }
/* Icon positions are in em, measured from the top-left of line 1, so they scale with the type.
   Override the custom properties per headline to move the icons. */
.hero-spark {
  position: absolute; z-index: 2;
  left: var(--spark-x, calc(var(--indent) - .54em)); top: var(--spark-y, .6em);
  width: var(--spark-size, .62em); height: var(--spark-size, .62em); color: var(--blue);
  animation: spin 24s linear infinite;
}
.hero-checker {
  position: absolute; z-index: 2;
  left: var(--chk-x, auto); right: var(--chk-right, -.02em); top: var(--chk-y, .63em);
  width: .72em; height: .43em; color: var(--blue-deep);
}
/* The checker can be split into layers so it weaves over and under the letters:
   --back sits behind both lines, --front sits in front of both. */
.hero-checker--back { z-index: -1; }
.hero-checker--front { z-index: 4; }

/* 404 "Lost in / Space." settings: the star sits over "Lost" and behind the "S"; the checker sits behind the "n"
   and the "e", except its bottom-left block, which lies over the "c". */
.hero-title--404 { --spark-x: .32em; --chk-right: -.62em; --chk-y: .66em; }

/* "Creative by Design." settings (em, from the top-left of "Creative").
   The checker's top-left block tucks under the last "e"; its bottom-left block lies over the "n". */
/* "by" sits in the corner under the asterisk's sweep and just left of the "D" */
/* --l1-shift moves "Creative" right by .011em so its "i" sits exactly above the "i" in "Design" (measured). */
.hero-title--cbd { --l1-shift: .011em; --spark-x: .289em; --spark-y: .57em; --spark-size: .55em; --chk-right: -.629em; --by-lift: .16em; --by-gap: -.06em; }
@keyframes spin { to { transform: rotate(360deg); } }
/* Small connector word (e.g. "by") tucked into line 2's indent, sitting on line 2's baseline */
.hero-title .by {
  --by-size: .24;
  position: absolute; right: 100%;
  margin-right: calc(var(--by-gap, .08em) / var(--by-size));
  top: calc((.739em - var(--by-lift, 0em)) / var(--by-size) - .8625em);
  font-size: calc(var(--by-size) * 1em);
  line-height: 1; letter-spacing: -0.01em;
  font-style: italic; font-weight: 400;
  color: var(--by-color, var(--night-fg));
}


/* everything in the hero is centered on the headline */
.hero-foot {
  display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem); text-align: center;
}
.hero-lede { max-width: 44ch; font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.hero-meta {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem;
  padding-bottom: clamp(1.5rem, 3vw, 2.6rem);
  font-size: .95rem;
}
.hero-meta a:hover { color: var(--night-accent); }

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee { background: var(--blue); color: var(--cream); overflow: hidden; border-block: 1.5px solid var(--black); }
.marquee-track {
  display: flex; align-items: center; gap: 1.75rem; width: max-content;
  padding-block: 1.05rem;
  font-weight: 700; text-transform: uppercase; font-size: clamp(1rem, 1.6vw, 1.35rem); white-space: nowrap;
  animation: marquee 38s linear infinite;
}
.marquee-track .sym { width: 1.1em; color: var(--black); }
@keyframes marquee { to { transform: translateX(calc(-50% - .875rem)); } }

/* ==========================================================================
   02 Intro
   ========================================================================== */
.intro { background: var(--blue); color: var(--cream); }
.intro-grid {
  display: grid; grid-template-columns: 1fr minmax(15rem, 21rem); gap: 2rem 4rem; align-items: end;
  padding-top: clamp(6rem, 13vw, 11rem); padding-bottom: clamp(3rem, 6vw, 5rem);
}
.intro-title { display: inline-grid; width: max-content; max-width: 100%; }
.intro-title .spread { display: flex; justify-content: space-between; }
.intro-side { text-align: right; display: grid; gap: 1rem; justify-items: end; align-self: start; }
.intro-side p:first-child { font-weight: 700; }
.block-arrow { margin-top: 1.5rem; color: var(--black); transition: transform .35s var(--ease); }
.block-arrow svg { width: clamp(3rem, 4.2vw, 3.75rem); height: clamp(3rem, 4.2vw, 3.75rem); }
.block-arrow:hover { transform: translate(4px, -4px); }

.texture-band {
  height: clamp(13rem, 28vw, 25rem);
  background-color: #333; background-size: cover; background-position: center;
}
.texture-band--streaks {
  background-image: url("../assets/img/texture-streaks.jpg");
  background-image: image-set(url("../assets/img/texture-streaks.webp") type("image/webp"), url("../assets/img/texture-streaks.jpg") type("image/jpeg"));
}
.texture-band--ripple {
  background-color: #111;
  background-image: url("../assets/img/texture-ripple.jpg");
  background-image: image-set(url("../assets/img/texture-ripple.webp") type("image/webp"), url("../assets/img/texture-ripple.jpg") type("image/jpeg"));
}

/* ==========================================================================
   03 Services
   ========================================================================== */
.services { background: var(--night-bg); color: var(--night-fg); }
.services-grid {
  display: grid;
  grid-template-columns: minmax(12rem, 20%) minmax(0, 28%) minmax(0, 1fr);
  min-height: var(--section-h);
}
.services-aside {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2.5rem;
  padding-right: 2rem; padding-bottom: clamp(3rem, 8vw, 7rem);
  color: var(--night-blue-text);
}
.services-aside .asterisk { width: clamp(4rem, 5.6vw, 5.5rem); height: clamp(4rem, 5.6vw, 5.5rem); animation: spin 40s linear infinite; }
.services-visual {
  background: #03060f url("../assets/img/texture-smoke.jpg") center / cover no-repeat;
  background-image: image-set(url("../assets/img/texture-smoke.webp") type("image/webp"), url("../assets/img/texture-smoke.jpg") type("image/jpeg"));
}
.services-main {
  padding-left: clamp(1.5rem, 3vw, 3rem);
  padding-top: clamp(7rem, 12vw, 10rem); padding-bottom: clamp(3rem, 8vw, 7rem);
}
.services-main .h-xl { margin-bottom: clamp(2rem, 4vw, 3rem); }

.accordion { display: grid; gap: .8rem; max-width: 40rem; }
.pill-item {
  border: 1.5px solid var(--blue); border-radius: var(--radius-box);
  transition: background-color .3s var(--ease);
}
.pill-item[open] { background: rgba(25, 95, 250, .06); }
.pill-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 1.25rem;
  padding: 1rem 1.5rem;
  color: var(--night-label); font-weight: 700; text-transform: uppercase; font-size: clamp(.98rem, .9rem + .3vw, 1.15rem); letter-spacing: -0.01em;
}
.pill-item summary::-webkit-details-marker { display: none; }
.pill-item summary em { font-style: normal; font-weight: 400; color: var(--night-fg); margin-left: .35em; }
.pill-item .plus { width: 1.05rem; height: 1.05rem; color: var(--night-plus); flex: none; transition: transform .35s var(--ease); }
.pill-item[open] .plus { transform: rotate(45deg); }
.pill-item summary:hover .plus { transform: rotate(90deg); }
.pill-item[open] summary:hover .plus { transform: rotate(135deg); }
.pill-body { padding: 0 1.5rem 1.4rem 3.8rem; display: grid; gap: 1rem; }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.tags li {
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .01em;
  border: 1.2px solid var(--night-tag); border-radius: var(--radius-pill); padding: .35rem .75rem;
}

/* ==========================================================================
   04 Work
   ========================================================================== */
.work { background: var(--night-bg); padding-top: clamp(7rem, 12vw, 10rem); padding-bottom: clamp(4rem, 9vw, 8rem); }
.work > .wrap { position: relative; z-index: 1; }
.work-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
/* Selected Works title: the star sits over line 1 but tucks behind line 2 */
.work-title { position: relative; isolation: isolate; margin-right: 1em; }
.work-title .wl { display: block; position: relative; width: max-content; }
.work-title .wl-2 { z-index: 1; }
.work-star { position: absolute; z-index: -1; left: calc(100% - .16em); top: -.2em; width: .66em; color: var(--neon); animation: spin 30s linear infinite; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  border: 1.5px solid var(--blue); border-radius: var(--radius-pill); background: transparent;
  padding: .55rem 1.05rem; font-weight: 700; text-transform: uppercase; font-size: .82rem; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.chip:hover { background: rgba(25, 95, 250, .25); }
.chip.is-active { background: var(--blue); color: var(--cream); }

.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.2vw, 2rem); }
.work-empty { margin-top: 2rem; opacity: .7; }

.card {
  padding: clamp(.6rem, .9vw, .8rem) clamp(.6rem, .9vw, .8rem) clamp(1.2rem, 2vw, 1.6rem);
  display: flex; flex-direction: column; gap: 1rem;
  transition: transform .45s var(--ease);
}
.card[hidden] { display: none; }
.card--blue { background: var(--blue); color: var(--cream); }
.card--cream { background: var(--card-alt-bg); color: var(--card-alt-fg); }
.card > p, .card-meta { padding-inline: .45rem; }
.card-media { position: relative; aspect-ratio: 1 / .88; overflow: hidden; background: #222; }
.card-media picture { width: 100%; height: 100%; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .5s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-star {
  position: absolute; left: 7%; top: 8%;
  width: 17%; height: auto; aspect-ratio: 1; color: var(--blue);
  transition: transform .6s var(--ease);
}
.card-star.sym--notch { width: 26%; aspect-ratio: 2.38; }
.card-star--pop { color: var(--neon); }
.card-meta { display: flex; justify-content: space-between; gap: 1rem; padding-top: .35rem; }
.card-meta h2, .card-meta h3, .card-cat { font-size: clamp(.95rem, .9rem + .2vw, 1.1rem); font-weight: 700; text-transform: uppercase; line-height: 1.2; letter-spacing: -0.01em; }
.card-cat { text-align: right; color: var(--black); }
.card--cream .card-meta h2, .card--cream .card-meta h3 { color: var(--blue); }
.card--cream .card-cat { color: var(--card-alt-cat); }
.card > p { font-size: .98rem; }

/* Project cards: the whole card opens the project viewer */
.work-grid .card { position: relative; }
.work-grid .card.reveal:hover { transform: translateY(-5px); }
.card-open { color: inherit; }
.card-open::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.card-open:focus-visible { outline: none; }
.work-grid .card:focus-within { outline: 3px solid var(--night-accent); outline-offset: 4px; }
.work-grid .card:focus-within:not(:has(:focus-visible)) { outline: none; }
.card > .card-more {
  margin: auto .45rem 0; padding: .9rem 0 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border-top: 1.5px solid currentColor; border-top-color: color-mix(in srgb, currentColor 30%, transparent);
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .01em;
}
.card-more svg { width: .85rem; height: .85rem; flex: none; transition: transform .3s var(--ease); }
.card:hover .card-more svg { transform: translate(3px, -3px); }
/* the "Your Project" invitation card */
.card-invite { width: 100%; height: 100%; display: grid; place-items: center; background: var(--black) url("../assets/img/your-project.webp") center / cover; }
.card-invite .sym { width: 38%; color: var(--neon); animation: spin 30s linear infinite; }
/* video cards get a play button */
.card-play {
  position: absolute; inset: 0; margin: auto;
  width: 21%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue); color: var(--cream);
  transition: transform .4s var(--ease);
}
.card-play svg { width: 44%; height: 44%; }
.card:hover .card-play { transform: scale(1.1); }

/* ==========================================================================
   Project viewer (full-screen; always dark so the work is the only bright thing)
   ========================================================================== */
.viewer-open { overflow: hidden; }
.viewer {
  position: fixed; inset: 0; margin: 0;
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  padding: clamp(.75rem, 2vw, 1.5rem); border: 0;
  background: #000; color: var(--cream); --focus: var(--blue-soft);
  grid-template-rows: auto minmax(0, 1fr) auto; gap: clamp(.75rem, 1.6vw, 1.25rem);
}
.viewer[open] { display: grid; }
.viewer::backdrop { background: #000; }
.viewer [hidden] { display: none !important; }
.viewer-top {
  display: flex; align-items: center; gap: 1rem;
  min-height: 3.2rem; padding: .45rem .55rem .45rem 1.6rem;
  border: 1.5px solid var(--blue); border-radius: var(--radius-pill);
}
.viewer-heading { display: flex; align-items: baseline; gap: .25rem .9rem; margin-right: auto; min-width: 0; }
.viewer-heading h2 { font-size: 1.05rem; font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer-cat { color: var(--blue-soft); font-size: .82rem; font-weight: 700; text-transform: uppercase; white-space: nowrap; }
.viewer-count { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.viewer-btn {
  flex: none; display: inline-grid; place-items: center;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  border: 1.5px solid var(--blue); background: transparent; color: var(--cream); cursor: pointer;
  transition: background-color .25s var(--ease);
}
.viewer-btn:hover { background: var(--blue); }
.viewer-btn svg { width: 1rem; height: 1rem; }
.viewer-prev svg { transform: rotate(180deg); }
.viewer-stage { position: relative; min-height: 0; }
.viewer-img, .viewer-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.viewer-img { transition: opacity .25s ease; }
.viewer-img.is-loading { opacity: 0; }
.viewer-video { background: #000; }
.viewer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 2.6rem; padding-inline: .5rem 0; }
.viewer-desc { max-width: 62ch; font-size: .98rem; }
.viewer-nav { display: flex; gap: .5rem; flex: none; }

/* ==========================================================================
   05 Process
   ========================================================================== */
.process { display: grid; grid-template-columns: 1fr 1fr; background: var(--blue); color: var(--cream); min-height: var(--section-h); }
.process-visual {
  position: relative; overflow: hidden;
  /* its own backdrop (not the Services picture); the dark wash keeps the cream title readable over it */
  background:
    linear-gradient(rgba(0, 0, 0, .3), rgba(0, 0, 0, .3)),
    #0b0b0d url("../assets/img/how-it-works-bg.webp") center / cover no-repeat;
  display: flex; align-items: center;
  padding: var(--header-h) 0 clamp(3rem, 6vw, 5rem) var(--pad);
}
.process-frame {
  position: relative; z-index: 1;
  width: min(62%, 30rem);
  background: #fff; padding: 4% 4% 22%;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}
.process-frame img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.process-title {
  position: absolute; z-index: 2; right: clamp(.5rem, 2vw, 2rem); top: 50%;
  translate: 0 -50%;
  display: flex; flex-direction: column; gap: .02em;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: clamp(3.4rem, 8.4vw, 7.6rem); font-weight: 400; line-height: .9; letter-spacing: var(--tracking-tight); text-transform: uppercase;
  color: var(--cream); white-space: nowrap;
}
.steps-mark { width: clamp(3.5rem, 5vw, 5rem); color: var(--neon); }
.process-panel { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: clamp(1.75rem, 3vw, 2.5rem); padding: var(--header-h) var(--pad) clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 4rem); }
.steps { display: grid; gap: clamp(1.5rem, 3vw, 2.4rem); width: 100%; counter-reset: step; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; max-width: 22rem; }
.step--offset { margin-left: clamp(2rem, 18vw, 16rem); }
.step svg { width: 1.6rem; height: 1.6rem; color: var(--cream); margin-top: .1rem; }
.step h3 { font-size: clamp(1.05rem, 1rem + .35vw, 1.3rem); font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; }
.step p { margin-top: .25rem; opacity: .92; font-size: .98rem; }

/* ==========================================================================
   06 Clients
   ========================================================================== */
.clients { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, max(36%, 30rem)); background: var(--night-bg); min-height: calc(var(--section-h) * .92); }
.clients-copy {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: center; gap: clamp(1.75rem, 3.5vw, 2.75rem);
  padding-top: var(--header-h); padding-bottom: clamp(3rem, 6vw, 5rem); padding-right: clamp(1.5rem, 4vw, 4rem);
}
/* A plain list, not buttons: crescent bullets over hairlines, no hover state */
.for-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1.5rem, 4vw, 3.5rem); max-width: 56rem; }
.for-list li {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.05rem 0; border-bottom: 1.5px solid var(--night-line);
  font-weight: 700; text-transform: uppercase; font-size: clamp(.9rem, .85rem + .25vw, 1.08rem); line-height: 1.2;
}
.for-list .sym { width: .8rem; color: var(--blue); }
.clients-note { max-width: 36rem; }
.clients-visual { position: relative; }
.clients-visual picture, .clients-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }

/* ==========================================================================
   07 About
   ========================================================================== */
.about { background: var(--night-bg); color: var(--night-fg); }
.about-grid {
  display: grid; grid-template-columns: minmax(16rem, 27rem) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
  padding-top: clamp(7rem, 12vw, 10rem); padding-bottom: clamp(4rem, 8vw, 7rem);
}
.profile { color: var(--cream); }
.profile .card-media { aspect-ratio: 1 / 1.05; }
.profile img { filter: grayscale(1) contrast(1.05); object-position: 60% 40%; }
.profile:hover img { filter: none; }
.profile .card-star { left: auto; right: 6%; top: auto; bottom: 7%; width: 30%; }
.about-copy { display: grid; gap: 1.5rem; }
.about-title { text-align: right; margin-bottom: clamp(.5rem, 2vw, 1.5rem); }
.about-lede { color: var(--night-blue-text); max-width: 36rem; }
/* side-by-side layout: the copy lines up with the right edge of "Hi, I'm Brandon" */
@media (min-width: 861px) {
  .about-lede { justify-self: end; text-align: right; }
  .traits { justify-content: flex-end; }
}
.traits { display: flex; flex-wrap: wrap; gap: 1.5rem clamp(2rem, 5vw, 4rem); margin-top: .5rem; }
.traits div { display: grid; grid-template-columns: 8.5rem auto; gap: 1rem; }
.traits dt { color: var(--night-blue-text); font-weight: 700; text-transform: uppercase; line-height: 1.2; }
.traits dd { font-style: italic; line-height: 1.35; }

/* ==========================================================================
   08 Contact
   ========================================================================== */
.contact { background: var(--night-bg); }
.contact-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 30rem); gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
  padding-top: clamp(8rem, 13vw, 11rem); padding-bottom: clamp(4rem, 8vw, 7rem);
}
.contact-title {
  display: grid;
  font-size: clamp(5rem, 17vw, 15.5rem); font-weight: 400; line-height: .84; letter-spacing: -0.06em;
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}
.contact-title span { display: block; width: max-content; position: relative; }
.contact-title .contact-star { display: inline-block; position: absolute; right: -.5em; top: .02em; width: .4em; height: .4em; color: var(--night-pop); animation: spin 20s linear infinite; }
.contact-lede { max-width: 32rem; margin-bottom: 1.5rem; }
.contact-list { display: flex; flex-wrap: wrap; gap: .25rem 0; }
.contact-list li:not(:last-child)::after { content: "/"; margin-inline: .7rem; opacity: .7; }
.contact-list a:hover { color: var(--night-accent); }

.contact-form {
  display: grid; gap: 1.15rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1.5px solid var(--blue); border-radius: 1.6rem;
  background: var(--night-panel);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.form-pill {
  justify-self: start;
  border: 1.5px solid var(--blue); border-radius: var(--radius-box);
  padding: .6rem 1.2rem; font-weight: 700; text-transform: uppercase; font-size: clamp(1.05rem, 1rem + .5vw, 1.45rem); letter-spacing: -0.02em;
}
.field { display: grid; gap: .4rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--night-accent); padding: 0; }
.field legend { margin-bottom: .55rem; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1.5px solid var(--night-line);
  padding: .55rem 0; border-radius: 0; resize: vertical;
  transition: border-color .25s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--blue); }
.field input:focus-visible, .field textarea:focus-visible { border-bottom-color: var(--night-accent); box-shadow: 0 2px 0 0 var(--night-accent); }
.field [aria-invalid="true"] { border-bottom-color: #ff7a7a; }
.check-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.check-chips label { position: relative; cursor: pointer; }
.check-chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.check-chips span {
  display: inline-block; border: 1.5px solid var(--night-line); border-radius: var(--radius-pill);
  padding: .4rem .8rem; font-size: .8rem; font-weight: 600; transition: all .2s var(--ease);
}
.check-chips input:checked + span { background: var(--blue); border-color: var(--blue); color: var(--cream); }
.check-chips input:focus-visible + span { outline: 3px solid var(--night-accent); outline-offset: 2px; }
.form-status { min-height: 1.4em; font-size: .9rem; color: var(--night-accent); }

/* ==========================================================================
   Resume page
   ========================================================================== */
.resume { background: var(--night-bg); padding-top: clamp(7rem, 12vw, 10rem); padding-bottom: clamp(4rem, 8vw, 7rem); }
.resume > .wrap { position: relative; z-index: 1; max-width: 75rem; }
.resume-head { display: grid; gap: 1.1rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.resume-head h1 { position: relative; width: max-content; max-width: 100%; }
/* name: the sunburst passes over the "N" of Brandon and the final "R" of Behringer, but under the "E" between them */
.resume-name { isolation: isolate; }
.resume-name .wl { display: block; position: relative; width: max-content; }
.resume-name .wl-2 { z-index: 1; }
.resume-name .over { position: relative; z-index: 2; }
.resume-mark { position: absolute; z-index: 1; left: var(--mark-x, 4.44em); top: -.4em; width: .7em; color: var(--neon); animation: spin 40s linear infinite; }
.resume-role { font-size: clamp(1.1rem, 1rem + .6vw, 1.5rem); max-width: 40ch; }
.resume-row {
  display: grid; grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr); gap: 1.5rem clamp(1.5rem, 5vw, 4rem);
  padding-block: clamp(2rem, 4vw, 3rem); border-top: 1.5px solid var(--blue);
}
.resume-label { font-size: 1rem; font-weight: 700; text-transform: uppercase; color: var(--night-blue-text); line-height: 1.2; }
.resume-body { display: grid; gap: 2rem; }
.resume-summary { font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem); line-height: 1.4; max-width: 50ch; }
.job { display: grid; gap: 1.6rem; }
.job + .job { padding-top: 2rem; border-top: 1px solid var(--night-rule); }
.job-head h3 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 400; letter-spacing: -0.04em; line-height: 1; }
.job-head p, .role-head p { color: var(--night-blue-text); font-size: .9rem; font-weight: 700; margin-top: .35rem; }
.role { display: grid; gap: .7rem; max-width: 62ch; }
.role-head h3, .role-head h4 { font-size: 1.05rem; font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; margin: 0; }
.role-head h4 span { font-weight: 400; }
.points { display: grid; gap: .6rem; }
.points li { display: grid; grid-template-columns: auto 1fr; gap: .8rem; }
.points .sym { width: .7rem; margin-top: .42em; color: var(--blue); }
.skills { display: grid; gap: 1.25rem; }
.skills > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.skills dt { font-weight: 700; text-transform: uppercase; font-size: .9rem; padding-top: .3rem; }
.resume-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding-top: clamp(2rem, 4vw, 3rem); border-top: 1.5px solid var(--blue); }
main > .hero:only-child { padding-top: 0; }  /* the 404 page has no header */
.resume-cta .sym { width: 4rem; color: var(--neon); margin-right: .75rem; }
[data-mode="light"] .resume-cta .sym { color: var(--blue); }
@media (max-width: 760px) {
  .resume-row { grid-template-columns: 1fr; }
  .skills > div { grid-template-columns: 1fr; gap: .4rem; }
}
/* Printing the resume ("Print or save as PDF"). Sections that run across pages are laid
   out as plain blocks here: browsers split grids badly between pages, which made
   entries overlap and left half-empty pages. */
@page { margin: 14mm 16mm; }
@media print {
  html { font-size: 10pt; }
  html, body { background: #fff; }  /* with color-scheme below: page margins stay white even in dark mode */
  .site-header, .site-footer, .glow, .resume-cta, .skip-link { display: none !important; }
  :root, [data-mode] { color-scheme: light; --night-bg: #fff; --night-fg: #000; --night-blue-text: #195ffa; --night-tag: #000; --night-rule: rgba(0,0,0,.2); }
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }  /* sections not yet scrolled into view must still print */
  .sym { -webkit-print-color-adjust: exact; print-color-adjust: exact; }  /* symbols are drawn with background colour */

  .resume { padding: 0; }
  .resume > .wrap { max-width: none; padding-inline: 0; }
  .resume-head { gap: .5rem; margin-bottom: 1.25rem; }
  .resume-name { font-size: 3.2rem; }
  .resume-mark { color: var(--blue); animation: none; }
  .resume-role { font-size: 1.1rem; max-width: none; }

  .resume-row, .resume-body, .job, .role, .skills { display: block; }  /* .points too, below */
  .resume-row { padding-block: .85rem 0; margin-top: 1rem; }
  .resume-label { margin-bottom: .7rem; break-after: avoid; }
  .resume-summary { font-size: 1.05rem; max-width: none; }

  .job + .job { margin-top: 1.1rem; padding-top: 1.1rem; }
  .job-head { margin-bottom: .85rem; break-after: avoid; }
  .job-head h3 { font-size: 1.5rem; }
  .role { max-width: none; }
  .role + .role { margin-top: .95rem; }
  .role-head { margin-bottom: .4rem; break-after: avoid; }
  .role > p, .points li, .skills > div { break-inside: avoid; }
  .points { display: block; }
  .points li + li { margin-top: .35rem; }
  .skills > div + div { margin-top: .5rem; }
  p, li { orphans: 3; widows: 3; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--night-bg); padding-bottom: clamp(1rem, 2.4vw, 2.1rem); }
.site-footer > .wrap { padding-inline: clamp(.75rem, 2.4vw, 2.1rem); }
.footer-badge { display: grid; place-items: center; padding: clamp(2rem, 5vw, 4rem) 0; border-top: 1px solid var(--night-rule); }
.footer-badge img {
  width: clamp(9rem, 15vw, 13rem); border-radius: 50%;
  /* dark mode: the dark disc sits on black, so outline it (with a soft blue glow) to keep its shape */
  box-shadow: 0 0 0 1.5px rgba(255, 244, 226, .22), 0 0 48px rgba(25, 95, 250, .28);
}
/* light mode: the light disc on cream gets a hairline edge and a soft shadow */
[data-mode="light"] .footer-badge img { box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .12), 0 18px 40px rgba(0, 0, 0, .14); }
.footer-logo--light,
[data-mode="light"] .footer-logo--dark { display: none; }
[data-mode="light"] .footer-logo--light { display: block; }
.bar--footer { justify-content: space-between; flex-wrap: wrap; padding-right: 1.6rem; }
.bar--footer a:hover { color: var(--night-accent); }

/* ==========================================================================
   Reveal on scroll (only when JS is running)
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Made For: below 1100px the picture sits under the list as a full, uncropped square */
.clients-actions { justify-content: flex-start; }
@media (max-width: 1100px) {
  .clients { grid-template-columns: 1fr; min-height: 0; }
  .clients-copy { padding-right: var(--pad); }
  .clients-visual { padding: 0 var(--pad) clamp(3rem, 6vw, 5rem); }
  .clients-visual picture, .clients-visual img { display: block; width: min(100%, 36rem); height: auto; aspect-ratio: 1; margin-inline: auto; }
}
/* pages that are a single section: let it fill the screen */
main > .work:only-child, main > .contact:only-child, main > .about:only-child { min-height: 100vh; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-grid { grid-template-columns: minmax(0, 30%) minmax(0, 1fr); }
  /* mid sizes: picture on the left; the heading, list and then the note stacked on the right */
  .services-visual { grid-column: 1; grid-row: 1 / span 2; }
  .services-main { grid-column: 2; grid-row: 1; padding-left: clamp(1.5rem, 4vw, 3rem); padding-bottom: 1.5rem; }
  .services-aside {
    grid-column: 2; grid-row: 2; flex-direction: row; align-items: center; justify-content: flex-start; gap: 1.25rem;
    padding: 0 var(--pad) clamp(3rem, 8vw, 7rem) clamp(1.5rem, 4vw, 3rem); max-width: 44rem;
  }
  .services-aside .asterisk { flex: none; width: 3.25rem; height: 3.25rem; }
}

@media (max-width: 860px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-side { text-align: left; justify-items: start; }
  .block-arrow { justify-self: end; margin-top: 0; }

  .services-grid { grid-template-columns: 1fr; min-height: 0; }
  /* small sizes: heading and list, then the note */
  .services-main { grid-column: auto; grid-row: auto; order: 1; padding-left: var(--pad); padding-top: clamp(7rem, 20vw, 9rem); padding-bottom: 0; }
  .services-aside { grid-column: auto; grid-row: auto; order: 2; padding: 2rem var(--pad) 3rem; }
  .services-visual { display: none; }  /* the picture only shows at desktop sizes */

  .process { grid-template-columns: 1fr; min-height: 0; }
  .process-visual { min-height: 32rem; padding-bottom: 3rem; }
  .process-panel { padding-top: 3.5rem; padding-bottom: 4rem; }
  .step--offset { margin-left: clamp(1.5rem, 12vw, 6rem); }


  .about-grid { grid-template-columns: 1fr; }
  .about-copy { order: -1; }
  .about-title { text-align: left; }
  .profile { max-width: 26rem; }

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

@media (max-width: 620px) {
  .work-grid { grid-template-columns: 1fr; }
  .for-list { grid-template-columns: 1fr; }
  .hero-meta { flex-direction: column; }
  /* sized for the current two-word headline; retune if the words get longer */
  .hero-lockup { align-self: flex-start; }
  .hero-title { font-size: 21.5vw; }
  .pill-item summary { padding: .9rem 1.1rem; gap: .9rem; }
  .pill-item summary em { display: block; margin-left: 0; }
  .pill-body { padding: 0 1.1rem 1.2rem 1.1rem; }
  .tags li { font-size: .7rem; padding: .3rem .6rem; }
  .traits div { grid-template-columns: 7rem auto; }
  .viewer-top { border-radius: 1.6rem; padding-left: 1.1rem; }
  .viewer-heading { flex-direction: column; }
  .viewer-desc { font-size: .9rem; }
  .bar--footer { flex-direction: column; align-items: flex-start; gap: .35rem; border-radius: 1.6rem; padding: 1rem 1.4rem; }
}
