/* ==========================================================================
   Penguin Marketing
   1. Fonts            6. Hero               11. Footer
   2. Tokens           7. Featured work      12. Motion
   3. Base             8. Services           13. Reduced motion
   4. Components       9. About & process
   5. Header & nav    10. Contact
   ========================================================================== */


/* 1. Fonts (SIL Open Font License, see assets/fonts/OFL-*.txt) ------------- */

@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda-latin-roman.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda-latin-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

/* Registered so the logo crop can transition between lockup and mark. */
@property --crop-x { syntax: "<number>"; inherits: true; initial-value: 79; }
@property --crop-y { syntax: "<number>"; inherits: true; initial-value: 211; }
@property --crop-w { syntax: "<number>"; inherits: true; initial-value: 440; }
@property --crop-h { syntax: "<number>"; inherits: true; initial-value: 366; }
@property --logo-h { syntax: "<length>"; inherits: true; initial-value: 56px; }


/* 2. Tokens --------------------------------------------------------------- */

:root {
  /* Sampled from the supplied logo file; the header relies on an exact match. */
  --cream: #f2e6d6;
  --paper: #faf7f1;
  --ink: #0a0a0a;
  --ink-muted: #4b453e;
  --cream-muted: #b5ab9c;
  --rule-soft: rgb(10 10 10 / 0.2);
  --rule-cream: rgb(242 230 214 / 0.28);

  --font-display: "Bodoni Moda", "Bodoni 72", Didot, "Bodoni MT", Georgia, serif;
  --font-sans: "Manrope", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --fs-caption: 0.875rem;
  --fs-small: 0.9375rem;
  --fs-body: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
  --fs-lede: clamp(1.125rem, 1rem + 0.42vw, 1.3125rem);

  --gutter: clamp(1.25rem, 4.4vw, 4.5rem);
  --gap: clamp(1rem, 2vw, 2rem);
  --max: 100rem;
  --section-space: clamp(4.5rem, 9vw, 9rem);

  --header-h: 5rem;
  --header-h-compact: 3.75rem;

  --ease-settle: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-uncover: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-ui: cubic-bezier(0.3, 0, 0.2, 1);
  --dur-ui: 240ms;

  --focus: var(--ink);
}

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


/* 3. Base ----------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--cream);
  scroll-padding-top: calc(var(--header-h-compact) + 1.25rem);
}

body {
  margin: 0;
  padding-top: var(--header-h);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  /* Bodoni Moda's large optical sizes have hairlines too fine for screens;
     a fixed text-size master keeps them sturdy. Manrope has no opsz axis. */
  font-variation-settings: "opsz" 28;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  height: auto;
}

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

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

em {
  font-style: italic;
}

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

main:focus {
  outline: none;
}

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

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

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.85rem 1.25rem;
  background: var(--ink);
  color: var(--cream);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus-visible {
  transform: none;
  outline-color: var(--ink);
}


/* 4. Components ----------------------------------------------------------- */

/* Editorial caption with an optional fine rule, echoing MARKETING in the logo. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 1.125rem;
  font-family: var(--font-sans);
  font-size: var(--fs-caption);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.eyebrow__rule {
  flex: 1 1 auto;
  min-width: 2rem;
  height: 1px;
  background: currentColor;
  transform-origin: left center;
}

.eyebrow > span:not(.eyebrow__rule) {
  white-space: nowrap;
}

.eyebrow__end {
  color: var(--ink-muted);
}

@media (max-width: 29.99em) {
  .eyebrow__end {
    display: none;
  }
}

.caption {
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.icon {
  flex: none;
  overflow: visible;
}

.icon--arrow { width: 1.75rem; height: 0.75rem; }
.icon--down,
.icon--up { width: 0.625rem; height: 1.125rem; }
.icon--out { width: 0.6875rem; height: 0.6875rem; }

/* Rectangular buttons; the hover fill rises like an image being uncovered. */
.button {
  --fill: var(--paper);
  --fill-text: var(--ink);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 3.25rem;
  padding: 0 1.375rem;
  border: 1px solid var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  overflow: hidden;
  transition: color var(--dur-ui) var(--ease-ui), transform 160ms var(--ease-ui);
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--fill);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 520ms var(--ease-settle);
}

.button .icon--arrow {
  transition: transform 520ms var(--ease-settle);
}

.button:hover {
  color: var(--fill-text);
}

.button:hover::before {
  transform: scaleY(1);
}

.button:hover .icon--arrow {
  transform: translateX(0.3rem);
}

.button:active {
  transform: translateY(1px);
}

.button--ink {
  background: var(--ink);
  color: var(--cream);
}

.button--outline {
  --fill: var(--ink);
  --fill-text: var(--cream);
  background: transparent;
  color: var(--ink);
}

.button--compact {
  min-height: 2.75rem;
  padding-inline: 1.125rem;
  font-size: 0.875rem;
  gap: 0.875rem;
}

.button--compact .icon--arrow {
  width: 1.375rem;
}

/* Text link: the underline is redrawn on hover, like a ruled line. */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  font-weight: 600;
  text-decoration: none;
}

