/* ==========================================================================
   Ernest Mar Banigon, portfolio. Direction: "charcoal and amber" (PROJECT.md), from the reference
   Ernest picked (2026-10-08): a charcoal page, raised dark panels with neutral shadows, a warm
   orange accent, an elegant serif for display and quiet tracked capitals for navigation.
   Every text token reaches 4.5:1 on every surface it sits on (values below are against the
   panel, the lightest surface); tools/browser_qa.mjs measures the rendered result.
   The whole site is dark, so [data-surface="dark"] only re-states the same tokens.
   ========================================================================== */
:root {
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;

  --c-bg: #1C1C1D;        /* charcoal page */
  --c-panel: #262627;     /* raised panels: work, posters, lightbox */
  --c-band: #222223;      /* process and contact bands */
  --c-ink: #EFE7DA;       /* cream headings: 12.2 on panel */
  --c-text: #D3CDC3;      /* body: 9.5 on panel */
  --c-muted: #A7A196;     /* secondary: 5.8 on panel, 6.6 on page */
  --c-line: #3A3A3C;      /* hairlines (decorative) */
  --c-stroke: #77736C;    /* icon-button rings: 3.4 on page */
  --c-brand: #F2963A;     /* amber: 6.6 on panel */
  --c-link: #F2963A;
  --c-on-brand: #1C1C1D;  /* 7.5 on amber */

  --radius: 3px;
  --container: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 4.5rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1.5rem 3rem -1rem rgb(0 0 0 / .55), 0 .25rem .75rem rgb(0 0 0 / .3);  /* neutral elevation */
}
[data-surface="dark"] { background: var(--c-band); color: var(--c-text); }

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); color-scheme: dark; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font: 400 1.0625rem/1.65 var(--font);
}
h1, h2, h3 { margin: 0; color: var(--c-ink); font-family: var(--font-display); font-weight: 600; line-height: 1.05; text-wrap: balance; }
h2 { font-size: clamp(2.5rem, 1.8rem + 3vw, 4rem); letter-spacing: -.01em; }
h3 { font-size: 1.625rem; line-height: 1.15; }
p { margin: 0; text-wrap: pretty; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 3px; }
::selection { background: var(--c-brand); color: var(--c-on-brand); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .5rem 1rem; background: var(--c-brand); color: var(--c-on-brand); }
.skip-link:focus { top: 1rem; }

/* ---------------------------------------------------------------- rule utilities (template) */
.nowrap { white-space: nowrap; }
.wrap-anywhere { overflow-wrap: anywhere; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon-row { display: inline-flex; align-items: center; gap: .6em; }

/* Small tracked capitals: navigation, the hero greeting, the browser bars. */
.caps { font-family: var(--font); font-size: .8125rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }

/* ---------------------------------------------------------------- buttons and links
   One primary CTA ("Start a project"). Everything else is a ghost button or a text link. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 3.25rem; padding: .8rem 1.75rem; border: 1px solid transparent; border-radius: var(--radius);
  font: 600 1rem/1.2 var(--font); letter-spacing: .02em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .15s var(--ease), opacity .15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--c-brand); color: var(--c-on-brand); }
.btn-primary:hover { opacity: .88; }
.btn-ghost { border-color: var(--c-ink); background: transparent; color: var(--c-ink); }
.btn-ghost:hover { opacity: .8; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.text-link {
  color: var(--c-link); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: .3em; min-height: 2.75rem; display: inline-flex; align-items: center;
}
.text-link:hover { text-decoration-thickness: 2px; }

/* ---------------------------------------------------------------- panel
   The one surface device: a raised dark panel with a neutral elevation shadow. */
.sheet { position: relative; background: var(--c-panel); border-radius: 6px; box-shadow: var(--shadow); }

/* ---------------------------------------------------------------- header
   Fixed-height bar. The scrolled state only animates transform + opacity. */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); }
