/* Mimoza — a house in Lika at night; the lights come on. */
:root {
  --ink: #070d1c;
  --night: #0b1530;
  --deep: #13234d;
  --led: #5468ff;
  --ice: #9fd7ff;
  --sun: #f4c430;          /* mimosa yellow */
  --sun-hi: #ffe27a;
  --ember: #ff9a3c;
  --steam: #eceef4;
  --mist: #c9cfde;
  --line: rgb(255 255 255 / .14);
  --line-ink: rgb(7 13 28 / .14);

  --f-display: 'Unbounded', 'Arial Black', sans-serif;
  --f-body: 'Hanken Grotesk', system-ui, sans-serif;

  --t-hero: clamp(3.4rem, 1rem + 11vw, 11.5rem);
  --t-xl: clamp(2.2rem, 1rem + 4.6vw, 5rem);
  --t-l: clamp(1.6rem, 1rem + 2.2vw, 2.8rem);
  --t-m: clamp(1.15rem, 1rem + .6vw, 1.45rem);
  --t-base: clamp(1rem, .95rem + .25vw, 1.1rem);

  --gut: clamp(1rem, 4vw, 3.5rem);
  --sec: clamp(5rem, 3rem + 8vw, 11rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--steam);
  font: 400 var(--t-base)/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.02; letter-spacing: -.02em; margin: 0; }
p { margin: 0 0 1em; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--sun); color: var(--ink); padding: .6rem 1rem; border-radius: 99px; }
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--gut), 1320px); margin-inline: auto; }
.eyebrow {
  font: 500 .74rem/1.2 var(--f-display);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--sun); margin: 0 0 1.1rem;
}
.lead { font-size: var(--t-m); line-height: 1.5; max-width: 34ch; color: var(--mist); }

/* Buttons */
.btn {
  --bg: transparent; --fg: var(--steam);
  position: relative; display: inline-flex; align-items: center; gap: .6em;
  padding: .95em 1.5em; border-radius: 99px; border: 1px solid var(--line);
  background: var(--bg); color: var(--fg);
  font: 600 .82rem/1 var(--f-display); letter-spacing: .04em; text-decoration: none;
  cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), border-color .3s, color .3s;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--sun-hi); border-radius: inherit;
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:hover, .btn:focus-visible { color: var(--ink); border-color: var(--sun-hi); }
.btn:active { transform: scale(.97); }
.btn--sun { --bg: var(--sun); --fg: var(--ink); border-color: var(--sun); }
.btn--ink { --bg: var(--ink); --fg: var(--steam); border-color: var(--ink); }
.btn__arrow { transition: transform .5s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  padding: 1.1rem var(--gut);
  transition: background .5s, backdrop-filter .5s, padding .5s var(--ease), transform .6s var(--ease);
}
.nav.is-solid { background: rgb(7 13 28 / .72); backdrop-filter: blur(14px) saturate(1.3); padding-block: .7rem; }
.nav.is-hidden { transform: translateY(-110%); }
.brand { display: flex; align-items: baseline; gap: .55rem; text-decoration: none; margin-right: auto; }
.brand__mark { width: 1.55rem; height: 1.55rem; align-self: center; fill: var(--sun); transition: transform .8s var(--ease); }
.brand:hover .brand__mark { transform: rotate(72deg) scale(1.1); }
.brand__word { font: 800 1.15rem/1 var(--f-display); letter-spacing: -.02em; }
.brand__town { font: 400 .62rem/1 var(--f-display); letter-spacing: .2em; text-transform: uppercase; color: var(--mist); }
.nav__menu ul { display: flex; gap: 1.8rem; list-style: none; margin: 0; padding: 0; }
.nav__link { position: relative; font-size: .92rem; font-weight: 500; text-decoration: none; color: var(--mist); transition: color .3s; }
.nav__link::after {
  content: ''; position: absolute; left: 50%; bottom: -.5rem; width: 5px; height: 5px; border-radius: 50%;
  background: var(--sun); transform: translateX(-50%) scale(0); transition: transform .4s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--steam); }
.nav__link:hover::after, .nav__link.is-active::after { transform: translateX(-50%) scale(1); }
.nav__cta { padding: .8em 1.2em; }
.burger { display: none; width: 2.8rem; height: 2.8rem; border-radius: 50%; border: 1px solid var(--line); background: transparent; position: relative; cursor: pointer; }
.burger span:not(.sr) { position: absolute; left: 30%; right: 30%; height: 1.5px; background: var(--steam); transition: transform .5s var(--ease); }
.burger span:nth-child(1) { top: 42%; }
.burger span:nth-child(2) { top: 58%; }
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(.22rem) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { transform: translateY(-.22rem) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--night);
  display: flex; flex-direction: column; justify-content: center; padding: 6rem var(--gut) 2rem;
  clip-path: circle(0 at calc(100% - 2.6rem) 2.4rem); transition: clip-path .8s var(--ease-io);
}
.menu[hidden] { display: none; }
body.menu-open { overflow: hidden; }
.nav:focus-within { transform: none; }
.menu.is-open { clip-path: circle(150% at calc(100% - 2.6rem) 2.4rem); }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu__link {
  display: block; font: 600 clamp(2rem, 9vw, 3.4rem)/1.15 var(--f-display); text-decoration: none; letter-spacing: -.03em;
  opacity: 0; transform: translateY(1.5rem); transition: opacity .6s, transform .8s var(--ease); transition-delay: calc(.15s + var(--i) * .06s);
}
.menu__link--sun { color: var(--sun); }
.menu.is-open .menu__link { opacity: 1; transform: none; }
.menu__foot { margin-top: auto; color: var(--mist); }

