/* ==========================================================================
   Jamesetta Tucker — site styles

   1. Tokens (the three visual directions live here)
   2. Base
   3. Utilities
   4. Header and navigation
   5. Buttons and links
   6. Home
   7. Shared: looks, captions, swatches, bands
   8. Work (portfolio) and lightbox
   9. Services
   10. About
   11. Contact
   12. Footer
   13. Motion
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */

:root {
  /* Direction A: "Pigment" — warm paper, ink, one colour taken from her own work */
  color-scheme: light;
  --bg: #f2ebe1;
  --surface: #e7dccb;
  --ink: #17130f;
  --muted: #5c5348;
  --line: rgb(23 19 15 / 0.22);
  --accent: #2433a6;
  --on-accent: #f6f1e9;
  --focus: #2433a6;

  --btn-bg: var(--ink);
  --btn-fg: var(--bg);
  --btn-bg-hover: var(--accent);
  --btn-fg-hover: var(--on-accent);

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display-weight: 400;
  --display-tracking: -0.045em;
  --display-leading: 0.9;
  --heading-weight: 400;
  --heading-tracking: -0.025em;
  --em-style: italic;
  --em-color: inherit;
  --mast-size: 20vw;
  --mast-size-wide: 12.4vw;

  --label-size: 0.75rem;
  --label-weight: 600;
  --label-tracking: 0.14em;
  --label-case: uppercase;

  --radius-img: 0px;
  --radius-btn: 999px;
  --radius-card: 0px;

  --gutter: clamp(1.125rem, 4vw, 3rem);
  --gap: clamp(1rem, 2.4vw, 2rem);
  --maxw: 92rem;
  --space-section: clamp(4.5rem, 10vw, 10rem);

  --step--1: clamp(0.8125rem, 0.79rem + 0.12vw, 0.875rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.25rem + 1.2vw, 2.25rem);
  --step-3: clamp(2rem, 1.5rem + 2.4vw, 3.5rem);
  --step-4: clamp(2.5rem, 1.5rem + 4.6vw, 5.5rem);
  --step-5: clamp(3.5rem, 1.4rem + 10vw, 10rem);
}

[data-theme="afterdark"] {
  /* Direction B: "Afterdark" — dark studio, heavy grotesque, colour as light */
  color-scheme: dark;
  --bg: #111014;
  --surface: #1c1a22;
  --ink: #f4f0ea;
  --muted: #aca6b6;
  --line: rgb(244 240 234 / 0.22);
  --accent: #a48bff;
  --on-accent: #111014;
  --focus: #a48bff;

  --btn-bg: var(--accent);
  --btn-fg: var(--on-accent);
  --btn-bg-hover: var(--ink);
  --btn-fg-hover: var(--bg);

  --font-display: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display-weight: 700;
  --display-tracking: -0.055em;
  --display-leading: 0.88;
  --heading-weight: 600;
  --heading-tracking: -0.035em;
  --em-style: normal;
  --em-color: var(--accent);
  --mast-size: 19vw;
  --mast-size-wide: 11.6vw;

  --label-size: 0.8125rem;
  --label-weight: 500;
  --label-tracking: 0.02em;
  --label-case: none;

  --radius-img: 1.25rem;
  --radius-btn: 0.875rem;
  --radius-card: 1.5rem;
}

[data-theme="gallery"] {
  /* Direction C: "Gallery" — white walls, light type, nothing competes with the work */
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f3f3f1;
  --ink: #111111;
  --muted: #5e5e5e;
  --line: rgb(17 17 17 / 0.18);
  --accent: #111111;
  --on-accent: #ffffff;
  --focus: #111111;

  --btn-bg: var(--ink);
  --btn-fg: var(--bg);
  --btn-bg-hover: #4a4a4a;
  --btn-fg-hover: #ffffff;

  --font-display: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display-weight: 300;
  --display-tracking: -0.055em;
  --display-leading: 0.92;
  --heading-weight: 400;
  --heading-tracking: -0.03em;
  --em-style: normal;
  --em-color: var(--muted);
  --mast-size: 19.5vw;
  --mast-size-wide: 12.2vw;

  --label-size: 0.6875rem;
  --label-weight: 500;
  --label-tracking: 0.18em;
  --label-case: uppercase;

  --radius-img: 0px;
  --radius-btn: 0px;
  --radius-card: 0px;
}