.site-header::before {
  content: ""; position: absolute; inset: 0; background: var(--c-bg); box-shadow: 0 1px 0 var(--c-line);
  opacity: 0; transition: opacity .25s var(--ease);
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header__bar { position: relative; height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.brand {
  display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; white-space: nowrap; color: var(--c-ink);
  transform-origin: left center; transition: transform .25s var(--ease);
}
.brand__mark {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--c-brand); border-radius: 50%;
  color: var(--c-brand); font: 700 .875rem/1.2 var(--font-display); letter-spacing: 0;
}
.brand__name { font-size: .8125rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.site-header.is-scrolled .brand { transform: scale(.95); }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 2.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; white-space: nowrap; color: var(--c-text); font-size: .8125rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.site-nav a:hover { color: var(--c-brand); }
.header-cta { min-height: 2.75rem; padding: .55rem 1.2rem; font-size: .9375rem; }
.nav-toggle { display: none; }

@media (max-width: 899px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; margin-left: auto;
    border: 0; background: transparent; color: var(--c-ink); cursor: pointer;
  }
  .header-cta { margin-left: auto; }
  .header-cta + .nav-toggle { margin-left: 0; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0; padding: .5rem var(--gutter) 1.5rem;
    background: var(--c-panel); box-shadow: 0 1px 0 var(--c-line), var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-.5rem);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--c-line); font-size: .875rem; }
}
@media (max-width: 599px) {
  .header-cta { display: none; }
  /* The hidden CTA still matches `.header-cta + .nav-toggle`, so push the toggle right again,
     and let its glyph (not its 44px tap box) line up with the gutter. */
  .header-cta + .nav-toggle { margin-left: auto; margin-right: -.8125rem; }
  .brand__name { font-size: .75rem; letter-spacing: .12em; }
}

/* ---------------------------------------------------------------- ambient light
   Ernest asked for his reference's blurred amber backdrop (2026-10-08), so this is the one place a
   coloured glow is used: soft pools of out-of-focus warm light behind the hero and the skills grid.
   Static (no motion). The pools sit low and right, away from the amber greeting, so text keeps its
   contrast; browser_qa measures text over it from the rendered pixels. */
