/* ==========================================================
   Karly Quinn Lashess — brand: ink, paper, pampas sand, gold
   ========================================================== */
:root {
  --ink: #121110;
  --ink-2: #1d1b19;
  --paper: #f3efe9;
  --bone: #e8e0d4;
  --sand: #c9b697;
  --gold: #b08d57;
  --gold-2: #cfae78;
  --smoke: #6f675e;
  --line: rgba(18, 17, 16, .14);
  --line-light: rgba(243, 239, 233, .18);

  --serif: "Playfair Display", Georgia, serif;
  --sans: "Jost", "Futura", system-ui, sans-serif;
  --script: "Parisienne", cursive;

  --pad: clamp(16px, 5vw, 72px);
  --radius-arch: 999px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading, body.menu-open, body.lb-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
em { font-style: italic; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* subtle paper grain */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Monogram ---------- */
.mono, .loader__mark, .sent__mark, .badge__mono { fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.mono { width: 26px; height: 40px; }
.mono--gold { color: var(--gold-2); width: 44px; height: 68px; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--ink); color: var(--gold-2);
  display: grid; place-content: center; justify-items: center; gap: 22px;
  transition: transform 1s var(--ease-io) .1s;
}
.loader__mark { width: 70px; height: 108px; }
.loader .draw { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.4s var(--ease) forwards; }
.loader .draw:nth-child(2) { animation-delay: .5s; }
.loader .draw:nth-child(3) { animation-delay: .6s; }
.loader .draw:nth-child(4) { animation-delay: .8s; }
.loader .draw:nth-child(5) { animation-delay: .9s; }
.loader__word { font: 400 30px/1 var(--script); color: var(--paper); opacity: 0; animation: fade .8s ease .9s forwards; }
body.is-ready .loader { transform: translateY(-101%); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none;
  width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  border: 1px solid var(--ink); mix-blend-mode: difference; border-color: #fff;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s;
  display: grid; place-items: center; opacity: 0;
}
.cursor.is-on { opacity: 1; }
.cursor.is-hover { width: 54px; height: 54px; margin: -27px 0 0 -27px; background: #fff; }
.cursor.is-view { width: 86px; height: 86px; margin: -43px 0 0 -43px; background: #fff; }
.cursor__label { font: 500 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #000; opacity: 0; transition: opacity .2s; }
.cursor.is-view .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 90; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Typography helpers ---------- */
.eyebrow { font: 500 12px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--smoke); margin: 0 0 18px; }
.eyebrow--light { color: var(--sand); }
.h2 { font: 400 clamp(34px, 5vw, 68px)/1.08 var(--serif); letter-spacing: -.015em; margin: 0; max-width: 15ch; }
.h2 em { color: var(--gold); }
.section { padding: clamp(80px, 12vw, 160px) var(--pad); position: relative; }
.section__head { margin-bottom: clamp(40px, 6vw, 80px); }
.section__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 17px 30px; border-radius: 999px; text-decoration: none;
  font: 500 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s, transform .35s var(--ease);
  border: 1px solid transparent; position: relative; white-space: nowrap;
}
.btn--small { padding: 12px 20px; font-size: 11px; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--gold); }
.btn--line { border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--gold-2); }
.btn--ghost-light { border-color: var(--line-light); color: var(--paper); }
.btn--ghost-light:hover { border-color: var(--paper); }
.btn--full { width: 100%; }
.link-arrow { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font: 500 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 6px; }
.link-arrow span { transition: transform .3s var(--ease); }
.link-arrow:hover span { transform: translate(3px, -3px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--pad);
  transition: background .4s, padding .4s, transform .5s var(--ease), color .4s;
}
.nav.is-scrolled { background: rgba(243, 239, 233, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav__name { font: 500 13px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; }
.nav__name em { font-style: normal; color: var(--smoke); }
.nav__links { display: flex; gap: clamp(18px, 2.6vw, 40px); }
.nav__links a { text-decoration: none; font-size: 14px; letter-spacing: .04em; position: relative; padding: 4px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav__burger { display: none; width: 44px; height: 44px; position: relative; z-index: 2; }
.nav__burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.nav__burger span:first-child { top: 18px; }
.nav__burger span:last-child { top: 25px; }
.menu-open .nav__burger span:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-open .nav__burger span:last-child { top: 21.5px; transform: rotate(-45deg); }
.menu-open .nav { color: var(--paper); background: transparent; border-color: transparent; backdrop-filter: none; }

.menu {
  position: fixed; inset: 0; z-index: 70; background: var(--ink); color: var(--paper);
  padding: 110px var(--pad) 40px; display: flex; flex-direction: column; justify-content: space-between;
  clip-path: circle(0% at calc(100% - 40px) 40px); transition: clip-path .8s var(--ease-io); visibility: hidden;
}
.menu-open .menu { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { font: 400 clamp(38px, 11vw, 64px)/1.15 var(--serif); text-decoration: none; display: flex; align-items: baseline; gap: 14px; opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .5s var(--ease); }
.menu nav a small { font: 400 12px/1 var(--sans); color: var(--sand); letter-spacing: .1em; }
.menu-open .menu nav a { opacity: 1; transform: none; }
.menu-open .menu nav a:nth-child(2) { transition-delay: .05s; } .menu-open .menu nav a:nth-child(3) { transition-delay: .1s; }
.menu-open .menu nav a:nth-child(4) { transition-delay: .15s; } .menu-open .menu nav a:nth-child(5) { transition-delay: .2s; } .menu-open .menu nav a:nth-child(6) { transition-delay: .25s; }
.menu__foot { color: var(--sand); font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(32px, 5vw, 80px);
  padding: 120px var(--pad) 80px; position: relative;
}
.hero__title { font: 400 clamp(44px, 7.6vw, 118px)/1.02 var(--serif); letter-spacing: -.025em; margin: 0 0 32px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.hero__title .line:nth-child(2) > span { transition-delay: .1s; }
.hero__title .line:nth-child(3) > span { transition-delay: .2s; }
.hero__title em { color: var(--gold); }
body.is-ready .hero__title .line > span { transform: none; }
.hero__lead { max-width: 40ch; color: var(--smoke); font-size: clamp(16px, 1.3vw, 19px); margin: 0 0 36px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__meta { list-style: none; padding: 0; margin: 56px 0 0; display: flex; gap: clamp(24px, 4vw, 56px); border-top: 1px solid var(--line); padding-top: 24px; }
.hero__meta b { display: block; font: 400 clamp(28px, 3vw, 40px)/1 var(--serif); }
.hero__meta span { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--smoke); }
.hero__visual { position: relative; justify-self: center; width: min(100%, 470px); }
.arch { margin: 0; border-radius: var(--radius-arch); overflow: hidden; position: relative; background: var(--bone); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch--hero { aspect-ratio: 62 / 110; max-height: 78svh; margin-inline: auto; clip-path: inset(100% 0 0 0 round 999px); transition: clip-path 1.4s var(--ease) .3s; }
.arch--hero img { transform: scale(1.15); transition: transform 2s var(--ease) .3s; object-position: 60% center; }
body.is-ready .arch--hero { clip-path: inset(0 0 0 0 round 999px); }
body.is-ready .arch--hero img { transform: scale(1.02); }
/* the "Q" tail of the monogram, drawn on the photo frame */
.hero__visual::after {
  content: ""; position: absolute; right: 4%; bottom: -2.2%; width: 15%; height: 1.5px; background: var(--ink);
  transform: rotate(45deg); transform-origin: left center;
}
.badge { position: absolute; left: -64px; bottom: 12%; width: 150px; height: 150px; color: var(--ink); }
.badge__bg { fill: var(--paper); stroke: none; }
.badge__ring { animation: spin 22s linear infinite; transform-origin: 100px 100px; }
.badge text { font: 500 11.5px var(--sans); letter-spacing: .28em; fill: currentColor; }
.badge__mono { stroke-width: 4.5; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__ig { position: absolute; right: 0; top: -36px; font-size: 13px; letter-spacing: .06em; text-decoration: none; color: var(--smoke); }
.hero__ig:hover { color: var(--ink); }
.scroll-cue { position: absolute; left: 50%; bottom: 24px; flex-direction: column; translate: -50% 0; display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; text-decoration: none; color: var(--smoke); }
.scroll-cue span { width: 1px; height: 42px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue span::after { content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%; background: var(--ink); animation: drip 2s var(--ease-io) infinite; }
@keyframes drip { to { top: 100%; } }

/* ---------- Wall (script marquee) ---------- */
.wall { background: var(--bone); padding: 26px 0; overflow: hidden; border-block: 1px solid var(--line); }
.wall__row { overflow: hidden; }
.wall__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.wall__row--rev .wall__track { animation-direction: reverse; animation-duration: 48s; }
.wall__track span { font: 400 clamp(34px, 5vw, 62px)/1.35 var(--script); padding: 0 .6em; white-space: nowrap; }
.wall__row--rev span { font: italic 400 clamp(26px, 3.6vw, 44px)/1.6 var(--serif); color: var(--smoke); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Services ---------- */
.svc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc__item {
  display: grid; grid-template-columns: 80px 1fr auto; gap: 24px; align-items: center;
  padding: clamp(26px, 3vw, 40px) 0; border-bottom: 1px solid var(--line); position: relative;
  transition: padding .5s var(--ease);
}
.svc__item::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease); z-index: -1; }
.svc__no { font: italic 400 22px/1 var(--serif); color: var(--gold); }
.svc__body h3 { font: 400 clamp(28px, 4vw, 54px)/1.05 var(--serif); margin: 0; letter-spacing: -.015em; transition: transform .5s var(--ease); }
.svc__body p { margin: 12px 0 0; max-width: 58ch; color: var(--smoke); transition: color .4s; }
.svc__cta { font: 500 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; padding: 14px 22px; border: 1px solid var(--line); border-radius: 999px; transition: all .35s var(--ease); }
.svc__cta span { display: inline-block; transition: transform .3s var(--ease); }
.svc__thumb { display: none; }
@media (hover: hover) and (pointer: fine) {
  .svc__item:hover { color: var(--paper); padding-left: 24px; padding-right: 24px; }
  .svc__item:hover::before { transform: scaleY(1); }
  .svc__item:hover .svc__body p { color: var(--sand); }
  .svc__item:hover .svc__body h3 { transform: translateX(8px); }
  .svc__item:hover .svc__cta { border-color: var(--paper); background: var(--paper); color: var(--ink); }
  .svc__cta:hover span { transform: translateX(4px); }
}
.svc { isolation: isolate; }
.svc__float {
  position: fixed; left: 0; top: 0; width: 240px; aspect-ratio: 62/110; margin: 0; z-index: 60; pointer-events: none;
  border-radius: 999px; overflow: hidden; opacity: 0; transform: scale(.7); transition: opacity .35s, transform .45s var(--ease);
}
.svc__float.is-on { opacity: 1; transform: scale(1); }
.svc__float img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Finder (quiz) ---------- */
.finder { background: var(--ink); color: var(--paper); display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.finder__intro p:not(.eyebrow) { color: var(--sand); max-width: 42ch; margin-top: 26px; }
.finder .h2 em { color: var(--gold-2); }
.quiz { border: 1px solid var(--line-light); border-radius: 28px; padding: clamp(24px, 4vw, 48px); position: relative; min-height: 420px; background: var(--ink-2); }
.quiz__bar { height: 2px; background: var(--line-light); margin-bottom: 36px; overflow: hidden; border-radius: 2px; }
.quiz__bar span { display: block; height: 100%; width: 0; background: var(--gold-2); transition: width .6s var(--ease); }
.quiz__steps { position: relative; }
.quiz__q { border: 0; margin: 0; padding: 0; display: none; flex-direction: column; gap: 12px; }
.quiz__q.is-active { display: flex; animation: rise .6s var(--ease); }
.quiz__q legend { font: 400 clamp(26px, 3vw, 38px)/1.15 var(--serif); margin-bottom: 22px; padding: 0; }
.quiz__q legend small { display: block; font: 500 11px/1 var(--sans); letter-spacing: .22em; color: var(--sand); margin-bottom: 14px; }
.quiz__q button {
  text-align: left; padding: 20px 24px; border: 1px solid var(--line-light); border-radius: 16px; font-size: 17px;
  display: flex; justify-content: space-between; align-items: center; transition: all .3s var(--ease);
}
.quiz__q button::after { content: "→"; opacity: 0; transform: translateX(-8px); transition: all .3s var(--ease); }
.quiz__q button:hover, .quiz__q button:focus-visible { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.quiz__q button:hover::after { opacity: 1; transform: none; }
.quiz__result { display: none; }
.quiz__result.is-active { display: block; animation: rise .7s var(--ease); }
.quiz__result small { font: 500 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-2); }
.quiz__name { font: italic 400 clamp(44px, 6vw, 80px)/1 var(--serif); margin: 14px 0 18px; }
.quiz__desc { color: var(--sand); max-width: 46ch; }
.quiz__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 22px 0 32px; }
.quiz__tags li { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--line-light); border-radius: 999px; padding: 8px 14px; }
.quiz__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.quiz__back { position: absolute; right: clamp(24px, 4vw, 48px); top: clamp(16px, 2.6vw, 34px); font-size: 13px; color: var(--sand); letter-spacing: .08em; }
.quiz__back:hover { color: var(--paper); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Work / gallery ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; letter-spacing: .08em; transition: all .3s var(--ease); }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(180px, 22vw, 320px); grid-auto-flow: dense; gap: clamp(10px, 1.4vw, 20px); }
.tile { position: relative; overflow: hidden; border-radius: 6px; background: var(--bone); display: block; transition: opacity .5s, transform .6s var(--ease); }
.tile--tall { grid-row: span 2; }
.tile--wide { grid-column: span 2; grid-row: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.tile span {
  position: absolute; left: 14px; bottom: 14px; color: var(--paper); font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  padding: 9px 13px; background: rgba(18, 17, 16, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: 999px;
  transform: translateY(8px); opacity: 0; transition: all .45s var(--ease);
}
.tile:hover img { transform: scale(1.06); }
.tile:hover span, .tile:focus-visible span { transform: none; opacity: 1; }
@media (hover: none) { .tile span { opacity: 1; transform: none; } }
.tile.is-hidden { display: none; }
.tile.is-in { animation: rise .6s var(--ease) both; }
.work__more { margin: 48px 0 0; text-align: center; }

/* ---------- Story ---------- */
.story { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.story__media { position: relative; }
.story__luck {
  margin: 0; aspect-ratio: 3/4; border-radius: 4px; overflow: hidden; position: relative; background: var(--bone);
  background-image: url("../assets/img/p01.jpg"); background-size: cover; background-position: center 78%;
}
.story__luck img { width: 100%; height: 100%; object-fit: cover; clip-path: circle(0% at var(--mx, 50%) var(--my, 50%)); transition: clip-path .8s var(--ease); }
.story__luck:hover img, .story__luck:focus img, .story__luck.is-open img { clip-path: circle(120% at var(--mx, 50%) var(--my, 50%)); }
.story__note { margin: 14px 0 0; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--smoke); }
.story__quote { font: 400 clamp(30px, 3.8vw, 52px)/1.12 var(--serif); margin: 0 0 32px; letter-spacing: -.015em; }
.story__quote em { color: var(--gold); }
.story__text > p:not(.eyebrow) { color: var(--smoke); max-width: 52ch; }
.story__sign { font: 400 52px/1 var(--script) !important; color: var(--ink) !important; margin: 18px 0 0; }
.facts { list-style: none; padding: 28px 0 0; margin: 36px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.facts b { display: block; font: 400 clamp(34px, 4vw, 54px)/1 var(--serif); }
.facts span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--smoke); }

/* ---------- Education rail ---------- */
.edu { background: var(--ink); color: var(--paper); padding-right: 0; }
.edu .section__head { padding-right: var(--pad); }
.edu .h2 em { color: var(--gold-2); }
.edu__nav { display: flex; gap: 10px; }
.round { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-light); font-size: 18px; transition: all .3s var(--ease); }
.round:hover { background: var(--paper); color: var(--ink); }
.rail { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--pad) 10px 0; cursor: grab; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.rail.is-drag * { pointer-events: none; }
.card { flex: 0 0 clamp(260px, 30vw, 400px); scroll-snap-align: start; position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 3/4; background: var(--ink-2); user-select: none; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover img { transform: scale(1.04); }
.card__txt { position: absolute; inset: auto 0 0 0; padding: 70px 22px 22px; background: linear-gradient(to top, rgba(18, 17, 16, .92), transparent); }
.card__txt small { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); }
.card__txt p { margin: 8px 0 0; font: 400 20px/1.3 var(--serif); }
.card--quote { display: flex; flex-direction: column; justify-content: center; padding: 36px; border: 1px solid var(--line-light); background: transparent; }
.card--quote p { font: italic 400 clamp(26px, 2.6vw, 34px)/1.2 var(--serif); margin: 0 0 18px; }
.card--quote small { color: var(--sand); margin-bottom: 32px; }
.card--quote .btn { align-self: flex-start; }

/* ---------- Places ---------- */
.places { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.tabs { display: grid; gap: 12px; margin: 44px 0 32px; }
.tab { text-align: left; padding: 24px 26px; border: 1px solid var(--line); border-radius: 18px; display: flex; flex-direction: column; gap: 6px; transition: all .35s var(--ease); position: relative; }
.tab::after { content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; border: 1px solid currentColor; transition: background .3s; }
.tab__city { font: 400 30px/1 var(--serif); }
.tab__addr { font-size: 14px; color: var(--smoke); letter-spacing: .04em; }
.tab:hover { border-color: var(--ink); }
.tab.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tab.is-active .tab__addr { color: var(--sand); }
.tab.is-active::after { background: var(--gold-2); border-color: var(--gold-2); }
.places__links { display: flex; gap: 28px; flex-wrap: wrap; }
.places__hint { color: var(--smoke); font-size: 14px; margin-top: 28px; }
.places__map { border-radius: 28px; overflow: hidden; aspect-ratio: 4/3.4; background: var(--bone); position: relative; }
.places__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05) sepia(.18); transition: opacity .4s; }
.places__map.is-swapping iframe { opacity: 0; }

/* ---------- Booking ---------- */
.book { background: var(--ink); color: var(--paper); display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.book .h2 em { color: var(--gold-2); }
.book__intro > p:not(.eyebrow) { color: var(--sand); max-width: 42ch; margin-top: 26px; }
.book__steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 14px; }
.book__steps li { display: flex; align-items: center; gap: 16px; font-size: 15px; }
.book__steps b { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--gold-2); color: var(--gold-2); display: grid; place-items: center; font: italic 400 15px/1 var(--serif); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; position: relative; background: var(--ink-2); border: 1px solid var(--line-light); border-radius: 28px; padding: clamp(24px, 4vw, 44px); }
.field { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; position: relative; border: 0; margin: 0; padding: 0; min-width: 0; }
.field--half { grid-column: span 1; }
.field label, .field legend { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--sand); padding: 0; }
.field label small { text-transform: none; letter-spacing: 0; color: var(--smoke); }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-light); color: var(--paper);
  font: 400 18px/1.4 var(--sans); padding: 10px 0; border-radius: 0; transition: border-color .3s; -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23c9b697' stroke-width='1.4'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; padding-right: 26px; cursor: pointer; }
.field select option { background: var(--ink); color: var(--paper); }
.field input::placeholder, .field textarea::placeholder { color: #5f5850; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-2); }
.field input[type="date"] { color-scheme: dark; }
.field textarea { resize: vertical; min-height: 80px; }
.field__err { font-size: 12px; color: #e59a86; height: 0; overflow: hidden; transition: height .3s; }
.field.is-invalid .field__err { height: 18px; }
.field.is-invalid input, .field.is-invalid select { border-color: #e59a86; }
.field__count { position: absolute; right: 0; bottom: -20px; font-size: 11px; color: var(--smoke); }
.field--pills { flex-direction: row; flex-wrap: wrap; gap: 10px; }
.field--pills legend { width: 100%; margin-bottom: 8px; float: left; }
.pill { cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-block; padding: 12px 24px; border-radius: 999px; border: 1px solid var(--line-light); transition: all .3s var(--ease); font-size: 15px; }
.pill input:checked + span { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.pill input:focus-visible + span { outline: 2px solid var(--gold-2); outline-offset: 3px; }
.form .btn--full { grid-column: 1 / -1; margin-top: 12px; }
.form__legal { grid-column: 1 / -1; font-size: 12px; color: var(--smoke); margin: 0; }
.sent { position: absolute; inset: 0; background: var(--ink-2); border-radius: 28px; padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; animation: rise .6s var(--ease); overflow: auto; }
.sent[hidden] { display: none; }
.sent__mark { width: 38px; height: 58px; color: var(--gold-2); }
.sent h3 { font: 400 38px/1.1 var(--serif); margin: 18px 0 8px; }
.sent__copied { color: var(--sand); margin: 0 0 16px; }
.sent__msg { white-space: pre-wrap; font: 400 14px/1.6 var(--sans); background: rgba(243, 239, 233, .05); border: 1px dashed var(--line-light); border-radius: 14px; padding: 16px 18px; margin: 0 0 22px; color: var(--paper); }
.sent__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sent__new { margin-top: auto; padding-top: 22px; align-self: flex-start; font-size: 13px; color: var(--sand); letter-spacing: .08em; }

/* ---------- FAQ ---------- */
.acc { border-top: 1px solid var(--line); max-width: 980px; }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__item summary { list-style: none; cursor: pointer; padding: 28px 56px 28px 0; font: 400 clamp(22px, 2.4vw, 30px)/1.25 var(--serif); position: relative; transition: color .3s; }
.acc__item summary::-webkit-details-marker { display: none; }
.acc__item summary:hover { color: var(--gold); }
.acc__item summary i { position: absolute; right: 8px; top: 50%; width: 22px; height: 22px; margin-top: -11px; }
.acc__item summary i::before, .acc__item summary i::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px; background: currentColor; transition: transform .45s var(--ease); }
.acc__item summary i::after { transform: rotate(90deg); }
.acc__item[open] summary i::after { transform: rotate(0); }
.acc__body { overflow: hidden; }
.acc__body p { margin: 0 0 30px; color: var(--smoke); max-width: 66ch; }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: var(--paper); padding: 90px var(--pad) 30px; overflow: hidden; }
.foot__big { font: 400 clamp(52px, 11vw, 180px)/1.1 var(--script); color: var(--gold-2); white-space: nowrap; margin: 0 0 60px -0.04em; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; border-top: 1px solid var(--line-light); padding-top: 44px; }
.foot__grid p { color: var(--sand); margin: 0 0 18px; }
.foot__grid h4 { font: 500 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; margin: 0 0 10px; color: var(--paper); }
.foot__grid a { text-decoration: none; border-bottom: 1px solid var(--line-light); }
.foot__grid a:hover { border-color: var(--gold-2); color: var(--paper); }
.foot__grid .mono { margin-bottom: 20px; }
.foot__base { display: flex; justify-content: space-between; gap: 20px; margin-top: 60px; font-size: 13px; color: var(--smoke); }
.totop { text-decoration: none; }
.totop:hover { color: var(--paper); }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 120; background: rgba(12, 11, 10, .96); display: grid; grid-template-columns: 80px 1fr 80px; align-items: center; animation: fade .3s ease both; opacity: 0; }
.lb[hidden] { display: none; }
.lb__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; height: 100svh; justify-content: center; padding: 60px 0; }
.lb__fig img { max-height: calc(100svh - 160px); max-width: 100%; object-fit: contain; border-radius: 4px; touch-action: pan-y; transition: opacity .25s; }
.lb__fig figcaption { color: var(--sand); display: flex; gap: 22px; align-items: center; font-size: 14px; flex-wrap: wrap; justify-content: center; padding: 0 16px; }
.lb__cap { color: var(--paper); font: italic 400 18px var(--serif); }
.lb__ig { text-decoration: none; border-bottom: 1px solid var(--line-light); }
.lb__count { font-size: 12px; letter-spacing: .14em; }
.lb__nav, .lb__close { color: var(--paper); width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-light); justify-self: center; font-size: 18px; transition: background .3s, color .3s; }
.lb__nav:hover, .lb__close:hover { background: var(--paper); color: var(--ink); }
.lb__close { position: absolute; top: 20px; right: 20px; width: 48px; height: 48px; z-index: 2; }

/* ---------- Toast ---------- */
.toast:empty { display: none; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 130; transform: translate(-50%, calc(100% + 60px)); background: var(--paper); color: var(--ink); padding: 14px 22px; border-radius: 999px; font-size: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.18); transition: transform .5s var(--ease); max-width: calc(100% - 32px); text-align: center; }
.toast.is-on { transform: translate(-50%, 0); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav__cta { display: none; }
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 110px; text-align: left; }
  .hero__visual { order: -1; width: min(72%, 340px); justify-self: center; margin-top: 20px; }
  .arch--hero { max-height: 56svh; }
  .badge { width: 112px; height: 112px; left: -46px; bottom: 6%; }
  .hero__ig { display: none; }
  .scroll-cue { display: none; }
  .finder, .book, .places, .story { grid-template-columns: 1fr; }
  .story__media { max-width: 520px; }
  .places__map { aspect-ratio: 4/3.6; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav__name { font-size: 11px; letter-spacing: .2em; }
  .hero__meta { gap: 20px; justify-content: space-between; }
  .hero__actions .btn { flex: 1 1 100%; }
  .svc__item { grid-template-columns: 1fr; gap: 14px; padding: 28px 0; }
  .svc__no { font-size: 18px; }
  .svc__thumb { display: block; order: -1; width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 6px; }
  .svc__cta { justify-self: start; }
  .svc__float { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 46vw; }
  .tile--wide { grid-column: span 2; grid-row: span 2; }
  .form { grid-template-columns: 1fr; }
  .field--half { grid-column: 1 / -1; }
  .facts { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .facts span { font-size: 10px; letter-spacing: .1em; }
  .lb { grid-template-columns: 1fr; }
  .lb__nav { position: absolute; bottom: 22px; }
  .lb__prev { left: 22px; } .lb__next { right: 22px; }
  .lb__fig { padding: 70px 12px 100px; }
  .lb__fig img { max-height: calc(100svh - 240px); }
  .foot__base { flex-direction: column; }
  .edu__nav { display: none; }
  .card { flex-basis: 78vw; }
  .quiz { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .wall__track { animation: none; }
}
.edu .h2, .places .h2 { max-width: 18ch; }
[hidden] { display: none !important; }
@media (max-width: 900px) { .hero__visual::after { display: none; } }
.pill { position: relative; }
.field .pill input { width: 1px; height: 1px; padding: 0; border: 0; left: 0; top: 0; }
.field input[type="date"] { min-width: 0; max-width: 100%; }

/* ==========================================================
   Motion (GSAP + Lenis) — aktivno samo kad se biblioteke učitaju
   ========================================================== */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
.has-motion .reveal { opacity: 1; transform: none; transition: none; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .12em; margin: 0 -.02em -.12em; }
.w > span { display: inline-block; will-change: transform; }
.has-motion .tile, .has-motion .card, .has-motion .story__luck, .has-motion .places__map { will-change: clip-path; }
.wall__track { will-change: transform; }
.eyebrow { display: flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; transform-origin: left; }
.has-motion .eyebrow::before { transform: scaleX(var(--line, 1)); }
.hero__text .eyebrow::before { display: none; }
@media (max-width: 640px) {
  .hero { padding-top: 96px; gap: 28px; min-height: auto; }
  .hero__visual { width: min(56%, 260px); }
  .arch--hero { max-height: 44svh; }
  .badge { width: 96px; height: 96px; left: -40px; }
  .hero__meta { margin-top: 40px; }
}
