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

:root {
  --white: #ffffff;
  --gray-dim: #c1c1c1;
  --gray-muted: #9a9595;
  --gray-dark: #565656;
  --font-heading: 'Science Gothic', sans-serif;
  --font-body: 'Inter', sans-serif;
  /* Space for fixed header when jumping to #section anchors */
  --header-anchor-offset: 112px;
  /* One horizontal grid: header, hero, and sections share the same edges */
  --layout-max: 1280px;
  --layout-gutter: clamp(20px, 5.56vw, 80px);
  /* Header bar (CSS variables for nav drawer position) */
  --header-floating-top: clamp(12px, 2.4vw, 24px);
  --header-bar-height: 71px;
  --header-bar-height-sm: 60px;
  --nav-drawer-gap: 8px;
  --nav-drawer-bottom-pad: 32px;
}

/* Centered column; same outer width as .site-header */
.layout-container {
  box-sizing: border-box;
  width: min(var(--layout-max), calc(100% - 2 * var(--layout-gutter)));
  margin-left: auto;
  margin-right: auto;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-anchor-offset);
}

/* Before GSAP: only hide the hero *copy* visually. Keep visibility:visible so layout
   height matches post-animation; JS also sets .hero min-height to match. */
html.gsap-wait:not(.gsap-init-done) .hero-text-block {
  opacity: 0;
  pointer-events: none;
}

body {
  position: relative;
  font-family: var(--font-body);
  background: #0d0d0d;
  color: var(--white);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; }
p { overflow-wrap: anywhere; }

/* Screen-reader-only: keeleinfo jms */
.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;
}

/* ─── HERO ────────────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100vh;
  min-height: max-content;
  overflow-x: clip;
  overflow-y: visible;
}
.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-media picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}
.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(13, 13, 13, 0.55) 0%,
    rgba(13, 13, 13, 0.12) 48%,
    rgba(13, 13, 13, 0.35) 100%
  );
  pointer-events: none;
}

/* Tablet + mobile: hero is only as tall as its copy (not forced full viewport) */
@media (max-width: 1199px) {
  .hero {
    height: auto;
    justify-content: center;
  }
}
/* Tablet (768–1199): min hero height; content can grow taller */
@media (max-width: 1199px) and (min-width: 768px) {
  .hero {
    min-height: 860px;
  }
}
/* Mobile: fixed hero band */
@media (max-width: 767.98px) {
  .hero {
    min-height: 537px;
    max-height: 537px;
  }
}

/* Site header — pinned to viewport; stays visible while scrolling */
.site-header {
  position: fixed;
  top: clamp(12px, 2.4vw, 24px);
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--layout-max), calc(100% - 2 * var(--layout-gutter)));
  height: 71px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 40px;
  display: flex;
  align-items: center;
  padding: 0 clamp(16px, 2.4vw, 23px);
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-header nav {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  margin: 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}
.nav-logo {
  font-family: var(--font-heading);
  font-size: clamp(14px, 1.4vw, 16px);
  font-weight: 500;
  color: var(--white);
  white-space: nowrap;
  text-decoration: none;
}
.nav-logo:hover { opacity: 0.85; }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 24px);
}
.nav-links a {
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}
.nav-links a:hover { opacity: 0.75; }
.nav-actions {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 24px);
}
.lang-selector {
  display: flex;
  align-items: center;
  gap: 2px;
  font: inherit;
  font-size: 14px;
  color: var(--white);
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-family: var(--font-body);
}
.lang-selector .lang-selector-label {
  user-select: none;
}
.lang-selector:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
  border-radius: 4px;
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle:focus-visible {
  outline: 2px solid rgba(255,255,255,0.85);
  outline-offset: 2px;
}
.nav-toggle .nav-toggle-bars {
  position: relative;
  display: block;
  width: 22px;
  height: 16px;
}
.nav-toggle .nav-toggle-bars::before,
.nav-toggle .nav-toggle-bars::after,
.nav-toggle .nav-toggle-bars span {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.nav-toggle .nav-toggle-bars::before { top: 0; }
.nav-toggle .nav-toggle-bars span    { top: 7px; }
.nav-toggle .nav-toggle-bars::after  { top: 14px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 7px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 7px;
  transform: rotate(-45deg);
}
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 90;
}
body.nav-open .nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}
body.nav-open {
  overflow: hidden;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 1000px;
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--white);
  background: rgba(255,255,255,0.2);
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: background 0.2s;
}
.btn:hover { background: rgba(255,255,255,0.28); }
.btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}
.btn-outline { border: 1px solid rgba(255,255,255,0.43); }

