:root {
  --ink: #16120e;
  --ink-soft: #3c342c;
  --muted: #5e564e;
  --cream: #f4efe6;
  --paper: #faf7f2;
  --white: #fffcf8;
  --line: rgba(22, 18, 14, 0.12);
  --wine: #6e2430;
  --gold: #8c6a3d;
  --gold-bright: #c6a36a;
  --cellar: #1a1410;
  --vine: #2f4a38;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --header: 128px;
  --wrap: 1140px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--paper);
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.12;
}

h1 {
  margin: 0.35rem 0 1rem;
  font-size: clamp(2.6rem, 5.4vw, 4.5rem);
}

h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 3.6vw, 3.15rem);
}

h3 {
  margin: 0 0 0.55rem;
  font-size: 1.65rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--wine);
  text-underline-offset: 0.16em;
}

button,
input,
select,
textarea {
  font: inherit;
  color: var(--ink);
}

::selection {
  background: #6e2430;
  color: var(--cream);
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--white);
  color: var(--ink);
  padding: 0.55rem 0.8rem;
}

.skip:focus {
  top: 0.7rem;
}

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

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

.kicker {
  margin: 0 0 0.45rem;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.lead {
  font-size: 1.12rem;
  max-width: 42rem;
  color: var(--ink-soft);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  min-height: var(--header);
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(14px);
  border-top: 3px solid #0e7c86;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.site-header.on-dark {
  background: transparent;
  border-bottom-color: transparent;
  color: var(--cream);
}

.site-header.on-dark.is-scrolled,
body.nav-open .site-header.on-dark {
  background: rgba(20, 16, 13, 0.96);
  border-bottom-color: rgba(244, 239, 230, 0.08);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header);
}

.logo {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.logo img {
  height: 58px;
  width: auto;
  max-width: none;
  margin: 0;
  display: block;
  background: transparent;
}

.site-header .logo {
  gap: 0.85rem;
  align-items: center;
  flex-shrink: 0;
}

.site-header .logo .logo-badge {
  width: 104px;
  height: 104px;
  object-fit: contain;
  flex: 0 0 auto;
}

.site-header .logo .logo-word {
  height: 44px;
  width: auto;
  display: block;
}

.site-header .logo-lock {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.22rem;
}

.site-header .logo-claim {
  color: #243033;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.012em;
  line-height: 1.15;
  white-space: nowrap;
}

.site-footer a.logo {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  width: fit-content;
  background: #fff;
  border-radius: 16px;
  padding: 0.45rem 0.85rem 0.45rem 0.45rem;
  margin: 0 0 0.85rem;
}

.site-footer .logo img {
  height: 72px;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  background: var(--wine);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.bars,
.bars::before,
.bars::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  position: relative;
}

.bars::before,
.bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.bars::before {
  top: -6px;
}

.bars::after {
  top: 6px;
}

.nav-panel {
  display: none;
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  left: 0;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.9rem;
  background: var(--cellar);
  color: var(--cream);
}

.site-header:not(.on-dark) .nav-panel {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
}

.nav-panel.is-open {
  display: flex;
}

.nav-panel a:not(.btn) {
  color: inherit;
  text-decoration: none;
  padding: 0.55rem 0.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.65rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-light {
  background: var(--cream);
  color: var(--ink);
}

.btn-light:hover {
  background: var(--gold-bright);
  color: var(--ink);
}

.btn-ink {
  background: var(--ink);
  color: var(--cream);
}

.btn-ink:hover {
  background: #3a2a22;
}

.btn-line {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.hero .btn-line:hover {
  background: rgba(244, 239, 230, 0.08);
}

.hero {
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(198, 163, 106, 0.16), transparent 55%),
    linear-gradient(180deg, #241910 0%, #120e0b 100%);
  color: var(--cream);
  padding: 7.4rem 0 4.2rem;
}

.hero h1,
.hero h2 {
  color: var(--cream);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  max-width: 11em;
}

.hero .lead {
  color: rgba(244, 239, 230, 0.82);
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.4rem 0 0.8rem;
}

.quiet {
  margin: 0;
  color: rgba(244, 239, 230, 0.68);
  font-size: 0.92rem;
}

.board {
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(212, 188, 148, 0.32);
  background: rgba(255, 248, 238, 0.04);
}

.board-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 0.9rem;
}

.board h2 {
  margin: 0;
  font-size: 1.45rem;
  color: var(--cream);
  letter-spacing: -0.02em;
}

.board-top .kicker,
.board-time {
  color: var(--gold-bright);
}

.board-time {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.plan-label {
  margin: 0.85rem 0 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.55);
}

.plan-steel,
.plan-wood {
  display: grid;
  gap: 0.5rem;
}

.plan-steel {
  grid-template-columns: 1fr 1fr;
}

.plan-wood {
  grid-template-columns: repeat(3, minmax(0, 0.7fr)) minmax(0, 1.3fr);
}

.tank {
  text-align: left;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 188, 148, 0.28);
  border-radius: 2px;
  min-height: 92px;
  padding: 0.6rem 0.65rem 0.7rem;
  cursor: pointer;
}

.tank::before {
  content: "";
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  margin-bottom: 0.4rem;
  background: #8a8176;
}

.tank.is-fermentazione::before {
  background: var(--gold-bright);
}

.tank.is-affinamento::before {
  background: #c47b86;
}

.tank.is-pronta::before {
  background: #8faf96;
}

.tank.is-vuota::before {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px #8a8176;
}

.tank strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.tank span,
.tank em {
  display: block;
  font-style: normal;
}

.tank span {
  color: var(--gold-bright);
  font-size: 0.82rem;
}

.tank em {
  margin-top: 0.28rem;
  color: rgba(244, 239, 230, 0.7);
  font-size: 0.78rem;
}

.tank.is-selected {
  border-color: var(--gold-bright);
  background: rgba(198, 163, 106, 0.12);
}

.tank.is-barrel {
  min-height: 0;
  text-align: center;
  border-radius: 40% / 46%;
  padding: 0.55rem 0.25rem 0.7rem;
}

.tank.is-barrel strong {
  font-size: 0.95rem;
}

.tank.is-barrel em {
  display: none;
}

.tank-detail {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(244, 239, 230, 0.12);
}

.tank-detail h3 {
  color: var(--cream);
  font-size: 1.45rem;
  margin-bottom: 0.25rem;
}

.tank-detail p:last-child {
  margin-bottom: 0;
  color: rgba(244, 239, 230, 0.82);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  color: rgba(244, 239, 230, 0.75);
  font-size: 0.78rem;
}

.legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  display: inline-block;
}

