/* ============================================================
   NORDIC — shared design system for the five Stitch-derived concepts
   (nordic-1 … nordic-5)

   Stitch produced five pages that share one system (Plus Jakarta Sans,
   the same card language and section grammar) but apply a different
   palette and section lineup each. Rather than five near-identical
   stylesheets, the system lives here and each concept's style.css
   overrides the tokens below and adds only what is specific to it.

   Every colour is a token. Re-skinning a concept is editing its
   :root block — nothing in this file needs to change.
   ============================================================ */

:root {
  /* --- overridden per concept --- */
  --bg:            #f8f9ff;
  --surface:       #ffffff;
  --surface-2:     #f1f5f9;
  --text:          #0b1c30;
  --muted:         #64748b;
  --line:          #e2e8f0;
  --accent:        #fe932c;
  --accent-ink:    #0b1c30;
  --accent-deep:   #b45309;
  --cta:           #000000;
  --cta-text:      #ffffff;
  --dark:          #0b1c30;
  --dark-text:     #eaf1ff;
  --dark-muted:    #94a3b8;
  --dark-line:     rgba(255,255,255,.12);
  --ok:            #166534;
  --ok-tint:       #dcfce7;

  --font-display:  'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:     'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --h1-weight:     800;
  --h1-tracking:   -.03em;

  --r:             16px;
  --r-sm:          10px;
  --r-btn:         8px;

  --gutter: clamp(1.1rem, 3.5vw, 3.5rem);
  --maxw: 1280px;
  --ease: cubic-bezier(.2, .8, .25, 1);
  --shadow-sm: 0 1px 2px rgba(11,28,48,.05), 0 6px 18px rgba(11,28,48,.06);
  --shadow:    0 2px 6px rgba(11,28,48,.06), 0 20px 48px rgba(11,28,48,.09);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: 110px; }
body {
  margin: 0; background: var(--bg); color: var(--muted);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.num { font-variant-numeric: tabular-nums; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text); margin: 0; text-wrap: balance; }
h1 { font-weight: var(--h1-weight); font-size: clamp(2.1rem, 1.1rem + 3.9vw, 3.4rem); line-height: 1.1; letter-spacing: var(--h1-tracking); }
h2 { font-weight: var(--h1-weight); font-size: clamp(1.6rem, 1.1rem + 2.1vw, 2.5rem); line-height: 1.15; letter-spacing: -.025em; }
h3 { font-weight: 700; font-size: clamp(1.05rem, 1rem + .45vw, 1.25rem); line-height: 1.25; letter-spacing: -.015em; }
p { margin: 0; }
.lead { font-size: clamp(.9375rem, .92rem + .25vw, 1.0625rem); line-height: 1.72; max-width: 62ch; }

section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.center { text-align: center; }
.center .lead, .center .badge { margin-inline: auto; }
.head { max-width: 68ch; }
.head .lead { margin-top: .9rem; }

/* badge / eyebrow pill above a heading */
.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: .38rem .85rem; font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-deep); margin-bottom: 1rem;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.badge--plain::before { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-body); font-size: .9375rem; font-weight: 600;
  text-decoration: none; padding: .9rem 1.4rem; border-radius: var(--r-btn);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn--cta    { background: var(--cta); color: var(--cta-text); }
