/* =============================================
   UV9 STUDIO — Global Styles
   ============================================= */

/* --- Reset & Tokens --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; cursor: none !important; }

:root {
  --black:     #0a0a0a;
  --white:     #fafafa;
  --off-white: #f2f2f0;
  --gray-100:  #ebebeb;
  --gray-200:  #d4d4d4;
  --gray-400:  #9a9a9a;
  --gray-600:  #555;

  --font-mono:    'Space Mono', monospace;
  --font-display: 'Plus Jakarta Sans', sans-serif;

  --nav-h: 72px;
  --max-w: 1320px;
  --gutter: clamp(24px, 5vw, 80px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-display);
  background: var(--white);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
}

a, button { cursor: none; }

/* --- Custom Chair Cursor --- */
.custom-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 34px;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-200px, -200px);
  translate: -50% -50%;
  transition: opacity 0.2s ease, width 0.2s ease;
  will-change: transform;
}

.custom-cursor img {
  width: 100%;
  display: block;
}

.custom-cursor.hidden { opacity: 0; }
.custom-cursor.active { width: 43px; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono { font-family: var(--font-mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* =============================================
   NAVIGATION
   ============================================= */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.nav.scrolled {
  border-bottom-color: var(--gray-200);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__logo img {
  height: 54px;
  width: auto;
  mix-blend-mode: multiply;
}

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

.nav__link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-600);
  position: relative;
  transition: color 0.2s ease;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--black);
  transition: width 0.3s var(--ease-out);
}

.nav__link:hover { color: var(--black); }
.nav__link:hover::after { width: 100%; }
.nav__link.active { color: var(--black); }
.nav__link.active::after { width: 100%; }

.nav__cta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--black);
  color: var(--white);
  padding: 10px 20px;
  border: 1px solid var(--black);
  transition: background 0.25s ease, color 0.25s ease;
}

.nav__cta:hover {
  background: var(--white);
  color: var(--black);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--black);
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
  transform-origin: center;
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav drawer */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--white);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  z-index: 99;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease-out);
  will-change: transform;
}

.nav__mobile.open {
  transform: translateY(0);
}

.nav__mobile .nav__link {
  font-size: 14px;
}

.nav__mobile .nav__cta {
  font-size: 13px;
}

/* =============================================
   HERO
   ============================================= */

.hero {
  padding-top: var(--nav-h);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: var(--black);
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  will-change: transform;
}

.hero__center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 32px;
  padding-bottom: clamp(60px, 8vh, 100px);
  position: relative;
  z-index: 2;
}

.hero__chair {
  width: clamp(78px, 11.2vw, 146px);
  opacity: 0.72;
  mix-blend-mode: multiply;
  animation: float 6s ease-in-out infinite;
  will-change: transform;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: 1px solid var(--black);
  transition: background 0.25s ease, color 0.25s ease, gap 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--black);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--white);
  color: var(--black);
}

.btn--outline {
  background: transparent;
  color: var(--black);
}

.btn--outline:hover {
  background: var(--black);
  color: var(--white);
}

.btn svg { transition: transform 0.3s var(--ease-out); }
.btn:hover svg { transform: translate(3px, -3px); }

.btn--hero {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white);
  padding: 10px 22px;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn--hero:hover {
  background: var(--white);
  color: var(--black);
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-18px); }
}

/* =============================================
   SECTION SHARED
   ============================================= */

section { padding-block: clamp(60px, 8vw, 100px); }
.work { padding-top: 0; }

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gray-400);
}

.section-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: clamp(48px, 7vw, 80px);
}

.section-title em {
  font-style: italic;
  font-weight: 300;
}

/* =============================================
   WORK SECTION
   ============================================= */

.work { background: var(--white); padding-top: clamp(36px, 5vw, 70px); }

.work__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(40px, 6vw, 72px);
  gap: 24px;
  flex-wrap: wrap;
}

