@font-face { font-family: "Instrument Serif"; src: url(fonts/instrument-serif-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(fonts/instrument-serif-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Host Grotesk"; src: url(fonts/host-grotesk-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Host Grotesk"; src: url(fonts/host-grotesk-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Host Grotesk"; src: url(fonts/host-grotesk-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(fonts/geist-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(fonts/geist-mono-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --hartie: #efe6da;
  --espresso: #24140f;
  --espresso-2: rgba(36, 20, 15, .66);
  --espresso-3: rgba(36, 20, 15, .4);
  --linie: rgba(36, 20, 15, .14);
  --rosu: #c63f5c;
  --crema: #b9773f;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Host Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --gut: clamp(20px, 3.2vw, 48px);
}
* { box-sizing: border-box; }
html { color-scheme: only light; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body { margin: 0; background: var(--hartie); color: var(--espresso); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.loading { overflow: hidden; }
a { color: inherit; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; line-height: .92; }
h1 em, h2 em { font-style: italic; }
p { margin: 0; }

#scena { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 0; }
body.toarna #scena { cursor: none; }

/* loader */
.loader { position: fixed; inset: 0; z-index: 50; display: grid; place-content: center; justify-items: center; gap: 22px; background: var(--hartie); transition: opacity .9s ease .2s, visibility 0s linear 1.2s; }
.loader__inel { width: 150px; height: 150px; transform: rotate(-90deg); }
.loader__inel circle { fill: none; stroke-width: 1; }
.l-baza { stroke: var(--linie); }
.l-plin { stroke: var(--crema); stroke-width: 2 !important; stroke-dasharray: 540.4; stroke-dashoffset: 540.4; stroke-linecap: round; }
.loader__txt { font: 500 11px/1 var(--mono); letter-spacing: .24em; color: var(--espresso-2); }
body:not(.loading) .loader { opacity: 0; visibility: hidden; }

/* schita tehnica */
.schita { position: fixed; z-index: 2; left: 50%; top: 50%; width: 600px; height: 600px; translate: -50% -50%; pointer-events: none; overflow: visible; opacity: 0; }
.schita .s-l { fill: none; stroke: var(--crema); stroke-width: .35; stroke-dasharray: 600; stroke-dashoffset: 600; }
.schita .s-sub { stroke-dasharray: 1.4 1.4; stroke-dashoffset: 0; opacity: 0; }
.schita .s-ax { stroke: var(--espresso-3); stroke-width: .2; stroke-dasharray: 2 2; }
.schita .s-cota { stroke: var(--espresso-2); stroke-width: .25; font: 400 4px var(--mono); fill: var(--espresso-2); text-anchor: middle; }
.schita .s-cota text { stroke: none; letter-spacing: .1em; }
body.schita-on .schita { opacity: 1; transition: opacity .4s; }
body.schita-on .schita .s-l { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s cubic-bezier(.6,0,.2,1); }
body.schita-on .schita .s-sub { opacity: 1; transition: opacity .6s .9s; }
body.schita-gata .schita { opacity: 0; transition: opacity 1.2s ease; }

/* HUD */
.hud { position: fixed; z-index: 20; pointer-events: none; }
.hud > * { pointer-events: auto; }
.hud--sus { top: 0; left: 0; right: 0; padding: 22px var(--gut); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 17px/1 var(--sans); letter-spacing: -.02em; }
.marca em { font: italic 400 21px/1 var(--serif); letter-spacing: 0; color: var(--crema); }
.marca__y { width: 21px; height: 20px; background: var(--rosu); -webkit-mask: url(img/splendessa-y.png) center / contain no-repeat; mask: url(img/splendessa-y.png) center / contain no-repeat; }
.nav { display: flex; gap: 2px; padding: 5px; border-radius: 999px; background: rgba(247, 241, 233, .7); border: 1px solid var(--linie); }
.nav a { text-decoration: none; font: 500 14px/1 var(--sans); padding: 10px 16px; border-radius: 999px; color: var(--espresso-2); transition: background .25s, color .25s; }
.nav a:hover, .nav a.activ { background: var(--espresso); color: var(--hartie); }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 22px 0 24px; border-radius: 999px; text-decoration: none; font: 600 15px/1 var(--sans); letter-spacing: -.01em; background: var(--espresso); color: var(--hartie); border: 1px solid transparent; transition: transform .35s cubic-bezier(.2,.8,.2,1), background .25s; }
.btn i { font-style: normal; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(239, 230, 218, .16); font-size: 13px; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.btn:hover { transform: translateY(-2px); background: var(--rosu); }
.btn:hover i { transform: translateX(3px); }
.btn--mic { height: 42px; font-size: 14px; padding: 0 16px 0 18px; }
.btn--gol { background: transparent; color: var(--espresso); border-color: var(--espresso-3); }
.btn--gol:hover { background: var(--espresso); color: var(--hartie); }

.hud--citire { top: 96px; right: var(--gut); text-align: right; }
.citire__val { font: 400 64px/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.citire__val small { font: 500 13px/1 var(--mono); letter-spacing: .1em; margin-left: 6px; color: var(--espresso-2); }
.citire__et { margin-top: 6px; font: 500 11px/1 var(--mono); letter-spacing: .2em; color: var(--espresso-2); }

.hud--jos { bottom: 0; left: 0; right: 0; padding: 22px var(--gut); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.sunet { justify-self: start; display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; color: var(--espresso-2); font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; padding: 8px 0; }
.sunet__bare { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.sunet__bare i { width: 2px; height: 3px; background: currentColor; }
.sunet[aria-pressed="true"] .sunet__bare i { animation: bara 1s ease-in-out infinite alternate; }
.sunet[aria-pressed="true"] .sunet__bare i:nth-child(2) { animation-delay: -.3s; }
.sunet[aria-pressed="true"] .sunet__bare i:nth-child(3) { animation-delay: -.6s; }
@keyframes bara { from { height: 3px; } to { height: 12px; } }
.progres { width: 220px; height: 2px; background: var(--linie); border-radius: 2px; overflow: hidden; }
.progres b { display: block; height: 100%; background: var(--espresso); transform-origin: left; transform: scaleX(0); }
.indiciu { justify-self: end; font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--espresso-2); transition: opacity .4s; }

/* cursorul-ulcior */
.cursor { position: fixed; z-index: 30; left: 0; top: 0; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor span { position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--hartie); box-shadow: 0 0 0 1px rgba(36,20,15,.25), inset 0 0 0 1px rgba(36,20,15,.15); transition: transform .25s cubic-bezier(.2,.8,.2,1), background .25s; }
body.toarna .cursor { opacity: 1; }
body.apasat .cursor span { transform: scale(1.7); background: rgba(250, 244, 236, .35); }

/* capitole */
.eticheta { font: 500 11px/1.3 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--crema); }
.cap { position: fixed; z-index: 10; opacity: 0; visibility: hidden; will-change: opacity; }
.cap h2 { font-size: clamp(60px, 6.4vw, 112px); margin: 18px 0 24px; }
.cap .lead { font-size: 19px; line-height: 1.45; color: var(--espresso-2); max-width: 31ch; }

.cap--hero { inset: 0; pointer-events: none; }
.eticheta--hero { position: absolute; left: 0; right: 0; top: 108px; text-align: center; color: var(--espresso-2); }
.hero__titlu { position: absolute; left: 0; right: 0; top: 50%; translate: 0 -50%; display: flex; justify-content: space-between; padding: 0 var(--gut); font-size: clamp(80px, 10.5vw, 190px); line-height: .9; }
.hero__titlu span { display: block; transform: translateY(40px); opacity: 0; transition: transform 1.4s cubic-bezier(.16,1,.3,1), opacity 1s; }
.hero__titlu .h-dr { transition-delay: .12s; color: var(--crema); }
body.pornit .hero__titlu span { transform: none; opacity: 1; }
.hero__sub { position: absolute; left: var(--gut); bottom: 88px; font: italic 400 26px/1.15 var(--serif); color: var(--espresso-2); }

.cap--stanga { left: var(--gut); top: 50%; translate: 0 -50%; max-width: 560px; }
.cap--dreapta { right: var(--gut); top: 50%; translate: 0 -50%; max-width: 520px; text-align: right; }
.cap--dreapta .lead { margin-left: auto; }

.faze { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; justify-items: end; }
.faze li { display: flex; gap: 18px; align-items: baseline; padding: 10px 16px; border-radius: 12px; font-size: 17px; color: var(--espresso-3); transition: color .4s, background .4s; }
.faze li span { font: 500 12px/1 var(--mono); letter-spacing: .1em; }
.faze li.trecut { color: var(--espresso-2); }
.faze li.activ { color: var(--espresso); background: rgba(247, 241, 233, .75); }
.faze li.activ span { color: var(--rosu); }

.meniu { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-width: 480px; }
.meniu li { display: flex; align-items: baseline; gap: 12px; padding: 14px 18px; border-radius: 14px; transition: background .4s; }
.meniu li b { font: 400 30px/1 var(--serif); letter-spacing: -.01em; }
.meniu li b small { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--crema); margin-left: 6px; vertical-align: 4px; }
.meniu li i { flex: 1; border-bottom: 1px dotted var(--espresso-3); transform: translateY(-6px); }
.meniu li span { font: 500 15px/1 var(--mono); }
.meniu li.activ { background: rgba(247, 241, 233, .8); }
.nota { margin-top: 18px; font: 500 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--espresso-3); }

.cap--vizita { left: 0; right: 0; top: 50%; translate: 0 -50%; text-align: center; display: grid; justify-items: center; }
.vizita__ore { font-size: clamp(110px, 15vw, 260px) !important; margin: 14px 0 18px !important; }
.vizita__ore em { color: var(--crema); padding: 0 .06em; }
.adresa { margin-top: 18px; font: 500 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.adresa span { color: var(--espresso-3); }

.cap--final { left: var(--gut); top: 50%; translate: 0 -50%; max-width: 560px; }
.cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.drum { height: 1100vh; }

@media (max-width: 860px) {
  .nav, .hud--sus .btn--mic, .indiciu, .progres { display: none; }
  .hud--citire { top: 72px; }
  .citire__val { font-size: 40px; }
  .cap--stanga, .cap--dreapta, .cap--final { left: 20px; right: 20px; max-width: none; text-align: left; }
  .cap--dreapta .lead { margin-left: 0; }
  .faze { justify-items: start; }
  .hero__titlu { flex-direction: column; top: 22%; font-size: 64px; }
}
.cap--vizita::before { content: ""; position: absolute; inset: -12% -6%; z-index: -1; background: radial-gradient(closest-side, rgba(239, 230, 218, .92), rgba(239, 230, 218, .75) 60%, transparent); }
