/* Mingrone Design — growth-ring editorial */
:root {
  --paper: #efe8dc;
  --paper-2: #e4dac8;
  --paper-3: #d6c9b3;
  --ink: #1c1a17;
  --ink-2: #2a2622;
  --ink-soft: #5a524a;
  --blood: #8a1c1f;
  --blood-hi: #b0262b;
  --walnut: #5b3a24;
  --rule: rgba(28, 26, 23, 0.18);

  --display: "Gloock", "Times New Roman", serif;
  --body: "Schibsted Grotesk", "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

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

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
::selection { background: var(--blood); color: var(--paper); }
:focus-visible { outline: 2px solid var(--blood); outline-offset: 3px; }

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

/* fixed grain overlay */
.grain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: 0.22; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.25 0 0 0 0 0.15 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* type helpers */
.label {
  font: 500 0.72rem/1 var(--mono);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--blood);
  display: inline-flex; align-items: center; gap: 0.75rem;
}
.label::before { content: ""; width: 2.25rem; height: 1px; background: currentColor; }
.label--light { color: #e2a7a2; }

/* buttons */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 1rem 1.5rem; border: 1px solid var(--bg); border-radius: 0;
  background: var(--bg); color: var(--fg);
  font: 500 0.95rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.25s, color 0.25s, box-shadow 0.35s var(--ease);
  box-shadow: 0 0 0 0 var(--ink);
}
.btn svg { width: 1.1rem; height: 1.1rem; transition: transform 0.35s var(--ease); }
.btn:hover { transform: translate(-3px, -3px); box-shadow: 3px 3px 0 0 var(--shadow, var(--ink)); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translate(0, 0); box-shadow: 0 0 0 0 var(--ink); }
.btn--ink { --shadow: var(--blood); }
.btn--blood { --bg: var(--blood); --fg: var(--paper); --shadow: var(--ink); }
.btn--paper { --bg: var(--paper); --fg: var(--ink); --shadow: var(--blood-hi); }
.btn--ghost { --bg: transparent; --fg: var(--paper); border-color: rgba(239, 232, 220, 0.4); --shadow: var(--blood-hi); }
.btn--ghost:hover { border-color: var(--paper); }
.btn--small { padding: 0.75rem 1.1rem; font-size: 0.85rem; }

