/* ============ FONTS (self-hosted) ============ */
@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(assets/fonts/eb-garamond-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(assets/fonts/eb-garamond-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'EB Garamond'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(assets/fonts/eb-garamond-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'EB Garamond'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(assets/fonts/eb-garamond-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(assets/fonts/dm-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(assets/fonts/dm-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Aboreto: all-caps display face used for project tags, as on the old Wix site */
@font-face { font-family: 'Aboreto'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(assets/fonts/aboreto-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ============ TOKENS ============ */
:root {
  --porcelain: #FEFEF6;  /* Olewa's off-white: never use pure white */
  --wine: #621C39;       /* crimson wine */
  --ink: #1c1417;
  --plum: #5c1a3a;
  --plum-dark: #3f1128;
  --plum-deep: #2a0b19;
  --plum-line: #7d3558;
  --plum-rule: #6a2a48;
  --muted: #5a4a50;
  --mist: #d9c8cf;
  --mist-light: #e6d8de;
  --serif: 'EB Garamond', Georgia, serif;
  --mono: 'DM Mono', monospace;
  --gutter: clamp(20px, 5vw, 64px);
}

/* ============ BASE ============ */
* { box-sizing: border-box; }
body { margin: 0; background: var(--porcelain); }
a { color: var(--plum); text-decoration: underline; }
a:not([class]):hover { color: var(--plum-deep); }
[hidden] { display: none !important; }

.page {
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--serif);
  min-height: 100vh;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--porcelain);
  display: flex;
  flex-direction: column;
  background: #2a1a24 url(assets/images/hero.png) center / cover no-repeat;
  overflow: hidden;
}
/* Drifting clouds, masked to the sky so the bridge stays still */
.hero__sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
  -webkit-mask: url(assets/images/sky-mask.png) center / cover no-repeat;
  mask: url(assets/images/sky-mask.png) center / cover no-repeat;
}
.hero__sky::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(100% + 1600px);
  background: url(assets/images/clouds.png) 0 0 / 1600px 100% repeat-x;
  animation: sky-drift 110s linear infinite;
  will-change: transform;
}
@keyframes sky-drift {
  to { transform: translateX(-1600px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__sky::before { animation: none; }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,10,20,.6), rgba(28,10,20,.45) 50%, rgba(28,10,20,.7));
}

/* Menu stays pinned to the top of the screen on every page.
   Transparent over the photo; script.js adds .is-solid once you scroll past it. */
:root { --header-h: 84px; }
html { scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
.hero, .page-head { padding-top: var(--header-h); }
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(20px, 5vw, 72px);
  transition: background-color .3s ease, padding .3s ease, box-shadow .3s ease, color .3s ease;
}
.logo, .nav__link, .menu-toggle { transition: color .3s ease, border-color .3s ease; }
/* Once scrolled: inverted, porcelain bar with crimson wine text and emblem */
.header.is-solid {
  background: var(--porcelain);
  padding-top: 12px;
  padding-bottom: 12px;
  box-shadow: 0 1px 0 rgba(98, 28, 57, .15);
}
.header.is-solid .logo,
.header.is-solid .nav__link,
.header.is-solid .menu-toggle { color: var(--wine); }
.header.is-solid .nav__link:hover,
.header.is-solid .nav__link[aria-current="page"] { border-bottom-color: var(--wine); }
/* Mobile menu open: keep the bar transparent over the crimson overlay */
.header.is-solid.menu-open { background: transparent; box-shadow: none; }
.header.is-solid.menu-open .logo,
.header.is-solid.menu-open .menu-toggle { color: var(--porcelain); }
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--porcelain);
  min-height: 44px;
}
/* Emblem drawn as a mask so it takes the text colour (porcelain, or wine on the solid bar) */
.logo__mark {
  width: 33px;
  height: 34px;
  display: block;
  flex: none;
  background: currentColor;
  -webkit-mask: url(assets/brand/olewa-mark.svg) center / contain no-repeat;
  mask: url(assets/brand/olewa-mark.svg) center / contain no-repeat;
}
.logo__name { font-size: 20px; line-height: 1; }
/* Phones: smaller logo so it doesn't crowd the bar */
@media (max-width: 599px) {
  .logo { gap: 8px; }
  .logo__mark { width: 24px; height: 25px; }
  .logo__name { font-size: 16px; }
}

.nav {
  display: none;
  gap: clamp(24px, 3vw, 48px);
  padding-top: 10px;
}
.nav__link {
  font-size: 19px;
  color: var(--porcelain);
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 1px solid transparent;
}
.nav__link:hover { border-bottom-color: var(--porcelain); }

.menu-toggle {
  min-height: 44px;
  min-width: 44px;
  background: none;
  border: 0;
  font: inherit;
  font-size: 19px;
  color: var(--porcelain);
  cursor: pointer;
  padding: 0;
}
/* Hamburger: three lines in the text colour, turning into an X while the menu is open */
.menu-toggle { display: grid; place-items: center; margin-right: -10px; }
.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  display: block;
  width: 24px;
  height: 1.5px;
  background: currentColor;
  transition: transform .3s ease, background-color .3s ease;
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before,
.menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { transform: translateY(-7px); }
.menu-toggle__bars::after { transform: translateY(7px); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background-color: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: rotate(-45deg); }
@media (prefers-reduced-motion: reduce) {
  .menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after { transition: none; }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: var(--plum);
  display: flex;
  flex-direction: column;
  padding: 96px 20px 24px;
  gap: 4px;
}
.mobile-menu__link {
  font-size: 40px;
  color: var(--porcelain);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--plum-line);
}

/* Commercial dropdown on project pages: the other works, shown on hover or keyboard focus */
.nav__drop { position: relative; }
.nav__caret { margin-left: 6px; vertical-align: middle; transition: transform .25s ease; }
.nav__drop:hover .nav__caret,
.nav__drop:focus-within .nav__caret { transform: rotate(180deg); }
.nav__menu {
  position: absolute;
  top: 100%;
  left: 50%;
  width: max-content;
  min-width: 280px;
  padding-top: 14px; /* bridges the gap so the menu stays open while the pointer moves down */
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.nav__drop:hover .nav__menu,
.nav__drop:focus-within .nav__menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity .2s ease, transform .2s ease;
}
.nav__menu-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 22px;
  background: var(--porcelain);
  color: var(--wine);
  font-size: 18px;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .2s ease;
}
.nav__menu-link:first-of-type { padding-top: 18px; }
.nav__menu-link:last-of-type { padding-bottom: 18px; }
.nav__menu-link span { font-size: 15px; font-style: italic; color: var(--muted); }
.nav__menu-link:hover,
.nav__menu-link:focus-visible { background: var(--mist-light); outline: none; }
.nav__menu { filter: drop-shadow(0 12px 28px rgba(42, 11, 25, .22)); }

