/*
 * Naxdor concept template "Hantverk", design "Signal" (founder's choice 2026-10-26 for el, VVS and tak). Built to
 * the founder's Framer reference Turns Roof and measured against it at 1920, 1440, 834 and 390 px: a cream page
 * (#fefbf2) with navy (#052754) and signal yellow (#f2dd50); Sora 500 for headings (an 80 px headline at 0.9 line
 * height, 52 px section headings, 32 px card titles, all at -0.04em), Geist for text and the 48 px pill buttons with
 * a round icon, IBM Plex Sans Condensed for the closing call; thin dashed yellow lines, 8 px corners, a 1400 px
 * column with 60 px sides, and 250 px above and below the big sections.
 * Founder's round 2026-10-26: the first screen fills the window with the headline, both buttons and a photo under
 * them; a promise section in a deeper cream follows; a label with an icon over every heading; the header stays at
 * the top (it shrinks and floats once you scroll); the questions sit on navy.
 * Per page, <html> sets --navy (a dark shade of the company's own colour when it has one). Fonts: Sora, Geist and
 * IBM Plex Sans Condensed, SIL Open Font License, self-hosted. No scripts: the floating header and the service cards
 * that slide sideways run on scroll-driven CSS. Without it, or with reduced motion, the header stays compact and the
 * cards scroll sideways instead.
 */
@font-face { font-family: "Sora"; font-weight: 500 600; font-style: normal; font-display: swap; src: url("fonts/sora-latin.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 400 600; font-style: normal; font-display: swap; src: url("fonts/geist-latin.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Condensed"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/plex-condensed-latin-500.woff2") format("woff2"); }