.btn--cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); filter: brightness(1.04); }
.btn--line   { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn--line:hover { border-color: var(--text); transform: translateY(-2px); }
.btn--ghost  { background: transparent; border-color: var(--dark-line); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--text); border-color: #fff; }
.btn--sm { padding: .58rem 1rem; font-size: .8125rem; }
.btn--block { width: 100%; }
.btn svg { width: 15px; height: 15px; flex: none; transition: transform .28s var(--ease); }
.btn:hover svg:last-child { transform: translateX(3px); }

/* =========================================================
   TOP STATUS BAR (used by the concepts that have one)
   ========================================================= */
.topbar {
  background: var(--topbar-bg, var(--dark)); color: var(--topbar-text, var(--dark-text));
  font-size: .6875rem; font-weight: 600; letter-spacing: .06em;
}
.topbar__in { display: flex; align-items: center; gap: 1.25rem; min-height: 34px; flex-wrap: wrap; }
.topbar b { color: var(--accent); font-weight: 700; }
.topbar__sep { margin-left: auto; display: flex; gap: 1.25rem; align-items: center; }
.topbar li { list-style: none; }
.topbar ul { display: flex; gap: 1.25rem; margin: 0; padding: 0; }
@media (max-width: 900px) { .topbar__sep { display: none; } }

/* =========================================================
   HEADER
   ========================================================= */
.hdr { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transition: box-shadow .3s var(--ease); }
.hdr.is-stuck { box-shadow: 0 4px 24px rgba(11,28,48,.08); }
.hdr__in { display: flex; align-items: center; gap: 1rem; min-height: 68px; }

.brand { display: flex; flex-direction: column; text-decoration: none; white-space: nowrap; }
.brand b { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--text); letter-spacing: -.03em; }
.brand b i { font-style: normal; color: var(--accent-deep); }
.brand small { font-size: .5rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 1px; }

.nav { display: flex; gap: 1.35rem; margin-inline: auto; }
.nav a { position: relative; font-size: .875rem; font-weight: 600; color: var(--text); text-decoration: none; opacity: .75; padding-block: .3rem; transition: opacity .2s; }
.nav a:hover { opacity: 1; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }

.hdr__end { display: flex; align-items: center; gap: .5rem; }
.hdr__tel { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 700; font-size: .9375rem; color: var(--text); padding: .45rem .7rem; border-radius: var(--r-btn); transition: background .2s; }
.hdr__tel:hover { background: var(--surface-2); }
.hdr__tel svg { width: 15px; height: 15px; color: var(--accent-deep); }

.langs { display: flex; gap: 1px; background: var(--surface-2); border-radius: 999px; padding: 2px; }
.langs button { font-family: var(--font-body); font-size: .6875rem; font-weight: 700; letter-spacing: .04em; background: none; border: 0; padding: .32rem .5rem; border-radius: 999px; color: var(--muted); cursor: pointer; transition: .18s; }
.langs button.is-active { background: var(--text); color: var(--bg); }

.burger { display: none; position: relative; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--surface); cursor: pointer; padding: 0; }
.burger span { position: absolute; left: 50%; top: 50%; width: 16px; height: 1.8px; background: var(--text); border-radius: 2px; transform: translate(-50%, -50%) translateY(var(--y, 0)); transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { --y: -5.5px; }
.burger span:nth-child(3) { --y: 5.5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 55; background: var(--bg);
  padding: 5.5rem var(--gutter) 2.5rem; display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transition: opacity .32s var(--ease), visibility .32s; overflow-y: auto;
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer > a { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 7vw, 2rem); letter-spacing: -.03em; color: var(--text); text-decoration: none; padding-block: .55rem; border-bottom: 1px solid var(--line); }
.drawer__foot { margin-top: auto; padding-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }

/* =========================================================
   HERO
   ========================================================= */
.hero { padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(2.5rem, 5vw, 4rem); background: var(--hero-bg, transparent); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: 1.1rem; }
.hero h1 .alt { color: var(--accent-deep); }
.hero h1 .ser { font-family: var(--font-serif, var(--font-display)); font-style: italic; font-weight: 500; color: var(--hero-ser, var(--muted)); }
.hero .lead { margin-bottom: 1.75rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .7rem; }

/* stat row under the hero */
/* Four stats in the hero's left column: auto-fit would leave a 3+1 orphan
   row at most widths, so they are pinned to a 2x2 block. */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: 2rem; max-width: 460px; }
