/* ============================================================
   RAS CINEMATIC TEAM — Design System & Stylesheet
   Version: 1.0 | May 2026
   ============================================================ */

/* ── CUSTOM PROPERTIES ─────────────────────────────────────── */
:root {
  /* Colors — Light Theme */
  --c-bg:           #FAFAFA;
  --c-white:        #111111;
  --c-gray:         #5C5C5C;
  --c-gray-dim:     #9A9A9A;
  --c-gray-dark:    #F0F0F0;
  --c-border:       #E0E0E0;
  --c-accent:       #7A7A7A;
  --c-accent-dim:   rgba(100,100,100,0.10);
  --c-error:        #CC2222;
  --c-success:      #1E8A4A;
  --c-overlay:      rgba(10,10,10,0.75);

  /* Explicit light/dark for layered sections */
  --c-hero-text:    #FFFFFF;
  --c-dark-section: #111111;
  --c-dark-text:    #FFFFFF;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', system-ui, sans-serif;

  /* Type scale — desktop (Cormorant runs large, slight upsize) */
  --text-h1:   96px;
  --text-h2:   76px;
  --text-h3:   58px;
  --text-h4:   44px;
  --text-body: 16px;
  --text-sm:   14px;
  --text-xs:   11px;

  /* Spacing (8px base unit) */
  --sp-1:  8px;
  --sp-2:  16px;
  --sp-3:  24px;
  --sp-4:  32px;
  --sp-5:  40px;
  --sp-6:  48px;
  --sp-8:  64px;
  --sp-10: 80px;
  --sp-12: 96px;
  --sp-16: 128px;

  /* Layout */
  --container:     1440px;
  --pad-desktop:   64px;
  --pad-tablet:    48px;
  --pad-mobile:    20px;
  --section-gap:   64px;

  /* Transitions */
  --ease-out:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:      200ms;
  --dur-base:      400ms;
  --dur-slow:      600ms;
  --dur-reveal:    800ms;
}

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--c-bg);
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.02em;
  overflow-x: hidden;
  cursor: none; /* custom cursor takes over on desktop */
}

/* Restore cursor on touch */
@media (hover: none) {
  body { cursor: auto; }
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: none;
  cursor: none;
  font-family: inherit;
}

@media (hover: none) {
  button { cursor: pointer; }
}

ul, ol { list-style: none; }

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ── TYPOGRAPHY ────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.08;
}

/* Cormorant Garamond shines with italic pull-quotes */
.italic-display {
  font-style: italic;
  font-weight: 400;
}

/* Light editorial weight for large hero text */
.display-light {
  font-weight: 300;
  letter-spacing: 0.03em;
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); }

.text-body  { font-size: var(--text-body); }
.text-sm    { font-size: var(--text-sm); }
.text-xs    { font-size: var(--text-xs); }
.text-gray  { color: var(--c-gray); }
.text-dim   { color: var(--c-gray-dim); }
.text-upper { text-transform: uppercase; letter-spacing: 0.15em; }
.text-center{ text-align: center; }

/* ── CONTAINER & GRID ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-desktop);
  padding-right: var(--pad-desktop);
}

.section {
  padding-top: var(--sp-16);
  padding-bottom: var(--sp-16);
}

.section--tight {
  padding-top: var(--sp-8);
  padding-bottom: var(--sp-8);
}

/* ── DIVIDER ────────────────────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--c-border);
}

/* ── CUSTOM CURSOR ─────────────────────────────────────────── */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border: 1px solid #555555;   /* visible on white bg */
  border-radius: 50%;
  background: transparent;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.7;
  transform: translate(-50%, -50%);
  transition: width 200ms var(--ease-out),
              height 200ms var(--ease-out),
              background 200ms var(--ease-out),
              opacity 200ms var(--ease-out),
              border-width 200ms var(--ease-out);
  will-change: transform;
}

.cursor--image {
  width: 24px;
  height: 24px;
  background: rgba(192,192,192,0.2);
}

.cursor--button {
  width: 28px;
  height: 28px;
  border-width: 2px;
}

.cursor--text {
  width: 6px;
  height: 6px;
  opacity: 0.4;
}

/* Hide cursor on mobile */
@media (hover: none), (max-width: 640px) {
  .cursor { display: none; }
}

