/* SANSER — ühine stiil kõigile sanser.ee lehtedele.
   Suund: "pime ruum" — üks tume väli ülevalt alla, selles valgustatud asjad.
   Brändi värvid ja kirjad on samad mis varem (espresso / pärgament / pronks / kuld,
   Didot pealkirjades, Optima tekstis, nagu AURORA-l); kuld on ainult tegevusnupul. */

:root {
  --espresso: #0f0b06;
  --espresso-alt: #191209;
  --espresso-lift: #221a0f;
  --forest: #0c1e14;
  --parchment: #f3ecdc;
  --parchment-soft: #dcd1b4;
  --bronze: #b08a46;
  --bronze-light: #d7a948;
  --gold: #fdc749;

  --ground: var(--espresso);
  --ink: var(--parchment);
  --ink-soft: var(--parchment-soft);
  --accent: var(--gold);

  --font-display: "Didot", "Bodoni Moda", "Bodoni MT", ui-serif, Georgia, serif;
  --font-brand: "Italiana", "Didot", ui-serif, serif; /* SANSER-i nimi: õhuke, laiade vahedega */
  --font-body: "Optima", "Candara", "Century Gothic", ui-sans-serif, system-ui, sans-serif; /* sama mis AURORA-l */

  /* viis kirjasuurust */
  --t-display: clamp(40px, 5.6vw, 84px);
  --t-heading: clamp(28px, 2.6vw, 40px);
  --t-lead: clamp(20px, 1.55vw, 24px);
  --t-body: 18px;
  --t-small: 16px;

  --margin: clamp(16px, 2.4vw, 32px);
  --gap-section: clamp(112px, 12vw, 172px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Teadlik ühe-teemaline valik (nagu õhtune baar) — ei vaheldu heleda režiimiga,
   kuna tume + pronks on osa brändi identiteedist, mitte kasutajaliides. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  position: relative;
  z-index: 0;
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.6;
  font-optical-sizing: auto;
  overflow-x: hidden; overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--gold); color: var(--espresso); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
section[id], [id] { scroll-margin-top: 80px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0; }
.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;
}
[data-editable]:empty { display: none; }

.frame { padding-left: var(--margin); padding-right: var(--margin); }
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--margin);
}
.h2 { font-size: var(--t-heading); line-height: 1.05; letter-spacing: -0.01em; font-style: italic; }
.lead { font-size: var(--t-lead); line-height: 1.4; }
.soft { color: var(--ink-soft); }
.small { font-size: var(--t-small); }

/* ---------- NUPUD (üks kuju: täisnurk) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0 28px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: transform 180ms var(--ease-out), background-color 180ms ease, color 180ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--bronze-light)); color: var(--espresso); }
.btn-gold:hover { background: var(--parchment); }
.btn-quiet { background: var(--espresso-lift); color: var(--ink); }
.btn-quiet:hover { background: var(--parchment); color: var(--espresso); }
.link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--bronze);
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}
.link:hover { color: var(--gold); text-decoration-color: var(--gold); }

/* ---------- NAVIGATSIOON ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
  padding: 0 var(--margin);
  background: var(--espresso);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.3em;
}
.nav-brand img { width: 26px; height: auto; }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: var(--t-small);
  text-decoration: none;
  color: var(--ink);
  transition: color 160ms ease;
}
.nav-links a:hover { color: var(--gold); }
.nav .btn { min-height: 40px; padding: 0 18px; font-size: 13px; }
.lang { display: flex; gap: 2px; }
.lang button {
  background: none;
  border: 0;
  padding: 8px 6px;
  font: 600 var(--t-small) var(--font-body);
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 160ms ease;
}
.lang button.active { color: var(--ink); text-decoration: underline; text-underline-offset: 0.3em; }
.lang button:hover { color: var(--gold); }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--ink);
  width: 44px;
  height: 44px;
  margin-right: -10px;
  cursor: pointer;
}
@media (max-width: 960px) {
  .nav { gap: 12px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--margin) 28px;
    background: var(--espresso);
    display: none;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { display: block; padding: 12px 0; font-size: var(--t-lead); font-family: var(--font-display); }
  .nav .btn { display: none; }
}

/* ---------- ALAMLEHTEDE AVAEKRAAN ---------- */
.page-hero {
  min-height: 88vh; min-height: 88svh;
  padding: 120px var(--margin) 56px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--margin);
  align-items: end;
}
.page-hero .ph-text { grid-column: 1 / span 6; align-self: end; padding-bottom: 8px; }
.page-hero h1 { font-size: clamp(36px, 4.2vw, 64px); line-height: 1.05; letter-spacing: 0; margin-bottom: 24px; }
.page-hero .lead { max-width: 30ch; margin-bottom: 36px; }
.page-hero .ph-pic { grid-column: 8 / span 5; align-self: stretch; position: relative; min-height: 60vh; min-height: 60svh; overflow: hidden; overflow: clip; }
.page-hero .ph-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.85) contrast(1.05); }
@media (max-width: 760px) {
  .page-hero { grid-template-columns: 1fr; padding-top: 104px; gap: 40px; }
  .page-hero .ph-text, .page-hero .ph-pic { grid-column: 1; }
  .page-hero .ph-pic { min-height: 48vh; min-height: 48svh; }
}