.work__header .section-title {
  margin-bottom: 0;
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.work-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--gray-100);
  cursor: pointer;
}

.work-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

/* Placeholder gradient backgrounds for work cards */
.work-card:nth-child(1) .work-card__bg { background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 50%, #0f0f0f 100%); }
.work-card:nth-child(2) .work-card__bg { background: linear-gradient(145deg, #111 0%, #383838 60%, #1c1c1c 100%); }
.work-card:nth-child(3) .work-card__bg { background: linear-gradient(145deg, #222 0%, #444 50%, #181818 100%); }
.work-card:nth-child(4) .work-card__bg { background: linear-gradient(145deg, #0d0d0d 0%, #2a2a2a 55%, #151515 100%); }
.work-card:nth-child(5) .work-card__bg { background: linear-gradient(145deg, #1e1e1e 0%, #363636 50%, #0a0a0a 100%); }
.work-card:nth-child(6) .work-card__bg { background: linear-gradient(145deg, #141414 0%, #303030 55%, #111 100%); }

.work-card__bg {
  width: 100%;
  height: 100%;
  transition: transform 0.7s var(--ease-out);
  will-change: transform;
  position: relative;
  overflow: hidden;
}

.work-card__bg picture {
  display: contents;
}

.work-card__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.work-card__bg-num {
  font-family: var(--font-display);
  font-size: 120px;
  font-weight: 800;
  color: rgba(255,255,255,0.04);
  user-select: none;
}

.work-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.82);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out);
}

.work-card:hover .work-card__overlay {
  opacity: 1;
  transform: translateY(0);
}

.work-card:hover .work-card__bg {
  transform: scale(1.04);
}

.work-card__tag { display: none; }

.work-card__title {
  font-size: 42px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}

.work-card__link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 2px;
  width: fit-content;
  transition: border-color 0.2s ease, gap 0.2s ease;
}

.work-card__link:hover {
  border-color: var(--white);
  gap: 12px;
}

/* Bottom label — hidden */
.work-card__label { display: none; }

/* =============================================
   WORK CAROUSEL
   ============================================= */

.work-carousel {
  margin-top: clamp(40px, 6vw, 72px);
}

.work-carousel__viewport {
  overflow: hidden;
  width: 100%;
}

.work-carousel__track {
  display: flex;
  gap: 2px;
  will-change: transform;
  user-select: none;
}

/* Override nth-child gradient fallbacks for carousel cards */
.work-carousel__track .work-card .work-card__bg {
  background: var(--black);
}

.work-carousel__card {
  flex: 0 0 auto;
  height: clamp(360px, 60vh, 660px);
  aspect-ratio: 4 / 5;
  width: auto;
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.work-carousel__brand {
  position: absolute;
  bottom: 16px;
  right: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  opacity: 1;
  transition: opacity 0.3s ease;
  z-index: 2;
  pointer-events: none;
}

.work-carousel__card:hover .work-carousel__brand { opacity: 0; }

.work-carousel__controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-bottom: clamp(17px, 2.45vw, 28px);
}

.work-carousel__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.2);
  background: transparent;
  color: var(--black);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  font-family: inherit;
  line-height: 1;
  -webkit-appearance: none;
}

.work-carousel__arrow:hover {
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.5);
  transform: scale(1.06);
}

/* =============================================
   SERVICES SECTION
   ============================================= */

.services {
  background: var(--black);
  color: var(--white);
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}

.services .section-label { color: var(--gray-600); }
.services .section-label::before { background: var(--gray-600); }
.services .section-title { color: var(--white); }
.services .section-title em { color: var(--gray-400); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.service-item {
  padding: 40px 36px 40px 0;
  border-right: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}

.service-item:nth-child(3n) { border-right: none; }

.service-item:hover { background: rgba(255,255,255,0.03); }

.service-item__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray-600);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.service-item__title {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.1;
}

.service-item__desc {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
  color: var(--gray-600);
}

.service-item__arrow {
  position: absolute;
  bottom: 32px; right: 28px;
  font-size: 20px;
  color: var(--gray-600);
  transition: transform 0.3s var(--ease-out), color 0.3s ease;
}

.service-item:hover .service-item__arrow {
  transform: translate(4px, -4px);
  color: var(--white);
}

/* =============================================
   WHY UV9
   ============================================= */

.why {
  background: var(--off-white);
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.why-card {
  background: var(--white);
  padding: 48px 40px;
  border: 1px solid var(--gray-100);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
  will-change: transform;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.why-card__num {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 800;
  color: var(--gray-100);
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -0.04em;
}

.why-card__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}

.why-card__desc {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.9;
  color: var(--gray-600);
}

/* =============================================
   FOOTER
   ============================================= */

.footer {
  background: var(--black);
  color: var(--white);
  padding-block: 80px 40px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 40px;
}

.footer__logo img {
  height: 40px;
  width: auto;
  filter: invert(1);
  margin-bottom: 20px;
}

.footer__tagline {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
  color: var(--gray-600);
  max-width: 280px;
}

.footer__col-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 24px;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-400);
  transition: color 0.2s ease;
}

.footer__nav-link:hover { color: var(--white); }

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__contact-item {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gray-400);
  transition: color 0.2s ease;
}

.footer__contact-item:hover { color: var(--white); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray-600);
  letter-spacing: 0.05em;
}

.footer__socials {
  display: flex;
  gap: 20px;
}

.footer__social {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-600);
  transition: color 0.2s ease;
}