/* ── NAVIGATION ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--sp-3) var(--pad-desktop);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 400ms var(--ease-inout),
              padding 300ms var(--ease-inout);
}

.nav--scrolled {
  background: rgba(250, 250, 250, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding-top: var(--sp-2);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--c-border);
}

/* Inner pages: nav sits over white background — show immediately */
.nav--on-light {
  background: rgba(250, 250, 250, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-border);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-white);
}

.nav__logo span {
  color: var(--c-accent);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.nav__link {
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-gray);
  transition: color var(--dur-fast) var(--ease-inout);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--c-white);
  transition: width var(--dur-base) var(--ease-out);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--c-white);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  width: 100%;
}

.nav__cta {
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-white);
  border: 1px solid var(--c-white);
  padding: 10px 24px;
  transition: background var(--dur-fast) var(--ease-inout),
              color var(--dur-fast) var(--ease-inout);
}

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

/* Hero nav — force white text over dark image */
.hero ~ nav .nav__link,
.hero-nav .nav__link { color: rgba(255,255,255,0.7); }
.hero-nav .nav__logo  { color: #FFF; }
.hero-nav .nav__cta   { border-color: rgba(255,255,255,0.5); color: #FFF; }
.hero-nav .nav__hamburger span { background: #FFFFFF; }   /* white bars on dark hero */

/* Once scrolled, hero-nav reverts to dark text on white bg */
.hero-nav.nav--scrolled .nav__link  { color: var(--c-gray); }
.hero-nav.nav--scrolled .nav__logo  { color: var(--c-white); }
.hero-nav.nav--scrolled .nav__cta   { border-color: var(--c-white); color: var(--c-white); }
.hero-nav.nav--scrolled .nav__hamburger span { background: var(--c-white); }

/* Mobile nav */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
}

.nav__hamburger span {
  display: block;
  height: 1px;
  background: var(--c-white);   /* dark on light bg */
  transition: transform 300ms var(--ease-out),
              opacity 300ms var(--ease-out),
              width 300ms var(--ease-out);
}

.nav__hamburger span:nth-child(2) { width: 70%; }

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

.nav__mobile {
  position: fixed;
  inset: 0;
  background: #111111;   /* keep dark for full-screen menu drama */
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--sp-5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms var(--ease-out);
}

.nav__mobile.is-open {
  opacity: 1;
  pointer-events: all;
}

.nav__mobile .nav__link {
  font-family: var(--font-display);
  font-size: 42px;
  text-transform: none;
  letter-spacing: 0.02em;
  color: #FFFFFF;   /* always white — menu bg is dark */
}

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  height: 56px;
  padding: 0 40px;
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid var(--c-white);
  color: var(--c-white);
  transition: background var(--dur-fast) var(--ease-inout),
              transform var(--dur-fast) var(--ease-inout),
              color var(--dur-fast) var(--ease-inout),
              border-color var(--dur-fast) var(--ease-inout);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn:hover {
  background: var(--c-white);
  color: var(--c-bg);
}

.btn:active { transform: scale(0.98); }

/* Solid = inverted: dark bg, white text */
.btn--solid {
  background: var(--c-white);
  color: var(--c-bg);
  border-color: var(--c-white);
}

.btn--solid:hover {
  background: transparent;
  color: var(--c-white);
}

/* Ghost white — for use on dark/hero sections */
.btn--ghost-white {
  border-color: rgba(255,255,255,0.6);
  color: #FFFFFF;
}
.btn--ghost-white:hover {
  background: rgba(255,255,255,0.12);
  color: #FFFFFF;
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--dur-fast) var(--ease-out);
}

.btn:hover svg { transform: translateX(4px); }

/* ── SECTION LABEL ─────────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--c-gray);
  margin-bottom: var(--sp-4);
}

.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--c-accent);
  flex-shrink: 0;
}

/* ── HERO ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  will-change: transform, opacity;
}

.hero__media img,
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.1) 0%,
    rgba(10,10,10,0.3) 40%,
    rgba(10,10,10,0.85) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: var(--pad-desktop);
  padding-bottom: var(--sp-12);
}

.hero__eyebrow {
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.65);   /* always white — hero sits on dark overlay */
  margin-bottom: var(--sp-3);
}

.hero__title {
  font-size: clamp(48px, 7vw, 84px);
  font-weight: 600;
  max-width: 900px;
  margin-bottom: var(--sp-4);
  color: #FFFFFF;   /* explicit white — hero bg is dark even in light theme */
}