.dot-ferm { background: var(--gold-bright); }
.dot-aff { background: #c47b86; }
.dot-ready { background: #8faf96; }
.dot-empty { box-shadow: inset 0 0 0 1.5px #8a8176; }

.board-caption {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: rgba(244, 239, 230, 0.62);
}

.section {
  padding: 5rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 1.8rem;
}

#luoghi .section-head h2 {
  font-size: clamp(calc(2.25rem + 2pt), calc(4.1vw + 2pt), calc(3.55rem + 2pt));
}

.phases {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.75rem;
}

.phases li {
  border-top: 1px solid var(--ink);
  padding-top: 0.75rem;
}

.phases span {
  display: block;
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.phases strong {
  display: block;
  margin: 0.3rem 0 0.2rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.phases em {
  display: block;
  font-style: normal;
  font-size: 0.84rem;
  color: var(--muted);
}

.split,
.cellar-grid,
.contact-grid,
.footer-grid,
.audience {
  display: grid;
  gap: 1rem;
}

.split,
.cellar-grid {
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.panel {
  padding: 1.4rem 1.3rem 0.6rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.panel ul,
.module ul,
.aside-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.panel li,
.aside-card li {
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}

.panel-ink {
  background: var(--cellar);
  color: var(--cream);
  border-color: var(--cellar);
}

.panel-ink h3,
.panel-ink li {
  color: var(--cream);
}

.panel-ink li {
  border-top-color: rgba(244, 239, 230, 0.12);
}

.section-dark {
  background: var(--cellar);
  color: rgba(244, 239, 230, 0.84);
}

.section-dark h2,
.section-dark h3 {
  color: var(--cream);
}

.section-dark .kicker {
  color: var(--gold-bright);
}

.cellar-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cellar-grid li {
  padding: 0.9rem 0;
  border-top: 1px solid rgba(244, 239, 230, 0.12);
}

.cellar-grid strong {
  display: block;
  color: var(--cream);
  font-weight: 500;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.index-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 190px;
  padding: 1.05rem 1rem 1rem;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--line);
}

.index-card.wide {
  grid-column: 1 / -1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1rem;
  align-items: end;
}

.index-card span {
  font-size: 0.74rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
}

.index-card strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.index-card em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.95rem;
}

.index-card .more {
  margin-top: auto;
  color: var(--wine);
  font-size: 0.88rem;
  letter-spacing: 0;
  text-transform: none;
}

.section-follow {
  padding-top: 0;
}

.index-card:hover {
  border-color: var(--gold);
}

.audience {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.audience article {
  padding: 1.25rem 1.15rem 1.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--wine);
}

.audience article:nth-child(2) {
  border-top-color: var(--gold);
}

.audience article:nth-child(3) {
  border-top-color: var(--vine);
}

.audience p:last-child {
  margin-bottom: 0;
}

.link-rows a {
  display: grid;
  grid-template-columns: 11.5rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.link-rows a:last-child {
  border-bottom: 1px solid var(--line);
}

.link-rows strong {
  color: var(--ink);
  font-weight: 500;
}

.link-rows em {
  font-style: normal;
  color: var(--wine);
}

.link-rows a:hover strong {
  color: var(--wine);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-of-type {
  border-top: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0;
  color: var(--ink);
  font-weight: 500;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--gold);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  max-width: 65ch;
  margin-top: 0;
}

.cta-band {
  background: var(--cellar);
  color: rgba(244, 239, 230, 0.84);
  padding: 4.8rem 0;
}

.cta-band h2 {
  color: var(--cream);
  max-width: 14ch;
}

.cta-band .kicker {
  color: var(--gold-bright);
}

.cta-band .lead {
  color: rgba(244, 239, 230, 0.8);
}

.page-hero {
  padding: 8.5rem 0 1.2rem;
}

.page-hero h1 {
  max-width: 16ch;
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.crumb {
  margin: 0 0 1rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.crumb a {
  color: inherit;
}

.module {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.4rem;
  align-items: center;
  padding: 3rem 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 5.75rem;
}

.module.solo {
  grid-template-columns: minmax(0, 44rem);
}

.module.reverse .module-copy {
  order: 2;
}

.module.reverse .sheet {
  order: 1;
}

.module li {
  position: relative;
  margin: 0.4rem 0;
  padding-left: 0.95rem;
}

.module li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  position: absolute;
  left: 0;
  top: 0.55em;
}

.sheet {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.05rem 1.1rem 1.15rem;
}

.sheet-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding-bottom: 0.7rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.sheet-row {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 0.4rem 0.8rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(22, 18, 14, 0.06);
  font-size: 0.96rem;
}

.sheet-row b {
  font-weight: 500;
  color: var(--muted);
}

.tag {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--line);
  color: var(--wine);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-style: normal;
}

.contact-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  gap: 2.5rem;
  align-items: start;
  padding-bottom: 4.5rem;
}

.form-row {
  display: grid;
  gap: 1rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-size: 0.95rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.7rem;
  border: 1px solid rgba(22, 18, 14, 0.2);
  border-radius: 2px;
  background: var(--white);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}

.field-error {
  min-height: 1.2em;
  margin: 0.3rem 0 0;
  color: #8d2c2c;
  font-size: 0.88rem;
}

.field-check {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.7rem;
  align-items: start;
}

.field-check input {
  width: 1.1rem;
  height: 1.1rem;
  min-height: 0;
  margin-top: 0.25rem;
}

.field-check label {
  margin: 0;
}

.field-check .field-error {
  grid-column: 2;
}

.form-success {
  margin-top: 1rem;
  padding: 1rem 1rem 0.2rem;
  background: #eef3ee;
  border: 1px solid rgba(47, 74, 56, 0.25);
}

.aside-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.2rem 1.15rem 0.5rem;
  position: sticky;
  top: 6rem;
}

.aside-card h2 {
  font-size: 1.7rem;
}

.aside-card li {
  font-size: 0.98rem;
}

.draft-note {
  padding: 0.9rem 1rem;
  background: #f3e7d4;
  border: 1px solid rgba(140, 106, 61, 0.35);
  margin-bottom: 1.4rem;
}

.prose {
  max-width: 44rem;
  padding-bottom: 4rem;
}

.prose h2 {
  font-size: 1.7rem;
  margin-top: 2rem;
}

.site-footer {
  background: #14110e;
  color: #e7e0d6;
  padding: 3.2rem 0 1.3rem;
}

.footer-grid {
  grid-template-columns: 1.4fr 0.8fr 1fr 0.8fr;
  gap: 1.5rem;
}

.footer-compact {
  grid-template-columns: 1.4fr 0.7fr 0.8fr;
}

.site-footer .logo {
  margin-bottom: 0.7rem;
}

.site-footer p {
  color: rgba(231, 224, 214, 0.78);
}

.footer-label {
  margin: 0 0 0.45rem;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.site-footer a {
  display: block;
  color: inherit;
  text-decoration: none;
  margin: 0.28rem 0;
}

.site-footer a:hover {
  color: var(--gold-bright);
}

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(244, 239, 230, 0.1);
}

.footer-base p {
  margin: 0;
  font-size: 0.88rem;
}

.empty-page {
  min-height: 70vh;
  display: grid;
  align-items: center;
  padding-top: 8.5rem;
}

@media (min-width: 861px) {
  .nav-toggle {
    display: none;
  }

  .nav-panel,
  .nav-panel.is-open {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1.35rem;
    padding: 0;
    background: transparent;
    color: inherit;
    border: 0;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .cellar-grid,
  .contact-grid,
  .buy-page,
  .footer-grid,
  .audience,
  .pillars,
  .size-cards,
  .roles,
  .ai-steps ol,
  .module,
  .module.reverse {
    grid-template-columns: 1fr;
  }

  .buy-layout {
    flex-direction: column;
    align-items: flex-start;
  }

  .module.reverse .module-copy,
  .module.reverse .sheet {
    order: 0;
  }

  .phases,
  .index-grid {
    grid-template-columns: 1fr 1fr;
  }

  .index-card.wide {
    grid-template-columns: 1fr;
  }

  .aside-card {
    position: static;
  }

  .link-rows a {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 1.5rem));
  }

  .section {
    padding: 3.4rem 0;
  }

  .hero {
    padding-top: 6.6rem;
  }

  .phases,
  .index-grid,
  .plan-steel,
  .plan-wood {
    grid-template-columns: 1fr 1fr;
  }

  .tank.is-botte {
    grid-column: 1 / -1;
  }

  .hero-actions,
  .footer-base {
    flex-direction: column;
    align-items: flex-start;
  }

  .sheet-row {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
}

.hero-photo {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: stretch;
  color: var(--cream);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(6, 8, 7, 0.9) 0%, rgba(6, 8, 7, 0.72) 42%, rgba(6, 8, 7, 0.38) 100%);
}

.hero-photo-layout {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  gap: 2rem;
  width: min(1140px, calc(100% - 2.5rem));
  min-height: 100vh;
  margin: 0 auto;
  padding: var(--header) 0;
}

.hero-photo-copy {
  position: relative;
  z-index: 1;
  width: min(46rem, 100%);
  margin: 0;
  padding: 0;
}

.hero-photo h1 {
  max-width: 18em;
  font-size: clamp(2.15rem, 4.2vw, 3.35rem);
  color: #fffaf4;
}

.hero-photo h1,
.hero-photo .kicker {
  color: #fffaf4;
}

.hero-photo .kicker {
  display: inline-block;
  color: #c4a574;
}

.hero-photo .kicker::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 1px;
  margin-top: 0.75rem;
  background: #c4a574;
}

.hero-photo .lead {
  color: rgba(244, 239, 230, 0.9);
  max-width: 42rem;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.pillars article,
.size-cards article {
  margin: 0;
  padding: 1.35rem 1.25rem 1.15rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(22, 18, 14, 0.045);
}

.pillars article {
  border-top: 3px solid #0e7c86;
}

.pillars h2,
.size-cards h2 {
  font-size: clamp(1.45rem, 2vw, 1.85rem);
}

.pillars p:last-child,
.size-cards p:last-child {
  margin-bottom: 0;
}

.roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.roles article {
  margin: 0;
  padding: 1.35rem 1.25rem 0.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid #0e7c86;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(22, 18, 14, 0.045);
}

.roles h2 {
  font-size: clamp(1.45rem, 2vw, 1.85rem);
}

.role-line {
  margin-top: -0.35rem;
  color: var(--ink-soft);
}

.roles p:last-child {
  margin-bottom: 1rem;
}

@media (max-width: 980px) {
  .roles {
    grid-template-columns: 1fr;
  }
}

.size-label {
  margin: 1rem 0 0.3rem;
  color: #0e7c86;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ai-intro {
  max-width: 46rem;
  margin: 0 0 1.8rem;
}

.ai-figure {
  margin: 0 0 2rem;
  background: #f3ead8;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.ai-figure img {
  width: 100%;
  height: auto;
}

.ai-intro h3,
.ai-steps h3 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
}

.ai-steps {
  margin-top: 2.4rem;
}

.ai-steps ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: ai;
}