:root {
  --cream: #fefbf2;
  --cream-deep: #f7f0dc;
  --navy: #052754;
  --yellow: #f2dd50;
  --dash: #f2dd50;
  --dash-dark: rgb(242 221 80 / 0.5);
  --display: "Sora", "Geist", system-ui, sans-serif;
  --text: "Geist", system-ui, sans-serif;
  --condensed: "IBM Plex Sans Condensed", "Sora", system-ui, sans-serif;
  --pad: 60px;
  --sec: 250px;
  --h2: 52px;
  --h3: 32px;
  /* The space on each side of the dashed line between the steps and the tips, both on cream (founder 2026-10-26) */
  --seam: 200px;
  /* The notice bar (measured per page kind and width) and the header, so the first screen fills the window */
  --bar-h: 56px;
  --head-h: 80px;
  --head-small: 80px;
  color-scheme: light;
}
.is-example { --bar-h: 37px; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--navy); font: 400 16px/1.25 var(--text); letter-spacing: 0.01em; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 500; letter-spacing: -0.04em; text-wrap: balance; }
/* The packs mark a phrase with *stars* for Nordisk's italic; here it reads as one line. */
h1 em, h2 em, h3 em { font-style: normal; }
h2 { font-size: var(--h2); line-height: 1.1; }
h3 { font-size: var(--h3); line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
ul, ol { list-style: none; margin: 0; padding: 0; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.s-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.s-wrap { width: min(1400px, 100% - 2 * var(--pad)); margin-inline: auto; }
section[id], footer[id] { scroll-margin-top: calc(var(--head-small) + 12px); }

/* Concept or example notice (leadmart docs/legal/texter-sv.md § D2 and § I1) */
.concept-bar { background: var(--navy); color: rgb(254 251 242 / 0.86); font: 400 13px/1.45 var(--text); letter-spacing: 0.01em; padding-block: 9px; }
.concept-bar .wrap { width: min(1400px, 100% - 2 * var(--pad)); margin-inline: auto; }

/* Labels over headings: a yellow circle with an icon, then the text */
.s-label { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font: 600 14px/1.3 var(--text); letter-spacing: 0.02em; }
.s-label-ico { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); color: var(--navy); }
.s-label-ico .ico { width: 14px; height: 14px; stroke-width: 2; }

/* Buttons: a pill with the text and a round icon to the right */
.s-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 8px 8px 18px; border-radius: 30px; font: 600 20px/1.2 var(--text); letter-spacing: 0.01em; text-decoration: none; white-space: nowrap; transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease; }
.s-btn-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; transition: background-color 0.25s ease, color 0.25s ease, rotate 0.3s ease; }
.s-btn-ico .ico { width: 16px; height: 16px; stroke-width: 2; }
.s-btn-yellow { background: var(--yellow); color: var(--navy); }
.s-btn-yellow .s-btn-ico, .s-btn-cream .s-btn-ico { background: var(--navy); color: var(--yellow); }
.s-btn-navy { background: var(--navy); color: var(--cream); }
.s-btn-navy .s-btn-ico { background: var(--yellow); color: var(--navy); }
.s-btn-cream { background: var(--cream); color: var(--navy); }
.s-btn-line { box-shadow: inset 0 0 0 1px rgb(5 39 84 / 0.28); }
.s-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Header: the name, the menu with dashed dividers in the middle, a yellow pill. It stays at the top. */
.s-top { position: sticky; top: 0; z-index: 20; background: var(--cream); box-shadow: 0 1px 0 rgb(5 39 84 / 0.07); }
.s-top-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(1400px, 100% - 40px); min-height: var(--head-h); margin-inline: auto; padding-block: 10px; }
.s-mark { display: inline-flex; align-items: center; gap: 12px; margin: 0; padding-left: 15px; font: 600 26px/1.1 var(--display); letter-spacing: -0.045em; text-decoration: none; }
.s-mark-ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--yellow); }
.s-mark-ico .ico { width: 22px; height: 22px; stroke-width: 2; }
.s-nav { display: flex; align-items: center; font: 400 19px/1.2 var(--text); letter-spacing: 0.01em; }
.s-nav a { position: relative; text-decoration: none; white-space: nowrap; }
.s-nav a + a { margin-left: 51px; }
.s-nav a + a::before { content: ""; position: absolute; left: -26px; top: 50%; height: 20px; translate: 0 -50%; border-left: 1px dashed var(--dash); }
.s-menu { display: none; position: relative; }
.s-menu summary { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; list-style: none; }
.s-menu summary::-webkit-details-marker { display: none; }
.s-burger { display: grid; gap: 5px; width: 22px; }
.s-burger i { display: block; height: 2px; border-radius: 1px; background: currentColor; }
.s-menu nav { position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; display: grid; min-width: 240px; padding: 8px; border: 1px dashed var(--dash); border-radius: 8px; background: var(--cream); box-shadow: 0 18px 40px -20px rgb(5 39 84 / 0.4); }
.s-menu nav a { padding: 12px 14px; border-radius: 6px; font: 400 18px/1.2 var(--text); text-decoration: none; }

/* First screen, filling the window: the promise in large type with the buttons under it, the trade and the
   pack's text floated to the right, and the wide photo taking the rest of the height */
.s-hero { display: flex; flex-direction: column; min-height: calc(100vh - var(--bar-h) - var(--head-h)); min-height: calc(100svh - var(--bar-h) - var(--head-h)); }
.s-hero-in { width: min(1380px, 100% - 2 * var(--pad)); margin-inline: auto; padding-block: 64px 56px; }
.s-hero-in::after { content: ""; display: block; clear: both; }
.s-hero-side { float: right; width: 300px; margin: 4px 0 24px 56px; }
.s-hero-side .s-label { margin-bottom: 14px; }
.s-hero-lead { font-size: 16px; line-height: 1.3; }
.s-hero h1 { font-size: 80px; line-height: 0.9; text-wrap: wrap; }
.s-hero-actions { justify-content: flex-start; margin-top: 40px; }
.s-band { display: flex; flex: 1 0 auto; width: min(1500px, 100%); min-height: 200px; margin-inline: auto; }
/* Short laptop windows (768 px tall): less air around the headline, so the photo still fits the first screen */
@media (max-height: 820px) and (min-width: 810px) { .s-hero-in { padding-block: 40px 36px; } }
.s-band-in { position: relative; flex: 1; overflow: hidden; background: #2d6db5; }
.s-band-in img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; }