/* 2. Base ------------------------------------------------------------------ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1,
h2,
h3,
p,
figure,
blockquote,
dl,
dd,
ul,
ol {
  margin: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.2em;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

em {
  font-style: var(--em-style);
  color: var(--em-color);
}

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

main:focus {
  outline: none;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

[hidden] {
  display: none !important;
}

/* 3. Utilities ------------------------------------------------------------- */

.wrap {
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
}

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-120%);
}

.skip:focus {
  transform: translateY(0.5rem);
}

.label {
  font-size: var(--label-size);
  font-weight: var(--label-weight);
  letter-spacing: var(--label-tracking);
  text-transform: var(--label-case);
  line-height: 1.3;
}

.pearl {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.frame {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-img);
  background: var(--surface);
}

.frame img {
  width: 100%;
}

a.frame img {
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

a.frame:hover img {
  transform: scale(1.025);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* 4. Header and navigation ------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 20;
  padding-block: clamp(0.875rem, 2vw, 1.5rem);
}

.site-header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-tracking);
  font-size: var(--step-1);
  line-height: 1;
}

.mark {
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
}

.mark__pan {
  fill: var(--accent);
}

.mark__pearl {
  fill: var(--ink);
}

/* The home page already shows the name at full size, so the header keeps only the mark there. */
.page-home .wordmark__name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
}

.nav__list {
  display: flex;
  gap: clamp(1rem, 2.2vw, 2.25rem);
  margin: 0;
}

.nav__list a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  font-size: var(--label-size);
  font-weight: var(--label-weight);
  letter-spacing: var(--label-tracking);
  text-transform: var(--label-case);
  text-decoration: none;
}

.nav__list a:hover {
  text-decoration: underline;
}

.nav__list a[aria-current="page"]::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  min-height: 2.75rem;
  padding: 0 1.1rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius-btn);
  background: transparent;
  font-size: var(--label-size);
  font-weight: var(--label-weight);
  letter-spacing: var(--label-tracking);
  text-transform: var(--label-case);
  cursor: pointer;
}

@media (max-width: 47.99em) {
  /* Without JavaScript the links simply wrap under the logo. With it, they collapse behind a Menu button. */
  .site-header__in {
    flex-wrap: wrap;
  }

  .nav {
    flex-wrap: wrap;
    width: 100%;
  }

  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .js .nav {
    display: none;
  }

  .js .nav.is-open {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
    padding: 6rem var(--gutter) 3rem;
    background: var(--bg);
    overflow-y: auto;
  }

  .js .nav.is-open .nav__list {
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
  }

  .js .nav.is-open .nav__list a {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 13vw, 4rem);
    font-weight: var(--display-weight);
    letter-spacing: var(--display-tracking);
    text-transform: none;
    line-height: 1.1;
    min-height: 3.5rem;
  }

  .js .nav.is-open .nav__list a[aria-current="page"]::before {
    width: 0.6rem;
    height: 0.6rem;
  }

  .nav-open {
    overflow: hidden;
  }
}

/* 5. Buttons and links ----------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
}

.btn--primary:hover {
  background: var(--btn-bg-hover);
  color: var(--btn-fg-hover);
}

.btn--ghost {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--bg);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.3em;
}

a.link-arrow:hover .arrow,
.path:hover .arrow,
.footer-cta__link:hover .arrow {
  transform: translateX(0.3em);
}

/* 6. Home ------------------------------------------------------------------ */

.hero {
  padding-block: clamp(0.5rem, 2vw, 1.5rem) clamp(1rem, 3vw, 2.5rem);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.hero__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  margin-bottom: clamp(0.5rem, 1.5vw, 1rem);
  color: var(--muted);
}