@media (max-width: 420px) { .stats { grid-template-columns: 1fr; } }
.stat {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: .9rem 1rem .9rem 1.15rem;
  transition: transform .3s var(--ease), border-color .3s var(--ease),
              box-shadow .3s var(--ease), background .3s var(--ease);
}
/* accent rail, grows up the left edge */
.stat::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent); transform: scaleY(0); transform-origin: bottom;
  transition: transform .4s var(--ease);
}
/* one sheen crossing the card per hover */
.stat::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .38) 50%, transparent 62%);
  transform: translateX(-130%);
  transition: transform .75s var(--ease);
}
.stat:hover, .stat:focus-within {
  transform: translateY(-3px); border-color: var(--accent);
  background: var(--surface-2); box-shadow: var(--shadow-sm);
}
.stat:hover::before, .stat:focus-within::before { transform: scaleY(1); }
.stat:hover::after { transform: translateX(130%); }
.stat b {
  display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem;
  color: var(--text); letter-spacing: -.02em; font-variant-numeric: tabular-nums;
  transition: color .3s var(--ease), transform .3s var(--ease);
}
.stat:hover b, .stat:focus-within b { color: var(--accent-deep); transform: translateX(2px); }
.stat span { display: block; font-size: .75rem; margin-top: .15rem; line-height: 1.35; }

/* layered photo cluster on the right of the hero */
.cluster { position: relative; }
.cluster__main { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); background: var(--surface); }
.cluster__main img { width: 100%; aspect-ratio: 4/3; height: auto; object-fit: cover; }
.cluster__cap { background: var(--surface); padding: .85rem 1rem; border-top: 1px solid var(--line); }
.cluster__cap b { display: block; font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--text); }
.cluster__cap span { font-size: .75rem; }
/* z-index is load-bearing here: the showcase gives the active slide's image a
   transform, which makes it a stacking context and paints it above an
   absolutely positioned sibling with z-index: auto — the tag vanished behind
   the photo without it. */
.cluster__tag { position: absolute; z-index: 2; top: .9rem; left: .9rem; background: rgba(11,28,48,.82); color: #fff; font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .35rem .6rem; border-radius: 6px; backdrop-filter: blur(6px); }
.cluster__note { margin-top: .75rem; background: var(--accent); color: var(--accent-ink); border-radius: var(--r-sm); padding: .85rem 1rem; font-size: .8125rem; font-weight: 600; }
.cluster__note b { display: block; font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; opacity: .75; margin-bottom: .2rem; }

/* ---------- rotating project showcase (.shuffle) ----------

   Slides are stacked absolutely so the card never changes height as they
   swap; the first one stays in normal flow to give the stack its size. Only
   the concepts whose markup carries `data-shuffle` get the behaviour — see
   nordic-app.js. */
.shuffle { position: relative; }
.shuffle__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.shuffle__slide:first-child { position: relative; }
.shuffle__slide.is-on { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: no-preference) {
  .shuffle__slide {
    transition: opacity .8s var(--ease), visibility .8s, transform .8s var(--ease);
    transform: scale(1.02);
  }
  .shuffle__slide.is-on { transform: none; }
  .shuffle__slide img { transition: transform 6s linear; }
  /* a very slow drift while a slide is showing, so the card is never static */
  .shuffle__slide.is-on img { transform: scale(1.04); }
}

/* Top right, balancing the project tag at top left. Anchoring them to the
   BOTTOM instead needed an offset guessed against the caption's height, and
   that overlapped the caption at every width and fell off the photo entirely
   at 375px. Top-anchored, they are always on the image.
   The dark plate is what guarantees contrast: these sit over photographs that
   run from a near-white bathroom to a dark bedroom. */
.shuffle__dots {
  position: absolute; right: .9rem; top: .9rem; z-index: 4;
  display: flex; gap: .3rem; align-items: center;
  background: rgba(11, 28, 48, .55); backdrop-filter: blur(6px);
  border-radius: 999px; padding: .3rem .45rem;
}
.shuffle__dots button {
  appearance: none; border: 0; background: none; padding: .25rem .1rem;
  cursor: pointer; line-height: 0;
}
.shuffle__dots i {
  display: block; width: 14px; height: 3px; border-radius: 2px;
  background: rgba(255, 255, 255, .55);
  transition: background .3s var(--ease), width .3s var(--ease);
}
.shuffle__dots button:hover i { background: rgba(255, 255, 255, .9); }
.shuffle__dots button[aria-current="true"] i { background: var(--accent); width: 22px; }
.shuffle__dots button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }

