/* ==========================================================================
   BIAGGI Eyewear — main stylesheet
   Structure: tokens · base · layout · header/menu · buttons · hero slider ·
   sections · footer · motion (reveals, curtain) · responsive
   ========================================================================== */

:root {
  --ink: #0D0D0B;
  --ink-2: #161614;
  --ink-3: #080807;
  --line: #26251F;
  --line-2: #33322C;
  --paper: #F3F1EC;
  --paper-2: #E2DED4;
  --text: #F3F1EC;
  --soft: #C9C6BE;
  --muted: #A09D95;
  --dim: #8C8980;
  --ink-text: #141412;
  --ink-muted: #5E5B54;

  --red: #F23B40;       /* accent text & lines on dark (4.8:1 on ink) */
  --red-fill: #D71920;  /* filled buttons with white text (5.2:1) */
  --red-dark: #B3141A;  /* accent text on light backgrounds */

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --container: 1320px;
  --gutter: 32px;
  --header-h: 92px;
  --radius: 4px;
}

/* ---------- Base ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
picture { display: block; width: 100%; height: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 1000;
  background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 999px;
  font-weight: 600; transform: translateY(-200%); transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

::selection { background: var(--red-fill); color: #fff; }

/* ---------- Layout & type ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 140px 0; position: relative; }
.section--tight { padding: 100px 0; }
.section--light { background: var(--paper); color: var(--ink-text); }
.section--raised { background: var(--ink-2); }
.section--line { border-top: 1px solid var(--line); }

.display {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  line-height: .96;
  letter-spacing: -.01em;
}
.display--xl { font-size: clamp(44px, 6.4vw, 96px); line-height: .92; }
.display--l  { font-size: clamp(34px, 4.4vw, 60px); }
.display--m  { font-size: clamp(28px, 3.2vw, 44px); }
.display--s  { font-size: clamp(22px, 2vw, 26px); font-stretch: 112%; font-weight: 700; line-height: 1.1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.eyebrow--plain::before { display: none; }
.section--light .eyebrow { color: var(--red-dark); }

.lead { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.7; color: var(--soft); }
.section--light .lead { color: var(--ink-muted); }
.muted { color: var(--muted); }

.statement {
  font-family: var(--font-display);
  font-stretch: 110%;
  font-weight: 500;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.3;
}
.statement em { font-style: normal; color: var(--red); }

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background-color .5s var(--ease), transform .6s var(--ease), border-color .5s var(--ease), height .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid,
.page--solid-header .site-header {
  background: rgba(13, 13, 11, .86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.site-header.is-solid { height: 76px; }
.site-header.is-hidden { transform: translateY(-100%); }
.menu-open .site-header { transform: none; background: transparent; border-bottom-color: transparent; backdrop-filter: none; }

.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; position: relative; z-index: 2; }
.brand img { height: 34px; width: auto; transition: height .5s var(--ease); }
.site-header.is-solid .brand img { height: 30px; }

.nav { display: flex; gap: 36px; font-size: 14px; font-weight: 500; letter-spacing: .04em; }
.nav a { position: relative; padding: 10px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px;
  background: var(--red); transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"] { color: var(--red); }

.header__actions { display: flex; align-items: center; gap: 14px; position: relative; z-index: 2; }

.lang { display: flex; align-items: center; font-size: 13px; font-weight: 600; letter-spacing: .06em; }
.lang a { padding: 12px 8px; color: var(--dim); transition: color .3s; }
.lang a:hover { color: var(--text); }
.lang a[aria-current="true"] { color: var(--text); }
.lang span { color: #55534C; }

.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 999px;
  border: 1px solid rgba(243, 241, 236, .35); background: transparent; cursor: pointer;
  align-items: center; justify-content: center; position: relative;
}
.menu-toggle span {
  position: absolute; left: 13px; right: 13px; height: 1.6px; background: currentColor;
  transition: transform .5s var(--ease), opacity .3s;
}
.menu-toggle span:nth-child(1) { transform: translateY(-5px); }
.menu-toggle span:nth-child(2) { transform: translateY(5px); right: 19px; }
.menu-open .menu-toggle span:nth-child(1) { transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { transform: rotate(-45deg); right: 13px; }

/* Full-screen mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 40;
  background: var(--ink);
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 20px) var(--gutter) 40px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease-io), visibility 0s linear .8s;
  visibility: hidden;
}
.menu-open .menu { clip-path: inset(0); visibility: visible; transition: clip-path .8s var(--ease-io), visibility 0s; }
.menu__links { display: flex; flex-direction: column; gap: 6px; }
.menu__links a {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(34px, 9vw, 56px); line-height: 1.1; display: block; overflow: hidden;
}
.menu__links a > span { display: block; padding-top: .08em; transform: translateY(110%); transition: transform .8s var(--ease); }
.menu-open .menu__links a > span { transform: none; }
.menu-open .menu__links li:nth-child(1) span { transition-delay: .25s; }
.menu-open .menu__links li:nth-child(2) span { transition-delay: .31s; }
.menu-open .menu__links li:nth-child(3) span { transition-delay: .37s; }
.menu-open .menu__links li:nth-child(4) span { transition-delay: .43s; }
.menu__links a[aria-current="page"] { color: var(--red); }
.menu__foot {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between;
  font-size: 14px; color: var(--soft);
  opacity: 0; transform: translateY(12px); transition: opacity .6s .5s, transform .6s .5s var(--ease);
}
.menu-open .menu__foot { opacity: 1; transform: none; }
.menu-open { overflow: hidden; }

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: transparent; --btn-fg: var(--text); --btn-sweep: var(--paper); --btn-sweep-fg: var(--ink);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 28px; border-radius: 999px;
  font-size: 15px; font-weight: 700; letter-spacing: .01em; white-space: nowrap;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid transparent; cursor: pointer;
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  background: var(--btn-sweep);
  transform: translateY(101%); border-radius: 50% 50% 0 0 / 30% 30% 0 0;
  transition: transform .6s var(--ease), border-radius .6s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; border-radius: inherit; }
.btn:hover, .btn:focus-visible { color: var(--btn-sweep-fg); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .5s var(--ease); }
.btn:hover svg.arrow { transform: translateX(4px); }

.btn--primary { --btn-bg: var(--red-fill); --btn-fg: #fff; --btn-sweep: var(--paper); --btn-sweep-fg: var(--ink); }
.btn--ghost { border-color: rgba(243, 241, 236, .4); --btn-sweep: var(--paper); --btn-sweep-fg: var(--ink); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-sweep: var(--paper); --btn-sweep-fg: var(--ink); }
.btn--sm { height: 46px; padding: 0 22px; font-size: 14px; font-weight: 600; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-weight: 600; font-size: 15px; color: var(--red); position: relative;
}
.link-arrow::after {
  content: ""; position: absolute; left: 0; right: 26px; bottom: 8px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.link-arrow:hover::after { transform: scaleX(1); transform-origin: left; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Hero slider ---------- */