/* The promise: a deeper cream, the pack's headline and about text, the four points in a dashed grid */
.s-promise { padding-block: 160px; background: var(--cream-deep); }
.s-promise-head h2 { max-width: 752px; }
.s-promise-head p { max-width: 420px; margin-top: 28px; font-size: 16px; line-height: 1.35; letter-spacing: 0.02em; }
.s-points { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 950px; margin: 80px 0 0 auto; }
.s-points li { padding: 34px 40px 34px 0; }
.s-points li:nth-child(even) { padding-left: 40px; border-left: 1px dashed var(--dash); }
.s-points li:nth-child(n + 3) { border-top: 1px dashed var(--dash); }
.s-point-ico { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 22px; border-radius: 50%; background: var(--yellow); color: var(--navy); }
.s-point-ico .ico { width: 20px; height: 20px; stroke-width: 1.8; }
.s-points p { margin-top: 12px; font-size: 15px; line-height: 1.3; letter-spacing: 0.02em; }

/* Services: cards in a row; with scroll-driven CSS the section holds still while they slide past. The card sizes
   live here, so a shorter window can shrink the photos (Turns Roof's card: 600 px around a 504 x 450 photo). */
.s-svc {
  position: relative;
  --img-h: 450px;
  --card-pad: 48px;
  --card-gap: 33px;
  --card-w: calc(var(--img-h) * 1.12 + 2 * var(--card-pad));
  --inset: max(160px, calc((100vw - 1400px) / 2 + 140px));
}
.s-svc-pin { display: flex; flex-direction: column; justify-content: center; gap: 37px; padding-block: 150px; }
.s-svc-head { width: min(1400px, 100% - 2 * var(--pad)); margin-inline: auto; text-align: center; }
.s-svc-head .s-label { justify-content: center; margin-bottom: 12px; }
.s-svc-head h2 { max-width: 13em; margin-inline: auto; }
.s-svc-head p:not(.s-label) { margin-top: 12px; font-size: 16px; }
.s-svc-view { container-type: inline-size; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.s-svc-view::-webkit-scrollbar { display: none; }
.s-track { display: flex; gap: var(--card-gap); width: max-content; padding: 12px var(--inset); }
.s-card { display: flex; flex-direction: column; align-items: center; gap: 20px; width: var(--card-w); padding: var(--card-pad); border: 1px dashed var(--dash); border-radius: 8px; background: var(--cream); text-align: center; scroll-snap-align: center; }
.s-card figure { width: 100%; height: var(--img-h); overflow: hidden; border-radius: 8px; background: #d9e3ec; }
.s-card img { width: 100%; height: 100%; object-fit: cover; }
.s-card p { max-width: 25em; margin-top: -8px; font-size: 15px; line-height: 1.3; letter-spacing: 0.02em; }

/* The yellow call: the pack's contact heading and a button, a small photo to the right */
.s-call { padding-block: 120px 80px; background: var(--yellow); }
.s-call-in { display: flex; justify-content: space-between; gap: 90px; }
.s-call-text { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 60px; padding-bottom: 20px; }
.s-call h2 { max-width: 12em; }
.s-call-photo { flex: none; width: 305px; height: 295px; overflow: hidden; border-radius: 8px; background: #2d6db5; }
.s-call-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Steps: the heading, then two columns on a dashed line: 1 and 2 on the left, 3 and 4 on the right */
.s-steps { padding-block: var(--sec) var(--seam); }
.s-steps-head { margin-bottom: 16px; }
.s-steps-head h2 { max-width: 14em; }
.s-steps-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.s-steps-grid::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px dashed var(--dash); }
.s-step { max-width: 500px; padding: 48px 48px 48px 0; border-bottom: 1px dashed var(--dash); }
.s-step-1 { grid-column: 1; grid-row: 1; }
.s-step-2 { grid-column: 1; grid-row: 2; }
.s-step-3 { grid-column: 2; grid-row: 1; }
.s-step-4 { grid-column: 2; grid-row: 2; }
.s-steps-end { grid-column: 2; grid-row: 3; padding-top: 48px; }
.s-step-3, .s-step-4, .s-steps-end { margin-left: 161px; }
.s-step-top { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.s-step-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--yellow); }
.s-step-ico .ico { width: 20px; height: 20px; stroke-width: 1.8; }
.s-step-n { font: 600 14px/1 var(--text); letter-spacing: 0.06em; }
.s-step p:not(.s-step-top) { max-width: 452px; margin-top: 20px; font-size: 15px; line-height: 1.3; letter-spacing: 0.02em; }
.s-checks { display: grid; gap: 12px; margin-bottom: 30px; font-size: 16px; }
.s-checks li { display: flex; align-items: center; gap: 10px; }
.s-checks .ico { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--yellow); stroke-width: 2.2; }