/* =========================================================
   CARD GRID (rooms, projects, blog)
   ========================================================= */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: clamp(.85rem, 1.6vw, 1.25rem); margin-top: clamp(1.75rem, 3.5vw, 2.75rem); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__ph { position: relative; overflow: hidden; }
.card__ph img { width: 100%; aspect-ratio: 4/3; height: auto; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover .card__ph img { transform: scale(1.05); }
/* --tag-bg so a dark palette can flip this pill; light themes never set it. */
.card__tag { position: absolute; top: .7rem; left: .7rem; background: var(--tag-bg, rgba(255,255,255,.94)); color: var(--text); font-size: .65rem; font-weight: 700; letter-spacing: .06em; padding: .3rem .55rem; border-radius: 6px; }
.card__tag--accent { background: var(--accent); color: var(--accent-ink); left: auto; right: .7rem; }
.card__bd { padding: 1.1rem 1.15rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.card__bd p { font-size: .875rem; margin-top: .45rem; }
.card__meta { margin-top: auto; padding-top: .9rem; font-size: .75rem; font-weight: 600; color: var(--accent-deep); letter-spacing: .04em; }

/* =========================================================
   FEATURE LIST (why a main contractor, inclusions)
   ========================================================= */
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); margin-top: clamp(1.75rem, 3.5vw, 2.75rem); }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.35rem; transition: transform .3s var(--ease), border-color .3s; }
.feat:hover { transform: translateY(-3px); border-color: var(--accent); }
.feat__ic { width: 38px; height: 38px; border-radius: 10px; background: var(--surface-2); color: var(--accent-deep); display: grid; place-items: center; margin-bottom: .9rem; }
.feat__ic svg { width: 19px; height: 19px; }
.feat p { font-size: .875rem; margin-top: .4rem; }

/* =========================================================
   CALCULATOR
   ========================================================= */
.calc { background: var(--calc-bg, var(--dark)); color: var(--calc-text, var(--dark-text)); border-radius: var(--r); overflow: hidden; }
.calc__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); }
@media (max-width: 820px) { .calc__grid { grid-template-columns: 1fr; } }
.calc__in { padding: clamp(1.35rem, 3vw, 2.25rem); display: grid; gap: 1.35rem; align-content: start; }
.calc h3 { color: inherit; font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem); }
.calc__sub { font-size: .8125rem; color: var(--calc-muted, var(--dark-muted)); margin-top: .35rem; }
.calc__l { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--calc-muted, var(--dark-muted)); margin-bottom: .55rem; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.seg button {
  font-family: var(--font-body); font-size: .8125rem; font-weight: 600; text-align: left; line-height: 1.3;
  background: rgba(255,255,255,.07); border: 1px solid transparent; border-radius: var(--r-sm);
  padding: .6rem .7rem; cursor: pointer; color: var(--calc-muted, var(--dark-muted)); transition: .18s;
}
.seg button:hover { color: inherit; border-color: rgba(255,255,255,.2); }
.seg button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.seg--3 { grid-template-columns: repeat(3, 1fr); }
.seg--3 button { text-align: center; }
@media (max-width: 520px) { .seg { grid-template-columns: 1fr; } }

.rangeRow { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .45rem; }
.rangeVal { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.rangeVal small { font-size: .7rem; font-weight: 600; opacity: .7; margin-left: .15rem; }
.calc input[type=range] { width: 100%; appearance: none; height: 5px; border-radius: 999px; background: rgba(255,255,255,.18); outline: none; }
.calc input[type=range]::-webkit-slider-thumb { appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 4px solid var(--calc-bg, var(--dark)); box-shadow: 0 1px 6px rgba(0,0,0,.4); cursor: grab; }
.calc input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 4px solid var(--calc-bg, var(--dark)); cursor: grab; }

