/* ==========================================================================
   Akopelli Art Forms — shared styles
   Mobile-first. Tokens → base → layout → components → sections.
   ========================================================================== */

/* Tokens
   ========================================================================== */
:root {
  /* Palette */
  --basalt: #0D1014;
  --charcoal: #161B20;
  --shale: #272E35;
  --umber: #4E3D2D;    /* warm earth — kept for the bone About section only */
  --steel: #3C4A56;    /* oxidized-steel tone for cool atmospheric glows */
  --line: #606A74;     /* control borders on dark (≥3:1) */
  --bronze: #8C6B47;
  --copper: #B27C52;
  --copper-light: #D9A574;
  --copper-deep: #8A5631;   /* copper for use on light backgrounds */
  --verdigris: #6B9A8C;
  --verdigris-light: #8DBBAD;
  --bone: #ECE4D6;
  --ash: #9CA2A8;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-text: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --fs-small: 0.8125rem;
  --fs-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --fs-lead: clamp(1.125rem, 1.02rem + 0.5vw, 1.375rem);
  --fs-h3: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem);
  --fs-h2: clamp(2rem, 1.5rem + 2.4vw, 3.5rem);
  --fs-hero: clamp(2.75rem, 1.4rem + 6.4vw, 6.75rem);

  /* Space (8px base) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --section-y: clamp(4.5rem, 3rem + 7vw, 10rem);
  --gutter: clamp(1.25rem, 0.6rem + 3vw, 3rem);

  --container: 77.5rem;
  --measure: 38rem;
  --header-h: 4.25rem;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 320ms;
}

@media (min-width: 64em) {
  :root { --header-h: 5rem; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--basalt);
  color: var(--bone);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

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

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

::selection { background: var(--copper); color: var(--basalt); }

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  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: var(--space-2);
  top: -100px;
  z-index: 100;
  padding: var(--space-1) var(--space-2);
  background: var(--bone);
  color: var(--basalt);
  font-weight: 600;
}
.skip-link:focus { top: var(--space-2); }

/* Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }

/* Editorial two-column grid: label/heading aside + main column */
.grid {
  display: grid;
  gap: var(--space-4);
  align-items: start;
}
@media (min-width: 56em) {
  .grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--space-4);
  }
  .grid__aside { grid-column: 1 / span 4; }
  .grid__main  { grid-column: 6 / span 7; }
}

.prose { max-width: var(--measure); color: var(--ash); }
.prose > * + * { margin-top: 1em; }

/* Components
   ========================================================================== */

/* Placeholder marker — visible on purpose until real content is supplied */
.ph {
  font-style: normal;
  color: var(--copper-light);
  background: rgba(178, 124, 82, 0.1);
  outline: 1px dashed rgba(178, 124, 82, 0.55);
  outline-offset: 2px;
  padding: 0 0.25em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Wordmark */
.wordmark {
  display: inline-flex;
  gap: 0.55em;
  min-height: 44px;
  align-items: center;
}
.wordmark__name {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: 1.375rem;
  letter-spacing: -0.01em;
  line-height: 1;
}
.wordmark__sub {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--copper);
  line-height: 1;
  padding-top: 0.2em;
}

/* Labels: small tracked caps with an index number and a short rule */
.label {
  display: flex;
  align-items: center;
  gap: 0.9em;
  font-family: var(--font-text);
  line-height: 1.6;
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
}
.label::after {
  content: "";
  flex: 0 0 3rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.label__num {
  font-variant-numeric: tabular-nums;
  color: var(--ash);
}
.label + .section-title,
.grid__aside .label { margin-bottom: var(--space-3); }

.section-title { font-size: var(--fs-h2); }

/* Buttons and links */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.75rem;
  border: 1px solid var(--bone);
  color: var(--bone);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: linear-gradient(var(--bone), var(--bone)) no-repeat left / 0 100%;
  transition: background-size var(--dur) var(--ease), color var(--dur) var(--ease);
}
.button:hover { background-size: 100% 100%; color: var(--basalt); }

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: var(--copper);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.45em;
  transition: color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease);
}
.text-link:hover { color: var(--verdigris-light); text-decoration-color: var(--verdigris); }
.text-link .ph { margin-left: 0.4em; letter-spacing: 0.05em; text-transform: none; }

