/* ==========================================================================
   John Bentley Architectural Photography
   Custom CSS — extends Tailwind with brand tokens, motion, and effects
   ========================================================================== */

/* Self-hosted fonts ------------------------------------------------------ */
/* font-display: swap shows the fallback instantly while the WOFF2 loads,
   so visitors never see blank text. */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url('../fonts/montserrat-latin-200.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/montserrat-latin-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/montserrat-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/montserrat-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/montserrat-latin-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/inter-latin-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-latin-500.woff2') format('woff2');
}

:root {
  --bg-0: #0a0a0b;          /* near-black canvas */
  --bg-1: #111114;          /* elevated surface */
  --bg-2: #16171b;          /* card surface */
  --bg-3: #1c1e23;          /* hover surface */
  --line:  rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.16);
  --text-0: #f4f5f7;        /* crisp white */
  --text-1: #b6bac2;        /* muted */
  --text-2: #7a7e86;        /* subtle */
  --text-3: #4a4d54;        /* faint */
  --silver: #c8ccd3;        /* cool silver accent */
  --silver-bright: #e7ebf1;
  --silver-dim: #8a8f97;

  --font-display: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --ease-out: cubic-bezier(.22,.61,.36,1);
  --ease-in-out: cubic-bezier(.65,.05,.36,1);
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-0);
  color: var(--text-0);
  font-family: var(--font-body);
  font-weight: 300;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

/* Typography ------------------------------------------------------------- */
.font-display { font-family: var(--font-display); }

.display-xl {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(2.6rem, 6.5vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.display-lg {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(2rem, 4.4vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.display-md {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--silver);
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--silver);
  vertical-align: middle;
  margin-right: 14px;
  transform: translateY(-2px);
}
.body-lg { font-size: 1.075rem; line-height: 1.7; color: var(--text-1); font-weight: 300; }
.body    { font-size: 0.975rem; line-height: 1.7; color: var(--text-1); font-weight: 300; }
.body-sm { font-size: 0.875rem; line-height: 1.65; color: var(--text-1); font-weight: 300; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 16px 28px;
  border: 1px solid var(--line-strong);
  color: var(--text-0);
  background: transparent;
  transition: all 0.45s var(--ease-out);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--silver);
  transform: translateY(100%);
  transition: transform 0.45s var(--ease-out);
  z-index: 0;
}
.btn > * { position: relative; z-index: 1; transition: color 0.35s var(--ease-out); }
.btn:hover { border-color: var(--silver); }
.btn:hover::after { transform: translateY(0); }
.btn:hover > * { color: var(--bg-0); }

.btn-primary {
  background: var(--silver-bright);
  color: var(--bg-0);
  border-color: var(--silver-bright);
}
.btn-primary::after { background: var(--bg-0); }
.btn-primary:hover { border-color: var(--silver-bright); }
.btn-primary:hover > * { color: var(--silver-bright); }

.btn .arrow {
  width: 14px; height: 1px; background: currentColor; position: relative;
  transition: width 0.35s var(--ease-out);
}
.btn .arrow::after {
  content: ''; position: absolute; right: 0; top: -3px;
  width: 6px; height: 6px; border-top: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn:hover .arrow { width: 22px; }

/* Header / nav ----------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 24px 40px;
  background: rgba(17, 17, 19, 0.45);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  border-bottom: 1px solid transparent;
  transition: background 0.45s var(--ease-out), border-color 0.45s var(--ease-out), padding 0.3s var(--ease-out);
}
.site-header.scrolled {
  background: rgba(10, 10, 11, 0.88);
  border-bottom: 1px solid var(--line);
  padding: 16px 40px;
}
.nav-link {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-0);
  position: relative;
  padding: 8px 0;
  transition: color 0.3s var(--ease-out);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0;
  width: 0; height: 1px;
  background: var(--silver);
  transition: width 0.35s var(--ease-out);
}
.nav-link:hover, .nav-link.active { color: var(--silver-bright); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(17,17,20,0.96);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  padding: 14px 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-out);
}
.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 10px 22px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-1);
  transition: all 0.25s var(--ease-out);
}
.nav-dropdown a:hover { color: var(--silver-bright); background: rgba(255,255,255,0.03); padding-left: 28px; }

/* Mobile nav ------------------------------------------------------------- */
.menu-toggle {
  width: 28px; height: 18px; position: relative; cursor: pointer;
  display: none;
}
.menu-toggle span {
  display: block; position: absolute; left: 0; right: 0;
  height: 1px; background: var(--text-0);
  transition: all 0.35s var(--ease-out);
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 50%; }
.menu-toggle span:nth-child(3) { bottom: 0; }
.menu-toggle.open span:nth-child(1) { top: 50%; transform: rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { bottom: 50%; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0;
  background: rgba(10,10,11,0.98);
  backdrop-filter: blur(14px);
  z-index: 90;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 24px;
  opacity: 0; visibility: hidden;
  transition: all 0.4s var(--ease-out);
}
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-nav a {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  letter-spacing: 0.05em;
  color: var(--text-0);
  transition: color 0.3s var(--ease-out);
}
.mobile-nav a:hover { color: var(--silver); }
.mobile-nav .submenu { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.mobile-nav .submenu a { font-size: 1rem; color: var(--text-1); letter-spacing: 0.15em; text-transform: uppercase; font-weight: 400; }

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .site-header { padding: 18px 22px; }
  .site-header.scrolled { padding: 14px 22px; }
}

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex; align-items: flex-end;
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.6s var(--ease-out), transform 8s linear;
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1.0);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,11,0.55) 0%, rgba(10,10,11,0.2) 30%, rgba(10,10,11,0.4) 65%, rgba(10,10,11,0.95) 100%);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
  padding: 0 40px 80px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}
