/* =================================================================
   [MipadaemoN] v2 — drafting-paper edition
   Paper, ink and one blue. Motion lives in js/main.js (GSAP).
   ================================================================= */
:root {
    --paper:      #ece5d3;
    --paper-2:    #e2d9c3;
    --grid:       rgba(42, 42, 42, 0.07);
    --ink:        #2a2a2a;
    --ink-soft:   #625c50;   /* 5.2:1 on paper */
    --blue:       #0e639c;   /* brand accent */
    --blue-deep:  #0a2a4a;
    --on-blue:    #f4efe3;
    --slate:      #7d8fa1;   /* outer frame */
    --green:      #3f6b2e;   /* terminal green, darkened for paper */

    --f-sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
    --f-mono: "Fira Code", Consolas, "Courier New", monospace;
    --f-hand: "Architects Daughter", "Comic Sans MS", cursive;

    --gutter: clamp(16px, 4vw, 56px);
    --frame: 10px;
    --radius: 14px;
    --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--slate); }
body {
    margin: 0;
    background-color: var(--paper);
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 32px 32px;
    color: var(--ink);
    font-family: var(--f-sans);
    font-size: 17px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- Fixed chrome ---------- */
.frame {
    position: fixed; inset: var(--frame); z-index: 60; pointer-events: none;
    border-radius: var(--radius);
    box-shadow: 0 0 0 calc(var(--frame) * 4) var(--slate);
}
.corner { position: fixed; z-index: 55; top: calc(var(--frame) + 14px); color: var(--ink-soft); font-size: 10px; line-height: 1.4; }
.corner--tl { left: calc(var(--frame) + 18px); }
.corner--tr { right: calc(var(--frame) + 18px); }

.nav {
    position: fixed; z-index: 70; top: calc(var(--frame) + 14px); left: 50%;
    transform: translateX(-50%);
    width: min(680px, calc(100% - 2 * var(--gutter) - 120px));
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 8px 8px 8px 18px;
    background: #fbf8f1; border: 1px solid rgba(42,42,42,.15); border-radius: 10px;
    box-shadow: 4px 4px 0 rgba(42,42,42,.12);
}
.nav__brand { font-weight: 600; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.pill {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 18px; border-radius: 8px; border: 0;
    background: var(--blue); color: var(--on-blue);
    font-family: var(--f-mono); font-size: 14px; text-decoration: none; cursor: pointer;
}
.pill:hover { background: var(--blue-deep); }
.nav__menu {
    display: flex; align-items: center; gap: 12px; padding: 4px 6px;
    background: none; border: 0; font: 500 15px var(--f-sans); color: var(--ink); cursor: pointer;
}
.nav__icon { display: grid; gap: 5px; width: 28px; padding: 5px 4px; border: 1.5px solid var(--blue); border-radius: 3px; }
.nav__icon i { display: block; height: 1.5px; background: var(--blue); }

.menu {
    position: fixed; z-index: 65; inset: var(--frame);
    border-radius: var(--radius);
    background: var(--blue); color: var(--on-blue);
    display: flex; align-items: center; padding: 0 var(--gutter);
    visibility: hidden; clip-path: inset(0 0 100% 0 round var(--radius));
}
.menu__list { list-style: none; margin: 0; padding: 0; }
.menu__list li { overflow: hidden; }
.menu__list a {
    display: flex; align-items: baseline; gap: 18px; text-decoration: none;
    font-size: clamp(44px, 9vw, 120px); font-weight: 500; letter-spacing: -.04em; line-height: 1.02;
}
.menu__list a:hover { color: #fff; }
.menu__list .mono { font-size: 13px; opacity: .7; }

/* ---------- Loader ---------- */
.loader {
    position: fixed; inset: 0; z-index: 100; background: var(--paper);
    display: none; align-items: flex-end; justify-content: space-between;
    padding: calc(var(--frame) + 28px) calc(var(--frame) + 28px);
}
.js .loader { display: flex; }
.loader__count { font-size: clamp(64px, 14vw, 200px); letter-spacing: -.06em; line-height: .8; text-transform: none; color: var(--blue); }
.loader__label { color: var(--ink-soft); }

/* ---------- Shared type ---------- */
.label { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; color: var(--ink-soft); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.hand { font-family: var(--f-hand); color: var(--ink-soft); text-transform: uppercase; letter-spacing: .02em; }
.section-title, .service__title, .contact__title, .hero__title {
    font-weight: 500; letter-spacing: -.045em; line-height: .95; margin: 0;
}
[data-reveal="lines"] > div { padding-bottom: .12em; margin-bottom: -.12em; }
.line-mask { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; min-height: 640px; overflow: hidden; }
.hero__head {
    position: relative; z-index: 2;
    width: min(1100px, 100% - 2 * var(--gutter)); margin: 0 auto;
    padding-top: clamp(110px, 16vh, 170px);
    text-align: center;
}
.hero__title { font-size: clamp(48px, 7.6vw, 124px); }
.hand--top {
    position: absolute; left: 4%; top: clamp(78px, 11vh, 120px);
    font-size: clamp(18px, 2.2vw, 30px); transform: rotate(-5deg);
    border-bottom: 1.5px solid var(--ink-soft); padding: 0 6px 2px;
}
.hand--bottom {
    position: absolute; right: 4%; bottom: -2.4em;
    display: flex; align-items: center; gap: 8px;
    font-size: clamp(16px, 1.9vw, 26px); transform: rotate(-4deg);
}
.hand__arrow { width: 52px; height: 26px; fill: none; stroke: var(--ink-soft); stroke-width: 2; stroke-linecap: round; }

.hero__media {
    position: absolute; inset: 0; z-index: 1;
    clip-path: inset(60% 20% 5% 20% round 12px);
    background: var(--blue-deep);
}
.hero__media picture { display: block; width: 100%; height: 100%; }
.hero__media img {
    width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%;
    transform-origin: 50% 50%;
}
.hero__caption {
    position: absolute; left: 21%; bottom: calc(5% + 12px);
    color: var(--on-blue); font-size: 10px; opacity: .85;
}

/* ---------- About ---------- */
.about {
    position: relative; z-index: 3;
    width: min(1100px, 100% - 2 * var(--gutter)); margin: 0 auto;
    padding: clamp(120px, 22vh, 220px) 0 clamp(80px, 14vh, 160px);
}
.statement {
    margin: 0; font-size: clamp(30px, 4.6vw, 68px); line-height: 1.06;
    letter-spacing: -.035em; font-weight: 500;
}
.about__sub { max-width: 520px; margin: 48px 0 0 auto; color: var(--ink-soft); font-size: 18px; }

/* ---------- Services ---------- */
.services {
    position: relative;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px);
    width: calc(100% - 2 * var(--gutter)); margin: 0 auto;
}
.service { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 10vh 0; }
.service__num {
    display: inline-grid; place-items: center; width: 34px; height: 34px; margin: 0 0 20px;
    border: 1.5px solid var(--ink); border-radius: 50%; font-size: 14px;
}
.service__projects { margin-top: 36px; max-width: 420px; }
.service__projects .label { margin-bottom: 10px; }
.service__projects ul { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.service__projects li { border-bottom: 1px solid rgba(42,42,42,.2); }
.service__projects a { display: flex; align-items: center; gap: 10px; padding: 12px 0; text-decoration: none; font-size: 17px; }
.service__projects a::after { content: "→"; margin-left: auto; color: var(--blue); transition: transform .2s; }
.service__projects a:hover { color: var(--blue); }
.service__projects a:hover::after { transform: translateX(4px); }
.card--blue .card__new { background: var(--on-blue); color: var(--blue); }
.service__title { font-size: clamp(44px, 6.4vw, 96px); }
.service__text { max-width: 360px; margin: 28px 0 0; font-size: 18px; color: var(--ink-soft); }
.services__stage { height: 100vh; display: flex; align-items: center; }
.stage {
    position: relative; width: 100%; aspect-ratio: 1 / 1; max-height: 78vh;
    background: var(--blue); border-radius: var(--radius); overflow: hidden;
}
.stage__grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(244,239,227,.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(244,239,227,.12) 1px, transparent 1px);
    background-size: 24px 24px;
}
.visual { position: absolute; inset: 8%; width: 84%; height: 84%; opacity: 0; }
.visual:first-of-type { opacity: 1; }
.ln { fill: none; stroke: var(--on-blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ln--thin { stroke-width: 1; stroke-dasharray: 4 5; opacity: .7; }
.ln--bold { stroke-width: 3.5; }
.anchors * { fill: var(--blue); stroke: var(--on-blue); stroke-width: 1.5; }
.tag { fill: var(--on-blue); font: 11px var(--f-mono); letter-spacing: .03em; }
.stage__meta { position: absolute; right: 18px; bottom: 16px; color: var(--on-blue); }

/* ---------- Portfolio ---------- */
.portfolio { position: relative; overflow: hidden; padding: clamp(80px, 14vh, 140px) 0; }
.portfolio__head { width: calc(100% - 2 * var(--gutter)); margin: 0 auto 48px; }
.section-title { font-size: clamp(44px, 7vw, 110px); }
.portfolio__track { display: flex; gap: 24px; padding: 0 var(--gutter); width: max-content; }
.card {
    position: relative; flex: none;
    height: min(60vh, 560px); aspect-ratio: 5 / 4;
    padding: 28px; border-radius: var(--radius);
    display: flex; flex-direction: column; justify-content: space-between;
}
.card--blue  { background: var(--blue); color: var(--on-blue); }
.card--paper { background: #f6f1e5; border: 1px solid rgba(42,42,42,.18); }
.card--deep  { background: var(--blue-deep); color: var(--on-blue); }
.card__num { margin: 0; opacity: .8; }
.card__art { width: 46%; max-height: 52%; align-self: center; }
.card--paper .ln { stroke: var(--blue); }
.card__title { margin: 0; font-size: clamp(28px, 3vw, 44px); font-weight: 500; letter-spacing: -.035em; line-height: 1; }

/* ---------- Contact ---------- */
.contact {
    position: relative;
    width: min(1100px, 100% - 2 * var(--gutter)); margin: 0 auto;
    padding: clamp(100px, 18vh, 200px) 0;
}
.hand--contact { display: inline-block; font-size: 26px; transform: rotate(-4deg); margin-bottom: 12px; }
.contact__title { font-size: clamp(64px, 13vw, 210px); color: var(--blue); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; margin-top: 64px; }
.field { display: grid; gap: 8px; border-bottom: 1.5px solid var(--ink); padding-bottom: 8px; }
.field--wide { grid-column: 1 / -1; }
.field .mono { color: var(--ink-soft); }
.field input, .field textarea {
    border: 0; background: transparent; padding: 4px 0; resize: vertical;
    font: 400 22px var(--f-sans); color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; }
.field:focus-within { border-color: var(--blue); }
.field ::placeholder { color: #8a8273; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form__status { grid-column: 1 / -1; margin: 0; min-height: 1.5em; font-size: 17px; }
.form__status.is-ok { color: var(--blue); }
.form__status.is-error { color: #a3261c; }
.form button[disabled] { opacity: .6; cursor: progress; }
.pill--big { justify-self: start; padding: 16px 28px; font-size: 16px; }
.contact__alt { margin: 12px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-size: 22px; }
.contact__alt > .mono { color: var(--ink-soft); font-size: 14px; }
.icon-li { width: 1em; height: 1em; fill: currentColor; flex: none; }
.contact__alt > .icon-li { width: 26px; height: 26px; color: var(--blue); align-self: center; margin-right: -2px; }
.footer__links .icon-li { width: .85em; height: .85em; margin-right: 8px; vertical-align: -.08em; }
@media (max-width: 520px) {
    .footer__links .icon-li { display: none; }
}
.contact__alt a { color: var(--blue); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.contact__alt a:hover { color: var(--blue-deep); }
.contact__alt a:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

/* ---------- Footer ---------- */
.footer {
    position: relative; margin: 0 var(--frame) var(--frame);
    background: var(--blue-deep); color: var(--on-blue);
    border-radius: var(--radius); padding: 56px var(--gutter) 28px; overflow: hidden;
}
.footer__top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer__tag { margin: 0; font-size: clamp(24px, 3vw, 40px); letter-spacing: -.03em; line-height: 1.05; max-width: 14ch; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }
.footer__word {
    margin: 48px 0 0; font-weight: 600; letter-spacing: -.06em; line-height: .8;
    font-size: clamp(48px, 13.4vw, 220px); white-space: nowrap; color: var(--blue);
}
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; opacity: .8; font-size: 10px; }


/* ---------- Card link + new badge ---------- */
.card--link { text-decoration: none; }
.card--link:hover .card__title { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.card__new {
    margin-left: 8px; padding: 2px 7px; border-radius: 999px;
    background: var(--blue); color: var(--on-blue); font-size: 10px;
}

/* ---------- Case: timber-frame project ---------- */
.case {
    position: relative;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 64px);
    width: calc(100% - 2 * var(--gutter)); margin: 0 auto;
}
.case__block { min-height: 90vh; display: flex; flex-direction: column; justify-content: center; padding: 10vh 0; }
.case .section-title { font-size: clamp(40px, 5.2vw, 84px); }
.hand--case { display: inline-block; font-size: 22px; transform: rotate(-4deg); margin-bottom: 10px; color: var(--blue); }
.case__intro { margin: 28px 0 0; font-size: 19px; line-height: 1.55; max-width: 520px; }
.case__note {
    margin: 32px 0 0; max-width: 520px; padding: 16px 20px 18px;
    border: 1.5px dashed var(--blue); border-radius: 10px; background: #f6f1e5;
}
.case__note .hand { display: block; margin-bottom: 6px; font-size: 19px; color: var(--blue); transform: rotate(-1.5deg); transform-origin: left; }
.case__note p { margin: 0; font-size: 17px; line-height: 1.5; }
.case__body { margin: 0; font-size: 18px; color: var(--ink-soft); max-width: 480px; }
.case__flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 28px; font-size: 12px; }
.case__flow span { padding: 8px 12px; border: 1.5px solid var(--ink); border-radius: 8px; background: #f6f1e5; }
.case__flow span:nth-child(3) { background: var(--blue); color: var(--on-blue); border-color: var(--blue); }
.case__flow i { font-style: normal; color: var(--blue); }
.case__why { margin-bottom: 44px; }
.nav .pill { margin: 0 auto; }
.nav__lang { padding: 6px 8px; border-radius: 6px; text-decoration: none; color: var(--ink); }
.nav__lang:hover { background: var(--paper); color: var(--blue); }
.case__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 480px; }
.case__list li { position: relative; padding-left: 26px; font-size: 18px; }
.case__list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border: 1.5px solid var(--blue); border-radius: 3px; }
.case__facts { display: flex; gap: 40px; margin: 36px 0 0; }
.case__facts div { display: grid; gap: 2px; }
.case__facts dt { color: var(--ink-soft); }
.case__facts dd { margin: 0; font-size: clamp(48px, 5vw, 72px); font-weight: 500; letter-spacing: -.04em; line-height: 1; color: var(--blue); }
.case__tags { margin: 28px 0 0; color: var(--ink-soft); text-transform: none; }
.case__stage { height: 100vh; display: flex; align-items: center; }
.stage--case { aspect-ratio: 5 / 3.4; }
.case__drawing { position: absolute; inset: 6% 5%; width: 90%; height: 88%; }
.case__drawing .mark { font-size: 10px; opacity: .85; }
.case__drawing .dimlabel { font-size: 11px; }

@media (max-width: 820px) {
    .case { grid-template-columns: 1fr; }
    .case__stage { height: auto; order: -1; padding-top: 40px; }
    .case__block { min-height: auto; padding: 40px 0; }
    .stage--case { max-height: none; }
}


/* ---------- Workflow (pinned, scroll-driven) ---------- */
.wf { width: calc(100% - 2 * var(--gutter)); margin: 0 auto; padding: clamp(80px, 14vh, 140px) 0 0; }
.wf__head { max-width: 760px; margin-bottom: 24px; }
.wf__intro { margin: 24px 0 0; max-width: 560px; font-size: 19px; color: var(--ink-soft); }
.wf__stage { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 16px; }
.stage--wf { aspect-ratio: 1200 / 620; width: min(100%, calc(72vh * 1200 / 620)); max-height: none; }
.wf__controls { display: flex; align-items: center; gap: 14px; width: min(100%, calc(72vh * 1200 / 620)); }
.wf__play { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--blue); cursor: pointer; }
.wf__play:hover { background: var(--blue-deep); }
.wf__play svg { width: 16px; height: 16px; }
.wf__play path { fill: none; stroke: var(--on-blue); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.wf__play .i-play { fill: var(--on-blue); display: none; }
.wf__play.is-paused .i-play { display: block; }
.wf__play.is-paused .i-pause { display: none; }
.wf__bar { flex: 1; height: 2px; background: rgba(42,42,42,.2); overflow: hidden; }
.wf__fill { display: block; height: 100%; background: var(--blue); transform: scaleX(0); transform-origin: 0 50%; }
.wf__controls { visibility: hidden; }
.js .wf__controls { visibility: visible; }
@media (prefers-reduced-motion: reduce) { .js .wf__controls { visibility: hidden; } }
.wf__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.wf__steps { list-style: none; margin: 0; padding: 0; width: min(100%, calc(72vh * 1200 / 620)); display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.wf__step { display: flex; align-items: baseline; gap: 8px; width: 100%; padding: 10px 0 0; border: 0; border-top: 2px solid rgba(42,42,42,.2); background: none; color: var(--ink-soft); font: inherit; font-size: 15px; line-height: 1.3; text-align: left; cursor: pointer; }
.wf__step:hover { color: var(--ink); }
.wf__steps li { display: flex; }
.wf__step .wf__dot { color: inherit; }
.wf__step.is-done { border-color: var(--blue); }
.wf__step.is-active { border-color: var(--blue); color: var(--ink); }
.wf__step.is-active .wf__dot { color: var(--blue); }

.wf-panel { fill: rgba(244,239,227,.06); stroke: rgba(244,239,227,.35); stroke-width: 1.5; }
.wf-t { fill: var(--on-blue); font-family: var(--f-sans); font-size: 17px; }
.wf-t--mono { font-family: var(--f-mono); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.wf-t--sm { font-size: 11px; }

.wf-dash { fill: none; stroke: var(--on-blue); stroke-width: 1.5; stroke-dasharray: 6 6; opacity: .6; }
.wf-dash--floor { opacity: .35; }
.wf-selfill { fill: rgba(244,239,227,.14); }
.wf-scan { fill: var(--on-blue); opacity: .9; }
.wf-ok, .wf-warn { fill: var(--on-blue); }
.wf-ok-i, .wf-warn-i { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.wf-bub { fill: rgba(244,239,227,.1); stroke: rgba(244,239,227,.4); }
.wf-bub--user { fill: var(--on-blue); stroke: none; }
.wf-msg--user .wf-t { fill: var(--blue-deep); }
.wf-btn { fill: var(--on-blue); }
.wf-btn--ghost { fill: none; stroke: rgba(244,239,227,.5); }
.wf-t--btn { fill: var(--blue); font-family: var(--f-mono); font-size: 13px; }
.wf-done-i { fill: none; stroke: var(--on-blue); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.wf-typing circle { fill: var(--on-blue); }
.wf-tabbg { fill: var(--on-blue); fill-opacity: 0; stroke: rgba(244,239,227,.4); }
.wf-tab--chat .wf-tabbg { fill-opacity: 1; }
.wf-tab--chat .wf-t { fill: var(--blue); }
.wf-input { fill: none; stroke: rgba(244,239,227,.4); }
.wf-ph { opacity: .7; }
.wf-ghost { fill: rgba(244,239,227,.18); }
.wf-cardbg { fill: var(--on-blue); }
.wf-t--card { fill: var(--blue-deep); font-size: 16px; font-weight: 500; }
.wf-t--card2 { fill: var(--blue); }
.wf-warn--sm { fill: var(--blue); }
.wf-cursor-p { fill: var(--on-blue); stroke: var(--blue-deep); stroke-width: 1.5; stroke-linejoin: round; }
.sh-paper { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.sh-ln { fill: none; stroke: var(--blue); stroke-width: 1.2; }
.wf-t--dim { opacity: .45; }
.sh-ln--bold { stroke-width: 2; }
.sh-ln--thin { stroke-width: .8; }
.sh-ln--key { stroke-width: 6; stroke-linecap: round; }
.sh-ghost { fill: var(--blue); opacity: .28; }
.wf-t--sheet { fill: var(--ink); font-family: var(--f-mono); font-size: 14px; }
.wf-t--sheet.wf-t--xs { font-size: 10.5px; }
/* Static state (no JS / reduced motion): built walls, checks and chat */
.wf-typing, .wf-scan, .wf-cursor, .wf-checking, .wf-issues, .wf-card, .wf-sheet, .wf-plan, .wf-vt-plan { visibility: hidden; }
.wf-pl { fill: none; stroke: var(--on-blue); stroke-width: 1.5; opacity: .75; }
.wf-pl--thin { stroke-width: 1.2; }
.wf-cut { fill: var(--blue); }
.wf-grid { fill: none; stroke: var(--on-blue); stroke-width: 1; stroke-dasharray: 10 4 2 4; opacity: .35; }
.wf-bubble { fill: none; stroke: var(--on-blue); stroke-width: 1.2; opacity: .7; }

@media (max-width: 820px) {
    .stage--wf, .wf__steps, .wf__controls { width: 100%; }
    .wf__steps { grid-template-columns: repeat(2, 1fr); }
    .wf__step { font-size: 14px; }
}

/* ---------- Small screens ---------- */
@media (max-width: 820px) {
    .corner { display: none; }
    .nav { width: calc(100% - 2 * var(--gutter)); }
    .nav__brand { font-size: 14px; }
    .nav .pill { display: none; }
    .nav__lang { margin-left: auto; }
    .services { grid-template-columns: 1fr; }
    .services__stage { display: none; }
    .service { min-height: auto; padding: 56px 0; }
    .portfolio__track { flex-direction: column; width: auto; }
    .card { width: 100%; height: auto; aspect-ratio: 5 / 4; }
    .form { grid-template-columns: 1fr; }
    .hand--bottom { right: 0; bottom: -2.2em; }
    .hero__media { clip-path: inset(58% 6% 5% 6% round 12px); }
    .hero__caption { left: 8%; }
}

/* ---------- Pre-motion states (only when JS and motion are on) ---------- */
@media (prefers-reduced-motion: reduce) {
    .js .loader { display: none; }
    .hero__media { clip-path: inset(60% 20% 5% 20% round 12px); }
}