.text-link__label {
  padding-bottom: 0.2rem;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
}

.text-link .icon {
  transition: transform 520ms var(--ease-settle);
}

.text-link:hover .text-link__label {
  animation: underline-redraw 800ms var(--ease-settle);
}

.text-link:hover .icon--out { transform: translate(0.15rem, -0.15rem); }
.text-link:hover .icon--up { transform: translateY(-0.2rem); }
.text-link:hover .icon--down { transform: translateY(0.2rem); }

.text-link--small {
  font-size: var(--fs-small);
}

@keyframes underline-redraw {
  0% { background-size: 100% 1px; background-position: 100% 100%; }
  45% { background-size: 0% 1px; background-position: 100% 100%; }
  46% { background-size: 0% 1px; background-position: 0 100%; }
  100% { background-size: 100% 1px; background-position: 0 100%; }
}

/* Crops the supplied raster logo to its artwork without altering it.
   Values are pixel coordinates in the 595 x 842 original. */
.logo-crop {
  --crop-x: 79;
  --crop-y: 211;
  --crop-w: 440;
  --crop-h: 366;
  position: relative;
  display: block;
  overflow: hidden;
  height: var(--logo-h);
  width: calc(var(--logo-h) * var(--crop-w) / var(--crop-h));
  background: var(--cream);
}

.logo-crop img {
  position: absolute;
  max-width: none;
  width: calc(var(--logo-h) * 595 / var(--crop-h));
  height: auto;
  left: calc(var(--logo-h) * var(--crop-x) / var(--crop-h) * -1);
  top: calc(var(--logo-h) * var(--crop-y) / var(--crop-h) * -1);
}


/* 5. Header & navigation -------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: var(--cream);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--rule-soft);
  opacity: 0;
  transition: opacity 400ms var(--ease-ui);
}

.site-header.is-compact::after {
  opacity: 1;
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
  transition: height 600ms var(--ease-settle);
}

.site-header.is-compact .site-header__bar {
  height: var(--header-h-compact);
}

.brand {
  --crop-x: 79;
  --crop-y: 211;
  --crop-w: 440;
  --crop-h: 366;
  --logo-h: 4.25rem;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  flex: none;
  transition:
    --crop-x 650ms var(--ease-settle),
    --crop-y 650ms var(--ease-settle),
    --crop-w 650ms var(--ease-settle),
    --crop-h 650ms var(--ease-settle),
    --logo-h 650ms var(--ease-settle);
}

.brand .logo-crop {
  --crop-x: inherit;
  --crop-y: inherit;
  --crop-w: inherit;
  --crop-h: inherit;
}

/* Condensed state: the same artwork, cropped to the penguin mark. */
.site-header.is-compact .brand {
  --crop-x: 233;
  --crop-y: 213;
  --crop-w: 144;
  --crop-h: 252;
  --logo-h: 2.5rem;
}

@media (min-width: 64em) {
  .brand { --logo-h: 5.5rem; }
  .site-header.is-compact .brand { --logo-h: 3rem; }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.75rem);
}

.site-nav__list {
  display: flex;
  gap: clamp(1.25rem, 2.6vw, 2.5rem);
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.55rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 520ms var(--ease-settle);
}

.site-nav__link:hover::after,
.site-nav__link.is-current::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}

.site-nav__index,
.site-nav__note {
  display: none;
}

.nav-toggle {
  position: relative;
  z-index: 2;
  display: none;
  align-items: center;
  gap: 0.875rem;
  min-height: 2.75rem;
  margin-right: -0.25rem;
  padding: 0 0.25rem;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-toggle__lines {
  position: relative;
  width: 1.625rem;
  height: 0.5rem;
}

.nav-toggle__lines::before,
.nav-toggle__lines::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  transition: transform 520ms var(--ease-settle);
}

.nav-toggle__lines::before { top: 0; }
.nav-toggle__lines::after { bottom: 0; }

.site-header.is-open .nav-toggle__lines::before {
  transform: translateY(calc(0.25rem - 0.5px)) rotate(45deg) scaleX(0.68);
}

.site-header.is-open .nav-toggle__lines::after {
  transform: translateY(calc(-0.25rem + 0.5px)) rotate(-45deg) scaleX(0.68);
}