.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 640px; max-height: 1100px;
  overflow: hidden; background: var(--ink);
}
.hero__slide {
  position: absolute; inset: 0;
  clip-path: inset(0 0 0 100%);
  visibility: hidden;
}
.hero__slide.is-active { visibility: visible; clip-path: inset(0); z-index: 2; transition: clip-path 1.3s var(--ease-io); }
.hero__slide.is-leaving { visibility: visible; clip-path: inset(0); z-index: 1; }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); }
.hero__slide.is-active .hero__media img { animation: kenburns 9s var(--ease) forwards; }
.hero__slide.is-leaving .hero__media img { transform: scale(1); transition: transform 1.3s var(--ease-io); transform: scale(.96) translateX(-4%); }
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1.02); } }

.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(13,13,11,.92) 0%, rgba(13,13,11,0) 42%),
    linear-gradient(90deg, rgba(13,13,11,.86) 0%, rgba(13,13,11,.5) 40%, rgba(13,13,11,0) 75%);
}
.hero__content {
  position: relative; z-index: 3; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: 170px;
}
.hero__text { max-width: 680px; display: flex; flex-direction: column; gap: 24px; }
.hero__title .line { display: block; overflow: hidden; padding: .1em 0 .04em; margin-top: -.1em; }
.hero__title .line > span { display: block; transform: translateY(108%); }
.hero__slide.is-active .hero__title .line > span { transform: none; transition: transform 1.1s var(--ease); }
.hero__slide.is-active .hero__title .line:nth-child(1) > span { transition-delay: .55s; }
.hero__slide.is-active .hero__title .line:nth-child(2) > span { transition-delay: .65s; }
.hero__fade { opacity: 0; transform: translateY(24px); }
.hero__slide.is-active .hero__fade { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease); }
.hero__slide.is-active .hero__fade:nth-of-type(1) { transition-delay: .4s; }
.hero__slide.is-active .hero__body { transition-delay: .85s; }
.hero__slide.is-active .hero__ctas { transition-delay: 1s; }
.hero__slide.is-leaving .hero__title .line > span { transform: translateY(-108%); transition: transform .8s var(--ease-io); }
.hero__slide.is-leaving .hero__fade { opacity: 0; transform: translateY(-14px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.hero__body { color: #DEDBD3; font-size: 18px; line-height: 1.6; max-width: 500px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.hero__controls {
  position: absolute; left: 0; right: 0; bottom: 48px; z-index: 5;
}
.hero__controls .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.hero__tabs { display: flex; gap: 12px; flex: 1 1 380px; max-width: 640px; }
.hero__tab {
  flex: 1; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left;
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
}
.hero__bar { position: relative; height: 2px; background: rgba(243,241,236,.22); overflow: hidden; }
.hero__bar i { position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: left; }
.hero__tab.is-active .hero__bar i { animation: progress var(--hero-duration, 6.5s) linear forwards; }
.hero.is-paused .hero__tab.is-active .hero__bar i { animation-play-state: paused; }
.hero.is-static .hero__tab.is-active .hero__bar i { animation: none; transform: scaleX(1); }
@keyframes progress { to { transform: scaleX(1); } }
.hero__label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(243,241,236,.55); transition: color .4s; }
.hero__tab.is-active .hero__label, .hero__tab:hover .hero__label { color: var(--text); }
.hero__arrows { display: flex; gap: 10px; }
.icon-btn {
  width: 52px; height: 52px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(243,241,236,.35); background: rgba(13,13,11,.3);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s;
}
.icon-btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.icon-btn svg { width: 20px; height: 20px; }
.hero__count {
  position: absolute; right: var(--gutter); top: 50%; z-index: 4; transform: translateY(-50%) rotate(90deg); transform-origin: right center;
  font-size: 12px; letter-spacing: .3em; color: rgba(243,241,236,.6); display: none;
}

/* Page hero (About) */
.page-hero { position: relative; height: 78vh; min-height: 560px; max-height: 820px; overflow: hidden; }
.page-hero__media { position: absolute; inset: -8% 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .hero__shade { background:
  linear-gradient(0deg, var(--ink) 0%, rgba(13,13,11,0) 38%),
  linear-gradient(90deg, rgba(13,13,11,.9) 0%, rgba(13,13,11,.55) 45%, rgba(13,13,11,.05) 85%); }
.page-hero__content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 22px; padding-bottom: 90px; }

/* Plain page title (Contact) */
.page-title { position: relative; overflow: hidden; padding: calc(var(--header-h) + 100px) 0 72px; }
.page-title .container { position: relative; display: flex; flex-direction: column; gap: 22px; }
.ghost-word {
  position: absolute; right: -2vw; top: calc(var(--header-h) + 30px);
  font-family: var(--font-display); font-stretch: 125%; font-weight: 900;
  font-size: clamp(140px, 20vw, 300px); line-height: 1; color: #151513; letter-spacing: -.02em;
  white-space: nowrap; pointer-events: none; user-select: none;
}

/* ---------- Numbers strip ---------- */

.stats { border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 40px 28px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--font-display); font-stretch: 125%; font-weight: 700; font-size: clamp(30px, 3vw, 40px); line-height: 1; color: var(--red); font-variant-numeric: tabular-nums; }
.stat__label { font-size: 14px; color: var(--muted); }