/* Ridge divider — waveform that reads as a mountain line */
.ridge-divider {
  height: 3rem;
  background: url("../img/ridge-line.svg") center / calc(100% - var(--gutter) * 2) 100% no-repeat;
  opacity: 0.75;
}
/* Transition divider: the neighbouring sections give up half their facing padding,
   so the waveform replaces space rather than adding to it */
.section:has(+ .ridge-divider--transition) { padding-bottom: calc(var(--section-y) * 0.5); }
.ridge-divider--transition + .section { padding-top: calc(var(--section-y) * 0.5); }

/* Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: transform 400ms var(--ease), background-color 400ms var(--ease), border-color 400ms var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(13, 16, 20, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: rgba(39, 46, 53, 0.9);
}
.site-header.is-hidden { transform: translateY(-100%); }

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.site-nav ul { display: flex; gap: clamp(1rem, 0.5rem + 2vw, 2.5rem); }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone);
  background: linear-gradient(var(--verdigris), var(--verdigris)) no-repeat left calc(50% + 0.95em) / 0 1px;
  transition: background-size var(--dur) var(--ease), color var(--dur) var(--ease);
}
.site-nav a:hover { background-size: 100% 1px; color: var(--verdigris-light); }

/* Phones: three nav links + wordmark don't fit side by side, so the wordmark stacks
   (same balanced treatment as the footer) and the nav tightens slightly */
@media (max-width: 29.99em) {
  .site-header .wordmark {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
  }
  .site-header .wordmark__sub { padding-top: 0; letter-spacing: 0.375em; margin-right: -0.375em; }
  .site-nav ul { gap: 0.875rem; }
  .site-nav a { font-size: 0.75rem; letter-spacing: 0.14em; }
}

/* Hero
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  min-height: max(36rem, 88svh);
  display: flex;
  overflow: hidden;
  background: var(--basalt); /* plain, so the artwork can fade into it */
}
@media (min-width: 64em) {
  .hero { min-height: max(40rem, 100svh); }
}

/* Film grain + faint weathered texture (hero and footer only) */
.hero::after,
.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Hero artwork: full-bleed, anchored to the bottom, edges faded into the background.
   Phones use a dedicated crop (peak + copper waveform); larger screens show the full
   composition, cropping the sides only when the hero is taller than the art. */
.hero__art {
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(46svh + 3rem); /* the space reserved below the copy, plus a small overlap */
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 90%, transparent 100%);
}
.hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;              /* never stretched */
  object-position: 50% 100%;
}
@media (min-width: 48em) {
  .hero__art {
    /* Full composition (2046:768) when the hero is wide; taller heroes crop the sides instead */
    height: max(50%, 37.54vw);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 32%, #000 88%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 32%, #000 88%, transparent 100%);
  }
  .hero__art img { object-position: 70% 100%; } /* keep peak and waveform when sides crop */
}

.hero__inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: calc(var(--header-h) + clamp(3rem, 10svh, 9rem));
  padding-bottom: 46svh; /* keeps copy in the sky area, above the ridge */
}
@media (min-width: 48em) {
  .hero__inner { padding-bottom: 30svh; } /* leaves the copper ridge above the fold */
}
/* Desktop: hero copy sits ~56px closer to the header; the bottom padding grows by the
   same amount so the hero height (and the mountain artwork) is unaffected */