.hero__subtitle {
  font-size: var(--text-body);
  color: rgba(255,255,255,0.72);   /* white-ish — on dark hero overlay */
  max-width: 480px;
  margin-bottom: var(--sp-6);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: var(--sp-6);
  right: var(--pad-desktop);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);   /* white at low opacity — on dark hero */
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.35);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 0.4; }
  50%       { transform: scaleY(0.5); opacity: 1; }
}

/* ── REVEAL ANIMATIONS ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-inout),
              transform var(--dur-slow) var(--ease-inout);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }
.reveal-delay-5 { transition-delay: 400ms; }

.reveal-image {
  clip-path: inset(0 100% 0 0);
  transition: clip-path var(--dur-reveal) var(--ease-spring);
}

.reveal-image.is-visible {
  clip-path: inset(0 0% 0 0);
}

/* ── PORTFOLIO GRID ────────────────────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 320px;
  gap: 2px;
}

.grid-item {
  position: relative;
  overflow: hidden;
  background: var(--c-gray-dark);
  cursor: none;
}

@media (hover: none) { .grid-item { cursor: pointer; } }

.grid-item--wide  { grid-column: span 2; }
.grid-item--tall  { grid-row:    span 2; }
.grid-item--large { grid-column: span 2; grid-row: span 2; }

.grid-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-inout);
  will-change: transform;
}

.grid-item:hover .grid-item__img {
  transform: scale(1.04);
}

.grid-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,10,0.9) 0%,
    rgba(10,10,10,0.2) 60%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 400ms var(--ease-inout);
}

.grid-item:hover .grid-item__overlay { opacity: 1; }

.grid-item__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--sp-4);
  transform: translateY(8px);
  opacity: 0;
  transition: transform 400ms var(--ease-out),
              opacity 400ms var(--ease-out);
}

.grid-item:hover .grid-item__info {
  transform: translateY(0);
  opacity: 1;
}

.grid-item__category {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-accent);
  margin-bottom: 4px;
}

.grid-item__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: #FFFFFF;   /* always white — shown over dark hover overlay */
}

.grid-item__meta {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.6);   /* white dim — over dark overlay */
  margin-top: 4px;
}

/* ── PORTFOLIO FILTERS ─────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
  border-bottom: 1px solid var(--c-border);
  padding-bottom: var(--sp-3);
}

.filter-btn {
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-gray);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--dur-fast),
              border-color var(--dur-fast);
  cursor: none;
}

@media (hover: none) { .filter-btn { cursor: pointer; } }

.filter-btn.is-active,
.filter-btn:hover {
  color: var(--c-white);
  border-color: var(--c-accent);
}

/* ── HORIZONTAL SCROLL GALLERY ─────────────────────────────── */
.gallery-scroll {
  display: flex;
  gap: var(--sp-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: var(--sp-2);
  cursor: grab;
}

.gallery-scroll:active { cursor: grabbing; }

.gallery-scroll::-webkit-scrollbar { display: none; }

.gallery-scroll__item {
  flex: 0 0 auto;
  width: 540px;
  aspect-ratio: 4/3;
  scroll-snap-align: start;
  overflow: hidden;
  background: var(--c-gray-dark);
}

.gallery-scroll__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-inout);
}

.gallery-scroll__item:hover img { transform: scale(1.03); }

/* ── SERVICES ──────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--c-border);
}

.service-card {
  background: var(--c-bg);
  padding: var(--sp-8) var(--sp-6);
  transition: background var(--dur-base) var(--ease-inout),
              box-shadow var(--dur-base) var(--ease-inout);
}

.service-card:hover {
  background: #FFFFFF;
  box-shadow: 0 2px 24px rgba(0,0,0,0.06);
}

.service-card__num {
  font-size: 64px;
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--c-border);
  line-height: 1;
  margin-bottom: var(--sp-4);
  transition: color var(--dur-base) var(--ease-inout);
}

.service-card:hover .service-card__num { color: var(--c-gray-dim); }

.service-card__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  margin-bottom: var(--sp-2);
}

.service-card__body {
  font-size: var(--text-sm);
  color: var(--c-gray);
  line-height: 1.75;
  margin-bottom: var(--sp-4);
}

.service-card__link {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap var(--dur-fast) var(--ease-out);
}

.service-card:hover .service-card__link { gap: 14px; }

.service-card__link svg {
  width: 14px;
  height: 14px;
}

/* ── TESTIMONIAL ────────────────────────────────────────────── */
.testimonial {
  padding: var(--sp-16) var(--pad-desktop);
  background: #111111;   /* stay dark — makes quote pop against white pages */
  text-align: center;
}