@media (max-width: 768px) {
  .hero-content { padding: 0 22px 56px; }
}

.hero-pager {
  position: absolute;
  bottom: 32px; right: 40px;
  z-index: 3;
  display: flex; gap: 14px;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  color: var(--text-1);
}
.hero-pager-dots { display: flex; gap: 8px; }
.hero-pager-dot {
  width: 24px; height: 1px; background: rgba(255,255,255,0.25);
  cursor: pointer; transition: background 0.35s var(--ease-out);
}
.hero-pager-dot.active { background: var(--silver-bright); }
@media (max-width: 768px) {
  .hero-pager { right: 22px; bottom: 22px; }
}

/* Sections --------------------------------------------------------------- */
.section { padding: 120px 40px; position: relative; }
.section-lg { padding: 160px 40px; }
.section-sm { padding: 80px 40px; }
@media (max-width: 768px) {
  .section { padding: 80px 22px; }
  .section-lg { padding: 100px 22px; }
  .section-sm { padding: 56px 22px; }
}
.container { max-width: 1400px; margin: 0 auto; }
.container-md { max-width: 1100px; margin: 0 auto; }
.container-sm { max-width: 800px; margin: 0 auto; }

/* Section divider line */
.divider {
  height: 1px; background: var(--line); width: 100%;
}

/* Cards / portfolio tiles ------------------------------------------------ */
.portfolio-tile {
  position: relative; display: block; overflow: hidden;
  background: var(--bg-2);
  aspect-ratio: 4/5;
}
.portfolio-tile-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 1.4s var(--ease-out), filter 0.6s var(--ease-out);
  filter: brightness(0.78) saturate(0.95);
}
.portfolio-tile:hover .portfolio-tile-img {
  transform: scale(1.06);
  filter: brightness(0.95) saturate(1.0);
}
.portfolio-tile-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,11,0.1) 30%, rgba(10,10,11,0.85) 100%);
  z-index: 1;
}
.portfolio-tile-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 36px;
  z-index: 2;
  transform: translateY(8px);
  transition: transform 0.5s var(--ease-out);
}
.portfolio-tile:hover .portfolio-tile-content { transform: translateY(0); }
.portfolio-tile-num {
  font-family: var(--font-display);
  font-size: 0.7rem; letter-spacing: 0.32em;
  color: var(--silver); margin-bottom: 12px;
}
.portfolio-tile-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.7rem;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  color: var(--text-0);
}
.portfolio-tile-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--silver);
  opacity: 0; transform: translateX(-8px);
  transition: all 0.4s var(--ease-out);
}
.portfolio-tile:hover .portfolio-tile-link { opacity: 1; transform: translateX(0); }

@media (max-width: 768px) {
  .portfolio-tile-content { padding: 24px; }
  .portfolio-tile-title { font-size: 1.35rem; }
  .portfolio-tile-link { opacity: 1; transform: translateX(0); }
}

/* Client banner ---------------------------------------------------------- */
.client-banner {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 40px;
  background: var(--bg-1);
}
.client-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 36px; flex-wrap: wrap;
  max-width: 1400px; margin: 0 auto;
}
.client-row .label {
  font-family: var(--font-display);
  font-size: 0.72rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--silver);
  flex-shrink: 0;
}
.client-wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color 0.4s var(--ease-out);
  white-space: nowrap;
}
.client-wordmark:hover { color: var(--text-0); }
@media (max-width: 768px) {
  .client-row { justify-content: center; gap: 24px 32px; }
  .client-row .label { width: 100%; text-align: center; }
}

