:root {
  --bg: #050606;
  --bg-soft: #0b0e10;
  --fg: #f3f2ef;
  --muted: rgba(243, 242, 239, 0.76);
  --muted-2: rgba(243, 242, 239, 0.58);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.18);
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.12);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  --pink: #ea0b6e;
  --pink-deep: #9d1463;
  --viridian: #18b99b;
  --page: 1540px;
  --gutter: clamp(22px, 4vw, 72px);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(234, 11, 110, 0.08), transparent 30%),
    radial-gradient(circle at bottom left, rgba(24, 185, 155, 0.06), transparent 24%),
    var(--bg);
  color: var(--fg);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--pink); color: #fff; }

.skip-link {
  position: fixed;
  z-index: 1000;
  left: 16px;
  top: 16px;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: #fff;
  color: #000;
}
.skip-link:focus { transform: translateY(0); }

.page-width {
  width: min(100%, var(--page));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.glass-panel,
.glass-card,
.glass-pill {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
}
.glass-panel {
  border-radius: var(--radius);
}
.glass-card {
  border-radius: 24px;
}
.glass-pill {
  border-radius: 999px;
}

.site-header {
  position: absolute;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  padding: clamp(20px, 2.7vw, 42px) var(--gutter);
  pointer-events: none;
}
.site-mark {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 16px 20px;
}
.site-logo {
  width: clamp(170px, 26vw, 420px);
  height: auto;
}

.hero,
.contact-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  background: #050705 url("assets/header-bg.webp") center / cover no-repeat;
}
.background-video {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}
.media-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-shade {
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.24) 0%, rgba(0, 0, 0, 0.04) 38%, rgba(0, 0, 0, 0.68) 100%),
    radial-gradient(circle at 85% 15%, rgba(234, 11, 110, 0.14), transparent 22%);
}
.hero-grid,
.hero-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-grid {
  z-index: 2;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(to bottom, rgba(255,255,255,0.2), rgba(255,255,255,0.8));
}
.hero-noise {
  z-index: 2;
  opacity: 0.12;
  background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.45) 0.7px, transparent 0.9px);
  background-size: 18px 18px;
}
.hero-inner {
  position: relative;
  z-index: 3;
  padding-top: 170px;
  padding-bottom: clamp(40px, 6vw, 84px);
}
.hero-card {
  max-width: min(790px, 100%);
  padding: clamp(26px, 3.2vw, 42px);
}
.eyebrow {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  width: min(12ch, 100%);
  font-size: clamp(54px, 9vw, 144px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.92;
  text-wrap: balance;
}
.hero-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 1.25vw, 18px);
  letter-spacing: 0.02em;
}

.content-section { padding: clamp(82px, 8.8vw, 150px) 0; }
.about {
  position: relative;
  border-bottom: 1px solid var(--line);
}
.two-column {
  display: grid;
  grid-template-columns: minmax(200px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(46px, 9vw, 160px);
  align-items: start;
}
h2 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 400;
}
.copy {
  max-width: 860px;
  font-size: clamp(19px, 1.5vw, 26px);
  line-height: 1.43;
  letter-spacing: -0.018em;
}
.about-card {
  padding: clamp(24px, 3vw, 36px);
}
.copy p { margin: 0; }
.copy p + p { margin-top: 1.35em; }
.signal-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.signal-list li {
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px 48px;
  margin-bottom: clamp(40px, 5vw, 70px);
}
.section-heading.compact { margin-bottom: clamp(34px, 4vw, 52px); }
.section-title { margin: 0; }
.section-note {
  max-width: 420px;
  margin: 0;
  color: var(--muted-2);
  font-size: 15px;
  line-height: 1.55;
}

