/* ============================================================
   Mirno More Consulting — static site
   Sea-slate neutrals + one lagoon accent. Light theme, sharp
   corners, self-hosted Geist / Geist Mono (latin + latin-ext
   for Croatian diacritics).
   ============================================================ */

@font-face {
  font-family: "Geist Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/geist-latin-ext.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/geist-latin.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/geist-mono-latin-ext.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/geist-mono-latin.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f6f7f7;
  --tide: #eceff0;
  --mist: #d8dfdf;
  --haze: #4d5e5c;
  --ink: #0f1f1e;
  --lagoon: #0d6a62;
  --lagoon-deep: #0a534d;
  --sans: "Geist Variable", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --mono: "Geist Mono Variable", ui-monospace, "Cascadia Mono", monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

::selection {
  background: var(--lagoon);
  color: var(--paper);
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, p, dl, dd, dt, ul {
  margin: 0;
}

.container {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 24px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--haze);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--lagoon);
  color: var(--paper);
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.3s var(--ease);
}
.btn:hover {
  background: var(--lagoon-deep);
}
.btn:active {
  transform: translateY(1px);
}
.btn--sm {
  padding: 10px 20px;
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(15, 31, 30, 0.25);
  transition: border-color 0.3s var(--ease);
}
.btn--ghost:hover {
  background: transparent;
  border-color: rgba(15, 31, 30, 0.6);
}

/* --- Nav --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 247, 247, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(216, 223, 223, 0.7);
}
.nav-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark {
  font-size: 17px;
  letter-spacing: -0.02em;
}
.wordmark strong {
  font-weight: 600;
}
.wordmark span {
  color: var(--haze);
}
.nav-links {
  display: none;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  margin-top: -68px;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: drift 38s ease-in-out infinite alternate;
  transform-origin: 50% 60%;
  will-change: transform;
}
@keyframes drift {
  from { transform: scale(1.06); }
  to { transform: scale(1.15) translateY(-2%); }
}
.mist {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(72px);
}
.mist-a {
  left: -10%;
  top: 15%;
  height: 45%;
  width: 65%;
  background: rgba(246, 247, 247, 0.45);
  animation: mist-a 44s ease-in-out infinite alternate;
}
.mist-b {
  right: -15%;
  top: 40%;
  height: 40%;
  width: 55%;
  background: rgba(246, 247, 247, 0.3);
  animation: mist-b 56s ease-in-out infinite alternate;
}
@keyframes mist-a {
  from { transform: translate3d(-6%, 0, 0); }
  to { transform: translate3d(7%, -8%, 0); }
}
@keyframes mist-b {
  from { transform: translate3d(4%, 2%, 0); }
  to { transform: translate3d(-6%, -5%, 0); }
}
.hero-scrim {
  position: absolute;
  inset: auto 0 0 0;
  height: 72%;
  background: linear-gradient(to top, var(--paper), rgba(246, 247, 247, 0.75), transparent);
}
.hero-inner {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 160px;
  padding-bottom: 80px;
}
.hero h1 {
  margin-top: 20px;
  max-width: 48rem;
  font-size: clamp(2.9rem, 8.5vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}
.accent {
  color: var(--lagoon);
}
.sub {
  margin-top: 24px;
  max-width: 52ch;
  font-size: 18px;
  line-height: 1.6;
  color: var(--haze);
}
.hero-ctas {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* --- Registry strip --- */
.strip {
  border-block: 1px solid var(--mist);
  background: var(--tide);
}
.strip-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-block: 20px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--haze);
}

/* --- Sections --- */
.section {
  padding-block: 96px;
}
.section--tide {
  background: var(--tide);
  border-block: 1px solid var(--mist);
}
.section--bordered {
  border-top: 1px solid var(--mist);
}
h2 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.lead {
  margin-top: 16px;
  max-width: 60ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--haze);
}

/* --- Services --- */
.service-list {
  list-style: none;
  padding: 0;
  margin-top: 56px;
  border-block: 1px solid var(--mist);
}
.service-list li {
  padding-block: 32px;
  display: grid;
  gap: 12px;
}
.service-list li + li {
  border-top: 1px solid var(--mist);
}
.service-list h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.service-list p {
  max-width: 65ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--haze);
}
.meta {
  margin-top: 12px !important;
  font-family: var(--mono);
  font-size: 13px !important;
  color: rgba(77, 94, 92, 0.8) !important;
}