.mast {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: var(--mast-size);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: var(--display-leading);
  padding-bottom: 0.06em;
}

.mast__a,
.mast__b {
  width: max-content;
}

.mast__b {
  align-self: flex-end;
  font-style: var(--em-style);
  color: var(--em-color);
  padding-right: 0.04em;
}

@media (min-width: 48em) {
  .mast {
    flex-direction: row;
    align-items: baseline;
    column-gap: 0.2em;
    font-size: var(--mast-size-wide);
    white-space: nowrap;
  }

  .mast__b {
    align-self: auto;
  }
}

.hero__grid {
  display: grid;
  gap: 1.75rem var(--gap);
  margin-top: clamp(1rem, 2.5vw, 2rem);
  padding-top: clamp(1rem, 2.5vw, 2rem);
  border-top: 1px solid var(--line);
}

.hero__main {
  order: -1;
}

.hero__lede {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-tracking);
  line-height: 1.15;
  max-width: 22ch;
  text-wrap: pretty;
}

.hero__note {
  margin-top: 1.25rem;
  max-width: 34ch;
  color: var(--muted);
}

.hero__text .btn-row {
  margin-top: 1.75rem;
}

@media (min-width: 48em) and (max-width: 61.99em) {
  /* Tablets: words beside the picture, so the picture is not taller than the screen. */
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

  .hero__text {
    grid-column: 1;
    grid-row: 1;
  }

  .hero__main {
    order: 0;
    grid-column: 2;
  }
}

@media (min-width: 62em) {
  .hero__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
  }

  .hero__text {
    grid-column: 1 / span 5;
    position: sticky;
    top: 2rem;
    padding-top: 0.5rem;
  }

  /* One picture, set to the right: words on the left, a quiet gap between. */
  .hero__main {
    order: 0;
    grid-column: 8 / span 5;
  }
}

/* One featured look: picture on the left, its details on the right (the mirror of the hero). */
.feature__grid {
  display: grid;
  gap: 1.75rem var(--gap);
}

.feature__text .label {
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.feature__title {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-tracking);
  line-height: 1;
  text-wrap: balance;
}

.feature__summary {
  margin-top: 1.25rem;
  max-width: 32ch;
  font-size: var(--step-1);
  line-height: 1.35;
  color: var(--muted);
}

.feature__swatches {
  margin-top: 1.5rem;
}

.feature__swatches .swatch {
  width: 1.375rem;
  height: 1.375rem;
}

.feature__swatches .swatches {
  gap: 0.45rem;
}

.feature__text .btn {
  margin-top: 2rem;
}

@media (min-width: 48em) {
  .feature__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: end;
  }

  .feature__media {
    grid-column: 1 / span 6;
  }

  .feature__text {
    grid-column: 8 / span 5;
    padding-bottom: clamp(1rem, 3vw, 3rem);
  }
}

.paths__grid {
  display: grid;
  gap: var(--gap);
}

@media (min-width: 48em) {
  .paths__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.path {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.5rem, 3.5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.path:hover {
  background: var(--surface);
  border-color: var(--ink);
}

.path .label {
  color: var(--muted);
}

.path__title {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-tracking);
  line-height: 1.02;
  margin-top: clamp(1.5rem, 5vw, 4rem);
}

.path__title a {
  text-decoration: none;
}

.path__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.path > p:not(.label):not(.link-arrow) {
  max-width: 36ch;
  color: var(--muted);
}

/* 7. Shared ---------------------------------------------------------------- */

.section {
  padding-block: var(--space-section);
}

.section--tight {
  padding-block: clamp(2rem, 5vw, 4.5rem);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-bottom: clamp(1.5rem, 4vw, 3.5rem);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.section__title {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-tracking);
  line-height: 1.02;
}

.page-head {
  padding-block: clamp(1.5rem, 5vw, 4rem) clamp(1rem, 2vw, 2rem);
}

.page-head .label {
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.page-title {
  font-family: var(--font-display);
  font-size: var(--step-5);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: var(--display-leading);
  padding-bottom: 0.06em;
  text-wrap: balance;
}

.page-lede {
  margin-top: clamp(1rem, 2vw, 1.75rem);
  max-width: 34ch;
  font-size: var(--step-1);
  line-height: 1.35;
  color: var(--muted);
}

.page-head--center {
  padding-block: clamp(4rem, 14vw, 12rem);
}

.page-head--center .page-title {
  font-size: var(--step-4);
  max-width: 14ch;
}

.page-head--center .btn-row {
  margin-top: 2rem;
}

.swatches {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex: none;
}

.swatch {
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
}

.cap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  font-size: var(--step--1);
  color: var(--muted);
}

.cap__title {
  color: var(--ink);
}

.look__meta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 0.5rem 1rem;
  margin-top: 1rem;
}

