/* ============================================================
   sayimagery — style.css
   Layout/behavior inspired by fullscreen portfolio slideshows,
   menu + radiused corners styled after the Sonido reference.
   ============================================================ */

:root {
  --bg-page: #dcdedd;          /* light gray surround, like the reference */
  --bg-stage: #14171a;         /* dark stage behind imagery */
  --bg-intro: #111416;         /* intro backdrop — bg-stage darkened ~15% */
  --ink: #eef0ee;              /* light text on imagery */
  --ink-dim: rgba(238, 240, 238, 0.65);
  --ink-dark: #1a1c1b;         /* dark text on light surfaces */
  --radius-frame: 22px;        /* the big radiused corners */
  --radius-card: 16px;
  --radius-pill: 999px;
  --nav-glass: rgba(20, 23, 26, 0.28);
  --frame-gap: 10px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.45, 0, 0.15, 1); /* slow in, slow out — for gentle fades */
  --font-stack: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-grotesk: "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif; /* v0 wordmark face */
}

/* Poppins, self-hosted (Latin subset only) — avoids sending visitor
   IPs to Google's font CDN on every page load */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../assets/fonts/poppins-300.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/poppins-400.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/poppins-500.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/poppins-600.woff2") format("woff2");
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  color-scheme: dark; /* makes native scrollbars/controls render dark instead of the default light/white */
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-stack);
  background: var(--bg-page);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ============ Intro overlay ============ */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  background: var(--bg-intro);
  transition: opacity 4s var(--ease-soft);
}

.intro.is-done {
  opacity: 0;
  pointer-events: none;
}

.intro.is-done .intro__mask {
  transform: scale(1.05);
}

/* footage seen through the logo shape */
.intro__mask {
  width: min(79.2vw, 75.68vh);
  aspect-ratio: 1 / 1;
  transition: transform 4s var(--ease-soft);
  -webkit-mask-image: url("../assets/logo-icon.png");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url("../assets/logo-icon.png");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  animation: intro-mask 1.1s var(--ease-out) 0.15s both;
  overflow: hidden;
}

.intro__mask video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: intro-zoom 3s var(--ease-out) both;
}

@keyframes intro-mask {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes intro-zoom {
  from { transform: scale(1.25); }
  to   { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
}

/* ============ Rounded page frame ============ */
.frame {
  position: fixed;
  inset: var(--frame-gap);
  border-radius: var(--radius-frame);
  overflow: hidden;
  background: var(--bg-stage);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

/* ============ Nav ============ */
.nav {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: var(--radius-pill);
  background: var(--nav-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav__left,
.nav__right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav__logo {
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.nav__logo img {
  height: 22px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
}

.nav__link {
  position: relative;
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.01em;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

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

.nav__link.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.10);
}


.nav__contact {
  color: var(--ink-dark);
  background: var(--ink);
  text-decoration: none;
  font-size: 13px;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  transition: transform 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

.nav__contact:hover {
  background: #ffffff;
  transform: scale(1.04);
}

/* ============ Views ============ */
.view {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease-out), visibility 0s linear 0.6s;
}

.view.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s var(--ease-out);
}

/* ============ Featured — horizontal scroll ============ */
.slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}

.slides.is-dragging { cursor: grabbing; }

.track {
  display: flex;
  height: 100%;
  will-change: transform;
}

.slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
}

.slide__media {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.slide__media img,
.slide__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* slow drift for still images — videos bring their own motion */
.slide__media img.kenburns {
  animation: kenburns 16s ease-in-out infinite alternate;
}

@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.12); }
}

/* soft gradient so type stays readable */
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10, 12, 14, 0.55) 0%, rgba(10, 12, 14, 0) 45%),
    linear-gradient(to bottom, rgba(10, 12, 14, 0.35) 0%, rgba(10, 12, 14, 0) 25%);
}

/* Big wordmark — v0 grotesk styling */
.hero {
  position: absolute;
  left: 3.2vw;
  bottom: 4.5vh;
  z-index: 20;
  pointer-events: none;
  font-family: var(--font-grotesk);
}

.hero__wordmark {
  font-size: clamp(64px, 11.5vw, 190px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.9;
  text-transform: lowercase;
}

.hero__tagline {
  margin-top: clamp(14px, 2vw, 24px);
  font-size: clamp(15px, 1.4vw, 22px);
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink-dim);
  max-width: 46ch;
}