.calc__out { background: rgba(255,255,255,.06); padding: clamp(1.35rem, 3vw, 2.25rem); display: flex; flex-direction: column; justify-content: center; border-left: 1px solid rgba(255,255,255,.1); }
@media (max-width: 820px) { .calc__out { border-left: 0; border-top: 1px solid rgba(255,255,255,.1); } }
.calc__out .k { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--calc-muted, var(--dark-muted)); }
.calc__sum { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: .4rem; line-height: 1.1; }
.calc__sum .cur { color: var(--accent); }
.calc__dis { font-size: .7rem; color: var(--calc-muted, var(--dark-muted)); margin: .8rem 0 1.1rem; line-height: 1.55; }

/* =========================================================
   PRICE TABLE
   ========================================================= */
.ptable { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: clamp(1.75rem, 3.5vw, 2.5rem); }
.ptable table { width: 100%; border-collapse: collapse; }
.ptable th { text-align: left; font-family: var(--font-body); font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: .85rem 1.15rem; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.ptable th:last-child, .ptable td:last-child { text-align: right; }
.ptable td { padding: .85rem 1.15rem; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.ptable tr:last-child td { border-bottom: 0; }
.ptable tbody tr { transition: background .15s; }
.ptable tbody tr:hover { background: var(--surface-2); }
.ptable td:first-child { color: var(--text); font-weight: 600; }
.ptable .unit { font-size: .8125rem; font-variant-numeric: tabular-nums; }
.ptable .val { font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ptable .val em { font-style: normal; font-size: .7rem; font-weight: 600; color: var(--muted); margin-right: .25rem; }
@media (max-width: 620px) { .ptable th:nth-child(2), .ptable td:nth-child(2) { display: none; } .ptable th, .ptable td { padding-inline: .85rem; } }

/* price grid variant (cards instead of a table) */
.pgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .7rem; margin-top: clamp(1.75rem, 3.5vw, 2.5rem); }
.pcell { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 1rem; transition: transform .3s var(--ease), border-color .3s; }
.pcell:hover { transform: translateY(-3px); border-color: var(--accent); }
.pcell b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--text); font-variant-numeric: tabular-nums; }
.pcell b em { font-style: normal; font-size: .7rem; font-weight: 600; color: var(--muted); margin-right: .2rem; }
.pcell span { display: block; font-size: .8125rem; margin-top: .25rem; }

/* =========================================================
   PROCESS / TIMELINE
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; margin-top: clamp(1.75rem, 3.5vw, 2.75rem); }
.step { position: relative; padding: 1.6rem 1.25rem 0 0; }
.step::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--line); }
.step::after { content: ''; position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.step__w { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-deep); }
.step h3 { margin: .45rem 0 .35rem; }
.step p { font-size: .875rem; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .step { padding: 0 0 1.4rem 1.4rem; }
  .step::before { top: 0; bottom: 0; left: 0; right: auto; width: 2px; height: auto; }
  .step::after { top: 3px; left: -4px; }
}

/* =========================================================
   TEAM
   ========================================================= */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); margin-top: clamp(1.75rem, 3.5vw, 2.75rem); }
.person { display: grid; grid-template-columns: 116px 1fr; gap: 1.15rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; align-items: center; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.person .ph { border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); }
.person .ph img { width: 100%; aspect-ratio: 3/4; height: auto; object-fit: cover; object-position: top center; }
.person .role { font-size: .8125rem; margin-top: .2rem; line-height: 1.4; }
.person .tel { display: inline-flex; align-items: center; gap: .45rem; margin-top: .8rem; font-weight: 700; font-size: .9375rem; color: var(--text); text-decoration: none; }
.person .tel svg { width: 14px; height: 14px; color: var(--accent-deep); }
.person .tel:hover { color: var(--accent-deep); }
@media (max-width: 420px) { .person { grid-template-columns: 88px 1fr; gap: .9rem; } }

/* =========================================================
   REVIEWS
   ========================================================= */