.testimonial .testimonial__quote,
.testimonial .testimonial__author {
  color: #FFFFFF;
}

.testimonial .testimonial__author strong {
  color: #FFFFFF;
}

.testimonial__quote {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 400;
  font-style: italic;
  max-width: 900px;
  margin: 0 auto var(--sp-6);
  line-height: 1.25;
  color: var(--c-white);
  letter-spacing: 0.01em;
}

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

.testimonial__author {
  font-size: var(--text-sm);
  color: var(--c-gray);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.testimonial__author strong {
  color: var(--c-white);
  font-weight: 600;
}

/* ── ABOUT / SPLIT ──────────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}

.split--reverse .split__media { order: 2; }
.split--reverse .split__text  { order: 1; }

.split__media {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--c-gray-dark);
}

.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split__text {
  padding: var(--sp-4);
}

.split__text h2 {
  font-size: clamp(40px, 4vw, 64px);
  margin-bottom: var(--sp-4);
}

.split__text p {
  font-size: var(--text-body);
  color: var(--c-gray);
  line-height: 1.8;
  margin-bottom: var(--sp-4);
}

/* ── STATS ──────────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--c-border);
}

.stat-item {
  background: var(--c-bg);
  padding: var(--sp-6) var(--sp-4);
  text-align: center;
}

.stat-item__num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  color: var(--c-white);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-gray);
}

/* ── CONTACT FORM ───────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--sp-12);
  align-items: start;
}

.form-group {
  margin-bottom: var(--sp-4);
}

.form-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-gray);
  margin-bottom: 10px;
}

.form-control {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid var(--c-border);
  color: var(--c-white);
  padding: 14px 16px;
  font-size: var(--text-sm);
  transition: border-color var(--dur-fast) var(--ease-inout),
              box-shadow var(--dur-fast) var(--ease-inout);
  outline: none;
  -webkit-appearance: none;
}

.form-control:focus {
  border-color: var(--c-white);
  box-shadow: 0 0 0 3px rgba(17,17,17,0.08);
}

.form-control::placeholder {
  color: var(--c-gray-dim);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

select.form-control {
  cursor: pointer;
}

.form-control.is-error {
  border-color: var(--c-error);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--c-error);
  margin-top: 6px;
  display: none;
}

.form-error.is-visible { display: block; }

.form-success {
  display: none;
  text-align: center;
  padding: var(--sp-8);
  border: 1px solid var(--c-success);
  color: var(--c-success);
}

.form-success.is-visible { display: block; }

/* ── PROCESS TIMELINE ───────────────────────────────────────── */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--c-border);
}

.timeline-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--sp-4);
  padding-bottom: var(--sp-6);
  position: relative;
}

.timeline-item__dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--c-accent);
  background: var(--c-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--c-accent);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.timeline-item__content {
  padding-top: 8px;
}

.timeline-item__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline-item__body {
  font-size: var(--text-sm);
  color: var(--c-gray);
  line-height: 1.75;
}

/* ── FAQ ACCORDION ──────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--c-border);
}

.faq-item:first-child { border-top: 1px solid var(--c-border); }

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--c-white);
  text-align: left;
  cursor: none;
  transition: color var(--dur-fast);
}

@media (hover: none) { .faq-trigger { cursor: pointer; } }

.faq-trigger:hover { color: var(--c-accent); }

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--c-accent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-icon::before { width: 14px; height: 1px; }
.faq-icon::after  { width: 1px; height: 14px; transition: transform 300ms var(--ease-out); }

.faq-item.is-open .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 400ms var(--ease-out),
              padding 400ms var(--ease-out);
}

.faq-body p {
  font-size: var(--text-sm);
  color: var(--c-gray);
  line-height: 1.8;
  padding-bottom: var(--sp-4);
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--c-border);
  padding: var(--sp-8) var(--pad-desktop);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--sp-8);
  margin-bottom: var(--sp-8);
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--c-gray);
  line-height: 1.7;
  margin-bottom: var(--sp-4);
  max-width: 280px;
}

.footer__social {
  display: flex;
  gap: var(--sp-3);
}

.footer__social a {
  font-size: var(--text-xs);
  color: var(--c-gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color var(--dur-fast);
}

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

.footer__col-title {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-accent);
  margin-bottom: var(--sp-3);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.footer__links a {
  font-size: var(--text-sm);
  color: var(--c-gray);
  transition: color var(--dur-fast);
}

.footer__links a:hover { color: var(--c-white); }

.footer__bottom {
  border-top: 1px solid var(--c-border);
  padding-top: var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--c-gray-dim);
}

/* ── CASE STUDY ─────────────────────────────────────────────── */
.case-study {
  max-width: 760px;
}

