:root {

    --bg:         oklch(0.985 0.008 350);
    --bg-deep:    oklch(0.962 0.018 350);
    --surface:    oklch(0.995 0.004 350);
    --surface-2:  oklch(1 0 0);
    --panel:      oklch(0.945 0.030 352);
    --panel-2:    oklch(0.920 0.042 352);
    --line:       oklch(0.80 0.045 350 / 0.55);
    --line-strong:oklch(0.70 0.065 352 / 0.65);

    --ink:        oklch(0.34 0.045 355);
    --ink-soft:   oklch(0.44 0.050 354);
    --muted:      oklch(0.48 0.050 354);

    --rose:       oklch(0.66 0.160 358);
    --rose-bright:oklch(0.72 0.150 357);
    --rose-deep:  oklch(0.485 0.170 358);
    --rose-ink:   oklch(1 0 0);

    --sage:       oklch(0.84 0.070 150);
    --sage-soft:  oklch(0.93 0.045 150);
    --sage-ink:   oklch(0.46 0.110 150);
    --lilac:      oklch(0.82 0.075 300);
    --lilac-soft: oklch(0.93 0.045 300);
    --lilac-ink:  oklch(0.50 0.140 300);
    --peach:      oklch(0.86 0.070 45);
    --peach-soft: oklch(0.94 0.040 45);
    --peach-ink:  oklch(0.52 0.130 45);
    --honey:      oklch(0.90 0.090 90);
    --honey-soft: oklch(0.95 0.050 90);
    --honey-ink:  oklch(0.55 0.120 85);

    --glow-rose:  0 0 60px -12px oklch(0.66 0.16 358 / 0.45);
    --glow-sage:  0 0 60px -14px oklch(0.70 0.12 150 / 0.40);
    --glow-honey: 0 0 60px -14px oklch(0.85 0.13 88 / 0.45);

    --shadow-sm: 0 1px 2px oklch(0.50 0.08 355 / 0.10), 0 3px 8px oklch(0.50 0.08 355 / 0.08);
    --shadow-md: 0 6px 16px oklch(0.50 0.08 355 / 0.10), 0 16px 40px -14px oklch(0.50 0.10 355 / 0.18);
    --shadow-lg: 0 12px 30px oklch(0.50 0.08 355 / 0.12), 0 34px 80px -22px oklch(0.50 0.10 355 / 0.24);
    --inner-hi: inset 0 1px 0 oklch(1 0 0 / 0.7);

    --font-display: 'Baloo 2', system-ui, -apple-system, sans-serif;
    --font-body:    'Nunito', system-ui, -apple-system, sans-serif;
    --font-hand:    'Caveat', 'Baloo 2', cursive;

    --step--1: clamp(0.85rem, 0.81rem + 0.18vw, 0.95rem);
    --step-0:  clamp(1.02rem, 0.98rem + 0.2vw, 1.12rem);
    --step-1:  clamp(1.2rem, 1.08rem + 0.55vw, 1.5rem);
    --step-2:  clamp(1.55rem, 1.28rem + 1.25vw, 2.3rem);
    --step-3:  clamp(2.0rem, 1.5rem + 2.3vw, 3.3rem);
    --step-4:  clamp(2.5rem, 1.7rem + 3.9vw, 4.6rem);

    --space-s: clamp(1rem, 0.9rem + 0.5vw, 1.5rem);
    --space-m: clamp(2rem, 1.6rem + 2vw, 3.5rem);
    --space-l: clamp(4.5rem, 3.4rem + 5vw, 8.5rem);
    --gutter: clamp(1.25rem, 4vw, 4rem);
    --page-max: 1180px;
    --radius: 26px;
    --radius-s: 16px;
    --radius-pill: 999px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-soft: cubic-bezier(0.34, 1.16, 0.64, 1);

    --reveal-step: 110ms;
    --reveal-dur: 1.05s;

    --z-grain: 1;
    --z-gauge: 8;
    --z-header: 10;
    --z-menu: 20;

    color-scheme: light;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar { width: 0; height: 0; display: none; }

body {
    font-family: var(--font-body);
    font-size: var(--step-0);
    font-weight: 400;
    line-height: 1.72;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(120% 70% at 50% -10%, var(--panel) 0%, transparent 55%),
        radial-gradient(80% 50% at 100% 105%, var(--sage-soft) 0%, transparent 60%);
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: var(--ink);
    text-wrap: balance;
}

p { text-wrap: pretty; }

::selection {
    background: var(--rose);
    color: var(--rose-ink);
}

:focus-visible {
    outline: 3px solid var(--rose-deep);
    outline-offset: 3px;
    border-radius: 8px;
}

[id] { scroll-margin-top: 6rem; }

.grain {
    position: fixed;
    inset: 0;
    z-index: var(--z-grain);
    pointer-events: none;
    opacity: 0.04;
    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='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.sky-petals {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.sky-petal {
    position: absolute;
    top: -6vh;
    will-change: transform, opacity;
    opacity: 0;
    animation: petal-fall linear infinite;
}
.sky-petal svg { width: 100%; height: 100%; display: block; }
@keyframes petal-fall {
    0%   { transform: translate3d(0,-8vh,0) rotate(0deg); opacity: 0; }
    8%   { opacity: 0.7; }
    92%  { opacity: 0.7; }
    100% { transform: translate3d(var(--drift, 4vw), 108vh, 0) rotate(var(--spin, 220deg)); opacity: 0; }
}

.scroll-gauge {
    position: fixed;
    inset: 0 0 0 auto;
    width: 4px;
    height: 100vh;
    z-index: var(--z-gauge);
    pointer-events: none;
    background: oklch(0.80 0.04 350 / 0.25);
}
.scroll-gauge__fill {
    position: absolute;
    inset: 0 0 auto 0;
    height: 0;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(var(--rose-bright), var(--lilac), var(--sage));
    box-shadow: var(--glow-rose);
}
@media (max-width: 860px) { .scroll-gauge { display: none; } }

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: var(--z-menu);
    padding: 0.6rem 1.1rem;
    background: var(--rose-deep);
    color: var(--rose-ink);
    border-radius: var(--radius-s);
    font-weight: 700;
    transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.btn {
    --btn-y: 0;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.95rem 1.7rem;
    border: 2px solid transparent;
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-size: var(--step-0);
    font-weight: 700;
    letter-spacing: 0.005em;
    cursor: pointer;
    translate: 0 var(--btn-y);
    transition: background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out),
                color 0.3s var(--ease-out), translate 0.25s var(--ease-soft),
                box-shadow 0.3s var(--ease-out);
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn:hover { --btn-y: -3px; }
.btn:active { --btn-y: -1px; }

.btn--primary {
    background: var(--rose-deep);
    color: var(--rose-ink);
    box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
    background: oklch(0.53 0.18 358);
    box-shadow: var(--shadow-md), var(--glow-rose);
}

.btn--ghost {
    border-color: var(--line-strong);
    color: var(--rose-deep);
    background: var(--surface-2);
}
.btn--ghost:hover {
    border-color: var(--rose-deep);
    background: var(--panel);
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: var(--z-header);
    border-bottom: 1px solid transparent;
    transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.site-header.is-scrolled {
    background: color-mix(in oklch, var(--bg) 80%, transparent);
    backdrop-filter: blur(16px) saturate(135%);
    -webkit-backdrop-filter: blur(16px) saturate(135%);
    border-bottom-color: var(--line);
    box-shadow: var(--shadow-sm);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 0.85rem var(--gutter);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-right: auto;
}
.brand__mark {
    width: 2.5rem;
    height: 2.5rem;
    flex: none;
    transition: transform 0.5s var(--ease-soft);
}
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.06); }
.brand__word {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
    color: var(--ink);
    white-space: nowrap;
    line-height: 1;
}
.brand__word span {
    display: block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rose-deep);
}