/* Phone menu: the same works as a short indented list under Commercial */
.mobile-menu { overflow-y: auto; }
.mobile-menu__sub {
  display: flex;
  flex-direction: column;
  padding: 8px 0 12px 20px;
  border-bottom: 1px solid var(--plum-line);
}
.mobile-menu__sublink {
  padding: 8px 0;
  font-size: 20px;
  color: var(--porcelain);
  text-decoration: none;
}
.mobile-menu__sublink span { display: none; }
.mobile-menu__link:has(+ .mobile-menu__sub) { border-bottom: 0; }

@media (min-width: 960px) {
  .nav { display: flex; }
  .menu-toggle, .mobile-menu { display: none !important; }
}

.hero__content {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  justify-content: center;
  padding: 40px clamp(20px, 5vw, 72px) 96px;
  text-align: center;
}
.hero__title {
  margin: 0;
  font-weight: 400;
  font-size: clamp(44px, 9vw, 128px);
  line-height: 1.02;
  letter-spacing: -.02em;
  max-width: 14ch;
  text-wrap: balance;
}
/* Entrance, copied from the Wix site's hero title ("Drop In"):
   fades in over 1.6s while settling from 120% down to full size over 2s */
@media (prefers-reduced-motion: no-preference) {
  .hero__title {
    animation:
      title-fade 1600ms cubic-bezier(.25, .46, .45, .94) backwards,
      title-drop 2000ms cubic-bezier(.645, .045, .355, 1) backwards;
  }
}
@keyframes title-fade { from { opacity: 0; } }
@keyframes title-drop { from { scale: 1.2; } }
.hero__em {
  text-decoration: underline;
  text-decoration-thickness: .04em;
  text-underline-offset: .1em;
}
.hero__sub {
  margin: 0;
  max-width: 34ch;
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.4;
  color: var(--porcelain);
}
@media (min-width: 768px) {
  .hero__sub { max-width: none; white-space: nowrap; }
}

/* ============ AREA PAGES ============ */
/* Bridge photo under a crimson wash so it stays on-brand and the text reads.
   A band at the top of each area page (Commercial, Politics, Social). */