/* Alamlehe tekstiplokk: pealkiri vasakul, tekst paremal */
.split {
  margin-top: var(--gap-section);
  padding: 0 var(--margin);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--margin);
  row-gap: 28px;
}
.split > .h2 { grid-column: 1 / span 5; }
.split > .split-body { grid-column: 7 / span 6; display: grid; gap: 1.1em; max-width: 62ch; }
@media (max-width: 760px) {
  .split > .h2, .split > .split-body { grid-column: 1 / -1; }
}

/* Pildiriba — kolm pilti, ebavõrdsed laiused, admin'ist vahetatavad */
.strip { margin-top: var(--gap-section); }
.strip .h2 { padding: 0 var(--margin); margin-bottom: 40px; }
.strip-row { display: flex; height: 64vh; height: 64svh; min-height: 380px; }
.strip-row > * { flex: 3 1 0; position: relative; overflow: hidden; overflow: clip; background: var(--espresso-alt); transition: flex-grow 500ms var(--ease-out); }
.strip-row > *:nth-child(2) { flex-grow: 2; }
.strip-row > *:nth-child(3) { flex-grow: 4; }
@media (hover: hover) { .strip-row > *:hover { flex-grow: 6; } }
.strip-row img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.85) contrast(1.05); }
.strip-cap { padding: 16px var(--margin) 0; color: var(--ink-soft); font-size: var(--t-small); }
@media (max-width: 760px) {
  .strip-row { flex-direction: column; height: auto; }
  .strip-row > * { flex: none; aspect-ratio: 4 / 3; }
}

/* Tühi pildipesa (kuni admin'ist pilt lisatakse) */
.slot-empty {
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: var(--ink-soft);
  font-size: var(--t-small);
}

/* Tegevuse plokk lehe lõpus */
.closer {
  margin-top: var(--gap-section);
  padding: 0 var(--margin);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--margin);
  row-gap: 32px;
  align-items: end;
}
.closer .h2 { grid-column: 1 / span 7; font-size: clamp(30px, 3.2vw, 48px); line-height: 1.1; }
.closer .closer-act { grid-column: 9 / span 4; display: grid; gap: 20px; justify-items: start; }
@media (max-width: 760px) {
  .closer .h2, .closer .closer-act { grid-column: 1 / -1; }
}