/* Tips: three dashed cards (where Turns Roof has its reviews) */
.s-tips { padding-block: 0 var(--sec); }
.s-tips > .s-wrap { padding-top: var(--seam); border-top: 1px dashed var(--dash); }
.s-tips-head p:not(.s-label) { max-width: 520px; margin-top: 12px; font-size: 16px; }
.s-tip-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 38px; margin-top: 62px; }
.s-tip-list li { padding: 40px; border: 1px dashed var(--dash); border-radius: 16px; }
.s-tip-ico { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 28px; border-radius: 50%; background: var(--yellow); }
.s-tip-ico .ico { width: 20px; height: 20px; stroke-width: 1.8; }
.s-tip-list p { margin-top: 16px; font-size: 16px; line-height: 1.4; }

/* Questions on navy (Turns Roof's dark band): the head on the left, the answers on dashed lines; one open at a time */
.s-faq { padding-block: var(--sec); background: var(--navy); color: var(--cream); }
.s-faq-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 660px); gap: 48px 80px; align-items: start; }
.s-faq-head h2 { max-width: 8em; }
.s-faq-head p:not(.s-label) { max-width: 30em; margin-top: 20px; font-size: 16px; color: rgb(254 251 242 / 0.9); }
.s-faq-head .s-btn { margin-top: 32px; }
.s-faq-list { border-top: 1px dashed var(--dash-dark); }
.s-faq-list details { border-bottom: 1px dashed var(--dash-dark); }
.s-faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; cursor: pointer; list-style: none; font: 500 24px/1.25 var(--display); letter-spacing: -0.035em; }
.s-faq-list summary::-webkit-details-marker { display: none; }
/* A plus in a yellow circle that turns into a cross when the answer is open */
.s-faq-plus { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); transition: rotate 0.3s ease, background-color 0.25s ease; }
.s-faq-plus::before, .s-faq-plus::after { content: ""; position: absolute; left: 10px; top: 15px; width: 12px; height: 2px; border-radius: 1px; background: var(--navy); }
.s-faq-plus::after { rotate: 90deg; }
.s-faq-list details[open] .s-faq-plus { rotate: 45deg; }
.s-faq-list details p { max-width: 34em; padding: 0 56px 28px 0; font-size: 16px; line-height: 1.4; color: rgb(254 251 242 / 0.9); }