.ai-steps li {
  counter-increment: ai;
  margin: 0;
  padding: 1.25rem 1.15rem 1.05rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.ai-steps li::before {
  content: counter(ai);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: #0e7c86;
  color: #f4efe6;
  font-weight: 600;
}

.ai-steps strong,
.ai-steps span {
  display: block;
}

.ai-steps span {
  margin-top: 0.4rem;
  color: var(--ink-soft);
}

.place-grid,
.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.shot-grid {
  grid-template-columns: 1fr 1fr;
}

.place {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(22, 18, 14, 0.05);
}

.place img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: 0;
}

.place figcaption {
  padding: 0.9rem 1rem 1rem;
}

.place figcaption span {
  display: block;
  color: #0e7c86;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.place figcaption strong {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.shots-stage {
  background: #f7f3ec;
  color: #1c1916;
  padding: 5.4rem 0 5.8rem;
}

.shots-stage h2 {
  color: #1c1916;
}

.shots-stage .kicker {
  color: #0e7c86;
}

.shots-stage .lead {
  color: #4e4943;
}

.shots-stage .section-head {
  text-align: center;
  margin-bottom: 2rem;
}

.shots-stage .section-head h2::after {
  margin-inline: auto;
}

.wrap-wide {
  width: min(1240px, calc(100% - 2.5rem));
}