.link-under {
  font-weight: 500; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px; transition: background-size 0.4s var(--ease);
}
.link-under:hover { background-size: 0% 1px; background-position: 100% 100%; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem;
  padding: 1rem var(--gutter);
  background: rgba(239, 232, 220, 0.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav__logo img { width: clamp(150px, 15vw, 200px); }
.nav__links { display: flex; gap: 2rem; justify-content: center; font-size: 0.92rem; }
.nav__links a { text-decoration: none; color: var(--ink-soft); transition: color 0.2s; }
.nav__links a:hover { color: var(--blood); }

/* HERO */
.hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 4vw, 4rem); align-items: end;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem) var(--gutter);
  position: relative;
}
.hero__copy { display: grid; gap: 1.75rem; padding-bottom: 1rem; }
.hero__title { font-size: clamp(3.2rem, 7.4vw, 7.4rem); line-height: 0.92; letter-spacing: -0.03em; }
.hero__title span { display: block; }
.hero__title--accent { color: var(--blood); font-style: italic; }
.hero__lede { max-width: 30rem; font-size: 1.15rem; color: var(--ink-soft); }
.hero__lede em { color: var(--ink); font-style: italic; }
.hero__actions { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; }
.hero__meta {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 2.5rem;
  margin: 1rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--rule);
}
.hero__meta dt { font: 400 0.68rem/1.2 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.hero__meta dd { margin: 0.4rem 0 0; font: 400 2.1rem/1 var(--display); }

.hero__image { margin: 0; position: relative; }
.hero__image img {
  width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; object-position: 40% center;
  clip-path: polygon(7% 0, 100% 0, 100% 100%, 0 100%, 0 9%);
}
.hero__rings {
  position: absolute; width: clamp(160px, 18vw, 260px); height: clamp(160px, 18vw, 260px);
  left: -9%; bottom: -12%; color: var(--blood); mix-blend-mode: multiply;
  animation: spin 80s linear infinite;
}
.drawing-note {
  display: flex; align-items: center; gap: 0.75rem; margin-top: 0.85rem;
  font: 400 0.72rem/1.4 var(--mono); color: var(--ink-soft); letter-spacing: 0.02em;
}
.drawing-note__line {
  flex: 0 0 3rem; height: 9px; position: relative;
  border-left: 1px solid currentColor; border-right: 1px solid currentColor;
}
.drawing-note__line::after { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: currentColor; }
.hero .drawing-note { padding-right: var(--gutter); }

/* STRIP */
.strip {
  overflow: hidden; background: var(--ink); color: var(--paper);
  border-block: 1px solid var(--ink); padding: 1.1rem 0;
  transform: rotate(-1.2deg) scale(1.02); margin: 1rem 0 0;
}
.strip__track { display: flex; align-items: center; gap: 2.25rem; width: max-content; animation: marquee 42s linear infinite; }
.strip__track span { font: 400 clamp(1.3rem, 2.4vw, 2rem)/1 var(--display); white-space: nowrap; }
.strip__track span:nth-child(4n+3) { font-style: italic; color: #e2a7a2; }
.strip__track i { width: 0.55rem; height: 0.55rem; border-radius: 50%; border: 1px solid var(--blood-hi); flex: none; }

/* BOTTEGA / FEATURES */
.bottega {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 4vw, 4rem); padding: clamp(5rem, 10vw, 9rem) var(--gutter);
}
.bottega__head { grid-column: 1 / -1; display: grid; gap: 1.5rem; max-width: 60rem; }
.bottega__head h2 { font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: 1; }

.features {
  grid-column: 1 / 3; list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 4.5rem) clamp(2rem, 4vw, 3.5rem);
}
.feature { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-content: start; border-top: 1px solid var(--ink); padding-top: 1.5rem; }
.feature--wide { grid-column: 1 / -1; grid-template-columns: 7rem minmax(0, 38rem); }
.feature--image { border-top: 0; padding-top: 0; display: block; }
.feature--image figure { margin: 0; }
.feature--image img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.feature--landscape { grid-column: 1 / -1; }
.feature--landscape img { aspect-ratio: 16 / 8; }
.features > .feature--image:first-of-type { grid-row: span 2; }
.feature__num { font: 400 clamp(2.6rem, 4vw, 3.8rem)/0.85 var(--display); color: var(--blood); }
.feature__body { display: grid; gap: 0.9rem; }
.feature h3 { font-size: clamp(1.5rem, 2.3vw, 2.05rem); line-height: 1.08; }
.feature p { color: var(--ink-soft); }
.feature__spec { font: 400 0.74rem/1.4 var(--mono); letter-spacing: 0.06em; color: var(--walnut) !important; text-transform: uppercase; }
.feature__tags { list-style: none; padding: 0; margin: 0.4rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.feature__tags li {
  font: 400 0.75rem/1 var(--mono); padding: 0.5rem 0.75rem; border: 1px solid var(--rule); border-radius: 99px;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.feature__tags li:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.bottega__hands { grid-column: 3; grid-row: 2; position: sticky; top: 6.5rem; align-self: start; display: grid; gap: 1.5rem; }
.bottega__hands img { width: 100%; aspect-ratio: 3 / 4.4; object-fit: cover; filter: sepia(0.15) contrast(1.05); }
.bottega__hands blockquote { margin: 0; font: italic 400 1.6rem/1.2 var(--display); }
.bottega__hands cite { display: block; margin-top: 0.75rem; font: normal 400 0.72rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }

/* LAVORI / GALLERY */
.lavori { padding: 0 var(--gutter) clamp(5rem, 10vw, 9rem); display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.lavori__head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem clamp(2rem, 5vw, 5rem);
  align-items: end; padding-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--ink);
}
.lavori__head .label { grid-column: 1 / -1; }
.lavori__head h2 { font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: 1; grid-row: span 2; }
.lavori__head h2 em { color: var(--blood); }
.lavori__lede { max-width: 32rem; color: var(--ink-soft); }
.lavori__head .link-under { justify-self: start; }

.gallery {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 17vw, 260px);
  grid-auto-flow: dense; gap: clamp(0.6rem, 1.2vw, 1rem);
}
.g { grid-column: span 2; margin: 0; position: relative; overflow: hidden; background: var(--paper-3); }
.g--wide { grid-column: span 3; }
.g--big { grid-column: span 3; grid-row: span 2; }
.g--hero { grid-column: span 4; grid-row: span 2; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.g--hero img { filter: sepia(0.25) contrast(1.05); }
.g:hover img { transform: scale(1.04); }
.g figcaption {
  position: absolute; left: 0; bottom: 0; max-width: calc(100% - 1.5rem);
  padding: 0.55rem 0.8rem; background: var(--paper); color: var(--ink);
  font: 400 0.7rem/1.35 var(--mono); letter-spacing: 0.04em;
}
.g--hero figcaption { background: var(--ink); color: var(--paper); }

/* VOICES / TESTIMONIALS */
.voices {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(5rem, 9vw, 8rem) var(--gutter); background: var(--paper-2);
  border-top: 1px solid var(--rule);
}
.voices__head { display: grid; gap: 1.5rem; align-content: start; }
.voices__head h2 { font-size: clamp(1.9rem, 3.2vw, 2.9rem); line-height: 1.05; }
.voices__rating { display: flex; align-items: baseline; gap: 0.75rem; font-size: 0.92rem; color: var(--ink-soft); }
.voices__score { font: 400 2.4rem/1 var(--display); color: var(--blood); }

.voices__stage { position: relative; min-height: 26rem; display: grid; align-content: space-between; gap: 2.5rem; }
.voices__rings { position: absolute; width: 22rem; height: 22rem; right: -4rem; top: -4rem; color: var(--paper-3); z-index: 0; animation: spin 120s linear infinite reverse; }
.voices__slides { display: grid; position: relative; z-index: 1; }
.quote {
  grid-area: 1 / 1; margin: 0; display: grid; gap: 2rem; align-content: start;
  opacity: 0; transform: translateY(18px); visibility: hidden;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), visibility 0.6s;
}
.quote.is-active { opacity: 1; transform: none; visibility: visible; }
.quote blockquote { margin: 0; font: 400 clamp(1.6rem, 3vw, 2.7rem)/1.18 var(--display); text-indent: -0.42em; }
.quote figcaption { display: grid; gap: 0.25rem; padding-left: 1rem; border-left: 2px solid var(--blood); }
.quote figcaption strong { font-weight: 600; }
.quote figcaption span { font: 400 0.75rem/1.3 var(--mono); letter-spacing: 0.06em; color: var(--ink-soft); text-transform: uppercase; }