@media (max-width: 900px) {
  .nav__menu, .nav__cta { display: none; }
  .burger { display: block; }
}
@media (min-width: 901px) { .menu { display: none; } }


/* Page transition: a dark disc spreads from where you clicked */
.veil {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: radial-gradient(circle at var(--vx, 50%) var(--vy, 50%), var(--deep), var(--ink) 70%);
  clip-path: circle(0 at var(--vx, 50%) var(--vy, 50%));
}
.veil.is-closing { transition: clip-path .7s var(--ease-io); clip-path: circle(150% at var(--vx, 50%) var(--vy, 50%)); }
.is-arriving .veil { clip-path: circle(150% at 50% 50%); }
.veil.is-opening { transition: clip-path .9s var(--ease-io); clip-path: circle(0 at 50% 50%); }

/* Reveal on scroll */
.js [data-reveal] { opacity: 0; transform: translateY(2.2rem); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Photo frame: fixed ratio, cover */
.frame { position: relative; overflow: hidden; aspect-ratio: var(--r, 4 / 3); background: var(--night); }
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* Footer */
.foot { position: relative; padding: var(--sec) var(--gut) 1.5rem; background: var(--ink); border-top: 1px solid var(--line); overflow: hidden; }
.foot__big {
  font: 800 clamp(3.4rem, 15.5vw, 17rem)/.8 var(--f-display); letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1px rgb(255 255 255 / .16);
  margin-bottom: clamp(2.5rem, 6vw, 5rem); white-space: nowrap;
}
.foot__big sup { font-size: .3em; vertical-align: top; -webkit-text-stroke: 0; color: var(--sun); margin-left: .1em; }
.foot__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; color: var(--mist); }
.foot__grid a { text-decoration: none; transition: color .3s; }
.foot__grid a:hover { color: var(--sun); }
.foot__lead { font: 400 var(--t-m)/1.4 var(--f-body); color: var(--steam); }
.foot__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin: 4rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--mist); }
@media (max-width: 900px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot__grid { grid-template-columns: 1fr; } }

/* Contact strip — mimosa yellow, shared by pages */
.sunblock { background: var(--sun); color: var(--ink); padding: var(--sec) var(--gut); position: relative; overflow: hidden; }
.sunblock .eyebrow { color: var(--ink); opacity: .7; }
.sunblock h2 { font-size: var(--t-xl); max-width: 14ch; }
.sunblock__row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 2rem; }
.sunblock__links { display: flex; flex-wrap: wrap; gap: .8rem; }
.sunblock .btn { border-color: var(--ink); }
.sunblock .btn:not(.btn--ink) { color: var(--ink); }
.sunblock .btn:hover::before { background: var(--ink); }
.sunblock .btn:hover { color: var(--sun); }
.sunblock__pom { position: absolute; right: -6vw; top: -8vw; width: 34vw; max-width: 460px; fill: rgb(255 255 255 / .22); pointer-events: none; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }

/* Light switch  */
.switch {
  position: absolute; left: -1.6rem; bottom: 2rem; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: .6rem;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.switch__plate { width: 3.4rem; height: 5rem; border-radius: .7rem; background: linear-gradient(145deg, #fbfbf8, #d9dbe2); box-shadow: 0 18px 30px -12px rgb(0 0 0 / .7), inset 0 0 0 1px rgb(0 0 0 / .08); display: grid; place-items: center; }
.switch__rocker { width: 1.9rem; height: 3.3rem; border-radius: .4rem; background: linear-gradient(#fff 0 50%, #e6e7ec 50%); box-shadow: inset 0 -2px 0 rgb(0 0 0 / .1), 0 2px 3px rgb(0 0 0 / .2); transition: transform .3s var(--ease), background .3s; transform: perspective(200px) rotateX(-14deg); position: relative; }
.switch__rocker::after { content: ''; position: absolute; left: 50%; bottom: .45rem; width: .32rem; height: .32rem; translate: -50% 0; border-radius: 50%; background: #9aa0b0; transition: background .3s, box-shadow .3s; }
.switch[aria-checked='true'] .switch__rocker { transform: perspective(200px) rotateX(14deg); background: linear-gradient(#e6e7ec 0 50%, #fff 50%); }
.switch[aria-checked='true'] .switch__rocker::after { background: var(--sun); box-shadow: 0 0 8px var(--sun); }
.switch__label { font: 500 .62rem/1 var(--f-display); letter-spacing: .2em; text-transform: uppercase; color: var(--mist); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