/* In-flow so .hero grows with headline + buttons (nothing clipped vertically) */
.hero-text-block {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: min(700px, 100%);
  padding-top: clamp(120px, 18vh + 56px, 226px);
  padding-bottom: clamp(40px, 10vh, 88px);
  display: flex;
  flex-direction: column;
  gap: 0;
  box-sizing: border-box;
}
.hero-heading {
  margin: 0;
  min-width: 0;
  font-family: var(--font-heading);
  font-size: clamp(3rem, 11vw + 1rem, 170px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #f9f4f4;
  /* Exactly two lines: two .anim-line blocks; do not break words to extra lines (esp. on mobile). */
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
/* Persistent split-mask wrappers — same layout pre- and post-GSAP, no jump on any viewport. */
.hero-heading > .anim-line {
  display: block;
  overflow: hidden;
  line-height: 1;
  max-width: 100%;
}
.hero-heading > .anim-line + .anim-line {
  margin-top: -0.3em;
}
.hero-heading .hero-heading-line {
  display: block;
  line-height: 1;
  will-change: transform;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}
/* Tablet + mobile: full column width for the 2-line stack (stable with .hero-text-block flex) */
@media (max-width: 1199px) {
  .hero-text-block .hero-heading {
    width: 100%;
    max-width: 100%;
  }
  .hero-heading > .anim-line {
    width: 100%;
    min-width: 0;
  }
}
.hero-sub {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero-sub p {
  font-size: clamp(16px, 2.4vw, 18px);
  font-weight: 500;
  line-height: 1.2;
  color: #ededed;
  max-width: 440px;
}

/* ─── SECTION LABEL ──────────────────────────────────── */
.section-label {
  display: flex;
  align-items: center;
  gap: 4px;
}
.section-label-line {
  width: 20px;
  height: 1px;
  background: var(--gray-muted);
  flex-shrink: 0;
}
.section-label span {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--gray-muted);
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4.4vw, 42px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--white);
}

/* Shared film grain — --noise-tile set once in JS for all .has-noise sections */
.has-noise {
  --noise-tile: none;
}
.noise-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--noise-tile);
  background-repeat: repeat;
  background-size: 200px 200px;
}
@keyframes noise-drift {
  0% { background-position: 0 0; }
  100% { background-position: 200px 200px; }
}
@media (prefers-reduced-motion: no-preference) {
  .has-noise .noise-overlay {
    animation: noise-drift 5.5s linear infinite;
  }
}

/* ─── ABOUT ───────────────────────────────────────────── */
.about {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 40px;
  padding-bottom: 40px;
  /* Same left edge as .layout-container / header (centered --layout-max column) */
  padding-left: max(var(--layout-gutter), calc((100vw - var(--layout-max)) / 2));
  padding-right: var(--layout-gutter);
  background: #000000;
}
.about-inner {
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 100px;
  width: 100%;
  max-width: none;
  margin-inline: 0;
}
/* Text → 100px gap → images (Figma); row is left-aligned; .about overflow clips the right image when narrow */
.about-media {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}
.about-text {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: min(593px, 100%);
  max-width: 593px;
  flex-shrink: 0;
}
.about-header { display: flex; flex-direction: column; gap: 8px; }
.about-body { display: flex; flex-direction: column; gap: 24px; }
.about-body p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--gray-dim);
}
.about-body p:last-child {
  max-width: 420px;
}
.about-img-main {
  display: block;
  width: 488px;
  height: 600px;
  border-radius: clamp(40px, 6vw, 80px);
  object-fit: cover;
  flex-shrink: 0;
}
/* Figma -scale-y-100 rotate-180 wrapper on asset */
.about-img-side {
  display: block;
  width: 407px;
  height: 600px;
  border-radius: 40px;
  object-fit: cover;
  flex-shrink: 0;
  transform: scaleY(-1) rotate(180deg);
}
/*
  Figma: one horizontal row (copy → 100px → images); trailing image clips at the viewport.
  No right section padding on wide screens so the crop aligns with the screen edge.
*/
@media (min-width: 1200px) {
  .about {
    padding-right: 0;
  }
}