@media (max-width: 63.99em) {
  /* Without JavaScript the links simply sit in the header flow. */
  .no-js .site-header {
    position: relative;
  }

  .no-js body {
    padding-top: 0;
  }

  .no-js .site-header__bar {
    flex-wrap: wrap;
    height: auto;
    padding-block: 1rem;
  }

  .no-js .site-nav {
    flex-wrap: wrap;
    width: 100%;
    gap: 0.5rem 1.5rem;
  }

  .no-js .site-nav__list {
    flex-wrap: wrap;
    gap: 0 1.25rem;
  }

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

  .js .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: calc(var(--header-h) + 1rem) var(--gutter) max(1.75rem, env(safe-area-inset-bottom));
    background: var(--cream);
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    clip-path: inset(0 0 100% 0);
    transition:
      clip-path 700ms var(--ease-uncover),
      visibility 0s linear 700ms;
  }

  .js .site-header.is-open .site-nav {
    visibility: visible;
    clip-path: inset(0);
    transition:
      clip-path 700ms var(--ease-uncover),
      visibility 0s;
  }

  .js .site-nav__list {
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--ink);
  }

  .js .site-nav__list li {
    border-bottom: 1px solid var(--rule-soft);
  }

  .js .site-nav__link {
    display: flex;
    align-items: baseline;
    gap: 1.25rem;
    width: 100%;
    padding-block: 0.875rem 0.75rem;
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
  }

  .js .site-nav__link::after {
    display: none;
  }

  .js .site-nav__index {
    display: inline-block;
    min-width: 1.5rem;
    font-family: var(--font-sans);
    font-size: var(--fs-caption);
    font-weight: 600;
    letter-spacing: 0.05em;
    transform: translateY(-0.55em);
  }

  .js .site-nav__cta {
    width: 100%;
    min-height: 3.5rem;
    margin-top: 2rem;
    font-size: 0.9375rem;
  }

  .js .site-nav__note {
    display: block;
    margin-top: auto;
    padding-top: 2.5rem;
    color: var(--ink-muted);
    font-size: var(--fs-small);
    line-height: 1.5;
  }

  .js .site-nav__list li,
  .js .site-nav__cta,
  .js .site-nav__note {
    opacity: 0;
    transition: opacity 300ms var(--ease-ui);
  }

  .js .site-header.is-open .site-nav__list li,
  .js .site-header.is-open .site-nav__cta,
  .js .site-header.is-open .site-nav__note {
    opacity: 1;
    transition: opacity 500ms var(--ease-ui) calc(220ms + var(--i, 0) * 60ms);
  }

  .site-nav__list li:nth-child(2) { --i: 1; }
  .site-nav__list li:nth-child(3) { --i: 2; }
  .site-nav__list li:nth-child(4) { --i: 3; }
  .site-nav__cta { --i: 4; }
  .site-nav__note { --i: 5; }

  .nav-open {
    overflow: hidden;
  }
}