/* ---------- JALUS: tumeroheline lõpp, nimi ja üks selge kutse ---------- */
.foot {
  margin-top: var(--gap-section);
  position: relative;
  color: var(--parchment);
  padding: clamp(100px, 12vw, 170px) var(--margin) 28px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(24, 70, 45, 0.75), transparent 72%),
    radial-gradient(ellipse 50% 45% at 0% 100%, rgba(8, 36, 24, 0.9), transparent 70%),
    #07100b;
  overflow: hidden;
}
.foot-top { display: grid; justify-items: center; text-align: center; gap: 18px; }
.foot-word { margin: 0; line-height: 1; }
.foot-word span {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: clamp(52px, 9vw, 150px);
  letter-spacing: 0.22em;
  margin-right: -0.22em;
  color: #f1e6c8;
}
.foot-tag { font-family: var(--font-display); font-style: italic; font-size: clamp(22px, 2.4vw, 34px); color: #e9cf91; margin-top: -4px; }
.foot-ask { max-width: 44ch; color: #d8d0b8; margin-top: 18px; }
.foot-mail {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(26px, 3.2vw, 46px);
  color: var(--parchment); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 500ms var(--ease-out), color 200ms ease;
  padding-bottom: 4px; margin-bottom: 10px;
}
.foot-mail:hover { background-size: 100% 1px; color: #e9cf91; }
.foot-cols {
  margin-top: clamp(80px, 9vw, 130px);
  padding-top: 44px;
  border-top: 1px solid rgba(233, 207, 145, 0.18);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px var(--margin);
}
.foot-cols h3 { font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: #e9cf91; margin: 0 0 14px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-cols a { color: #cfc6ad; text-decoration: none; transition: color 160ms ease; }
.foot-cols a:hover { color: var(--parchment); }
.foot-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px;
  margin-top: 56px; padding-top: 22px;
  border-top: 1px solid rgba(233, 207, 145, 0.12);
  font-size: 13px; color: #8f8770;
}
.foot-legal a { color: inherit; }
@media (max-width: 760px) {
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- LIIKUMINE ---------- */
/* Sisu on alati nähtav; peitolek kehtib ainult .js all ja ainult siis, kui
   kasutaja pole liikumist vähendanud. */
.lines .line { display: block; overflow: hidden; overflow: clip; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.lines [data-line] { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .js .lines [data-line] {
    transform: translateY(105%);
    animation: line-up 650ms var(--ease-out) forwards;
    animation-delay: calc(var(--i, 0) * 80ms);
  }
  .js [data-load] {
    opacity: 0;
    transform: translateY(18px);
    animation: rise 500ms var(--ease-out) forwards;
    animation-delay: var(--d, 200ms);
  }
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
    transition-delay: calc(var(--r, 0) * 80ms);
  }
  .js [data-reveal].in { opacity: 1; transform: none; }
  .drift { animation: drift 24s ease-in-out infinite alternate; }
}
@media (max-width: 760px) { .drift { animation: none; } }
@keyframes line-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); } }

/* Admin'ist täidetavad pildipesad: peidus, kuni pilt on lisatud */
.slot:not(.has-img) { display: none; }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.85) contrast(1.05); }
.strip:not(:has(img)) { display: none; }
.wall { margin-top: var(--gap-section); padding: 0 var(--margin); }
.wall:not(:has(img)) { display: none; }
.wall .h2 { margin-bottom: 16px; }
.wall > p { margin-bottom: 40px; max-width: 52ch; }
.wall-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--margin); }
.wall-grid .slot { position: relative; aspect-ratio: 3 / 4; overflow: hidden; overflow: clip; }
@media (max-width: 760px) { .wall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Read: nimi, kirjeldus, hind (Cavo mudelid) */
.rows { margin-top: var(--gap-section); padding: 0 var(--margin); }
.rows .h2 { margin-bottom: 16px; }
.rows > p { max-width: 56ch; margin-bottom: 48px; }
.row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--margin); padding: 22px 0; }
.row + .row { background: none; }
.row h3 { grid-column: 1 / span 4; font-size: var(--t-lead); line-height: 1.2; transition: color 160ms ease; }
.row p { grid-column: 6 / span 7; max-width: 56ch; }
.row:hover h3 { color: var(--gold); }
@media (max-width: 760px) {
  .row h3, .row p { grid-column: 1 / -1; }
  .row h3 { margin-bottom: 8px; }
}

/* Meedia read (Meist) */
.press-list { margin-top: var(--gap-section); padding: 0 var(--margin); }
.press-list .h2 { margin-bottom: 16px; }
.press-list > p { margin-bottom: 56px; max-width: 52ch; }
.press-item {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--margin);
  row-gap: 20px;
  text-decoration: none;
  color: var(--ink);
  align-items: center;
}
.press-item + .press-item { margin-top: 96px; }
.press-item img { grid-column: 1 / span 5; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; filter: brightness(0.85) contrast(1.05); transition: transform 900ms var(--ease-out); }
.press-item:hover img { transform: scale(1.02); }
.press-item .pi-body { grid-column: 7 / span 6; display: grid; gap: 12px; }
.press-item h3 { font-size: var(--t-lead); line-height: 1.2; transition: color 160ms ease; }
.press-item:hover h3 { color: var(--gold); }
.press-item .src { color: var(--ink-soft); font-size: var(--t-small); }
@media (max-width: 760px) { .press-item img, .press-item .pi-body { grid-column: 1 / -1; } }