/* ---------- Marquee ---------- */

.marquee { overflow: hidden; border-bottom: 1px solid var(--line); padding: 26px 0; user-select: none; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 48px; padding-right: 48px; }
.marquee__item {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(28px, 3.6vw, 52px); line-height: 1; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(243,241,236,.45);
}
.marquee__item--fill { color: var(--text); -webkit-text-stroke: 0; }
.marquee__dot { width: 34px; height: auto; flex: none; opacity: .9; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section heads ---------- */

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px 48px; margin-bottom: 64px; }
.section-head__title { display: flex; flex-direction: column; gap: 18px; max-width: 680px; }
.section-head .lead { max-width: 460px; }

/* ---------- Collection cards ---------- */

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; gap: 22px; }
.card__media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__num {
  position: absolute; top: 18px; left: 18px; z-index: 1;
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 13px; letter-spacing: .1em;
  background: var(--ink); color: var(--paper); padding: 7px 11px;
}
.card__body { display: flex; flex-direction: column; gap: 12px; }
.card__title { position: relative; padding-bottom: 14px; }
.card__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; background: var(--red-fill); transition: width .7s var(--ease); }
.card:hover .card__title::after { width: 72px; }
.card p { font-size: 15px; line-height: 1.65; color: var(--ink-muted); }
.card .link-arrow { color: var(--ink-text); align-self: flex-start; }