.look__index {
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.1;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.look__title {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-tracking);
  line-height: 1.05;
}

.look__cat {
  margin-top: 0.5rem;
  color: var(--muted);
}

.look__meta .swatches {
  margin-top: 0.4rem;
}

.look__summary {
  grid-column: 2 / -1;
  max-width: 44ch;
  color: var(--muted);
}

.band {
  background: var(--surface);
  padding-block: var(--space-section);
}

.band__grid {
  display: grid;
  gap: 3rem var(--gap);
  align-items: center;
}

@media (min-width: 62em) {
  .band__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .band__text {
    grid-column: 1 / span 7;
  }

  .band__duo {
    grid-column: 9 / span 4;
  }
}

.band .label {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.band__statement {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.2rem + 3.4vw, 4.5rem);
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-tracking);
  line-height: 1.04;
  text-wrap: balance;
}

.band__duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem var(--gap);
}

.band__duo figure:nth-of-type(2) {
  margin-top: clamp(1.5rem, 5vw, 4rem);
}

.band__duo-title {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: var(--step-1);
}

.band--cta {
  margin-top: clamp(2rem, 5vw, 4rem);
}

.band__cta .label {
  margin-bottom: 1.25rem;
}

.band__sub {
  margin-top: 1.25rem;
  max-width: 44ch;
  color: var(--muted);
}

.band__cta .btn-row {
  margin-top: 2rem;
}

/* 8. Work and lightbox ----------------------------------------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: clamp(1rem, 2vw, 1.5rem);
  border-bottom: 1px solid var(--line);
}

.chip {
  min-height: 2.75rem;
  padding: 0 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: transparent;
  font-size: var(--step--1);
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.chip:hover {
  border-color: var(--ink);
}

.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.work {
  display: grid;
  gap: clamp(3rem, 7vw, 6rem) var(--gap);
  margin: 0;
}

@media (min-width: 48em) {
  .work {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(2rem, 6vw, 7rem);
    align-items: start;
  }

  .work__item:nth-child(even) {
    margin-top: clamp(4rem, 10vw, 9rem);
  }

  /* Keep the stagger correct while a filter is hiding some looks. */
  @supports selector(:nth-child(1 of li)) {
    .work__item:nth-child(even) {
      margin-top: 0;
    }

    .work__item:nth-child(even of :not([hidden])) {
      margin-top: clamp(4rem, 10vw, 9rem);
    }
  }

  .work .work__item--wide,
  .work .work__item--split {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  /* A single look on its own row: picture on the left, its details beside it. */
  .work__item--split .look {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(2rem, 6vw, 7rem);
    align-items: end;
  }

  .work__item--split .look__meta {
    margin-top: 0;
    padding-bottom: clamp(1rem, 3vw, 3rem);
  }
}

.look__media {
  position: relative;
}

.look__media--duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

@media (min-width: 48em) {
  .look__media--duo {
    column-gap: clamp(2rem, 6vw, 7rem);
  }
}

.look__open {
  position: relative;
  cursor: zoom-in;
}

.look__tag {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-btn);
  background: var(--bg);
  color: var(--ink);
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--ink);
}

.lightbox::backdrop {
  background: var(--bg);
}