.page-head {
  background:
    linear-gradient(180deg, rgba(63, 17, 40, .82), rgba(92, 26, 58, .62) 50%, rgba(42, 11, 25, .85)),
    var(--plum) url(assets/images/services-header.jpg) 50% 38% / cover no-repeat;
  color: var(--porcelain);
}
/* Politics: its own bridge photo (saved in black and white) under the same crimson wash */
.page-head--politics {
  background:
    linear-gradient(180deg, rgba(63, 17, 40, .82), rgba(92, 26, 58, .62) 50%, rgba(42, 11, 25, .85)),
    var(--plum) url(assets/images/politics-header.jpg) 50% 42% / cover no-repeat;
}
/* Social: same treatment, cropped toward the tower on the right of the photo */
.page-head--social {
  background:
    linear-gradient(180deg, rgba(63, 17, 40, .82), rgba(92, 26, 58, .62) 50%, rgba(42, 11, 25, .85)),
    var(--plum) url(assets/images/social-header.jpg) 62% 40% / cover no-repeat;
}
.nav__link[aria-current="page"] { border-bottom-color: var(--porcelain); }
.page-head__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(32px, 6vw, 72px) var(--gutter) clamp(40px, 6vw, 72px);
  text-align: center;
  --title-size: clamp(48px, 8vw, 104px);
}
.page-head__title {
  margin: 0;
  font-weight: 400;
  font-size: var(--title-size);
  line-height: 1;
  letter-spacing: -.02em;
}
/* Visible gap from the title's baseline to the top of the intro's capitals
   = two capital-A heights of the intro text (EB Garamond: cap .673em, ascent .9em).
   .994em = 2 x .673 minus the .352em above the intro's caps; .175 x title = space under its baseline. */
.page-head__intro {
  margin: calc(.994em - .175 * var(--title-size)) 0 0;
  max-width: 40ch;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.4;
}
/* One line on tablet and desktop, like the home hero's subline; wraps on phones */
@media (min-width: 768px) {
  .page-head__intro { max-width: none; white-space: nowrap; }
}

.service {
  padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(48px, 8vw, 100px);
  max-width: 1400px;
  margin: 0 auto;
}
.service__soon { margin: 0; font-size: 19px; font-style: italic; color: var(--muted); text-align: center; }

/* ============ WORK GRID ============ */
.work__grid {
  display: grid;
  --col-gap: clamp(16px, 2vw, 28px);
  container-type: inline-size;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3vw, 40px) var(--col-gap);
}
@media (min-width: 768px) {
  .work__grid { grid-template-columns: repeat(2, 1fr); }
  .work__grid .card__media { aspect-ratio: 4 / 3; }
  /* Feature card: spans both columns at the same height as a regular row */
  .work__grid .card--wide { grid-column: 1 / -1; }
  .work__grid .card--wide .card__media { aspect-ratio: auto; height: calc((100cqw - var(--col-gap)) / 2 * .75); }
}
.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.card__media {
  aspect-ratio: 4 / 5;
  background: repeating-linear-gradient(135deg, #ece5db 0 10px, #e3dacd 10px 20px);
  display: flex;
  align-items: flex-end;
  padding: 12px;
}
.card__media { position: relative; overflow: hidden; }
.card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.card:hover .card__img { transform: scale(1.03); }
.card__note { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.card__body { display: flex; flex-direction: column; gap: 6px; }
.card__title { font-size: clamp(22px, 3vw, 28px); line-height: 1.15; }
.card__title-em { text-decoration: underline; color: var(--plum); }
/* Glass "View work" button over the cover; blur keeps the photo from fighting the text */
.card__cta {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 6px 18px;
  border-radius: 999px;
  font-size: 16px;
  color: var(--porcelain);
  background: rgba(30, 12, 22, .28);
  border: 1px solid rgba(254, 254, 246, .35);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .12);
  transition: background .3s ease;
}
.card__arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--porcelain);
  color: var(--wine);
  transition: transform .3s ease;
}
.card:hover .card__cta { background: rgba(30, 12, 22, .42); }
.card:hover .card__arrow { transform: translateX(3px); }
.card:focus-visible { outline: 2px solid var(--wine); outline-offset: 4px; }

/* ============ PROJECT PAGES ============ */
/* Header modelled on the old Wix project pages: porcelain field, crimson wine
   EB Garamond title, service tags in Aboreto beneath. The menu bar is solid from the start. */