.voices__controls { display: flex; align-items: center; gap: 1.25rem; position: relative; z-index: 1; }
.voices__count { font: 500 0.8rem/1 var(--mono); letter-spacing: 0.1em; min-width: 4.5rem; text-align: center; }
.round-btn {
  width: 3.25rem; height: 3.25rem; border-radius: 50%; border: 1px solid var(--ink);
  background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center;
  transition: background 0.25s, color 0.25s, transform 0.3s var(--ease);
}
.round-btn svg { width: 1.15rem; height: 1.15rem; }
.round-btn:hover { background: var(--ink); color: var(--paper); }
.round-btn:active { transform: scale(0.93); }

/* CTA */
.cta {
  position: relative; overflow: hidden; background: var(--ink); color: var(--paper);
  padding: clamp(5rem, 11vw, 10rem) var(--gutter);
}
.cta__rings { position: absolute; width: min(70rem, 120vw); height: min(70rem, 120vw); right: -22%; top: 50%; translate: 0 -50%; color: var(--blood); opacity: 0.55; animation: spin 160s linear infinite; }
.cta__inner { position: relative; display: grid; gap: 2rem; max-width: 52rem; }
.cta h2 { font-size: clamp(2.8rem, 7vw, 6.4rem); line-height: 0.95; letter-spacing: -0.03em; }
.cta h2 em { color: #e2a7a2; }
.cta__lede { max-width: 34rem; font-size: 1.15rem; color: rgba(239, 232, 220, 0.75); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.cta__steps {
  list-style: none; margin: 1.5rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid rgba(239, 232, 220, 0.2);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem;
  font-size: 0.92rem; color: rgba(239, 232, 220, 0.8);
}
.cta__steps span { display: block; font: italic 400 1.6rem/1 var(--display); color: var(--blood-hi); margin-bottom: 0.4rem; }

/* FOOTER */
.footer { padding: clamp(4rem, 8vw, 7rem) var(--gutter) 2rem; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(3rem, 6vw, 6rem); }
.footer__letter { display: grid; gap: 1.4rem; align-content: start; }
.footer__letter h2 { font-size: clamp(2rem, 3.6vw, 3.3rem); line-height: 1.02; }
.footer__lede { max-width: 32rem; color: var(--ink-soft); }

.signup { margin-top: 0.75rem; }
.signup__row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr) auto; align-items: end; gap: 0; border: 1px solid var(--ink); background: var(--paper); }
.field { display: grid; gap: 0.2rem; padding: 0.8rem 1rem 0.7rem; border-right: 1px solid var(--rule); cursor: text; }
.field__label { font: 500 0.66rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.field__label small { font-size: inherit; text-transform: none; letter-spacing: 0.02em; opacity: 0.8; }
.field input { border: 0; background: transparent; padding: 0.2rem 0; font: 400 1.05rem/1.4 var(--body); color: var(--ink); outline: none; width: 100%; }
.field input::placeholder { color: #a39889; }
.field:focus-within { background: #f7f2e9; }
.field:focus-within .field__label { color: var(--blood); }
.signup__btn { align-self: stretch; border: 0; padding-inline: 1.6rem; }
.signup__btn:hover { transform: none; box-shadow: none; background: var(--blood); }
.signup__msg { min-height: 1.5rem; margin-top: 0.7rem; font: 400 0.8rem/1.4 var(--mono); }
.signup.is-error .signup__row { border-color: var(--blood); box-shadow: 4px 4px 0 var(--blood); }
.signup.is-error .signup__msg { color: var(--blood); }
.signup.is-loading .signup__btn { pointer-events: none; opacity: 0.75; }
.signup.is-loading .signup__btn svg { animation: spin 0.9s linear infinite; }
.signup.is-success .signup__row { display: none; }
.signup.is-success .signup__msg {
  font: italic 400 1.5rem/1.3 var(--display); color: var(--ink);
  padding: 1.25rem 1.5rem; border: 1px solid var(--ink); background: var(--paper-2); margin: 0;
}

.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; align-content: start; padding-top: 0.5rem; }
.footer__cols h3 { font: 500 0.7rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--blood); margin-bottom: 1rem; }
.footer__cols p { font-size: 0.93rem; line-height: 1.75; color: var(--ink-soft); }
.footer__cols a { text-decoration: none; transition: color 0.2s; }
.footer__cols a:hover { color: var(--blood); }

.footer__base {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  padding-top: 2rem; border-top: 1px solid var(--ink); font-size: 0.82rem; color: var(--ink-soft);
}
.footer__base img { width: 150px; }

/* MOTION */
.load { opacity: 0; transform: translateY(24px); animation: rise 1s var(--ease) forwards; animation-delay: calc(var(--d) * 110ms + 100ms); }
.hero__image.load { transform: translateY(0) scale(1.03); animation-name: settle; animation-duration: 1.4s; }
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes settle { to { opacity: 1; transform: none; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .load, .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .bottega { grid-template-columns: minmax(0, 1fr); }
  .features { grid-column: 1; }
  .bottega__hands { grid-column: 1; grid-row: auto; position: static; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: end; }
}
@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__links { display: none; }
  .hero { grid-template-columns: 1fr; padding-right: var(--gutter); }
  .hero__image { order: -1; }
  .hero__rings { left: auto; right: -6%; bottom: -10%; }
  .voices, .footer { grid-template-columns: 1fr; }
  .voices__stage { min-height: 30rem; }
  .cta__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lavori__head { grid-template-columns: 1fr; }
  .lavori__head h2 { grid-row: auto; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 34vw, 280px); }
  .g, .g--wide { grid-column: span 1; }
  .g--big, .g--hero { grid-column: span 2; grid-row: span 1; }
  .g--hero { grid-row: span 2; }
  .g:last-child { grid-column: span 2; }
}
@media (max-width: 640px) {
  .nav .btn { display: none; }
  .hero__meta { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .hero__meta dd { font-size: 1.6rem; }
  .features { grid-template-columns: 1fr; }
  .features > .feature--image:first-of-type { grid-row: auto; }
  .feature--wide { grid-template-columns: auto 1fr; }
  .bottega__hands { grid-template-columns: 1fr; }
  .signup__row { grid-template-columns: 1fr; }
  .field { border-right: 0; border-bottom: 1px solid var(--rule); }
  .signup__btn { justify-content: center; padding-block: 1.1rem; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .voices__stage { min-height: 34rem; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 62vw; }
  .g, .g--wide, .g--big, .g--hero, .g:last-child { grid-column: auto; grid-row: auto; }
}