.projects { padding-bottom: clamp(90px, 9vw, 150px); }
.project-slider {
  position: relative;
  padding: clamp(18px, 2vw, 24px);
  overflow: hidden;
}
.project-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255,255,255,0.08), transparent 34%, transparent 66%, rgba(234, 11, 110, 0.08));
  pointer-events: none;
}
.slider-topline,
.slider-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.slider-topline { margin-bottom: 18px; }
.slider-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.slider-controls {
  display: inline-flex;
  gap: 10px;
}
.slider-button,
.slider-dot {
  appearance: none;
  border: 0;
  color: inherit;
  cursor: pointer;
}
.slider-button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.slider-button:hover,
.slider-button:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}
.project-slides {
  position: relative;
  min-height: 0;
}
.project-slide {
  position: relative;
  display: none;
  min-height: clamp(440px, 48vw, 720px);
  overflow: hidden;
  border-radius: 22px;
  background: #080909;
}
.project-slide.is-active { display: block; }
.project-media,
.project-media img {
  width: 100%;
  height: 100%;
}
.project-media img {
  min-height: clamp(440px, 48vw, 720px);
  object-fit: cover;
}
.project-overlay {
  position: absolute;
  left: clamp(18px, 2vw, 30px);
  right: clamp(18px, 2vw, 30px);
  bottom: clamp(18px, 2vw, 30px);
  max-width: min(560px, calc(100% - 36px));
  padding: clamp(18px, 2.6vw, 28px);
}
.project-kicker {
  margin: 0 0 10px;
  color: rgba(255,255,255,0.84);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.project-overlay h3 {
  margin: 0 0 12px;
  font-size: clamp(30px, 3vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 400;
}
.project-overlay p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.08vw, 18px);
  line-height: 1.55;
}
.slider-footer { margin-top: 16px; }
.slider-dots {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}
.slider-dot.is-active {
  width: 32px;
  background: linear-gradient(90deg, var(--pink-deep), var(--pink));
}
.slider-index {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.14em;
}

.partners { padding-top: 0; }
.partner-wrap { padding: clamp(28px, 3.2vw, 38px); }
.partner-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 64px);
  align-items: center;
}
.partner {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
}
.partner img {
  width: auto;
  max-width: 100%;
  max-height: 72px;
  object-fit: contain;
  filter: brightness(1) contrast(1.04);
}
.partner:nth-child(1) img { max-height: 50px; }
.partner:nth-child(4) img { max-height: 76px; }
.partner:nth-child(5) img { max-height: 78px; }

.gallery {
  padding: clamp(26px, 2.8vw, 42px) 0 clamp(78px, 8vw, 126px);
  overflow: hidden;
}
.gallery-shell { padding: clamp(14px, 1.4vw, 18px); }
.gallery-viewport { overflow: hidden; border-radius: 20px; }
.gallery-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marquee 64s linear infinite;
}
.gallery-set {
  display: flex;
  align-items: stretch;
  gap: clamp(10px, 1.2vw, 20px);
  padding-right: clamp(10px, 1.2vw, 20px);
}
.gallery figure {
  margin: 0;
  width: clamp(300px, 34vw, 600px);
  height: clamp(260px, 28vw, 470px);
  overflow: hidden;
  background: #111;
  border-radius: 14px;
}
.gallery figure:nth-child(2n) { width: clamp(250px, 28vw, 490px); }
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