/* Footer: the closing call on yellow, then the navy card with the contact details */
.s-foot { padding: 150px 20px 30px; background: var(--yellow); }
.s-foot-call { display: grid; justify-items: center; gap: 20px; max-width: 600px; margin: 0 auto 160px; text-align: center; }
.s-foot-call h2 { font: 500 75px/1 var(--condensed); letter-spacing: -0.03em; }
.s-foot-call p { font-size: 16px; line-height: 1.3; }
.s-foot-call .s-actions { margin-top: 8px; }
.s-foot-card { width: min(1400px, 100%); margin-inline: auto; padding: 30px; border-radius: 8px; background: var(--navy); color: var(--cream); }
.s-foot-grid { display: grid; grid-template-columns: minmax(0, 540px) minmax(0, 1fr); gap: 60px 120px; padding: 40px 45px 0 65px; }
.s-foot .s-mark { padding: 0; font-size: 34px; }
.s-foot .s-mark-ico { width: 56px; height: 56px; background: var(--yellow); color: var(--navy); }
.s-foot .s-mark-ico .ico { width: 26px; height: 26px; }
.s-social { display: flex; gap: 10px; margin-top: 32px; }
.s-social li { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--cream); color: var(--navy); }
.s-social .ico { width: 18px; height: 18px; }
.s-foot-title { max-width: 460px; font: 500 var(--h2)/1.1 var(--display); letter-spacing: -0.04em; text-wrap: balance; }
.s-foot-phone { display: inline-flex; align-items: center; gap: 14px; margin-top: 56px; font: 500 var(--h3)/1.2 var(--display); letter-spacing: -0.04em; text-decoration: none; }
.s-foot-phone .ico { width: 36px; height: 36px; stroke-width: 1.8; }
.s-foot-rows { margin-top: 64px; }
.s-foot-rows li { border-bottom: 1px dashed var(--dash); }
.s-foot-rows li, .s-foot-rows a { display: flex; align-items: center; gap: 14px; min-height: 76px; padding-block: 12px; font-size: 16px; line-height: 1.35; text-decoration: none; }
.s-foot-rows a { width: 100%; }
.s-row-ico { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--cream); color: var(--navy); }
.s-row-ico .ico { width: 17px; height: 17px; stroke-width: 1.9; }
.s-row-go { display: grid; place-items: center; width: 22px; height: 22px; margin-left: auto; border-radius: 50%; background: var(--cream); color: var(--navy); }
.s-row-go .ico { width: 13px; height: 13px; stroke-width: 2.2; }
.s-foot-links { margin-top: 60px; padding-top: 56px; border-top: 1px dashed rgb(254 251 242 / 0.8); }
.s-foot-links h3 { color: var(--yellow); }
.s-foot-links ul { display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 60px; margin-top: 26px; font-size: 15px; letter-spacing: 0.02em; }
.s-foot-links a { text-decoration: none; }
.s-foot-base { display: grid; justify-items: center; gap: 6px; margin-top: 110px; padding-bottom: 6px; text-align: center; }
.s-foot-base small { font-size: 14px; letter-spacing: 0.02em; }

/* Back to top and the phone call bar */
.to-top { position: fixed; right: max(20px, env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 15; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--yellow); box-shadow: 0 0 0 2px var(--cream), 0 14px 30px -14px rgb(5 39 84 / 0.6); transition: transform 0.25s ease; }
.to-top .ico { width: 19px; height: 19px; stroke-width: 2; }
@supports (animation-timeline: scroll()) {
  .to-top { animation: s-to-top linear both; animation-timeline: scroll(root); animation-range: 500px 760px; }
}
@keyframes s-to-top { from { opacity: 0; translate: 0 18px; visibility: hidden; } to { opacity: 1; translate: 0 0; visibility: visible; } }
.actionbar { display: none; }