.hero-wrap { position: relative; isolation: isolate; overflow-x: clip; margin-top: calc(-1 * var(--header-h)); padding-top: var(--header-h); }
.ambient { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-wrap > .ambient { bottom: -10rem; }  /* the light spills a little past the hero, then fades */
.ambient::before {
  content: ""; position: absolute; inset: -12%;
  background:
    radial-gradient(20% 24% at 77% 50%, rgb(242 150 58 / .42), transparent 70%),
    radial-gradient(26% 12% at 30% 80%, rgb(242 150 58 / .40), transparent 72%),
    radial-gradient(24% 12% at 62% 84%, rgb(214 128 52 / .55), transparent 72%),
    radial-gradient(70% 18% at 50% 84%, rgb(140 78 32 / .60), transparent 76%),
    radial-gradient(16% 14% at 95% 22%, rgb(190 106 44 / .30), transparent 70%),
    radial-gradient(14% 10% at 8% 86%, rgb(214 128 52 / .35), transparent 70%);
  filter: blur(40px);
}
.ambient::after { content: ""; position: absolute; inset: auto 0 0; height: 22%; background: linear-gradient(to bottom, transparent, var(--c-bg)); }
.ambient--skills::before {
  background:
    radial-gradient(30% 26% at 16% 55%, rgb(214 128 52 / .50), transparent 72%),
    radial-gradient(28% 30% at 84% 45%, rgb(242 150 58 / .40), transparent 70%),
    radial-gradient(75% 24% at 50% 58%, rgb(140 78 32 / .60), transparent 76%);
}
.ambient--skills::after { inset: 0; height: auto; background: linear-gradient(to bottom, var(--c-bg), transparent 22%, transparent 78%, var(--c-bg)); }
@media (max-width: 899px) {
  /* Phones: the portrait sits under the text, so the light gathers at the bottom, behind it. */
  .hero-wrap .ambient::before {
    background:
      radial-gradient(40% 12% at 30% 82%, rgb(242 150 58 / .45), transparent 70%),
      radial-gradient(35% 10% at 75% 76%, rgb(214 128 52 / .45), transparent 70%),
      radial-gradient(80% 14% at 55% 90%, rgb(140 78 32 / .60), transparent 76%);
  }
}

/* ---------------------------------------------------------------- hero
   Greeting in amber capitals, the role as the headline with two words in amber (Ernest's reference),
   the cut-out portrait standing on a lighter arch so the dark shirt keeps its outline. */
.hero { display: grid; gap: 2.5rem 3rem; padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(3rem, 5vw, 4rem); align-items: center; }
/* Positioned so it paints above the light spilling out of .hero-wrap (both positioned: tree order wins). */
.hero-wrap + .section { position: relative; padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.hero__title { display: grid; gap: .9rem; }
.hero__hello { color: var(--c-brand); font-size: clamp(.875rem, .8rem + .35vw, 1.0625rem); }
.hero__role { font-size: clamp(3rem, 1.6rem + 5.4vw, 6.25rem); line-height: .98; letter-spacing: -.015em; }
.hero__role em { font-style: normal; color: var(--c-brand); }
.hero__lede { margin-block: 1.75rem 2.25rem; max-width: 35rem; font-size: 1.1875rem; line-height: 1.65; }
.hero .btn { min-width: 12.5rem; }
.hero__photo { position: relative; margin: 0; justify-self: center; width: min(100%, 26rem); }
.hero__photo::before {
  content: ""; position: absolute; inset: 14% 4% 0; border-radius: 999px 999px 6px 6px;
  background: #34322F; box-shadow: var(--shadow);
}
.hero__photo img { position: relative; width: 100%; height: auto; }
.hero--404 { min-height: 50vh; }
.hero--404 h1 { font-size: clamp(2.75rem, 2rem + 4vw, 4.5rem); }
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .hero__photo { justify-self: end; }
}
@media (max-width: 899px) {
  .hero__photo { width: min(100%, 11.5rem); justify-self: start; }
  .hero .btn { min-width: 0; flex: 1 1 10rem; }
}

/* ---------------------------------------------------------------- sections */
.section { padding-block: clamp(3rem, 7vw, 6.5rem); }
.section--rule .container { border-top: 1px solid var(--c-line); padding-top: clamp(3rem, 6vw, 5rem); }
.section--rule { padding-top: 0; }
.section__head { display: grid; gap: 1rem; max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head p { color: var(--c-muted); }

/* ---------------------------------------------------------------- work
   Browser frame on a panel. The screen shows the top of the page; on hover or with the button the
   full-page strip slides up (transform only). 62.5cqi = the 16:10 screen's height. */
.work-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2.5rem, 5vw, 4.5rem) 3rem; }
@media (min-width: 760px) {
  .work-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-grid--concept { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .work-grid--concept > .work { grid-column: span 3; }
  .work-grid--concept > .work:nth-child(n + 3) { grid-column: span 2; }
}
@media (min-width: 760px) and (max-width: 1099px) {
  /* Three across is too small here: the last row's single card spans both columns. */
  .work-grid--concept > .work:nth-child(n + 3) { grid-column: span 3; }
  .work-grid--concept > .work:last-child { grid-column: 2 / span 4; }
}
.work { display: grid; align-content: start; gap: .5rem; }
.work__sheet { margin-bottom: 1.5rem; padding: clamp(.5rem, 1.4vw, .875rem); }
.work-grid--two .work__sheet { margin-bottom: .75rem; }  /* no phone frame hanging below */
.browser { position: relative; border: 1px solid var(--c-line); border-radius: 3px; overflow: hidden; }
.browser__bar {
  padding: .5rem .8rem; border-bottom: 1px solid var(--c-line);
  font-size: .75rem; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser__screen { container-type: inline-size; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-bg); }
.browser__screen img { width: 100%; height: auto; transform: translateY(0); transition: transform .9s var(--ease); }
/* Mouse users get it on hover; everyone gets the "Scroll the page" button (main.js sets .is-playing).
   Under reduced motion the button still works but jumps (the global rule shortens the transition). */
.work.is-playing .browser__screen img { transform: translateY(calc(-100% + 62.5cqi)); transition: transform 7s cubic-bezier(.45, 0, .55, 1); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .work:hover .browser__screen img { transform: translateY(calc(-100% + 62.5cqi)); transition: transform 7s cubic-bezier(.45, 0, .55, 1); }
}
.browser__play {
  position: absolute; left: .6rem; bottom: .6rem; min-height: 2.75rem; padding: .5rem 1rem;
  border: 0; border-radius: var(--radius); background: var(--c-bg); color: var(--c-ink);
  font: 600 .875rem/1.2 var(--font); white-space: nowrap; cursor: pointer; box-shadow: 0 .25rem .75rem rgb(0 0 0 / .4);
}
.browser__play[aria-pressed="true"] { background: var(--c-brand); color: var(--c-on-brand); }
.work__phone {
  position: absolute; right: -.75rem; bottom: -1.5rem; width: 22%; max-width: 8.5rem;
  border: 5px solid #0E0E0F; border-radius: 14px; background: #0E0E0F; box-shadow: var(--shadow);
}
.work__name { margin-top: .25rem; }
.work__text { max-width: 36rem; }
.work__meta { font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); }
.work__link {
  justify-self: start; color: var(--c-link); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: .3em; min-height: 2.75rem; display: inline-flex; align-items: center;
}
.work__link:hover { text-decoration-thickness: 2px; }