@media (min-width: 64em) {
  .hero__inner {
    padding-top: calc(var(--header-h) + max(2rem, clamp(3rem, 10svh, 9rem) - 3.5rem));
    padding-bottom: calc(30svh + clamp(3rem, 10svh, 9rem) - max(2rem, clamp(3rem, 10svh, 9rem) - 3.5rem));
  }
}

/* Small phones (under 360px, e.g. iPhone SE 1st gen): keep the header links inside the
   content margin */
@media (max-width: 22.49em) {
  .site-nav ul { gap: 0.625rem; }
  .site-nav a { letter-spacing: 0.08em; }
}

/* Wordmark + character lockup */
.hero__lockup {
  display: flex;
  align-items: flex-end;
  gap: clamp(0.5rem, 1.1vw, 1rem);
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 350;
  line-height: 0.95;
  letter-spacing: -0.025em;
}
.hero__title span { display: block; }
/* "Akopelli" is set 8% larger at natural spacing so both lines share one ink width */
.hero__title > span:first-child {
  font-size: 1.08em;
  letter-spacing: 0;
}
.hero__title-em {
  font-style: italic;
  font-weight: 300;
  color: var(--copper-light);
  padding-left: 0.04em;
}

/* The character scales with the headline, so the name stays the dominant element */
.hero__figure {
  position: relative;
  flex: none;
  margin-bottom: -0.06em;            /* sneakers rest on the "Art Forms" baseline */
  font-size: var(--fs-hero);         /* em units below track the headline size */
}
.hero__figure img {
  display: block;
  width: auto;
  height: 2.1em;                     /* ≈ the two-line name plus the plume */
}
/* Soft contact shadow so the figure stands in the scene rather than floating on it */
.hero__figure::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 8%;
  bottom: -0.04em;
  height: 0.12em;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent);
  z-index: -1;
}
@media (max-width: 29.99em) {
  .hero__figure img { height: 1.95em; }
}

/* Brand line — second tier in the hero, left-aligned with the wordmark */
.hero__statement {
  margin-top: clamp(1.75rem, 1rem + 1.5vw, 2.75rem);
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.625rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--bone);
  text-wrap: balance;
}
/* Phones: spans the wordmark + character — "When and Where Art / Takes Form." */
@media (max-width: 47.99em) {
  .hero__statement {
    font-size: calc(var(--fs-hero) * 0.584);
    max-width: calc(var(--fs-hero) * 5.7);
    text-wrap: wrap;
  }
}
/* Desktop: one line ending at the character's right edge */
@media (min-width: 64em) {
  .hero__statement { font-size: calc(var(--fs-hero) * 0.334); }
}

.hero__lede {
  max-width: 34rem;
  margin-top: var(--space-3);
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ash);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-5);
}
/* Phones: both CTAs share one row — compact button, slightly tighter spacing */
@media (max-width: 29.99em) {
  .hero__actions { gap: var(--space-2) 1.25rem; }
  .hero__actions .button { padding-inline: 1rem; }
}
@media (max-width: 23.4em) {   /* under 375px */
  .hero__actions { column-gap: 1rem; }
  .hero__actions .button { padding-inline: 0.875rem; }
  .hero__actions .button,
  .hero__actions .text-link { font-size: 0.8125rem; letter-spacing: 0.1em; }
}

/* Intro
   ========================================================================== */
.intro__statement {
  font-size: var(--fs-h2);
  line-height: 1.1;
  margin-bottom: var(--space-4);
}
.intro__statement em {
  font-style: italic;
  font-weight: 300;
  color: var(--copper-light);
}
.intro__body {
  font-size: var(--fs-lead);
  line-height: 1.65;
}

/* Approach — five steps joined by a single path line
   ========================================================================== */
.approach .section-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--copper-light);
}
@media (min-width: 56em) {
  /* Heading stays in view while the steps scroll past */
  .approach__aside {
    position: sticky;
    top: calc(var(--header-h) + var(--space-4));
  }
}

