/* ============================================================
   Cecchini Italia — multi-page site (2026 refresh)
   Maronese-inspired: full-bleed imagery, editorial type,
   structured navigation, subtle motion.
   Fraunces display + Inter text · warm neutrals · Cecchini red.
   ============================================================ */

:root {
  --ink: #1c1a18;
  --ink-soft: #54504b;
  --paper: #faf8f5;
  --paper-deep: #f1ede7;
  --line: #e3ddd4;
  --accent: #e2122d;          /* Cecchini red */
  --accent-deep: #b30e23;
  --accent-soft: #ff6b7d;

  --font-display: "Fraunces", Georgia, serif;
  --font-text: "Inter", Helvetica, Arial, sans-serif;

  --w-max: 1320px;
  --pad-x: clamp(20px, 4vw, 64px);
  --section-gap: clamp(88px, 12vw, 168px);

  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-text);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ---------- shared bits ---------- */

.btn {
  display: inline-block;
  padding: 15px 36px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  border-radius: 999px;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
  cursor: pointer;
  background: transparent;
}
.btn--light { color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--dark { color: var(--ink); }
.btn--dark:hover { background: var(--ink); color: var(--paper); }
.btn--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn--accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.link-arrow::after { content: "→"; transition: transform 0.3s var(--ease); }
.link-arrow:hover::after { transform: translateX(6px); }

.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-head {
  max-width: var(--w-max);
  margin: 0 auto clamp(40px, 6vw, 76px);
  padding: 0 var(--pad-x);
}
.section-head--center { text-align: center; }
.section-head--center .kicker { display: inline-block; }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  max-width: 16em;
}
.section-head--center .section-title { margin-inline: auto; }

/* scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ HEADER ============ */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.header__inner {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 16px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand__logo { height: 26px; width: auto; }
.brand__logo--dark { display: none; }

/* solid mode (after scroll, or on inner pages) */
.site-header.is-solid,
.site-header--solid {
  background: rgba(250, 248, 245, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-solid .brand__logo--light,
.site-header--solid .brand__logo--light { display: none; }
.site-header.is-solid .brand__logo--dark,
.site-header--solid .brand__logo--dark { display: block; }

.nav { display: flex; align-items: center; gap: 38px; }
.nav a, .nav__trigger {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 8px 0;
  position: relative;
}
.site-header.is-solid .nav a,
.site-header.is-solid .nav__trigger,
.site-header--solid .nav a,
.site-header--solid .nav__trigger { color: var(--ink); }

.nav a::after, .nav__trigger::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 2px;
  height: 1px;
  background: currentColor;
  transition: right 0.3s var(--ease);
}
.nav a:hover::after,
.nav a.is-current::after,
.nav__item:hover .nav__trigger::after { right: 0; }

.nav__item { position: relative; }
.nav__mega {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 0;
  min-width: 230px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  box-shadow: 0 24px 48px rgba(28, 26, 24, 0.12);
}
.nav__item:hover .nav__mega,
.nav__item:focus-within .nav__mega {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav__mega a {
  color: var(--ink) !important;
  padding: 9px 26px;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 14px;
}
.nav__mega a::after { display: none; }
.nav__mega a:hover { background: var(--paper-deep); }

.header__right { display: flex; align-items: center; gap: 24px; }
.lang { display: flex; align-items: center; gap: 6px; }
.lang__btn {
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; padding: 4px 2px;
  color: rgba(255, 255, 255, 0.55);
}
.lang__btn.is-active { color: #fff; }
.lang__sep { color: rgba(255, 255, 255, 0.35); font-size: 12px; }
.site-header.is-solid .lang__btn,
.site-header--solid .lang__btn { color: rgba(28, 26, 24, 0.45); }
.site-header.is-solid .lang__btn.is-active,
.site-header--solid .lang__btn.is-active { color: var(--ink); }
.site-header.is-solid .lang__sep,
.site-header--solid .lang__sep { color: rgba(28, 26, 24, 0.3); }

.burger {
  display: none; flex-direction: column; gap: 6px;
  background: none; border: none; cursor: pointer; padding: 8px 0;
}
.burger span {
  width: 26px; height: 2px; background: #fff;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.site-header.is-solid .burger span,
.site-header--solid .burger span { background: var(--ink); }
.burger.is-open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger.is-open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 90;
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer__nav { display: flex; flex-direction: column; gap: 16px; text-align: center; }
.drawer__nav a {
  font-family: var(--font-display);
  font-size: clamp(24px, 6vw, 34px);
  color: var(--ink);
}
.drawer__nav a.sub { font-family: var(--font-text); font-size: 15px; color: var(--ink-soft); letter-spacing: 0.08em; text-transform: uppercase; }

/* ============ HERO (home) ============ */

.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.4s var(--ease), transform 7s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,13,12,0.74) 0%, rgba(15,13,12,0.15) 48%, rgba(15,13,12,0.34) 100%);
}
.hero__content {
  position: relative; z-index: 2;
  max-width: var(--w-max); width: 100%;
  margin: 0 auto;
  padding: 0 var(--pad-x) clamp(76px, 11vh, 134px);
}
.hero__eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.26em;
  text-transform: uppercase; opacity: 0.85; margin-bottom: 22px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 26px;
}
.hero__sub {
  max-width: 500px; font-size: 16px; font-weight: 300;
  opacity: 0.92; margin-bottom: 38px;
}
.hero__dots {
  position: absolute; z-index: 3;
  right: var(--pad-x); bottom: clamp(76px, 11vh, 134px);
  display: flex; flex-direction: column; gap: 10px;
}
.hero__dots button {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.7); background: transparent;
  cursor: pointer; padding: 0; transition: background 0.3s, transform 0.3s;
}
.hero__dots button.is-active { background: #fff; transform: scale(1.3); }
.hero__scroll {
  position: absolute; z-index: 3; left: 50%; bottom: 22px;
  transform: translateX(-50%); width: 1px; height: 44px; overflow: hidden;
}
.hero__scroll span {
  position: absolute; inset: 0; background: rgba(255,255,255,0.8);
  animation: scrollHint 2s var(--ease) infinite;
}
@keyframes scrollHint {
  0% { transform: translateY(-100%); }
  55% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ============ PAGE HERO (inner pages) ============ */

.page-hero {
  position: relative;
  min-height: clamp(420px, 62vh, 640px);
  display: flex; align-items: flex-end;
  overflow: hidden; color: #fff;
}
.page-hero__img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.04);
}
.page-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,13,12,0.7) 0%, rgba(15,13,12,0.15) 60%, rgba(15,13,12,0.3) 100%);
}
.page-hero__content {
  position: relative; z-index: 2;
  max-width: var(--w-max); width: 100%; margin: 0 auto;
  padding: 0 var(--pad-x) clamp(56px, 8vh, 96px);
}
.page-hero__eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.26em;
  text-transform: uppercase; opacity: 0.85; margin-bottom: 18px;
}
.page-hero__title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(38px, 6vw, 78px); line-height: 1.04;
  letter-spacing: -0.02em; max-width: 14em;
}
.page-hero__sub {
  margin-top: 20px; max-width: 540px; font-size: 16px;
  font-weight: 300; opacity: 0.92;
}

/* breadcrumb spacer for pages without hero image */
.page-top {
  padding-top: calc(var(--header-h) + clamp(56px, 9vw, 120px));
}

/* ============ INTRO / MANIFESTO ============ */

.intro {
  max-width: 960px; margin: 0 auto;
  padding: var(--section-gap) var(--pad-x) 0;
  text-align: center;
}
.intro__text {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.24;
}
.intro__text em { font-style: italic; color: var(--accent); }

/* ============ DUO TILES (zona giorno/notte style) ============ */