.revs { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: clamp(.85rem, 1.6vw, 1.25rem); margin-top: clamp(1.75rem, 3.5vw, 2.75rem); }
.rev { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.35rem; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.rev:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.rev__st { color: #eab308; letter-spacing: .1em; font-size: .9rem; }
.rev p { font-size: .875rem; margin-top: .75rem; line-height: 1.7; }
.rev footer { margin-top: auto; padding-top: 1.1rem; }
.rev__nm { font-weight: 700; font-size: .9375rem; color: var(--text); }
.rev__mt { font-size: .75rem; margin-top: .1rem; }

/* =========================================================
   FAQ
   ========================================================= */
.faq__list { max-width: 840px; margin: clamp(1.75rem, 3.5vw, 2.5rem) auto 0; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: .6rem; transition: border-color .25s, box-shadow .25s; }
.faq details[open] { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 1.05rem 3rem 1.05rem 1.25rem; position: relative; font-family: var(--font-display); font-weight: 700; font-size: clamp(.9375rem, .92rem + .25vw, 1.0625rem); color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 1.25rem; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--accent-deep); border-bottom: 2px solid var(--accent-deep); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-25%) rotate(225deg); }
.faq__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq details[open] .faq__body { grid-template-rows: 1fr; }
.faq__body > div { overflow: hidden; }
.faq__body p { padding: 0 1.25rem 1.25rem; font-size: .9375rem; line-height: 1.72; }

/* =========================================================
   BOOKING / CONTACT
   ========================================================= */
