/* ==========================================================================
   MiREINA.lt — "Growth tree" public theme
   Palette taken from mireina_bg_history.jpg: sand, stone, bark, leaf green.
   ========================================================================== */

:root {
    color-scheme: light;

    /* Primitive palette */
    --sand-50:  #FFFCF4;
    --sand-100: #F6F0E2;
    --sand-200: #EFE5CF;
    --sand-300: #E0D3B5;
    --sand-500: #C9A45C;
    --stone-900: #2F2E26;
    --stone-700: #4A4739;
    --stone-600: #5D5845;
    --bark:       #6B4A2E;
    --bark-light: #8C6A45;
    --leaf-light: #A9D34F;
    --leaf:       #6FAF2A;
    --leaf-deep:  #3E7417;
    --leaf-ink:   #2F5A10;

    /* Semantic tokens */
    --bg: var(--sand-100);
    --bg-alt: var(--sand-200);
    --surface: var(--sand-50);
    --ink: var(--stone-900);
    --ink-soft: var(--stone-600);
    --line: var(--sand-300);
    --accent: var(--leaf-deep);
    --accent-hover: var(--leaf-ink);
    --on-accent: #FFFFFF;
    --focus: #2F5A10;
    --danger: #A12C1B;

    /* Type */
    --font-head: "Lora", Georgia, "Times New Roman", serif;
    --font-body: "Raleway", "Segoe UI", system-ui, -apple-system, sans-serif;

    /* Space & shape */
    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
    --shadow-sm: 0 1px 2px rgba(74, 58, 30, .06), 0 2px 8px rgba(74, 58, 30, .05);
    --shadow: 0 2px 4px rgba(74, 58, 30, .05), 0 12px 32px rgba(74, 58, 30, .09);
    --header-h: 68px;

    /* Growth rail: trunk x-offset inside the container, and gap to content */
    --pad: 16px;
    --rail: 10px;
    --rail-gap: 30px;

    --ease-out: cubic-bezier(.22, 1, .36, 1);
}