.project-head {
  background: var(--porcelain);
  color: var(--wine);
  text-align: center;
  padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) var(--gutter) clamp(32px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
}
.project-head__title {
  margin: 0;
  font-weight: 400;
  font-size: clamp(44px, 5.6vw, 80px);
  line-height: 1.1;
  text-wrap: balance;
}
.project-head__tags {
  margin: 0;
  font-family: 'Aboreto', var(--serif);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  text-transform: uppercase;
}
/* Full-bleed image strip directly under the project header, scrolling slowly and endlessly */
.project-banner { overflow: hidden; aspect-ratio: 3 / 1; }
@media (max-width: 599px) {
  /* Too thin at 3:1 on phones: a taller strip */
  .project-banner { aspect-ratio: 16 / 9; }
}
.project-banner__track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: banner-scroll 48s linear infinite;
}
.project-banner__track img { display: block; flex: none; height: 100%; width: auto; }
@keyframes banner-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .project-banner__track { animation: none; }
}

/* One case study per work card: details + story, paired media, results */
.project {
  --col-gap: clamp(16px, 2vw, 28px);
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(56px, 8vw, 110px);
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 80px);
}
/* Under the banner: details in Aboreto on the left, the story on the right
   (Wix page: Aboreto bold 15px; EB Garamond 24px / 1.5, both crimson wine) */