/* Scroll-driven motion (Chrome, Edge, Safari 26): the header starts at Turns Roof's 116 px and shrinks to a
   floating bar; the service cards slide while the section holds still under it */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* The photos shrink on shorter windows so the heading and a whole card fit below the header. */
    .s-svc {
      --img-h: clamp(220px, calc(100svh - 490px), 450px);
      --card-pad: 36px;
      height: calc(100vh - var(--head-small) + var(--n) * var(--card-w) + (var(--n) - 1) * var(--card-gap) + 2 * var(--inset) - 100vw);
      view-timeline: --s-svc block;
    }
    .s-svc-pin { position: sticky; top: var(--head-small); height: calc(100vh - var(--head-small)); height: calc(100svh - var(--head-small)); padding-block: 24px; gap: 24px; }
    .s-svc-view { overflow: hidden; scroll-snap-type: none; }
    .s-card { gap: 16px; }
    .s-track { animation: s-slide linear both; animation-timeline: --s-svc; animation-range: contain 0% contain 100%; }
  }
}
@keyframes s-slide { to { translate: calc(100cqw - 100%) 0; } }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 1024px) {
    :root { --head-h: 116px; }
    .s-top { box-shadow: none; animation: s-top-float linear both; animation-timeline: scroll(root); animation-range: 0px 140px; }
    .s-top-in { animation: s-top-shrink linear both; animation-timeline: scroll(root); animation-range: 0px 140px; }
  }
}
@keyframes s-top-float { to { box-shadow: 0 1px 0 rgb(5 39 84 / 0.08), 0 16px 32px -22px rgb(5 39 84 / 0.45); } }
@keyframes s-top-shrink { to { min-height: var(--head-small); } }

/* Motion: one calm entrance and sections that ease in; nothing moves under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .s-hero-side, .s-hero h1, .s-hero-actions { animation: s-up 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .s-hero-side { animation-delay: 0.12s; }
  .s-hero-actions { animation-delay: 0.2s; }
  .s-band-in img { animation: s-settle 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  @supports (animation-timeline: view()) {
    .s-promise-head, .s-points li, .s-call-in, .s-steps-head, .s-step, .s-steps-end, .s-tips-head, .s-tip-list li, .s-faq-head, .s-faq-list, .s-foot-call, .s-foot-card > * {
      animation: s-up linear both; animation-timeline: view(); animation-range: entry 0% entry 55%;
    }
  }
}
@keyframes s-up { from { opacity: 0; translate: 0 22px; } }
@keyframes s-settle { from { scale: 1.05; } }

/* Hover, for mouse and trackpad only */
@media (hover: hover) {
  .s-nav a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 7px; }
  .s-btn:hover { transform: translateY(-1px); }
  .s-btn:hover .s-btn-ico { rotate: 45deg; }
  .s-btn-yellow:hover, .s-btn-cream:hover { background: var(--navy); color: var(--cream); }
  .s-btn-yellow:hover .s-btn-ico, .s-btn-cream:hover .s-btn-ico { background: var(--yellow); color: var(--navy); }
  .s-btn-navy:hover { background: var(--yellow); color: var(--navy); }
  .s-btn-navy:hover .s-btn-ico { background: var(--navy); color: var(--yellow); }
  .s-faq .s-btn-yellow:hover { background: var(--cream); color: var(--navy); }
  .s-faq-list summary:hover .s-faq-plus { background: var(--cream); }
  .s-menu nav a:hover { background: rgb(242 221 80 / 0.35); }
  .s-foot-links a:hover, .s-foot-rows a:hover span:not([class]) { text-decoration: underline; text-underline-offset: 4px; }
  .to-top:hover { transform: translateY(-3px); }
}