.book { background: var(--book-bg, var(--dark)); color: var(--book-text, var(--dark-text)); }
.book h2 { color: var(--book-h, #fff); }
.book .lead { color: var(--book-muted, var(--dark-muted)); }
.book .badge { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: var(--accent); }
.book__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
@media (max-width: 880px) { .book__grid { grid-template-columns: 1fr; } }
.book__call { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14); }
.book__call .k { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--book-muted, var(--dark-muted)); }
.book__call a.big { display: inline-block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2rem); letter-spacing: -.03em; color: var(--book-h, #fff); text-decoration: none; margin: .45rem 0 .15rem; }
.book__call a.big:hover { color: var(--accent); }
.book__call .hrs { font-size: .8125rem; color: var(--book-muted, var(--dark-muted)); }
.book__call .mail { display: inline-block; margin-top: .8rem; font-size: .9375rem; }

.f { display: grid; gap: .95rem; background: var(--surface); border-radius: var(--r); padding: clamp(1.25rem, 3vw, 1.85rem); }
.f__row { display: grid; grid-template-columns: 1fr 1fr; gap: .95rem; }
@media (max-width: 560px) { .f__row { grid-template-columns: 1fr; } }
.f label { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
.f input, .f select, .f textarea { width: 100%; font-family: inherit; font-size: .9375rem; padding: .72rem .85rem; color: var(--text); border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.f input:focus, .f select:focus, .f textarea:focus { outline: 0; border-color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.f textarea { resize: vertical; min-height: 96px; }
.f input[type=file] { font-size: .8125rem; color: var(--muted); padding: .55rem .85rem; }
.f__note { font-size: .7rem; color: var(--muted); }
.f .btn { justify-self: start; }

/* =========================================================
   FOOTER + sticky call bar
   ========================================================= */
.foot { background: var(--dark); color: var(--dark-muted); padding-block: clamp(2.25rem, 4vw, 3.5rem); font-size: .875rem; border-top: 1px solid var(--dark-line); }
.foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(1.5rem, 3vw, 3rem); }
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }
.foot .brand b { color: #fff; font-size: 1.25rem; }
.foot .brand small { color: var(--dark-muted); }
.foot__brand p { margin-top: .85rem; line-height: 1.7; max-width: 40ch; }
.foot h4 { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin: 0 0 .85rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.foot a { color: var(--dark-muted); text-decoration: none; }
.foot a:hover { color: #fff; }
.foot__legal { margin-top: 2rem; padding-top: 1.15rem; border-top: 1px solid var(--dark-line); display: flex; flex-wrap: wrap; gap: .4rem 2rem; font-size: .8125rem; }
.foot__demo { margin-top: .9rem; font-size: .72rem; color: color-mix(in srgb, var(--dark-muted) 65%, transparent); }

.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: none; gap: .5rem; padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .35s var(--ease); }
.callbar.is-up { transform: none; }
.callbar .btn { flex: 1 1 0; min-width: 0; white-space: normal; text-align: center; line-height: 1.25; font-size: .875rem; padding-inline: .6rem; }

/* =========================================================
   MOTION
   ========================================================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 70; transform-origin: left; transform: scaleX(var(--p, 0)); background: var(--accent); pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .callbar { transform: none; }
  .progress { display: none; }
  .card:hover .card__ph img, .person:hover, .rev:hover, .card:hover, .feat:hover, .pcell:hover, .stat:hover { transform: none; }
  .nav a::after { transform: scaleX(1); }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1060px) {
  .nav { display: none; }
  .burger { display: block; }
  .hdr__end { margin-left: auto; }
  .hdr__end .btn--cta, .hdr__end .btn--accent { display: none; }
}
@media (max-width: 680px) {
  .hdr__in { min-height: 58px; }
  .hdr .langs { display: none; }        /* moves into the drawer */
  .hdr__tel span { display: none; }     /* icon-only, number is on the call bar */
  .callbar { display: flex; }
  body { padding-bottom: 62px; }
  .topbar { display: none; }
}
.drawer .langs { display: none; }
@media (max-width: 680px) { .drawer .langs { display: flex; } }

/* =========================================================
   BEFORE / AFTER PAGE (enne-ja-parast.html)

   Shared with ../ba.js. Only the concepts that ship the page
   use these rules; the rest never render the markup.
   ========================================================= */
.subhero { padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.subhero h1 { max-width: 16ch; }
.subhero .lead { margin-top: 1.1rem; }
.bapage { padding-top: clamp(1.5rem, 3vw, 2.5rem); }

.balist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.2vw, 1.75rem); }
@media (max-width: 1040px) { .balist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 660px)  { .balist { grid-template-columns: 1fr; } }

.bacard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: .7rem .7rem 1.1rem; display: flex; flex-direction: column; gap: .9rem; }
.bacard__cap { display: grid; gap: .25rem; padding-inline: .4rem; }
.bacard h2 { font-size: 1.25rem; }
.bacard__meta { font-size: .8125rem; color: var(--muted); }

.ba-stage {
  position: relative; overflow: hidden; background: var(--text);
  aspect-ratio: 4 / 5; width: 100%; border-radius: var(--r-sm);
  touch-action: pan-y;
}
.ba-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-stage .ba-after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba-tag {
  position: absolute; top: .6rem; z-index: 3; background: var(--tag-bg, var(--surface));
  color: var(--text); padding: .28rem .6rem; border-radius: 6px;
  font-size: .65rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  pointer-events: none;
}
.ba-tag--l { left: .6rem; }
.ba-tag--r { right: .6rem; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: var(--surface); z-index: 4; pointer-events: none; }
.ba-handle::after {
  content: ''; position: absolute; top: 50%; left: 50%; width: 42px; height: 42px;
  transform: translate(-50%, -50%); border-radius: 50%; background: var(--surface);
  box-shadow: var(--shadow-sm);
}
/* A two-way arrow, not a chevron: a single chevron reads as "go back". */
.ba-handle::before {
  content: "\2194 "; position: absolute; top: 50%; left: 50%; z-index: 1;
  transform: translate(-50%, -50%); color: var(--accent-deep);
  font: 800 1.0625rem/1 var(--font-body);
}
.ba-range { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; margin: 0; appearance: none; background: none; cursor: ew-resize; opacity: 0; }
.ba-range::-webkit-slider-thumb { appearance: none; width: 46px; height: 100%; }
.ba-range::-moz-range-thumb { width: 46px; height: 100%; border: 0; }
.ba-range:focus-visible { opacity: 1; outline: 2px solid var(--accent-deep); outline-offset: 2px; }

.banote { margin-top: 2rem; font-size: .8125rem; max-width: 70ch; }

.ctaband { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap; }
.ctaband h2 { max-width: 18ch; color: var(--book-h, #fff); }
.ctaband__btns { display: flex; gap: .75rem; flex-wrap: wrap; }

.ba-item { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.ba-item.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .ba-item { opacity: 1 !important; transform: none !important; transition: none !important; }
}
