/* Fonts are served from our own domain (assets/fonts), so no request goes to Google.
   Latin subset only; it covers å, ä and ö. Inter and Space Grotesk are variable fonts. */
@font-face{ font-family:'Geist'; font-style:normal; font-weight:400 800; font-display:swap; src:url(fonts/inter-latin.woff2) format('woff2'); unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face{ font-family:'Geist'; font-style:normal; font-weight:100 900; font-display:swap; src:url(fonts/geist-variable.woff2) format('woff2'); }
@font-face{ font-family:'Space Grotesk'; font-style:normal; font-weight:400 700; font-display:swap; src:url(fonts/space-grotesk-latin.woff2) format('woff2'); unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face{ font-family:'IBM Plex Mono'; font-style:normal; font-weight:400; font-display:swap; src:url(fonts/ibm-plex-mono-400-latin.woff2) format('woff2'); }
@font-face{ font-family:'IBM Plex Mono'; font-style:normal; font-weight:500; font-display:swap; src:url(fonts/ibm-plex-mono-500-latin.woff2) format('woff2'); }

:root{
  --paper:#fafafa;
  --panel:#ffffff;
  --ink:#0f0f11;
  --ink-soft:#52525b;
  --ink-faint:#6b6b74;
  --line:#e4e4e7;
  --accent:#0f0f11;
  --accent-ink:#fafafa;
  --accent-soft:#f0f0f2;
  --coral:var(--accent);
  --coral-soft:var(--accent-soft);
  --teal:var(--accent);
  --teal-soft:var(--accent-soft);
  --shadow: rgba(15,15,17,.07);
  --shadow-strong: rgba(15,15,17,.16);
  --maxw: 1160px;
}
/* the start page is dark: layered blacks and greys with white text */
body.dark{
  --paper:#09090a;
  --panel:#151517;
  --ink:#f4f4f5;
  --ink-soft:#a8a8b0;
  --ink-faint:#8c8c95;
  --line:#2a2a2e;
  --accent:#f4f4f5;
  --accent-ink:#09090a;
  --accent-soft:#1d1d20;
  --shadow: rgba(0,0,0,.35);
  --shadow-strong: rgba(0,0,0,.6);
  color-scheme:dark;
}
body.dark::before{ mix-blend-mode:screen; opacity:.05; }

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Geist', -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  position:relative;
}

/* subtle film-grain texture over the whole page */
body::before{
  content:"";
  position:fixed; inset:0;
  pointer-events:none;
  z-index:2;
  opacity:.035;
  mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1,h2,h3{
  font-family:'Space Grotesk', 'Geist', sans-serif;
  font-weight:600;
  line-height:1.05;
  text-wrap:balance;
  margin:0;
  letter-spacing:-.01em;
  font-optical-sizing:auto;
}

p{ margin:0; text-wrap:pretty; }

.mono{ font-family:'IBM Plex Mono', ui-monospace, monospace; font-variant-numeric:tabular-nums; }

.eyebrow{
  font-size:.95rem;
  font-weight:500;
  letter-spacing:0;
  color:var(--accent);
  display:flex;
  align-items:center;
  gap:.6em;
}
.eyebrow::before{
  display:none;
  content:"";
  width:.5em; height:.5em;
  border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 0 3px var(--accent-soft);
  flex:none;
}

a{ color:inherit; }

.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 1.75rem; position:relative; }

.visually-hidden{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* skip link */
.skip{
  position:absolute; left:-999px; top:auto;
  background:var(--ink); color:var(--paper);
  padding:.7rem 1.1rem; border-radius:0 0 8px 0;
  font-size:.85rem; font-weight:600; text-decoration:none;
  z-index:100;
}
.skip:focus{ left:0; top:0; }

/* legacy-anchor + sticky-nav overlap fix */
section[id]{ scroll-margin-top:5.5rem; }

/* ---------- nav ---------- */
/* only the logo stays: it floats top-left over the page */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:40;
  pointer-events:none;
}
.nav .brand{
  pointer-events:auto;
  padding:.35rem .9rem .35rem .35rem; border-radius:99px;
  background:rgba(238,238,235,.72);
  backdrop-filter:blur(10px) saturate(1.1);
  -webkit-backdrop-filter:blur(10px) saturate(1.1);
}
main > section:first-child{ padding-top:6.5rem; }
.nav .wrap{
  display:flex; align-items:center; justify-content:space-between;
  padding-top:.95rem; padding-bottom:.95rem;
}
.brand{
  display:flex; align-items:center; gap:.6rem;
  font-family:'Space Grotesk', sans-serif;
  font-weight:600;
  font-size:1.1rem;
  letter-spacing:-.01em;
  text-decoration:none;
  color:inherit;
}
.brand img{ width:2.05rem; height:2.05rem; display:block; border-radius:6px; }

.nav-toggle{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:.28rem;
  width:2.75rem; height:2.75rem;
  border:1px solid var(--line); border-radius:8px;
  background:var(--panel);
  cursor:pointer;
}
.nav-toggle .bar{
  display:block; width:1.1rem; height:2px; background:var(--ink);
  transition:transform .25s ease-in-out, opacity .25s ease-in-out;
}
.nav.open .nav-toggle .bar:nth-child(1){ transform:translateY(6px) rotate(45deg); }
.nav.open .nav-toggle .bar:nth-child(2){ opacity:0; }
.nav.open .nav-toggle .bar:nth-child(3){ transform:translateY(-6px) rotate(-45deg); }
@media (prefers-reduced-motion:reduce){ .nav-toggle .bar{ transition:none; } }

.navlinks{
  display:none; flex-direction:column; gap:0;
  list-style:none; margin:0; padding:.5rem 0;
  position:absolute; top:100%; left:0; right:0;
  background:var(--paper);
  border-bottom:1px solid var(--line);
  box-shadow:0 20px 40px -30px var(--shadow-strong);
}
.nav.open .navlinks{ display:flex; transition:opacity .2s cubic-bezier(.23,1,.32,1), transform .2s cubic-bezier(.23,1,.32,1); }
@starting-style{ .nav.open .navlinks{ opacity:0; transform:translateY(-8px); } }
@media (prefers-reduced-motion:reduce){ .nav.open .navlinks{ transition:opacity .2s ease; } }
.navlinks li{ display:block; }
.navlinks a{
  display:block;
  text-decoration:none; color:var(--ink-soft);
  font-size:.95rem; font-weight:500;
  padding:.85rem 1.75rem;
  transition:color .2s ease, background .2s ease;
}
.navlinks a:hover, .navlinks a:focus-visible{ color:var(--ink); background:var(--panel); }
.navlinks a[aria-current="page"]{ color:var(--ink); font-weight:600; }
.navlinks-cta{ padding:.5rem 1.75rem .3rem; }
.navlinks-cta .btn-primary{ width:100%; justify-content:center; }

.nav-cta{
  display:none;
  font-family:'Geist';
  font-size:.88rem; font-weight:600;
  color:#fff;
  background:var(--ink);
  padding:.62rem 1.2rem;
  border-radius:99px;
  text-decoration:none;
  white-space:nowrap;
  transition:background .2s ease, transform .2s cubic-bezier(.22,1,.36,1);
}

@media (min-width:820px){
  .nav-cta{ display:inline-flex; align-items:center; }
  .nav-toggle{ display:none; }
  .navlinks li.navlinks-cta{ display:none; }
  .navlinks{
    display:flex; flex-direction:row; align-items:center; gap:2.1rem;
    position:static; background:none; border:0; box-shadow:none; padding:0;
  }
  .navlinks a{ padding:.8rem 0; }
  .navlinks a[aria-current="page"]{ position:relative; }
  .navlinks a[aria-current="page"]::after{
    content:""; position:absolute; left:0; right:0; bottom:-.25rem;
    height:2px; background:var(--accent); border-radius:2px;
  }
}

/* ---------- hero (start page only) ---------- */
.hero{ padding:4.5rem 0 4.5rem; overflow:hidden; position:relative; }

@keyframes meshDrift{
  0%{ transform:translate3d(0,0,0) scale(1); }
  100%{ transform:translate3d(-1.5%,2%,0) scale(1.05); }
}

.hero .wrap{
  display:grid; grid-template-columns:1fr; gap:3rem; align-items:center;
  z-index:1;
}
@media (min-width:960px){ .hero .wrap{ grid-template-columns:1.2fr .8fr; gap:4rem; } }
.hero-copy{ max-width:52rem; }

/* three example posts, overlapping like prints on a table */
.hero-visual{ margin:0; position:relative; max-width:26rem; justify-self:center; width:100%; }
.hero-stack{ position:relative; aspect-ratio:1 / 1.08; }
.hero-stack img{
  position:absolute; display:block; object-fit:cover; height:auto;
  border-radius:14px; background:var(--accent-soft);
  box-shadow:0 30px 50px -28px var(--shadow-strong), 0 2px 6px var(--shadow);
}
.hero-stack .s1{ width:68%; aspect-ratio:1; left:0; top:4%; transform:rotate(-4deg); z-index:1; }
.hero-stack .s2{ width:56%; aspect-ratio:1; right:0; top:0; transform:rotate(3deg); }
.hero-stack .s3{ width:60%; aspect-ratio:1; right:8%; bottom:0; transform:rotate(-1.5deg); z-index:2; border:5px solid var(--panel); }
.hero-visual figcaption{ margin-top:1.1rem; font-size:.82rem; color:var(--ink-faint); text-align:center; }
@media (max-width:959px){ .hero-visual{ max-width:22rem; } }
.hero h1{
  margin-top:1rem;
  font-size:clamp(2.3rem, 3.2vw + 1.2rem, 3.5rem);
}
.hero h1 .accent{ color:var(--accent); }
.hero .sub{
  margin-top:1.4rem;
  max-width:54ch;
  font-size:1.13rem;
  line-height:1.65;
  color:var(--ink-soft);
}
.hero .ctas{ display:flex; flex-wrap:wrap; gap:1rem; margin-top:2.3rem; }

.btn-primary{
  display:inline-flex; align-items:center; gap:.55rem;
  background:var(--ink); color:var(--paper);
  font-weight:600; font-size:.98rem;
  padding:.85rem 1.55rem; border-radius:99px;
  text-decoration:none;
  transition:background .2s ease, transform .2s cubic-bezier(.22,1,.36,1);
  border:none; cursor:pointer;
}
.btn-ghost{
  display:inline-flex; align-items:center; gap:.5rem;
  color:var(--ink); text-decoration:none;
  font-weight:500; font-size:.98rem;
  padding:.85rem 1.1rem;
  border:1px solid var(--line); border-radius:99px;
  transition:border-color .2s ease, background .2s ease, transform .2s cubic-bezier(.22,1,.36,1);
}

/* hero / page-hero entrance animation */
.hero-in{ opacity:0; transform:translateY(12px); animation:heroIn .5s cubic-bezier(.23,1,.32,1) forwards; }
.hero-in.d1{ animation-delay:0s; }
.hero-in.d2{ animation-delay:.08s; }
.hero-in.d3{ animation-delay:.16s; }
.hero-in.d4{ animation-delay:.24s; }
.hero-in.d5{ animation-delay:.32s; }
@keyframes heroIn{ to{ opacity:1; transform:none; } }
@keyframes fadeIn{ from{ opacity:0; } to{ opacity:1; } }
@media (prefers-reduced-motion:reduce){ .hero-in{ animation:fadeIn .2s ease forwards; transform:none; } }

/* page-hero (inner pages) */
.page-hero{ padding:4rem 0 2.5rem; position:relative; }
.page-hero .wrap{ max-width:70ch; }
.page-hero h1{
  margin-top:1rem;
  font-size:clamp(2.1rem, 3vw + 1.1rem, 3rem);
}
.page-hero .sub{
  margin-top:1.2rem;
  font-size:1.1rem;
  line-height:1.65;
  color:var(--ink-soft);
  max-width:60ch;
}

/* ---------- sections generic ---------- */
section{ padding:4.25rem 0; position:relative; }
.section-head{ max-width:56ch; margin-bottom:2.8rem; }
.section-head h2{ font-size:clamp(1.85rem, 2.4vw + 1rem, 2.5rem); margin-top:.8rem; }
.section-head .sub{ margin-top:1rem; color:var(--ink-soft); font-size:1.05rem; line-height:1.6; }
.hr{
  height:1px; border:0; margin:0;
  background:linear-gradient(90deg, var(--line), transparent 75%);
}

/* keyframes, not transition: the stagger delay must not leak into hover transitions,
   and card-level transition rules must not cancel the fade */
.reveal:not(.in){ opacity:0; }
.reveal.in{ animation:revealIn .5s cubic-bezier(.23,1,.32,1) backwards; }
@keyframes revealIn{ from{ opacity:0; transform:translateY(12px); } }
@media (prefers-reduced-motion:reduce){ .reveal:not(.in){ opacity:1; } .reveal.in{ animation:fadeIn .2s ease backwards; } }

/* staggered reveal utility, used by any grid */
.stagger > *:nth-child(1){ animation-delay:0ms; }
.stagger > *:nth-child(2){ animation-delay:40ms; }
.stagger > *:nth-child(3){ animation-delay:80ms; }
.stagger > *:nth-child(4){ animation-delay:120ms; }
.stagger > *:nth-child(5){ animation-delay:160ms; }
.stagger > *:nth-child(6){ animation-delay:200ms; }

/* ---------- services / platform cards ---------- */
.services-grid{
  display:grid; grid-template-columns:1fr; gap:1.25rem;
}
@media (min-width:760px){ .services-grid{ grid-template-columns:repeat(3,1fr); } }
.services-grid.cols-2{ grid-template-columns:1fr; }
@media (min-width:640px){ .services-grid.cols-2{ grid-template-columns:repeat(2,1fr); } }
.services-grid.cols-4{ grid-template-columns:1fr; }
@media (min-width:640px){ .services-grid.cols-4{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:980px){ .services-grid.cols-4{ grid-template-columns:repeat(4,1fr); } }

.service{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:16px;
  padding:1.9rem 1.7rem 2.1rem;
  transition:border-color .25s ease, transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s ease;
  position:relative;
  overflow:hidden;
}
.service::after{
  content:"";
  position:absolute; inset:auto -40% -60% auto; width:70%; aspect-ratio:1;
  background:radial-gradient(circle, var(--accent-soft), transparent 70%);
  opacity:0; transition:opacity .3s ease;
}
.service .icon{
  width:2.7rem; height:2.7rem;
  border-radius:10px;
  background:var(--accent-soft);
  color:var(--accent);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:1.3rem;
  transition:transform .3s cubic-bezier(.34,1.36,.64,1);
  position:relative; z-index:1;
}
.service:nth-child(2) .icon{ background:var(--coral-soft); color:var(--coral); }
.service:nth-child(3) .icon{ background:var(--teal-soft); color:var(--teal); }
.service .icon svg{ width:1.35rem; height:1.35rem; }
.service .step-num{
  font-family:'Space Grotesk', sans-serif; font-weight:600; font-size:1.15rem;
}
.service h3{ font-size:1.2rem; font-weight:600; margin-bottom:.6rem; position:relative; z-index:1; }
.service p{ color:var(--ink-soft); font-size:.98rem; line-height:1.6; position:relative; z-index:1; }
.service .case-tag{ margin-bottom:.8rem; display:block; }

/* ---------- work / case cards ---------- */
.work-grid{
  display:grid; grid-template-columns:1fr; gap:1.4rem;
}
@media (min-width:640px){ .work-grid{ grid-template-columns:1fr 1fr; } }
@media (min-width:1000px){ .work-grid{ grid-template-columns:repeat(3,1fr); } }
.case{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  display:flex; flex-direction:column;
  color:inherit; text-decoration:none;
  transition:transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s ease, border-color .25s ease;
}
.case-media{
  aspect-ratio:4/3;
  overflow:hidden;
  background:var(--accent-soft);
  position:relative;
}
.case-media img{
  width:100%; height:100%; object-fit:cover; display:block;
  transition:transform .5s cubic-bezier(.16,1,.3,1);
}
.case-body{ padding:1.2rem 1.3rem 1.4rem; }
.case-tag{
  display:inline-block;
  font-family:'IBM Plex Mono', monospace;
  font-size:.68rem; letter-spacing:.06em; text-transform:uppercase;
  color:var(--accent);
  margin-bottom:.6rem;
  padding:.2rem .55rem;
  border-radius:99px;
  background:var(--accent-soft);
}
.case:nth-child(2) .case-tag{ color:var(--coral); background:var(--coral-soft); }
.case:nth-child(3) .case-tag{ color:var(--teal); background:var(--teal-soft); }
.case h3{ font-family:'Space Grotesk', sans-serif; font-size:1.1rem; font-weight:600; margin-bottom:.4rem; }
.case p{ font-size:.9rem; color:var(--ink-soft); line-height:1.55; }

/* ---------- long-form detail block (tjänster / exempel) ---------- */
.detail{
  display:grid; grid-template-columns:1fr; gap:1.5rem;
  padding:2.2rem 0;
  border-top:1px solid var(--line);
}
.detail:first-of-type{ border-top:0; }
@media (min-width:900px){ .detail{ grid-template-columns:.85fr 1.15fr; gap:3rem; } }
.detail-head .icon{
  width:2.6rem; height:2.6rem; border-radius:9px;
  background:var(--accent-soft); color:var(--accent);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:1.1rem;
}
.detail-head .icon svg{ width:1.3rem; height:1.3rem; }
.detail-head h3{ font-size:1.45rem; margin-bottom:.6rem; }
.detail-head p{ color:var(--ink-soft); font-size:1rem; line-height:1.6; }
.detail-body p{ color:var(--ink-soft); font-size:1rem; line-height:1.65; margin-bottom:1rem; }
.detail-body p:last-of-type{ margin-bottom:1.3rem; }

/* ---------- platform gallery (exempel.html: fler inläggstyper per case) ---------- */
.platform-gallery{
  display:grid; grid-template-columns:repeat(2,1fr); gap:1rem;
}
@media (min-width:520px){ .platform-gallery{ grid-template-columns:repeat(3,1fr); } }
.platform-gallery figure{ margin:0; }
.platform-gallery-media{
  aspect-ratio:1/1; overflow:hidden; border-radius:12px;
  border:1px solid var(--line); background:var(--accent-soft);
}
.platform-gallery-media img{
  width:100%; height:100%; object-fit:cover; display:block;
  transition:transform .5s cubic-bezier(.16,1,.3,1);
}
.platform-gallery figcaption{ margin-top:.55rem; }

/* ---------- pricing ---------- */
.price-card{
  background:linear-gradient(150deg, var(--panel) 55%, var(--accent-ink) 130%);
  border:1px solid var(--line);
  border-radius:20px;
  padding:2.6rem 2.4rem;
  display:flex; flex-wrap:wrap; gap:2rem 3rem;
  align-items:center; justify-content:space-between;
}
.price-figure .from{ color:var(--ink-soft); font-size:.95rem; margin-bottom:.3rem; }
.price-figure .amount{
  font-family:'Space Grotesk', sans-serif; font-weight:600;
  font-size:clamp(2.4rem, 3.4vw + 1rem, 3.4rem);
  color:var(--ink);
  font-variant-numeric:tabular-nums;
}
.price-figure .amount span{ font-size:.42em; color:var(--ink-soft); font-family:'Geist'; font-weight:500; }
.price-perks{ display:flex; flex-direction:column; gap:.65rem; }
.price-perks .perk{ display:flex; align-items:center; gap:.6rem; font-size:.94rem; color:var(--ink); }
.price-perks svg{ width:1.05rem; height:1.05rem; color:var(--accent); flex:none; }
.price-note{ font-size:.85rem; color:var(--ink-faint); margin-top:1.6rem; }

/* pricing tiers (paket.html) */
.tiers{
  display:grid; grid-template-columns:1fr; gap:1.5rem;
}
/* equal-height tiers so the three buttons line up */
@media (min-width:900px){ .tiers{ grid-template-columns:repeat(3,1fr); align-items:stretch; } }
.tier{
  position:relative;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:16px;
  padding:2rem 1.8rem 2.2rem;
  display:flex; flex-direction:column; gap:1.3rem;
  transition:transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s ease, border-color .25s ease;
}
.tier.featured{
  border-color:var(--accent);
  background:linear-gradient(160deg, var(--panel) 45%, var(--accent-ink) 150%);
  box-shadow:0 30px 60px -30px var(--shadow-strong);
}
@media (min-width:900px){ .tier.featured{ transform:translateY(-8px); } }
.tier-badge{
  position:absolute; top:-.7rem; left:1.7rem;
  background:var(--accent); color:var(--accent-ink);
  font-family:'IBM Plex Mono', monospace;
  font-size:.68rem; letter-spacing:.06em; text-transform:uppercase;
  padding:.3rem .7rem; border-radius:99px;
}
.tier-name{ font-size:1.2rem; font-weight:600; font-family:'Space Grotesk', sans-serif; }
.tier-price{
  font-family:'Space Grotesk', sans-serif; font-weight:600;
  font-size:2.2rem; color:var(--ink);
  font-variant-numeric:tabular-nums;
}
.tier-price span{ font-size:.48em; color:var(--ink-soft); font-family:'Geist'; font-weight:500; }
.tier-desc{ color:var(--ink-soft); font-size:.94rem; line-height:1.55; }
.tier .price-perks{ flex:1; }
.tier .price-perks .perk{ font-size:.9rem; align-items:flex-start; }
.tier .btn-primary, .tier .btn-ghost{ justify-content:center; width:100%; }

/* period switch (paket.html) */
.period-switch{
  display:flex; flex-wrap:wrap; gap:.4rem;
  background:var(--panel); border:1px solid var(--line); border-radius:99px;
  padding:.35rem; width:max-content; max-width:100%; margin:0 auto;
}
.period-opt{
  font:inherit; font-size:.9rem; font-weight:600; color:var(--ink-soft);
  background:transparent; border:0; border-radius:99px;
  padding:.55rem 1rem; cursor:pointer; transition:background .2s ease, color .2s ease, transform .16s cubic-bezier(.23,1,.32,1);
}
.period-opt em{ font-style:normal; font-family:'IBM Plex Mono', monospace; font-size:.75rem; color:var(--teal); margin-left:.2rem; }
.period-opt[aria-checked="true"]{ background:var(--accent); color:var(--accent-ink); }
.period-opt[aria-checked="true"] em{ color:var(--accent-ink); }
.period-opt:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
.period-note{ text-align:center; font-size:.88rem; color:var(--ink-faint); margin:.9rem 0 2.4rem; }
@media (max-width:520px){ .period-switch{ border-radius:16px; justify-content:center; } .period-opt{ padding:.5rem .75rem; } }
.tier-price .tp-amount{ font-size:1em; color:var(--ink); font-family:'Space Grotesk', sans-serif; font-weight:600; }
.tier-total{ font-size:.82rem; color:var(--teal); font-weight:600; min-height:1.1em; margin-top:-.9rem; }
/* text swap when the period changes, so the new price reads as changed */
.tier-price .tp-amount{ display:inline-block; }
.swap-in{ animation:swapIn .15s ease-in-out; }
@keyframes swapIn{ from{ opacity:0; filter:blur(2px); transform:translateY(4px); } }
@media (prefers-reduced-motion:reduce){ .swap-in{ animation-name:fadeIn; } }

/* faq */
.faq{ display:flex; flex-direction:column; gap:.8rem; }
.faq details{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:12px;
  padding:1.1rem 1.4rem;
}
.faq summary{
  cursor:pointer;
  font-weight:600; font-size:1rem; color:var(--ink);
  list-style:none;
  display:flex; align-items:center; justify-content:space-between;
  gap:1rem;
}
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{
  content:"+";
  font-family:'Space Grotesk', sans-serif; font-size:1.2rem; color:var(--accent);
  flex:none;
}
.faq details[open] summary::after{ content:"–"; }
.faq details p{ margin-top:.8rem; color:var(--ink-soft); font-size:.94rem; line-height:1.6; }
/* the answer settles in on open; closing stays instant */
.faq details[open] p, .longform[open] .longform-body{ animation:detailsIn .2s cubic-bezier(.23,1,.32,1); }
@keyframes detailsIn{ from{ opacity:0; transform:translateY(-4px); } }
@media (prefers-reduced-motion:reduce){ .faq details[open] p, .longform[open] .longform-body{ animation-name:fadeIn; } }

/* chips */
.chips{ display:flex; flex-wrap:wrap; gap:.6rem; margin-top:1.4rem; }
.chip{
  font-family:'IBM Plex Mono', monospace;
  font-size:.8rem;
  border:1px solid var(--line);
  background:var(--panel);
  padding:.45rem .9rem;
  border-radius:99px;
  color:var(--ink-soft);
  transition:border-color .2s ease, color .2s ease, transform .2s cubic-bezier(.22,1,.36,1);
}

/* ---------- contact ---------- */
.contact-card{
  background:var(--panel);
  color:var(--ink);
  border:1px solid var(--line);
  border-radius:20px;
  padding:3.4rem 2.6rem;
  text-align:left;
  position:relative;
  overflow:hidden;
}
.contact-card::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(ellipse 620px 300px at 90% -20%, var(--accent-soft), transparent 65%);
  pointer-events:none;
}
.contact-card h2{ font-size:clamp(1.8rem,2.6vw+1rem,2.5rem); max-width:20ch; position:relative; }
.contact-card .sub{ margin-top:1rem; max-width:52ch; color:var(--ink-soft); font-size:1.05rem; line-height:1.6; position:relative; }
.contact-actions{ margin-top:2rem; display:flex; flex-wrap:wrap; gap:1rem; align-items:center; position:relative; }
.contact-card .btn-primary{ background:var(--ink); color:var(--paper); }
.contact-card .btn-ghost{ color:var(--ink); border-color:var(--line); }
.contact-mail{ font-size:.9rem; color:var(--ink-faint); }
.contact-mail code{
  font-family:'IBM Plex Mono', monospace; color:var(--ink);
  background:var(--accent-soft); padding:.15rem .4rem; border-radius:4px;
}

footer{
  border-top:1px solid var(--line);
  padding:3rem 0 2.4rem;
}
.footer-grid{
  display:grid; grid-template-columns:1fr; gap:2.4rem;
}
@media (min-width:700px){ .footer-grid{ grid-template-columns:1.3fr 1fr 1fr; } }
.footer-grid .brand{ font-size:.95rem; color:var(--ink-soft); margin-bottom:.6rem; }
.footer-grid .brand img{ width:1.4rem; height:1.4rem; }
.footer-tagline{ font-size:.85rem; color:var(--ink-faint); line-height:1.5; max-width:32ch; }
.footer-col h3{
  font-family:'IBM Plex Mono', monospace; font-size:.72rem; letter-spacing:.08em; text-transform:uppercase;
  color:var(--ink-faint); margin-bottom:.9rem; font-weight:500;
}
.footer-links{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; }
.footer-links a{ display:inline-flex; align-items:center; min-height:2.75rem; text-decoration:none; color:var(--ink-soft); font-size:.9rem; }
.footer-links a:hover{ color:var(--ink); }
.footer-bottom{
  margin-top:2.6rem; padding-top:1.6rem; border-top:1px solid var(--line);
  font-size:.8rem; color:var(--ink-faint);
}


/* ---------- case pages (exempelcase) ---------- */
.case-meta{
  margin-top:.9rem;
  font-family:'IBM Plex Mono', monospace;
  font-size:.72rem; letter-spacing:.05em; text-transform:uppercase;
  color:var(--ink-faint);
}
.note-inline{
  margin-top:1.2rem; padding:.85rem 1rem;
  border:1px dashed var(--line); border-radius:10px;
  background:var(--panel);
  color:var(--ink-faint); font-size:.9rem; line-height:1.6;
}
.post-grid{ display:grid; grid-template-columns:1fr; gap:1.1rem; margin-top:1.6rem; }
@media (min-width:760px){ .post-grid{ grid-template-columns:1fr 1fr; } }
.post{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:14px;
  padding:1.15rem 1.25rem 1.2rem;
  display:flex; flex-direction:column;
  transition:border-color .3s ease, box-shadow .3s ease;
}
.post h3{ font-family:'Space Grotesk', sans-serif; font-size:1.05rem; font-weight:600; margin-bottom:.55rem; }
.post p{ color:var(--ink-soft); font-size:.95rem; line-height:1.65; flex:1; }
.post-wide{ margin-top:1.6rem; }
.post-format{
  display:block; width:100%;
  margin-top:1rem; padding-top:.75rem;
  border-top:1px solid var(--line);
  font-family:'IBM Plex Mono', monospace;
  font-size:.66rem; letter-spacing:.06em; text-transform:uppercase;
  color:var(--accent);
}
.longform{
  margin-top:1.1rem;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:14px;
  padding:1.1rem 1.25rem;
}
.longform summary{
  cursor:pointer; list-style:none;
  font-family:'Space Grotesk', sans-serif; font-weight:600; font-size:1.02rem;
  display:flex; justify-content:space-between; align-items:center; gap:1rem;
}
.longform summary::-webkit-details-marker{ display:none; }
.longform summary::after{ content:"+"; color:var(--accent); font-size:1.3rem; line-height:1; }
.longform[open] summary::after{ content:"–"; }
.longform-body p{ margin-top:.95rem; color:var(--ink-soft); font-size:.96rem; line-height:1.7; }
.case-link{
  display:inline-flex; align-items:center; gap:.35rem;
  margin-top:.85rem;
  font-size:.88rem; font-weight:600; color:var(--ink);
  text-decoration:none;
  border-bottom:1px solid var(--line); padding-bottom:2px;
  transition:color .25s ease, border-color .25s ease;
}
.case-link:hover{ color:var(--accent); border-color:var(--accent); }

/* ---------- accessibility: visible keyboard focus ---------- */
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible{
  outline:2.5px solid var(--accent);
  outline-offset:3px;
  border-radius:4px;
}
.contact-card a:focus-visible{ outline-color:var(--accent); }

/* ---------- legal pages (integritet / villkor / cookies) ---------- */
.legal{
  max-width:72ch;
  display:flex; flex-direction:column; gap:2.2rem;
}
.legal h2{ font-size:1.3rem; margin-bottom:.7rem; }
.legal p, .legal li{ color:var(--ink-soft); font-size:.98rem; line-height:1.7; }
.legal ul{ margin:.4rem 0 0; padding-left:1.2rem; display:flex; flex-direction:column; gap:.4rem; }
.legal .updated{ font-family:'IBM Plex Mono', monospace; font-size:.75rem; color:var(--ink-faint); text-transform:uppercase; letter-spacing:.06em; }
.legal-nav{ display:flex; flex-wrap:wrap; gap:.6rem 1.4rem; margin-top:1.6rem; }
.legal-nav a{ font-size:.88rem; font-weight:600; text-decoration:none; border-bottom:1px solid var(--line); padding-bottom:2px; }
.legal-nav a:hover{ color:var(--accent); border-color:var(--accent); }

/* ---------- footer legal row ---------- */
.footer-legal{
  margin-top:1.4rem; padding-top:1.4rem; border-top:1px solid var(--line);
  display:flex; flex-wrap:wrap; gap:.5rem 1.2rem;
}
.footer-legal a{
  font-size:.8rem; color:var(--ink-faint); text-decoration:none;
  display:inline-flex; align-items:center;
  padding:.6rem 0; margin:-.6rem 0;
  min-height:2.75rem;
}
.footer-legal a:hover{ color:var(--ink); }

/* ---------- cookie notice ---------- */
.cookie-bar{
  position:fixed; left:1rem; right:1rem; bottom:1rem; z-index:80;
  max-width:34rem; margin:0 auto;
  background:var(--ink); color:var(--paper);
  border-radius:16px;
  padding:1.2rem 1.3rem;
  box-shadow:0 30px 60px -20px rgba(0,0,0,.45);
  display:flex; flex-direction:column; gap:.9rem;
  transform:translateY(140%);
  transition:transform .35s cubic-bezier(.22,1,.36,1);
}
.cookie-bar.show{ transform:translateY(0); transition-duration:.4s; }
body.dark .cookie-bar{ background:#1b1b1e; border:1px solid #2a2a2e; }
.cookie-bar p{ font-size:.86rem; line-height:1.55; color:#d7d8e0; margin:0; }
.cookie-bar a{ color:#fff; text-decoration:underline; text-underline-offset:2px; }
.cookie-bar-actions{ display:flex; gap:.7rem; flex-wrap:wrap; }
.cookie-bar .btn-primary{ background:#fff; color:#0f0f11; padding:.6rem 1.2rem; font-size:.88rem; }
.cookie-bar-dismiss{
  background:none; border:1px solid rgba(255,255,255,.3); color:#fff;
  padding:.6rem 1.1rem; border-radius:99px; font-size:.88rem; font-weight:600; cursor:pointer;
  transition:border-color .2s ease, background .2s ease;
}
@media (prefers-reduced-motion:reduce){ .cookie-bar, .cookie-bar.show{ transition:none; } }


/* ---------- v2: välkomnande hero, band, tidslinje, värden ---------- */

.hero h1 .accent{
  color:var(--accent);
}
@keyframes shine{ to{ background-position:100% 0; } }
@media (prefers-reduced-motion:reduce){ .hero h1 .accent{ animation:none; } }

.trust{
  list-style:none; margin:2.8rem 0 0; padding:1.5rem 0 0;
  border-top:1px solid var(--line);
  display:grid; grid-template-columns:1fr 1fr; gap:1.4rem 1.6rem;
  max-width:46rem;
}
@media (min-width:760px){ .trust{ grid-template-columns:repeat(4,auto); justify-content:space-between; gap:0; } .trust li + li{ padding-left:1.6rem; border-left:1px solid var(--line); } }
.trust li{ display:flex; flex-direction:column; gap:.2rem; }
.trust strong{ font-family:'Space Grotesk', sans-serif; font-weight:600; font-size:1.02rem; color:var(--ink); letter-spacing:-.005em; }
.trust span{ font-size:.82rem; color:var(--ink-faint); line-height:1.35; }

.btn-primary svg{ transition:transform .25s cubic-bezier(.22,1,.36,1); }

/* marquee */
.marquee{
  overflow:hidden; margin-top:1.4rem;
  -webkit-mask-image:linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image:linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track{ display:flex; width:max-content; animation:marquee 28s linear infinite; }
.marquee:hover .marquee-track{ animation-play-state:paused; }
.marquee-set{ display:flex; gap:.8rem; padding-right:.8rem; }
.marquee .chip{ font-size:.95rem; padding:.7rem 1.4rem; white-space:nowrap; }
@keyframes marquee{ to{ transform:translateX(-50%); } }
@media (prefers-reduced-motion:reduce){
  .marquee{ -webkit-mask-image:none; mask-image:none; }
  .marquee-track{ animation:none; flex-wrap:wrap; width:auto; }
  .marquee-set:nth-child(2){ display:none; }
  .marquee-set{ flex-wrap:wrap; }
}

/* timeline */
.timeline{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:1fr; gap:1.6rem; position:relative; }
.tl-step{ position:relative; padding-left:3.6rem; }
.tl-num{
  position:absolute; left:0; top:0;
  width:2.6rem; height:2.6rem; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:var(--panel); border:1.5px solid var(--line); color:var(--ink-soft);
  font-weight:500; transition:background .4s ease, color .4s ease, border-color .4s ease, transform .5s cubic-bezier(.34,1.36,.64,1);
  z-index:1;
}
.tl-step.in .tl-num{ background:var(--accent); border-color:var(--accent); color:var(--accent-ink); transform:scale(1.06); }
.tl-step h3{ font-size:1.2rem; margin-bottom:.45rem; padding-top:.35rem; }
.tl-step p{ color:var(--ink-soft); font-size:.98rem; line-height:1.6; max-width:34ch; }
.timeline::before, .timeline::after{
  content:""; position:absolute; left:1.3rem; top:1.3rem; bottom:1.3rem; width:2px; border-radius:2px;
}
.timeline::before{ background:var(--line); }
.timeline::after{ background:var(--accent); transform-origin:top; transform:scaleY(var(--tl,0)); }
@media (min-width:860px){
  .timeline{ grid-template-columns:repeat(4,1fr); gap:1.5rem; }
  .tl-step{ padding:3.6rem 0 0; }
  .timeline::before, .timeline::after{ left:1.3rem; right:1.3rem; top:1.3rem; bottom:auto; width:auto; height:2px; }
  .timeline::after{ transform-origin:left; transform:scaleX(var(--tl,0)); }
}
@media (prefers-reduced-motion:reduce){ .timeline::after{ transform:none; } }

/* values (om oss) */
.values{ display:grid; grid-template-columns:1fr; gap:1.25rem; }
@media (min-width:760px){ .values{ grid-template-columns:repeat(3,1fr); } }
.value{
  background:var(--panel); border:1px solid var(--line); border-radius:16px; padding:1.6rem 1.5rem 1.7rem;
  transition:transform .25s cubic-bezier(.22,1,.36,1), border-color .25s ease, box-shadow .25s ease;
}
.value svg{ width:1rem; height:1rem; padding:.55rem; border-radius:8px; background:var(--teal-soft); color:var(--teal); margin-bottom:1rem; box-sizing:content-box; display:block; }
.value h3{ font-size:1.1rem; margin-bottom:.4rem; }
.value p{ color:var(--ink-soft); font-size:.95rem; line-height:1.55; }



/* ---------- v3: exempelsidor ---------- */
.page-hero::before{
  content:""; position:absolute; inset:-30% -10% auto auto; width:46rem; height:26rem; max-width:90%;
  background:radial-gradient(closest-side, rgba(15,15,17,.06), transparent 70%);
  filter:blur(14px); pointer-events:none; z-index:0;
  animation:meshDrift 20s ease-in-out infinite alternate;
}
@media (prefers-reduced-motion:reduce){ .page-hero::before{ animation:none; } }
.page-hero{ overflow-x:clip; }
.page-hero .wrap{ z-index:1; }
.page-hero .case-meta{ display:inline-block; padding:.35rem .8rem; border:1px solid var(--line); border-radius:99px; background:rgba(255,255,255,.7); }
.page-hero .note-inline{ max-width:56ch; }

.detail-card{
  background:var(--panel); border:1px solid var(--line); border-radius:20px;
  padding:2rem 1.6rem; margin-bottom:1.6rem;
  transition:box-shadow .25s ease, border-color .25s ease;
}
@media (min-width:900px){ .detail-card{ padding:2.4rem 2.4rem; } }
.detail.detail-card:first-of-type{ border-top:1px solid var(--line); }
.detail-card .detail-body p strong{
  display:block; margin-bottom:.2rem;
  font-family:'IBM Plex Mono', monospace; font-size:.7rem; font-weight:500;
  letter-spacing:.08em; text-transform:uppercase; color:var(--accent);
}
.detail-card .platform-gallery{ margin:1.6rem 0 1.2rem; }
.work-grid .case-link{ margin-top:1rem; }
.work-grid .case-link svg{ transition:transform .25s cubic-bezier(.22,1,.36,1); }

/* hover effects only on devices with a real pointer, so a tap on a touch screen
   doesn't leave a card or button stuck in its hover state */
@media (hover:hover) and (pointer:fine){
  .nav-cta:hover{ background:var(--accent); transform:translateY(-1px); }
  .btn-primary:hover{ background:var(--ink-soft); transform:translateY(-2px); }
  .btn-ghost:hover{ border-color:var(--ink); background:var(--panel); transform:translateY(-2px); }
  .service:hover{ border-color:var(--ink); transform:translateY(-6px); box-shadow:0 24px 44px -24px var(--shadow-strong); }
  .service:hover::after{ opacity:1; }
  .service:hover .icon{ transform:scale(1.08) rotate(-4deg); }
  .case:hover{ transform:translateY(-6px); box-shadow:0 26px 48px -26px var(--shadow-strong); border-color:var(--ink); }
  .case:hover .case-media img{ transform:scale(1.06); }
  .platform-gallery figure:hover .platform-gallery-media img{ transform:scale(1.06); }
  .tier:hover{ transform:translateY(-4px); box-shadow:0 22px 40px -24px var(--shadow-strong); }
  .chip:hover{ border-color:var(--accent); color:var(--accent); transform:translateY(-2px); }
  .contact-card .btn-primary:hover{ background:var(--accent); color:var(--accent-ink); }
  .contact-card .btn-ghost:hover{ border-color:var(--ink); background:var(--accent-soft); }
  .post:hover{ border-color:var(--ink); box-shadow:0 20px 38px -30px var(--shadow-strong); }
  .cookie-bar .btn-primary:hover{ background:var(--accent); color:var(--accent-ink); }
  .cookie-bar-dismiss:hover{ border-color:#fff; background:rgba(255,255,255,.08); }
  .btn-primary:hover svg{ transform:translateX(4px); }
  .value:hover{ transform:translateY(-5px); border-color:var(--ink); box-shadow:0 22px 40px -26px var(--shadow-strong); }
  .detail-card:hover{ border-color:var(--ink); box-shadow:0 28px 50px -34px var(--shadow-strong); }
  .work-grid .case:hover .case-link svg{ transform:translateX(4px); }
}
@media (min-width:900px) and (hover:hover) and (pointer:fine){ .tier.featured:hover{ transform:translateY(-12px); } }
/* press feedback; after the hover rules so it wins while hovering */
.nav-cta:active, .btn-primary:active, .btn-ghost:active{ transform:scale(.97); transition-duration:.16s; }
.chip:active{ transform:scale(.97); transition-duration:.16s; }
.period-opt:active{ transform:scale(.97); }

/* ---------- utilities that replace inline styles ---------- */
.more{ margin-top:2rem; }
.more.tight{ margin-top:1.6rem; }
.narrow{ max-width:40rem; }
.prose{ max-width:70ch; }
.services-grid.cols-4.fit{ grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); }

/* ---------- Riktiga inlägg: cards fan out in 3D as you scroll ---------- */
.real .section-head{ margin-bottom:1.5rem; }
.real-scroll{ --p:1; }
.real-grid{ display:grid; gap:2.5rem; align-items:center; }
@media (min-width:900px){ .real-grid{ grid-template-columns:1.25fr .75fr; gap:3rem; } }

.real-stage{ display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.real-stage .post-card:first-child{ grid-column:1 / -1; max-width:22rem; justify-self:center; width:100%; }
.post-card{
  background:var(--panel); border-radius:14px; overflow:hidden;
  box-shadow:0 30px 50px -28px var(--shadow-strong), 0 2px 6px var(--shadow);
}
.post-head{ display:flex; align-items:center; gap:.5rem; white-space:nowrap; padding:.55rem .7rem; font-size:.74rem; font-weight:600; color:var(--ink); }
.post-logo{ width:22px; height:22px; flex:none; }
.post-card img{ display:block; width:100%; height:auto; aspect-ratio:1; object-fit:cover; }
.post-foot{ display:flex; justify-content:space-between; gap:.5rem; white-space:nowrap; padding:.55rem .7rem; font-size:.74rem; color:var(--ink-soft); }
.post-foot .soon{ color:var(--ink-faint); }

.real-label{ font-weight:600; margin:0 0 1rem; }
.bar-row{ display:grid; grid-template-columns:1fr; gap:.35rem; margin-bottom:1.1rem; }
.bar-name{ font-size:.9rem; font-weight:600; }
.bar-name small{ display:block; font-weight:400; color:var(--ink-faint); font-size:.78rem; }
.bar{ display:block; height:12px; border-radius:99px; background:var(--line); overflow:hidden; }
.bar-fill{
  display:block; height:100%; border-radius:inherit; background:var(--ink-faint);
  transform-origin:left; transform:scaleX(calc(var(--w) * clamp(0, (var(--p) - .45) * 2.5, 1)));
}
.is-us .bar-fill{ background:var(--accent); }
.bar-val{ font-size:.85rem; color:var(--ink-soft); }
.bar-val b{ color:var(--ink); font-size:1.05rem; }
.is-us .bar-val b{ color:var(--accent); }
.real-avg{ margin:1.4rem 0 .6rem; line-height:1.55; }
.real-note{ margin:0; font-size:.8rem; line-height:1.5; color:var(--ink-faint); }

/* ---------- flow: blocks drift out from the centre line while scrolling (JS adds html.flow) ---------- */
html.flow .flow-item:not(.flow-settled){
  translate:calc(var(--fx, 0px) * (1 - var(--fp, 0))) calc(46px * (1 - var(--fp, 0)));
  scale:calc(.9 + .1 * var(--fp, 0));
  opacity:var(--fp, 0);
  animation:none;
}
html.flow .flow-item.flow-settled{ animation:flowIn .7s cubic-bezier(.22,1,.36,1) backwards; }
@keyframes flowIn{ from{ opacity:0; scale:.94; translate:0 24px; } }

/* ---------- end menu: the whole site as a final grid, flowing out from the middle ---------- */
.endmenu{ padding:4.5rem 0 5rem; }
.endmenu .section-head{ margin-inline:auto; text-align:center; }
.endmenu .section-head .eyebrow{ justify-content:center; }
.endmenu-grid{ list-style:none; margin:0; padding:0; display:grid; gap:1rem; grid-template-columns:1fr; }
@media (min-width:640px){ .endmenu-grid{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:980px){ .endmenu-grid{ grid-template-columns:repeat(3,1fr); } }
.endmenu-grid a{
  display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:1rem;
  padding:1.4rem 1.4rem; min-height:7.5rem;
  background:var(--panel); border:1px solid var(--line); border-radius:18px;
  color:var(--ink); text-decoration:none;
  transition:border-color .2s ease, box-shadow .2s ease, transform .2s cubic-bezier(.22,1,.36,1);
}
.endmenu-grid .num{ font-family:'IBM Plex Mono', monospace; font-size:.8rem; color:var(--ink-faint); align-self:start; padding-top:.3rem; }
.endmenu-grid strong{ display:block; font-family:'Space Grotesk','Geist',sans-serif; font-size:clamp(1.35rem, 1vw + 1rem, 1.7rem); font-weight:600; line-height:1.1; }
.endmenu-grid small{ display:block; margin-top:.4rem; color:var(--ink-soft); font-size:.92rem; line-height:1.45; }
.endmenu-grid .arrow{ font-size:1.3rem; color:var(--accent); transition:transform .2s ease; }
.endmenu-grid a[aria-current="page"]{ border-color:var(--accent); background:var(--accent-soft); }
.endmenu-grid a[aria-current="page"] .arrow{ visibility:hidden; }
@media (hover:hover) and (pointer:fine){
  .endmenu-grid a:hover{ border-color:var(--ink); box-shadow:0 24px 40px -28px var(--shadow-strong); transform:translateY(-3px); }
  .endmenu-grid a:hover .arrow{ transform:translateX(4px); }
}
.endmenu-grid a:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }

/* GSAP drives the reveals: switch off the CSS entrance animations so they do not fight */
html.gsap-on .reveal,
html.gsap-on .reveal.in{ animation:none; opacity:1; }

body.dark .nav .brand{ background:rgba(21,21,23,.66); color:var(--ink); border:1px solid var(--line); }
body.dark .nav .brand img, body.dark footer .brand img{ filter:invert(1) grayscale(1) brightness(1.6); }

/* =========================================================================
   Start page tour: chapters held still while the 3D phone does its thing
   ========================================================================= */
.tour{ position:relative; --glow:.12; }
.tour-bg{
  position:fixed; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(60% 50% at 50% 46%, rgba(255,255,255,var(--glow)), transparent 70%),
    radial-gradient(40% 35% at 12% 88%, rgba(140,140,150,.08), transparent 70%),
    radial-gradient(45% 40% at 90% 10%, rgba(120,120,130,.07), transparent 70%),
    linear-gradient(180deg, #0d0d0f 0%, #09090a 45%, #101012 100%);
}
.tour-stage{ position:fixed; inset:0; width:100%; height:100%; z-index:1; pointer-events:none; display:block; }
.tour.no-3d .tour-stage{ display:none; }

.chapter{ position:relative; z-index:2; height:calc(var(--len, 2) * 100dvh); padding:0; }
.chapter-inner{
  position:sticky; top:0; height:100dvh; overflow:hidden;
  display:flex; align-items:center; justify-content:center;
}
.chapter-inner > .wrap{ width:100%; }
.chapter h1{ font-size:clamp(2.2rem, 4.6vw, 4.6rem); line-height:1.02; letter-spacing:-.03em; font-weight:600; }
.chapter h1 .accent{ color:#a8a8b0; }
.chapter h2{ font-size:clamp(1.8rem, 3.2vw, 3rem); line-height:1.05; letter-spacing:-.025em; }
.chapter .sub{ margin-top:1rem; color:var(--ink-soft); font-size:clamp(1rem, .35vw + .92rem, 1.12rem); line-height:1.6; max-width:46ch; }
.chapter .eyebrow{ color:var(--ink-faint); }
.chapter-head .eyebrow{ justify-content:center; }
.chapter-head{ text-align:center; max-width:56rem; margin-inline:auto; }
.chapter-head .sub{ margin-inline:auto; }
.kicker{ font-weight:600; font-size:1.05rem; margin:0; }

/* layouts: a slot (.phone-gap) is left empty where the 3D phone should sit */
.layout-stack{ display:flex; flex-direction:column; align-items:center; gap:clamp(.8rem, 2.5vh, 1.6rem); padding-block:5.5rem 6rem; }
.layout-stack .phone-gap{ width:min(22rem, 60vw); flex:1 1 auto; min-height:22vh; max-height:42vh; }
.chapter-intro .layout-stack{ padding-block:4.75rem 2.4rem; gap:clamp(.6rem, 1.6vh, 1.2rem); }
.chapter-intro .tour-cue{ position:absolute; left:0; right:0; margin-inline:auto; width:max-content; bottom:max(.4rem, env(safe-area-inset-bottom, 0px)); gap:.3rem; font-size:.78rem; }
.chapter-intro .tour-cue span{ display:none; }
.chapter-intro .chapter-inner{ position:sticky; }
.chapter-intro .chapter-head .sub{ margin-top:.7rem; }
.layout-center{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1.6rem; padding-block:5.5rem 6rem; }
.layout-sides{ display:grid; grid-template-columns:minmax(15rem, 1fr) minmax(16rem, 30rem) minmax(15rem, 1fr); align-items:center; gap:2rem; height:100dvh; padding-block:5rem; }
.layout-sides .phone-gap{ height:min(68vh, 36rem); }
.layout-sides .side-right{ text-align:right; }
.layout-sides .side-right .sub{ margin-left:auto; }
@media (max-width:760px){
  .layout-sides{ grid-template-columns:1fr; grid-template-rows:auto 1fr auto; gap:.8rem; text-align:center; }
  .layout-sides .side-right{ text-align:center; }
  .layout-sides .sub, .layout-sides .side-right .sub{ margin-inline:auto; }
  .layout-sides .phone-gap{ height:auto; min-height:34vh; }
  .layout-sides .side-left .sub{ display:none; }
  .layout-sides .eyebrow{ justify-content:center; }
}

.tour-cue{ margin:0; font-size:.85rem; color:var(--ink-faint); display:flex; flex-direction:column; align-items:center; gap:.6rem; }
.tour-cue span{ display:block; width:1px; height:2.4rem; background:linear-gradient(var(--ink-faint), transparent); animation:cue 1.8s ease-in-out infinite; transform-origin:top; }
@keyframes cue{ 0%{ transform:scaleY(0); } 60%{ transform:scaleY(1); } 100%{ transform:scaleY(1); opacity:0; } }

/* glassy panels so the phone and the dust stay visible behind them */
.tour .real-stats, .tour .service, .tour .tl-step, .tour .price-card, .tour .contact-card{
  background:rgba(21,21,23,.62);
  border:1px solid rgba(255,255,255,.08);
  backdrop-filter:blur(14px) saturate(1.1);
  -webkit-backdrop-filter:blur(14px) saturate(1.1);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06), 0 30px 60px -40px rgba(0,0,0,.8);
}
.tour .real-stats{ width:min(36rem, 100%); border-radius:20px; padding:1.4rem 1.5rem; }
.tour .real-avg{ margin:1rem 0 .5rem; font-size:.95rem; }
.tour .bar{ background:#26262a; }
.tour .bar-fill{ background:#5a5a62; transform:scaleX(0); transition:transform 1.1s cubic-bezier(.22,1,.36,1); }
.tour .is-us .bar-fill{ background:#f4f4f5; }
.tour .real-stats.is-counted .bar-fill{ transform:scaleX(var(--w)); }
.tour.is-calm .bar-fill{ transform:scaleX(var(--w)); transition:none; }

.tour .services-grid{ width:100%; margin:0; }
.tour .service{ border-radius:18px; }
.tour .service .icon{ background:#232327; color:var(--ink); }
.steps{ list-style:none; margin:0; padding:0; display:grid; gap:1rem; width:100%; grid-template-columns:repeat(4, 1fr); }
.steps .tl-step{ border-radius:18px; padding:1.2rem 1.2rem 1.3rem; }
.steps .tl-num{ position:static; display:inline-grid; place-items:center; width:2rem; height:2rem; border-radius:50%; background:#f4f4f5; color:#09090a; font-size:.9rem; margin-bottom:.8rem; }
.steps h3{ font-size:1.1rem; margin-bottom:.35rem; }
.steps p{ margin:0; color:var(--ink-soft); font-size:.92rem; line-height:1.5; }
@media (max-width:760px){
  .steps{ grid-template-columns:1fr 1fr; gap:.6rem; }
  .steps .tl-step{ padding:.9rem; }
  .steps p{ font-size:.82rem; }
  .tour .services-grid{ gap:.6rem; }
  .tour .service{ padding:1rem 1.1rem; }
  .tour .service p{ font-size:.85rem; }
  .tour .service .icon{ display:none; }
}
.chip-row{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; justify-content:center; gap:.7rem; }
.tour .chip{ background:rgba(21,21,23,.7); border:1px solid #33333a; color:var(--ink); font-size:1rem; padding:.6rem 1.1rem; border-radius:99px; }
.tour .price-card{ width:min(46rem, 100%); }
.tour .contact-card{ width:min(52rem, 100%); }
.tour .contact-card::before{ background:radial-gradient(ellipse 600px 300px at 90% -20%, rgba(255,255,255,.07), transparent 65%); }

/* hover lifts survive GSAP's inline transforms by using the separate translate property */
@media (hover:hover) and (pointer:fine){
  .tour .service:hover, .tour .chip:hover{ translate:0 -5px !important; transform:none; }
}

/* posts as plain cards when there is no 3D (no WebGL, or reduced motion) */
.fallback-cards{ display:none; }
.tour.no-3d .fallback-cards{ display:flex; flex-wrap:wrap; justify-content:center; gap:.8rem; grid-column:1 / -1; }
.tour.no-3d .fallback-cards .post-card{ width:min(10rem, 40vw); }
.tour.no-3d .layout-sides{ height:auto; }
.tour.has-3d .fallback-cards{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }

/* calm version (reduced motion): normal page, no holding still */
.tour.is-calm .chapter{ height:auto; }
.tour.is-calm .chapter-inner{ position:relative; height:auto; min-height:0; overflow:visible; }
.tour.is-calm .layout-sides{ height:auto; }
.tour.is-calm .phone-gap{ display:none; }

/* ---------- bottom bar: where you are in the tour ---------- */
.tour-nav{
  position:fixed; left:50%; bottom:max(1rem, env(safe-area-inset-bottom)); z-index:30;
  translate:-50% 140%; opacity:0;
  width:min(46rem, calc(100vw - 2rem));
  padding:.7rem 1rem .75rem; border-radius:16px;
  background:rgba(18,18,20,.72); border:1px solid #2a2a2e;
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  transition:translate .45s cubic-bezier(.22,1,.36,1), opacity .3s ease;
}
.tour-nav.show{ translate:-50% 0; opacity:1; }
.tour-track{ height:3px; border-radius:99px; background:#2a2a2e; overflow:hidden; }
.tour-fill{ display:block; height:100%; width:100%; background:#f4f4f5; transform-origin:left; transform:scaleX(var(--fill, 0)); }
.tour-steps{ list-style:none; margin:.55rem 0 0; padding:0; display:grid; grid-auto-flow:column; grid-auto-columns:1fr; }
.tour-steps a{ display:block; text-align:center; font-size:.74rem; color:#8c8c95; text-decoration:none; padding:.15rem .2rem; border-radius:6px; white-space:nowrap; transition:color .2s ease; }
.tour-steps a:hover{ color:#f4f4f5; }
.tour-steps a[aria-current]{ color:#f4f4f5; font-weight:600; }
.tour-steps a:focus-visible{ outline:2px solid #f4f4f5; outline-offset:2px; }
.tour-now{ display:none; margin:.45rem 0 0; font-size:.8rem; font-weight:600; text-align:center; color:#f4f4f5; }
@media (max-width:640px){
  .tour-steps{ display:none; }
  .tour-now{ display:block; }
}
.tour.is-calm .tour-nav{ display:none; }

/* the rest of the dark start page sits above the fixed 3D layer */
body.dark .endmenu, body.dark footer{ position:relative; z-index:2; background:transparent; }
/* after the tour the space background sinks into black, rising from the bottom of the screen */
.tour-fade{
  position:fixed; inset:0; z-index:1; pointer-events:none;
  background:linear-gradient(to top, var(--paper) calc(var(--fade, 0) * 140% - 40%), transparent calc(var(--fade, 0) * 140%));
}

/* ---------- the numbers as percentage increases ---------- */
.tour .real-stats{ width:min(48rem, 100%); }
.stat-grid{ display:grid; grid-template-columns:1.5fr 1fr 1fr; }
.stat{ padding:.4rem 1.4rem; border-left:1px solid #2a2a2e; min-width:0; }
.stat:first-child{ border-left:0; padding-left:.2rem; }
.stat p{ margin:0; }
.stat-num{
  font-family:'Space Grotesk','Geist',sans-serif; font-weight:600; line-height:1;
  font-size:clamp(2rem, 3.4vw, 2.9rem); letter-spacing:-.03em;
  font-variant-numeric:tabular-nums; white-space:nowrap;
}
.stat-main .stat-num{ font-size:clamp(3.2rem, 6.4vw, 5.6rem); }
.stat-sign, .stat-unit{ color:var(--ink-soft); font-weight:500; }
.stat-unit{ font-size:.55em; margin-left:.08em; }
.stat-arrow{ color:var(--ink-faint); font-size:.6em; margin:0 .25em; vertical-align:.15em; }
.stat-label{ margin-top:.55rem !important; font-weight:500; font-size:.98rem; color:var(--ink); }
.stat-base{ margin-top:.3rem !important; font-size:.78rem; color:var(--ink-faint); }
.tour .real-stats .real-note{ margin-top:1.3rem; padding-top:1rem; border-top:1px solid #2a2a2e; }
@media (max-width:640px){
  .stat-grid{ grid-template-columns:1fr 1fr; row-gap:1.2rem; }
  .stat-main{ grid-column:1 / -1; padding-left:.2rem; }
  .stat:nth-child(2){ border-left:0; padding-left:.2rem; }
}

/* no floating extras during the start-page tour; they appear at its last chapter */
html.tour-quiet .jo-chat-launcher{ opacity:0; pointer-events:none; visibility:hidden; }
.jo-chat-launcher{ transition:opacity .4s ease, visibility .4s; }

/* ---------- start screen: text left, phone centred in the right half ---------- */
.layout-hero{
  display:grid; grid-template-columns:minmax(0, .9fr) minmax(0, 1.1fr); align-items:center;
  gap:clamp(1rem, 3vw, 3rem); height:100dvh; padding-block:5rem 3rem;
}
.hero-text{ min-width:0; }
.hero-text h1{ font-size:clamp(2.3rem, 4.4vw, 4.4rem); }
.hero-text .sub{ margin-top:1.1rem; max-width:40ch; }
.hero-text .eyebrow{ margin:0 0 1rem; color:var(--ink-soft); }
.hero-points{ list-style:none; margin:1.6rem 0 0; padding:0; display:grid; gap:.55rem; }
.hero-points li{ display:flex; align-items:center; gap:.7rem; color:var(--ink); font-size:1rem; }
.hero-points li::before{ content:""; width:.42rem; height:.42rem; border-radius:50%; background:#a8a8b0; flex:none; }
.hero-phone{ position:relative; height:min(73dvh, 46rem); min-width:0; }
.hero-phone .phone-gap{ position:absolute; inset:0; }
.float-chip{
  position:absolute; left:var(--x); top:var(--y); z-index:3;
  padding:.5rem .85rem; border-radius:99px; font-size:.82rem; font-weight:500; white-space:nowrap;
  color:var(--ink); background:rgba(24,24,27,.62); border:1px solid rgba(255,255,255,.1);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  box-shadow:0 18px 40px -24px rgba(0,0,0,.9);
  animation:chipIn .9s cubic-bezier(.22,1,.36,1) backwards;
}
.float-chip:nth-of-type(2){ animation-delay:.15s; }
.float-chip:nth-of-type(3){ animation-delay:.3s; }
@keyframes chipIn{ from{ opacity:0; translate:0 14px; } }
.tour.is-calm .float-chip{ animation:none; }
.tour.no-3d .hero-phone{ display:none; }
@media (max-width:820px){
  .layout-hero{ grid-template-columns:1fr; grid-template-rows:auto 1fr; padding-block:4.6rem 2.4rem; gap:.4rem; text-align:center; }
  .hero-text .sub{ margin-inline:auto; font-size:.98rem; }
  .hero-text .eyebrow{ justify-content:center; margin-bottom:.6rem; }
  .hero-points{ display:none; }
  .hero-phone{ height:auto; min-height:52dvh; }
  .float-chip{ font-size:.72rem; padding:.4rem .7rem; }
  .float-chip:nth-of-type(1){ left:0; top:10%; }
  .float-chip:nth-of-type(2){ left:auto; right:0; top:46%; }
  .float-chip:nth-of-type(3){ display:none; }
}

/* performance: no live blur on top of the moving 3D layer; solid glass-coloured panels instead */
.tour .real-stats, .tour .service, .tour .tl-step, .tour .price-card, .tour .contact-card,
.tour .chip, .tour-nav, body.dark .nav .brand{
  backdrop-filter:none; -webkit-backdrop-filter:none;
}
.tour .real-stats, .tour .service, .tour .tl-step, .tour .price-card, .tour .contact-card{ background:rgba(19,19,21,.9); }
.tour-nav{ background:rgba(16,16,18,.94); }
body.dark .nav .brand{ background:rgba(19,19,21,.88); }

/* ---------- sub pages: dark space backdrop (stars in two depths and a soft glow top-right) ---------- */
.space-bg{ position:fixed; inset:0; z-index:0; pointer-events:none; overflow:hidden;
  background:
    radial-gradient(55% 45% at 88% 6%, rgba(220,224,232,.10), transparent 70%),
    radial-gradient(40% 35% at 8% 92%, rgba(140,140,150,.06), transparent 70%),
    linear-gradient(180deg, #0d0d0f 0%, #09090a 50%, #0b0b0d 100%);
}
.space-stars{ position:absolute; inset:-30% 0; will-change:transform;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.75) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(255,255,255,.45) 0 1px, transparent 1.6px);
  background-size:173px 157px, 241px 263px;
  background-position:0 0, 87px 131px;
  transform:translate3d(0, calc(var(--sy, 0) * -0.06px), 0);
}
.space-stars.far{ opacity:.5;
  background-size:97px 113px, 151px 139px;
  background-position:41px 23px, 13px 77px;
  transform:translate3d(0, calc(var(--sy, 0) * -0.025px), 0);
}
.space-glow{ position:absolute; right:-12vmax; top:-14vmax; width:46vmax; height:46vmax; border-radius:50%;
  background:radial-gradient(circle, rgba(255,255,255,.22) 0%, rgba(200,205,215,.08) 30%, transparent 65%);
  transform:translate3d(0, calc(var(--sy, 0) * -0.1px), 0);
  animation:glowPulse 9s ease-in-out infinite alternate;
}
@keyframes glowPulse{ to{ opacity:.7; scale:1.06; } }
@media (prefers-reduced-motion:reduce){ .space-glow{ animation:none; } }
body.dark main, body.dark footer{ position:relative; z-index:1; }
body.dark .page-hero::before{ display:none; }
/* sub-page panels as dark glass so the stars show around them */
body.dark:not(:has([data-tour])) .service, body.dark:not(:has([data-tour])) .tier,
body.dark:not(:has([data-tour])) .case, body.dark:not(:has([data-tour])) .value,
body.dark:not(:has([data-tour])) .detail-card, body.dark:not(:has([data-tour])) .price-card,
body.dark:not(:has([data-tour])) .contact-card, body.dark:not(:has([data-tour])) .endmenu-grid a{
  background:rgba(21,21,24,.82); border-color:rgba(255,255,255,.08);
}

/* Lenis smooth scrolling (from the library's own stylesheet) */
html.lenis, html.lenis body{ height:auto; }
.lenis.lenis-smooth{ scroll-behavior:auto !important; }
.lenis.lenis-smooth [data-lenis-prevent]{ overscroll-behavior:contain; }
.lenis.lenis-stopped{ overflow:hidden; }
.lenis.lenis-smooth iframe{ pointer-events:none; }

/* =========================================================================
   Light theme "Moln och persimon" (chosen 2026-10-23)
   ========================================================================= */
/* theme "Moln och persimon": Pantone's 2026 Cloud Dancer as the page, near-black ink, one persimmon accent.
   Every page except the 3D start page uses it (body class "cloud"); the shared rules below read these tokens. */
body.cloud{
  --paper:#F0EEE9; --panel:#FFFFFF; --ink:#161514; --ink-soft:#57534C; --ink-faint:#6E6A62;
  --line:#DEDAD1; --accent:#161514; --accent-ink:#F0EEE9; --accent-soft:#E6E2D9;
  --shadow:rgba(22,21,20,.06); --shadow-strong:rgba(22,21,20,.14);
  /* persimmon: --pers for shapes and big text, --pers-ink where it must be readable as small text */
  --pers:#E2573A; --pers-ink:#B53D22;
  background:var(--paper); color:var(--ink); color-scheme:light;
}

/* ---------- backdrop (in the spirit of Linear and Vercel): light from above and
   two slow warm glows (persimmon and sand). It is fixed and only moves with transforms, so it costs nothing while scrolling. ---------- */
.l-backdrop{ position:fixed; inset:0; z-index:0; pointer-events:none; overflow:hidden; }
.l-beam{
  position:absolute; left:50%; top:-35vh; width:130vw; height:100vh; translate:-50% 0;
  background:radial-gradient(ellipse 50% 60% at 50% 0%, rgba(255,255,255,.85), rgba(255,255,255,.25) 45%, transparent 72%);
}
.l-aura{ position:absolute; width:60vmax; height:60vmax; border-radius:50%; will-change:transform; }
.l-aura.a1{ left:-22vmax; top:10vh; background:radial-gradient(circle, rgba(232,93,63,.15), transparent 62%); animation:aura1 26s ease-in-out infinite alternate; }
.l-aura.a2{ right:-24vmax; bottom:-20vmax; background:radial-gradient(circle, rgba(194,165,140,.28), transparent 62%); animation:aura2 32s ease-in-out infinite alternate; }
@keyframes aura1{ to{ transform:translate3d(14vmax, 12vh, 0) scale(1.15); } }
@keyframes aura2{ to{ transform:translate3d(-12vmax, -16vh, 0) scale(1.1); } }

/* the backdrop is injected by site.js on every "cloud" page (index.html has it in its HTML) */
.cloud main, .cloud footer{ position:relative; z-index:1; }
.cloud .page-hero::before{ display:none; }
.cloud .nav .brand{ background:rgba(255,255,255,.75); border:1px solid var(--line); color:var(--ink);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); }
.cloud .endmenu-grid .arrow{ color:var(--pers); }
.cloud .price-perks svg, .cloud .perk svg{ color:var(--pers); }
.cloud .btn-primary:hover{ background:var(--pers-ink); color:#fff; }
.cloud .cookie-bar .btn-primary:hover{ background:var(--pers-ink); }
/* the film popup stays a dark card; only its tag follows the persimmon accent */
.cloud .jo-news-tag{ color:#B8B3A9; }
.cloud .jo-news-tag::before{ background:var(--pers); }
/* the page you are on is tinted in the end menu; its number keeps enough contrast on the tint */
.cloud .endmenu-grid a[aria-current="page"] .num{ color:var(--ink-soft); }

/* ---------- rhythm: every other section sits on a warm sand band, so long pages never look empty.
   The sand lives on a layer behind the content that fades out at top and bottom, so there are no hard edges. ---------- */
.cloud .band{
  --ink-faint:#5F5B54; --pers:#CF4E31; /* a shade deeper so big persimmon text keeps its contrast on sand */
  isolation:isolate;
}
.cloud .band::before{
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:
    radial-gradient(55% 70% at 100% 35%, rgba(226,87,58,.08), transparent 60%),
    radial-gradient(45% 70% at 0% 65%, rgba(194,165,140,.22), transparent 60%),
    #E9E3D7;
  -webkit-mask-image:linear-gradient(180deg, transparent 0, #000 28%, #000 72%, transparent 100%);
  mask-image:linear-gradient(180deg, transparent 0, #000 28%, #000 72%, transparent 100%);
}
/* the bands already separate sections, so the thin divider lines go */
.cloud .hr{ display:none; }

/* ---------- three steps in one panel, joined by arrows (contact page) ---------- */
.flow-steps{
  list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(3, minmax(0, 1fr));
  background:var(--panel); border:1px solid var(--line); border-radius:22px;
  box-shadow:0 30px 60px -40px var(--shadow-strong);
}
.flow-steps li{ position:relative; padding:2.1rem 1.9rem 2.3rem; }
.flow-steps li + li{ border-left:1px solid var(--line); }
/* a small arrow sitting on the divider, pointing at the next step */
.flow-steps li:not(:last-child)::after{
  content:"→"; position:absolute; z-index:1; right:-1rem; top:2.2rem;
  width:2rem; height:2rem; border-radius:50%; display:grid; place-items:center;
  background:var(--paper); border:1px solid var(--line); color:var(--pers-ink); font-size:.95rem;
}
.flow-num{ display:inline-grid; place-items:center; width:2.6rem; height:2.6rem; border-radius:50%; background:var(--pers-ink); color:#fff; font-weight:600; }
.flow-steps h3{ margin:1.1rem 0 .45rem; font-size:1.25rem; }
.flow-steps p{ margin:0; color:var(--ink-soft); line-height:1.6; }
@media (max-width:760px){
  .flow-steps{ grid-template-columns:1fr; }
  .flow-steps li + li{ border-left:0; border-top:1px solid var(--line); }
  .flow-steps li:not(:last-child)::after{ content:"↓"; right:auto; left:1.9rem; top:auto; bottom:-1rem; }
}

/* =========================================================================
   Polish pass (2026-10-23), light theme only
   ========================================================================= */

/* ---------- top bar: a plain bar in the page colour instead of a floating pill over the text ---------- */
.cloud .nav{
  pointer-events:auto;
  background:rgba(240,238,233,.96);
  transition:transform .35s cubic-bezier(.22,1,.36,1), box-shadow .3s ease;
}
.cloud .nav.is-scrolled{ box-shadow:0 1px 0 rgba(22,21,20,.06), 0 12px 24px -20px rgba(22,21,20,.25); }
.cloud .nav.is-hidden{ transform:translateY(-100%); }
.cloud .nav .wrap{ padding-top:.75rem; padding-bottom:.75rem; }
.cloud .nav .brand{ padding:0; background:none; border:0; border-radius:0; backdrop-filter:none; -webkit-backdrop-filter:none; }
@media (prefers-reduced-motion:reduce){ .cloud .nav{ transition:none; } }

/* ---------- type: two faces (Space Grotesk for headings and big numbers, Geist for text) and six sizes ---------- */
body.cloud{
  --fs-small:.875rem;                         /* 14px: notes, meta, footer */
  --fs-body:1.0625rem;                        /* 17px: running text */
  --fs-lead:1.1875rem;                        /* 19px: the sentence under a headline */
  --fs-h3:1.5rem;                             /* 24px: card and step titles */
  --fs-h2:clamp(2rem, 3.2vw, 3.25rem);        /* section headlines */
  --fs-display:clamp(2.3rem, 4.6vw, 4.75rem); /* the start headline and the biggest number */
  font-size:var(--fs-body);
}
/* no code-style type anywhere: dates, prices and labels use the text face with even-width figures */
.cloud .mono, .cloud code, .cloud .case-tag, .cloud .tier-badge, .cloud .chip, .cloud .case-meta,
.cloud .post-format, .cloud .period-opt em, .cloud .legal .updated, .cloud .endmenu-grid .num,
.cloud .detail-card .detail-body p strong, .cloud .footer-col h3, .cloud .contact-mail code{
  font-family:'Geist', -apple-system, 'Segoe UI', sans-serif; font-variant-numeric:tabular-nums; letter-spacing:0;
}
.cloud .contact-mail code{ background:none; padding:0; font-size:inherit; color:var(--ink); }
.cloud .section-head h2, .cloud .contact-card h2{ font-size:var(--fs-h2); }
.cloud .section-head .sub, .cloud .page-hero .sub, .cloud .contact-card .sub{ font-size:var(--fs-lead); }
.cloud .service p, .cloud .tl-step p, .cloud .perk, .cloud .flow-steps p, .cloud .value p,
.cloud .detail-card p, .cloud .tier p, .cloud .case p, .cloud .legal p, .cloud .legal li{ font-size:var(--fs-body); }
.cloud .service h3, .cloud .tl-step h3, .cloud .flow-steps h3, .cloud .value h3{ font-size:var(--fs-h3); }
.cloud .footer-tagline, .cloud .footer-links a, .cloud .footer-bottom, .cloud .footer-legal a,
.cloud .contact-mail, .cloud .case-tag, .cloud .chip, .cloud .tier-badge, .cloud .post-head, .cloud .post-foot{ font-size:var(--fs-small); }
/* footer column titles: plain sentence case instead of tiny spaced capitals */
.cloud .footer-col h3{ text-transform:none; font-size:var(--fs-small); font-weight:600; color:var(--ink); }

/* ---------- a contact block that closes the page: full width, big headline, a big button ---------- */
.cloud .contact-card{ width:100%; max-width:none; padding:clamp(2.2rem, 5vw, 4.5rem); border-radius:28px; }
.cloud .contact-card h2{ max-width:30ch; line-height:1.04; }
.cloud .contact-card .sub{ max-width:48ch; }
.cloud .contact-actions{ margin-top:2.2rem; gap:1rem 1.4rem; }
.cloud .contact-actions .btn-primary{ font-size:1.0625rem; padding:1.05rem 1.9rem; }

/* ---------- end menu: six big links instead of six numbered cards ---------- */
.cloud .endmenu .section-head{ text-align:left; margin-inline:0; }
.cloud .endmenu .section-head .eyebrow{ display:none; }
.cloud .endmenu-grid{ gap:.4rem 2.5rem; }
.cloud .endmenu-grid .num{ display:none; }
.cloud .endmenu-grid a{
  grid-template-columns:1fr auto; min-height:0; padding:1.1rem 1rem; margin-inline:-1rem;
  background:transparent; border:0; border-radius:16px; box-shadow:none;
  transition:background-color .2s ease;
}
.cloud .endmenu-grid strong{ font-size:clamp(1.6rem, 2.4vw, 2.3rem); letter-spacing:-.02em; }
.cloud .endmenu-grid small{ font-size:var(--fs-body); }
.cloud .endmenu-grid a[aria-current="page"]{ background:rgba(22,21,20,.05); }
@media (hover:hover) and (pointer:fine){
  .cloud .endmenu-grid a:hover{ background:rgba(255,255,255,.7); transform:none; }
  .cloud .endmenu-grid a:hover .arrow{ transform:translateX(4px); }
}

/* ---------- footer: the name returns big at the bottom ---------- */
.footer-mark{
  margin:2.5rem 0 0; font-family:'Space Grotesk', 'Geist', sans-serif; font-weight:600;
  /* sized so the whole name fits on one line at every width (22 characters, about half an em each) */
  font-size:clamp(1.9rem, 6.6vw, 5.75rem); line-height:.95; letter-spacing:-.045em; color:var(--ink);
  white-space:nowrap;
}

/* ---------- images get a faint inner edge so light photos do not melt into the cream page ---------- */
.cloud main img{ outline:1px solid rgba(22,21,20,.08); outline-offset:-1px; }
.cloud .iphone img, .cloud .ig-avatar{ outline:0; }

/* ---------- sub-page heroes: text on the left, a real picture of our work on the right ---------- */
.page-hero.has-visual{ padding-bottom:3rem; }
.page-hero.has-visual .wrap{
  max-width:var(--maxw); display:grid; grid-template-columns:minmax(0, 1.1fr) minmax(0, .9fr);
  align-items:center; gap:clamp(2rem, 5vw, 5rem);
}
.page-hero.has-visual h1{ font-size:var(--fs-display, clamp(2.3rem, 4.6vw, 4.75rem)); line-height:1.02; letter-spacing:-.035em; }
.ph-text{ min-width:0; }
.ph-visual{ width:min(100%, 27rem); justify-self:center; }
/* the three tilted pictures: a little more air and a softer shadow on the cream page */
.page-hero .hero-stack img{ border-radius:18px; }
.page-hero .hero-stack .s3{ border:6px solid var(--panel); }

/* Om oss: the film's poster, which opens the film */
.ph-film{ position:relative; display:block; border-radius:24px; overflow:hidden; text-decoration:none; color:#fff;
  box-shadow:0 40px 70px -40px var(--shadow-strong); }
.ph-film img{ display:block; width:100%; height:auto; aspect-ratio:1; object-fit:cover; transition:transform .6s cubic-bezier(.22,1,.36,1); }
.ph-play{ position:absolute; left:50%; top:50%; translate:-50% -50%; width:4.5rem; height:4.5rem; border-radius:50%;
  display:grid; place-items:center; background:var(--pers, #E2573A); color:#fff; transition:transform .25s cubic-bezier(.22,1,.36,1); }
.ph-play svg{ width:1.6rem; height:1.6rem; margin-left:.2rem; }
.ph-film-cap{ position:absolute; left:1rem; bottom:1rem; padding:.45rem .85rem; border-radius:99px; background:rgba(22,21,20,.72); font-size:.875rem; font-weight:500; }
@media (hover:hover) and (pointer:fine){
  .ph-film:hover img{ transform:scale(1.03); }
  .ph-film:hover .ph-play{ transform:scale(1.08); }
}
.ph-film:active .ph-play{ transform:scale(.96); }
.ph-film:focus-visible{ outline:3px solid var(--pers, #E2573A); outline-offset:4px; }

/* Paket: the starting price as a block of its own */
.ph-price{ background:var(--panel); border-radius:28px; padding:clamp(1.8rem, 3vw, 2.6rem); box-shadow:0 40px 70px -45px var(--shadow-strong); }
.ph-price-from{ color:var(--ink-soft); font-size:var(--fs-small, .875rem); }
.ph-price-amount{ margin-top:.2rem !important; font-family:'Space Grotesk', 'Geist', sans-serif; font-weight:600; letter-spacing:-.04em;
  font-size:clamp(3.2rem, 6vw, 5.5rem); line-height:1; color:var(--pers-ink, #B53D22); font-variant-numeric:tabular-nums; }
.ph-price-amount span{ font-size:.32em; letter-spacing:0; color:var(--ink-soft); margin-left:.25rem; }
.ph-price ul{ list-style:none; margin:1.6rem 0 0; padding:0; display:grid; gap:.6rem; }
.ph-price li{ display:flex; gap:.6rem; align-items:baseline; font-size:var(--fs-body, 1.0625rem); }
.ph-price li::before{ content:"✓"; color:var(--pers-ink, #B53D22); font-weight:700; }

/* Kontakt: how fast we answer, set big */
.ph-big{ text-align:left; }
.ph-big-num{ font-family:'Space Grotesk', 'Geist', sans-serif; font-weight:600; letter-spacing:-.06em; line-height:.85;
  font-size:clamp(7rem, 16vw, 14rem); color:var(--pers-ink, #B53D22); }
.ph-big-num span{ font-size:.3em; letter-spacing:-.02em; color:var(--ink); }
.ph-big-sub{ margin-top:1rem !important; max-width:24ch; color:var(--ink-soft); font-size:var(--fs-lead, 1.1875rem); line-height:1.45; }

@media (max-width:860px){
  .page-hero.has-visual .wrap{ grid-template-columns:1fr; gap:2.2rem; }
  .ph-visual{ width:min(100%, 21rem); justify-self:start; }
  .ph-big-num{ font-size:clamp(5.5rem, 26vw, 8rem); }
}
@media (prefers-reduced-motion:reduce){ .ph-film img, .ph-play{ transition:none; } }