.case-study h3 {
  font-size: 28px;
  margin-bottom: var(--sp-2);
}

.case-study p {
  font-size: var(--text-body);
  color: var(--c-gray);
  line-height: 1.85;
  margin-bottom: var(--sp-4);
}

.case-study-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--c-border);
  margin-bottom: var(--sp-8);
}

.case-study-meta__item {
  background: var(--c-bg);
  padding: var(--sp-4);
}

.case-study-meta__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-gray);
  margin-bottom: 6px;
}

.case-study-meta__value {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--c-white);
}

/* ── RELATED PROJECTS ───────────────────────────────────────── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
}

.related-card {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  background: var(--c-gray-dark);
}

.related-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-inout);
}

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

.related-card__label {
  position: absolute;
  bottom: var(--sp-3);
  left: var(--sp-3);
  right: var(--sp-3);
}

.related-card__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: #FFFFFF;   /* always white — shown over photo */
}

/* ── CTA STRIP ──────────────────────────────────────────────── */
.cta-strip {
  background: var(--c-gray-dark);
  padding: var(--sp-16) var(--pad-desktop);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
}

.cta-strip h2 {
  font-size: clamp(36px, 4vw, 56px);
  max-width: 700px;
}

/* ── PAGE HERO (inner pages) ────────────────────────────────── */
.page-hero {
  padding-top: 160px;
  padding-bottom: var(--sp-12);
  padding-left: var(--pad-desktop);
  padding-right: var(--pad-desktop);
  border-bottom: 1px solid var(--c-border);
}

.page-hero__eyebrow {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--c-gray);
  margin-bottom: var(--sp-3);
}

.page-hero__title {
  font-size: clamp(48px, 6vw, 84px);
  max-width: 900px;
  margin-bottom: var(--sp-4);
}

.page-hero__subtitle {
  font-size: var(--text-body);
  color: var(--c-gray);
  max-width: 540px;
  line-height: 1.75;
}

/* ── AWARDS / CREDENTIALS ───────────────────────────────────── */
.awards-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--c-border);
}

.award-item {
  background: var(--c-bg);
  padding: var(--sp-4) var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.award-item__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}

.award-item__meta {
  font-size: var(--text-xs);
  color: var(--c-gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: right;
}

/* ── TEAM CARD ──────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.team-card__photo {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--c-gray-dark);
  margin-bottom: var(--sp-3);
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-inout);
}

.team-card:hover .team-card__photo img { transform: scale(1.04); }

.team-card__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 4px;
}

.team-card__role {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-accent);
  margin-bottom: var(--sp-2);
}

.team-card__bio {
  font-size: var(--text-sm);
  color: var(--c-gray);
  line-height: 1.75;
}

/* ── MARQUEE ────────────────────────────────────────────────── */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: var(--sp-3) 0;
  background: var(--c-gray-dark);
}

.marquee__track {
  display: flex;
  gap: var(--sp-6);
  animation: marqueeScroll 30s linear infinite;
  white-space: nowrap;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

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

.marquee__item {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--c-gray);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.marquee__item::after {
  content: '·';
  color: var(--c-accent);
}

/* ── LIGHTBOX ───────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.97);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms var(--ease-inout);
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

.lightbox__close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255,255,255,0.5);   /* lightbox bg is always dark */
  transition: color var(--dur-fast);
  font-size: 28px;
}

.lightbox__close:hover { color: #FFFFFF; }   /* bright white on dark lightbox */

.lightbox__img-wrap {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img-wrap img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);   /* lightbox is dark — use white borders */
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: color var(--dur-fast),
              border-color var(--dur-fast);
}

.lightbox__nav:hover {
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.7);
}

.lightbox__nav--prev { left: var(--sp-4); }
.lightbox__nav--next { right: var(--sp-4); }

/* ── NEWSLETTER ─────────────────────────────────────────────── */
.newsletter {
  background: var(--c-gray-dark);
  padding: var(--sp-12) var(--pad-desktop);
  text-align: center;
}

.newsletter h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: var(--sp-2);
}

.newsletter p {
  color: var(--c-gray);
  margin-bottom: var(--sp-6);
}

.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  gap: 0;
}

.newsletter-form .form-control {
  flex: 1;
  border-right: none;
}