/* ---------- Split (story / ambassador / partnership) ---------- */

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 88px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media .frame { border-radius: var(--radius); overflow: hidden; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__text { display: flex; flex-direction: column; gap: 28px; }
.badge {
  position: absolute; right: -1px; bottom: -1px; background: var(--ink);
  padding: 22px 26px 0; font-family: var(--font-display); font-stretch: 125%; font-weight: 800;
  font-size: 12.5px; letter-spacing: .2em; color: var(--red);
  display: flex; align-items: center; gap: 12px;
}
.badge img { height: 18px; width: auto; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--line); padding-top: 28px; }
.feature { display: flex; flex-direction: column; gap: 8px; }
.feature svg { width: 26px; height: 26px; color: var(--red); }
.feature strong { font-size: 16px; }
.feature span { font-size: 14px; line-height: 1.6; color: var(--muted); }
.name-xl { font-size: clamp(48px, 6.4vw, 104px); line-height: .9; }

/* ---------- Locator CTA ---------- */

.locator-cta { position: relative; overflow: hidden; text-align: center; }
.locator-cta::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(242, 59, 64, .22) 1.2px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 80%);
}
.locator-cta .container { position: relative; max-width: 980px; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.pin-pulse { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.pin-pulse img { width: 52px; height: auto; position: relative; z-index: 1; animation: bob 3.2s var(--ease-io) infinite; }
.pin-pulse::before, .pin-pulse::after {
  content: ""; position: absolute; left: 50%; bottom: 14px; width: 70px; height: 22px; margin-left: -35px;
  border-radius: 50%; border: 1px solid rgba(242, 59, 64, .7); animation: ripple 3.2s var(--ease) infinite;
}
.pin-pulse::after { animation-delay: 1.6s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes ripple { 0% { transform: scale(.3); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
.search-pill { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; max-width: 640px; justify-content: center; }
.search-pill label {
  flex: 1 1 320px; display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 22px;
  border-radius: 999px; background: var(--paper); color: var(--ink-text);
  transition: box-shadow .4s var(--ease);
}
.search-pill label:focus-within { box-shadow: 0 0 0 4px rgba(242, 59, 64, .35); }
.search-pill input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; color: var(--ink-text); }
.search-pill svg { width: 18px; height: 18px; flex: none; }
.search-pill .btn { height: 58px; }

/* ---------- About ---------- */

.intro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; }
.intro__body { display: flex; flex-direction: column; gap: 20px; font-size: 17px; line-height: 1.75; color: var(--soft); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.gallery .frame { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.gallery .frame img { width: 100%; height: 100%; object-fit: cover; }
.gallery > :nth-child(2) { margin-top: 72px; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.value { padding: 56px 40px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; transition: background-color .6s var(--ease); }
.value:first-child { padding-left: 0; }
.value:last-child { border-right: 0; padding-right: 0; }
.value__num { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 14px; letter-spacing: .12em; color: var(--red); }
.value p { font-size: 15px; line-height: 1.65; color: var(--muted); }
.vm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.vm__card { padding: 56px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 28px; background: #fff; }
.vm__card--dark { background: var(--ink-text); color: var(--paper); }
.vm__card--dark .eyebrow { color: var(--red); }
.vm__card p { font-family: var(--font-display); font-stretch: 110%; font-weight: 600; font-size: clamp(22px, 2.1vw, 30px); line-height: 1.28; }
.cta-band {
  background: var(--red-fill); color: #fff; border-radius: var(--radius); padding: 64px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18); box-shadow: 0 0 0 60px rgba(255,255,255,.04), 0 0 0 120px rgba(255,255,255,.03);
  pointer-events: none;
}
.cta-band h2 { max-width: 680px; position: relative; z-index: 1; }
.cta-band .btn { position: relative; z-index: 1; }

/* ---------- Contact ---------- */

.contact-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.panel-card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-form { flex: 999 1 560px; min-width: 0; padding: 48px; display: flex; flex-direction: column; gap: 22px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--soft); }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 400; font-size: 15px; letter-spacing: 0; color: var(--text);
  background: var(--ink); border: 1px solid #3A3933; border-radius: var(--radius);
  height: 54px; padding: 0 16px; outline: 0; width: 100%;
  transition: border-color .3s, box-shadow .3s;
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23C9C6BE' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field textarea { height: 160px; padding: 14px 16px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(242, 59, 64, .2); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 4px; }
.form-status { font-size: 14px; min-height: 22px; }
.form-status.is-ok { color: #7FD69A; }
.form-status.is-error { color: var(--red); }
.btn.is-loading { pointer-events: none; opacity: .75; }

.contact-side { flex: 1 1 380px; display: flex; flex-direction: column; gap: 24px; }
.info-list { padding: 32px 28px; display: flex; flex-direction: column; gap: 26px; }
.info { display: flex; gap: 18px; align-items: flex-start; }
.info__icon {
  width: 48px; height: 48px; flex: none; border-radius: 999px; background: var(--ink); border: 1px solid var(--line-2);
  display: grid; place-items: center; color: var(--red); transition: background-color .4s, color .4s;
}
a.info:hover .info__icon { background: var(--red-fill); color: #fff; border-color: var(--red-fill); }
.info__icon svg { width: 20px; height: 20px; }
.info__label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.info__value { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; line-height: 1.5; }
.socials { display: flex; gap: 8px; }
.socials a {
  width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 999px;
  display: grid; place-items: center; transition: background-color .4s, border-color .4s, color .4s;
}
.socials a:hover { background: var(--red-fill); border-color: var(--red-fill); color: #fff; }
.socials svg { width: 18px; height: 18px; }
.map-card { flex: 1; min-height: 240px; position: relative; overflow: hidden; display: grid; place-items: center; }
.map-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9); }

/* FAQ */
.faq-layout { display: flex; flex-wrap: wrap; gap: 64px; }
.faq-layout__head { flex: 1 1 320px; display: flex; flex-direction: column; gap: 20px; }
.faq { flex: 999 1 560px; min-width: 0; border-top: 1px solid #CFCAC0; }
.faq__item { border-bottom: 1px solid #CFCAC0; }
.faq__q {
  width: 100%; min-height: 80px; padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: none; border: 0; cursor: pointer; text-align: left; font-size: 18px; font-weight: 600; color: var(--ink-text);
}
.faq__icon {
  width: 40px; height: 40px; flex: none; border-radius: 999px; border: 1px solid var(--ink-text);
  display: grid; place-items: center; transition: transform .5s var(--ease), background-color .4s, color .4s;
}
.faq__icon svg { width: 16px; height: 16px; }
.faq__q[aria-expanded="true"] .faq__icon { transform: rotate(45deg); background: var(--ink-text); color: var(--paper); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 64px 28px 0; font-size: 16px; line-height: 1.7; color: #4D4A43; }
.faq__q[aria-expanded="true"] + .faq__a { grid-template-rows: 1fr; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink-3); border-top: 1px solid var(--line); padding: 88px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 40px; }
.footer__col { display: flex; flex-direction: column; gap: 14px; font-size: 14px; }
.footer__col h2 { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin-bottom: 4px; }
.footer__col a { transition: color .3s; align-self: flex-start; }
.footer__col a:hover { color: var(--red); }
.footer__col p, .footer__col address { color: var(--muted); font-style: normal; line-height: 1.65; }
.footer__mono { height: 40px; width: auto; align-self: flex-start; }
.footer__bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--dim); }
.footer__giant {
  margin-top: 56px; font-family: var(--font-display); font-stretch: 125%; font-weight: 900; text-transform: uppercase;
  font-size: clamp(64px, 15.5vw, 230px); line-height: .8; letter-spacing: -.02em; color: #12120F; text-align: center;
  user-select: none; overflow: hidden;
}

/* ==========================================================================
   Motion — only active when JS added html.motion (and reduced motion is off)
   ========================================================================== */

.motion [data-reveal] { opacity: 0; transform: translateY(44px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.motion [data-reveal="fade"] { transform: none; }
.motion [data-reveal].is-in { opacity: 1; transform: none; }

.motion [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-io); transition-delay: var(--d, 0s); }
.motion [data-reveal="clip"] img { transform: scale(1.25); transition: transform 1.8s var(--ease); transition-delay: var(--d, 0s); }
.motion [data-reveal="clip"].is-in { clip-path: inset(0); }
.motion [data-reveal="clip"].is-in img { transform: scale(1); }

.motion [data-reveal="line"] { opacity: 1; transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-io); }
.motion [data-reveal="line"].is-in { transform: scaleX(1); }

/* Split headings: words rise from a mask */
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding: .12em 0 .06em; margin: -.12em 0 -.06em; }
.split-word > span { display: inline-block; }
.motion [data-split] .split-word > span { transform: translateY(110%); transition: transform 1s var(--ease); transition-delay: calc(var(--d, 0s) + var(--i, 0) * 55ms); }
.motion [data-split].is-in .split-word > span { transform: none; }

/* Header intro */
.motion .site-header { animation: header-in 1.2s var(--ease) .2s both; }
@keyframes header-in { from { opacity: 0; transform: translateY(-24px); } }

/* Page curtain (transitions between pages) */
.curtain {
  position: fixed; inset: 0; z-index: 200; pointer-events: none;
  background: var(--ink);
  display: grid; place-items: center;
  transform: scaleY(0); transform-origin: top;
}
.curtain img { width: 64px; opacity: 0; transition: opacity .4s; }
.curtain.is-covering { transform: scaleY(1); transform-origin: bottom; transition: transform .7s var(--ease-io); pointer-events: all; }
.curtain.is-covering img { opacity: 1; transition-delay: .35s; }
.is-arriving .curtain { transform: scaleY(1); }
.is-arriving .curtain img { opacity: 1; }
.curtain.is-leaving { transform: scaleY(0); transform-origin: top; transition: transform .9s var(--ease-io) .15s; }
.curtain.is-leaving img { opacity: 0; transition-delay: 0s; }

/* Without JS the first slide simply shows */
html:not(.js) .hero__slide:first-child { visibility: visible; clip-path: none; }
html:not(.js) .hero__title .line > span, html:not(.js) .hero__fade { transform: none; opacity: 1; }
html:not(.js) .hero__media img { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .marquee__track { animation: none; }
  .hero__slide.is-active .hero__media img { animation: none; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .split { gap: 56px; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value { padding: 44px 28px; }
}

@media (max-width: 900px) {
  :root { --header-h: 76px; }
  .nav, .header__actions .btn, .header__actions .lang { display: none; }
  .menu-toggle { display: inline-flex; }
  .section { padding: 100px 0; }
  .cards { grid-template-columns: 1fr; gap: 48px; }
  .card__media { aspect-ratio: 4 / 4.2; }
  .split, .intro { grid-template-columns: 1fr; gap: 48px; }
  .split--reverse .split__media { order: 0; }
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 28px 20px; border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(2n+1) { padding-left: 0; }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
  .values { grid-template-columns: 1fr; border-bottom: 0; }
  .value { padding: 40px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .vm { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery > :nth-child(2) { margin-top: 48px; }
  .gallery > :nth-child(3) { display: none; }
  .hero__content { padding-bottom: 150px; }
  .hero__label { display: none; }
  .section-head { margin-bottom: 44px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .section { padding: 80px 0; }
  .hero { min-height: 600px; }
  .hero__shade { background:
    linear-gradient(0deg, rgba(13,13,11,.96) 0%, rgba(13,13,11,.55) 50%, rgba(13,13,11,.2) 100%); }
  .hero__body { font-size: 16px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__ctas .btn--ghost { display: none; }
  .hero__controls .container { flex-wrap: nowrap; gap: 16px; }
  .hero__tabs { flex: 1 1 0; min-width: 0; gap: 8px; }
  .hero__controls { bottom: 28px; }
  .hero__arrows .icon-btn { width: 44px; height: 44px; }
  .hero__content { padding-bottom: 116px; }
  .contact-form, .info-list { padding: 28px 20px; }
  .field-row { grid-template-columns: 1fr; }
  .vm__card, .cta-band { padding: 36px 24px; }
  .features { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .faq__a p { padding-right: 0; }
  .page-title { padding-top: calc(var(--header-h) + 64px); }
  .badge { padding: 16px 18px 0; font-size: 11px; }
}

/* ---------- Photo framing (landscape on desktop, portrait on phones) ---------- */
picture img { object-position: var(--pos, 50% 50%); }
@media (max-width: 767px) {
  picture.has-portrait img { object-position: var(--mpos, 50% 30%); }
  .split__media .frame, .card__media { aspect-ratio: 4 / 5 !important; }
}