.shot {
  margin: 0;
  padding: 0;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: zoom-in;
  background: #fff;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.shot:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.34);
}

.shot img,
.shot canvas {
  width: 100%;
  height: auto;
  display: block;
  background: #eef2f0;
}

.shot-cap {
  display: block;
  padding: 0.95rem 1.15rem 1.05rem;
  background: #0e7c86;
  color: #f4efe6;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.shot-dialog {
  width: min(1120px, calc(100vw - 1.5rem));
  max-height: calc(100vh - 1.5rem);
  margin: auto;
  padding: 0.7rem 0.7rem 0.9rem;
  border: 0;
  border-radius: 16px;
  background: #101614;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.shot-dialog::backdrop {
  background: rgba(8, 10, 8, 0.84);
}

.shot-dialog img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: #fff;
}

.shot-dialog-title {
  margin: 0.75rem 0.35rem 0.2rem;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.55rem;
}

.shot-dialog form {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 0.45rem;
}

.shot-close {
  min-height: 40px;
  padding: 0.35rem 0.8rem;
  border: 0;
  border-radius: 2px;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.shot-dialog {
  position: relative;
}

.buy-band {
  background: #0e7c86;
  color: rgba(244, 239, 230, 0.92);
  padding: 4.2rem 0;
}

.buy-band h2 {
  color: var(--cream);
  max-width: 14ch;
}

.buy-band .kicker {
  color: #d7efe8;
}

.buy-band .lead {
  color: rgba(244, 239, 230, 0.88);
  max-width: 36rem;
}

.buy-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.buy-page {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  gap: 2.5rem;
  align-items: start;
  padding-bottom: 4.5rem;
}

.buy-points {
  display: grid;
  gap: 1rem;
}

.buy-points article {
  margin: 0;
  padding: 1.15rem 1.2rem 0.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.buy-box {
  padding: 1.4rem 1.3rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(22, 18, 14, 0.06);
}

.buy-box h2 {
  font-size: 2rem;
}

.price {
  margin: 0.2rem 0 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--ink);
}

.hero-photo .btn-line {
  color: var(--cream);
  border-color: rgba(244, 239, 230, 0.75);
}

.hero-photo .btn-line:hover {
  background: rgba(244, 239, 230, 0.12);
}

.nav-panel .btn {
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.shot.is-missing canvas {
  min-height: 220px;
}

.btn-ink {
  background: #0e7c86;
}

.btn-ink:hover {
  background: #0a656d;
}

@media (max-width: 800px) {
  .place-grid,
  .shot-grid {
    min-height: 0;
  }

  .hero-photo,
  .hero-photo-layout {
    min-height: 100svh;
  }

  .place-grid,
  .shot-grid {
    grid-template-columns: 1fr;
  }

  .hero-photo::after {
    background: linear-gradient(180deg, rgba(6, 8, 7, 0.62), rgba(6, 8, 7, 0.86));
  }

  .hero-photo-layout {
    flex-direction: column;
    align-items: flex-start;
    padding-top: calc(var(--header) + 1rem);
  }

  .site-header .logo .logo-badge {
    width: 72px;
    height: 72px;
  }

  .site-header .logo .logo-word {
    height: 34px;
  }

  .site-header .logo-claim {
    max-width: 11rem;
    font-size: 0.78rem;
    white-space: normal;
  }
}

.macro {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(212, 188, 148, 0.32);
  background: #120e0b;
}

.macro-blur {
  position: absolute;
  inset: -8%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  padding: 1.2rem;
  filter: blur(6px);
  opacity: 0.45;
}

.macro-blur span {
  min-height: 110px;
  border: 1px solid rgba(212, 188, 148, 0.35);
  background: rgba(255, 248, 238, 0.04);
}

.macro::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 46%, transparent 0 92px, rgba(18, 14, 11, 0.55) 150px, #120e0b 230px);
  z-index: 1;
}

.macro-focus {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  width: min(230px, 72%);
  padding: 1rem 0.95rem 1.05rem;
  background: rgba(28, 22, 18, 0.94);
  border: 1px solid var(--gold-bright);
  color: var(--cream);
}

.macro-focus .kicker,
.macro-focus em {
  color: var(--gold-bright);
}

.macro-focus strong {
  display: block;
  margin: 0.2rem 0 0.35rem;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.macro-focus em {
  font-style: normal;
  font-size: 0.92rem;
}

.macro figcaption {
  position: absolute;
  z-index: 2;
  left: 1rem;
  right: 1rem;
  bottom: 0.9rem;
  margin: 0;
  color: rgba(244, 239, 230, 0.72);
  font-size: 0.82rem;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.focus-grid article {
  padding: 1.25rem 1.1rem 0.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
}

.focus-grid p:last-child {
  margin-bottom: 1rem;
}

@media (max-width: 800px) {
  .focus-grid,
  .footer-compact {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}

@media (max-width: 980px) {
  .pillars,
  .size-cards,
  .ai-steps ol {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-photo h1 {
    font-size: 1.85rem;
  }

  .site-header .logo {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 3.2rem);
    gap: 0.5rem;
  }

  .site-header .logo-lock {
    min-width: 0;
    max-width: 100%;
  }

  .site-header .logo .logo-badge {
    width: 56px;
    height: 56px;
  }

  .site-header .logo .logo-word {
    height: 26px;
    max-width: 100%;
  }

  .site-header .logo-claim {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 0.72rem;
  }

  .hero-actions .btn {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-bg,
  .place img {
    animation: agri-ken 34s ease-in-out infinite alternate;
    will-change: transform;
  }

  .place:nth-child(2) img {
    animation-duration: 40s;
    animation-delay: -12s;
  }

  .place:nth-child(3) img {
    animation-duration: 36s;
    animation-delay: -20s;
  }

  [data-rise].is-in {
    opacity: 1;
    transform: none;
  }

  .pillars [data-rise]:nth-child(2),
  .place-grid [data-rise]:nth-child(2),
  .roles [data-rise]:nth-child(2),
  .shot-grid [data-rise]:nth-child(2) {
    transition-delay: 0.08s;
  }

  .pillars [data-rise]:nth-child(3),
  .place-grid [data-rise]:nth-child(3),
  .roles [data-rise]:nth-child(3),
  .shot-grid [data-rise]:nth-child(3) {
    transition-delay: 0.16s;
  }
}

@keyframes agri-ken {
  from { transform: scale(1.045); }
  to { transform: scale(1.11) translate3d(-1.1%, -0.7%, 0); }
}

#come-funziona.value-band {
  background: #141a18;
  color: rgba(255, 250, 244, 0.88);
}

#come-funziona.value-band .pillars h2 {
  color: #fffaf4;
}

#come-funziona.value-band .pillars p {
  color: rgba(255, 250, 244, 0.84);
}

#come-funziona.value-band .pillars article {
  background: rgba(255, 250, 244, 0.06);
  border-color: rgba(255, 250, 244, 0.16);
  box-shadow: none;
}

#luoghi,
#ruoli,
#assistente {
  padding-top: 5.4rem;
  background: #fbf8f3;
}