/* ---------------------------------------------------------------- posters */
/* Phones: one swipeable row (scroll-snap rail) instead of rows of two. */
.poster-grid {
  list-style: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 1.5rem; display: grid; gap: 1.25rem;
  grid-auto-flow: column; grid-auto-columns: min(62%, 15rem);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain;
}
.poster-grid > .poster { scroll-snap-align: start; }
@media (min-width: 900px) {
  .poster-grid {
    margin: 0; padding: 0; overflow: visible; grid-auto-flow: row; grid-auto-columns: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem;
  }
}
.poster { display: grid; gap: .9rem; align-content: start; }
.poster__sheet { display: block; padding: clamp(.35rem, 1vw, .6rem); }
.poster__sheet img { width: 100%; aspect-ratio: 1240 / 1754; object-fit: cover; object-position: top; border-radius: 2px; transition: opacity .2s var(--ease); }
.poster__sheet:hover img { opacity: .85; }
.poster__caption { font-size: .9375rem; line-height: 1.4; color: var(--c-muted); }

.lightbox {
  width: min(100% - 2rem, 54rem); max-height: calc(100dvh - 2rem); padding: 0; border: 0; border-radius: 6px;
  background: var(--c-panel); color: var(--c-text);
}
.lightbox::backdrop { background: rgb(14 14 15 / .88); }
.lightbox__bar { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; background: var(--c-panel); border-bottom: 1px solid var(--c-line); }
.lightbox__caption { font-weight: 600; color: var(--c-ink); }
.lightbox__close { min-height: 2.75rem; padding-block: .5rem; }
.lightbox__frame img { width: 100%; height: auto; }

/* ---------------------------------------------------------------- skills
   From Ernest's reference: a ruled grid of tools, icon over name, the first part of each name in amber. */
.skills { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(3.5rem, 9vw, 7.5rem); }
.skills__title { text-align: center; margin-bottom: clamp(1.75rem, 4vw, 3.25rem); }
/* Phones: compact two-column tiles, icon beside name. 760px+: the reference's stacked cells, four across. */
.skills__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.skill {
  display: flex; align-items: center; gap: .65rem; min-height: 4.25rem; padding: .75rem;
  border: 1px solid var(--c-stroke); margin: 0 0 -1px -1px; background: rgb(28 28 29 / .62);
}
.skills__grid { padding-left: 1px; }
.skill__icon { width: 1.75rem; height: 1.75rem; color: var(--c-ink); }
.skill__name { font: 700 .9375rem/1.2 var(--font-display); letter-spacing: .05em; text-transform: uppercase; color: var(--c-ink); }
@media (min-width: 760px) {
  .skills__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 2rem; padding-left: 0; }
  .skill {
    display: grid; justify-items: center; align-content: center; gap: .9rem; min-height: 10rem; padding: 1.5rem .75rem;
    margin: 0; border-left-width: 0; text-align: center;
  }
  .skill:nth-child(4n + 1) { border-left-width: 1px; }
  .skill__icon { width: 2.75rem; height: 2.75rem; }
  .skill__name { font-size: 1.25rem; text-wrap: balance; }
}