/* Slide meta — top right under nav */
.slide-meta {
  position: absolute;
  right: 3vw;
  top: 16vh;
  z-index: 20;
  text-align: right;
}

.slide-meta__counter {
  font-size: 13px;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
}

.slide-meta__total { margin-left: 6px; opacity: 0.6; }

.slide-meta__title {
  margin-top: 6px;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ============ Project detail ============ */
.view--project {
  overflow-y: auto;
  padding: 110px 0 60px;
  background: var(--bg-stage);
}

/* slim, on-theme scrollbar for the internal scroll panels (project/index/about) —
   without this the browser's default light scrollbar shows up against the dark frame */
.view--project,
.view--index,
.view--about {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.view--project::-webkit-scrollbar,
.view--index::-webkit-scrollbar,
.view--about::-webkit-scrollbar {
  width: 8px;
}

.view--project::-webkit-scrollbar-track,
.view--index::-webkit-scrollbar-track,
.view--about::-webkit-scrollbar-track {
  background: transparent;
}

.view--project::-webkit-scrollbar-thumb,
.view--index::-webkit-scrollbar-thumb,
.view--about::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-pill);
}

.project {
  width: 100%;
}

/* text/meta keeps the site gutter; media rows run edge to edge */
.project__kicker,
.project__title,
.project__meta,
.tblock,
.project__nav {
  padding-left: 3vw;
  padding-right: 3vw;
}

.project__kicker {
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.project__title {
  font-family: var(--font-grotesk);
  font-size: clamp(48px, 7.5vw, 120px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.95;
  text-transform: lowercase;
  margin-bottom: 34px;
}

.project__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 56px;
  margin-bottom: 26px;
}

.project__meta dt {
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.project__meta dd {
  font-size: 15px;
  font-weight: 500;
}

/* --- editorial text blocks: small label left, big text offset right --- */
.tblock {
  display: grid;
  grid-template-columns: minmax(120px, 18%) 1fr;
  gap: 24px;
  margin: 96px 0;
}

.tblock--center {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.tblock--center .tblock__label {
  display: none;
}

.tblock--tight {
  margin: 48px 0;
}

.tblock__label {
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
}

.tblock__text {
  font-size: clamp(22px, 2.6vw, 40px);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: #c7c9c7;
  max-width: 52ch;
}

.tblock__more {
  display: none;
  margin-top: 0.8em;
  color: var(--ink-dim);
}

.tblock.is-open .tblock__more { display: block; }

.tblock__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  font-family: var(--font-stack);
  font-size: 13px;
  color: var(--ink-dim);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s var(--ease-out);
}

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

.tblock__plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  font-size: 15px;
}

/* --- curated media rows: full-bleed, tight gaps, square next to wide --- */
.mrow {
  display: grid;
  gap: 8px;
  margin: 8px 0;
}

.mrow--pair {
  grid-template-columns: 1fr 1.9fr;
}

.project__media {
  position: relative;
  overflow: hidden;
  background: #1d2125;
}


/* subtle per-video sound control — muted autoplay is the only reliable
   option in browsers, so this lets a visitor opt in with one click */
.sv-controls,
.sv-seek-wrap {
  position: absolute;
  bottom: 16px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 24px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: rgba(20, 23, 26, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  opacity: 0.55;
  transition: opacity 0.3s var(--ease-out);
}

.sv-controls { right: 16px; }
.sv-seek-wrap { left: 16px; } /* mirrors .sv-controls on the opposite side of the video */

.project__media:hover .sv-controls,
.sv-controls:focus-within,
.project__media:hover .sv-seek-wrap,
.sv-seek-wrap:focus-within {
  opacity: 1;
}

.sv-mute {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--ink);
  flex: none;
}

.sv-icon {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sv-icon--unmuted { display: none; }
.sv-mute.is-unmuted .sv-icon--muted { display: none; }
.sv-mute.is-unmuted .sv-icon--unmuted { display: block; }

.sv-volume,
.sv-seek {
  -webkit-appearance: none;
  appearance: none;
  width: 64px;
  height: 3px;
  margin: 0;
  border: none;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  outline: none;
  cursor: pointer;
}

.sv-volume::-webkit-slider-runnable-track,
.sv-seek::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
}

.sv-volume::-webkit-slider-thumb,
.sv-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 11px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--ink);
  cursor: pointer;
}