.footer__social:hover { color: var(--white); }

/* =============================================
   ABOUT PAGE
   ============================================= */

.page-hero {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 80px;
  border-bottom: 1px solid var(--gray-100);
}

.page-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gray-400);
}

.page-hero__title {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 900px;
}

.page-hero__title em { font-style: italic; font-weight: 300; }

/* Mission */
.mission { padding-top: clamp(40px, 5vw, 70px); padding-bottom: clamp(44px, 5vw, 64px); }

.mission__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}

.mission__statement {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.mission__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mission__body p {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.9;
  color: var(--gray-600);
}

.mission__location {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.mission__location-pin {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  border-bottom: 1px solid var(--black);
  padding-bottom: 1px;
}

/* Team */
.team { background: var(--off-white); padding-top: clamp(44px, 5vw, 64px); padding-bottom: clamp(80px, 10vw, 140px); }

.team__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.team-card {
  display: flex;
  flex-direction: column;
}

.team-card__photo {
  aspect-ratio: 3/4;
  background: var(--gray-200);
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
}

.team-card:nth-child(1) .team-card__photo { background: linear-gradient(160deg, #d4d4d4 0%, #b0b0b0 100%); }
.team-card:nth-child(2) .team-card__photo { background: linear-gradient(160deg, #c8c8c8 0%, #a8a8a8 100%); }
.team-card:nth-child(3) .team-card__photo { background: linear-gradient(160deg, #e0e0e0 0%, #bcbcbc 100%); }
.team-card:nth-child(4) .team-card__photo { background: linear-gradient(160deg, #cecece 0%, #ababab 100%); }
.team-card:nth-child(5) .team-card__photo { background: linear-gradient(160deg, #d8d8d8 0%, #b5b5b5 100%); }

.team-card__chair {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 60%;
  opacity: 0.12;
}

.team-card__headshot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-card__name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-card__role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 12px;
}

.team-card__bio {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.8;
  color: var(--gray-600);
}

/* Values strip */
.values {
  background: var(--black);
  padding-block: 20px;
  overflow: hidden;
}

.values__track {
  display: flex;
  gap: 32px;
  animation: marquee 25s linear infinite;
  width: max-content;
}

.values__item {
  font-family: var(--font-display);
  font-size: clamp(16px, 2.5vw, 28px);
  font-weight: 800;
  color: var(--white);
  white-space: nowrap;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 32px;
}

.values__item::after {
  content: '✦';
  font-size: 0.4em;
  color: var(--gray-600);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =============================================
   WORK WITH US PAGE
   ============================================= */

.contact-section {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: clamp(80px, 10vw, 140px);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 100px;
  align-items: start;
}

.contact__left { position: sticky; top: calc(var(--nav-h) + 40px); }

.contact__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact__label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gray-400);
}

.contact__title {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}

.contact__title em { font-style: italic; font-weight: 300; }

.contact__desc {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.9;
  color: var(--gray-600);
  margin-bottom: 48px;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact__info-item {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gray-600);
  transition: color 0.2s ease;
}

.contact__info-item a:hover { color: var(--black); }

/* Form */
.form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.form__field {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-200);
  border-collapse: collapse;
  margin: -1px -1px 0 0;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.form__field:focus-within {
  border-color: var(--black);
  z-index: 1;
}

.form__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-400);
  padding: 16px 20px 4px;
  transition: color 0.2s ease;
}

.form__field:focus-within .form__label { color: var(--black); }

.form__input,
.form__select,
.form__textarea {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--black);
  background: transparent;
  border: none;
  outline: none;
  padding: 4px 20px 16px;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.form__select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239a9a9a' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  padding-right: 40px;
}

.form__select option { background: var(--white); }

.form__textarea {
  resize: none;
  min-height: 160px;
  padding-top: 8px;
}

.form__field--full { grid-column: 1 / -1; }
.form__field--full.form__row { display: block; }

.form__submit-row {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.form__note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray-400);
  line-height: 1.6;
}

.btn--submit {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
  padding: 16px 40px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
  flex-shrink: 0;
}

.btn--submit:hover {
  background: var(--white);
  color: var(--black);
}

.form__success {
  display: none;
  text-align: center;
  padding: 80px 40px;
  border: 1px solid var(--gray-200);
}

.form__success.visible { display: block; }

.form__success-icon {
  font-size: 40px;
  margin-bottom: 20px;
}

.form__success-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.form__success-text {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.8;
}

/* =============================================
   PAGE TRANSITIONS / ANIMATIONS
   ============================================= */

.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  will-change: opacity, transform;
}
.fade-up.visible { will-change: auto; }

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1100px) {
  .team__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav__mobile { display: flex; }

  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__eyebrow { justify-content: center; }
  .hero__sub { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__visual { display: none; }

  .work__grid { grid-template-columns: repeat(2, 1fr); }

  .services__grid { grid-template-columns: 1fr 1fr; }
  .service-item:nth-child(3n) { border-right: 1px solid rgba(255,255,255,0.08); }
  .service-item:nth-child(2n) { border-right: none; }

  .why__grid { grid-template-columns: 1fr; }

  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer__logo { grid-column: 1 / -1; }

  .mission__inner { grid-template-columns: 1fr; gap: 40px; }

  .contact__inner { grid-template-columns: 1fr; gap: 60px; }
  .contact__left { position: static; }

  .team__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .work__grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .service-item { border-right: none !important; }
  .footer__top { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: 1fr 1fr; }
}

/* =============================================
   MOBILE-ONLY — Homepage overrides (≤600px)
   Zero impact on desktop.
   ============================================= */
@media (max-width: 600px) {

  /* --- "What we've been up to:" — single line, tighter spacing --- */
  .work {
    padding-top: 20px;
  }
  .work__header {
    margin-bottom: 16px;
  }
  .work__header .section-title {
    font-size: clamp(27px, 7.8vw, 34px);
  }
  .work-carousel {
    margin-top: 14px;
  }

  /* --- Carousel cards: 20% smaller so adjacent cards peek in --- */
  .work-carousel__card {
    height: clamp(272px, 46vh, 480px);
  }

  /* --- Carousel controls: minimal spacing --- */
  .work-carousel__controls {
    padding-bottom: 0;
    margin-top: 14px;
  }

  /* --- Carousel image quality fix ---
       Remove nested compositor layer on bg divs — hover scale never fires
       on touch, so will-change: transform only wastes GPU memory and causes
       the browser to rasterize images at lower quality inside the moving track. */
  .work-card__bg {
    will-change: auto;
  }

  /* --- Services: accordion rows --- */
  .services__grid {
    display: block;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .service-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 18px 44px 18px 0;
    gap: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    border-right: none !important;
    position: relative;
    cursor: pointer;
    /* disable the desktop hover lift */
    transition: background 0.2s ease;
  }
  .service-item:hover {
    transform: none;
    box-shadow: none;
  }
  .service-item__num {
    flex: 0 0 auto;
    margin-bottom: 0;
    margin-right: 12px;
  }
  .service-item__title {
    flex: 1 1 0;
    font-size: 17px;
    margin-bottom: 0;
    line-height: 1.3;
  }
  /* Description hidden by default; expands on .is-open */
  .service-item__desc {
    flex: 0 0 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.38s ease, opacity 0.28s ease, padding-top 0.38s ease;
    padding-top: 0;
    margin-top: 0;
  }
  .service-item.is-open .service-item__desc {
    max-height: 180px;
    opacity: 1;
    padding-top: 12px;
  }
  /* Arrow: anchor to right-center of the row */
  .service-item__arrow {
    position: absolute;
    top: 20px;
    right: 0;
    bottom: auto;
    transform: none;
    font-size: 18px;
    color: var(--gray-600);
    transition: color 0.2s ease;
  }
  .service-item.is-open .service-item__arrow {
    color: var(--white);
  }
  .service-item:hover .service-item__arrow {
    transform: none;
  }

  /* --- Hero tags: hidden on mobile across all campaign pages --- */
  .cp-hero__label { display: none; }

  /* --- Models list: wrap instead of scroll --- */
  .cp-models__list {
    flex-wrap: wrap;
    justify-content: flex-start;
    overflow-x: visible;
    gap: 8px 28px;
  }
  .cp-models__name {
    white-space: normal;
  }

  /* --- Why cards: accordion rows --- */
  .why__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .why-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 20px 0;
    gap: 0;
    cursor: pointer;
    border: none;
    border-bottom: 1px solid var(--gray-200) !important;
    overflow: visible;
  }
  .why-card:first-child {
    border-top: 1px solid var(--gray-200) !important;
  }
  .why-card:hover {
    transform: none;
    box-shadow: none;
  }
  .why-card__num {
    flex: 0 0 44px;
    font-size: 26px;
    margin-bottom: 0;
    margin-right: 0;
    line-height: 1;
  }
  .why-card__title {
    flex: 1 1 0;
    font-size: 17px;
    margin-bottom: 0;
    line-height: 1.3;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  /* +/− expand indicator */
  .why-card__title::after {
    content: '+';
    font-size: 22px;
    font-weight: 300;
    color: var(--gray-400);
    margin-left: 12px;
    margin-right: 12px;
    flex-shrink: 0;
    transition: color 0.2s ease;
  }
  .why-card.is-open .why-card__title::after {
    content: '−';
    color: var(--black);
  }
  /* Description hidden by default */
  .why-card__desc {
    flex: 0 0 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.38s ease, opacity 0.28s ease, padding-top 0.38s ease;
    padding-top: 0;
    margin-top: 0;
    padding-left: 44px; /* align with title */
  }
  .why-card.is-open .why-card__desc {
    max-height: 200px;
    opacity: 1;
    padding-top: 10px;
  }

  /* --- Campaign page: keep both nav buttons on one row --- */
  .cp-credits .cp-credits__nav {
    flex-wrap: nowrap;
    gap: 10px;
  }
  .cp-credits .cp-credits__nav .btn {
    flex: 1;
    justify-content: center;
    font-size: 10px;
    padding: 12px 10px;
    min-width: 0;
    white-space: nowrap;
  }
}