@media (min-width: 768px) {
    :root { --pad: 32px; --rail: 22px; --rail-gap: 58px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    font-variant-numeric: lining-nums;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0; color: var(--ink); text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
/* contact form honeypot: off screen for people, still a normal field for bots (not display:none, some bots skip those) */
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 2000;
    background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
    transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }

.container {
    width: 100%;
    max-width: 1160px;
    margin-inline: auto;
    padding-inline: var(--pad);
}

/* Content that sits to the right of the trunk */
.container.railed { padding-left: calc(var(--pad) + var(--rail) + var(--rail-gap)); }

/* ---------- Buttons & chips ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 10px 22px;
    border-radius: 999px; border: 1.5px solid transparent;
    font-weight: 600; font-size: .95rem; letter-spacing: .01em; text-decoration: none;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease-out), box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 18px rgba(62, 116, 23, .22); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--sand-300); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--bark-light); }
.btn-more { background: var(--surface); color: var(--ink); border-color: var(--sand-300); box-shadow: var(--shadow-sm); }
.btn-more:hover { border-color: var(--leaf); color: var(--leaf-ink); }
.btn[disabled] { opacity: .6; cursor: progress; }

.chip {
    display: inline-block; padding: 2px 10px; border-radius: 999px;
    background: rgba(111, 175, 42, .14); color: var(--leaf-ink);
    font-size: .78rem; font-weight: 600; letter-spacing: .02em; white-space: nowrap;
}
.chip-quiet { background: var(--sand-200); color: var(--stone-700); }

.icon-btn {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
    cursor: pointer; transition: background-color .2s, border-color .2s;
}
.icon-btn:hover { border-color: var(--bark-light); }
.icon-btn svg { width: 20px; height: 20px; }

.eyebrow {
    font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--leaf-deep); margin-bottom: 10px; margin-left: 15px;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(246, 240, 226, .88);
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(74, 58, 30, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }

.brand {
    display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
    font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--ink); letter-spacing: .01em;
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; color: var(--bark); }
.brand-tld { color: var(--leaf-deep); }

.nav-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

.site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px 16px 16px;
    display: none;
}
.site-nav.is-open { display: block; }
.site-nav ul { display: flex; flex-direction: column; gap: 2px; }
.site-nav a {
    display: flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 12px;
    color: var(--stone-700); font-weight: 600; font-size: .95rem; text-decoration: none;
    transition: background-color .2s, color .2s;
}
.site-nav a:hover { background: var(--sand-200); color: var(--ink); }
.site-nav a.is-current { color: var(--leaf-ink); background: rgba(111, 175, 42, .12); }
.site-nav a.nav-cta { background: var(--accent); color: var(--on-accent); justify-content: center; margin-top: 6px; }
.site-nav a.nav-cta:hover { background: var(--accent-hover); color: var(--on-accent); }

@media (min-width: 992px) {
    .nav-toggle { display: none; }
    .site-nav { position: static; display: block; background: none; border: 0; box-shadow: none; padding: 0; }
    .site-nav ul { flex-direction: row; align-items: center; gap: 2px; }
    .site-nav a { min-height: 40px; padding: 6px 12px; border-radius: 999px; font-size: .9rem; }
    .site-nav a.nav-cta { margin: 0 0 0 8px; padding-inline: 18px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 40px 0 72px; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: auto -20% -40% -20%; height: 70%;
    background: radial-gradient(ellipse at center, rgba(169, 211, 79, .18), transparent 65%);
    pointer-events: none;
}
.hero-inner { position: relative; display: grid; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 600; letter-spacing: -.01em; }
.hero h1 em { display: block; font-style: italic; font-weight: 500; color: var(--leaf-deep); }
.hero-lede { margin-top: 18px; font-size: 1.15rem; color: var(--ink-soft); max-width: 34ch; }

.hero-rotator { margin-top: 22px; max-width: 44ch; border-left: 3px solid var(--leaf); padding-left: 14px; display: grid; gap: 6px; }
.hero-rotator li { font-size: .95rem; color: var(--ink-soft); }
.js .hero-rotator:not(.is-static) li { grid-area: 1 / 1; opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s var(--ease-out); }
.js .hero-rotator:not(.is-static) li.is-active { opacity: 1; transform: none; }
.hero-rotator strong { display: block; color: var(--ink); font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 16px; font-size: .85rem; color: var(--ink-soft); }

.hero-visual { margin: 0; position: relative; }
.hero-visual img {
    width: 100%;
    aspect-ratio: 1200 / 840;
    object-fit: cover;
    object-position: 50% 0;
    -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 72%, transparent 100%);
    mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 72%, transparent 100%);
    mix-blend-mode: multiply;
}
.js .hero-visual img { animation: hero-in 1.2s var(--ease-out) both; }
@keyframes hero-in { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }

.scroll-cue {
    position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    color: var(--bark); background: var(--surface); border: 1px solid var(--line);
    animation: cue 2.4s ease-in-out infinite;
}
.scroll-cue svg { width: 20px; height: 20px; }
@keyframes cue { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

@media (min-width: 900px) {
    .hero { padding: 56px 0 96px; }
    .hero-inner { grid-template-columns: 1fr 1.15fr; gap: 24px; }
}

/* ---------- Growth tree ---------- */
.growth { position: relative; }
.growth { overflow-x: clip; }
/* Section backgrounds < trunk (z 0) < section content (z 1) */
/* Section backgrounds < full-width scenes (z 0) < trunk (z 1) < section content (z 2) */
.growth .section > .container { position: relative; z-index: 2; }

.tree-svg {
    position: absolute; left: 0; top: 0; width: 100%; height: 100%;
    z-index: 1; pointer-events: none; overflow: visible;
}
.tree-trunk, .tree-trunk-hi, .tree-branch { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tree-trunk { stroke: var(--bark); stroke-width: 7; }
.tree-trunk-hi { stroke: var(--bark-light); stroke-width: 2.2; opacity: .55; }
.tree-branch { stroke: var(--bark); stroke-width: 3.2; transition: stroke-dashoffset .9s var(--ease-out); }
.tree-branch.is-thin { stroke-width: 2.2; }

.tree-leaf { transform: scale(0); transform-origin: 0 0; }
.tree-vein { fill: none; stroke: rgba(255, 255, 255, .45); stroke-width: 1; stroke-linecap: round; }
.tree-seed { fill: var(--bark); }
.lf-1 { fill: var(--leaf); }
.lf-2 { fill: var(--leaf-light); }
.lf-3 { fill: var(--leaf-deep); }

.tree-node.is-grown .tree-branch { stroke-dashoffset: 0 !important; }
.tree-node.is-grown .tree-leaf { animation: leaf-grow .7s cubic-bezier(.34, 1.56, .64, 1) .35s both; }
.tree-node.is-grown > g:nth-of-type(2) .tree-leaf { animation-delay: .5s; }
.tree-node.is-grown > g:nth-of-type(3) .tree-leaf { animation-delay: .65s; }
.tree-node.is-grown > g:nth-of-type(n+4) .tree-leaf { animation-delay: .8s; }
.tree-svg.is-building .tree-branch,
.tree-node.no-anim .tree-branch { transition: none; }
.tree-node.no-anim .tree-leaf { animation: none; transform: scale(1); }
@keyframes leaf-grow { from { transform: scale(0); } to { transform: scale(1); } }

.tree-marker { display: block; height: 0; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(239, 229, 207, .7) 12%, rgba(239, 229, 207, .7) 88%, transparent); }
@media (min-width: 768px) { .section { padding: 104px 0; } }

.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 600; }
.section-head .lede { margin-top: 14px; }
.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 62ch; }
.section-tagline { margin-top: 10px; font-size: .9rem; color: var(--ink-soft); font-style: italic; }