/* Service cards ---------------------------------------------------------- */
.service-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  padding: 42px 36px;
  position: relative;
  transition: all 0.5s var(--ease-out);
  height: 100%;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 1px;
  background: var(--silver);
  transition: width 0.6s var(--ease-out);
}
.service-card:hover { background: var(--bg-2); border-color: var(--line-strong); transform: translateY(-2px); }
.service-card:hover::before { width: 100%; }
.service-num {
  position: absolute;
  top: 28px; right: 32px;
  font-family: var(--font-display);
  font-weight: 200;
  font-size: 3rem;
  color: var(--text-3);
  line-height: 1;
}
.service-icon {
  width: 36px; height: 36px;
  color: var(--silver);
  margin-bottom: 28px;
}
.service-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.5rem;
  letter-spacing: 0;
  margin-bottom: 16px;
  color: var(--text-0);
}
.service-list {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.service-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.875rem;
  color: var(--text-1);
  line-height: 1.9;
  font-weight: 300;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 14px;
  width: 12px; height: 1px;
  background: var(--silver);
}

/* Process steps ---------------------------------------------------------- */
.process-step {
  position: relative;
  padding: 32px 28px 32px 0;
}
.process-step + .process-step {
  border-left: 1px solid var(--line);
  padding-left: 36px;
}
.process-num {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: 3rem;
  color: var(--text-3);
  line-height: 1;
  margin-bottom: 18px;
}
.process-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.125rem;
  margin-bottom: 12px;
  color: var(--text-0);
  letter-spacing: 0.02em;
}
@media (max-width: 900px) {
  .process-step + .process-step { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 32px; }
}

/* Gallery grid ----------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.gallery-grid > a,
.gallery-grid > .gallery-tile {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--bg-2);
  cursor: zoom-in;
}
/* Aspect ratios — landscape (3:2) and portrait (2:3) */
.gallery-grid > a.landscape,
.gallery-grid > .gallery-tile.landscape { aspect-ratio: 3 / 2; }
.gallery-grid > a.portrait,
.gallery-grid > .gallery-tile.portrait  { aspect-ratio: 2 / 3; }
/* Legacy support for the original 3-col gallery markup */
.gallery-grid > a.tall { aspect-ratio: 3/4; }
.gallery-grid > a.wide { grid-column: span 2; aspect-ratio: 16/9; }
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 1.4s var(--ease-out), filter 0.6s var(--ease-out);
  filter: brightness(0.82) saturate(0.95);
}
.gallery-grid > a:hover img { transform: scale(1.05); filter: brightness(1.0) saturate(1); }
.gallery-grid > a::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10,10,11,0.45) 100%);
  opacity: 0; transition: opacity 0.4s var(--ease-out);
}
.gallery-grid > a:hover::after { opacity: 1; }
@media (max-width: 540px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 6px; }
  .gallery-grid > a.wide { grid-column: span 1; aspect-ratio: 3/2; }
}

/* Detail gallery — 2-col landscapes on top, 4-col smaller portraits below */
.gallery-grid.grid-detail-landscape {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 8px;
}
.gallery-grid.grid-detail-portraits {
  grid-template-columns: repeat(4, 1fr);
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .gallery-grid.grid-detail-portraits { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .gallery-grid.grid-detail-landscape,
  .gallery-grid.grid-detail-portraits { grid-template-columns: 1fr; }
}

/* Lightbox --------------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8,8,9,0.97);
  display: none; align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 24px; right: 24px;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-0); cursor: pointer;
  transition: all 0.3s var(--ease-out);
}
.lightbox-close:hover { background: var(--silver); color: var(--bg-0); border-color: var(--silver); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-0); cursor: pointer; background: transparent;
  transition: all 0.3s var(--ease-out);
}
.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }
.lightbox-nav:hover { background: var(--silver); color: var(--bg-0); border-color: var(--silver); }

/* About ------------------------------------------------------------------ */
.stat-num {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  color: var(--text-0);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--silver);
  margin-top: 12px;
}

/* Contact form ----------------------------------------------------------- */
.field-group { display: flex; flex-direction: column; gap: 8px; }
.field-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--silver);
}
.field-input,
.field-select,
.field-textarea {
  background: var(--bg-1);
  border: 1px solid var(--line);
  color: var(--text-0);
  padding: 16px 18px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  transition: all 0.3s var(--ease-out);
}
.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  outline: none;
  border-color: var(--silver);
  background: var(--bg-2);
}
.field-textarea { min-height: 140px; resize: vertical; font-family: var(--font-body); }
.field-input::placeholder, .field-textarea::placeholder { color: var(--text-3); }