.sv-volume::-moz-range-track,
.sv-seek::-moz-range-track {
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
}

.sv-volume::-moz-range-thumb,
.sv-seek::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: none;
  border-radius: 50%;
  background: var(--ink);
  cursor: pointer;
}

.mrow--pair .project__media:first-child {
  aspect-ratio: 1 / 1;
}

/* explicit-ratio pairs (e.g. wireframe + main shot) — the row's own
   aspect-ratio is the sum of both items' widths at a shared height, so it
   still fills 100% of the frame edge-to-edge while each item keeps its
   exact ratio, regardless of which one comes first */
.mrow--pair:has(.project__media--sq),
.mrow--pair:has(.project__media--wide) {
  display: flex;
  grid-template-columns: none;
  aspect-ratio: 2.778 / 1; /* 1 (square) + 16/9 (wide) */
}

.mrow--pair:has(.project__media--sq) .project__media,
.mrow--pair:has(.project__media--wide) .project__media {
  height: 100%;
  width: auto;
  flex: 0 0 auto;
}

.mrow--pair .project__media.project__media--sq { aspect-ratio: 1 / 1; }
.mrow--pair .project__media.project__media--wide { aspect-ratio: 16 / 9; }

/* inner wrapper carries scroll parallax; the img/video itself carries the
   hover-scale — kept on separate elements so the two transforms never fight */
.project__media-inner {
  display: block;
  width: 100%;
  will-change: transform;
}

.mrow--pair .project__media .project__media-inner {
  position: absolute;
  inset: 0;
}

.project__media-inner img,
.project__media-inner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease-out);
}

.project__media:hover .project__media-inner img,
.project__media:hover .project__media-inner video {
  transform: scale(1.009);
}

/* ============ scroll-reveal for project-page content ============ */
.mrow,
.tblock {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.mrow.is-revealed,
.tblock.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .mrow, .tblock { opacity: 1; transform: none; transition: none; }
}

/* ============ sticky project head — holds while the hero scrolls ============ */
.project__intro {
  position: relative;
}

.project__head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding-top: 110px;
  padding-bottom: 24px;
  background: linear-gradient(to bottom, var(--bg-stage) 65%, transparent);
}

/* ============ palette panel colour tint ============ */
/* palette panels sit as tight to their neighbours as the image rows do */
.tblock--tinted {
  padding: 48px 3vw;
  margin: 8px 0;
  border-radius: var(--radius-card);
  transition: background 0.6s var(--ease-out);
}

.tblock--tinted .tblock__label,
.tblock--tinted .tblock__body {
  padding-left: 0;
  padding-right: 0;
}

/* --- colour palette: shared crossfade between cycling groups --- */
.palette {
  transition: opacity 0.35s var(--ease-out);
}

.palette.is-cycling-out {
  opacity: 0;
}

/* --- style 1: "chips" — horizontal row of rounded swatches (default) --- */
.palette--chips {
  display: flex;
  gap: 10px;
  min-height: 165px;
}

.palette__bar {
  flex: 1;
  border-radius: 12px;
  display: flex;
  align-items: flex-end;
  padding: 14px 16px;
}

.palette__bar span {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
}

.palette__bar--light span { color: rgba(0, 0, 0, 0.65); }

/* --- style 2: "bands" — full-width bands stacked top to bottom --- */
.palette--bands {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.palette__band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 98px;
  border-radius: 12px;
  padding: 0 24px;
  color: rgba(255, 255, 255, 0.9);
}

.palette__band-num {
  font-size: 12px;
  letter-spacing: 0.06em;
  opacity: 0.7;
}

.palette__band-hex {
  font-size: 16px;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.palette__band--light { color: rgba(0, 0, 0, 0.7); }

/* --- style 3: "columns" — tall vertical bars side by side --- */
.palette--columns {
  display: flex;
  gap: 10px;
  height: 360px;
}

.palette__col {
  flex: 1;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.9);
}