.steps {
  --num-col: 3rem;
  display: grid;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: var(--num-col) minmax(0, 1fr);
  column-gap: var(--space-2);
  padding-bottom: var(--space-5);
}
.step:last-child { padding-bottom: 0; }

.step__num {
  grid-row: span 2;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-style: italic;
  font-weight: 300;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--copper-light);
  font-variant-numeric: lining-nums tabular-nums;
}

/* The path: a thin line from each numeral down to the next */
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 2.75rem;
  bottom: 0.75rem;
  width: 1px;
  background: linear-gradient(var(--bronze), rgba(140, 107, 71, 0.15));
}

.step__title {
  font-size: var(--fs-h3);
  line-height: 1.15;
  padding-top: 0.1em;
}
.step__body {
  margin-top: 0.75rem;
  max-width: var(--measure);
  color: var(--ash);
}

@media (min-width: 40em) {
  .steps { --num-col: 4.5rem; }
  .step { padding-bottom: var(--space-6); }
  .step__num { font-size: 2.25rem; }
  .step:not(:last-child)::before { left: 1.1rem; top: 3.5rem; }
}

/* Featured artists — one row per artist; add more <article class="artist"> blocks as needed
   ========================================================================== */
.artists .label { margin-bottom: var(--space-5); }
.artists__list { display: grid; gap: var(--space-6); }
.artist + .artist { padding-top: var(--space-6); border-top: 1px solid var(--shale); }

.artist {
  display: grid;
  gap: var(--space-4);
  align-items: start;
}
@media (min-width: 48em) {
  .artist { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); column-gap: var(--space-5); }
}
@media (min-width: 56em) {
  /* Same 12-column rhythm as the other sections: portrait left, copy on the main column */
  .artist { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-4); }
  .artist__portrait { grid-column: 1 / span 4; }
  .artist__body { grid-column: 6 / span 7; }
}

/* Portrait shown as supplied. Source is 528×774, so display stays ≤ 340px wide */
.artist__portrait {
  margin: 0;
  width: 100%;
  max-width: 17.5rem;
}
@media (min-width: 48em) {
  .artist__portrait { max-width: 21.25rem; }
}
.artist__portrait img {
  width: 100%;
  height: auto;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--shale);
}

.artist__name { font-size: clamp(2.25rem, 1.6rem + 3vw, 3.75rem); line-height: 1; }
.artist__role {
  margin-top: var(--space-1);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
}
.artist__intro {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--shale);
}
.artist__cta { margin-top: var(--space-3); }

/* Selected work
   ========================================================================== */
.work {
  background: var(--charcoal);
  overflow: hidden;
}
.work::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/contour.svg") 70% 50% / cover no-repeat;
  opacity: 0.08;
  pointer-events: none;
}
.work > .container { position: relative; }
.work .label { margin-bottom: var(--space-5); }

.feature {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 64em) {
  .feature {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--space-6);
    align-items: start;
  }
}

/* Video (click-to-load facade; YouTube only loads on play) */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(80% 90% at 70% 110%, rgba(178, 124, 82, 0.28), transparent 60%),
    linear-gradient(160deg, #1F262C, #0D1014);
  background-size: cover;
  background-position: center;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--shale);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.video__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 4.5rem;
  height: 4.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(236, 228, 214, 0.7);
  background: rgba(13, 16, 20, 0.45);
  color: var(--bone);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.video__play svg { width: 1.6rem; height: 1.6rem; fill: currentColor; margin-left: 0.2rem; }
.video__play:hover { background: var(--verdigris); border-color: var(--verdigris); transform: scale(1.04); }

/* Official artwork shown as-is; only a soft edge vignette to seat it in the dark frame */
.video__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 80px rgba(13, 16, 20, 0.45);
  transition: opacity var(--dur) var(--ease);
}
.video.is-playing::after { opacity: 0; }
.video__play {
  z-index: 1;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  background: rgba(13, 16, 20, 0.55);
}