.duo {
  margin-top: var(--section-gap);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.duo__tile {
  position: relative;
  min-height: clamp(380px, 46vw, 560px);
  display: flex; align-items: flex-end;
  overflow: hidden; color: #fff;
}
.duo__tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.duo__tile:hover img { transform: scale(1.05); }
.duo__tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,13,12,0.72), rgba(15,13,12,0.05) 60%);
}
.duo__body {
  position: relative; z-index: 2;
  padding: clamp(28px, 4vw, 52px);
}
.duo__title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(28px, 3.2vw, 44px); line-height: 1.05;
  margin-bottom: 8px;
}
.duo__text { font-size: 14.5px; font-weight: 300; opacity: 0.88; max-width: 30ch; margin-bottom: 16px; }
.duo__body .link-arrow { color: #fff; }

/* ============ FEATURE ROW (alternating split) ============ */

.feature {
  margin-top: var(--section-gap);
}
.feature__inner {
  max-width: var(--w-max); margin: 0 auto; padding: 0 var(--pad-x);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 96px); align-items: center;
}
.feature--flip .feature__media { order: 2; }
.feature__media {
  overflow: hidden; border-radius: 16px;
  aspect-ratio: 4 / 3; background: var(--paper-deep);
}
.feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.feature:hover .feature__media img { transform: scale(1.04); }
.feature__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px); line-height: 1.12;
  letter-spacing: -0.01em; margin-bottom: 20px;
}
.feature__text { font-size: 15.5px; color: var(--ink-soft); margin-bottom: 18px; max-width: 46ch; }
.feature__text + .feature__text { margin-top: -6px; }

/* ============ COLLECTIONS GRID ============ */

.collections { padding-top: var(--section-gap); }
.grid {
  max-width: var(--w-max); margin: 0 auto; padding: 0 var(--pad-x);
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(30px, 4vw, 60px) clamp(24px, 3vw, 44px);
}
.card--wide { grid-column: 1 / -1; }
.card__media {
  display: block; overflow: hidden; border-radius: 14px;
  aspect-ratio: 16 / 10; background: var(--paper-deep);
}
.card--wide .card__media { aspect-ratio: 21 / 9; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card:hover .card__media img { transform: scale(1.045); }
.card__body { padding: 22px 4px 0; max-width: 580px; }
.card__eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.card__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.01em; margin-bottom: 10px;
}
.card__text { font-size: 15px; color: var(--ink-soft); margin-bottom: 16px; }

/* ============ SYSTEMS STRIP (horizontal scroll) ============ */

.systems { padding-top: var(--section-gap); }
.systems__track {
  display: flex; gap: clamp(18px, 2.4vw, 30px);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px var(--pad-x) 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.systems__track::-webkit-scrollbar { display: none; }
.sys-card {
  flex: 0 0 clamp(260px, 30vw, 360px);
  scroll-snap-align: start;
}
.sys-card__media {
  overflow: hidden; border-radius: 14px;
  aspect-ratio: 3 / 4; background: var(--paper-deep);
}
.sys-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.sys-card:hover .sys-card__media img { transform: scale(1.05); }
.sys-card__name {
  font-family: var(--font-display); font-weight: 400;
  font-size: 20px; margin: 16px 0 4px;
}
.sys-card__text { font-size: 14px; color: var(--ink-soft); }

/* ============ COMPANY / STATS ============ */

.company {
  margin-top: var(--section-gap);
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--ink); color: var(--paper);
}
.company__media { min-height: 100%; }
.company__media img { width: 100%; height: 100%; object-fit: cover; }
.company__content { padding: clamp(56px, 8vw, 114px) clamp(32px, 6vw, 96px); }
.company .kicker { color: var(--accent-soft); }
.company__title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(28px, 3.4vw, 46px); line-height: 1.14; margin-bottom: 22px;
}
.company__text {
  font-size: 15px; font-weight: 300;
  color: rgba(250,248,245,0.75); max-width: 480px; margin-bottom: 44px;
}
.stats {
  list-style: none; display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 30px 36px; margin-bottom: 48px;
}
.stat { border-top: 1px solid rgba(250,248,245,0.18); padding-top: 14px; }
.stat__num {
  display: block; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(26px, 3vw, 40px); line-height: 1; margin-bottom: 6px;
}
.stat__label { font-size: 12.5px; letter-spacing: 0.04em; color: rgba(250,248,245,0.62); }
.company .btn--dark { color: var(--paper); }
.company .btn--dark:hover { background: var(--paper); color: var(--ink); }