.palette__col-num,
.palette__col-hex {
  position: sticky;
  display: block;
  writing-mode: vertical-rl;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.palette__col-num {
  top: 18px;
  padding: 16px 0 0 16px;
}

.palette__col-hex {
  top: 18px;
  float: right;
  padding: 16px 16px 0 0;
  font-weight: 500;
}

.palette__col--light { color: rgba(0, 0, 0, 0.7); }

.project__nav {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 44px;
}

.project__link {
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-pill);
  padding: 11px 20px;
  transition: background 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.project__link:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: scale(1.04);
}

/* next-project link: thumbnail preview above the label */
.project__next {
  display: block;
  text-decoration: none;
  color: var(--ink);
  max-width: 320px;
}

.project__next-media {
  display: block; /* span is inline by default, which made margin-bottom a no-op — hence no gap below */
  margin-bottom: 8px;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: #1d2125;
}

.project__next-media img,
.project__next-media video {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.project__next-label {
  display: inline-block;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-pill);
  padding: 11px 20px;
  transition: background 0.3s var(--ease-out);
}

.project__next:hover .project__next-label {
  background: rgba(255, 255, 255, 0.16);
}

/* ============ Index grid ============ */
.view--index {
  overflow-y: auto;
  padding: 110px 3vw 120px;
  background: var(--bg-stage);
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}

.index-card {
  position: relative;
  display: block;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  text-decoration: none;
  color: var(--ink);
  background: #1d2125;
}

.index-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s var(--ease-out);
}

.index-card:hover img { transform: scale(1.05); }

.index-card__label {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.index-card__num {
  font-size: 12px;
  color: var(--ink-dim);
}

.index-card__title {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.index-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 12, 14, 0.55) 0%, rgba(10, 12, 14, 0) 40%);
}

/* ============ About ============ */
.view--about {
  overflow-y: auto;
  padding: 0 0 60px;
  background: var(--bg-stage);
}

/* full-bleed image band, edge to edge like the Featured slideshow —
   keeps the About page from being a wall of read-only cards */
.about-hero {
  position: relative;
  height: 46vh;
  min-height: 320px;
  overflow: hidden;
  margin-bottom: 24px;
}

.about-hero__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

/* hidden views stay in the render tree (visibility:hidden, not display:none),
   so an unconditional background-image here made every homepage visit
   download this 768KB file for a page it wasn't even showing. Scoping it to
   .is-active defers the fetch until About is actually opened. */
.view--about.is-active .about-hero__media {
  background-image: url("../Stills/About_Page_Background.jpg");
}

/* same readability gradient as .slide::after, so the wordmark stays legible */
.about-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10, 12, 14, 0.6) 0%, rgba(10, 12, 14, 0) 45%),
    linear-gradient(to bottom, rgba(10, 12, 14, 0.4) 0%, rgba(10, 12, 14, 0) 25%);
}

.about-hero__wordmark {
  position: absolute;
  left: 3.2vw;
  bottom: 4.5vh;
  z-index: 1;
  font-family: var(--font-grotesk);
  font-size: clamp(48px, 9vw, 140px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.9;
  text-transform: lowercase;
  color: var(--ink);
}

.about {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 3vw;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about__card {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  grid-template-areas:
    "text    logo"
    "contact .";
  align-items: stretch;
  gap: 40px;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 56px;
  backdrop-filter: blur(10px);
}

.about__text {
  grid-area: text;
  min-width: 0;
}

/* text-only variant: the logo moved to the contact section, so this card no
   longer needs the text/logo/contact grid split — just the text block */
.about__card--text-only {
  display: block;
}

.about__kicker {
  font-size: 12px;
  color: var(--ink-dim);
  margin-bottom: 22px;
}

.about__heading {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.about__body {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-dim);
  margin-bottom: 34px;
}

.about__text .about__body:last-of-type {
  margin-bottom: 0; /* so the text block's box ends at the last line, not padded whitespace — this is what the logo's height matches */
}

.about__contact {
  grid-area: contact;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.about__contact a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  width: fit-content;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 2px;
  transition: border-color 0.3s var(--ease-out);
}

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

/* ============ About: services / testimonials / contact sections ============ */
.about__section {
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 56px;
  backdrop-filter: blur(10px);
}

.about__section-heading {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.service-item h3 {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 8px;
}

.service-item p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-dim);
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial {
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px;
}

.testimonial__quote {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 14px;
}

.testimonial__quote::before { content: "\201C"; }
.testimonial__quote::after { content: "\201D"; }

.testimonial__author {
  font-size: 13px;
  color: var(--ink-dim);
  font-style: normal;
}

.contact-grid {
  display: grid;
  grid-template-columns: 2fr minmax(140px, 1fr);
  gap: 48px;
}

.contact-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-top: 28px; /* aligns the logo's top edge with the Name input's top edge, not the "Name" label above it */
}

.contact-brand__logo {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
}

.about__contact--block {
  grid-area: auto; /* .about__contact carries grid-area:contact for the intro card's grid — irrelevant here and was corrupting this grid's column tracks */
  flex-direction: column;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 480px;
}

.contact-form__hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-dim);
}