.project-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px var(--col-gap);
  color: var(--wine);
}
@media (min-width: 900px) {
  .project-intro { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
}
.project-meta {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: 'Aboreto', var(--serif);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  text-transform: uppercase;
}
.project-copy { max-width: 36em; display: flex; flex-direction: column; gap: 1.5em; font-size: clamp(19px, 1.9vw, 24px); line-height: 1.5; }
.project-copy p { margin: 0; text-wrap: pretty; }

.project__pair { display: grid; grid-template-columns: 1fr; gap: var(--col-gap); }
@media (min-width: 768px) { .project__pair { grid-template-columns: repeat(2, 1fr); } }
.project__media {
  margin: 0;
  overflow: hidden;
  background: var(--mist-light);
  /* Same radius on all four; a thin crimson wine hairline frames each one */
  border: 1px solid rgba(98, 28, 57, .22);
  border-radius: clamp(12px, 1.4vw, 20px);
}
.project__pair--square .project__media { aspect-ratio: 1; }
.project__pair--tall .project__media { aspect-ratio: 4 / 5; }
.project__media img,
.project__media video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Results: full-width porcelain section (crimson text) that slides up over the pinned project
   (script.js sets .project's sticky top), then the figures rise in one after another */
.project.is-pinned { position: sticky; z-index: 0; }
.results, .footer { position: relative; z-index: 1; }
.results {
  /* Top edge fades into the pinned project above; --top-alpha drops as the section climbs (script.js) */
  --top-alpha: .85;
  background: linear-gradient(180deg,
    rgb(254 254 246 / 0) 0,
    rgb(254 254 246 / var(--top-alpha)) 30vh,
    rgb(254 254 246 / calc(var(--top-alpha) + .15)) 45vh,
    var(--porcelain) 65vh);
  color: var(--wine);
  min-height: 90vh;
  /* content sits low in the section: the tall top is the see-through blend, the bottom stays close to the footer */
  padding: clamp(96px, 12vw, 160px) var(--gutter) clamp(48px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(56px, 8vw, 96px);
}
/* Progressive blur over the top of the section: starts at nothing on the very edge and
   strengthens downward, so there is no line where the section meets the photos above */
.results::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  /* covers the whole section so the blur never has a bottom edge */
  -webkit-mask: linear-gradient(180deg, transparent 0, #000 35vh);
  mask: linear-gradient(180deg, transparent 0, #000 35vh);
}
.results__list {
  margin: 0;
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px var(--gutter);
  text-align: center;
}
.results__item { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.results dt { font-size: clamp(64px, 10vw, 144px); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.results dd { margin: 0; max-width: 24em; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.4; opacity: .85; text-wrap: balance; }
.results.reveal .results__item,
.results.reveal .project__back {
  opacity: 0;
  transform: translateY(56px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
}
.results.reveal .project__back { transition-delay: .25s; }
.results.reveal.is-visible .results__item,
.results.reveal.is-visible .project__back { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .results.reveal .results__item, .results.reveal .project__back { transform: none; transition: opacity .6s ease; }
}

.project__back {
  align-self: center;
  font-size: 20px;
  color: var(--wine);
  text-underline-offset: .2em;
}
.project__back::before { content: "\2190\00a0\00a0"; display: inline-block; text-decoration: none; }

/* ============ ABOUT ============ */
.about {
  /* Modelled on a plain editorial manifesto: crimson wine field, large type,
     ragged-right paragraphs with a wide left inset */
  background: var(--wine);
  color: var(--porcelain);
  padding: clamp(96px, 14vw, 220px) var(--gutter);
  position: relative;
  overflow: hidden;
}
.about__wrap {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
}
.about__inner {
  max-width: 19em;
  margin: 0 0 0 clamp(0px, 4vw, 96px);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: .5em;
  font-size: clamp(24px, 3.4vw, 50px);
  line-height: 1.32;
}
.about__inner p { margin: 0; text-wrap: pretty; }
/* Scroll entrance: paragraphs drift up and fade in one after another.
   Replays every time the section comes back into view.
   Only armed when script.js adds .reveal, so nothing is hidden without JS. */
.about.reveal .about__inner p {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .2, 1);
}
.about.reveal .about__inner p:nth-child(2) { transition-delay: .15s; }
.about.reveal .about__inner p:nth-child(3) { transition-delay: .3s; }
.about.reveal.is-visible .about__inner p { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .about.reveal .about__inner p { transform: none; transition: opacity .6s ease; }
}


/* ============ CLIENTS ============ */
.clients {
  background: var(--porcelain);
  color: var(--wine);
  padding: clamp(40px, 6vw, 80px) var(--gutter);
  text-align: center;
}
.clients__heading {
  margin: 0 0 28px;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
/* Logo marquee: edges fade out via mask, track scrolls by half its width (list + clone) */
.marquee {
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  /* Held until every logo has loaded (script.js adds .is-ready), so widths never shift mid-scroll */
  animation: marquee 26s linear infinite paused;
  will-change: transform;          /* keep the motion on the GPU */
  backface-visibility: hidden;
}
.marquee.is-ready .marquee__track { animation-play-state: running; }
.marquee__item {
  flex: none;
  display: flex;
  align-items: center;
  height: 72px;
  padding: 0 clamp(24px, 4vw, 48px);
}
/* Optical sizing: --r (width/height) is set per logo by script.js.
   Height scales with r^-0.4, so wide wordmarks get shorter and square marks taller,
   giving every logo roughly equal visual weight. Nudge one logo with style="--logo-scale:1.1". */
.marquee {
  --logo-size: 44px;  /* height of a perfectly square logo */
}
@media (max-width: 767px) {
  .marquee { --logo-size: 36px; }
}
.marquee__logo {
  display: block;
  height: 32px; /* fallback before --r is known */
  height: calc(var(--logo-size) * var(--logo-scale, 1) * pow(var(--r, 1), -0.4));
  width: auto;
  max-width: 150px;
  object-fit: contain;
  filter: url(#tint-wine); /* render any logo in solid crimson wine (filter defined in index.html) */
  opacity: .9;
}
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}

/* ============ FOOTER ============ */
.footer {
  background: var(--plum-dark);
  color: var(--porcelain);
  padding: clamp(40px, 6vw, 80px) var(--gutter) 28px;
}
.footer__grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 48px;
}
.footer__talk {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.footer__heading { margin: 0; font-weight: 400; font-size: clamp(32px, 5vw, 48px); }
.footer__text { margin: 0; font-size: 19px; line-height: 1.4; }
.footer__talk .footer__text { max-width: 30ch; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid var(--porcelain);
  color: var(--porcelain);
  text-decoration: none;
  font-size: 17px;
}
.btn-outline:hover { background: var(--porcelain); color: var(--plum-dark); }

.signup { display: flex; flex-direction: column; gap: 14px; }
.signup__email {
  min-height: 48px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--porcelain);
  color: var(--porcelain);
  font: inherit;
  font-size: 18px;
  padding: 0 2px;
  outline: none;
}
.signup__consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.35;
  color: var(--mist-light);
}
.signup__check { width: 20px; height: 20px; margin: 2px 0 0; flex: none; }
.btn-solid {
  align-self: flex-start;
  min-height: 48px;
  padding: 0 28px;
  background: var(--porcelain);
  color: var(--plum-dark);
  border: 0;
  font: inherit;
  font-size: 17px;
  cursor: pointer;
}

.footer__bottom {
  max-width: 1100px;
  margin: 48px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--plum-rule);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  font-size: 15px;
}
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__link {
  color: var(--porcelain);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer__copy { color: var(--mist); align-self: center; }