#multiutente {
  padding-top: 5.4rem;
  background: #f3eee6;
}

#luoghi .section-head h2,
#ruoli .section-head h2,
#multiutente .section-head h2,
#assistente .section-head h2,
#come-funziona .pillars h2 {
  font-optical-sizing: auto;
}

.place {
  padding: 0;
}

.place img {
  height: 440px;
  border-radius: 0;
}

.place figcaption {
  border-top: 1px solid rgba(22, 18, 14, 0.08);
  margin-top: 0.35rem;
}

.ai-figure {
  padding: 0.5rem;
  background: #f4ecdc;
  box-shadow: 0 18px 40px rgba(22, 18, 14, 0.05);
}

.ai-figure img {
  border-radius: 12px;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .pillars article,
  .roles article,
  .place {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
  }

  .pillars article:hover,
  .roles article:hover,
  .place:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(22, 18, 14, 0.07);
  }

  .shot:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 50px rgba(0, 0, 0, 0.34);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg,
  .place img,
  [data-rise] {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.section-head h2::after,
.shots-stage .section-head h2::after {
  content: "";
  display: block;
  width: 3.4rem;
  height: 3px;
  margin-top: 0.7rem;
  background: #0e7c86;
}

.section-head h2,
.shots-stage .section-head h2 {
  font-size: clamp(2.25rem, 4.1vw, 3.55rem);
}

@media (max-width: 800px) {
  .place img {
    height: 340px;
  }
}

html:has(.film) {
  scroll-snap-type: y proximity;
}

.site-header.on-photo {
  background: linear-gradient(180deg, rgba(250, 247, 242, 0.94) 0%, rgba(250, 247, 242, 0.82) 68%, rgba(250, 247, 242, 0) 100%);
  border-bottom-color: transparent;
  backdrop-filter: none;
}

.site-header.on-photo.is-scrolled,
body.nav-open .site-header.on-photo {
  background: rgba(250, 247, 242, 0.96);
  border-bottom-color: rgba(22, 18, 14, 0.12);
  backdrop-filter: blur(14px);
}

.site-footer {
  background: #101614;
}

.film {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 100svh;
  padding: calc(var(--header) + 1.25rem) 1.25rem 2.4rem;
  color: #fffaf4;
  text-align: center;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  scroll-margin-top: 0;
}

.film-hero {
  padding-top: var(--header);
  padding-bottom: 2.2rem;
}

.film-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.film-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.film-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(8, 10, 9, 0.55) 0%, rgba(8, 10, 9, 0.22) 52%, rgba(8, 10, 9, 0.48) 100%);
}