.newsletter-form .btn {
  flex-shrink: 0;
}

/* ── RESPONSIVE INLINE GRID OVERRIDE ────────────────────────── */
/* Collapses inline-style grids on mobile/tablet */
@media (max-width: 640px) {
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: 1fr 1.2fr"],
  [style*="grid-template-columns: 1fr 1.5fr"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 1024px) {
  [style*="grid-template-columns: 1fr 1.2fr"],
  [style*="grid-template-columns: 1fr 1.5fr"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ── UTILITY ────────────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.overflow-hidden { overflow: hidden; }

/* ── REDUCED MOTION ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .reveal-image {
    clip-path: none;
  }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════ */

/* ── TABLET (≤ 1024px) ──────────────────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --pad-desktop: var(--pad-tablet);
    --text-h1: 58px;
    --text-h2: 48px;
    --text-h3: 38px;
    --text-h4: 30px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 280px;
  }

  .grid-item--large { grid-column: span 2; }

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

  .split {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }

  .split--reverse .split__media,
  .split--reverse .split__text {
    order: unset;
  }

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

  .contact-grid { grid-template-columns: 1fr; gap: var(--sp-8); }

  .footer__inner { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }

  .cta-strip {
    flex-direction: column;
    text-align: center;
  }

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

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

  .case-study-meta { grid-template-columns: 1fr; }
}

/* ── MOBILE (≤ 640px) ───────────────────────────────────────── */
@media (max-width: 640px) {
  :root {
    --pad-desktop: var(--pad-mobile);
    --text-h1: 48px;
    --text-h2: 38px;
    --text-h3: 30px;
    --text-h4: 24px;
    --sp-16: 80px;
  }

  html { scroll-behavior: auto; } /* disable smooth scroll on mobile */

  .nav {
    padding-left: var(--pad-mobile);
    padding-right: var(--pad-mobile);
  }

  .nav__links, .nav__cta { display: none; }

  .nav__hamburger { display: flex; }

  .hero__content {
    padding-left: var(--pad-mobile);
    padding-right: var(--pad-mobile);
    padding-bottom: var(--sp-8);
  }

  .hero__scroll { display: none; }

  .portfolio-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .grid-item--wide,
  .grid-item--large,
  .grid-item--tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery-scroll__item { width: 320px; }

  .services-grid { gap: 0; }

  .service-card { padding: var(--sp-6) var(--pad-mobile); }

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

  .footer__inner { grid-template-columns: 1fr; gap: var(--sp-6); }

  .footer__bottom { flex-direction: column; gap: var(--sp-2); text-align: center; }

  .filter-bar { overflow-x: auto; scrollbar-width: none; gap: var(--sp-3); padding-bottom: var(--sp-2); }
  .filter-bar::-webkit-scrollbar { display: none; }

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

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

  .newsletter-form { flex-direction: column; }
  .newsletter-form .form-control { border-right: 1px solid var(--c-border); }

  .page-hero {
    padding-top: 120px;
    padding-left: var(--pad-mobile);
    padding-right: var(--pad-mobile);
  }

  .cta-strip {
    padding-left: var(--pad-mobile);
    padding-right: var(--pad-mobile);
  }

  /* Disable parallax and complex animations on mobile */
  .hero__media { transform: none !important; }
  .reveal { opacity: 1; transform: none; }
  .reveal-image { clip-path: none; }
}

/* ── FOCUS STYLES (keyboard nav) ────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--c-white);
  outline-offset: 3px;
}

/* Show cursor for keyboard-only focus */
:focus:not(:focus-visible) { outline: none; }

/* ══════════════════════════════════════════════════════════
   PHOTO ENTRY ANIMATIONS (scroll-triggered reveals)
   ══════════════════════════════════════════════════════════ */

/* ── Team card photos — clip-path wipe from bottom ─────────── */
.team-card__photo {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1s cubic-bezier(0.76, 0, 0.24, 1);
}

.team-card__photo.img-entered {
  clip-path: inset(0 0 0% 0);
}

/* ── Related project cards — clip-path wipe from bottom ────── */
.related-card {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.95s cubic-bezier(0.76, 0, 0.24, 1);
}

.related-card.img-entered {
  clip-path: inset(0 0 0% 0);
}

/* ── Disable on mobile and reduced motion ───────────────────── */
@media (max-width: 640px) {
  .team-card__photo,
  .related-card {
    clip-path: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-card__photo,
  .related-card {
    clip-path: none !important;
  }
}