/* ---------- ROHELINE KUMA ALAMLEHTEDEL ----------
   Vahelduseks tumedale väljale: pehme metsaroheline valgus avaekraanil,
   täisroheline riba tekstiplokil ja kuma lõpuploki taga. */
:root { --glow: rgba(26, 74, 48, 0.55); --glow-deep: rgba(10, 43, 30, 0.7); }
body:not([data-page="index"]) .page-hero {
  background:
    radial-gradient(ellipse 55% 60% at 72% 45%, var(--glow), transparent 70%),
    radial-gradient(ellipse 45% 40% at 8% 92%, var(--glow-deep), transparent 70%);
}
body:not([data-page="index"]) .split,
body:not([data-page="index"]) .rows {
  padding-top: clamp(80px, 9vw, 140px);
  padding-bottom: clamp(80px, 9vw, 140px);
  background:
    radial-gradient(ellipse 50% 70% at 85% 30%, rgba(34, 92, 60, 0.35), transparent 70%),
    var(--forest);
}
body:not([data-page="index"]) .press-list,
body:not([data-page="index"]) .closer {
  padding-top: clamp(64px, 7vw, 110px);
  padding-bottom: clamp(64px, 7vw, 110px);
  background: radial-gradient(ellipse 60% 80% at 20% 50%, var(--glow), transparent 72%);
}

.page-hero h1 { font-style: italic; }

/* ---------- AURORA-ga ühised detailid ---------- */
.eyebrow-line {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  font-size: 13px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--bronze-light);
  margin: 0 -0.32em 26px 0;
}
.eyebrow-line::before, .eyebrow-line::after { content: ""; width: 44px; height: 1px; background: currentColor; opacity: 0.7; }
.btn-line { border: 1px solid rgba(215, 169, 72, 0.55); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--gold); color: var(--gold); }
.hero-acts { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
@media (max-width: 760px) {
  .eyebrow-line { font-size: 11px; letter-spacing: 0.24em; margin-right: -0.24em; gap: 12px; }
  .eyebrow-line::before, .eyebrow-line::after { width: 22px; }
}

/* ---------- Brauseriraam: päris leht, mida saab kerida ja klõpsida ---------- */
.browser { background: #141414; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.browser-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #1f1f1f; }
.browser-bar .dots { display: flex; gap: 6px; }
.browser-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3a; }
.browser-bar .url { flex: 1; text-align: center; font-size: 13px; color: #b9b9b9; background: #2a2a2a; border-radius: 6px; padding: 5px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-bar a { font-size: 13px; color: #e6e6e6; text-decoration: none; white-space: nowrap; }
.browser-bar a:hover { text-decoration: underline; }
.viewport { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: #0f0b06; }
.viewport .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.viewport iframe {
  position: absolute; top: 0; left: 0;
  width: var(--vw, 1280px); height: calc(100% / var(--s, 1));
  border: 0; transform: scale(var(--s, 1)); transform-origin: 0 0;
  background: transparent;
  opacity: 0;
  transition: opacity 400ms ease;
}
.viewport iframe.ready { opacity: 1; }
.viewport .scroller { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.viewport .scroller img { display: block; width: 100%; height: auto; }
.tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.tabs button {
  font: 500 14px var(--font-body); letter-spacing: 0.04em;
  background: transparent; color: inherit; border: 1px solid var(--rule);
  padding: 8px 14px; cursor: pointer; transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.tabs button:hover { border-color: currentColor; }
.tabs button[aria-selected="true"] { background: currentColor; border-color: currentColor; }
.tabs button[aria-selected="true"] span { color: #0f0b06; }
.show-note { margin-top: 12px; font-size: var(--t-small); opacity: 0.8; }
.device { display: flex; gap: 8px; margin-left: auto; }
.frame-phone { max-width: 390px; margin: 0 auto; }
.frame-phone .viewport { aspect-ratio: 9 / 16; }
@media (max-width: 760px) { .browser-bar a { display: none; } .device { margin-left: 0; } }