.video__external {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash);
  transition: color var(--dur) var(--ease);
}
.video__external:hover { color: var(--verdigris-light); }
.video__external svg,
.listen__link svg {
  width: 0.75rem;
  height: 0.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: transform var(--dur) var(--ease);
}
.video__external:hover svg,
.listen__link:hover svg { transform: translate(2px, -2px); }

.feature__title {
  font-size: clamp(2.75rem, 2rem + 4vw, 5rem);
  font-style: italic;
  font-weight: 350;
  line-height: 1;
}
.feature__artist {
  margin-top: var(--space-1);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
}

/* Credits */
.credits { display: grid; gap: var(--space-2); }
.credits > div {
  display: grid;
  gap: 0.15rem;
}
.credits dt {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash);
}
.credits dd { font-size: 1rem; }

.credits--key {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--shale);
}
@media (min-width: 30em) {
  .credits--key { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-3); row-gap: var(--space-3); }
}

/* Listening links */
.listen {
  display: grid;
  gap: 0.75rem;
  margin-top: var(--space-4);
}
.listen__label {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-style: italic;
  font-weight: 300;
  font-size: 1.125rem;
  color: var(--copper-light);
}
.listen__links {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 26em) {
  .listen__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.listen__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  white-space: nowrap;      /* keeps "Apple Music" on one line in the narrower tablet column */
  min-height: 3.25rem;
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--line);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.listen__link:hover {
  border-color: var(--verdigris);
  color: var(--verdigris-light);
  background: rgba(107, 154, 140, 0.06);
}
.listen__link svg { width: 0.875rem; height: 0.875rem; flex: none; }

/* Full credits disclosure */
.full-credits {
  margin-top: var(--space-3);
  border-top: 1px solid var(--shale);
  border-bottom: 1px solid var(--shale);
}
.full-credits summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.25rem;
  cursor: pointer;
  list-style: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color var(--dur) var(--ease);
}
.full-credits summary::-webkit-details-marker { display: none; }
.full-credits summary:hover { color: var(--verdigris-light); }
.full-credits summary svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  transition: transform var(--dur) var(--ease);
}
.full-credits[open] summary svg { transform: rotate(45deg); }

.full-credits__body {
  display: grid;
  gap: var(--space-4);
  padding-block: var(--space-2) var(--space-4);
}
@media (min-width: 30em) {
  .full-credits__body { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
}
.credits__heading {
  margin-bottom: var(--space-2);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--copper-light);
}
.full-credits .credits dd { font-size: 0.9375rem; }

/* About (light section)
   ========================================================================== */