/* stats on light background variant */
.stats--light .stat { border-top-color: var(--line); }
.stats--light .stat__num { color: var(--ink); }
.stats--light .stat__label { color: var(--ink-soft); }

/* ============ STORY TIMELINE ============ */

.timeline { padding-top: var(--section-gap); }
.timeline__list {
  max-width: 900px; margin: 0 auto; padding: 0 var(--pad-x);
  display: flex; flex-direction: column;
}
.tl-item {
  display: grid; grid-template-columns: 160px 1fr;
  gap: clamp(20px, 4vw, 48px);
  padding: 32px 0; border-top: 1px solid var(--line);
}
.tl-item:last-child { border-bottom: 1px solid var(--line); }
.tl-item__year {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(28px, 3vw, 40px); color: var(--accent); line-height: 1;
}
.tl-item__title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.tl-item__text { font-size: 15px; color: var(--ink-soft); max-width: 52ch; }

/* ============ NEWS ============ */

.news { padding-top: var(--section-gap); }
.news__grid {
  max-width: var(--w-max); margin: 0 auto; padding: 0 var(--pad-x);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 44px);
}
.post__media {
  display: block; overflow: hidden; border-radius: 14px;
  aspect-ratio: 16 / 10; background: var(--paper-deep);
}
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.post:hover .post__media img { transform: scale(1.045); }
.post__body { padding: 18px 4px 0; }
.post__date { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.post__title { font-family: var(--font-display); font-weight: 400; font-size: 20px; line-height: 1.3; margin: 8px 0 14px; }
.post__text { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 14px; }

/* ============ CONTACT ============ */

.contact {
  margin-top: var(--section-gap);
  background: var(--paper-deep);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.contact__inner {
  max-width: var(--w-max); margin: 0 auto;
  padding: clamp(64px, 9vw, 124px) var(--pad-x);
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 96px); align-items: center;
}
.contact__title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(30px, 4vw, 54px); line-height: 1.08; margin-bottom: 18px;
}
.contact__text { font-size: 15px; color: var(--ink-soft); max-width: 460px; }
.contact__form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.field input, .field textarea {
  font-family: inherit; font-size: 15px; padding: 14px 18px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); color: var(--ink); outline: none;
  transition: border-color 0.25s; width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.check { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-soft); }
.check a { text-decoration: underline; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }
.contact .btn--accent { align-self: flex-start; }

/* contact info block (contatti page) */
.info-grid {
  max-width: var(--w-max); margin: 0 auto; padding: 0 var(--pad-x);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px);
}
.info-block h3 {
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.info-block p, .info-block a { font-size: 15px; color: var(--ink-soft); line-height: 1.8; }
.info-block a:hover { color: var(--ink); }
.map-wrap {
  margin-top: clamp(48px, 7vw, 88px);
  max-width: var(--w-max); margin-inline: auto; padding: 0 var(--pad-x);
}
.map-wrap iframe {
  width: 100%; height: clamp(320px, 42vw, 460px);
  border: 0; border-radius: 16px; display: block; filter: grayscale(0.2);
}

/* ============ CTA BANNER ============ */

.cta {
  margin-top: var(--section-gap);
  position: relative; overflow: hidden; color: #fff;
  display: flex; align-items: center;
  min-height: clamp(360px, 42vw, 520px);
}
.cta__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta::after { content: ""; position: absolute; inset: 0; background: rgba(15,13,12,0.5); }
.cta__inner {
  position: relative; z-index: 2;
  max-width: var(--w-max); margin: 0 auto; width: 100%;
  padding: 0 var(--pad-x); text-align: center;
}
.cta__title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(30px, 4.4vw, 56px); line-height: 1.06;
  margin: 0 auto 26px; max-width: 16em;
}

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