.site-nav__list { display: flex; gap: clamp(0.9rem, 2vw, 1.7rem); }
.site-nav__list a {
    position: relative;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink-soft);
    padding: 0.3rem 0;
    transition: color 0.2s ease;
}
.site-nav__list a::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--rose);
    scale: 0 1;
    transform-origin: left;
    transition: scale 0.3s var(--ease-out);
}
.site-nav__list a:hover,
.site-nav__list a.is-active { color: var(--rose-deep); }
.site-nav__list a:hover::before,
.site-nav__list a.is-active::before { scale: 1 1; }

.site-header__actions { display: flex; align-items: center; gap: 0.75rem; }
.site-header__cta { padding: 0.6rem 1.2rem; font-size: 0.92rem; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 2.7rem;
    height: 2.7rem;
    border: 2px solid var(--line-strong);
    border-radius: var(--radius-s);
    background: var(--surface-2);
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 1.15rem;
    height: 2.5px;
    border-radius: 2px;
    margin: 0 auto;
    background: var(--rose-deep);
    transition: translate 0.3s var(--ease-out), rotate 0.3s var(--ease-out);
}
.nav-toggle[aria-expanded="true"] span:first-child { translate: 0 4.25px; rotate: 45deg; }
.nav-toggle[aria-expanded="true"] span:last-child  { translate: 0 -4.25px; rotate: -45deg; }

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-header) - 1);
    display: grid;
    place-items: center;
    background: color-mix(in oklch, var(--bg) 92%, transparent);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu ul { display: grid; gap: 1.3rem; text-align: center; }
.mobile-menu a {
    font-family: var(--font-display);
    font-size: var(--step-2);
    font-weight: 700;
    color: var(--ink);
}
.mobile-menu a:hover { color: var(--rose-deep); }

.site-footer {
    position: relative;
    margin-top: 0;
    background: var(--panel);
    border-top: 1px solid var(--line);
}
.site-footer__wave { display: block; width: 100%; height: auto; color: var(--panel); margin-bottom: -1px; }
.site-footer__inner {
    max-width: var(--page-max);
    margin: 0 auto;
    padding: var(--space-m) var(--gutter) var(--space-s);
    display: grid;
    gap: var(--space-s);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.footer-col h3 {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rose-deep);
    margin-bottom: 0.9rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.95rem; color: var(--ink-soft); }