/* Stack copy and media; reduce gap and image height proportionally */
@media (max-width: 1199px) {
  .about {
    padding-top: clamp(48px, 8vw, 80px);
    padding-bottom: clamp(48px, 8vw, 80px);
  }
  .about .about-inner {
    flex-wrap: wrap;
    justify-content: flex-start;
    row-gap: clamp(28px, 4vw, 48px);
    gap: clamp(28px, 4vw, 48px);
  }
  .about-text {
    width: 100%;
    max-width: 720px;
  }
  .about-media {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: clamp(16px, 2vw, 24px);
  }
  .about-img-main,
  .about-img-side {
    flex: 1 1 320px;
    width: auto;
    height: clamp(360px, 52vw, 540px);
    max-width: none;
  }
}
@media (max-width: 600px) {
  .about-media {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .about-img-main,
  .about-img-side {
    flex: 1 1 auto;
    width: 100%;
    height: auto;
  }
  .about-img-main {
    aspect-ratio: 488 / 600;
    border-radius: clamp(28px, 8vw, 48px);
  }
  .about-img-side {
    aspect-ratio: 407 / 600;
    border-radius: 28px;
  }
}

/* ─── FEATURES (Figma 22:200 — bg-black + same grid alignment as #about) ─ */
.features {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: clamp(48px, 6vw, 64px);
  padding-bottom: clamp(48px, 6vw, 64px);
  padding-left: max(var(--layout-gutter), calc((100vw - var(--layout-max)) / 2));
  padding-right: var(--layout-gutter);
  background: #000000;
}
.features-inner {
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--layout-max);
  margin-left: 0;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.4vw, 32px);
}
.feature-grid-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.feature-card {
  flex: 1 1 280px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: clamp(24px, 3vw, 32px) clamp(20px, 2.4vw, 24px);
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 30px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
/* composite icon container */
.feature-icon-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  overflow: hidden;
}
.feature-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.feature-card h3 {
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 500;
  color: var(--white);
  line-height: 1.2;
}
.feature-card p {
  font-size: 16px;
  font-weight: 400;
  color: var(--gray-dim);
  line-height: normal;
}
/* Figma: 16px between title and body inside card */
.feature-card .feature-icon-wrap + div {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* Tablet (761–1199): 2 per row; desktop (1200+): 3 per row; mobile ≤760: 1 (see below) */
@media (min-width: 761px) {
  .features-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 16px;
  }
  .features-header {
    grid-column: 1 / -1;
    margin-bottom: calc(clamp(20px, 2.4vw, 32px) - 16px);
  }
  .feature-grid-row {
    display: contents;
  }
  .feature-card {
    flex: none;
    max-width: none;
    width: auto;
    min-width: 0;
  }
}
@media (min-width: 1200px) {
  .features-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.features-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* Phones: restore flex rows (undo tablet grid + display:contents) */
@media (max-width: 760px) {
  .features-inner {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 2.4vw, 32px);
  }
  .features-header {
    grid-column: unset;
    margin-bottom: 0;
  }
  .feature-grid-row {
    display: flex;
  }
  .feature-card {
    flex: 1 1 100%;
    max-width: none;
    width: auto;
  }
}