.lightbox__in {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  padding: 0.75rem var(--gutter) 1.25rem;
}

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
}

.lightbox__count {
  color: var(--muted);
}

.lightbox__btn {
  min-height: 2.75rem;
  padding: 0 1.1rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius-btn);
  background: transparent;
  font-size: var(--step--1);
  font-weight: 600;
  cursor: pointer;
}

.lightbox__btn:hover {
  background: var(--ink);
  color: var(--bg);
}

.lightbox__fig {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 1rem;
  min-height: 0;
}

/* The image is pinned to the stage and scaled to fit, so it can never run off the screen. */
.lightbox__stage {
  position: relative;
  min-height: 40vh;
}

.lightbox__stage picture {
  display: contents;
}

.lightbox__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.lightbox__title {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-tracking);
  line-height: 1.05;
}

.lightbox__summary {
  margin-top: 0.5rem;
  max-width: 44ch;
  color: var(--muted);
}

.lightbox__nav {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

@media (min-width: 62em) {
  .lightbox__fig {
    grid-template-rows: minmax(0, 1fr);
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 24rem);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: end;
  }

  .lightbox__stage {
    height: 100%;
    min-height: 0;
  }

  .lightbox__img {
    object-position: left center;
  }

  .lightbox__title {
    font-size: var(--step-3);
  }

  .lightbox__nav {
    margin-top: 2rem;
  }
}

/* 9. Services -------------------------------------------------------------- */

.services {
  margin: 0;
  border-top: 1px solid var(--line);
}

.service {
  display: grid;
  gap: 0.75rem 1.5rem;
  padding-block: clamp(1.75rem, 4vw, 3.25rem);
  border-bottom: 1px solid var(--line);
}

.service__no {
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.service__title {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-tracking);
  line-height: 1;
}

.service__lede {
  margin-top: 1rem;
  font-size: var(--step-1);
  line-height: 1.3;
  max-width: 30ch;
}

.service__body > p:last-child {
  margin-top: 0.75rem;
  max-width: 46ch;
  color: var(--muted);
}

@media (min-width: 62em) {
  .service {
    grid-template-columns: 5rem minmax(0, 1fr) auto;
    align-items: start;
  }

  .service__body {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 0 var(--gap);
  }

  .service__title {
    grid-row: span 2;
  }

  .service__lede {
    margin-top: 0.35rem;
  }

  .service__cta {
    margin-top: 0.1rem;
  }
}

.know {
  display: grid;
  gap: 1.5rem var(--gap);
}

.know__lede {
  max-width: 30ch;
  margin-bottom: 1.75rem;
  font-size: var(--step-1);
  line-height: 1.35;
}

.facts dt {
  font-size: var(--label-size);
  font-weight: var(--label-weight);
  letter-spacing: var(--label-tracking);
  text-transform: var(--label-case);
  color: var(--muted);
  margin-bottom: 0.4rem;
}

@media (min-width: 62em) {
  .know {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .know .section__title {
    grid-column: 1 / span 4;
  }

  .know__body {
    grid-column: 6 / -1;
  }
}

/* 10. About ---------------------------------------------------------------- */

.about__grid {
  display: grid;
  gap: 2.5rem var(--gap);
}

.about__img {
  max-width: 30rem;
}

.about__intro {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-tracking);
  line-height: 1.06;
  max-width: 16ch;
}

.prose {
  margin-top: 1.75rem;
  max-width: 54ch;
}

.prose p + p {
  margin-top: 1em;
}

.facts {
  display: grid;
  gap: 0;
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.facts > div {
  display: grid;
  gap: 0.25rem 1.5rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  margin-bottom: 0;
  padding-top: 0.2em;
}

@media (min-width: 36em) {
  .facts > div {
    grid-template-columns: 9rem minmax(0, 1fr);
  }
}

.about__text .btn-row {
  margin-top: 2.5rem;
}

@media (min-width: 62em) {
  .about__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
  }

  .about__img {
    grid-column: 1 / span 5;
    max-width: none;
    position: sticky;
    top: 2rem;
  }

  .about__text {
    grid-column: 7 / span 6;
  }
}