.about {
  --patina-slate: #1B2830;   /* EXPERIMENT: darker steel-slate. Previous: #20343D (blue-slate with a verdigris cast) */
  background: var(--patina-slate);
  color: var(--bone);        /* opening display paragraph */
}
.about .label { color: var(--copper-light); }          /* 5.9:1; #B27C52 is only 3.6:1 at this size */
.about .label::after { background: var(--copper); opacity: 1; }
.about .label__num { color: var(--ash); }
.about .prose { color: #D9DFDF; }                       /* 9.6:1 */
/* Opening paragraph set as a display lead; the rest reads as body copy */
.about__lead {
  max-width: 40rem;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2.125rem);
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.about__body {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(107, 154, 140, 0.35);   /* verdigris hairline */
  font-size: var(--fs-lead);
  line-height: 1.65;
}
.about__body > * + * { margin-top: 1.1em; }
.about :focus-visible { outline-color: var(--verdigris-light); }

/* Contact
   ========================================================================== */
.contact__title { font-size: var(--fs-h2); margin-bottom: var(--space-4); }
.contact__intro { font-size: var(--fs-lead); line-height: 1.65; }

/* Contact form — front end only for now */
.contact-form {
  --error: #E0977A;
  margin-top: var(--space-6);
  max-width: 44rem;
}
.contact-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.contact-form legend { padding: 0; }

/* "I'm reaching out as" — three selectable cards */
.persona__legend {
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  line-height: 1.2;
  color: var(--copper-light);
}
.persona__options { display: grid; gap: 0.75rem; }
@media (min-width: 40em) {
  .persona__options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.persona__option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 4.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.persona__option input,
.chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.persona__mark {
  flex: none;
  width: 0.875rem;
  height: 0.875rem;
  border: 1px solid var(--ash);
  border-radius: 50%;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.persona__text {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: 1.1875rem;
  line-height: 1.2;
}
.persona__option:hover { border-color: var(--ash); }
.persona__option:has(input:checked) {
  border-color: var(--copper);
  background: rgba(178, 124, 82, 0.08);
}
.persona__option:has(input:checked) .persona__mark {
  border-color: var(--verdigris-light);
  background: var(--verdigris-light);
  box-shadow: inset 0 0 0 2px var(--basalt);
}
.persona__option:has(input:focus-visible) {
  outline: 2px solid var(--verdigris-light);
  outline-offset: 3px;
}

/* Fields */
.contact-form__fields {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-5);
  animation: form-in 500ms var(--ease);
}
@keyframes form-in { from { opacity: 0; transform: translateY(8px); } }
.branch { display: grid; gap: var(--space-4); }
.field-row { display: grid; gap: var(--space-4); }
@media (min-width: 40em) {
  .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.field { display: grid; gap: 0.35rem; }
.field > label,
.topics > legend {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash);
}
.field__optional { letter-spacing: 0.04em; text-transform: none; opacity: 0.75; }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="url"],
.contact-form textarea {
  width: 100%;
  padding: 0.6rem 0 0.7rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--bone);
  font: inherit;
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.contact-form textarea { resize: vertical; min-height: 3.5rem; }
.contact-form textarea[name="message"] { min-height: 8rem; }
.contact-form ::placeholder { color: #858D95; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--verdigris-light);
  box-shadow: 0 1px 0 0 var(--verdigris-light);
}
.contact-form [aria-invalid="true"] { border-bottom-color: var(--error); }

.field__error {
  margin-top: 0.35rem;
  font-size: var(--fs-small);
  color: var(--error);
}

/* Topic chips */
.topics__options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.chip { position: relative; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9375rem;
  line-height: 1.2;
  color: var(--ash);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.chip:hover span { border-color: var(--ash); color: var(--bone); }
.chip input:checked + span {
  border-color: var(--copper);
  background: rgba(178, 124, 82, 0.12);
  color: var(--bone);
}
.chip input:focus-visible + span { outline: 2px solid var(--verdigris-light); outline-offset: 3px; }
.topics[aria-invalid="true"] .chip span { border-color: rgba(224, 151, 122, 0.6); }

.contact-form__actions { margin-top: var(--space-1); }
.contact-form__actions .button { cursor: pointer; background-color: transparent; font-family: inherit; }
@media (max-width: 29.99em) {
  .contact-form__actions .button { width: 100%; }
}
.contact-form__status:empty { display: none; }
.contact-form__status {
  margin-top: var(--space-4);
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--copper-light);
}
.contact-form__status[data-state="success"] { color: var(--verdigris-light); }
.contact-form__status[data-state="error"] { color: var(--error); }

.contact-form__actions .button:disabled { opacity: 0.6; cursor: progress; }

.contact-form__privacy {
  font-size: var(--fs-small);
  color: var(--ash);
}
.contact-form__privacy a,
.site-footer__legal a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--copper);
  text-underline-offset: 0.25em;
  transition: color var(--dur) var(--ease);
}
.contact-form__privacy a:hover,
.site-footer__legal a:hover { color: var(--verdigris-light); }