/* ─── PRICING (Figma 22:217 — black + noise; cards get same grain tile) ─ */
.pricing {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: clamp(48px, 6vw, 64px);
  padding-bottom: clamp(48px, 6vw, 64px);
  padding-left: max(var(--layout-gutter), calc((100vw - var(--layout-max)) / 2));
  padding-right: var(--layout-gutter);
  background: #000000;
}
.pricing-inner {
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--layout-max);
  margin-left: 0;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.4vw, 32px);
}
.pricing-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pricing-cards {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 2.6vw, 32px);
  align-items: stretch;
  justify-content: center;
}
.pricing-card {
  flex: 1 1 280px;
  min-width: 0;
  max-width: 405.33px;
  display: flex;
  align-items: center;
  padding: clamp(28px, 3vw, 32px) clamp(16px, 2vw, 24px);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 30px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.05) 100%),
    linear-gradient(138deg, rgba(255,255,255,0.027) 4.9%, rgba(255,255,255,0.05) 53%, rgba(255,255,255,0.033) 101%);
  position: relative;
}
@media (min-width: 900px) {
  .pricing-card { min-height: 522px; }
}
/* Film grain on cards (inherits --noise-tile from .pricing.has-noise) */
.pricing-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 30px;
  background-image: var(--noise-tile);
  background-repeat: repeat;
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.38;
}
.pricing-card.featured {
  z-index: 1;
  border-color: rgba(255, 255, 255, 0.52);
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.1) 100%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 200, 160, 0.06) 38%, rgba(255, 255, 255, 0.04) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 10px 36px rgba(0, 0, 0, 0.55),
    0 0 48px rgba(255, 255, 255, 0.1);
}
.pricing-card.featured::after {
  opacity: 0.26;
}
@media (prefers-reduced-motion: no-preference) {
  .pricing-card.featured {
    animation: featured-card-glow 5s ease-in-out infinite;
  }
}
@keyframes featured-card-glow {
  0%,
  100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.28),
      0 0 0 1px rgba(255, 255, 255, 0.1),
      0 10px 36px rgba(0, 0, 0, 0.55),
      0 0 48px rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.32),
      0 0 0 1px rgba(255, 255, 255, 0.16),
      0 12px 40px rgba(0, 0, 0, 0.5),
      0 0 72px rgba(255, 255, 255, 0.16);
  }
}
.pricing-card-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 378px;
  margin-inline: auto;
  height: 100%;
  min-height: 0;
}
.pricing-top {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}
.pricing-title-block {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  width: 100%;
}
.pricing-name {
  font-family: var(--font-body);
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 500;
  text-align: center;
  color: var(--white);
  line-height: 1.2;
}
.pricing-price {
  text-align: center;
  font-size: 0;
  color: var(--gray-dim);
}
.pricing-price .amount {
  font-family: var(--font-body);
  font-size: clamp(44px, 6.6vw, 64px);
  font-weight: 500;
  color: var(--white);
  line-height: 1;
}
.pricing-price .period {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-dim);
  line-height: normal;
}
.pricing-divider {
  height: 1px;
  background: rgba(255,255,255,0.2);
  width: 100%;
}
.pricing-features {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.pricing-feature-item {
  display: block;
  width: 100%;
}
/* Check as first inline in <p> — one centered box, icon always 8px from copy */
.pricing-line {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--gray-dim);
  text-align: center;
  line-height: 1.2;
  margin: 0;
  max-width: 306px;
  margin-left: auto;
  margin-right: auto;
}
.pricing-line .check-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: -0.2em;
  margin-right: 8px;
}
.popular-badge {
  position: absolute;
  top: -16px;
  right: 24px;
  z-index: 3;
  background: var(--white);
  color: #000;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 1000px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* ─── GALLERY (Figma 22:267) ──────────────────────────── */
.gallery {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: clamp(48px, 6vw, 64px);
  padding-bottom: clamp(48px, 6vw, 64px);
  padding-left: max(var(--layout-gutter), calc((100vw - var(--layout-max)) / 2));
  padding-right: var(--layout-gutter);
  background: #000000;
}
.gallery-inner {
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--layout-max);
  margin-left: 0;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 24px);
}
.gallery-header { display: flex; flex-direction: column; gap: 8px; }
.gallery-insta-label {
  display: flex;
  align-items: center;
  gap: 4px;
}
.insta-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: inherit;
}
.insta-link:hover { opacity: 0.88; }
.gallery-insta-label .insta-link span { font-size: 16px; color: var(--gray-muted); }
.gallery .insta-icon {
  display: block;
}
.gallery-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.gallery-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}
.gallery-item {
  min-width: 0;
  height: clamp(220px, 30vw, 400px);
  border-radius: clamp(20px, 2.4vw, 30px);
  overflow: hidden;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
/* Tablet (761–1199): 2 per row; desktop (1200+): 3; all items share one grid via display:contents */
@media (min-width: 761px) {
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .gallery-row {
    display: contents;
  }
}
@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
/* Mobile: one column (matches features breakpoint) */
@media (max-width: 760px) {
  .gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .gallery-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .gallery-item {
    height: clamp(200px, 56vw, 320px);
  }
}

/* ─── CONTACT (Figma 22:286 — black + shared noise) ──── */
.contact {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: clamp(48px, 6vw, 64px);
  padding-bottom: clamp(48px, 6vw, 64px);
  padding-left: max(var(--layout-gutter), calc((100vw - var(--layout-max)) / 2));
  padding-right: var(--layout-gutter);
  min-height: 0;
  background: #000000;
}
.contact-inner {
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  display: flex;
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
  width: 100%;
  max-width: var(--layout-max);
  margin-left: 0;
  margin-right: auto;
}
.contact-photo {
  width: 597px;
  height: 650px;
  border-radius: 40px;
  object-fit: cover;
  flex-shrink: 0;
}
.contact-form-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 599px;
  min-width: 0;
}
.contact-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-end;
  width: 100%;
}
.contact-form .hp-wrap {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.form-group.invalid input,
.form-group.invalid select,
.form-group.invalid textarea {
  border-color: #c45c3e;
}
.form-note {
  width: 100%;
  text-align: right;
  font-size: 14px;
  line-height: 1.3;
  color: var(--gray-muted);
}
.form-note.sent {
  color: #7dd3a0;
}
.contact-form-header {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}
.contact-form-title-block { display: flex; flex-direction: column; gap: 16px; }
.contact-form-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-form-heading .section-title { margin: 0; }
.contact-form-desc {
  font-size: 16px;
  color: var(--gray-muted);
  line-height: 1.2;
}
.form-fields { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.form-row { display: flex; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.form-group label {
  font-size: 14px;
  font-weight: 400;
  color: #f1f5f9;
  line-height: 1.1;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.33);
  border-radius: 8px;
  padding: 8px;
  font-size: 12px;
  font-family: var(--font-body);
  color: var(--white);
  outline: none;
  resize: none;
  transition: border-color 0.2s;
}
.form-group input,
.form-group select { height: 40px; }
.form-group select {
  cursor: pointer;
  appearance: auto;
}
.form-group select option {
  background: #1a1a1a;
  color: var(--white);
}
.form-group textarea { height: 150px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-muted); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: rgba(255,255,255,0.6); }

/* Stacked layout (tablet + mobile): form first, image below; full-width band */
@media (max-width: 1100px) {
  .contact-inner {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: clamp(32px, 6vw, 48px);
  }
  .contact-photo {
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 597 / 650;
    margin-left: 0;
    margin-right: 0;
  }
  .contact-form-wrap {
    width: 100%;
    max-width: 100%;
  }
}
@media (max-width: 600px) {
  .contact-photo {
    aspect-ratio: 4 / 5;
    border-radius: 28px;
  }
  .contact-form-header { gap: 24px; }
  .form-row {
    flex-direction: column;
    gap: 16px;
  }
  .contact-form-wrap { align-items: stretch; }
  .contact-form { align-items: stretch; }
  .contact-form .btn { align-self: flex-end; }
}

/* ─── FOOTER (Figma 22:319) ──────────────────────────── */
.footer {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000000;
  padding-top: 80px;
  padding-bottom: 16px;
  padding-left: max(var(--layout-gutter), calc((100vw - var(--layout-max)) / 2));
  padding-right: var(--layout-gutter);
}
.footer-inner {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: clamp(72px, 14vw, 234px);
  align-items: center;
  width: 100%;
  max-width: var(--layout-max);
  margin-left: 0;
  margin-right: auto;
}
.footer-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}
.footer-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 24px;
}
.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 4.4vw, 42px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--white);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: flex-end;
}
.footer-links a {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}
.footer-links a:hover {
  opacity: 0.75;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 4px;
}
.footer-social .insta-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: inherit;
}
.footer-social .insta-link span {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--gray-muted);
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  width: 100%;
}
.footer-divider {
  width: 100%;
  height: 1px;
  margin: 0;
  border: none;
  background: rgba(255, 255, 255, 0.12);
}
.footer-copy {
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
  color: var(--gray-dark);
  text-align: center;
  width: 100%;
}
.insta-icon {
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .footer {
    padding-top: clamp(48px, 8vw, 64px);
  }
  .footer-nav-row {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
  }
  .footer-links {
    justify-content: flex-start;
    gap: 12px 24px;
  }
}
@media (max-width: 520px) {
  .footer-links a { font-size: 15px; }
}