.film-hero .film-scrim {
  background:
    radial-gradient(ellipse at center, rgba(8, 10, 9, 0.62) 0%, rgba(8, 10, 9, 0.28) 48%, rgba(8, 10, 9, 0.5) 100%);
}

.film-place .film-scrim {
  background:
    radial-gradient(ellipse at center, rgba(8, 10, 9, 0.72) 0%, rgba(8, 10, 9, 0.4) 48%, rgba(8, 10, 9, 0.58) 100%);
}

.film-copy {
  position: relative;
  z-index: 1;
  width: min(52rem, 100%);
  margin-inline: auto;
  text-align: center;
}

.film-hero h1,
.film h2,
.film-line {
  color: #fffaf4;
}

.film-hero h1 {
  max-width: 16em;
  margin-inline: auto;
  font-size: clamp(2.5rem, 5.6vw, 4.8rem);
  line-height: 1.02;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.film h2 {
  max-width: none;
  margin: 0.15rem auto 0.55rem;
  font-size: clamp(4rem, 11vw, 8.5rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
  text-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.film .kicker {
  color: #c4a574;
  justify-content: center;
}

.film .kicker::after {
  content: "";
  display: block;
  width: 3.2rem;
  height: 2px;
  margin: 0.7rem auto 0;
  background: #0e7c86;
}

.film .lead {
  color: rgba(255, 250, 244, 0.9);
  max-width: 38rem;
  margin-inline: auto;
}

.film-kicker {
  margin: 0.8rem 0 0.15rem;
  color: #c4a574;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.film-line {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
}

.film .hero-actions {
  justify-content: center;
}

.film .btn-light {
  background: #0e7c86;
  color: #fffaf4;
  border-color: #0e7c86;
}

.film .btn-light:hover {
  background: #0a656d;
  color: #fffaf4;
}

.film .btn-line {
  color: #fffaf4;
  border-color: rgba(255, 250, 244, 0.72);
  background: transparent;
}

.film .btn-line:hover {
  background: rgba(255, 250, 244, 0.1);
}

.value-band {
  background: #141a18;
  color: rgba(255, 250, 244, 0.86);
  padding: 4.6rem 0 5rem;
  scroll-snap-align: start;
}

.value-band .pillars h2 {
  color: #fffaf4;
}

.value-band .pillars article {
  background: rgba(255, 250, 244, 0.04);
  border-color: rgba(255, 250, 244, 0.14);
  box-shadow: none;
}

.value-band .pillars p {
  color: rgba(255, 250, 244, 0.78);
}

#ruoli,
#multiutente,
#assistente {
  background: #f4efe6;
}

@media (prefers-reduced-motion: no-preference) {
  .film-bg {
    animation: agri-ken 38s ease-in-out infinite alternate;
  }

  .film-copy,
  .value-band .wrap {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  .film-hero h1 {
    font-size: 2.05rem;
  }

  .film h2 {
    font-size: clamp(3.1rem, 16vw, 4.2rem);
  }

  .film-copy {
    width: min(46rem, 100%);
    margin-inline: auto;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.film) {
    scroll-snap-type: none;
  }

  .film-bg,
  .film-copy,
  .value-band .wrap,
  .shot-zoom,
  .shot-zoom-back,
  .shot-tile {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.shots-stage {
  overflow: visible;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.shot-tile {
  position: relative;
  z-index: 1;
  display: block;
  aspect-ratio: 4 / 3;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #fff;
  color: #fffaf4;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
  box-shadow: 0 10px 28px rgba(22, 18, 14, 0.08);
  transition: transform 0.55s cubic-bezier(0.22, 0.8, 0.2, 1), box-shadow 0.55s ease;
}

.shot-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transform: scale(1);
  transition: transform 0.7s cubic-bezier(0.22, 0.8, 0.2, 1);
}

.shot-tile .shot-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 2.4rem 1rem 0.95rem;
  background: linear-gradient(180deg, rgba(12, 16, 14, 0) 0%, rgba(12, 16, 14, 0.88) 70%);
  color: #fffaf4;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  transform: none;
}

.shot-tile::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1.5px solid transparent;
  z-index: 2;
  pointer-events: none;
  transition: inset 0.45s ease, border-color 0.45s ease;
}

.shot-tile .shot-cap {
  transition: transform 0.45s ease;
}

@media (hover: hover) and (pointer: fine) {
  .shot-tile:hover,
  .shot-tile:focus-visible,
  .shot-tile.is-source {
    z-index: 5;
    transform: translateY(-12px) scale(1.04);
    box-shadow: 0 24px 48px rgba(22, 18, 14, 0.18);
  }
}

.shot-tile:hover img,
.shot-tile:focus-visible img,
.shot-tile.is-source img {
  transform: scale(1.06);
}

.shot-tile:hover::after,
.shot-tile:focus-visible::after,
.shot-tile.is-source::after {
  inset: 8px;
  border-color: rgba(255, 250, 244, 0.9);
}

.shot-tile:hover .shot-cap,
.shot-tile.is-source .shot-cap {
  transform: translateY(-8px);
}

.shot-zoom-back {
  position: fixed;
  inset: 0;
  z-index: 80;
  margin: 0;
  background: rgba(10, 12, 11, 0.46);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.shot-zoom-back.is-on {
  opacity: 1;
}

.shot-zoom {
  position: fixed;
  z-index: 90;
  margin: 0;
  overflow: hidden;
  background: #121816;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  transition:
    top 0.52s cubic-bezier(0.22, 0.8, 0.2, 1),
    left 0.52s cubic-bezier(0.22, 0.8, 0.2, 1),
    width 0.52s cubic-bezier(0.22, 0.8, 0.2, 1),
    height 0.52s cubic-bezier(0.22, 0.8, 0.2, 1);
}

.shot-zoom img {
  width: 100%;
  height: calc(100% - 3.3rem);
  object-fit: contain;
  object-position: center top;
  display: block;
  background: #fff;
}

.shot-zoom-title {
  margin: 0;
  padding: 0.7rem 1rem 0.85rem;
  color: #fffaf4;
  font-family: var(--serif);
  font-size: 1.45rem;
}

.shot-zoom-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  min-height: 36px;
  padding: 0.3rem 0.75rem;
  border: 0;
  background: #fffaf4;
  color: #1c1916;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

@media (prefers-reduced-motion: no-preference) {
  .shots-stage.is-in .shot-tile {
    animation: shot-rise 0.7s ease both;
  }

  .shots-stage.is-in .shot-tile:nth-child(2) { animation-delay: 0.05s; }
  .shots-stage.is-in .shot-tile:nth-child(3) { animation-delay: 0.1s; }
  .shots-stage.is-in .shot-tile:nth-child(4) { animation-delay: 0.15s; }
  .shots-stage.is-in .shot-tile:nth-child(5) { animation-delay: 0.2s; }
  .shots-stage.is-in .shot-tile:nth-child(6) { animation-delay: 0.25s; }
}

@keyframes shot-rise {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 800px) {
  .shot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }
}

@media (max-width: 520px) {
  .shot-grid {
    grid-template-columns: 1fr;
  }

  .shot-tile {
    aspect-ratio: 1;
  }
}

.shot-board {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 0.95fr);
  gap: 0.85rem;
  align-items: start;
  min-width: 0;
}

.shot-stage,
.shot-thumb {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  color: inherit;
  font: inherit;
  text-align: left;
  background: #0c1210;
}

.shot-stage {
  border-radius: 18px;
  cursor: zoom-in;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
}

.shot-stage img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center center;
  transform: scale(1);
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.shot-stage.is-swapping img {
  animation: shot-forward 0.45s ease;
}

.shot-stage .shot-cap,
.shot-thumb .shot-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  transform: translateY(110%);
  transition: transform 0.45s ease;
}

.shot-stage:hover .shot-cap,
.shot-stage.is-chosen .shot-cap,
.shot-thumb:hover .shot-cap {
  transform: translateY(0);
}

.shot-rail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  min-width: 0;
  align-content: stretch;
}

.shot-thumb {
  border-radius: 12px;
  cursor: pointer;
  opacity: 0.78;
  transform: scale(0.98);
  transition: transform 0.45s ease, opacity 0.45s ease, box-shadow 0.45s ease;
}

.shot-thumb img {
  width: 100%;
  height: 8.5rem;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.shot-thumb:hover,
.shot-thumb.is-active {
  opacity: 1;
  transform: scale(1.04);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.38);
  z-index: 1;
}

.shot-thumb .shot-cap {
  font-size: 1.05rem;
  padding: 0.55rem 0.7rem 0.65rem;
}

@keyframes shot-forward {
  from {
    opacity: 0.35;
    transform: scale(1.06) translateY(14px);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 800px) {
  .shot-board {
    grid-template-columns: minmax(0, 1fr);
  }

  .shot-stage,
  .shot-stage img {
    min-height: 0;
  }

  .shot-rail {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    padding-bottom: 0.35rem;
    max-width: 100%;
  }

  .shot-thumb {
    flex: 0 0 46%;
    scroll-snap-align: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shot-stage img,
  .shot-thumb,
  .shot-stage .shot-cap,
  .shot-thumb .shot-cap {
    animation: none;
    transition: none;
    transform: none;
  }
}