.footer { background: var(--ink); color: rgba(250,248,245,0.78); }
.footer__top {
  max-width: var(--w-max); margin: 0 auto;
  padding: clamp(56px, 7vw, 92px) var(--pad-x) 48px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(32px, 5vw, 64px);
}
.footer__brand img { height: 24px; width: auto; margin-bottom: 22px; }
.footer__addr { font-size: 13.5px; font-weight: 300; line-height: 1.8; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h4 {
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--paper); margin-bottom: 8px;
}
.footer__col a { font-size: 14px; font-weight: 300; color: rgba(250,248,245,0.66); transition: color 0.25s; }
.footer__col a:hover { color: var(--paper); }
.social { display: flex; flex-direction: column; gap: 10px; }
.footer__bottom {
  max-width: var(--w-max); margin: 0 auto;
  padding: 22px var(--pad-x) 28px;
  border-top: 1px solid rgba(250,248,245,0.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12.5px; color: rgba(250,248,245,0.5);
}
.footer__bottom a { color: inherit; }
.footer__bottom a:hover { color: var(--paper); }

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

@media (max-width: 980px) {
  .nav { display: none; }
  .burger { display: flex; }
  .duo { grid-template-columns: 1fr; }
  .feature__inner { grid-template-columns: 1fr; }
  .feature--flip .feature__media { order: 0; }
  .feature__media { aspect-ratio: 16 / 10; }
  .company { grid-template-columns: 1fr; }
  .company__media { aspect-ratio: 16 / 9; }
  .news__grid { grid-template-columns: 1fr; max-width: 640px; }
  .contact__inner { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .grid { grid-template-columns: 1fr; }
  .card--wide .card__media { aspect-ratio: 16 / 10; }
  .stats { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
  .tl-item { grid-template-columns: 1fr; gap: 8px; }
  .footer__top { grid-template-columns: 1fr; }
  .hero__dots { display: none; }
}

/* ============================================================
   MOTION LAYER — parallax, clip reveals, pinned showcase
   Progressive enhancement: classes are added by motion.js.
   Everything degrades gracefully and respects reduced-motion.
   ============================================================ */

/* ---- parallax primitives ---- */
.parallax { will-change: transform; }
.hero__slides, .page-hero__img { will-change: transform; }
/* extra headroom so vertical parallax never reveals edges */
.hero__slides { top: -9%; bottom: -9%; }
.page-hero__img { inset: -9% 0; }
.hero__content, .page-hero__content { will-change: transform, opacity; }

/* ---- clip-path "curtain" reveal for media ---- */
.cr { position: relative; }
.cr.cr-anim {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease);
}
.cr.cr-anim.cr-in { clip-path: inset(0 0 0 0); }
.cr.cr-anim > img,
.cr.cr-anim .card__media img,
.cr.cr-anim.duo__tile img {
  transform: scale(1.12);
  transition: transform 0.9s var(--ease);
}
.cr.cr-anim.cr-in > img,
.cr.cr-anim.cr-in .card__media img,
.cr.cr-anim.cr-in.duo__tile img { transform: scale(1); }

/* line-by-line headline rise */
.line-rise { display: inline-block; overflow: hidden; }
.line-rise > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease);
}
.line-rise.is-in > span { transform: translateY(0); }