@media (min-width: 1200px) {
  .hero-heading { letter-spacing: -5.1px; }
  .hero-heading > .anim-line + .anim-line {
    margin-top: -0.52em;
  }
}

/* Header — hamburger + slide-down drawer below 900px */
@media (max-width: 899.98px) {
  .site-header {
    padding: 0 clamp(14px, 4vw, 20px);
  }
  .nav-toggle { display: inline-flex; }
  .nav-actions {
    gap: 12px;
  }
  .nav-actions .btn,
  .nav-actions .lang-selector {
    display: none;
  }
      .nav-links {
        position: fixed;
        top: calc(var(--header-floating-top) + var(--header-bar-height) + var(--nav-drawer-gap));
        left: 50%;
        transform: translateX(-50%) translateY(-12px);
        width: min(var(--layout-max), calc(100% - 2 * var(--layout-gutter)));
        max-height: calc(100dvh - var(--header-floating-top) - var(--header-bar-height) - var(--nav-drawer-bottom-pad));
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    padding: 14px 16px 18px;
    background: rgba(15, 15, 15, 0.92);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 28px;
    box-shadow: 0 30px 60px -24px rgba(0,0,0,0.65);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 99;
  }
  body.nav-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
  .nav-links a {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 18px;
    line-height: 1.2;
  }
  .nav-links a:hover,
  .nav-links a:focus-visible {
    opacity: 1;
    background: rgba(255,255,255,0.08);
  }
  .nav-links .nav-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 14px;
    margin-top: 6px;
    border-top: 1px solid rgba(255,255,255,0.12);
  }
  .nav-links .nav-mobile-actions .btn {
    justify-content: center;
    font-size: 16px;
  }
  .nav-links .nav-mobile-actions .lang-selector {
    align-self: flex-start;
    padding: 6px 8px;
  }
}