/* 6. Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(1.5rem, 4vh, 3rem) clamp(3rem, 6vh, 4.5rem);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.hero__eyebrow {
  margin-bottom: clamp(1.5rem, 4vh, 2.75rem);
}

.hero__eyebrow > span:first-child {
  white-space: normal;
}

.hero__eyebrow .eyebrow__rule {
  flex: 0 1 clamp(3.5rem, 9vw, 8.5rem);
}

/* Let each phrase wrap at the available reading width. */
.hero__title {
  margin-left: -0.05em;
  font-family: var(--font-display);
  font-size: clamp(2.875rem, 16.25vw, 7.875rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

/* Each line is its own mask; padding keeps descenders and italic overhang. */
.hero__line {
  display: block;
  overflow: hidden;
  padding: 0.14em 0.16em 0.32em 0.09em;
  margin: -0.14em -0.16em -0.32em -0.09em;
}

.hero__line-text {
  display: inline-block;
}

.hero__line--offset .hero__line-text {
  letter-spacing: -0.035em;
}

.hero__intro {
  margin-top: clamp(2rem, 5vh, 3rem);
}

.hero__lede {
  max-width: 34ch;
  font-size: var(--fs-lede);
  line-height: 1.55;
  text-wrap: pretty;
}

.hero__location {
  max-width: 40ch;
  margin-top: 1rem;
  color: var(--ink-muted);
  font-size: var(--fs-small);
  line-height: 1.55;
}

.hero__actions {
  margin-top: 1.75rem;
}

.hero__location span {
  display: inline-block;
}

/* Index entry linking the opening to the featured project. */
.hero__feature {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 1.125rem;
  margin-top: 2.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ink);
  text-decoration: none;
}

.hero__feature-media {
  display: block;
  width: 8.5rem;
  overflow: hidden;
  outline: 1px solid var(--ink);
  outline-offset: -1px;
  background: var(--ink);
}

.hero__feature-media img {
  width: 100%;
  transition: transform 900ms var(--ease-settle);
}

.hero__feature:hover .hero__feature-media img {
  transform: scale(1.04);
}

.hero__feature-text {
  display: grid;
  gap: 0.2rem;
}

.hero__feature-label {
  color: var(--ink-muted);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero__feature-name {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.hero__feature-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 0.35rem;
  font-size: var(--fs-small);
  font-weight: 600;
}

.hero__feature-cta-label {
  padding-bottom: 0.15rem;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
}

.hero__feature-cta .icon {
  transition: transform 520ms var(--ease-settle);
}

.hero__feature:hover .hero__feature-cta-label {
  animation: underline-redraw 800ms var(--ease-settle);
}

.hero__feature:hover .hero__feature-cta .icon {
  transform: translateY(0.2rem);
}

@media (max-width: 47.99em) {
  .hero {
    padding-block: clamp(1.25rem, 3.4vh, 2.5rem) 2.75rem;
  }

  .hero__eyebrow {
    gap: 0.75rem;
    margin-bottom: clamp(1.375rem, 3.4vh, 2.375rem);
  }

  .hero__eyebrow .eyebrow__rule {
    flex: 1 1 0;
    min-width: 0;
    max-width: 3.5rem;
  }

  .hero__intro { margin-top: clamp(1.75rem, 4.3vh, 2.625rem); }
  .hero__actions { margin-top: 1.5rem; }
  .hero__feature { margin-top: 2.375rem; }
  .hero__feature-media { width: clamp(6rem, 34vw, 8.5rem); }
}

.hero__contour {
  display: none;
  position: absolute;
  right: 0;
  bottom: 0;
  height: 86%;
  width: clamp(4.25rem, 8vw, 8.75rem);
  fill: var(--ink);
  pointer-events: none;
}

@media (min-width: 48em) {
  .hero__inner {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
  }

  .hero__eyebrow,
  .hero__title {
    grid-column: 1 / -1;
  }

  .hero__title {
    font-size: clamp(5rem, 13vw, 8.75rem);
    line-height: 0.9;
  }

  .hero__line--offset {
    padding-left: calc((100% - 11 * var(--gap)) / 12 + var(--gap));
  }

  .hero__intro {
    grid-column: 6 / span 6;
    grid-row: 3;
    margin-top: clamp(2rem, 5vh, 3.25rem);
  }

  .hero__feature {
    grid-column: 1 / span 5;
    grid-row: 3;
    align-self: end;
    margin-top: 0;
  }

  .hero__feature-media {
    width: 7.5rem;
  }

  .hero__contour {
    display: block;
  }
}

@media (min-width: 64em) {
  .hero__title {
    font-size: clamp(8rem, 10.6vw, 12.5rem);
  }

  .hero__intro {
    grid-column: 7 / span 5;
  }

  .hero__feature {
    grid-column: 1 / span 5;
  }

  .hero__feature-media {
    width: clamp(9rem, 11vw, 12rem);
  }

  .hero__feature-name {
    font-size: 1.75rem;
  }
}


/* 7. Featured work -------------------------------------------------------- */

.work {
  --focus: var(--cream);
  position: relative;
  background: var(--ink);
  color: var(--cream);
  padding-block: clamp(2.5rem, 4.5vw, 4.5rem) clamp(4rem, 8vw, 7.5rem);
}

.work ::selection {
  background: var(--cream);
  color: var(--ink);
}

.work .eyebrow__end {
  color: var(--cream-muted);
}

.work__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.work__eyebrow {
  margin-bottom: clamp(2rem, 4.5vw, 4rem);
}

.work__info {
  display: flex;
  flex-direction: column;
}

.work__title {
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 15vw, 5.25rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.025em;
}

.mask {
  display: block;
  overflow: hidden;
  padding: 0.14em 0.12em 0.24em 0;
  margin: -0.14em -0.12em -0.24em 0;
}

.mask__inner {
  display: inline-block;
}

.work__facts {
  margin-top: 1.75rem;
  border-top: 1px solid var(--rule-cream);
}

.work__fact {
  display: grid;
  gap: 0.25rem;
  padding-block: 0.875rem;
  border-bottom: 1px solid var(--rule-cream);
}

.work__fact dt {
  color: var(--cream-muted);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.work__fact dd {
  font-size: var(--fs-body);
  font-weight: 500;
}

.work__summary {
  max-width: 30ch;
  margin-top: 1.25rem;
  font-size: var(--fs-lede);
  line-height: 1.55;
  text-wrap: pretty;
}

.work__visit {
  margin-top: 1rem;
}

.work__mobile {
  display: none;
}

.preview {
  margin-top: 2.5rem;
}

.preview__frame {
  position: relative;
  border: 1px solid var(--cream);
  border-radius: 6px;
  background: #000;
  overflow: clip;
}

.preview__bar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  min-height: 3rem;
  background: var(--cream);
  color: var(--ink);
}

.preview__dots {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding-inline: 1rem;
}

.preview__dots span {
  width: 0.5625rem;
  height: 0.5625rem;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.preview__address,
.preview__hint {
  display: flex;
  align-items: center;
  font-size: var(--fs-caption);
  font-weight: 500;
}

.preview__address {
  justify-content: center;
}

.preview__hint {
  justify-self: end;
  gap: 0.625rem;
  padding-inline: 1rem;
}

.preview__toggle,
.preview__visit {
  display: none;
  align-items: center;
  justify-self: end;
  gap: 0.625rem;
  min-height: 3rem;
  padding-inline: 0.875rem;
  border-left: 1px solid var(--rule-soft);
  font-size: var(--fs-caption);
  font-weight: 600;
  text-decoration: none;
}

.preview__toggle:hover,
.preview__visit:hover {
  background: var(--ink);
  color: var(--cream);
}

.preview__toggle:focus-visible,
.preview__visit:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -4px;
}

.preview__viewport {
  width: 100%;
  aspect-ratio: 390 / 620;
  max-height: 72vh;
  max-height: 72svh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: auto;
}

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

.preview__viewport img {
  display: block;
  width: 100%;
  height: auto;
}

.preview__caption {
  margin-top: 0.875rem;
  color: var(--cream-muted);
  font-size: var(--fs-caption);
  font-weight: 500;
  line-height: 1.55;
}

@media (max-width: 47.99em) {
  .preview__bar {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .preview__dots,
  .preview__address,
  .preview--expanded .preview__hint {
    display: none;
  }

  .preview__toggle:not([hidden]),
  .preview--expanded .preview__visit {
    display: inline-flex;
  }

  .preview--expanded .preview__viewport {
    aspect-ratio: auto;
    max-height: none;
    overflow: visible;
  }

  .preview--expanded .preview__bar {
    position: sticky;
    top: var(--header-h-compact);
  }

  .preview--expanded .preview__visit {
    border-left: 0;
  }

  .preview--expanded .preview__toggle .icon {
    transform: rotate(180deg);
  }
}

@media (min-width: 48em) {
  .work__inner {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
  }

  .work__eyebrow {
    grid-column: 1 / -1;
  }

  .work__info {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: subgrid;
    align-items: start;
  }

  .work__title {
    grid-column: 1 / span 6;
    font-size: clamp(4.5rem, 9vw, 6rem);
  }

  .work__facts {
    grid-column: 7 / -1;
    margin-top: 0.5rem;
  }

  .work__summary {
    grid-column: 7 / -1;
  }

  .work__visit {
    grid-column: 7 / -1;
  }

  .preview {
    grid-column: 1 / -1;
  }

  .preview__viewport {
    aspect-ratio: 16 / 10;
  }

  .preview__bar {
    min-height: 3.25rem;
  }
}

@media (min-width: 64em) {
  .work__info {
    grid-column: 1 / span 3;
    display: flex;
    flex-direction: column;
  }

  /* Sized to sit inside the three-column information rail. */
  .work__title {
    font-size: clamp(3.75rem, 5.3vw, 6rem);
  }

  .work__facts {
    margin-top: 2rem;
  }

  .preview {
    grid-column: 4 / -1;
    margin-top: 0;
  }
}

/* The phone plate only joins the rail when there is height to spare. */
@media (min-width: 80em) {
  .work__mobile {
    display: block;
    margin-top: auto;
    padding-top: 2.5rem;
  }

  .work__mobile-frame {
    display: block;
    width: min(100%, 9.5rem);
    aspect-ratio: 390 / 620;
    overflow: hidden;
    border: 1px solid var(--cream);
    border-radius: 14px;
    background: #000;
  }

  .work__mobile-frame img {
    width: 100%;
  }

  .work__mobile .caption {
    margin-top: 0.875rem;
    color: var(--cream-muted);
    font-size: var(--fs-caption);
  }
}


/* 8. Services ------------------------------------------------------------- */

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

.services__inner {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.services__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 2rem + 3.6vw, 5.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.services__intro p {
  max-width: 22ch;
  margin-top: 1rem;
  color: var(--ink-muted);
  font-size: var(--fs-lede);
  line-height: 1.55;
  text-wrap: pretty;
}

.service-list {
  border-bottom: 1px solid var(--ink);
}

.service {
  position: relative;
  display: grid;
  grid-template-columns: 2ch minmax(0, 1fr);
  gap: 0.625rem clamp(0.875rem, 1.8vw, 2rem);
  align-items: baseline;
  padding-block: clamp(1.5rem, 2.5vw, 2.75rem);
}

.service::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--rule-soft);
  transform-origin: left;
}

.service:first-child::before {
  background: var(--ink);
}

.service__index {
  color: var(--ink-muted);
  font-size: var(--fs-caption);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.service__name {
  font-size: clamp(1.375rem, 1.05rem + 1vw, 2.125rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.service__body {
  grid-column: 2;
}

.service__body p {
  max-width: 43ch;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.service__body .text-link {
  margin-top: 0.375rem;
}

@media (min-width: 48em) {
  .services__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  }
}

@media (min-width: 64em) {
  .service {
    grid-template-columns: 2ch minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .service__body {
    grid-column: 3;
  }
}

/* 9. About & process ------------------------------------------------------ */

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

.about__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.about__label {
  gap: 0;
}

.about__main {
  margin-top: 2.25rem;
}

.about__statement {
  max-width: 24ch;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.2rem + 3.1vw, 4rem);
  font-weight: 450;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.about__audience {
  max-width: 40ch;
  margin-top: 1.75rem;
  color: var(--ink-muted);
  font-size: var(--fs-lede);
  line-height: 1.55;
  text-wrap: pretty;
}

.process {
  margin-top: clamp(4rem, 9vw, 7.5rem);
}

.process__title {
  font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.875rem);
  font-weight: 600;
  line-height: 1.25;
}

.process__note {
  margin-top: 0.5rem;
  color: var(--ink-muted);
  font-size: var(--fs-small);
}

.process__steps {
  --num-size: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  position: relative;
  display: grid;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-left: calc(var(--num-size) * 0.75 + 1.25rem);
}

/* Vertical rule on small screens, horizontal from tablet up. */
.process__steps::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: calc(var(--num-size) * 0.375);
  width: 1px;
  background: var(--ink);
  transform-origin: 50% 0;
}

.process__step {
  position: relative;
}

.process__num {
  position: absolute;
  top: -0.12em;
  left: calc(-1 * (var(--num-size) * 0.75 + 1.25rem));
  width: calc(var(--num-size) * 0.75);
  padding-block: 0.12em;
  background: var(--paper);
  font-size: var(--num-size);
  font-weight: 500;
  line-height: 0.8;
  text-align: center;
  font-variant-numeric: lining-nums;
}

.process__name {
  font-size: clamp(1.25rem, 1rem + 0.75vw, 1.75rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.process__step p {
  max-width: 30ch;
  margin-top: 0.625rem;
  color: var(--ink-muted);
  text-wrap: pretty;
}

@media (min-width: 48em) {
  .about__inner {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
  }

  .about__aside {
    grid-column: 1 / span 3;
    padding-top: 0.875rem;
  }

  .about__main {
    grid-column: 4 / -1;
    margin-top: 0;
  }

  .process {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: subgrid;
  }

  .process__head {
    grid-column: 1 / span 3;
  }

  .process__steps {
    grid-column: 4 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--gap);
    margin-top: 0;
    padding-left: 0;
    padding-top: calc(var(--num-size) + 1.5rem);
  }

  .process__steps::before {
    top: calc(var(--num-size) * 0.42);
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 1px;
    transform-origin: 0 50%;
  }

  .process__num {
    top: calc(-1 * (var(--num-size) + 1.5rem));
    left: 0;
    width: auto;
    padding: 0.1em 0.3em 0.1em 0;
    text-align: left;
  }

  .process__step + .process__step .process__num {
    padding-left: 0.3em;
    margin-left: -0.3em;
  }
}


/* 10. Contact ------------------------------------------------------------- */

.contact {
  padding-block: var(--section-space) clamp(4rem, 8vw, 7rem);
}

.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.contact__eyebrow {
  margin-bottom: clamp(2.25rem, 5vw, 4.5rem);
}

.contact__title {
  max-width: 14ch;
  margin-left: -0.04em;
  font-family: var(--font-display);
  font-size: clamp(3rem, 1.2rem + 7.4vw, 9.5rem);
  font-weight: 450;
  line-height: 0.94;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.contact__lede {
  max-width: 32ch;
  margin-top: 2rem;
  font-size: var(--fs-lede);
  line-height: 1.55;
  text-wrap: pretty;
}

.contact__slot {
  position: relative;
  display: grid;
  gap: 1.25rem;
  min-width: 0;
  align-self: start;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-top: 1.25rem;
  font-style: normal;
}

.contact__slot::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--ink);
  transform-origin: 0 50%;
}

.contact__link {
  display: grid;
  justify-self: start;
  max-width: 100%;
  min-height: 2.75rem;
  gap: 0.15rem;
  text-decoration: none;
}

.contact__label {
  color: var(--ink-muted);
  font-size: var(--fs-small);
  font-weight: 500;
}

.contact__value {
  font-size: clamp(1.0625rem, 0.875rem + 0.65vw, 1.625rem);
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.contact__value,
.site-footer__contact a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.contact__link:hover .contact__value,
.site-footer__contact a:hover {
  text-decoration-thickness: 2px;
}

@media (min-width: 48em) {
  .contact__inner {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
  }

  .contact__eyebrow,
  .contact__title {
    grid-column: 1 / -1;
  }

  .contact__lede {
    grid-column: 1 / span 5;
    margin-top: clamp(2.5rem, 5vw, 4rem);
  }

  .contact__slot {
    grid-column: 7 / -1;
    margin-top: clamp(2.5rem, 5vw, 4rem);
  }
}


/* 11. Footer -------------------------------------------------------------- */

.site-footer {
  padding-bottom: 1.5rem;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--ink);
}

.logo-crop--footer {
  --logo-h: clamp(8.5rem, 6rem + 8vw, 13rem);
}

.site-footer__nav ul {
  border-top: 1px solid var(--rule-soft);
}

.site-footer__nav li {
  border-bottom: 1px solid var(--rule-soft);
}

.site-footer__nav a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.625rem;
  min-height: 2.75rem;
  font-size: clamp(1.375rem, 1.1rem + 1vw, 2rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: padding-left 520ms var(--ease-settle);
}

.site-footer__nav a:hover {
  padding-left: 0.5rem;
}

.site-footer__index {
  min-width: 1.75rem;
  font-family: var(--font-sans);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.05em;
  transform: translateY(-0.25em);
}

.site-footer__info {
  color: var(--ink-muted);
  font-size: var(--fs-small);
  line-height: 1.55;
}

.site-footer__info p {
  max-width: 32ch;
}

.site-footer__place {
  margin-top: 1rem;
  color: var(--ink);
}

.site-footer__contact {
  display: grid;
  justify-items: start;
  margin-top: 0.5rem;
  color: var(--ink);
  font-style: normal;
}

.site-footer__contact a {
  display: block;
  align-content: center;
  max-width: 100%;
  min-height: 2.75rem;
  overflow-wrap: anywhere;
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule-soft);
  color: var(--ink-muted);
  font-size: var(--fs-caption);
  letter-spacing: 0.02em;
}

.site-footer__base .text-link {
  color: var(--ink);
}

@media (min-width: 48em) {
  .site-footer__inner {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
  }

  .site-footer__brand {
    grid-column: 1 / span 4;
  }

  .site-footer__nav {
    grid-column: 5 / span 4;
  }

  .site-footer__info {
    grid-column: 10 / -1;
  }

  .site-footer__base {
    grid-column: 1 / -1;
  }
}


@media (min-width: 48em) and (max-width: 79.99em) {
  .site-footer__nav { grid-column: 5 / span 3; }
  .site-footer__info { grid-column: 8 / -1; }
}

/* 12. Motion --------------------------------------------------------------
   One idea throughout: elements settle into alignment and images are
   uncovered. Hidden states only apply once JavaScript has set up the class
   that reveals them, and never when reduced motion is requested.          */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  /* Hero entrance (triggered by .hero-ready once fonts are available). */
  .js:not(.hero-ready) :is(.hero__eyebrow, .hero__line-text, .hero__contour, .hero__feature, .hero__intro > *) {
    opacity: 0;
  }

  .hero-ready .hero__eyebrow > span:first-child {
    animation: fade-settle 900ms var(--ease-settle) both;
  }

  .hero-ready .hero__eyebrow .eyebrow__rule {
    animation: draw-across 1200ms var(--ease-settle) 120ms both;
  }

  .hero-ready .hero__line-text {
    animation: rise 1200ms var(--ease-settle) 60ms both;
  }

  .hero-ready .hero__line--offset .hero__line-text {
    animation-delay: 190ms;
  }

  .hero-ready .hero__contour {
    animation: draw-down 1500ms var(--ease-uncover) 360ms both;
  }

  .hero-ready .hero__feature {
    animation: rule-in 1100ms var(--ease-settle) 520ms both;
  }

  .hero-ready .hero__feature-media {
    animation: uncover-up 1100ms var(--ease-uncover) 560ms both;
  }

  .hero-ready .hero__feature-media img {
    animation: unzoom 1600ms var(--ease-settle) 560ms both;
  }

  .hero-ready .hero__intro > * {
    animation: fade-settle 1000ms var(--ease-settle) both;
  }

  .hero-ready .hero__lede { animation-delay: 560ms; }
  .hero-ready .hero__location { animation-delay: 640ms; }
  .hero-ready .hero__actions { animation-delay: 720ms; }

  /* Scroll reveals (motion.js adds .motion-ready and .is-revealed). */
  .motion-ready [data-reveal] {
    --reveal-at: calc(var(--reveal-base, 0ms) + var(--reveal-delay, 0ms));
  }

  [data-delay="1"] { --reveal-delay: 90ms; }
  [data-delay="2"] { --reveal-delay: 180ms; }
  [data-delay="3"] { --reveal-delay: 270ms; }

  .motion-ready [data-reveal="settle"] {
    transition:
      opacity 900ms var(--ease-settle) var(--reveal-at),
      transform 1100ms var(--ease-settle) var(--reveal-at);
  }

  .motion-ready [data-reveal="settle"]:not(.is-revealed) {
    opacity: 0;
    transform: translate3d(0, 1.5rem, 0);
  }

  .motion-ready [data-reveal="eyebrow"] > span {
    transition: opacity 800ms var(--ease-settle) var(--reveal-at);
  }

  .motion-ready [data-reveal="eyebrow"] > .eyebrow__rule {
    transition: transform 1300ms var(--ease-settle) calc(var(--reveal-at) + 100ms);
  }

  .motion-ready [data-reveal="eyebrow"]:not(.is-revealed) > span:not(.eyebrow__rule) {
    opacity: 0;
  }

  .motion-ready [data-reveal="eyebrow"]:not(.is-revealed) > .eyebrow__rule {
    transform: scaleX(0);
  }

  .motion-ready [data-reveal="rise"] .mask__inner {
    transition: transform 1200ms var(--ease-settle) var(--reveal-at);
  }

  .motion-ready [data-reveal="rise"]:not(.is-revealed) .mask__inner {
    transform: translate3d(0, 115%, 0);
  }

  .motion-ready [data-reveal="uncover"] .uncover {
    transition: clip-path 1200ms var(--ease-uncover) var(--reveal-at);
  }

  .motion-ready [data-reveal="uncover"] .uncover img {
    transition: transform 1600ms var(--ease-settle) var(--reveal-at);
  }

  .motion-ready [data-reveal="uncover"] figcaption {
    transition: opacity 800ms var(--ease-settle) calc(var(--reveal-at) + 400ms);
  }

  .motion-ready [data-reveal="uncover"]:not(.is-revealed) .uncover {
    clip-path: inset(100% 0 0 0);
  }

  .motion-ready [data-reveal="uncover"]:not(.is-revealed) .uncover img {
    transform: scale(1.15);
  }

  .motion-ready [data-reveal="uncover"]:not(.is-revealed) figcaption {
    opacity: 0;
  }

  .motion-ready [data-reveal="row"]::before {
    transition: transform 1300ms var(--ease-settle) var(--reveal-at);
  }

  .motion-ready [data-reveal="row"] > * {
    transition:
      opacity 900ms var(--ease-settle) calc(var(--reveal-at) + 120ms + var(--i, 0) * 80ms),
      transform 1100ms var(--ease-settle) calc(var(--reveal-at) + 120ms + var(--i, 0) * 80ms);
  }

  .motion-ready [data-reveal="row"] > :nth-child(2) { --i: 1; }
  .motion-ready [data-reveal="row"] > :nth-child(3) { --i: 2; }

  .motion-ready [data-reveal="row"]:not(.is-revealed)::before {
    transform: scaleX(0);
  }

  .motion-ready [data-reveal="row"]:not(.is-revealed) > * {
    opacity: 0;
    transform: translate3d(0, 1rem, 0);
  }

  .motion-ready [data-reveal="steps"]::before {
    transition: transform 1600ms var(--ease-settle) var(--reveal-at);
  }

  .motion-ready [data-reveal="steps"] > li {
    transition:
      opacity 900ms var(--ease-settle) calc(var(--reveal-at) + 200ms + var(--i, 0) * 140ms),
      transform 1100ms var(--ease-settle) calc(var(--reveal-at) + 200ms + var(--i, 0) * 140ms);
  }

  .motion-ready [data-reveal="steps"] > li:nth-child(2) { --i: 1; }
  .motion-ready [data-reveal="steps"] > li:nth-child(3) { --i: 2; }

  .motion-ready [data-reveal="steps"]:not(.is-revealed)::before {
    transform: scale(0);
  }

  .motion-ready [data-reveal="steps"]:not(.is-revealed) > li {
    opacity: 0;
    transform: translate3d(0, 1rem, 0);
  }

  .motion-ready [data-reveal="slot"]::before {
    transition: transform 1300ms var(--ease-settle) var(--reveal-at);
  }

  .motion-ready [data-reveal="slot"] > * {
    transition:
      opacity 900ms var(--ease-settle) calc(var(--reveal-at) + 200ms),
      transform 1100ms var(--ease-settle) calc(var(--reveal-at) + 200ms);
  }

  .motion-ready [data-reveal="slot"]:not(.is-revealed)::before {
    transform: scaleX(0);
  }

  .motion-ready [data-reveal="slot"]:not(.is-revealed) > * {
    opacity: 0;
    transform: translate3d(0, 1rem, 0);
  }

  /* Small screens: the project frame is uncovered once. */
  @media (max-width: 63.99em) {
    .motion-ready [data-reveal="frame"] .preview__frame {
      transition: clip-path 1300ms var(--ease-uncover) var(--reveal-at);
    }

    .motion-ready [data-reveal="frame"]:not(.is-revealed) .preview__frame {
      clip-path: inset(0 0 100% 0 round 6px);
    }
  }

  /* Desktop: the signature scroll-linked moment. The frame settles from a
     slight crop to its full grid width as it rises into view. */
  .motion-scroll .preview__frame:not(:focus-within) {
    clip-path: inset(0 calc((1 - var(--settle, 1)) * 7%) round 6px);
  }

  /* Mobile navigation links settle into place. */
  @media (max-width: 63.99em) {
    .js .site-nav__list li,
    .js .site-nav__cta {
      transform: translate3d(0, 1rem, 0);
      transition:
        opacity 300ms var(--ease-ui),
        transform 300ms var(--ease-ui);
    }

    .js .site-header.is-open .site-nav__list li,
    .js .site-header.is-open .site-nav__cta {
      transform: none;
      transition:
        opacity 600ms var(--ease-ui) calc(220ms + var(--i, 0) * 60ms),
        transform 900ms var(--ease-settle) calc(220ms + var(--i, 0) * 60ms);
    }
  }
}

@keyframes rise {
  from { transform: translate3d(0, 115%, 0); }
  to { transform: none; }
}

@keyframes fade-settle {
  from { opacity: 0; transform: translate3d(0, 1rem, 0); }
  to { opacity: 1; transform: none; }
}

@keyframes draw-across {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes draw-down {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0); }
}

@keyframes uncover-up {
  from { clip-path: inset(100% 0 0 0); }
  to { clip-path: inset(0); }
}

@keyframes unzoom {
  from { transform: scale(1.18); }
  to { transform: none; }
}

@keyframes rule-in {
  from { opacity: 0; border-top-color: transparent; }
  to { opacity: 1; }
}


/* 13. Reduced motion -------------------------------------------------------
   Keep feedback (colour, fills, underlines) but remove travel and timing. */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }

  .brand {
    transition: none;
  }

  .button::before {
    transform: none;
    opacity: 0;
  }

  .button:hover::before {
    opacity: 1;
  }

  .button:hover .icon--arrow,
  .text-link:hover .icon,
  .hero__feature:hover .hero__feature-cta .icon,
  .hero__feature:hover .hero__feature-media img {
    transform: none;
  }

  .text-link:hover .text-link__label,
  .hero__feature:hover .hero__feature-cta-label {
    animation: none;
    background-size: 100% 2px;
  }
}