/* Scroll reveal (only with JS so content is never hidden without it) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Intro quote */
.section-intro { padding-top: 56px; }
.intro-quote { margin: 0 0 20px; max-width: 760px; }
.intro-quote blockquote { margin: 0; }
.intro-quote blockquote p {
    font-family: var(--font-head); font-style: italic; font-weight: 500;
    font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.35; color: var(--ink);
}
.intro-quote figcaption { margin-top: 12px; color: var(--ink-soft); font-weight: 600; }
.section-intro .lede { margin-bottom: 24px; }

/* Story timeline */
.story-wrap { position: relative; }
.story-list { display: grid; gap: 14px; padding-left: calc(var(--rail) + var(--rail-gap)); }
.story-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px 18px; box-shadow: var(--shadow-sm);
    transition: border-color .25s, box-shadow .25s, transform .25s var(--ease-out);
}
.story-card:hover { border-color: rgba(111, 175, 42, .55); box-shadow: var(--shadow); transform: translateY(-2px); }
.story-card h3 { font-size: 1.15rem; margin-top: 8px; font-weight: 600; }
.story-card h3 a { color: var(--ink); text-decoration-color: rgba(111, 175, 42, .6); }
.story-card h3 a:hover { color: var(--leaf-ink); }
.story-header { margin-top: 2px; font-weight: 600; font-size: .92rem; color: var(--stone-700); }
.story-desc { margin-top: 4px; font-size: .92rem; color: var(--ink-soft); }
.more-wrap { display: flex; justify-content: center; margin-top: 32px; position: relative; z-index: 1; }
.more-wrap.more-left { justify-content: flex-start; }
.story-wrap .more-wrap { padding-left: calc(var(--rail) + var(--rail-gap)); justify-content: flex-start; }

@media (min-width: 900px) {
    /* Trunk runs through the middle: cards alternate either side */
    .story-wrap { padding-top: 90px; padding-bottom: 110px; }
    .story-list { padding-left: 0; gap: 0; }
    .story-item { width: 50%; margin-top: -22px; }
    .story-item:first-child { margin-top: 0; }
    .story-item.is-left { padding-right: 56px; }
    .story-item.is-right { margin-left: 50%; padding-left: 56px; }
    .story-item.is-left .story-card { text-align: right; }
    .story-wrap .more-wrap { padding-left: 0; justify-content: center; margin-top: 40px; }
}