/* --- Meta advertising capabilities --- */
.capabilities {
  margin-top: 56px;
  display: grid;
  gap: 32px;
}
.cap {
  border-top: 1px solid var(--mist);
  padding-top: 20px;
}
.cap h3 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.cap p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--haze);
}

/* --- Driving force statement --- */
.statement {
  margin-top: 32px;
  max-width: 34em;
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.45;
}

/* --- Approach --- */
.steps {
  margin-top: 56px;
  display: grid;
  gap: 48px;
}
.tick {
  height: 3px;
  width: 48px;
  background: var(--lagoon);
}
.step h3 {
  margin-top: 20px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.step p {
  margin-top: 12px;
  max-width: 42ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--haze);
}

/* --- About --- */
.about {
  max-width: 48rem;
}
.about p {
  margin-top: 24px;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--haze);
}
.about p + p {
  margin-top: 20px;
}

/* --- Contact --- */
.contact {
  max-width: 48rem;
}
.email-link {
  display: inline-block;
  margin-top: 40px;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--lagoon);
  text-decoration: underline;
  text-decoration-color: rgba(13, 106, 98, 0.3);
  text-underline-offset: 8px;
  word-break: break-all;
  transition: color 0.3s var(--ease), text-decoration-color 0.3s var(--ease);
}
.email-link:hover {
  color: var(--lagoon-deep);
  text-decoration-color: var(--lagoon-deep);
}
.address {
  margin-top: 32px;
  color: var(--haze);
}
.contact .btn {
  margin-top: 4px;
}
.contact p:last-child {
  margin-top: 36px;
}

/* --- Footer / impressum --- */
.footer {
  background: var(--tide);
  border-top: 1px solid var(--mist);
  padding-block: 64px;
}
.legal-grid {
  margin-top: 32px;
  display: grid;
  gap: 24px;
}
.legal-grid dt {
  font-size: 14px;
  color: var(--haze);
}
.legal-grid dd {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
}
.verify {
  margin-top: 40px;
  max-width: 70ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--haze);
}
.verify a {
  color: var(--lagoon);
  text-decoration: underline;
  text-decoration-color: rgba(13, 106, 98, 0.3);
  text-underline-offset: 4px;
  transition: color 0.3s var(--ease);
}
.verify a:hover {
  color: var(--lagoon-deep);
}
.foot-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--mist);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  color: var(--haze);
}

/* --- Scroll reveals (JS-gated: page stays visible without JS) --- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* --- Hero entrance --- */
html.js .line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}
html.js .line {
  display: block;
  transform: translateY(115%);
  animation: rise 0.9s var(--ease) forwards;
}
html.js .line-2 {
  animation-delay: 0.12s;
}
@keyframes rise {
  to { transform: translateY(0); }
}
html.js .fade {
  opacity: 0;
  animation: fadeup 0.8s var(--ease) forwards;
}
html.js .fade-1 { animation-delay: 0.1s; }
html.js .fade-2 { animation-delay: 0.38s; }
html.js .fade-3 { animation-delay: 0.5s; }
@keyframes fadeup {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* --- Desktop --- */
@media (min-width: 768px) {
  .container {
    padding-inline: 40px;
  }
  .nav-links {
    display: flex;
    gap: 32px;
    font-size: 14px;
    color: var(--haze);
  }
  .nav-links a {
    transition: color 0.3s var(--ease);
  }
  .nav-links a:hover {
    color: var(--ink);
  }
  .strip-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .section {
    padding-block: 128px;
  }
  .service-list li {
    grid-template-columns: 1fr 2fr;
    gap: 40px;
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
  .capabilities {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    row-gap: 48px;
  }
  .legal-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 56px;
  }
  .span2 {
    grid-column: 1 / -1;
  }
  .foot-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
  .footer {
    padding-block: 80px;
  }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-media,
  .mist-a,
  .mist-b {
    animation: none;
  }
  html.js .line,
  html.js .fade {
    transform: none;
    opacity: 1;
    animation: none;
  }
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