/* ============ PINNED HORIZONTAL SHOWCASE ============ */
.showcase { position: relative; background: var(--ink); color: #fff; }
.showcase__sticky {
  position: sticky; top: 0;
  height: 100svh; min-height: 600px;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}
.showcase__head {
  position: absolute; top: clamp(76px, 12vh, 130px);
  left: 0; right: 0;
  padding: 0 var(--pad-x);
  max-width: var(--w-max); margin: 0 auto;
  z-index: 3; pointer-events: none;
}
.showcase__head .kicker { color: var(--accent-soft); }
.showcase__title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(28px, 4vw, 52px); line-height: 1.05;
}
.showcase__track {
  display: flex; align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
  padding: 0 var(--pad-x);
  will-change: transform;
}
.showcase__panel {
  position: relative; flex: 0 0 auto;
  width: clamp(280px, 42vw, 560px);
  height: clamp(360px, 62vh, 600px);
  border-radius: 16px; overflow: hidden;
  display: flex; align-items: flex-end;
}
.showcase__panel img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.showcase__panel:hover img { transform: scale(1.06); }
.showcase__panel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,13,12,0.78), rgba(15,13,12,0) 58%);
}
.showcase__cap { position: relative; z-index: 2; padding: clamp(22px, 3vw, 40px); }
.showcase__cap h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(24px, 2.6vw, 34px); margin-bottom: 6px;
}
.showcase__cap p { font-size: 14.5px; font-weight: 300; opacity: 0.86; max-width: 28ch; }
.showcase__progress {
  position: absolute; left: var(--pad-x); right: var(--pad-x);
  bottom: clamp(34px, 6vh, 64px); height: 2px;
  background: rgba(255,255,255,0.18); z-index: 3;
}
.showcase__progress span {
  display: block; height: 100%; width: 0%;
  background: var(--accent); transition: width 0.1s linear;
}
/* fallback when JS/pinning is off → simple horizontal scroll */
.showcase.no-pin .showcase__sticky { position: static; height: auto; padding: var(--section-gap) 0; }
.showcase.no-pin .showcase__track { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; }
.showcase.no-pin .showcase__panel { scroll-snap-align: start; }
.showcase.no-pin .showcase__head { position: static; margin-bottom: 28px; pointer-events: auto; }
.showcase.no-pin .showcase__progress { display: none; }

/* ============ PARALLAX NUMBERS BAND ============ */
.company--band { display: block; position: relative; overflow: hidden; }
.company--band .company__media {
  position: absolute; inset: -12% 0; min-height: 0;
}
/* background image of the band must always be visible (never gated by reveal) */
.company--band .company__media,
.company--band .company__media.reveal { opacity: 1 !important; }
.company--band .company__media img { width: 100%; height: 100%; object-fit: cover; }
.company--band .company__media::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(18,16,15,0.66);
}
.company--band .company__content {
  position: relative; z-index: 2;
  max-width: 1080px; margin: 0 auto; text-align: center;
  padding: clamp(88px, 13vw, 180px) var(--pad-x);
}
.company--band .company__title { margin-inline: auto; max-width: 16em; }
.company--band .company__text { margin-inline: auto; }
.company--band .stats { max-width: 940px; margin-inline: auto; }
.company--band .stat { border-top-color: rgba(255,255,255,0.22); }
.company--band .btn--dark { color: #fff; }
.company--band .btn--dark:hover { background: #fff; color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .cr.cr-anim { clip-path: none !important; transition: none !important; }
  .cr.cr-anim > img,
  .cr.cr-anim .card__media img { transform: none !important; }
  .line-rise > span { transform: none !important; }
  .parallax, .hero__slides, .page-hero__img,
  .company--band .company__media { transform: none !important; }
}

@media (max-width: 680px) {
  .showcase__panel { width: 78vw; height: 54vh; }
}

/* ============================================================
   KILLER SECTIONS — editorial showpieces
   ============================================================ */

/* ---- 1. Giant typography with image inside (clip-text) ---- */
.textimg {
  padding: var(--section-gap) var(--pad-x);
  text-align: center;
  overflow: hidden;
}
.textimg__kicker { margin-bottom: 18px; }
.textimg__word {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(58px, 19vw, 300px);
  line-height: 0.88;
  letter-spacing: -0.03em;
  background-image: url("assets/hero-3.jpg");
  background-size: 130% auto;
  background-position: center 35%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  will-change: background-position;
}
.textimg__word + .textimg__word { margin-top: -0.06em; }
.textimg__sub {
  margin: clamp(24px, 4vw, 48px) auto 0;
  max-width: 40ch;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.3;
  color: var(--ink);
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .textimg__word { color: var(--ink); -webkit-text-fill-color: currentColor; }
}

/* ---- 2. Sticky stacking cards ---- */
.stack { position: relative; padding: 0; }
.stack__card {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  will-change: transform;
}
.stack__card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.stack__card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,13,12,0.78), rgba(15,13,12,0.05) 60%);
}
.stack__body {
  position: relative; z-index: 2;
  max-width: var(--w-max); width: 100%;
  margin: 0 auto;
  padding: 0 var(--pad-x) clamp(64px, 10vh, 120px);
}
.stack__index {
  font-size: 13px; font-weight: 600; letter-spacing: 0.2em;
  color: var(--accent-soft); margin-bottom: 14px;
}
.stack__title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(40px, 6vw, 88px); line-height: 1.0;
  letter-spacing: -0.02em; margin-bottom: 14px;
}
.stack__text { max-width: 44ch; font-size: 15.5px; font-weight: 300; opacity: 0.9; margin-bottom: 22px; }
.stack__body .link-arrow { color: #fff; }

/* ---- 3. Scrollytelling (sticky media + stepped text) ---- */
.scrolly { position: relative; }
.scrolly__inner {
  max-width: var(--w-max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 90px);
  padding: 0 var(--pad-x);
  align-items: start;
}
.scrolly__media {
  position: sticky; top: 0;
  height: 100svh; min-height: 560px;
  display: flex; align-items: center;
}
.scrolly__frame {
  position: relative; width: 100%;
  aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden;
  background: var(--paper-deep);
}
.scrolly__frame img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  transition: opacity 0.8s var(--ease), transform 1.4s var(--ease);
}
.scrolly__frame img.is-active { opacity: 1; transform: scale(1); }
.scrolly__count {
  position: absolute; left: 18px; bottom: 16px; z-index: 2;
  font-family: var(--font-display); color: #fff;
  font-size: 16px; letter-spacing: 0.04em;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}