/* 11. Contact -------------------------------------------------------------- */

.contact__grid {
  display: grid;
  gap: 3.5rem var(--gap);
}

@media (min-width: 62em) {
  .contact__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
  }

  .form {
    grid-column: 1 / span 7;
  }

  .contact__aside {
    grid-column: 9 / span 4;
  }
}

.form {
  display: grid;
  gap: 1.5rem;
}

.form__note {
  max-width: 46ch;
  font-size: var(--step--1);
  color: var(--muted);
}

.form__note a {
  color: var(--ink);
  font-weight: 600;
}

.form__choices {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.form__choices legend {
  width: 100%;
  padding: 0;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-tracking);
  line-height: 1.1;
}

.choice {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  font-size: var(--step--1);
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.choice:hover span {
  border-color: var(--ink);
}

.choice input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.choice input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: var(--step--1);
  font-weight: 600;
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--muted);
  border-radius: min(var(--radius-btn), 0.75rem);
  background: transparent;
}

.field textarea {
  resize: vertical;
  min-height: 9rem;
  line-height: 1.5;
}

.field input:hover,
.field textarea:hover {
  border-color: var(--ink);
}

.field [aria-invalid="true"] {
  border-color: var(--ink);
  border-width: 2px;
}

.hint {
  font-size: var(--step--1);
  color: var(--muted);
}

.field__err {
  font-size: var(--step--1);
  font-weight: 600;
}

.field__err::before {
  content: "! ";
}

/* Spam trap: a field real visitors never see or reach. */
.field--hp {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form .btn {
  justify-self: start;
}

.form__status:empty {
  display: none;
}

.form__status {
  padding: 1rem 1.25rem;
  border: 1px solid var(--ink);
  border-radius: min(var(--radius-card), 0.75rem);
  font-weight: 500;
}

.contact__aside {
  display: grid;
  gap: 2rem;
}

.aside__title {
  font-size: var(--label-size);
  font-weight: var(--label-weight);
  letter-spacing: var(--label-tracking);
  text-transform: var(--label-case);
  color: var(--muted);
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.dots {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.dots li {
  display: grid;
  grid-template-columns: 0.4rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
}

.dots li::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-0.15em);
}

/* 12. Footer --------------------------------------------------------------- */

.site-footer {
  margin-top: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(2.5rem, 6vw, 5rem) 2rem;
  border-top: 1px solid var(--line);
}

/* While there is no contact route, the footer has no call to action above it. */
.site-footer--plain .footer-grid {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.footer-cta .label {
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.footer-cta__link {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.25em;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1rem + 8.4vw, 9rem);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: 0.95;
  text-decoration: none;
  padding-bottom: 0.06em;
}

.footer-cta__link:hover span:first-child {
  text-decoration: underline;
  text-decoration-thickness: 0.04em;
  text-underline-offset: 0.12em;
}

.footer-grid {
  display: grid;
  gap: 2rem var(--gap);
  margin-top: clamp(2.5rem, 6vw, 5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 48em) {
  .footer-grid {
    grid-template-columns: 1fr auto;
    column-gap: clamp(3rem, 10vw, 10rem);
    align-items: start;
  }
}

.footer-id__name {
  font-family: var(--font-display);
  font-size: var(--step-1);
  letter-spacing: var(--heading-tracking);
}

.footer-id__role,
.footer-legal {
  color: var(--muted);
  font-size: var(--step--1);
}

.footer-links {
  display: grid;
  gap: 0.1rem;
  margin: 0;
}

@media (min-width: 48em) {
  .footer-links {
    display: flex;
    gap: 0.25rem 2.25rem;
  }
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  text-decoration: underline;
}

.footer-legal {
  margin-top: 2.5rem;
}

/* 13. Motion --------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal-on [data-reveal] {
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .reveal-on [data-reveal].is-in {
    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;
  }
}
