@font-face {
  font-family: Cormorant;
  src: url("assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --paper: #eee8df;
  --ink: #2a1e21;
  --subtle: #645354;
  --line: #c9b9ad;
  --nav-height: clamp(64px, 9.4svh, 104px);
  --outer: clamp(24px, 5vw, 96px);
  --section: clamp(60px, 8.2vw, 137px);
  --serif: Cormorant, Georgia, serif;
  background: #282a2c;
  color: var(--ink);
  font-family: Manrope, Arial, sans-serif;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

@media (prefers-reduced-motion: no-preference) {
  ::view-transition { background: #170d10; }
  ::view-transition-group(root) { animation: none; }
  ::view-transition-old(root) {
    animation: page-fade-out .26s ease-in both;
    mix-blend-mode: normal;
  }
  ::view-transition-new(root) {
    animation: page-fade-in .43s cubic-bezier(.22, .68, .3, 1) .17s both;
    mix-blend-mode: normal;
  }

  .page-arriving::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    background: #170d10;
    animation: page-fade-out .43s ease-out both;
  }
}
@keyframes page-fade-out { to { opacity: 0; } }
@keyframes page-fade-in { from { opacity: 0; } }

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure { margin: 0; }
body { min-width: 280px; background: var(--paper); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button[disabled] { cursor: default; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.frame { width: min(calc(100% - 2 * var(--outer)), 1660px); margin-inline: auto; }
.skip { position: fixed; top: 10px; left: var(--outer); z-index: 20; padding: 10px 15px; background: var(--paper); color: var(--ink); transform: translateY(-145%); }
.skip:focus { transform: none; }

@font-face {
  font-family: Anton;
  src: url("assets/fonts/anton-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Nothing You Could Do";
  src: url("assets/fonts/nothing-you-could-do-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

.entry-open { overflow: hidden; }
.entry {
  --entry-progress: 0%;
  --entry-gold:
    linear-gradient(105deg, #b67e3033, #fff1a754 38%, #fff5be70 61%, #be832833),
    linear-gradient(#fff1bc 0%, #e4ba64 31%, #ba8531 54%, #86551c 81%, #bf914a 100%);
  inset: 0;
  position: fixed;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 24px;
  color: #f5ecdb;
  background: radial-gradient(ellipse at 50% 40%, #2d241c, #110e0d 56%, #080707 90%);
}
.entry[open] { display: grid; place-items: center; }
.entry::backdrop { background: transparent; }
.entry-inner {
  display: grid;
  justify-items: center;
  width: min(100%, 550px);
  padding-block: 18px;
}
.entry-logo {
  position: relative;
  width: clamp(132px, min(22vw, 45svh), 310px);
  aspect-ratio: 710 / 526;
}
.entry-logo img { position: absolute; inset: 0; object-fit: contain; }
.entry-logo img:first-child { filter: grayscale(1) brightness(1.13) contrast(1.03); }
.entry-logo-gold { clip-path: inset(calc(100% - var(--entry-progress)) 0 0); }
.entry-meter {
  position: relative;
  width: min(100%, 360px);
  margin-top: clamp(37px, 8svh, 73px);
}
.entry-track {
  block-size: 13px;
  padding: 1px;
  border: 1px solid #8d74534d;
  border-radius: 99px;
  background: linear-gradient(#0a0807, #231c16);
  box-shadow: inset 0 2px 5px #070605, 0 1px 0 #f3d6a423;
}
.entry-fill {
  width: var(--entry-progress);
  height: 100%;
  border-radius: inherit;
  background: var(--entry-gold);
  box-shadow: inset 0 1px 0 #fff2bd9e, 0 1px 4px #080604c9;
}
.entry-percent {
  position: absolute;
  bottom: calc(100% + 9px);
  left: clamp(24px, var(--entry-progress), calc(100% - 24px));
  transform: translateX(-50%);
  min-width: 46px;
  padding: 3px 5px;
  border: 1px solid #eed4a34a;
  border-radius: 6px;
  background: linear-gradient(#3d3227, #251d16);
  box-shadow: 0 3px 9px #0006, inset 0 1px 0 #f4dfbc25;
  color: #f6e8ca;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.entry-percent::after {
  content: "";
  position: absolute;
  top: calc(100% - 2px);
  left: calc(50% - 2px);
  width: 5px;
  height: 5px;
  transform: rotate(45deg);
  border: solid #eed4a34a;
  border-width: 0 1px 1px 0;
  background: #251d16;
}
.entry-actions {
  display: grid;
  place-items: center;
  min-height: 47px;
  margin-top: 27px;
  width: 100%;
}
.entry-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: min(100%, 374px);
}
.entry-choices button {
  --entry-button-corner: 34px;
  position: relative;
  isolation: isolate;
  min-height: 47px;
  padding: 9px;
  border: 0;
  border-radius: 0 var(--entry-button-corner) 0 var(--entry-button-corner);
  background: transparent;
  box-shadow: 2px 4px 4px #070504b3, 5px 11px 17px #0705049e, 8px 18px 27px #07050459;
  color: #251e16;
  text-shadow: 0 1px 0 #fffdf5b3;
  font-size: clamp(13px, 1.2vw, 14px);
  font-weight: 750;
  transition: box-shadow .16s ease;
}
.entry-choices button::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border: 2px solid transparent;
  border-radius: 0 var(--entry-button-corner) 0 var(--entry-button-corner);
  background:
    repeating-linear-gradient(112deg, #4d473414 0 .5px, transparent .5px 1.5px, #fff4 1.5px 2px) padding-box,
    radial-gradient(ellipse at 5% 55%, #fff6d7f2, #fff6d784 25%, transparent 54%) padding-box,
    radial-gradient(ellipse at 100% 61%, #fff0caf2, #fff0c956 24%, transparent 44%) padding-box,
    linear-gradient(180deg, #a19f98, #d7d7d4 16%, #fbfaf6 44%, #e4e3e1 61%, #c8c7c3 87%, #9d9a91) padding-box,
    linear-gradient(156deg, #fbefa6, #a37130 26%, #f3d881 53%, #815d24 77%, #fff2a8) border-box;
  box-shadow: inset 0 2px 4px #221a1485, inset 0 -1px 0 #74604485, 0 0 12px #d3a75a2b;
  pointer-events: none;
  transition: filter .16s ease;
}
.entry-choices [data-inline] { border-radius: var(--entry-button-corner) 0 var(--entry-button-corner) 0; }
.entry-choices [data-inline]::before { transform: scaleX(-1); }
.entry-choices [data-mobile] { display: none; }
.entry-choices button:hover::before { filter: brightness(1.08); }
.entry-choices button:active { box-shadow: 1px 2px 3px #070504a8, 3px 5px 9px #07050487; }
.entry-choices button:active::before { filter: brightness(.94); }
.entry-choices button:focus-visible { outline-color: #f8d99a; outline-offset: 3px; }
.entry.is-ready .entry-choices { animation: entry-ready .4s ease-out both; }
.entry.is-leaving { animation: entry-exit .74s cubic-bezier(.24,.06,.24,1) both; }
.entry.is-leaving .entry-inner { animation: entry-mark-exit .51s cubic-bezier(.32,0,.45,1) both; }
@keyframes entry-ready { from { opacity: 0; transform: translateY(7px); } }
@keyframes entry-exit { 0%, 16% { opacity: 1; } to { opacity: 0; } }
@keyframes entry-mark-exit { to { opacity: 0; transform: translateY(-16px) scale(.97); } }
.masthead-actions { display: flex; align-items: center; gap: clamp(12px, 2vw, 34px); }
.audio-toggle {
  min-height: 44px;
  min-width: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: calc(clamp(11px, 1vw, 15px) * .6);
}
.audio-toggle:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 767px), (hover: none) and (pointer: coarse) {
  .entry-meter { width: min(100%, 275px); }
  .entry-choices { grid-template-columns: 1fr; width: min(72%, 240px); }
  .entry-choices [data-fullscreen], .entry-choices [data-inline] { display: none; }
  .entry-choices [data-mobile] { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .entry-logo-gold { clip-path: inset(100% 0 0); }
  .entry.is-ready .entry-logo-gold { clip-path: none; }
  .entry.is-ready .entry-choices, .entry.is-leaving, .entry.is-leaving .entry-inner { animation: none; }
}

.masthead {
  position: fixed;
  inset: 0 0 auto;
  z-index: 5;
  color: #f7f2eb;
  height: var(--nav-height);
  text-shadow: 0 1px 12px #1113189c;
  pointer-events: none;
}
body.at-notebook .masthead { color: #151515; }
@media (prefers-reduced-motion: no-preference) {
  .masthead { transition: color .28s ease-in-out; }
}
.masthead a, .masthead button { pointer-events: auto; }
.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding-inline: 3.25% 2.35%;
}
.wordmark, .book-link { display: inline-flex; align-items: center; min-height: 44px; }
.masthead .wordmark { font-size: calc(clamp(20px, 2.1vw, 38px) * .6); font-weight: 520; letter-spacing: .015em; line-height: 1; }
.book-link { font-size: calc(clamp(15px, 1.35vw, 24px) * .6); font-weight: 550; }
.book-link:hover { text-decoration: underline; text-underline-offset: 5px; }

main { background: var(--paper); }
.runway {
  --gutter: 3.9vw;
  --split: 48.4%;
  --look-height: max(100svh, 410px);
  position: relative;
  background: #27292b;
  color: #f5ebdb;
}
.look-cue { position: absolute; top: calc(var(--look-height) * var(--cue)); }
#orecchino { --cue: 1; }
#collana { --cue: 2; }
#anello { --cue: 3; }
#argento { --cue: 4; }
#lavorazione { --cue: 5; }
.runway-stage { position: relative; isolation: isolate; }
.look { position: relative; height: var(--look-height); overflow: hidden; }
.look-photo { position: absolute; inset: 0; }
.portrait { background: #282a2c; }
.portrait .look-photo { transform-origin: 77% 65%; }
.portrait .look-photo img { object-position: 56% 45%; }
.smoke {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--split);
  background: rgba(48, 47, 47, .13);
  backdrop-filter: blur(clamp(7px, .62vw, 13px)) saturate(.94);
}
.portrait-copy {
  --portrait-copy-top: 19.65%;
  position: absolute;
  top: calc(var(--portrait-copy-top) + clamp(19.5px, 2.626vw, 48.1px));
  left: var(--gutter);
}
.look-label, .look-description {
  font-size: clamp(15px, 2.02vw, 37px);
  font-weight: 530;
  line-height: 1.3;
}
.portrait h1 {
  margin: 3.25svh 0 0 -.018em;
  font: 400 clamp(48px, min(11.67vw, 18.65svh), 234px)/.995 Anton, Impact, sans-serif;
  letter-spacing: -.012em;
  text-transform: uppercase;
  transform: scaleX(.76);
  transform-origin: left top;
}
.portrait h1 span { display: block; width: max-content; }
.portrait h1 span:first-child { transform: scaleX(.95); transform-origin: left; }
.look-description { margin-top: 2.8svh; }
.macro, .feature { background: #202123; }
.macro .look-photo { transform-origin: 70% 51%; }
.macro .look-photo img { object-position: 73% 51%; }
.necklace .look-photo { transform-origin: 72% 60%; }
.ring .look-photo { transform-origin: 72% 56%; }
.feature .look-photo img { object-position: 67% 53%; }
.silver { background: #211218; }
.silver .look-photo { transform-origin: 73% 52%; }
.look-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #161719c9 0%, #15161877 25%, transparent 61%);
  pointer-events: none;
}
.feature .look-shade { background: linear-gradient(90deg, #161719d6 0%, #1516188c 29%, transparent 57%); }
.silver .look-shade { background: linear-gradient(90deg, #2112189c, #2112183d 35%, transparent 61%); }
.look-copy {
  position: absolute;
  left: var(--gutter);
  bottom: 14.5%;
  width: min(39vw, 560px);
}
.look-copy .look-label { font-size: clamp(12px, 1.12vw, 19px); }
.look-copy h2 {
  margin: .22em 0;
  font: 400 clamp(48px, 6.5vw, 118px)/.96 Anton, Impact, sans-serif;
  letter-spacing: -.02em;
  text-transform: uppercase;
  transform: scaleX(.83);
  transform-origin: left;
}
.look-copy > p:not(.look-label) {
  max-width: 35ch;
  font-size: clamp(14px, 1.24vw, 21px);
  line-height: 1.48;
}

.motion-enabled .runway { height: calc(var(--look-height) * 5.94); }
.atelier-scroll-lock {
  overflow: hidden;
  overscroll-behavior: none;
}
.motion-enabled .runway-stage { position: sticky; top: 0; height: var(--look-height); overflow: clip; }
.motion-enabled .runway-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #000;
  pointer-events: none;
  opacity: var(--runway-black, 0);
}
.motion-enabled .look { position: absolute; inset: 0; }
:is(.motion-enabled, .is-preparing-motion) :is(.look:not(.portrait), .work):not(.is-prepared) { content-visibility: hidden; }
.motion-enabled #orecchino { --cue: .88; }
.motion-enabled #collana { --cue: 1.82; }
.motion-enabled #anello { --cue: 2.74; }
.motion-enabled #argento { --cue: 3.66; }
.motion-enabled #lavorazione { --cue: 4.83; scroll-margin-top: 0; }
.motion-enabled .macro {
  clip-path: inset(0 0 0 var(--macro-edge, 100%));
  visibility: var(--macro-visibility, hidden);
}
.motion-enabled .portrait .look-photo {
  transform: translate3d(var(--portrait-x, 0px), 0, 0) scale(var(--portrait-scale, 1));
}
.motion-enabled .smoke {
  transform: translate3d(var(--smoke-x, 0%), 0, 0);
  visibility: var(--smoke-visibility, visible);
}
.motion-enabled .portrait-copy {
  opacity: var(--portrait-alpha, 1);
  transform: translate3d(var(--portrait-copy-x, 0px), 0, 0);
}
@media (prefers-reduced-motion: no-preference) {
  .portrait.is-awaiting-entry :is(.smoke, .portrait-copy) { visibility: hidden; }
  .portrait.is-awaiting-entry .look-photo::after { opacity: 0; }
  .portrait.is-entering .smoke {
    animation: portrait-panel-in .67s cubic-bezier(.22,.66,.27,1) .56s both;
  }
  .portrait.is-entering .look-photo::after {
    animation: portrait-shade-in .67s ease .56s both;
  }
  .portrait.is-entering h1 {
    animation: portrait-copy-in .56s cubic-bezier(.2,.65,.3,1) 1.27s both;
  }
  .portrait.is-entering .look-description {
    animation: portrait-copy-in .48s cubic-bezier(.2,.65,.3,1) 1.48s both;
  }
}
@keyframes portrait-panel-in {
  from { translate: -101% 0; }
  to { translate: 0 0; }
}
@keyframes portrait-shade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes portrait-copy-in {
  from { opacity: 0; translate: 0 15px; }
  to { opacity: 1; translate: 0 0; }
}
.motion-enabled .macro .look-photo {
  transform: translate3d(var(--macro-x, 0px), 0, 0) scale(var(--macro-scale, 1));
}
.motion-enabled .macro .look-copy {
  opacity: var(--macro-alpha, 0);
  transform: translate3d(0, var(--macro-copy-y, 0px), 0);
}
.motion-enabled .feature { visibility: var(--look-visibility, hidden); }
.motion-enabled .necklace { clip-path: inset(var(--look-edge, 100%) 0 0 0); }
.motion-enabled .ring { clip-path: inset(0 0 0 var(--look-edge, 100%)); }
.motion-enabled .silver {
  clip-path: inset(0 calc(var(--look-edge, 100%) * .30) 0 calc(var(--look-edge, 100%) * .70));
}
.motion-enabled .feature .look-photo {
  transform: translate3d(var(--look-photo-x, 0px), var(--look-photo-y, 0px), 0) scale(var(--look-scale, 1));
}
.motion-enabled .feature .look-copy {
  opacity: var(--look-alpha, 0);
  transform: translate3d(0, var(--look-copy-y, 0px), 0);
}

@media (max-aspect-ratio: 3/4) {
  .runway { --gutter: 5.2vw; --split: 53%; --look-height: max(100svh, 555px); }
  .portrait .look-photo img { object-position: 57% 37%; }
  .portrait .look-photo::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 28%;
    background: linear-gradient(transparent, #282a2c);
  }
  .smoke { top: 34%; background-color: rgba(48, 47, 47, .16); backdrop-filter: blur(8px) saturate(.94); }
  .portrait-copy { --portrait-copy-top: 44%; }
  .portrait h1 { font-size: clamp(43px, 15.1vw, 122px); margin-top: 1.3svh; transform: scaleX(.65); }
  .look-description { max-width: 16ch; margin-top: 1.25svh; }
  .macro .look-photo { bottom: 18%; }
  .feature .look-photo { bottom: 24%; }
  :is(.necklace, .silver) .look-photo { bottom: auto; height: min(76%, 160vw); }
  :is(.necklace, .silver) .look-photo::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 12%;
    background: linear-gradient(transparent, var(--photo-fade, #191a1c));
  }
  .silver { --photo-fade: #211218; }
  .macro .look-photo img { object-position: 67% 45%; }
  .feature .look-photo img { object-position: 55% 48%; }
  .look-shade { background: linear-gradient(0deg, #191a1c 15%, #191a1cf0 24%, #191a1c3b 48%, transparent 64%); }
  .feature .look-shade { background: linear-gradient(0deg, #191a1c 22%, #191a1ce0 27%, transparent 43%); }
  .silver .look-shade { background: linear-gradient(0deg, #211218 23%, #211218eb 27%, transparent 46%); }
  .look-copy { bottom: 5.5%; width: min(87vw, 510px); }
  .look-copy h2 { font-size: clamp(42px, 12.4vw, 81px); }
}

@media (max-height: 520px) and (min-aspect-ratio: 3/4) {
  .portrait-copy { --portrait-copy-top: 19%; }
  .portrait h1 { font-size: clamp(42px, 19svh, 100px); }
  .look-copy { bottom: 7%; }
  .look-copy h2 { font-size: clamp(40px, 11.5svh, 60px); }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}

.booking, .footer {
  --atelier-ink: #f4ebde;
  --atelier-muted: #d2c6bc;
  --atelier-rule: #f4ebde37;
  color: var(--atelier-ink);
}

.work {
  color: #161514;
  background: url("assets/atelier/taccuino-bordo.webp") left top / 24px auto repeat-y,
              #cacaca url("assets/atelier/taccuino-carta.webp") repeat;
}
.motion-enabled .work {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: var(--atelier-reveal, 0);
  visibility: var(--atelier-visibility, hidden);
}
:is(.motion-enabled, .is-preparing-motion) .work:not(.is-prepared) { background-image: none; }
.process {
  --book-height: var(--look-height);
  --book-art-width: min(100vw, calc(var(--book-height) * 1.406));
  --book-left: 4.28vw;
  --book-top: clamp(65px, 8.15svh, 116px);
  --pencil-hand: "Nothing You Could Do", "Segoe Print", cursive;
  display: grid;
  position: relative;
  isolation: isolate;
  overflow: clip;
  grid-template-columns: minmax(0, 1fr) 29.72vw;
  grid-template-areas: "title detail" "draw detail";
  grid-template-rows: auto minmax(0, 1fr);
  column-gap: 3.04vw;
  height: var(--book-height);
  padding: var(--book-top) 0 clamp(72px, 13.4svh, 146px) var(--book-left);
}
.notebook-sheet { display: none; }
.notebook-finish {
  position: relative;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  clip-path: inset(0 0 0 100%);
  transition: opacity .32s .08s, clip-path 1.26s cubic-bezier(.3,.08,.26,1);
}
.is-realized .notebook-finish { opacity: 1; clip-path: inset(0); }
.process-heading {
  position: relative;
  grid-area: title;
  min-width: 0;
  padding-bottom: calc(clamp(11px, 1.56svh, 22px) + 1px);
}
.process-heading::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: #383534;
}
.process h2 { position: relative; display: flex; align-items: center; height: clamp(71px, 14svh, 150px); }
.notebook-title-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.notebook-title-art {
  position: relative;
  width: min(96%, 66.5svh);
  height: 94%;
}
.notebook-title-art img {
  object-fit: contain;
  object-position: left center;
}
.notebook-title-gold {
  filter: drop-shadow(0 2px 1px #622e0c24);
}
.notebook-title-pencil {
  display: none;
  position: absolute;
  inset: 0;
}
.notebook-title-pencil img { filter: grayscale(1) brightness(.72) contrast(.87); }
.notebook-title-pencil::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(125deg, #2625247a 0 1px, transparent 1px 3px),
    repeating-linear-gradient(163deg, transparent 0 4px, #2c292969 4px 5px, transparent 5px 7px);
  mask: url("assets/atelier/taccuino-titolo.webp") left center / contain no-repeat;
  mix-blend-mode: multiply;
  opacity: .52;
}
.notebook-figure {
  display: flex;
  flex-direction: column;
  justify-content: center;
  grid-area: draw;
  gap: 8px;
  min-height: 0;
}
.notebook-art {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  aspect-ratio: 946 / 639;
  min-height: 0;
}
.notebook-drawing, .notebook-finish { grid-area: 1 / 1; }
.notebook-drawing, .notebook-finish img {
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.process[data-project] :is(.notebook-drawing, .notebook-finish img) { mix-blend-mode: normal; }
.notebook-drawing { pointer-events: none; transition: opacity .55s .12s; }
.is-realized .notebook-drawing { opacity: 0; }
.notebook-caption {
  display: grid;
  place-items: center;
  font-size: clamp(18px, 1.9vw, 32px);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}
.notebook-caption span { grid-area: 1 / 1; transition: opacity .34s .24s ease; }
.notebook-caption-pencil {
  font: 400 1em/1.2 var(--pencil-hand);
  color: #292421;
}
.notebook-caption-print, .is-realized .notebook-caption-pencil { opacity: 0; }
.is-realized .notebook-caption-print { opacity: 1; }
@media (min-width: 901px) {
  .process:not([data-project]) :is(.notebook-sheet, .notebook-finish) {
    display: block;
    position: absolute;
    z-index: -1;
    grid-area: auto;
    inset: 0 auto auto 0;
    width: min(100%, var(--book-art-width));
    height: auto;
    mask-image: linear-gradient(90deg, #000 86%, transparent);
    pointer-events: none;
  }
  .process:not([data-project]) .notebook-finish img { height: auto; mix-blend-mode: normal; }
  .process:not([data-project]) .notebook-drawing { position: absolute; opacity: 0; }
  .process:not([data-project]) .notebook-caption {
    position: absolute;
    top: calc(var(--book-art-width) * .62);
    left: calc(var(--book-art-width) * .357);
    translate: -50% 0;
  }
  .process[data-project] .notebook-figure { width: min(100%, calc(var(--book-height) * 1.11)); }
}
.notebook-detail {
  position: relative;
  display: grid;
  grid-area: detail;
  min-width: 0;
  min-height: 0;
}
.notebook-invite {
  align-self: center;
  justify-self: start;
  margin-inline-end: clamp(14px, 2.6vw, 42px);
  transform: rotate(-.65deg);
  transition: opacity .38s ease, transform .49s cubic-bezier(.42,0,.64,.75);
}
.notebook-invite p {
  font: 400 clamp(20px, 2.06vw, 37px)/1.24 var(--pencil-hand);
  color: #292421;
}
.notebook-invite p span { display: block; width: max-content; max-width: 100%; }
.notebook-reveal {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, clamp(215px, 21vw, 340px));
  aspect-ratio: 3.7;
  min-height: 54px;
  margin-top: 13px;
  padding: .12em .9em .47em;
  color: #27201a;
  background: transparent;
  border: 0;
  font: 400 clamp(16px, 1.5vw, 25px)/1.15 var(--pencil-hand);
  text-shadow: .2px 0 currentColor;
  mix-blend-mode: multiply;
  isolation: isolate;
}
.notebook-reveal::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("assets/atelier/taccuino-pulsante.webp") center / 100% 100% no-repeat;
  pointer-events: none;
}
.notebook-reveal:hover::before, .notebook-reveal:focus-visible::before { filter: contrast(1.14); }
.notebook-error { display: block; color: #6e1729; padding-top: 6px; }
.notebook-reveal:disabled { opacity: .72; }
.notebook-gallery {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: clamp(13px, 2.4svh, 26px);
  position: absolute;
  inset: 0 clamp(14px, 2.6vw, 42px) 0 0;
}
.notebook-gallery:focus { outline: none; }
.notebook-gallery figure {
  position: relative;
  display: grid;
  min-height: 0;
  border: 4px solid transparent;
  border-image: linear-gradient(136deg, #fcf8ed, #aaa6a0 20%, #eae5d9 45%, #534d46 69%, #aaa69b) 1;
  background: #302a25;
  box-shadow: 0 14px 27px #2018134d, 0 3px 4px #21171183;
}
.notebook-gallery figure img { min-height: 0; }
.notebook-gallery figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 14px 10px 7px;
  background: linear-gradient(transparent, #221915d4);
  color: #fff6e8;
  font-size: clamp(12px, 1.05vw, 17px);
  font-weight: 650;
}
.notebook-pager {
  position: absolute;
  inset-inline: 0 clamp(14px, 2.6vw, 42px);
  top: calc(100% + clamp(6px, 1.7svh, 18px));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.3vw, 22px);
  color: #22201f;
  font: 400 clamp(17px, 1.68vw, 27px)/1.2 var(--pencil-hand);
  white-space: nowrap;
}
.notebook-pager button {
  display: grid;
  place-items: center;
  width: clamp(44px, 3.45vw, 56px);
  aspect-ratio: 1;
  padding: 3px;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: inherit;
}
.notebook-pager button[aria-disabled="true"] { cursor: wait; }
.notebook-pager button:hover { background: #46372a13; }
.notebook-pager button:active { opacity: .7; }
.notebook-pager img { object-fit: contain; }
.notebook-pager [data-page-step="1"] img { transform: scaleX(-1); }
.notebook-page-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.is-realized .notebook-invite { opacity: 0; transform: rotate(1.5deg) translate(5%, 14px); pointer-events: none; }
.is-swapping :is(.notebook-drawing, .notebook-finish, .notebook-caption span, .notebook-invite) { transition: none; }
.is-revealing .notebook-gallery figure { animation: gallery-in .74s cubic-bezier(.22,.74,.34,1) both; animation-delay: .66s; }
.is-revealing .notebook-gallery figure:nth-child(2) { animation-delay: .80s; }
.is-revealing .notebook-gallery figure:nth-child(3) { animation-delay: .94s; }
@keyframes gallery-in { from { opacity: 0; transform: translateX(40px) rotate(1.9deg); } }
@media (prefers-reduced-motion: no-preference) {
  .motion-enabled .work:not(.is-composed) :is(
    .notebook-title-gold, .notebook-sheet, .notebook-drawing, .notebook-caption,
    .notebook-invite p span, .notebook-reveal, .notebook-pager
  ),
  .motion-enabled .work:not(.is-composed) .process-heading::after { visibility: hidden; }
  .work.is-prepared:not(.is-composed) .notebook-title-pencil { display: block; visibility: hidden; }
  .is-writing .notebook-title-pencil {
    animation: trace-title .98s steps(34, end) .18s both, lift-graphite .34s ease 1.06s forwards;
  }
  .is-writing .notebook-title-gold { animation: finish-title .34s ease 1.06s both; }
  .is-writing .process-heading::after { animation: pencil-reveal .38s ease-out 1.02s both; }
  .is-writing :is(.notebook-sheet, .notebook-drawing) { animation: pencil-reveal .74s ease-out 1.43s both; }
  .is-writing .notebook-caption { animation: pencil-reveal .44s steps(25, end) 2.22s both; }
  .is-writing .notebook-invite p span { animation: pencil-reveal .44s steps(23, end) 2.65s both; }
  .is-writing .notebook-invite p span:nth-child(2) { animation-delay: 3.09s; animation-duration: .41s; }
  .is-writing .notebook-reveal { animation: pencil-reveal .29s steps(22, end) 3.50s both; }
  .is-writing .notebook-pager { animation: pencil-reveal .3s steps(28, end) 3.92s both; }
  .notebook-reveal, .notebook-reveal::before { transition: transform .16s ease, filter .16s ease; }
  .notebook-reveal:active { transform: translateY(2px); }
  @media (hover: hover) {
    .notebook-reveal:not(:active):hover { transform: translateY(-2px); }
  }
}
@keyframes trace-title {
  from { visibility: hidden; clip-path: polygon(0 0, 0 0, 0 32%, 0 66%, 0 100%, 0 100%); }
  to { visibility: visible; clip-path: polygon(0 0, 107% 0, 102% 32%, 110% 66%, 104% 100%, 0 100%); }
}
@keyframes lift-graphite { to { opacity: 0; } }
@keyframes finish-title { from { visibility: hidden; opacity: 0; } to { visibility: visible; opacity: 1; } }
@keyframes pencil-reveal {
  from { visibility: hidden; clip-path: inset(0 100% 0 0); }
  to { visibility: visible; clip-path: inset(0); }
}

@media (max-width: 900px) {
  .process {
    --book-left: clamp(20px, 5.2vw, 36px);
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "draw" "detail";
    grid-template-rows: auto minmax(0, 1fr) clamp(144px, 24svh, 210px);
    padding: max(66px, 8svh) var(--book-left) clamp(62px, 9svh, 80px);
    row-gap: 14px;
  }
  .process h2 { height: clamp(55px, 10svh, 88px); }
  .notebook-title-art { width: 100%; height: 100%; }
  .process-heading { padding-bottom: 9px; }
  .notebook-invite { justify-self: center; margin-inline-end: 0; }
  .notebook-pager { right: 0; }
  .notebook-gallery { inset: 0; grid-template-rows: minmax(0, 1fr); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .notebook-gallery figure { border-width: 3px; box-shadow: 0 8px 15px #2018134d, 0 2px 3px #21171183; }
  .notebook-gallery figcaption { font-size: clamp(10px, 3vw, 14px); padding-inline: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .notebook-drawing, .notebook-finish, .notebook-invite, .notebook-caption span { transition: none; }
  .is-revealing .notebook-gallery figure { animation: none; }
}

.booking {
  background: #28191b;
  padding-block-end: clamp(42px, 6vw, 96px);
  border-top: 1px solid #f1bdab21;
  overflow-anchor: none;
}
.booking-stage {
  padding-block: clamp(62px, 6.8vw, 108px) clamp(54px, 7vw, 98px);
  overflow-x: clip;
  background:
    linear-gradient(0deg, #28191b, transparent 16%),
    url("assets/appuntamento/fondale.webp") center bottom / 100% 120% no-repeat #1a0d11;
}
.invitation {
  --pocket-height: calc(clamp(140px, 35.9vw, 300px) * 1.3);
  --pocket-lip: calc(var(--pocket-height) * .525);
  --closed-offset: clamp(48px, 15svh, 126px);
  --easing-paper: cubic-bezier(.24, .76, .32, 1);
  position: relative;
  isolation: isolate;
  perspective: 1050px;
  max-inline-size: 750px;
  margin-inline: auto;
}
.invitation::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto -10% calc(-1 * clamp(10px, 2.4vw, 26px)) -22%;
  height: clamp(23px, 5.1vw, 58px);
  background: radial-gradient(ellipse, #070304f2 6%, #0c0508bd 41%, transparent 72%);
  pointer-events: none;
}
.invitation-back {
  z-index: 0;
  position: absolute;
  inset: auto 0 0;
  height: var(--pocket-height);
  border: 1px solid #714551;
  border-radius: 3px 3px 0 0;
  background: #34171e;
  box-shadow: 0 2px 3px #10070af2, 0 9px 18px -9px #10070ac4;
}
.invitation-window {
  position: relative;
  z-index: 2;
  margin-inline: 5%;
  padding-bottom: calc(var(--pocket-lip) - 19px);
  clip-path: inset(-4px -12px calc(var(--pocket-lip) - 2px));
}
.invitation-letter {
  padding: clamp(20px, 4vw, 47px) clamp(18px, 4.3vw, 52px) max(48px, calc(var(--pocket-height) * .24));
  border: 1px solid #fff4e3;
  background: #e9e1d7 url("assets/appuntamento/carta.webp") center / cover;
  color: #2b191c;
  box-shadow: 0 3px 16px #0d04064d;
}
:is(.is-preparing-motion .booking, .booking.is-deferred) :is(.booking-stage, .invitation-letter) { background-image: none; }
.invitation-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 2vw, 25px);
  padding-bottom: clamp(12px, 2vw, 20px);
  border-bottom: 1px solid #8b726b66;
  margin-bottom: clamp(14px, 2vw, 24px);
}
.invitation-heading h2 { font-size: clamp(30px, 4.2vw, 49px); line-height: .98; letter-spacing: -.043em; }
.invitation-heading img { width: clamp(49px, 8.5vw, 80px); height: auto; }
.invitation-pocket, .invitation-flap {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  pointer-events: none;
}
.invitation-pocket { z-index: 3; height: var(--pocket-height); object-fit: fill; }
.invitation-flap {
  display: none;
  z-index: 4;
  inset-block-end: calc(var(--pocket-height) * .22);
  height: calc(var(--pocket-height) * .78);
  transform-origin: 50% 0;
  transform-style: preserve-3d;
}
.invitation-flap > img:first-child { position: absolute; inset: 0; object-fit: fill; }
.invitation-flap .invitation-mark {
  position: absolute;
  width: clamp(54px, 10.3vw, 106px);
  height: auto;
  inset: 14% 50% auto auto;
  transform: translateX(50%) translateZ(1px);
  filter: drop-shadow(0 2px 2px #18090bcc);
  backface-visibility: hidden;
}
.invitation.is-ready .invitation-flap { display: block; }
.invitation.is-ready:not(.is-open) { translate: 0 calc(-1 * var(--closed-offset)); }
.invitation.is-ready:not(.is-open) .invitation-letter { transform: translateY(100%); }
.invitation.is-ready.is-open .invitation-flap { z-index: 1; transform: rotateX(176deg); }
.invitation-actions {
  position: absolute;
  z-index: 5;
  inset: auto 0 calc(var(--pocket-height) * .09);
  display: grid;
  justify-items: center;
  padding-inline: 14px;
}
.invitation-button {
  grid-area: 1 / 1;
  min-height: 46px;
  min-width: min(100%, 18ch);
  padding: 9px clamp(15px, 3.4vw, 30px);
  border: 1px solid #f8efe4;
  border-radius: 3px;
  background: linear-gradient(104deg, #9b9085, #e9dfd1 36%, #e3d8cc 61%, #b5aaa1), #d4c9bd;
  box-shadow: inset 0 0 0 1px #6f615c42, 0 3px 0 #7d6f68, 0 7px 14px #17090acd;
  color: #241a18;
  font: 600 clamp(19px, 3vw, 26px)/1.08 var(--serif);
}
.invitation-button:hover:not(:disabled) { filter: brightness(1.08); }
.invitation-button:active:not(:disabled) { transform: translateY(2px); box-shadow: inset 0 0 0 1px #6f615c42, 0 1px 0 #7d6f68, 0 4px 8px #17090ab0; }
.invitation-button:focus-visible { outline-color: #fff3de; }
@media (prefers-reduced-motion: no-preference) {
  .invitation.has-opened { transition: translate .64s var(--easing-paper); }
  .invitation.has-opened .invitation-letter { transition: transform .54s cubic-bezier(.45, .05, .33, 1); }
  .invitation.is-ready.is-open .invitation-letter { transition: transform .84s var(--easing-paper) .28s; }
  .invitation.has-opened .invitation-flap {
    transition: transform .54s var(--easing-paper) .26s, z-index 0s linear .54s;
  }
  .invitation.is-ready.is-open .invitation-flap {
    transition: transform .68s cubic-bezier(.42, 0, .26, 1), z-index 0s linear .34s;
  }
}
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 17px; }
.field { display: grid; gap: 2px; margin-bottom: 14px; }
.field label { font-size: 14px; font-weight: 650; }
.field label small { margin-left: 4px; color: #62514b; font-size: 11px; font-weight: 500; }
.field :is(input, textarea) {
  color: #302321;
  font-size: 16px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #55443e;
  border-radius: 0;
  min-height: 44px;
  min-width: 0;
  padding: 6px 3px;
}
.field :is(input, textarea):focus-visible { outline: 2px solid #663341; outline-offset: 2px; }
.field textarea {
  line-height: 28px;
  padding-block: 0;
  resize: vertical;
  background: repeating-linear-gradient(transparent 0 27px, #55443e 27px 28px) local;
}
.form-note { color: #574641; font-size: 12px; margin-top: 12px; text-align: center; }
.form-note a { text-decoration: underline; text-underline-offset: .2em; }
.feedback { border-left: 2px solid #875561; padding: 8px 11px; font-size: 14px; margin-top: 13px; }
.questions {
  --questions-gold: #d8b98d;
  --questions-rule: #d8b98d46;
  max-inline-size: 930px;
  padding-block-start: clamp(18px, 3.5vw, 48px);
}
.questions h3 {
  margin-block-end: clamp(27px, 4vw, 48px);
  text-align: center;
  font: 500 clamp(39px, 5.25vw, 79px)/1 var(--serif);
  letter-spacing: -.055em;
  text-wrap: balance;
}
.questions h3::before {
  content: "";
  display: block;
  inline-size: 36px;
  block-size: 1px;
  margin: 0 auto clamp(18px, 2.4vw, 29px);
  background: var(--questions-gold);
}
.questions h3 em { color: var(--questions-gold); }
.answers { border-block-end: 1px solid var(--questions-rule); }
.answers details { border-block-start: 1px solid var(--questions-rule); }
.answers details[open] { border-block-start-color: #d8b98d82; }
.answers summary {
  --indicator-vertical: 11px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
  min-block-size: clamp(64px, 6.4vw, 83px);
  padding: 12px 5px;
  cursor: pointer;
  list-style: none;
  font: 500 clamp(23px, 2.7vw, 34px)/1.12 var(--serif);
  letter-spacing: -.025em;
}
.answers summary::-webkit-details-marker { display: none; }
.answers summary::after {
  content: "";
  inline-size: clamp(30px, 3.5vw, 37px);
  aspect-ratio: 1;
  border: 1px solid #d8b98d6b;
  border-radius: 50%;
  color: var(--questions-gold);
  background:
    linear-gradient(currentColor, currentColor) center / 11px 1px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1px var(--indicator-vertical) no-repeat;
}
.answers details[open] summary { --indicator-vertical: 0px; }
.answers summary:is(:hover, :focus-visible), .answers details[open] summary { color: var(--questions-gold); }
.answers summary:is(:hover, :focus-visible)::after, .answers details[open] summary::after { border-color: currentColor; }
.answers summary:focus-visible { outline: none; }
.answers summary:focus-visible::after { outline: 2px solid #f3ddbe; outline-offset: 3px; }
.answers details p {
  max-inline-size: 62ch;
  padding: 0 clamp(33px, 5vw, 56px) clamp(17px, 2.5vw, 26px) 5px;
  color: var(--atelier-muted);
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.7;
}
@media (prefers-reduced-motion: no-preference) {
  .answers summary { transition: color .2s ease; }
  .answers summary::after { transition: background-size .24s ease, border-color .2s ease; }

  @supports (interpolate-size: allow-keywords) and selector(::details-content) {
    .answers { interpolate-size: allow-keywords; }
    .answers details::details-content {
      block-size: 0;
      overflow: clip;
      opacity: 0;
      transition: block-size .3s cubic-bezier(.3, 0, .2, 1), opacity .22s ease, content-visibility .3s allow-discrete;
    }
    .answers details[open]::details-content { block-size: auto; opacity: 1; }
  }
}
.footer {
  display: flex;
  min-block-size: calc(100svh - var(--booking-height, 100svh) + var(--nav-height) + 1px);
  padding-block: clamp(44px, 6vw, 96px) 0;
  background: #201c1a;
  border-top: 1px solid #f4ebde2b;
  scroll-margin-top: var(--nav-height);
}
.footer-inner { display: flex; flex-direction: column; justify-content: space-between; gap: clamp(34px, 5vw, 80px); }
.footer-columns {
  display: grid;
  grid-template-columns: minmax(155px, 1.1fr) minmax(184px, 1.25fr) minmax(136px, .8fr) minmax(161px, 1fr);
  align-items: start;
  gap: clamp(24px, 4vw, 64px);
}
.footer-brand a { display: block; width: fit-content; }
.footer-brand img { width: clamp(96px, 8vw, 132px); height: auto; }
.footer-brand p { margin-top: 12px; }
.footer h2 { margin-bottom: 13px; font: 650 13px/1.3 Manrope, Arial, sans-serif; letter-spacing: .055em; color: #e3c18b; }
.footer address { font-style: normal; }
.footer address p { margin-bottom: 9px; }
.footer p, .footer li { color: var(--atelier-muted); font-size: 14px; line-height: 1.6; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li a, .footer-base a { display: inline-block; padding-block: 5px; overflow-wrap: anywhere; }
.footer a:hover { color: var(--atelier-ink); text-decoration: underline; text-underline-offset: .25em; }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 20px;
  padding-block: 14px;
  border-top: 1px solid var(--atelier-rule);
  font-size: 13px;
}
.footer-base p { font-size: inherit; }

.policy-page { background: #f1ebe0; color: #271d1a; }
.policy-page main { background: none; }
.policy-header { padding-block: 19px; border-bottom: 1px solid #c9b9ad; }
.policy-header .frame { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.policy-header a { display: inline-flex; align-items: center; min-height: 44px; }
.policy-content { width: min(calc(100% - 2 * var(--outer)), 740px); margin-inline: auto; padding-block: clamp(35px, 7vw, 92px); }
.policy-content h1 { font-size: clamp(49px, 8vw, 82px); line-height: 1; }
.policy-content h2 { font-size: clamp(34px, 5vw, 49px); line-height: 1.05; }
.policy-content :is(p, ul) { margin-block: 12px 0; line-height: 1.65; }
.policy-content nav ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0 22px; }
.policy-content nav a { display: inline-flex; align-items: center; min-height: 44px; }
.policy-content section { margin-top: 33px; padding-top: 23px; border-top: 1px solid #c9b9ad; scroll-margin-top: 25px; }
.policy-page a { text-decoration: underline; text-underline-offset: .22em; }

@media (max-width: 950px) {
  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  :root { --nav-height: 58px; --outer: clamp(17px, 5vw, 35px); }
  .masthead-inner { padding-inline: var(--outer); }
  .booking-stage { background-size: 100% 100%, auto 135%; }
  .footer li a { padding-block: 7px; }
}
@media (max-width: 460px) {
  .invitation { --closed-offset: min(18svh, 135px); }
  .form-row { grid-template-columns: 1fr; }
  .footer-columns { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
}

@media (min-width: 1024px) and (min-aspect-ratio: 21/10) {
  .portrait { --panorama: url("assets/sfilata/ritratto-ultrawide.webp"); --photo-width: 310.25cqh; }
  .macro { --panorama: url("assets/sfilata/macro-ultrawide.webp"); }
  .necklace { --panorama: url("assets/sfilata/collana-ultrawide.webp"); --photo-width: 302.21cqh; }
  .ring { --panorama: url("assets/sfilata/anello-ultrawide.webp"); }
  .silver { --panorama: url("assets/sfilata/argento-ultrawide.webp"); --photo-width: 267.28cqh; }
  .look-photo { container-type: size; isolation: isolate; }
  .motion-enabled .runway .look-photo { transform: none; }
  .look-photo::before {
    content: "";
    position: absolute;
    inset: -2%;
    z-index: -1;
    background: var(--panorama) center / 100% 100% no-repeat;
    filter: blur(20px);
  }
  .runway .look-photo img {
    --native-width: var(--photo-width, 300cqh);
    --edge-blend: clamp(0px, (100cqw - var(--native-width)) / 2, 5cqw);
    width: min(100%, var(--native-width));
    margin-inline: auto;
    object-position: center;
    mask-image: linear-gradient(90deg, transparent, #000 var(--edge-blend),
                #000 calc(100% - var(--edge-blend)), transparent);
  }
}