.scrolly__steps { padding: 18vh 0; }
.scrolly__step {
  min-height: 78vh;
  display: flex; flex-direction: column; justify-content: center;
  opacity: 0.35; transition: opacity 0.5s var(--ease);
}
.scrolly__step.is-active { opacity: 1; }
.scrolly__step .num {
  font-family: var(--font-display); font-size: 22px;
  color: var(--accent); margin-bottom: 12px;
}
.scrolly__step h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(26px, 3.2vw, 42px); line-height: 1.1; margin-bottom: 16px;
}
.scrolly__step p { font-size: 16px; color: var(--ink-soft); max-width: 42ch; }

/* ---- 4a. Infinite marquee ---- */
.marquee {
  overflow: hidden;
  background: var(--ink); color: var(--paper);
  border-top: 1px solid rgba(250,248,245,0.12);
  border-bottom: 1px solid rgba(250,248,245,0.12);
  padding: clamp(18px, 2.4vw, 30px) 0;
}
.marquee__track {
  display: flex; width: max-content;
  will-change: transform;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex; align-items: center;
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(22px, 3.4vw, 44px);
  letter-spacing: -0.01em;
  padding: 0 clamp(20px, 3vw, 48px);
  white-space: nowrap;
}
.marquee__item .dot { color: var(--accent); margin-left: clamp(20px,3vw,48px); }
.marquee--light { background: var(--paper-deep); color: var(--ink); border-color: var(--line); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- 4b. Custom cursor + magnetic ---- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9999;
  pointer-events: none; border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}
.cursor-dot { width: 7px; height: 7px; background: var(--accent); transition: opacity 0.3s, width 0.25s var(--ease), height 0.25s var(--ease); }
.cursor-ring {
  width: 36px; height: 36px; border: 1.5px solid #fff;
  mix-blend-mode: difference;
  transition: opacity 0.3s, width 0.25s var(--ease), height 0.25s var(--ease);
}
body.has-cursor .cursor-dot, body.has-cursor .cursor-ring { opacity: 1; }
body.cursor-hover .cursor-ring { width: 58px; height: 58px; }
body.cursor-hover .cursor-dot { width: 0; height: 0; }
.magnetic { will-change: transform; }