.footer-col a { color: var(--ink-soft); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--rose-deep); text-decoration: underline; text-underline-offset: 3px; }

.footer-about { max-width: 52ch; }
.footer-about p {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--ink-soft);
    text-wrap: pretty;
}
.footer-about strong { color: var(--rose-deep); font-weight: 700; }

.footer-brand {
    display: flex;
    justify-content: center;
    align-self: stretch;
    align-items: center;
}
.footer-brand-marks {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-brand-laurine { display: inline-flex; align-items: center; gap: 0.6rem; }
.footer-brand-laurine .f-mark { width: 2.6rem; height: 2.6rem; flex: none; }
.footer-brand-laurine .brand__word { font-size: 1.35rem; text-align: left; }
.footer-iatko-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    transition: transform 0.35s var(--ease-soft);
}
.footer-iatko-logo:hover { transform: translateY(-3px); }
.footer-iatko-label {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--muted);
}
.footer-iatko-lockup { display: inline-flex; align-items: center; gap: 0.9rem; }
.footer-iatko-lockup img { width: auto; height: 5rem; display: block; }
.footer-iatko-name {
    font-family: 'Ms Madi', cursive;
    font-size: 4.2rem;
    line-height: 0.8;
    color: var(--ink);
}
.site-footer__base {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 0.5rem 2rem;
    padding-top: var(--space-s);
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.82rem;
}
.site-footer__base a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.site-footer__base a:hover { text-decoration-color: var(--rose-deep); }

@media (max-width: 760px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 1.8rem; }
    .footer-about { max-width: 60ch; margin-inline: auto; }
    .footer-about p { margin-inline: auto; }
    .footer-brand {
        justify-content: center;
        border-left: none;
        border-top: 1px solid var(--line);
        padding-left: 0;
        padding-top: 1.8rem;
    }
}

.legal {
    padding: calc(5.5rem + var(--space-m)) var(--gutter) var(--space-l);
}
.legal__inner { max-width: 50rem; margin: 0 auto; }
.legal__back {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--rose-deep);
}
.legal__back:hover { text-decoration: underline; text-underline-offset: 3px; }
.legal__back--bottom { margin-top: var(--space-m); }
.legal h1 {
    margin-top: 1.4rem;
    font-size: var(--step-3);
    color: var(--rose-deep);
}
.legal__maj { margin-top: 0.5rem; color: var(--muted); font-size: 0.85rem; }
.legal section { margin-top: 2.2rem; }
.legal h2 { font-size: var(--step-1); color: var(--ink); }
.legal p { margin-top: 0.8rem; color: var(--ink-soft); line-height: 1.75; }
.legal ul { margin-top: 0.8rem; padding-left: 1.3rem; list-style: disc; color: var(--ink-soft); }
.legal li { margin-top: 0.35rem; line-height: 1.7; }
.legal a { color: var(--rose-deep); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { text-decoration-thickness: 2px; }
.legal strong { color: var(--ink); }

.site-footer__legal { display: inline-flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.site-footer__legal a { color: var(--ink-soft); }
.site-footer__legal a:hover { color: var(--rose-deep); }

html.js [data-reveal].will-reveal {
    opacity: 0;
    translate: 0 34px;
    scale: 0.985;
    filter: blur(8px);
}
html.js [data-reveal="left"].will-reveal  { translate: -52px 0; scale: 1;    filter: blur(6px); }
html.js [data-reveal="right"].will-reveal { translate: 52px 0;  scale: 1;    filter: blur(6px); }
html.js [data-reveal="zoom"].will-reveal  { translate: 0 12px;  scale: 0.9;  filter: blur(12px); }
html.js [data-reveal="pop"].will-reveal   { translate: 0 28px;  scale: 0.82; filter: blur(4px); }

html.js [data-reveal="zoom"] { --reveal-dur: 1.25s; }
html.js [data-reveal="pop"]  { --reveal-dur: 0.85s; }
html.js [data-reveal="left"],
html.js [data-reveal="right"] { --reveal-dur: 1.15s; }

html.js [data-reveal].is-in {
    opacity: 1;
    translate: 0 0;
    scale: 1;
    filter: blur(0);
    transition:
        opacity var(--reveal-dur) var(--ease-out),
        translate var(--reveal-dur) var(--ease-out),
        scale var(--reveal-dur) var(--ease-out),
        filter var(--reveal-dur) var(--ease-out);
    transition-delay: calc(var(--reveal-i, 0) * var(--reveal-step));
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html.js [data-reveal].will-reveal { opacity: 1; translate: none; scale: none; filter: none; }
    html.js [data-reveal].is-in { transition-delay: 0s; }
    .sky-petals { display: none; }
}

@media (max-width: 860px) {
    .site-nav, .site-header__cta { display: none; }
    .nav-toggle { display: flex; }
}
@media (pointer: coarse) {
    .nav-toggle { width: 2.9rem; height: 2.9rem; }
}