.contact-form__field input,
.contact-form__field textarea {
  font-family: var(--font-stack);
  font-size: 15px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 14px;
  resize: vertical;
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.09);
}

.contact-form__submit {
  align-self: flex-start;
  font-family: var(--font-stack);
  font-size: 14px;
  color: var(--ink-dark);
  background: var(--ink);
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 26px;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

.contact-form__submit:hover {
  background: #ffffff;
  transform: scale(1.03);
}

.contact-form__note {
  font-size: 13px;
  color: var(--ink-dim);
  opacity: 0.7;
  margin-top: -6px; /* pulls it a bit closer to the button than the default field gap */
}

.contact-form__status {
  font-size: 13px;
  color: var(--ink-dim);
  min-height: 1.2em;
}

.client-group + .client-group {
  margin-top: 40px;
}

.client-group__heading {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 12px;
}

.client-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  list-style: none;
}

.client-list li {
  font-size: 15px;
  color: var(--ink-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 20px 16px 0;
  transition: color 0.3s var(--ease-out);
}

.client-list li:hover { color: var(--ink); }

@media (max-width: 720px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .client-list {
    grid-template-columns: 1fr;
  }

  .about__section {
    padding: 32px;
  }
}

/* ============ Footer ============ */
.footer {
  position: absolute;
  left: 3vw;
  right: 3vw;
  bottom: 1.6vh;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-dim);
  pointer-events: none;
}

.footer a {
  color: var(--ink-dim);
  text-decoration: none;
  margin-left: 16px;
  pointer-events: auto;
  transition: color 0.3s var(--ease-out);
}

.footer a:hover { color: var(--ink); }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .about__card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "text"
      "logo"
      "contact";
    padding: 32px;
    gap: 28px;
  }

  .about__logo {
    height: auto;
    max-width: 220px;
    justify-self: center;
  }

  .slide-meta { top: 12vh; }

  .tblock {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 64px 0;
  }
}

@media (max-width: 560px) {
  .mrow--pair { grid-template-columns: 1fr; }

  .mrow--pair .project__media,
  .mrow--pair .project__media:first-child { aspect-ratio: 4 / 3; }

  /* stack ratio-tagged pairs full-width too, keeping each item's own ratio */
  .mrow--pair:has(.project__media--sq),
  .mrow--pair:has(.project__media--wide) {
    flex-direction: column;
    aspect-ratio: auto;
  }

  .mrow--pair:has(.project__media--sq) .project__media,
  .mrow--pair:has(.project__media--wide) .project__media {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 640px) {
  :root { --frame-gap: 6px; --radius-frame: 16px; }

  .nav { top: 8px; left: 8px; right: 8px; padding: 6px 8px; }

  .nav__link { padding: 8px 10px; font-size: 12px; white-space: nowrap; }

  .nav__logo { padding: 0 6px; }

  .nav__logo img { height: 18px; }

  .nav__contact { padding: 8px 14px; font-size: 12px; }

  .hero__wordmark { font-size: clamp(52px, 15vw, 90px); }

  .footer { display: none; }

  .project__next-media img,
  .project__next-media video {
    height: 100px;
  }

  /* the sticky head is a nice desktop parallax effect, but on a narrow
     viewport it takes up too much height and stays pinned over the hero
     video as it scrolls, making the video look like it's rendering
     underneath the title — let it scroll away normally instead */
  .project__head {
    position: static;
  }
}