@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

@media (max-width: 900px) {
  .scrolly__inner { grid-template-columns: 1fr; }
  .scrolly__media { position: relative; height: auto; top: auto; }
  .scrolly__frame { aspect-ratio: 16/10; }
  .scrolly__steps { padding: 0; }
  .scrolly__step { min-height: 0; opacity: 1; margin-bottom: 40px; }
  .scrolly__step.mobile-hide-media + * {}
}

/* ---- page-load / page-transition overlay ---- */
.page-transition {
  position: fixed; inset: 0; z-index: 10000; overflow: hidden;
  visibility: visible;
}
/* two brand-colour panels that part to reveal the page */
.pt-half {
  position: absolute; top: 0; bottom: 0; width: 50.2%;
  transition: transform 0.62s var(--ease); will-change: transform;
}
.pt-half--left  { left: 0;  background: var(--accent); }
.pt-half--right { right: 0; background: #ffffff; }
/* logo split exactly on the seam: white half over red, dark half over white */
.pt-logo {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(190px, 26vw, 340px); z-index: 2;
}
.pt-logo__img { transition: transform 0.62s var(--ease), opacity 0.5s var(--ease); }
/* left half: the white logo, sitting over the red panel (also defines the box size) */
.pt-logo--white { position: relative; display: block; width: 100%; height: auto; clip-path: inset(0 50% 0 0); }
/* right half: the SAME logo recoloured red via mask, sitting over the white panel */
.pt-logo--red {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--accent);
  -webkit-mask: url("assets/logo-white.png") center / 100% 100% no-repeat;
  mask: url("assets/logo-white.png") center / 100% 100% no-repeat;
  clip-path: inset(0 0 0 50%);
}

.page-transition.is-hidden { visibility: hidden; pointer-events: none; transition: visibility 0s 0.62s; }
.page-transition.is-hidden .pt-half--left  { transform: translateX(-101%); }
.page-transition.is-hidden .pt-half--right { transform: translateX(101%); }
.page-transition.is-hidden .pt-logo--white { transform: translateX(-26px); opacity: 0; }
.page-transition.is-hidden .pt-logo--red   { transform: translateX(26px);  opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .pt-half, .pt-logo__img { transition: none !important; }
  .page-transition.is-hidden { transition: none; }
}

/* ---- featured news card ---- */
.news__grid .post--featured {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1.45fr 1fr;
  gap: clamp(24px, 3.4vw, 56px); align-items: center;
}
.post--featured .post__media { aspect-ratio: 16 / 9; }
.post--featured .post__body { padding: 0; }
.post--featured .post__title { font-size: clamp(24px, 3vw, 40px); line-height: 1.12; margin-top: 10px; }
.post--featured .post__text { font-size: 16px; max-width: 46ch; }
@media (max-width: 900px) {
  .news__grid .post--featured { grid-template-columns: 1fr; }
}

/* ---- materials & finishes strip ---- */
.finishes { padding-top: var(--section-gap); }
.finishes__inner {
  max-width: var(--w-max); margin: 0 auto; padding: 0 var(--pad-x);
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: clamp(36px, 6vw, 88px); align-items: center;
}
.finishes__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px); line-height: 1.12; margin-bottom: 18px;
}
.finishes__text { font-size: 15.5px; color: var(--ink-soft); max-width: 46ch; margin-bottom: 22px; }
.finishes__swatches {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}
.swatch { display: flex; flex-direction: column; gap: 10px; }
.swatch__chip {
  aspect-ratio: 5 / 4; border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
.swatch__name { font-size: 12.5px; letter-spacing: 0.04em; color: var(--ink-soft); }
@media (max-width: 900px) {
  .finishes__inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none !important; }
  .textimg__word { background-position: center 35% !important; }
  .scrolly__frame img { transition: opacity 0.3s !important; transform: none !important; }
  .stack__card { transform: none !important; }
}