/* Footer social row (icons under address) -------------------------------- */
.footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  color: var(--silver);
  transition: all 0.3s var(--ease-out);
}
.footer-social a:hover {
  background: var(--silver);
  color: var(--bg-0);
  border-color: var(--silver);
}

/* Contact form confirmation --------------------------------------------- */
.form-confirmation {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--silver);
  padding: 28px 56px 28px 32px;
  margin-bottom: 24px;
  animation: fc-in 0.5s var(--ease-out);
}
.form-confirmation.is-error { border-color: rgba(255, 120, 120, 0.55); }
.form-confirmation-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver-bright);
  margin-bottom: 8px;
}
.form-confirmation.is-error .form-confirmation-title { color: #ff9b9b; }
.form-confirmation-body {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-1);
}
.form-confirmation-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 28px; height: 28px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text-1);
  cursor: pointer;
  font-size: 12px;
  transition: all 0.25s var(--ease-out);
}
.form-confirmation-close:hover { background: var(--silver); color: var(--bg-0); border-color: var(--silver); }
@keyframes fc-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Footer ----------------------------------------------------------------- */
.site-footer {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  padding: 80px 40px 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  max-width: 1400px; margin: 0 auto;
}
.footer-title {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 24px;
}
.footer-link {
  display: block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-1);
  padding: 6px 0;
  transition: color 0.3s var(--ease-out);
}
.footer-link:hover { color: var(--silver-bright); }
.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1400px; margin-left: auto; margin-right: auto;
  font-size: 0.78rem;
  color: var(--text-2);
  letter-spacing: 0.05em;
}
@media (max-width: 768px) {
  .site-footer { padding: 60px 22px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
}

/* Film grain overlay ----------------------------------------------------- */
.grain {
  pointer-events: none;
  position: fixed; inset: 0;
  z-index: 999;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Vignette overlay for hero ---------------------------------------------- */
.vignette {
  pointer-events: none;
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.45) 100%);
  z-index: 1;
}

/* Reveal on scroll ------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="100"] { transition-delay: 100ms; }
.reveal[data-delay="200"] { transition-delay: 200ms; }
.reveal[data-delay="300"] { transition-delay: 300ms; }
.reveal[data-delay="400"] { transition-delay: 400ms; }
.reveal[data-delay="500"] { transition-delay: 500ms; }
.reveal[data-delay="600"] { transition-delay: 600ms; }

.reveal-img-mask {
  position: relative; overflow: hidden;
}
.reveal-img-mask::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--bg-0);
  transform-origin: right;
  transform: scaleX(1);
  transition: transform 1.4s var(--ease-in-out);
}
.reveal-img-mask.in::after { transform: scaleX(0); }

/* Page intro animation --------------------------------------------------- */
.page-load {
  position: fixed; inset: 0; z-index: 500;
  background: var(--bg-0);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.page-load .bar {
  height: 1px;
  width: 0;
  background: var(--silver);
  transition: width 0.9s var(--ease-out);
  max-width: 60vw;
}
.page-load.loaded {
  opacity: 0;
  transition: opacity 0.6s var(--ease-out) 0.4s;
}

/* Marquee for client logos (optional) ------------------------------------ */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Sub-page hero (smaller than home hero) --------------------------------- */
.page-hero {
  position: relative;
  height: 70vh;
  min-height: 480px;
  overflow: hidden;
  display: flex; align-items: flex-end;
}
.page-hero .hero-bg-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.05);
  will-change: transform;
}
.page-hero .hero-overlay {
  background: linear-gradient(180deg, rgba(10,10,11,0.55) 0%, rgba(10,10,11,0.2) 40%, rgba(10,10,11,0.92) 100%);
}
.page-hero-content {
  position: relative; z-index: 2;
  padding: 0 40px 80px;
  max-width: 1400px; margin: 0 auto; width: 100%;
}
@media (max-width: 768px) {
  .page-hero { height: 56vh; min-height: 380px; }
  .page-hero-content { padding: 0 22px 56px; }
}

/* Utility ---------------------------------------------------------------- */
.text-silver { color: var(--silver); }
.text-silver-bright { color: var(--silver-bright); }
.text-muted { color: var(--text-1); }
.text-faint { color: var(--text-2); }
.bg-elev-1 { background: var(--bg-1); }
.bg-elev-2 { background: var(--bg-2); }
.border-subtle { border-color: var(--line); }
.border-medium { border-color: var(--line-strong); }