/* ---------------------------------------------------------------- process (a real sequence, so numbered) */
.process { display: grid; gap: 2.5rem 4rem; }
.process__intro { display: grid; gap: 2.5rem; align-content: start; }
/* The photo fills the column under the heading on wide screens only; on narrower ones there is no gap. */
.process__photo { display: none; margin: 0; padding: .6rem; }
.process__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 2.25rem 3rem; }
.steps li { counter-increment: step; display: grid; gap: .5rem; padding-top: 1.25rem; border-top: 1px solid var(--c-line); }
.steps li::before { content: counter(step); font: 600 2.75rem/1 var(--font-display); color: var(--c-brand); font-variant-numeric: lining-nums; }
.steps p { color: var(--c-muted); }
@media (max-width: 759px) {
  /* Phones: the step number sits beside its title rather than above it. */
  .steps { gap: 1.75rem; }
  .steps li { grid-template-columns: 2.25rem minmax(0, 1fr); column-gap: .5rem; align-items: baseline; }
  .steps li::before { font-size: 2.25rem; grid-row: span 2; }
}
.terms { margin: 0; display: grid; gap: 1.5rem 3rem; padding: 1.5rem 0 0; border-top: 1px solid var(--c-line); }
.terms dt { font-weight: 700; color: var(--c-ink); }
.terms dd { margin: .35rem 0 0; color: var(--c-muted); max-width: 34rem; }
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .process { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; }
  .process__intro { grid-row: span 2; }
  .process__photo { display: block; }
  .process .terms { grid-column: 2; }
}

/* ---------------------------------------------------------------- contact band (closing CTA beat) */
.contact-band { padding-block: clamp(4rem, 9vw, 7.5rem) clamp(3rem, 6vw, 5rem); }
.contact-band__layout { display: grid; gap: 3rem 4rem; align-items: center; }
.contact-band__inner { display: grid; gap: 1.25rem; justify-items: start; }
.contact-band__photo { display: none; margin: 0; padding: .6rem; }
.contact-band__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; }
@media (min-width: 900px) {
  .contact-band__layout { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .contact-band__photo { display: block; }
}
.contact-band h2 { font-size: clamp(2.75rem, 1.8rem + 4.4vw, 5.25rem); line-height: .98; }
.contact-band__lede { font-size: 1.1875rem; color: var(--c-muted); }
.contact-band__email { margin-top: 1rem; font: 600 clamp(1.75rem, 1.1rem + 2.8vw, 3.25rem)/1.15 var(--font-display); overflow-wrap: anywhere; }
.contact-band__email a { color: var(--c-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.contact-band__phone a { gap: .6rem; min-height: 2.75rem; color: var(--c-ink); font-size: 1.25rem; font-weight: 600; text-decoration: none; }
.contact-band__phone a:hover { color: var(--c-brand); }
.contact-band__phone .icon { color: var(--c-brand); }
.contact-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.copy-status { color: var(--c-muted); }
.contact-band__next { max-width: 38rem; color: var(--c-muted); }

/* Social links as round icon buttons (Facebook, LinkedIn). The accessible name is on the link. */
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: .75rem; }
.social a {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--c-stroke); border-radius: 50%;
  color: var(--c-ink); transition: opacity .15s var(--ease);
}
.social a:hover { border-color: var(--c-brand); color: var(--c-brand); }
.social .icon { width: 1.15rem; height: 1.15rem; }
.contact-band .social { margin-top: .5rem; }

/* ---------------------------------------------------------------- footer */
.site-footer { padding-block: 1.5rem 2rem; background: var(--c-bg); }
.site-footer__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-top: 1.5rem; border-top: 1px solid var(--c-line); font-size: .9375rem; color: var(--c-muted); }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.5rem; }
.site-footer__links a { color: var(--c-muted); text-underline-offset: .2em; min-height: 2.75rem; display: inline-flex; align-items: center; }

/* ---------------------------------------------------------------- motion
   Reveals use transform + opacity only, and only when motion is welcome. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal:not(.is-in) { opacity: 0; transform: translateY(1rem); }
  .js .reveal { transition: opacity .6s var(--ease), transform .6s var(--ease); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