/* Narrower laptops: the menu folds behind a button */
@media (max-width: 1199px) {
  :root { --pad: 30px; --sec: 200px; --h2: 45px; --h3: 26px; }
  .s-nav { display: none; }
  .s-top-cta { margin-left: auto; }
  .s-menu { display: block; }
  .s-hero h1 { font-size: 64px; }
  .s-foot-grid { padding-inline: 0; gap: 60px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .s-step-3, .s-step-4, .s-steps-end { margin-left: 80px; }
}

/* Tablets (Turns Roof at 834): the text under the headline, one column for the steps, cards centred */
@media (max-width: 1023px) {
  :root { --sec: 150px; --seam: 72px; }
  .s-svc { --inset: calc((100vw - var(--card-w)) / 2); }
  .s-hero-in { display: flex; flex-direction: column; padding-block: 56px 48px; }
  .s-hero-side { order: 2; float: none; width: auto; max-width: 542px; margin: 32px 0 0; }
  .s-hero-actions { order: 3; margin-top: 32px; }
  .s-hero-lead { font-size: 19px; }
  .s-hero h1 { font-size: 58px; }
  .s-promise { padding-block: 120px; }
  .s-call-in { flex-direction: column; align-items: center; gap: 59px; text-align: center; }
  .s-call-text { align-items: center; gap: 20px; }
  .s-call-photo { width: min(493px, 100%); height: auto; aspect-ratio: 493 / 526; }
  .s-steps-grid { grid-template-columns: minmax(0, 1fr); }
  .s-steps-grid::before { display: none; }
  .s-step-1, .s-step-2, .s-step-3, .s-step-4, .s-steps-end { grid-column: 1; grid-row: auto; margin-left: 0; }
  .s-step { max-width: none; }
  .s-step p:not(.s-step-top), .s-promise-head p, .s-points p { font-size: 17px; }
  .s-points { max-width: none; margin-top: 64px; }
  .s-tip-list { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .s-tip-list li { min-height: 0; }
  .s-faq-in { grid-template-columns: minmax(0, 1fr); }
  /* One centred column as in Turns Roof at 834: name, area, phone, contact rows, services */
  .s-foot-grid { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 30px 30px 0; text-align: center; }
  .s-foot-brand, .s-foot-reach { display: contents; }
  .s-foot .s-mark { order: 1; }
  .s-social { order: 2; }
  .s-foot-title { order: 3; margin-top: 64px; }
  .s-foot-phone { order: 4; margin-top: 36px; }
  .s-foot-rows { order: 5; align-self: stretch; margin-top: 56px; text-align: left; }
  .s-foot-links { order: 6; align-self: stretch; }
  .s-foot-links ul { justify-content: center; }
}
@media (max-width: 900px) { .is-example { --bar-h: 56px; } }
@media (min-width: 600px) and (max-width: 809px) { :root .signal { --bar-h: 51px; } }

/* Phones: a compact header; the headline, the text and both buttons fit above the call bar */
@media (max-width: 809px) {
  :root { --pad: 20px; --sec: 110px; --seam: 56px; --h2: 30px; --h3: 22px; --head-h: 64px; --head-small: 64px; --bar-h: 86px; }
  .is-example { --bar-h: 68px; }
  .s-svc { --img-h: 200px; --card-pad: 20px; --card-gap: 20px; }
  body { font-size: 15px; }
  .concept-bar { font-size: 12px; padding-block: 8px; }
  .s-top-in { width: calc(100% - 40px); padding-block: 8px; }
  .s-mark { padding-left: 0; font-size: 21px; gap: 10px; }
  .s-mark-ico { width: 38px; height: 38px; }
  .s-mark-ico .ico { width: 19px; height: 19px; }
  .s-top-cta { display: none; }
  .s-menu { margin-left: auto; }
  .s-hero-in { padding-block: 32px 28px; }
  .s-hero h1 { font-size: 42px; line-height: 0.98; text-wrap: balance; }
  .s-hero-side { margin-top: 20px; }
  .s-hero-side .s-label { margin-bottom: 10px; }
  .s-hero-lead { font-size: 16px; line-height: 1.3; }
  .s-hero-actions { margin-top: 22px; gap: 10px; }
  .s-band { min-height: 160px; }
  .s-promise { padding-block: 90px; }
  .s-svc-pin { padding-block: 90px 60px; gap: 24px; }
  .s-svc-head p:not(.s-label) { font-size: 15px; }
  .s-card { gap: 14px; }
  .s-card h3 { font-size: 22px; }
  .s-card p { font-size: 14.5px; }
  .s-btn { font-size: 16px; padding-left: 16px; }
  .s-call { padding-block: 80px 60px; }
  .s-call-photo { width: 100%; aspect-ratio: 305 / 265; }
  .s-step { padding: 36px 0; }
  .s-steps-head { margin-bottom: 0; }
  .s-step-ico { width: 40px; height: 40px; }
  .s-step p:not(.s-step-top), .s-promise-head p, .s-points p { font-size: 15.5px; }
  .s-promise { text-align: center; }
  .s-promise .s-label { justify-content: center; }
  .s-promise-head h2, .s-promise-head p { margin-inline: auto; }
  .s-promise-head p { margin-top: 20px; }
  .s-points { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
  .s-points li, .s-points li:nth-child(even) { padding: 28px 0; border-left: 0; }
  .s-points li + li { border-top: 1px dashed var(--dash); }
  .s-point-ico { margin: 0 auto 16px; }
  .s-tip-list { margin-top: 36px; }
  .s-tip-list li { padding: 28px; border-radius: 12px; }
  .s-tip-ico { margin-bottom: 24px; }
  .s-tip-list p { font-size: 15.5px; }
  .s-faq-list summary { font-size: 19px; padding: 20px 0; }
  .s-faq-list details p { padding-right: 0; font-size: 15.5px; }
  .s-foot { padding: 110px 0 0; }
  .s-foot-call { margin-bottom: 83px; padding-inline: 20px; }
  .s-foot-call h2 { font-size: 54px; }
  .s-foot-card { padding: 30px 30px 96px; border-radius: 8px 8px 0 0; }
  .s-foot .s-mark { font-size: 26px; }
  .s-foot .s-mark-ico { width: 46px; height: 46px; }
  .s-social { justify-content: center; margin-top: 22px; }
  .s-foot-grid { padding: 10px 0 0; }
  .s-foot-title { margin-top: 44px; }
  .s-foot-phone { margin-top: 26px; font-size: 24px; }
  .s-foot-phone .ico { width: 26px; height: 26px; }
  .s-foot-rows { margin-top: 40px; }
  .s-foot-rows li, .s-foot-rows a { min-height: 64px; font-size: 15px; }
  .s-foot-links { margin-top: 44px; padding-top: 40px; }
  .s-foot-links ul { gap: 10px 30px; }
  .s-foot-base { margin-top: 60px; }
  .to-top { right: 14px; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); width: 44px; height: 44px; }
  .actionbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: sticky; bottom: 0; z-index: 5;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    border-top: 1px dashed var(--dash); background: rgb(254 251 242 / 0.95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  }
  .actionbar .s-btn { justify-content: space-between; min-height: 48px; }
  .actionbar .s-btn-cream { box-shadow: inset 0 0 0 1px rgb(5 39 84 / 0.22); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  /* The back-to-top button still waits until you have scrolled; it fades in place instead of sliding. */
  @supports (animation-timeline: scroll()) {
    .to-top { animation: s-to-top-fade linear both !important; animation-timeline: scroll(root) !important; animation-range: 500px 760px !important; }
  }
  .s-btn:hover, .to-top:hover { transform: none; }
}
@keyframes s-to-top-fade { from { opacity: 0; visibility: hidden; } to { opacity: 1; visibility: visible; } }

/* naxdor.com: the example bar's height at each width, measured for this site's English bar text
   (2026-10-27). It overrides the values above, which were measured for naxdor.se's Swedish text,
   so the first screen still fills the window. `.signal.is-example` matches the specificity of the
   `:root .signal` rule above; 809px is where this design drops the bar to 12px. Re-apply after
   copying a newer signal.css. */
.signal.is-example { --bar-h: 37px; }
@media (max-width: 905.98px) { .signal.is-example { --bar-h: 56px; } }
@media (max-width: 809px) { .signal.is-example { --bar-h: 51px; } }
@media (max-width: 440.98px) { .signal.is-example { --bar-h: 68px; } }
@media (max-width: 335.98px) { .signal.is-example { --bar-h: 86px; } }