/* Spam honeypot: kept out of view and out of the tab order */
.hp-field {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Without JavaScript every branch is shown, so label each group */
html:not(.js) .branch > legend.visually-hidden {
  position: static !important;
  width: auto;
  height: auto;
  margin: 0 0 var(--space-1);
  clip: auto;
  overflow: visible;
  white-space: normal;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--copper-light);
}


/* Footer
   ========================================================================== */
.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: var(--space-6);
  padding-bottom: var(--space-5);
  background:
    radial-gradient(90% 120% at 50% 120%, rgba(60, 74, 86, 0.5), transparent 70%),
    var(--charcoal);
}
.site-footer__ridge {
  position: absolute;
  inset: 0 0 auto;
  height: 3rem;
  background: url("../img/ridge-line.svg") center / 100% 100% no-repeat;
  opacity: 0.5;
}
.site-footer__inner {
  position: relative;
  z-index: 3;
  display: grid;
  gap: var(--space-3);
}
.site-footer__nav { display: flex; gap: var(--space-4); }
.site-footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ash);
  transition: color var(--dur) var(--ease);
}
.site-footer__nav a:hover { color: var(--verdigris-light); }
.site-footer__legal { font-size: var(--fs-small); color: var(--ash); }

/* Brand group: the character as a maker's mark sitting above the wordmark */
.site-footer__brand {
  justify-self: start;       /* group stays on the left, shrink-wrapped to its widest line ("Akopelli") */
  display: flex;
  flex-direction: column;
  align-items: center;       /* character centred over the wordmark */
  gap: var(--space-1);
}
/* Footer only: "ART FORMS" stacked and centred under "Akopelli"; type styles unchanged */
.site-footer__brand .wordmark {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.site-footer__brand .wordmark__sub {
  padding-top: 0;
  letter-spacing: 0.375em;   /* footer only: ink width matches "Akopelli" (header keeps 0.24em) */
  margin-right: -0.375em;    /* cancel trailing letter-spacing so the letters, not the box, are centred */
}
.site-footer__mark img {
  width: auto;
  height: 4rem;         /* full figure; width follows the 200:264 ratio */
}

@media (min-width: 48em) {
  .site-footer__inner {
    grid-template-columns: 1fr auto;
    align-items: end;    /* navigation lines up with the wordmark, not the taller group */
  }
  .site-footer__legal { grid-column: 1 / -1; padding-top: var(--space-3); border-top: 1px solid var(--shale); }
  .site-footer__mark img { height: 5.5rem; }
}

/* Motion
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* Standalone pages: privacy policy and the no-JavaScript form result
   ========================================================================== */
.legal { padding-top: calc(var(--header-h) + var(--space-5)); }
.legal__title { font-size: var(--fs-h2); margin-bottom: var(--space-2); }
.legal__updated { font-size: var(--fs-small); color: var(--ash); margin-bottom: var(--space-5); }
.legal .prose { max-width: 42rem; }
.legal .prose h2 {
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
  font-size: var(--fs-h3);
  color: var(--bone);
}
.legal .prose ul { padding-left: 1.2em; list-style: disc; }
.legal .prose li + li { margin-top: 0.5em; }
.legal .prose a {
  color: var(--bone);
  text-decoration: underline;
  text-decoration-color: var(--copper);
  text-underline-offset: 0.25em;
}
.legal .prose a:hover { color: var(--verdigris-light); }

.form-result { min-height: 100vh; }
.form-result .wordmark { margin-bottom: var(--space-5); }
.form-result__title { font-size: var(--fs-h2); margin-bottom: var(--space-3); }
.form-result__message { max-width: var(--measure); font-size: var(--fs-lead); color: var(--bone); }
.form-result__errors { margin-top: var(--space-3); padding-left: 1.2em; list-style: disc; color: var(--ash); }
.form-result__hint { margin-top: var(--space-3); color: var(--ash); max-width: var(--measure); }
.form-result .text-link { margin-top: var(--space-4); }
