/* ───────────────────────────────────────────────────────────────
   The Concept Studio — Design Tokens
   ─────────────────────────────────────────────────────────────── */

:root {
  /* Palette */
  --dark:    #2B160F;
  --dark-2:  #1c0e09;
  --greige:  #9A9183;
  --greige-soft: #c2bbb0;
  --greige-text: #7a7168; /* D6: testi corpo — contrasto 4.6:1 (pass WCAG AA) */
  --cream:   #f7f5f0;
  --cream-2: #efece4;
  --white:   #ffffff;
  --rule:    rgba(43, 22, 15, 0.14);
  --rule-light: rgba(247, 245, 240, 0.18);

  /* Typography */
  --font-display: 'PP Editorial New', 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --font-body: 'Helvetica Now', 'Helvetica Neue', Helvetica, 'Inter', Arial, sans-serif;

  /* Type scale — restrained Highstay-like */
  --fs-eyebrow: 0.6875rem;   /* 11px */
  --fs-body:    0.9375rem;   /* 15px */
  --fs-lead:    1rem;        /* 16px */
  --fs-h4:      1.25rem;
  --fs-h3:      clamp(1.5rem, 2.4vw, 2.25rem);
  --fs-h2:      clamp(2rem, 3.6vw, 3.5rem);
  --fs-hero:    clamp(2.5rem, 5.2vw, 5rem);
  --fs-mega:    clamp(3.5rem, 8vw, 8rem);

  /* Spacing */
  --nav-h: 72px;
  --pad-x: clamp(20px, 4vw, 56px);
  --pad-y: clamp(80px, 12vw, 160px);

  /* Motion */
  --ease-inertia: cubic-bezier(0.87, 0, 0.13, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 0.7s;
  --dur-base: 1s;
  --dur-slow: 1.2s;

  /* Other */
  --radius: 2px;
  --max-w: 1680px;
}

/* ─── Fonts — WOFF2 only, varianti usate (Thin/Ultrabold rimossi) ─── */
@font-face {
  font-family: 'PP Editorial New';
  src: url('../fonts/PPEditorialNew-Ultralight.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PP Editorial New';
  src: url('../fonts/PPEditorialNew-UltralightItalic.woff2') format('woff2');
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'PP Editorial New';
  src: url('../fonts/PPEditorialNew-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PP Editorial New';
  src: url('../fonts/PPEditorialNew-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
/* Helvetica Now Display — only normal weights loaded.
   Italic is always handled by PP Editorial in the design system → 3 italic
   variants removed to save ~130KB of font payload. */
@font-face {
  font-family: 'Helvetica Now Display';
  src: url('../fonts/HelveticaNowDisplay-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Helvetica Now Display';
  src: url('../fonts/HelveticaNowDisplay-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Helvetica Now Display';
  src: url('../fonts/HelveticaNowDisplay-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--dark);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; font-weight: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ─── Smooth scroll (native, lighter than Lenis) ─── */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

::selection { background: var(--dark); color: var(--cream); }

/* ─── Typography utilities ─── */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--greige);
}
.display {
  font-family: var(--font-display);
  font-weight: 200;
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.display em {
  font-style: italic;
  font-weight: 200;
}
.serif { font-family: var(--font-display); font-weight: 300; }
.italic { font-style: italic; }

/* ─── Layout primitives ─── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.section { padding-block: var(--pad-y); }

/* ─── Buttons / links ─── */
.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1em 0 0.5em;
  border-bottom: 1px solid currentColor;
  transition: color var(--dur-fast) var(--ease-out), letter-spacing var(--dur-fast) var(--ease-out);
}
.btn-line:hover { letter-spacing: 0.14em; }
.btn-line .arrow {
  display: inline-block;
  transition: transform var(--dur-fast) var(--ease-out);
}
.btn-line:hover .arrow { transform: translateX(6px); }

.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  background: var(--dark);
  color: var(--cream);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1.1em 1.8em;
  border-radius: 999px;
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn-solid:hover { background: var(--dark-2); transform: translateY(-1px); }

/* ─── Initial state for anim elements ─── */
.fade-up { opacity: 0; transform: translateY(40px); }
.hero__word { transform: translateY(110%); display: inline-block; }
.word-reveal__item { opacity: 0; transform: translateY(70px); display: inline-block; }
.hero__corner { opacity: 0; transform: translateY(20px); }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fade-up, .hero__word, .word-reveal__item, .hero__corner {
    opacity: 1 !important;
    transform: none !important;
  }
}