/* Process: "working from morning till sundown" */
.journey {
    --dawn: 1; --noon: 0; --dusk: 0;
    position: relative;
    z-index: 0;               /* full-bleed scene sits under the tree trunk */
    overflow: hidden;
    margin-top: -24px;
    padding: 160px 0 72px;
}
.journey > .container { position: relative; z-index: 2; }
.journey-sky {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: linear-gradient(180deg, #EAF3D6 0%, #F1F2DC 55%, #F6F0E2 100%);
    /* frameless: melt into the page at the top and bottom */
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 110px, #000 calc(100% - 40px), transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0, #000 110px, #000 calc(100% - 40px), transparent 100%);
}
.sky-tint { position: absolute; inset: 0; transition: opacity .4s linear; }
.sky-dawn { opacity: var(--dawn); background: radial-gradient(120% 90% at 0% 100%, rgba(255, 214, 150, .75), rgba(255, 236, 190, .25) 45%, transparent 70%); }
.sky-noon { opacity: var(--noon); background: radial-gradient(90% 80% at 50% 0%, rgba(214, 238, 150, .8), rgba(233, 245, 205, .3) 50%, transparent 75%); }
.sky-dusk { opacity: var(--dusk); background: radial-gradient(120% 90% at 100% 100%, rgba(240, 160, 110, .6), rgba(214, 170, 120, .25) 45%, transparent 70%), linear-gradient(180deg, rgba(120, 110, 90, .12), transparent 60%); }

.sun-arc { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sun-arc path { fill: none; stroke: rgba(111, 175, 42, .4); stroke-width: 1.5; stroke-dasharray: 2 8; stroke-linecap: round; }

.sun {
    position: absolute; left: 0; top: 0; width: 64px; height: 64px;
    margin: -32px 0 0 -32px;
    transform: translate3d(var(--sx, -100px), var(--sy, 400px), 0);
    will-change: transform;
}
.sun-core {
    position: absolute; inset: 12px; border-radius: 50%;
    background: radial-gradient(circle at 38% 35%, #FFFBE0 0%, #F3EC86 38%, #C9E05A 72%, #9BC83A 100%);
    box-shadow: 0 0 0 6px rgba(214, 238, 120, .35), 0 0 36px 10px rgba(214, 230, 100, .55), 0 0 90px 30px rgba(190, 220, 90, .3);
    animation: sun-pulse 4s ease-in-out infinite;
}
.sun-rays {
    position: absolute; inset: -18px; border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, rgba(190, 216, 70, .6) 0deg 6deg, transparent 6deg 22.5deg);
    -webkit-mask: radial-gradient(circle, transparent 38%, #000 40%, #000 58%, transparent 72%);
            mask: radial-gradient(circle, transparent 38%, #000 40%, #000 58%, transparent 72%);
    animation: sun-spin 28s linear infinite;
}
@keyframes sun-spin { to { transform: rotate(360deg); } }
@keyframes sun-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

.sun-clock {
    position: absolute; left: 0; top: 0;
    transform: translate3d(var(--sx, -100px), var(--sy, 400px), 0) translate(-50%, 44px);
    padding: 2px 10px; border-radius: 999px;
    background: rgba(255, 252, 244, .88); border: 1px solid var(--line);
    font-size: .75rem; font-weight: 700; letter-spacing: .04em; color: var(--stone-700);
    font-variant-numeric: tabular-nums; white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34%; min-height: 120px; }
.hill-back  { fill: rgba(169, 211, 79, .35); }
.hill-mid   { fill: rgba(111, 175, 42, .30); }
.hill-front { fill: rgba(62, 116, 23, .22); }

.journey-route { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.route-line { fill: none; stroke: var(--bark-light); stroke-width: 1.6; stroke-dasharray: 7 7; stroke-linecap: round; opacity: .8; }
.route-mask { fill: none; stroke: #fff; stroke-width: 14; stroke-linecap: round; }
.route-pin { fill: var(--leaf-deep); }
.route-pin-dot { fill: var(--surface); }

.journey-steps {
    position: relative; z-index: 2;
    display: grid; gap: 28px 16px; grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}
.journey-step { text-align: center; }
.journey-step h3 { font-size: 1.15rem; font-weight: 600; margin-top: 4px; transition: color .3s; }
.journey-step p {
    display: inline;
    color: var(--ink-soft); font-size: .92rem;
    background: linear-gradient(var(--leaf), var(--leaf)) no-repeat 50% 100% / 0 2px;
    padding-bottom: 2px;
    transition: background-size .35s var(--ease-out), color .3s;
}

.journey-media {
    --size: 124px;
    position: relative; width: var(--size); height: var(--size); margin: 0 auto 18px;
    transition: transform .45s var(--ease-out);
}
.journey-media img {
    position: relative; z-index: 1;
    width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
    border: 5px solid var(--surface);
    box-shadow: var(--shadow);
    filter: grayscale(.7) brightness(1.03);
    transition: filter .8s var(--ease-out), transform .5s var(--ease-out), box-shadow .4s;
}
.journey-media::after { /* ground shadow, like the original */
    content: ""; position: absolute; left: 18%; right: 18%; bottom: -16px; height: 8px; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(74, 58, 30, .28), transparent);
    transition: transform .45s var(--ease-out), opacity .45s;
}
.journey-ring {
    position: absolute; inset: -9px; border-radius: 50%;
    border: 1.5px dashed var(--bark-light);
    opacity: .6;
    transition: border-color .6s, box-shadow .6s, opacity .6s;
}
.journey-num {
    position: absolute; z-index: 2; right: 0; bottom: 4px;
    width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--sand-300); color: var(--stone-700);
    font-family: var(--font-head); font-weight: 700;
    border: 3px solid var(--surface);
    transition: background-color .5s, color .5s, transform .45s cubic-bezier(.34, 1.56, .64, 1);
}

/* Lit by the sun */
.journey-step.is-lit .journey-media img { filter: none; }
.journey-step.is-lit .journey-ring { opacity: 1; border-color: var(--leaf); box-shadow: 0 0 0 6px rgba(169, 211, 79, .16), 0 0 28px rgba(169, 211, 79, .35); }
.journey-step.is-lit .journey-num { background: var(--accent); color: var(--on-accent); }

/* Hover */
.journey-step:hover .journey-media { transform: translateY(-8px); }
.journey-step:hover .journey-media::after { transform: scaleX(.75); opacity: .55; }
.journey-step:hover .journey-media img { transform: scale(1.05); filter: none; box-shadow: 0 18px 40px rgba(62, 116, 23, .25); }
.journey-step:hover .journey-ring { opacity: 1; border-color: var(--leaf-deep); animation: ring-spin 9s linear infinite; }
.journey-step:hover .journey-num { transform: scale(1.18) rotate(-10deg); background: var(--accent); color: var(--on-accent); }
.journey-step:hover h3 { color: var(--leaf-ink); }
.journey-step:hover p { background-size: 100% 2px; color: var(--ink); }
@keyframes ring-spin { to { transform: rotate(360deg); } }

@media (min-width: 900px) {
    .journey { padding: 190px 0 96px; }
    .journey-steps { grid-template-columns: 1fr 1fr 1fr 1.45fr; gap: 16px; }
    /* staggered wave, like the original */
    .journey-step:nth-child(1) { margin-top: 40px; }
    .journey-step:nth-child(2) { margin-top: 100px; }
    .journey-step:nth-child(3) { margin-top: 24px; }
    .journey-step:nth-child(4) { margin-top: 0; }
    .journey-media { --size: 144px; }
    .journey-step.is-final .journey-media { --size: 230px; }
    .journey-step.is-final .journey-num { width: 46px; height: 46px; right: 14px; bottom: 14px; font-size: 1.15rem; }
}

.process-banner { margin: 48px 0 0; }
.process-banner img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }

/* Features */
.feature-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.feature-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px; transition: border-color .25s, box-shadow .25s;
}
.feature-card:hover { border-color: rgba(111, 175, 42, .55); box-shadow: var(--shadow); }
.feature-icon {
    display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
    background: rgba(111, 175, 42, .14); color: var(--leaf-deep); font-size: 1.35rem; margin-bottom: 14px;
}
.feature-card h3 { font-size: 1.15rem; font-weight: 600; }
.feature-card p { margin-top: 6px; color: var(--ink-soft); font-size: .93rem; overflow-wrap: anywhere; }

/* Tech */
.tech-icons { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.tech-icons li {
    display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
    background: var(--surface); border: 1px solid var(--line); color: var(--stone-600); font-size: 1.45rem;
    transition: color .2s, border-color .2s;
}
.tech-icons li:hover { color: var(--leaf-deep); border-color: var(--leaf); }
.social-card {
    display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px 22px; max-width: 720px;
}
.social-card > div { flex: 1 1 220px; }
.social-card h3 { font-size: 1.15rem; font-weight: 600; }
.social-card p { color: var(--ink-soft); font-size: .93rem; }
.social-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #1877F2; color: #fff; font-size: 1.3rem; }

/* Portfolio */
.work-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.work-open {
    display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; text-align: left;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; cursor: pointer;
    transition: border-color .25s, box-shadow .25s, transform .25s var(--ease-out);
}
.work-open:hover { border-color: rgba(111, 175, 42, .55); box-shadow: var(--shadow); transform: translateY(-3px); }
.work-thumb { display: block; aspect-ratio: 3 / 2; background: var(--sand-200); overflow: hidden; }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.work-open:hover .work-thumb img { transform: scale(1.04); }
.work-meta { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 16px; }
.work-title { font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; color: var(--ink); }
.work-sub { color: var(--ink-soft); font-size: .9rem; }
.work-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.work-dialog {
    width: min(920px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
    padding: 0; border: 0; border-radius: var(--radius-lg);
    background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(47, 46, 38, .35);
    overflow: auto; overscroll-behavior: contain;
}
.work-dialog::backdrop { background: rgba(47, 46, 38, .55); backdrop-filter: blur(3px); }
.work-dialog[open] { animation: dialog-in .35s var(--ease-out); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.dialog-head h3 { font-size: 1.3rem; font-weight: 600; }

.gallery { position: relative; background: var(--sand-200); }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img { flex: 0 0 100%; width: 100%; max-height: 62vh; object-fit: contain; scroll-snap-align: center; }
.gallery .icon-btn { position: absolute; top: 50%; transform: translateY(-50%); box-shadow: var(--shadow-sm); }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }

.dialog-body { display: grid; gap: 20px; padding: 22px; }
.dialog-body p { color: var(--ink-soft); margin-bottom: 18px; }
.work-facts { margin: 0; display: grid; gap: 8px; }
.work-facts > div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.work-facts dt { font-weight: 700; }
.work-facts dd { margin: 0; color: var(--ink-soft); text-align: right; }
@media (min-width: 700px) { .dialog-body { grid-template-columns: 240px 1fr; gap: 32px; } }

/* Pricing */
.plan-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: stretch; }
.plan {
    position: relative; display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px 22px; border-top: 4px solid var(--tone, var(--sand-300));
    transition: box-shadow .25s, transform .25s var(--ease-out);
}
.plan:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.plan.tone-default { --tone: var(--sand-500); }
.plan.tone-info    { --tone: #5B9AA8; }
.plan.tone-primary { --tone: var(--leaf-deep); }
.plan.tone-success { --tone: var(--leaf); }
.plan.tone-warning { --tone: #C98A2B; }
.plan.tone-danger  { --tone: #B5543E; }
.plan.is-featured { box-shadow: var(--shadow); border-color: rgba(62, 116, 23, .35); }
.plan-badge {
    position: absolute; top: -13px; right: 18px; padding: 3px 12px; border-radius: 999px;
    background: var(--accent); color: var(--on-accent); font-size: .75rem; font-weight: 700; letter-spacing: .03em;
}
.plan h3 { font-size: 1.2rem; font-weight: 600; }
.plan-price { margin-top: 8px; font-family: var(--font-head); font-size: 1.7rem; font-weight: 600; color: var(--ink); }
.plan-price span { font-family: var(--font-body); font-size: .9rem; font-weight: 500; color: var(--ink-soft); }
.plan-features { margin: 18px 0 22px; display: grid; gap: 8px; flex: 1; }
.plan-features li { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; color: var(--stone-700); }
.plan-features svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--leaf-deep); }
.plan .btn { width: 100%; }

/* Clients */
.logo-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.logo-tile {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    min-height: 108px; padding: 16px 10px 12px;
    background: rgba(255, 252, 244, .7); border: 1px solid var(--line); border-radius: var(--radius);
    transition: background-color .25s, border-color .25s, box-shadow .25s, transform .25s var(--ease-out);
}
.logo-img { display: grid; place-items: center; height: 40px; width: 100%; }
.logo-img img {
    max-height: 40px; max-width: 100%; width: auto; object-fit: contain;
    filter: grayscale(1) sepia(.2); opacity: .62;
    transition: filter .3s, opacity .3s, transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.logo-img img[src$=".svg"] { height: 36px; }
.logo-name { font-size: .78rem; font-weight: 600; color: var(--ink-soft); text-align: center; line-height: 1.25; transition: color .25s; }
.logo-tile:hover { background: var(--surface); border-color: rgba(111, 175, 42, .5); box-shadow: var(--shadow); transform: translateY(-3px); }
.logo-tile:hover .logo-img img { filter: none; opacity: 1; transform: scale(1.08); }
.logo-tile:hover .logo-name { color: var(--ink); }

/* Contact */
.section-contact { padding-bottom: 96px; }
.contact-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; } }
.contact-form {
    display: grid; gap: 16px; grid-template-columns: 1fr;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 24px; box-shadow: var(--shadow-sm);
}
@media (min-width: 600px) { .contact-form { grid-template-columns: 1fr 1fr; padding: 28px; } .field-full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input, .field textarea {
    width: 100%; min-height: 48px; padding: 12px 14px;
    font: inherit; font-size: 1rem; color: var(--ink);
    background: var(--bg); border: 1.5px solid var(--sand-300); border-radius: 12px;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field textarea:hover { border-color: var(--bark-light); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--leaf-deep); background: #fff; box-shadow: 0 0 0 4px rgba(111, 175, 42, .2); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { margin-top: 6px; color: var(--danger); font-size: .85rem; font-weight: 600; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form-status { font-weight: 600; font-size: .95rem; }
.form-status.is-ok { color: var(--leaf-ink); }
.form-status.is-error { color: var(--danger); }

.contact-card { background: var(--bg-alt); border-radius: var(--radius-lg); padding: 24px; }
.contact-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 14px; }
.contact-card dl { margin: 0; display: grid; gap: 12px; }
.contact-card dt { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.contact-card dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.copy-btn {
    position: relative; display: inline-flex; align-items: center; gap: 8px;
    min-height: 36px; margin: 0 0 0 -8px; padding: 4px 8px;
    border: 1px dashed transparent; border-radius: 10px; background: none;
    font: inherit; font-weight: 600; color: var(--ink); cursor: copy;
    transition: background-color .2s, border-color .2s, color .2s;
}
.copy-btn:hover { background: var(--surface); border-color: var(--sand-300); }
.copy-btn svg { width: 17px; height: 17px; flex: none; }
.copy-icon { color: var(--ink-soft); opacity: .55; transition: opacity .2s, color .2s; }
.copy-btn:hover .copy-icon, .copy-btn:focus-visible .copy-icon { opacity: 1; color: var(--leaf-deep); }
.copy-ok { display: none; color: var(--leaf-deep); }
.copy-btn.is-copied { background: rgba(111, 175, 42, .14); border-color: rgba(111, 175, 42, .5); }
.copy-btn.is-copied .copy-icon { display: none; }
.copy-btn.is-copied .copy-ok { display: block; }
.copy-tip {
    position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translate(-50%, 4px);
    padding: 3px 10px; border-radius: 999px; background: var(--ink); color: #fff;
    font-size: .75rem; font-weight: 600; white-space: nowrap; pointer-events: none;
    opacity: 0; transition: opacity .2s, transform .2s var(--ease-out);
}
.copy-btn.is-copied .copy-tip { opacity: 1; transform: translate(-50%, 0); }
.contact-note { margin-top: 16px; font-size: .9rem; color: var(--ink-soft); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 28px 0; font-size: .9rem; color: var(--ink-soft); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.footer-inner img { height: 30px; width: auto; opacity: .85; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
    .js .reveal { opacity: 1; transform: none; }
}