.contact-band {
  min-height: clamp(390px, 46vw, 700px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050705 url("assets/footer-video-poster.webp") center / cover no-repeat;
}
.contact-video { object-position: center center; }
.contact-shade {
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.28), rgba(0,0,0,0.36)),
    radial-gradient(circle at 20% 80%, rgba(24, 185, 155, 0.08), transparent 25%);
}
.contact-grid { z-index: 2; opacity: 0.18; }
.contact-inner {
  position: relative;
  z-index: 3;
  text-align: center;
}
.contact-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: clamp(24px, 3vw, 34px) clamp(28px, 3.5vw, 44px);
}
.contact-logo {
  width: min(78vw, 420px);
  height: auto;
}
.contact-inner a {
  display: inline-block;
  color: #fff;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.17em;
  font-size: clamp(24px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.site-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0 30px;
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  line-height: 1.5;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.legal-line,
.copyright-line {
  margin: 0;
}
.legal-line a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

@media (max-width: 1100px) {
  .section-heading {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 900px) {
  .hero { min-height: 82svh; }
  .two-column { grid-template-columns: 1fr; gap: 42px; }
  .partner-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 44px; }
  .partner:last-child { grid-column: 1 / -1; }
  .project-slide,
  .project-media img { min-height: 420px; }
}

@media (max-width: 600px) {
  :root {
    --gutter: 20px;
    --radius: 24px;
  }
  .site-header { padding-top: 16px; }
  .site-mark { padding: 12px 14px; }
  .site-logo { width: min(62vw, 240px); }
  .hero { min-height: 78svh; }
  .hero-grid { background-size: 84px 84px; }
  .hero-inner { padding-bottom: 24px; }
  .hero-card { padding: 20px 18px; }
  .hero h1 { font-size: clamp(48px, 16vw, 78px); width: 9ch; }
  .hero-note { font-size: 13px; }
  .content-section { padding: 72px 0; }
  .copy { font-size: 18px; }
  .section-heading { margin-bottom: 34px; }
  .project-slider { padding: 14px; }
  .slider-topline { margin-bottom: 12px; }
  .slider-button { width: 40px; height: 40px; }
  .project-slide,
  .project-media img { min-height: 380px; }
  .project-overlay {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 16px;
    max-width: none;
  }
  .project-overlay h3 { font-size: 28px; }
  .project-overlay p:last-child { font-size: 15px; }
  .partner-wrap { padding: 20px; }
  .partner { min-height: 78px; }
  .partner img { max-height: 54px; }
  .partner:nth-child(1) img { max-height: 38px; }
  .gallery { padding-top: 12px; padding-bottom: 70px; }
  .gallery-shell { padding: 10px; }
  .gallery figure { width: 76vw; height: 64vw; }
  .gallery figure:nth-child(2n) { width: 64vw; }
  .contact-band { min-height: 58vw; }
  .contact-card { gap: 16px; padding: 20px 18px; }
  .contact-inner a { font-size: clamp(22px, 7vw, 34px); }
  .site-footer { padding: 18px 0 24px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery-track { animation: none; }
}

/* v4 refinement pass */
.glass-panel,
.glass-card,
.glass-pill {
  border: 0;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.22);
}

.site-mark {
  padding: 10px 12px;
}
.site-logo {
  width: clamp(76px, 10.4vw, 168px);
}

.project-slider {
  padding: clamp(14px, 1.6vw, 20px);
}
.project-slides {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 31%);
  gap: clamp(14px, 1.6vw, 22px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  padding-bottom: 2px;
}
.project-slides::-webkit-scrollbar { display: none; }
.project-slide,
.project-slide.is-active {
  display: block;
  min-height: clamp(320px, 30vw, 460px);
  scroll-snap-align: start;
}
.project-media img {
  min-height: clamp(320px, 30vw, 460px);
}
.project-overlay {
  left: 12px;
  right: 12px;
  bottom: 12px;
  max-width: none;
  padding: 16px;
  background: rgba(8, 10, 10, 0.54);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.project-overlay h3 {
  font-size: clamp(22px, 2vw, 30px);
  margin-bottom: 8px;
}
.project-overlay p:last-child {
  font-size: 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-kicker {
  font-size: 9px;
  margin-bottom: 8px;
}
.slider-footer { display: none; }

.contact-card {
  gap: 12px;
  padding: 16px 20px;
}
.contact-logo {
  width: min(34vw, 168px);
}
.contact-inner a {
  font-size: clamp(15px, 1.6vw, 22px);
}

.legal-line {
  max-width: 980px;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.75,.25,1);
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.hero-card,
.site-mark {
  animation: settle-in 900ms cubic-bezier(.2,.75,.25,1) both;
}
.site-mark { animation-delay: 120ms; }
@keyframes settle-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-grid {
  animation: grid-drift 20s linear infinite alternate;
}
@keyframes grid-drift {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(-18px,12px,0); }
}
.project-slide img {
  transition: transform 900ms cubic-bezier(.2,.75,.25,1), filter 500ms ease;
}
.project-slide:hover img {
  transform: scale(1.018);
}

@media (max-width: 1000px) {
  .project-slides { grid-auto-columns: minmax(250px, 46%); }
}

@media (max-width: 600px) {
  .site-mark { padding: 8px 10px; }
  .site-logo { width: clamp(74px, 25vw, 96px); }
  .project-slides { grid-auto-columns: 82%; }
  .project-slide,
  .project-media img { min-height: 340px; }
  .contact-logo { width: min(42vw, 150px); }
  .contact-inner a { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll,
  .reveal-on-scroll.is-visible,
  .hero-card,
  .site-mark,
  .hero-grid,
  .project-slide img {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* keep the glass material edge-free */
.slider-button,
.signal-list li {
  border: 0;
}

/* v5 refinement: flatten the bubbles, enlarge projects, show full project copy */
.glass-panel,
.glass-card,
.glass-pill {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.site-mark {
  padding: 0;
  background: transparent;
}

.hero-card {
  padding: 0;
  max-width: min(900px, 100%);
}

.about-card {
  padding: 0;
}

.signal-list {
  gap: 0;
}
.signal-list li {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.signal-list li + li::before {
  content: "·";
  display: inline-block;
  margin: 0 12px;
  color: rgba(255,255,255,.34);
}

.project-slider {
  padding: 0;
  overflow: visible;
  background: transparent;
}
.project-slider::before {
  display: none;
}
.slider-topline {
  margin-bottom: 20px;
}
.slider-button {
  width: auto;
  height: auto;
  padding: 6px 4px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-size: 22px;
  line-height: 1;
  opacity: .64;
  transition: opacity 180ms ease, transform 180ms ease;
}
.slider-button:hover,
.slider-button:focus-visible {
  background: transparent;
  opacity: 1;
}
.slider-button[data-prev]:hover { transform: translateX(-2px); }
.slider-button[data-next]:hover { transform: translateX(2px); }

.project-slides {
  grid-auto-columns: minmax(440px, 46%);
  gap: clamp(18px, 2vw, 30px);
  overflow-x: auto;
  padding-bottom: 8px;
}
.project-slide,
.project-slide.is-active {
  min-height: clamp(520px, 42vw, 650px);
  border-radius: 10px;
  isolation: isolate;
}
.project-slide::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.58) 33%, rgba(0,0,0,.08) 68%, transparent 100%);
}
.project-media img {
  min-height: clamp(520px, 42vw, 650px);
}
.project-overlay {
  z-index: 2;
  left: clamp(20px, 2.4vw, 34px);
  right: clamp(20px, 2.4vw, 34px);
  bottom: clamp(20px, 2.4vw, 34px);
  padding: 0;
  max-width: 620px;
  background: transparent !important;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.project-overlay h3 {
  font-size: clamp(28px, 2.5vw, 42px);
  margin-bottom: 12px;
}
.project-overlay p:last-child {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
  font-size: clamp(14px, 1vw, 17px);
  line-height: 1.55;
  color: rgba(255,255,255,.78);
}
.project-kicker {
  font-size: 10px;
}

.partner-wrap,
.gallery-shell,
.contact-card {
  padding-left: 0;
  padding-right: 0;
}
.gallery-viewport {
  border-radius: 0;
}
.gallery figure {
  border-radius: 8px;
}

.contact-card {
  padding-top: 0;
  padding-bottom: 0;
}
.contact-inner a {
  font-size: clamp(10px, .95vw, 13px);
  letter-spacing: 0;
}

@media (max-width: 1100px) {
  .project-slides { grid-auto-columns: minmax(390px, 62%); }
}

@media (max-width: 700px) {
  .project-slides { grid-auto-columns: 88%; }
  .project-slide,
  .project-media img { min-height: 480px; }
  .project-overlay {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }
  .contact-inner a { font-size: 10px; }
}

/* v6 — dedicated mobile / touch refinement */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Respect notches / rounded device edges without changing desktop geometry. */
.site-header {
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
  padding-top: max(clamp(20px, 2.7vw, 42px), env(safe-area-inset-top));
}
.page-width {
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.site-footer {
  padding-bottom: max(30px, env(safe-area-inset-bottom));
}

/* Avoid hover-only effects firing awkwardly on touch devices. */
@media (hover: hover) and (pointer: fine) {
  .project-slide:hover img {
    transform: scale(1.018);
  }
}
@media (hover: none) {
  .project-slide:hover img { transform: none; }
}

@media (max-width: 700px) {
  :root { --gutter: 20px; }

  /* Stable mobile viewport sizing across Safari/Chrome address bars. */
  .hero {
    min-height: 100svh;
    min-height: 100dvh;
  }
  .hero-inner {
    width: 100%;
    padding-top: clamp(110px, 22svh, 170px);
    padding-bottom: max(28px, env(safe-area-inset-bottom));
  }
  .hero-card { width: 100%; }
  .hero h1 {
    width: min(7.4ch, 100%);
    font-size: clamp(50px, 15.4vw, 68px);
    line-height: .93;
    letter-spacing: -.052em;
    overflow-wrap: normal;
  }
  .hero-note {
    max-width: 31rem;
    margin-top: 24px;
    font-size: 12px;
    line-height: 1.55;
  }
  .eyebrow {
    font-size: 10px;
    letter-spacing: .22em;
    line-height: 1.3;
  }

  .content-section { padding: 68px 0; }
  .two-column { gap: 32px; }
  h2 {
    font-size: clamp(34px, 10.5vw, 46px);
    line-height: 1;
  }
  .copy {
    font-size: 17px;
    line-height: 1.52;
  }
  .copy p + p { margin-top: 1.25em; }
  .signal-list {
    margin-top: 24px;
    row-gap: 7px;
  }
  .signal-list li {
    font-size: 10px;
    line-height: 1.5;
  }
  .signal-list li + li::before { margin: 0 8px; }

  .section-heading {
    gap: 18px;
    margin-bottom: 30px;
  }
  .section-note {
    max-width: 32rem;
    font-size: 14px;
  }

  /* Mobile projects become swipe-first, with image and full copy separated.
     This keeps every description readable instead of covering the image. */
  .slider-topline {
    min-height: 44px;
    margin-bottom: 14px;
  }
  .slider-label { font-size: 10px; }
  .slider-controls { gap: 12px; }
  .slider-button {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    display: grid;
    place-items: center;
    font-size: 23px;
    touch-action: manipulation;
  }
  .project-slides {
    grid-auto-columns: min(88vw, 390px);
    gap: 18px;
    scroll-padding-inline: 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
  }
  .project-slide,
  .project-slide.is-active {
    min-height: 0;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    align-self: start;
  }
  .project-slide::after { display: none; }
  .project-media {
    height: auto;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    background: #090a0a;
  }
  .project-media img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
  }
  .project-overlay {
    position: relative;
    inset: auto;
    max-width: none;
    padding: 18px 2px 8px;
  }
  .project-kicker {
    margin-bottom: 9px;
    font-size: 9px;
    line-height: 1.45;
  }
  .project-overlay h3 {
    margin-bottom: 10px;
    font-size: clamp(27px, 8.2vw, 34px);
    line-height: 1.03;
  }
  .project-overlay p:last-child {
    font-size: 15px;
    line-height: 1.55;
    color: rgba(255,255,255,.75);
  }

  .partner-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 28px;
  }
  .partner {
    min-height: 74px;
    padding: 8px;
  }
  .partner:last-child { grid-column: 1 / -1; }

  .gallery {
    padding-top: 4px;
    padding-bottom: 64px;
  }
  .gallery-shell { padding: 0; }
  .gallery figure,
  .gallery figure:nth-child(2n) {
    width: min(78vw, 360px);
    height: min(58vw, 275px);
    border-radius: 6px;
  }

  .contact-band {
    min-height: 300px;
  }
  .contact-card { gap: 11px; }
  .contact-logo { width: min(34vw, 126px); }
  .contact-inner a {
    font-size: 11px;
    line-height: 1.3;
    letter-spacing: .01em;
  }

  .site-footer {
    padding-top: 20px;
    font-size: 11px;
    line-height: 1.55;
  }
  .footer-inner { gap: 12px; }
  .legal-line br { display: block; }
}

@media (max-width: 480px) {
  :root { --gutter: 19px; }
  .site-header { padding-top: max(18px, env(safe-area-inset-top)); }
  .site-logo { width: 94px; }
  .hero-inner { padding-top: 120px; }
  .hero h1 {
    font-size: clamp(49px, 15.6vw, 64px);
    width: 7ch;
  }
  .hero-note { max-width: 29rem; }
  .content-section { padding: 62px 0; }
  .projects { padding-bottom: 74px; }
  .project-slides { grid-auto-columns: calc(100vw - 50px); }
  .project-media { aspect-ratio: 1 / .78; }
  .partner-row { gap: 18px 22px; }
  .gallery figure,
  .gallery figure:nth-child(2n) {
    width: 80vw;
    height: 62vw;
  }
  .contact-band { min-height: 270px; }
}

@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .site-logo { width: 88px; }
  .hero-inner { padding-top: 112px; }
  .hero h1 {
    font-size: 48px;
    width: 6.7ch;
  }
  .hero-note { font-size: 11px; }
  h2 { font-size: 34px; }
  .copy { font-size: 16px; }
  .project-slides { grid-auto-columns: calc(100vw - 42px); }
  .project-overlay h3 { font-size: 27px; }
  .project-overlay p:last-child { font-size: 14px; }
  .partner-row { grid-template-columns: 1fr 1fr; gap: 16px; }
  .contact-logo { width: 112px; }
  .contact-inner a { font-size: 10.5px; }
}

/* v7 — mobile hero crop + resilient logo scaling */
.site-logo {
  width: auto !important;
  height: clamp(22px, 1.75vw, 28px);
  max-width: min(42vw, 172px);
  object-fit: contain;
}

.hero {
  background-image: url("assets/hero-video-poster.webp");
}
.hero .background-video {
  object-fit: cover;
  object-position: 50% 50%;
}

@media (max-width: 900px) {
  .site-logo {
    height: clamp(18px, 3vw, 24px);
    max-width: 36vw;
  }
}

@media (max-width: 700px) {
  .site-header {
    padding-top: max(20px, env(safe-area-inset-top));
  }
  .site-logo {
    width: auto !important;
    height: clamp(18px, 4.6vw, 22px);
    max-width: 40vw;
  }

  .hero {
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    align-items: flex-end;
  }
  .hero-inner {
    min-height: 100%;
    display: flex;
    align-items: flex-end;
    padding-top: max(92px, calc(env(safe-area-inset-top) + 72px));
    padding-bottom: max(30px, calc(env(safe-area-inset-bottom) + 22px));
  }
  .hero-card {
    width: 100%;
  }
  .hero h1 {
    width: min(7.2ch, 100%);
    font-size: clamp(46px, 14.2vw, 62px);
    line-height: .94;
  }
  .hero-note {
    margin-top: 20px;
    max-width: 100%;
    font-size: clamp(11px, 3.1vw, 13px);
    line-height: 1.45;
  }
}

@media (max-width: 480px) {
  .site-logo {
    width: auto !important;
    height: 18px;
    max-width: 42vw;
  }
  .hero-inner {
    padding-top: max(82px, calc(env(safe-area-inset-top) + 62px));
  }
  .hero h1 {
    font-size: clamp(44px, 13.8vw, 58px);
    width: 7ch;
  }
}

@media (max-width: 360px) {
  .site-logo { height: 17px; }
  .hero h1 {
    font-size: 43px;
    width: 6.8ch;
  }
  .hero-note { font-size: 10.5px; }
}