/* Above 900: hide the dedicated mobile-only block inside the drawer */
@media (min-width: 900px) {
  .nav-mobile-actions { display: none !important; }
}

/* Compact phone tweaks */
@media (max-width: 899.98px) {
  :root { --header-anchor-offset: 100px; }
}
    @media (max-width: 520px) {
      :root {
        --header-anchor-offset: 88px;
        --header-bar-height: 60px;
      }
      .site-header { height: 60px; }
  .nav-toggle { width: 40px; height: 40px; }
  .nav-toggle .nav-toggle-bars { width: 20px; height: 14px; }
  .nav-toggle .nav-toggle-bars span { top: 6px; }
      .nav-toggle .nav-toggle-bars::after { top: 12px; }
      .nav-links {
        top: calc(var(--header-floating-top) + var(--header-bar-height) + var(--nav-drawer-gap));
        max-height: calc(100dvh - var(--header-floating-top) - var(--header-bar-height) - var(--nav-drawer-bottom-pad));
      }
    }

/* GSAP animation prep — same pattern as reference.html */
.gsap-ready .anim-hide { opacity: 0; }
.gsap-ready .h1 { line-height: 0; }
/* Hero h1 keeps its own pre-rendered .anim-line masks; revert global line-height:0. */
.gsap-ready .hero .h1.hero-heading {
  line-height: 1;
}
/* Do not inherit .gsap-ready .anim-line > span { line-height: 1.2 } — keeps the two lines tight. */
.gsap-ready .hero .h1.hero-heading .anim-line > .hero-heading-line {
  line-height: 1;
}
.gsap-ready h2 { line-height: 0; }
.gsap-ready h3 { line-height: 0; }
.gsap-ready .anim-line { overflow: hidden; display: inline-block; }
.gsap-ready .anim-line > span {
  display: inline-block;
  line-height: 1.2;
  will-change: transform, opacity;
}
@media (prefers-reduced-motion: reduce) {
  .gsap-ready .anim-hide { opacity: 1 !important; transform: none !important; }
}
