/*
 * tetokivitelezes-2026: the ONE front-end stylesheet.
 *
 * Built from the homepage prototype Daniel approved on 29 Oct 2026 (direction 02 "A ház",
 * ../design/homepage): its styles are kept as they were approved, then the inner pages' bands,
 * the Contact Form 7 markup, and the motion system's styles (prototype motion.css).
 *
 *  1  tokens (brand + semantic, light and dark)
 *  2  base, type, buttons
 *  3  header, phone menu
 *  4  home: hero and the callout device, services, team, materials, process, work, FAQ, contact,
 *     closing photo
 *  5  footer, call bar
 *  6  inner pages: the page hero, the courses (scope), the tape (factors), the other jobs,
 *     the work wall, prose pages, the 404
 *  7  the form as Contact Form 7 prints it
 *  8  motion
 *  9  responsive
 * 10  light over the page (bands.js): nothing is held back for the scroll
 * 11  the build-up band (parts/buildup.php)
 * 12  before and after: the slider over Ioan's pairs (parts/compare.php)
 *
 * Fonts: @font-face rules live in fonts.css, inlined in the head by inc/enqueues.php.
 */

:root {
  --night: #0d1013;          /* brand night */
  --snow: #ffffff;           /* type printed on a photo, both themes */
  --snow-2: rgb(255 255 255 / .76);
  --snow-line: rgb(255 255 255 / .22);
  --top: #ffffff;            /* header, menu, call bar, the hero's ground */
  --on: #0d1013;             /* type on those surfaces, the deeper bands and the footer */
  --on-2: #48515a;
  --on-line: #d9d9d9;
  --on-field: rgb(13 16 19 / .42);  /* the quiet button's edge there */
  --veil: 255 255 255;       /* the hero's wash behind its words, as r g b */
  --hero-veil: linear-gradient(90deg, rgb(var(--veil) / .96) 0%, rgb(var(--veil) / .93) 38%, rgb(var(--veil) / .8) 50%, rgb(var(--veil) / .36) 60%, rgb(var(--veil) / 0) 70%);
  --hero-veil-sm: linear-gradient(180deg, rgb(var(--veil) / 0) 0%, rgb(var(--veil) / 0) 58%, rgb(var(--veil) / .96) 100%);
  --co-ring: rgb(255 255 255 / .75);   /* the hero callouts: dark ink on the bright photo, each label on a white tag */
  --co-drop: rgb(0 0 0 / 0);
  --co-halo: none;
  --co-tag: rgb(255 255 255 / .93);
  --co-pad: 7px 11px 8px;
  --co-line: drop-shadow(0 0 1px #fff) drop-shadow(0 0 2px rgb(255 255 255 / .85));
  --tag-bg: rgb(255 255 255 / .94);   /* a callout label's tag on a photo with no veil */
  --tag-ink: #0d1013;
  --tag-ink-2: #48515a;
  --paper: #f3f3f3;          /* light band: neutral grays, not blue ones (Daniel, 29 Oct 2026: "very cold"), never warm ones */
  --white: #ffffff;          /* white band */
  --ink: #0d1013;            /* text on light bands */
  --ink-2: #48515a;          /* secondary text on light bands, 7:1+ */
  --line: #d9d9d9;           /* hairlines on light bands */
  --field: #8a9199;          /* a field's edge, 3:1 on white */
  --band-2: #e8e8e8;         /* the materials and contact bands, a step deeper than paper */
  --foot: #f3f3f3;           /* footer */
  --card: #ffffff;           /* the form card on the contact band */
  --card-ink: #0d1013;
  --card-ink-2: #48515a;
  --act-bg: #0d1013;         /* the action button on light bands */
  --act-fg: #ffffff;
  --act-hover: #2b2e31;
  --hint: #6b737b;           /* placeholder and unanswered select, 4.6:1 on white */
  --req: #c8261d;            /* required asterisk and errors */
  --warm: #e8622c;           /* the one warm accent, the same in both themes: the sun on the roof. Marks, lines and light
                                at full strength only, never a wash, a tint or small text: dim orange reads brown on night.
                                3.4:1 on white, 3.1:1 on paper, 5.7:1 on night */
  --display: 'Funnel Display', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --text: 'Funnel Sans', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --gut: clamp(16px, 4vw, 56px);
  --sect: clamp(72px, 9vw, 148px);
  --gap: clamp(16px, 1.8vw, 28px);
  --max: 1320px;
  --hdr: 84px;
  --r-btn: 12px;             /* corners: soft, never square (Daniel, 29 Oct 2026: "very rigid") */
  --r-field: 10px;
  --r-card: 18px;
  --r-img: 16px;
  --ease: cubic-bezier(.22, .7, .2, 1);
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230d1013' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #20272A; --white: #1C2225; --ink: #E3E6E7; --ink-2: #B6C0C9; --line: #373D40; --field: rgb(255 255 255 / .38);
    --band-2: #282F32; --foot: #191F21; --card: #20272A; --card-ink: #E3E6E7; --card-ink-2: #B6C0C9;
    --top: #1C2225; --on: #E0E7E9; --on-2: rgb(255 255 255 / .76); --on-line: rgb(255 255 255 / .22); --on-field: rgb(255 255 255 / .55); --veil: 13 16 19;
    --hero-veil: linear-gradient(90deg, rgb(13 16 19 / .93) 0%, rgb(13 16 19 / .80) 26%, rgb(13 16 19 / .42) 50%, rgb(13 16 19 / .10) 70%, rgb(13 16 19 / .14) 100%), linear-gradient(180deg, rgb(13 16 19 / .62) 0%, rgb(13 16 19 / .40) 34%, rgb(13 16 19 / .10) 58%, rgb(13 16 19 / .30) 82%, rgb(13 16 19 / .72) 100%);
    --hero-veil-sm: linear-gradient(180deg, rgb(13 16 19 / .55) 0%, rgb(13 16 19 / .18) 32%, rgb(13 16 19 / .08) 62%, rgb(13 16 19 / .92) 100%);
    --co-ring: rgb(255 255 255 / .28); --co-drop: rgb(0 0 0 / .35); --co-halo: 0 1px 10px rgb(0 0 0 / .45); --co-tag: transparent; --co-pad: 0; --co-line: none;
    --act-bg: #ffffff; --act-fg: #0d1013; --tag-bg: rgb(13 16 19 / .88); --tag-ink: #ffffff; --tag-ink-2: rgb(255 255 255 / .78); --act-hover: #dfe4e8; --hint: #8F98A2; --req: #ff7b6f;
    --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23eef1f3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #20272A; --white: #1C2225; --ink: #E3E6E7; --ink-2: #B6C0C9; --line: #373D40; --field: rgb(255 255 255 / .38);
  --band-2: #282F32; --foot: #191F21; --card: #20272A; --card-ink: #E3E6E7; --card-ink-2: #B6C0C9;
  --top: #1C2225; --on: #E0E7E9; --on-2: rgb(255 255 255 / .76); --on-line: rgb(255 255 255 / .22); --on-field: rgb(255 255 255 / .55); --veil: 13 16 19;
  --hero-veil: linear-gradient(90deg, rgb(13 16 19 / .93) 0%, rgb(13 16 19 / .80) 26%, rgb(13 16 19 / .42) 50%, rgb(13 16 19 / .10) 70%, rgb(13 16 19 / .14) 100%), linear-gradient(180deg, rgb(13 16 19 / .62) 0%, rgb(13 16 19 / .40) 34%, rgb(13 16 19 / .10) 58%, rgb(13 16 19 / .30) 82%, rgb(13 16 19 / .72) 100%);
  --hero-veil-sm: linear-gradient(180deg, rgb(13 16 19 / .55) 0%, rgb(13 16 19 / .18) 32%, rgb(13 16 19 / .08) 62%, rgb(13 16 19 / .92) 100%);
  --co-ring: rgb(255 255 255 / .28); --co-drop: rgb(0 0 0 / .35); --co-halo: 0 1px 10px rgb(0 0 0 / .45); --co-tag: transparent; --co-pad: 0; --co-line: none;
  --act-bg: #ffffff; --act-fg: #0d1013; --tag-bg: rgb(13 16 19 / .88); --tag-ink: #ffffff; --tag-ink-2: rgb(255 255 255 / .78); --act-hover: #dfe4e8; --hint: #8F98A2; --req: #ff7b6f;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23eef1f3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--top); scroll-padding-top: calc(var(--hdr) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-x: clip; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--top); }
img { max-width: 100%; display: block; }
a { color: inherit; }
a[href^="tel:"] { white-space: nowrap; }
p, h1, h2, h3, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gut)); margin-inline: auto;
  padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--act-bg); color: var(--act-fg); padding: 12px 18px; font-weight: 600; }
.skip:focus { top: 16px; }

/* type */
.eyebrow { display: flex; align-items: center; gap: 14px; font: 600 13px/1.3 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 1px; background: var(--warm); flex: none; }
.h2 { font: 700 clamp(36px, 4.6vw, 70px)/1.02 var(--display); letter-spacing: -.022em; text-wrap: balance; }
.h2 em, .h1 em { font-style: normal; font-weight: 300; }
.ct .h2 em { display: block; }
.mat .h2 { font-size: clamp(44px, 6.8vw, 112px); line-height: .98; }
.proc .h2, .faq .h2 { font-size: clamp(32px, 3.7vw, 56px); line-height: 1.05; }
.intro { max-width: 58ch; color: var(--ink-2); font-size: clamp(17px, 1.25vw, 19px); }
.head { display: grid; gap: clamp(16px, 1.6vw, 22px); }

/* buttons: the action is filled, everything else is quiet */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 56px; padding: 0 1.5em; border: 1px solid transparent; border-radius: var(--r-btn);
  font: 600 17px/1.2 var(--text); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease); flex: none; }
.btn .num { font-weight: 500; font-variant-numeric: tabular-nums; opacity: .82; }
.btn__ic { width: 1.1em; height: 1.1em; flex: none; }              /* the handset on every call button */
.btn--snow { background: var(--act-bg); color: var(--act-fg); }   /* the call button on the theme surfaces: night on light, white on dark */
.btn--ghost { border-color: var(--on-field); color: var(--on); background: transparent; }
.btn--act { background: var(--act-bg); color: var(--act-fg); }
.btn--line { border-color: var(--field); color: var(--ink); background: transparent; }
@media (hover: hover) and (pointer: fine) {
  .btn--snow:hover { background: var(--act-hover); }
  .btn--ghost:hover { border-color: var(--on); background: color-mix(in srgb, var(--on) 6%, transparent); }
  .btn--act:hover { background: var(--act-hover); }
  .btn--line:hover { border-color: var(--ink); }
}

/* header: solid, light or night with the theme; the compact switch is a transform (header-nav.md) */
.hdr { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--top); color: var(--on); isolation: isolate; transition: transform .28s var(--ease); }
.hdr::before { content: ""; position: absolute; inset: 0 0 -1px; z-index: -1; pointer-events: none; border-bottom: 1px solid var(--on-line); opacity: 0; transition: opacity .28s var(--ease); }
.hdr__in { height: var(--hdr); display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); transition: transform .28s var(--ease); pointer-events: none; }
.hdr__in > * { pointer-events: auto; }
.hdr.is-scrolled { transform: translateY(-20px); }
.hdr.is-scrolled::before { opacity: 1; }
.hdr.is-scrolled .hdr__in { transform: translateY(10px); }
.hdr.is-instant, .hdr.is-instant *, .hdr.is-instant::before { transition: none !important; }
.brand { font: 700 23px/1 var(--display); letter-spacing: -.01em; text-decoration: none; color: var(--on); white-space: nowrap; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: clamp(18px, 2.2vw, 34px); }
.nav a { display: block; padding-block: 10px; font: 500 16px/1.2 var(--text); color: var(--on-2); text-decoration: none; white-space: nowrap; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 4px) / 0 1px no-repeat; transition: color .25s var(--ease), background-size .35s var(--ease); }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--on); } html:not(.m-on) .nav a:hover { background-size: 100% 1px; } }
.nav a.is-current { color: var(--on); background-image: linear-gradient(var(--warm), var(--warm)); background-size: 100% 2px; }
.hdr__call { min-height: 48px; padding: 0 1.5em; font-size: 16px; }
.hdr__call .short { display: none; }
.is-menu-open .hdr, .is-menu-open .hdr__in { transform: none; }
.is-menu-open .hdr::before { opacity: 0; }
.burger { display: none; width: 44px; height: 44px; margin-right: -10px; border: 0; background: transparent; color: var(--on); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; width: 22px; height: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.is-menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.is-menu-open .burger span:nth-child(2) { opacity: 0; }
.is-menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 45; background: var(--top); color: var(--on); padding-top: calc(env(safe-area-inset-top, 0px) + 64px); overflow-y: auto; overscroll-behavior: contain; display: flex; }
.menu[hidden] { display: none; }
.menu .wrap { display: grid; align-content: start; gap: 28px; padding-block: 24px max(32px, env(safe-area-inset-bottom, 0px)); }
.menu ul { display: grid; }
.menu li a { display: block; padding-block: 13px; font: 600 30px/1.15 var(--display); text-decoration: none; border-bottom: 1px solid var(--on-line); }
.menu li a.is-current { padding-left: 16px; box-shadow: inset 3px 0 0 var(--warm); }
.menu .btn { width: 100%; }
html.is-menu-open { overflow: hidden; scrollbar-gutter: stable; }

/* hero */
/* the whole hero fits the first screen on every screen (Daniel, 29 Oct 2026): its height is the window less the header,
   and its type and spacing follow the window's height as well as its width, so a laptop's short window keeps the buttons */
.hero { position: relative; background: var(--top); color: var(--on); isolation: isolate; display: grid; min-height: min(calc(100svh - var(--hdr)), 1100px); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.hero__media::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: var(--hero-veil); }
.hero__in { align-self: end; padding-block: clamp(28px, 9svh, 180px) clamp(28px, 6.5svh, 84px); }
.hero__copy { max-width: 690px; display: flex; flex-direction: column; gap: clamp(14px, 2.6svh, 26px); }
.kicker { font: 600 14px/1.3 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--on-2); display: flex; align-items: center; gap: 14px; }
.kicker::before { content: ""; width: 28px; height: 2px; border-radius: 1px; background: var(--warm); flex: none; }
.h1 { font: 800 clamp(40px, min(7.4vw, 11.2svh), 116px)/.97 var(--display); letter-spacing: -.03em; text-wrap: balance; }
.h1 em { display: block; }
.hero__lead { max-width: 33em; font-size: clamp(16px, min(1.35vw, 2.4svh), 20px); color: var(--on-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 6px; }

/* the callout device */
.co { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.co svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.co line { stroke: currentColor; stroke-width: 1; opacity: .9; }
.co__dot { position: absolute; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--warm); box-shadow: 0 0 0 4px rgb(255 255 255 / .28), 0 1px 6px rgb(0 0 0 / .35); }
.co__lab { position: absolute; display: grid; gap: 2px; width: max-content; max-width: 230px; font: 600 15px/1.25 var(--text); text-shadow: 0 1px 10px rgb(0 0 0 / .45); }
.co__lab span { font-weight: 400; font-size: 13.5px; opacity: .84; }
.co__lab[data-al="r"] { text-align: right; }
.hero .co__dot { box-shadow: 0 0 0 4px var(--co-ring), 0 1px 6px var(--co-drop); }
.hero .co__lab { text-shadow: var(--co-halo); padding: var(--co-pad); isolation: isolate; }
/* the words' ground on a bright photo: a soft plate with no edge (blurred), never a box around them */
.hero .co__lab::before, .co--tag .co__lab::before { content: ""; position: absolute; inset: -3px -5px; z-index: -1; border-radius: 12px; background: var(--co-tag); filter: blur(5px); pointer-events: none; }
.hero .co svg { filter: var(--co-line); }
.co.is-opening .co__dot { animation: coDot .55s var(--ease) backwards; animation-delay: calc(var(--o) * 260ms + 250ms); }
.co.is-opening line { stroke-dasharray: 1 1.2; animation: coLine .6s var(--ease) backwards; animation-delay: calc(var(--o) * 260ms + 380ms); }
.co.is-opening .co__lab { animation: coLab .6s var(--ease) backwards; animation-delay: calc(var(--o) * 260ms + 620ms); }
@keyframes coDot { from { transform: scale(0); opacity: 0; } }
@keyframes coLine { from { stroke-dashoffset: 1.1; } to { stroke-dashoffset: 0; } }
@keyframes coLab { from { opacity: 0; } }

/* services: a router whose choice moves the photo */
.svc { background: var(--paper); padding-block: var(--sect); }
.svc .wrap { display: grid; gap: clamp(40px, 5vw, 72px); }
.svc__body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.svc__list { border-bottom: 1px solid var(--line); counter-reset: s; }
.row { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr) 28px; column-gap: clamp(16px, 2vw, 28px); align-items: baseline;
  padding-block: clamp(22px, 2.2vw, 30px); border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.row::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--warm); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease); }
.row.is-on::after { transform: scaleX(1); }
.row__n { font: 500 14px/1 var(--text); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.row__name { font: 600 clamp(25px, 2.5vw, 38px)/1.08 var(--display); letter-spacing: -.015em; }
.row__line { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.row__go { align-self: center; width: 22px; height: 22px; transition: transform .35s var(--ease); }
.row__thumb { display: none; }
.row.is-on .row__n { color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .row:not(.is-on):hover::after { transform: scaleX(1); }
}
.svc__more { padding-top: 22px; color: var(--ink-2); font-size: 16px; }
.svc__more a { color: var(--ink); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.frame { position: sticky; top: calc(var(--hdr) + 32px); aspect-ratio: 4 / 5; max-width: 100%; background: #1a1f24; color: var(--snow); overflow: hidden; border-radius: var(--r-img); }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease); }
.frame img.is-on { opacity: 1; }
.frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgb(13 16 19 / .38), rgb(13 16 19 / 0) 38%, rgb(13 16 19 / 0) 70%, rgb(13 16 19 / .55)); }
.frame .co { z-index: 2; }
.frame__cap { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; font: 500 14px/1.4 var(--text); color: var(--snow-2); display: flex; justify-content: space-between; gap: 16px; }

/* one team: a sentence annotated like the roof */
.team { background: var(--white); padding-block: var(--sect); }
.team .wrap { display: grid; gap: clamp(32px, 4vw, 56px); }
.stack { display: grid; gap: clamp(12px, 1.5vw, 22px); }
.ln { display: flex; align-items: center; gap: 0; min-width: 0; }
.ln__w { font: 600 clamp(38px, 5.4vw, 92px)/1.06 var(--display); letter-spacing: -.028em; white-space: nowrap; }
.ln__w em { font-style: normal; font-weight: 300; }
.ln__dot { flex: none; width: 11px; height: 11px; margin-left: clamp(14px, 1.6vw, 24px); border-radius: 50%; background: var(--warm); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 10%, transparent); }
.ln__rule { flex: 1 1 40px; min-width: 32px; height: 1px; background: var(--ink); opacity: .55; }
.ln__lab { flex: 0 0 clamp(250px, 29vw, 340px); padding-left: 16px; display: grid; gap: 2px; font: 600 16px/1.3 var(--text); }
.ln__lab span { font-weight: 400; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.team__foot { color: var(--ink-2); max-width: 60ch; }

/* materials: the one mid-page deeper band */
.mat { background: var(--band-2); color: var(--on); padding-block: var(--sect); }
.mat .eyebrow, .mat .intro { color: var(--on-2); }
.mat .wrap { display: grid; gap: clamp(40px, 5vw, 68px); }
.mats { display: grid; grid-template-columns: minmax(150px, .7fr) repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto repeat(5, auto); column-gap: var(--gap); }
.mats__labels, .mcard { grid-row: 1 / -1; display: grid; grid-template-rows: subgrid; }
.mats__labels > *:nth-child(n+3), .mcard dl > div { border-top: 1px solid var(--on-line); padding-block: 16px; }
.mats__labels > * { font: 600 13px/1.35 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--on-2); }
.mcard dl { display: contents; }
.mcard dt { display: none; }
.mcard dd { font-size: 16px; line-height: 1.5; }
.mcard dd b { font-weight: 600; font-size: 18px; font-variant-numeric: tabular-nums; }
.mcard figure { aspect-ratio: 4 / 3; overflow: hidden; background: #1a1f24; margin-bottom: 20px; border-radius: var(--r-img); }
.mcard figure img { width: 100%; height: 100%; object-fit: cover; }
.mcard header { display: grid; gap: 6px; padding-bottom: 24px; }
.mcard h3 { font: 700 clamp(24px, 2.2vw, 32px)/1.1 var(--display); letter-spacing: -.012em; }
.mcard header p { color: var(--on-2); font-size: 16px; }
.mat__note { color: var(--on-2); font-size: 15px; max-width: 70ch; }

/* process: five posts under a roof slope, eave to ridge */
.proc { background: var(--paper); padding-block: var(--sect); }
.proc .wrap { display: grid; gap: clamp(36px, 4vw, 56px); }
.slope { position: relative; height: clamp(210px, 21vw, 300px); color: var(--ink); }
.slope svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.slope .s-line { stroke: currentColor; stroke-width: 1.25; fill: none; }
.slope .s-soft { stroke: currentColor; stroke-width: 1; opacity: .35; fill: none; }
.slope .s-tick { stroke: currentColor; stroke-width: 1; opacity: .45; }
.slope .s-post { stroke: currentColor; stroke-width: 1; opacity: .55; }
.slope .s-fill { fill: var(--paper); stroke: currentColor; stroke-width: 1; }
.slope .s-st { fill: var(--paper); stroke: currentColor; stroke-width: 1.5; transition: fill .3s var(--ease); transform-box: fill-box; transform-origin: center; }
.slope .s-st.is-lit { fill: var(--warm); stroke: var(--warm); }
.slope .s-ring { fill: none; stroke: currentColor; stroke-width: 1; opacity: 0; }
.slope .s-sun { fill: var(--warm); opacity: 0; filter: drop-shadow(0 0 5px var(--warm)) drop-shadow(0 0 12px rgb(232 98 44 / .55)); }
.slope__pause { position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: none;
  display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.slope__pause span { width: 9px; height: 11px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.slope__pause[aria-pressed="true"] span { width: 0; height: 0; margin-left: 3px; border: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.slope__pause:focus-visible { outline: 2px solid var(--warm); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .slope__pause:hover { border-color: var(--ink); color: var(--ink); } }
.slope text { font: 600 12px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; fill: var(--ink-2); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.3fr); column-gap: var(--gap); }
.step { display: grid; align-content: start; gap: 10px; }
.step__n { font: 500 14px/1 var(--text); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.step h3 { font: 600 clamp(21px, 1.7vw, 26px)/1.15 var(--display); letter-spacing: -.01em; }
.step p { color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.step--big h3 { font-size: clamp(30px, 2.8vw, 44px); font-weight: 700; }
.step--big p { color: var(--ink); font-size: 17px; }

/* work: a strip that scrolls sideways */
.work { background: var(--white); padding-block: var(--sect); }
.work__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }
.work__all { font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.strip { position: relative; margin-top: clamp(32px, 4vw, 52px); }
.strip__row { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  padding-left: max(var(--gut), env(safe-area-inset-left, 0px), calc((100% - var(--max)) / 2)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px), calc((100% - var(--max)) / 2));
  scroll-padding-inline: max(var(--gut), calc((100% - var(--max)) / 2)); padding-block: 6px 14px; cursor: grab; }
.strip__row::-webkit-scrollbar { display: none; }
.strip__row.is-drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.shot { flex: 0 0 auto; scroll-snap-align: start; display: grid; gap: 12px; position: relative; }
.shot img { height: clamp(260px, 30vw, 440px); width: auto; aspect-ratio: auto; object-fit: cover; background: var(--line); border-radius: var(--r-img); -webkit-user-drag: none; user-select: none; }
.shot figcaption { font-size: 15px; color: var(--ink-2); display: flex; gap: 10px; }
/* the caption takes the photo's width and wraps under it, never widening the shot past its photo */
.shot figcaption { width: 0; min-width: 100%; flex-wrap: wrap; row-gap: 2px; }
.shot figcaption b { color: var(--ink); font-weight: 600; }
.strip__arrow { position: absolute; top: calc(50% - 40px); z-index: 2; width: 52px; height: 52px; border-radius: 50%; border: 0; background: #fff; color: #0d1013; box-shadow: 0 6px 22px rgb(0 0 0 / .22); cursor: pointer; display: none; place-items: center; }
.strip__arrow svg { width: 20px; height: 20px; }
.strip__arrow--prev { left: max(16px, calc((100% - var(--max)) / 2 - 26px)); }
.strip__arrow--next { right: max(16px, calc((100% - var(--max)) / 2 - 26px)); }
@media (hover: hover) and (pointer: fine) {
  .strip.can-prev .strip__arrow--prev:not(:disabled), .strip.can-next .strip__arrow--next:not(:disabled) { display: grid; }
  .strip__arrow:hover { box-shadow: 0 8px 28px rgb(0 0 0 / .3); }
}

/* faq */
.faq { background: var(--paper); padding-block: var(--sect); }
.faq .wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.faq__side { position: sticky; top: calc(var(--hdr) + 32px); display: grid; gap: clamp(18px, 2vw, 26px); }
.faq__call { display: grid; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.faq__call p { color: var(--ink-2); }
.faq__call .btn { justify-self: start; }
.qa { border-bottom: 1px solid var(--line); }
.qa details { border-top: 1px solid var(--line); }
.qa summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) 28px; gap: 20px; align-items: center; padding-block: 24px; cursor: pointer;
  font: 600 clamp(19px, 1.6vw, 23px)/1.3 var(--display); letter-spacing: -.005em; }
.qa summary::-webkit-details-marker { display: none; }
.qa .pm { position: relative; width: 22px; height: 22px; justify-self: end; }
.qa .pm::before, .qa .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; transition: transform .35s var(--ease); }
.qa .pm::after { transform: rotate(90deg); }
.qa details[open] .pm::after { transform: rotate(0deg); }
.qa .ans { padding: 0 48px 26px 0; color: var(--ink-2); max-width: 62ch; }

/* contact: the closing deeper band */
.ct { background: var(--band-2); color: var(--on); padding-block: var(--sect); }
.ct .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); grid-template-rows: auto 1fr; column-gap: clamp(40px, 6vw, 110px); row-gap: clamp(28px, 3vw, 44px); align-items: start; }
.ct__left { grid-column: 1; grid-row: 1; }
.ct .fcard { grid-column: 2; grid-row: 1 / span 2; }
.ct .stops { grid-column: 1; grid-row: 2; }
.ct .eyebrow { color: var(--on-2); }
.ct__left { display: grid; gap: clamp(20px, 2.4vw, 32px); align-content: start; }
.bignum { display: inline-block; font: 700 clamp(40px, 5.6vw, 92px)/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; text-decoration: none; white-space: nowrap;
  background: linear-gradient(var(--warm), var(--warm)) 0 100% / 0 2px no-repeat; padding-bottom: 8px; transition: background-size .5s var(--ease); justify-self: start; }
@media (hover: hover) and (pointer: fine) { html:not(.m-on) .bignum:hover { background-size: 100% 2px; } }
.ct__note { color: var(--on-2); font-size: clamp(17px, 1.3vw, 19px); }
.stops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.stops li { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--on-line); font-size: 16px; color: var(--on-2); }
.stops b { font: 500 13px/1 var(--text); color: var(--on); font-variant-numeric: tabular-nums; }
.fcard { background: var(--card); color: var(--card-ink); padding: clamp(24px, 3vw, 40px); border-radius: var(--r-card); box-shadow: 0 1px 2px rgb(13 16 19 / .05), 0 24px 60px rgb(13 16 19 / .08); container-type: inline-size; scroll-margin-top: calc(var(--hdr) + 16px); }
.fcard h3 { font: 700 clamp(26px, 2.2vw, 32px)/1.1 var(--display); letter-spacing: -.012em; }
.fcard > p { color: var(--card-ink-2); margin-top: 8px; font-size: 15px; }
.form { display: grid; gap: 18px; margin-top: 26px; }
.form__2 { display: grid; gap: 18px; }
@container (min-width: 600px) { .form__2 { grid-template-columns: 1fr 1fr; } }
.fld { display: grid; }
.fld label { padding-bottom: 8px; font: 600 15px/1.3 var(--text); }
.req { color: var(--req); }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 54px; padding: 13px 16px; border: 1px solid var(--field); border-radius: var(--r-field); background: var(--card); color: var(--card-ink); font-size: 17px; line-height: 1.4; transition: border-color .2s var(--ease); }
.fld textarea { min-height: 120px; resize: vertical; }
.fld input::placeholder, .fld textarea::placeholder { color: var(--hint); opacity: 1; }
.fld select { -webkit-appearance: none; appearance: none; background-image: var(--chevron); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px; padding-right: 44px; text-overflow: ellipsis; cursor: pointer; }
.fld select:invalid, .fld select.is-empty { color: var(--hint); }
.fld select option { color: var(--card-ink); background: var(--card); }
@media (hover: hover) and (pointer: fine) { .fld input:hover, .fld select:hover, .fld textarea:hover { border-color: var(--card-ink); } }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--card-ink); box-shadow: inset 0 0 0 1px var(--card-ink); }
.fld .wpcf7-form-control-wrap { position: relative; display: block; padding-bottom: 24px; }
.fld .wpcf7-not-valid-tip { position: absolute; left: 0; right: 0; bottom: 0; min-height: 20px; font-size: 14px; line-height: 20px; color: var(--req); }
.fld :is(input, select, textarea)[aria-invalid="true"] { border-color: var(--req); }
.consent .wpcf7-form-control-wrap, .consent .wpcf7-list-item { display: block; margin: 0; }
.consent label { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 15px; line-height: 1.5; color: var(--card-ink-2); cursor: pointer; }
.consent .wpcf7-not-valid-tip { display: block; padding: 6px 0 0 34px; font-size: 14px; line-height: 20px; color: var(--req); }
.consent :is(input)[aria-invalid="true"] { border-color: var(--req); }
.consent input { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; padding: 0; margin: 1px 0 0; border: 1px solid var(--field); border-radius: 6px; background: var(--card) center / 13px no-repeat; cursor: pointer; }
.consent input:checked { background-color: var(--card-ink); border-color: var(--card-ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 11'%3E%3Cpath d='M1 5.5l4 4L13 1.5' fill='none' stroke='%23ffffff' stroke-width='2'/%3E%3C/svg%3E"); }
:root[data-theme="dark"] .consent input:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 11'%3E%3Cpath d='M1 5.5l4 4L13 1.5' fill='none' stroke='%230d1013' stroke-width='2'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .consent input:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 11'%3E%3Cpath d='M1 5.5l4 4L13 1.5' fill='none' stroke='%230d1013' stroke-width='2'/%3E%3C/svg%3E"); } }
.consent a { color: var(--card-ink); text-underline-offset: 3px; }
.form .btn { width: 100%; }
.form__req { font-size: 14px; color: var(--card-ink-2); }
.thanks { display: grid; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.thanks[hidden] { display: none; }
.thanks b { font: 700 24px/1.2 var(--display); }

/* closing strip: the page ends looking up a finished metal roof into a blue sky (Daniel's own pick, Adobe 837222722).
   A photo edge to edge between the contact band and the footer, decorative, so it carries no words; the crop keeps the
   skyline about 40% down at 1440px. The blue behind it shows only while the photo loads. */
.roofline { position: relative; height: clamp(260px, 36vw, 540px); background: #6fa9d6; overflow: hidden; }
.roofline img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }   /* the roof's top edge about a third down, as in his pick */

/* footer */
.ft { background: var(--foot); color: var(--on); padding-block: clamp(64px, 7vw, 104px) max(28px, env(safe-area-inset-bottom, 0px)); font-size: 16px; }
.ft .wrap { display: grid; gap: clamp(40px, 5vw, 64px); }
.ft__cols { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 64px); }
.ft__brand { display: grid; gap: 16px; align-content: start; }
.ft__brand p { color: var(--on-2); max-width: 36ch; }
.ft__tel { font: 600 22px/1.2 var(--display); text-decoration: none; justify-self: start; }
.ft__mail { justify-self: start; color: var(--on); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.ft h2 { font: 600 13px/1.3 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--on-2); margin-bottom: 14px; }
.ft ul a { display: inline-block; padding-block: 9px; line-height: 26px; color: var(--on); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 0 1px no-repeat; transition: background-size .35s var(--ease); }
@media (hover: hover) and (pointer: fine) { html:not(.m-on) .ft ul a:hover, html:not(.m-on) .ft__tel:hover { background-size: 100% 1px; } }
.prefs { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 28px; border-top: 1px solid var(--on-line); }
.prefs span { color: var(--on-2); font-size: 15px; }
.seg { display: inline-flex; border: 1px solid var(--on-line); border-radius: var(--r-btn); overflow: hidden; }
.seg button { min-height: 44px; padding: 0 1.5em; border: 0; background: transparent; color: var(--on-2); cursor: pointer; font: 500 15px/1 var(--text); }
.seg button + button { border-left: 1px solid var(--on-line); }
.seg button[aria-pressed="true"] { background: var(--act-bg); color: var(--act-fg); cursor: default; }
@media (hover: hover) and (pointer: fine) { .seg button:not([aria-pressed="true"]):hover { color: var(--on); background: color-mix(in srgb, var(--on) 7%, transparent); } }
.ft__bar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px 24px; padding-top: 24px; border-top: 1px solid var(--on-line); font-size: 15px; color: var(--on-2); }
.ft__bar > * { white-space: nowrap; }
.ft__bar .nld { color: var(--on); text-underline-offset: 3px; }
.ft__legal { display: flex; justify-content: flex-end; gap: 22px; }
.ft__legal:empty { display: none; }
.ft__legal a, .ft__legal button { color: var(--on-2); background: none; border: 0; padding: 0; cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--on-line); }
@media (hover: hover) and (pointer: fine) { .ft__legal a:hover, .ft__legal button:hover { color: var(--on); text-decoration-color: currentColor; } }

/* phone call bar */
.cbar { display: none; }

/* no paper grain over the page (Daniel, 30 Oct 2026: "i don't want the paper effect here"). The form card, the strip's
   arrows and the closing photo stand above their neighbors */
.fcard { position: relative; z-index: 31; }
.strip__arrow { z-index: 31; }
.roofline { z-index: 31; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}


/* ===================================================================================== */
/* 6  inner pages                                                                         */
/* ===================================================================================== */

/* the page hero: the home's language cut shorter. The job's own photograph stands in a frame
   beside the title (the masters are 4:5), its parts named by the callout device; the whole hero,
   buttons included, fits the first screen on every screen, its height the window less the header */
.phero { position: relative; background: var(--top); color: var(--on); }
.phero__in { --ph-t: clamp(20px, 4svh, 56px); --ph-b: clamp(40px, 5svh, 64px);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 96px); align-items: center;
  min-height: min(calc(100svh - var(--hdr)), 1000px); padding-block: var(--ph-t) var(--ph-b); }
.phero__copy { display: flex; flex-direction: column; gap: clamp(14px, 2.6svh, 26px); max-width: 660px; }
.phero__h1 { font-size: clamp(38px, min(5.6vw, 8.6svh), 92px); }
.phero__lead { max-width: 34em; font-size: clamp(16px, min(1.3vw, 2.3svh), 20px); color: var(--on-2); }
/* a running offer (tkv_offer()): one line under the call, an ember dot its mark, the words in the page's own ink */
.phero__offer { display: flex; align-items: baseline; gap: 12px; max-width: 34em; color: var(--on);
  font: 600 clamp(15px, min(1.15vw, 2.1svh), 18px)/1.4 var(--text); }
.phero__offer::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--warm); }
.phero__media { position: relative; justify-self: end; width: 100%; height: min(calc(100svh - var(--hdr) - var(--ph-t) - var(--ph-b)), 880px);
  min-height: 320px; overflow: hidden; border-radius: var(--r-img); background: #1a1f24; color: var(--snow); }
.phero__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phero__cap { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; display: flex; gap: 10px; font: 500 14px/1.4 var(--text); color: var(--snow); text-shadow: 0 1px 10px rgb(0 0 0 / .5); }
.phero--work .phero__media::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; pointer-events: none; background: linear-gradient(180deg, rgb(13 16 19 / 0), rgb(13 16 19 / .55)); }

/* callouts on a photo with no veil: every label stands on its own tag, white by day, night by night */
.co--tag { color: var(--snow); }
.co--tag svg { filter: drop-shadow(0 0 1.5px rgb(0 0 0 / .55)); }
.co--tag .co__dot { box-shadow: 0 0 0 4px rgb(255 255 255 / .6), 0 1px 6px rgb(0 0 0 / .35); }
.co--tag .co__lab { --co-tag: var(--tag-bg); padding: 7px 11px 8px; isolation: isolate; color: var(--tag-ink); text-shadow: none; }
.co--tag .co__lab span { opacity: 1; color: var(--tag-ink-2); }

/* the courses: what the job includes, laid like tiles in courses, each course lapping the one
   below by half a tile (a 7-column grid, every other row starting one column in) */
.scope { background: var(--paper); padding-block: var(--sect); }
.scope__in { display: grid; gap: clamp(40px, 5vw, 72px); }
.courses { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(32px, 3.4vw, 52px); }
.course { grid-column: span 2; display: grid; align-content: start; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); position: relative; }
.course::before { content: ""; position: absolute; left: 0; top: -1px; width: 28px; height: 2px; border-radius: 1px; background: var(--warm); }
.course:nth-child(6n + 1) { grid-column: 1 / span 2; }
.course:nth-child(6n + 4) { grid-column: 2 / span 2; }
.course__n { font: 300 clamp(34px, 3vw, 46px)/1 var(--display); letter-spacing: -.02em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.course h3 { font: 600 clamp(21px, 1.7vw, 26px)/1.15 var(--display); letter-spacing: -.01em; }
.course p { color: var(--ink-2); font-size: 16px; line-height: 1.55; }

/* the tape: a measuring tape across the band, what the price depends on hung from its marks */
.tape { background: var(--white); padding-block: var(--sect); }
.tape .wrap { display: grid; gap: clamp(40px, 5vw, 64px); }
.tape__body { position: relative; }
.tape__rule { height: 34px; border-top: 1.5px solid var(--ink); color: var(--ink);
  background:
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 100%) 0 0 / calc(100% / (var(--n) * 10)) 9px repeat-x,
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 100%) 0 0 / calc(100% / (var(--n) * 2)) 16px repeat-x;
  opacity: .5; }
/* no column gap: each mark hangs from a major tick (every other one), and the room is the mark's own */
.tape__marks { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); margin-top: -34px; }
.tape__mark { position: relative; display: grid; align-content: start; gap: 10px; padding: 70px var(--gap) 0 0; }
.tape__mark::before { content: ""; position: absolute; left: 5px; top: 0; height: 58px; width: 1px; background: var(--ink); opacity: .45; }
.tape__mark::after { content: ""; position: absolute; left: 0; top: 52px; width: 11px; height: 11px; border-radius: 50%; background: var(--warm); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 10%, transparent); }
.tape__mark h3 { font: 600 clamp(20px, 1.6vw, 24px)/1.18 var(--display); letter-spacing: -.01em; }
.tape__mark p { color: var(--ink-2); font-size: 16px; line-height: 1.55; }

/* the other jobs: one house per job, drawn in line (inc/houses.php, ../design/house/house.py), the part each job
   works on in the ember. The faces are filled with the band's own ground, so a nearer face hides what is behind it */
.others { background: var(--white); padding-block: var(--sect); }
.others__in { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 72px); }
.ojobs { list-style: none; display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: clamp(44px, 5vw, 72px) clamp(24px, 3vw, 48px); }
/* a card is as wide as its column, whatever its name: an auto column would grow to the name's longest word plus the
   arrow, and on a phone "Ereszcsatorna" would widen its card, its house and the page. A compound first word breaks at
   its join instead (tkv_breakable_html()). Never overflow-wrap: anywhere here: at 320 px it splits "bádogozás", 0.4 px
   too wide for the room beside the arrow, mid-word, where without it the arrow sits 0.4 px past the card's edge */
.ojob { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start; color: inherit; text-decoration: none; border-radius: 12px; }
.ojob:focus-visible { outline: 2px solid var(--warm); outline-offset: 8px; }
.house { display: block; width: 100%; height: auto; margin-bottom: clamp(10px, 1.2vw, 18px); overflow: visible; color: var(--ink); }
.house .f { fill: var(--white); }
.house .f, .house .l { stroke: currentColor; stroke-width: 1.05; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.house .l { fill: none; }
.house .t { opacity: .42; }
.house .e { stroke: var(--warm); stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.house path.e, .house .m { fill: none; }
.house .d { fill: var(--warm); stroke: color-mix(in srgb, var(--warm) 26%, transparent); stroke-width: 7; paint-order: stroke; vector-effect: non-scaling-stroke; }
.ojob__name { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; font: 600 clamp(19px, 1.6vw, 24px)/1.18 var(--display); letter-spacing: -.01em; }
.ojob__go { flex: none; width: 22px; height: 22px; margin-top: 2px; transition: transform .35s var(--ease); }
.ojob__line { color: var(--ink-2); font-size: 16px; line-height: 1.55; }
@media (hover: hover) and (pointer: fine) { .ojob:hover .ojob__go { transform: translateX(5px); } }

/* the work wall: Ioan's photos, upright, three to a row and in line; a click opens them large (.lb) */
.wall { background: var(--paper); padding-block: var(--sect); }
.wall__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(32px, 4vw, 56px); }
.wall__item figure { display: grid; gap: 12px; }
.wall__item img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-img); background: var(--line); }
.wall__item figcaption { display: flex; gap: 10px; font-size: 15px; color: var(--ink-2); }
.wall__item figcaption b { color: var(--ink); font-weight: 600; }

/* a work photo is a link to its full size; with the script it opens the lightbox instead (home strip, work page) */
.zoom { display: block; border-radius: var(--r-img); cursor: zoom-in; -webkit-user-drag: none; }
.zoom:focus-visible { outline: 2px solid var(--warm); outline-offset: 4px; }
.zoom--fill { position: absolute; inset: 0; border-radius: inherit; }
.zoom--fill > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phero--work .phero__cap { pointer-events: none; }

/* the lightbox: one photo large on the page's own ground (white by day, night by night), the others a click or a swipe away */
html.is-lb-open { overflow: hidden; scrollbar-gutter: stable; }
.lb { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; overflow: hidden;
  padding: clamp(16px, 2.4vw, 32px); border: 0; background: var(--white); color: var(--ink);
  display: none; grid-template-rows: auto minmax(0, 1fr) auto; gap: clamp(16px, 2vw, 24px); }
.lb[open] { display: grid; }
.lb::backdrop { background: var(--white); }
.lb__top, .lb__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lb__count { font: 500 15px/1 var(--text); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.lb__stage { min-height: 0; display: flex; align-items: center; justify-content: center; touch-action: pan-y pinch-zoom; }
.lb__img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: var(--r-img); user-select: none; -webkit-user-drag: none; }
.lb__cap { flex: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; margin: 0; text-align: center; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.lb__cap b { color: var(--ink); font-weight: 600; }
.lb__btn { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line); background: transparent;
  color: var(--ink); cursor: pointer; transition: border-color .2s var(--ease); }
.lb__btn svg { width: 20px; height: 20px; }
.lb__btn:focus-visible { outline: 2px solid var(--warm); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .lb__btn:hover { border-color: var(--ink); } }
@media (prefers-reduced-motion: no-preference) { .lb[open] { animation: lb-in .22s var(--ease); } }
@keyframes lb-in { from { opacity: 0; } }
@media (max-width: 767px) { .lb__btn { width: 46px; height: 46px; } .lb__cap { font-size: 14px; } }

/* prose pages (the legal pages, Asana task 8) */
.prose-page { background: var(--white); padding-block: clamp(48px, 7vw, 112px) var(--sect); }
.prose-page__in { display: grid; gap: clamp(28px, 3vw, 44px); max-width: calc(760px + 2 * var(--gut)); }
.prose { display: grid; gap: 18px; color: var(--ink); }
.prose :is(h2, h3) { font: 600 clamp(22px, 1.9vw, 28px)/1.2 var(--display); margin-top: 14px; }
.prose a { text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.25em; list-style: revert; display: grid; gap: 8px; }

/* the cookie list on /sutik/ (tkv_consent_table()): the banner's own table, styled by the banner's stylesheet,
   in the page's colors and type in both themes (its light palette would read 1.2:1 on night). From 481px the
   values wrap in the narrow column, each cookie name, provider and duration kept whole; below, the banner's
   stylesheet stacks every row */
.prose .nld-c-inventory { --nld-c-fg: var(--ink); --nld-c-muted: var(--ink-2); --nld-c-border: var(--line); --nld-c-font: var(--text);
  display: grid; gap: clamp(24px, 2.6vw, 36px); font-size: 16px; }
.legal__cookies-cat { display: grid; gap: 12px; }
.prose .legal__cookies h3 { margin-top: 0; font-size: clamp(19px, 1.5vw, 22px); }
.prose .nld-c-table { font-size: 15px; line-height: 1.5; }
.prose .nld-c-table :is(th, td) { padding: 10px 16px 10px 0; }
.legal__cookies code { font: 500 14px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink); white-space: nowrap; }
.legal__keep { white-space: nowrap; }
@media (min-width: 481px) { .prose .legal__cookies .nld-c-table td { white-space: normal; } }
@media (max-width: 480px) { .prose .nld-c-table :is(th, td) { padding: 0; } }

/* the 404: the inner pages' hero with its own photo; the number outlined above the title */
.nf__num { font: 800 clamp(64px, min(9vw, 13svh), 140px)/.85 var(--display); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px var(--on-2); }

/* a town keyword's page with a long town (inc/towns.php, tkv_town_h1_class()): the H1 a step smaller, each of the
   home's and the page hero's own sizes times .85, so the call button stays on the first screen (320 x 568 to 1920 x 1080) */
.h1.h1--fit { font-size: calc(clamp(40px, min(7.4vw, 11.2svh), 116px) * .85); }
.phero__h1.h1--fit { font-size: calc(clamp(38px, min(5.6vw, 8.6svh), 92px) * .85); }
@media (max-width: 1080px) { .h1.h1--fit { font-size: calc(clamp(36px, min(8.6vw, 7.4svh), 76px) * .85); } }
@media (max-width: 900px) { .phero__h1.h1--fit { font-size: calc(clamp(32px, min(8.4vw, 6.6svh), 64px) * .85); } }
@media (max-width: 767px) {
  .h1.h1--fit { font-size: calc(clamp(30px, min(11vw, 6.4svh), 52px) * .85); }
  .phero__h1.h1--fit { font-size: calc(clamp(30px, min(10.4vw, 6.2svh), 48px) * .85); }
}

/* ===================================================================================== */
/* 7  the form as Contact Form 7 prints it                                               */
/* ===================================================================================== */
.form-wrap { margin-top: 26px; }
.form-wrap .form { margin-top: 0; }
.wpcf7 .hidden-fields-container { display: none; }
.form__send { display: grid; gap: 16px; }
.form__send .wpcf7-form-control-wrap:has(.cf-turnstile) { display: contents; }
.form__send .cf-turnstile:empty { display: none; }
.form .wpcf7-spinner { display: none; }
.form .btn[type="submit"] { width: 100%; }
.form-wrap .wpcf7 form .wpcf7-response-output { margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-field); font-size: 15px; line-height: 1.5; color: var(--card-ink); }
.form-wrap .wpcf7 form.invalid .wpcf7-response-output, .form-wrap .wpcf7 form.unaccepted .wpcf7-response-output,
.form-wrap .wpcf7 form.spam .wpcf7-response-output, .form-wrap .wpcf7 form.aborted .wpcf7-response-output { border-color: var(--req); }
.form-wrap .wpcf7 form:is(.sent, .failed) .wpcf7-response-output { display: none; }
.form-off { margin-top: 20px; color: var(--card-ink-2); }
.form__tick { font-size: 15px; color: var(--card-ink-2); }
.fld select:has(option[value=""]:checked) { color: var(--hint); }
.fld select option { color: var(--card-ink); background: var(--card); }
.thanks a { color: inherit; white-space: nowrap; text-underline-offset: 3px; }

/* ===================================================================================== */
/* 8  motion (the prototype's motion.css; assets/js/motion.js has the gesture)            */
/* ===================================================================================== */


/* buttons: the courses are drawn on a canvas behind the words */
.btn { position: relative; isolation: isolate; overflow: hidden; }
.m-roof { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.btn.is-busy { color: transparent; cursor: progress; }
.m-done { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; overflow: visible; pointer-events: none; }
.m-done path { fill: none; stroke: var(--act-fg); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1.2; stroke-dashoffset: 1.1; }
.btn.is-sent .m-done path { stroke-dashoffset: 0; transition: stroke-dashoffset .6s var(--ease); }

/* links: the line is laid in lengths on a canvas under the words; a resting underline turns faint, so the laid
   line reads as the change (--lay-y matches each link's underline offset) */
html.m-on :is(.nav a, .brand, .ft ul a, .ft__tel, .ft__mail, .ft__bar .nld, .ft__legal a, .ft__legal button, .svc__more a, .work__all, .consent a, .bignum, .thanks a) { position: relative; isolation: isolate; }
@media (hover: hover) and (pointer: fine) { html.m-on :is(.svc__more a, .ft__bar .nld, .consent a) { display: inline-block; } }
.m-lay { position: absolute; left: 0; top: -8px; width: 100%; height: calc(100% + 16px); z-index: -1; pointer-events: none; }
html.m-on :is(.svc__more a, .work__all, .ft__bar .nld, .consent a) { text-decoration-color: color-mix(in srgb, currentColor 36%, transparent); text-decoration-thickness: 1px; }
.svc__more a { --lay-y: 4px; }
.work__all { --lay-y: 5px; }
.ft__bar .nld, .consent a, .ft__legal a, .ft__legal button { --lay-y: 3px; }
@media (hover: hover) and (pointer: fine) { html.m-on .ft__legal :is(a, button):hover { text-decoration-color: var(--on-line); } }

/* rows: the warm line along a service row or a question is drawn from the side the pointer comes in (--m-o) */
.row::after { transform-origin: var(--m-o, 0%) 50%; }
.qa summary { position: relative; }
.qa summary::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--warm); transform: scaleX(0); transform-origin: var(--m-o, 0%) 50%; transition: transform .45s var(--ease); pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .qa summary:hover::before { transform: scaleX(1); } }
.qa .ans { overflow: hidden; }
/* the plus: its upright arm folds down flat like a seam as the answer opens, and stands up as it closes */
.qa .pm::before, .qa .pm::after { transition: transform .42s var(--ease); }
.qa details.is-closing .pm::after { transform: rotate(90deg); }

/* the services frame: the photo rising shows at once; its mask does the rest, a soft edge a third of the frame tall
   that rises from the bottom (motion.js animates --rise from 0% to 130%) */
@property --rise { syntax: "<percentage>"; inherits: false; initial-value: 130%; }
.frame img.is-lay { transition: none;
  -webkit-mask-image: linear-gradient(to top, #000 calc(var(--rise) - 30%), transparent var(--rise));
  mask-image: linear-gradient(to top, #000 calc(var(--rise) - 30%), transparent var(--rise)); }

/* fields: the edge is laid from the click point (motion.js builds the two paths) */
.m-box { position: relative; display: block; }
.m-trim { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.m-trim path { fill: none; stroke: var(--warm); stroke-width: 2; stroke-dasharray: 1 1.2; stroke-dashoffset: 1.1; transition: stroke-dashoffset .3s cubic-bezier(.5, 0, .75, 0); }
.fld.is-focus .m-trim path { stroke-dashoffset: 0; transition: stroke-dashoffset .6s var(--ease); }
.fld.is-focus .m-box--combo .m-trim path { transition-duration: .32s; }
.fld:has([aria-invalid="true"]) .m-trim path { stroke: var(--req); }
.fld[data-m-on] :is(input, textarea):focus, .fld[data-m-on] :is(input, textarea):hover { border-color: var(--field); box-shadow: none; }
.fld[data-m-on] :is(input, textarea)[aria-invalid="true"]:is(:focus, :hover) { border-color: var(--req); }

/* our own dropdown */
.m-native { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.m-combo { position: relative; display: flex; align-items: center; width: 100%; min-height: 54px; padding: 13px 44px 13px 16px; border: 1px solid var(--field); border-radius: var(--r-field); background: var(--card); color: var(--card-ink);
  font-size: 17px; line-height: 1.4; cursor: pointer; outline: none; -webkit-user-select: none; user-select: none; transition: border-color .2s var(--ease); }
.m-combo.is-empty { color: var(--hint); }
.m-combo__val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fld:has(select[aria-invalid="true"]) .m-combo { border-color: var(--req); }
.m-chev { position: absolute; right: 16px; top: 50%; width: 12px; height: 8px; margin-top: -4px; overflow: visible; color: var(--card-ink); transition: transform .42s var(--ease); }
.m-chev path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.m-box.is-open .m-chev { transform: rotate(180deg); }
.m-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 6; display: grid; gap: 2px; margin: 0; padding: 6px; list-style: none; background: var(--card); color: var(--card-ink);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 2px rgb(13 16 19 / .06), 0 18px 40px rgb(13 16 19 / .16); max-height: 320px; overflow: auto; outline: none; }
.m-list[hidden] { display: none; }
.m-opt { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 46px; padding: 0 12px 0 14px; border-radius: 8px; font-size: 16px; cursor: pointer; transition: background-color .3s var(--ease); }
.m-opt__tick { flex: none; width: 16px; height: 16px; overflow: visible; }
.m-opt__tick path { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1.2; stroke-dashoffset: 1.1; transition: stroke-dashoffset .45s var(--ease); }
.m-opt[aria-selected="true"] { font-weight: 600; cursor: default; }
.m-opt[aria-selected="true"] .m-opt__tick path { stroke-dashoffset: 0; }
.m-list.is-fresh .m-opt, .m-list.is-fresh .m-opt__tick path { transition: none; }
.m-opt.is-active { background: color-mix(in srgb, var(--card-ink) 7%, var(--card)); }
@media (hover: hover) and (pointer: fine) { .m-opt[aria-selected="false"]:hover { background: color-mix(in srgb, var(--card-ink) 7%, var(--card)); } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .m-list { box-shadow: 0 1px 2px rgb(0 0 0 / .3), 0 18px 40px rgb(0 0 0 / .55); } }
:root[data-theme="dark"] .m-list { box-shadow: 0 1px 2px rgb(0 0 0 / .3), 0 18px 40px rgb(0 0 0 / .55); }

/* the consent box: its tick is drawn */
.consent { position: relative; }
.m-tick { position: absolute; left: 0; top: 1px; width: 22px; height: 22px; overflow: visible; pointer-events: none; }
.m-tick path { fill: none; stroke: var(--card); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1.2; stroke-dashoffset: 1.1; transition: stroke-dashoffset .15s; }
.consent input:checked + .m-tick path { stroke-dashoffset: 0; transition: stroke-dashoffset .4s var(--ease) .05s; }
html.m-on .consent input:checked { background-image: none !important; }

/* the process band: its tiles wait to be laid until the band is seen */

/* a theme change: a quiet crossfade */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .6s; animation-timing-function: cubic-bezier(.4, 0, .2, 1); }

/* ---------- responsive (kept last) ---------- */
@media (max-width: 1180px) {
  .ln__lab span { font-size: 14px; }
  .nav ul { gap: 20px; }
  .nav a { font-size: 15px; }
}
@media (max-width: 1080px) {
  .hero { display: flex; flex-direction: column; min-height: calc(100svh - var(--hdr)); }
  .hero__media { position: relative; inset: auto; z-index: 0; flex: 1 1 auto; min-height: clamp(130px, 28svh, 560px); }
  .hero__media img { position: absolute; inset: 0; object-position: 74% 40%; }
  .hero__media::after { background: var(--hero-veil-sm); }
  .hero__in { padding-block: 4px clamp(22px, 4.5svh, 64px); }
  .hero__copy { gap: clamp(12px, 2.2svh, 18px); }
  .kicker { order: 1; }
  .h1 { order: 2; font-size: clamp(36px, min(8.6vw, 7.4svh), 76px); }
  .hero__cta { order: 3; padding-top: 4px; }
  .hero__lead { order: 4; }
  .nav { display: none; }
  .burger { display: block; }
  .hdr__call { margin-left: auto; }
  .faq .wrap { grid-template-columns: minmax(0, 1fr); }
  .faq__side { position: static; }
  .ct .wrap { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .ct__left, .ct .fcard, .ct .stops { grid-column: 1; grid-row: auto; }
  .ct .fcard { max-width: 640px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .slope { display: none; }
  .steps { border-top: 1px solid var(--line); padding-top: 28px; }
}
@media (max-width: 900px) {
  .svc__body { grid-template-columns: minmax(0, 1fr); }
  .frame { display: none; }
  .row { grid-template-columns: 96px minmax(0, 1fr) 24px; grid-template-rows: auto auto; column-gap: 18px; row-gap: 4px; align-items: start; }
  .row__thumb { display: block; grid-row: 1 / 3; width: 96px; aspect-ratio: 4 / 5; height: auto; object-fit: cover; background: var(--line); }
  .row__n { display: none; }
  .row__name { grid-column: 2; align-self: end; }
  .row__line { grid-column: 2; }
  .row__go { grid-column: 3; grid-row: 1 / 3; }
  .mats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mats__labels { display: none; }
  .mcard dt { display: block; font: 600 12px/1.3 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--on-2); margin-bottom: 4px; }
  .ln { flex-wrap: wrap; }
  .ln__w { white-space: normal; font-size: clamp(32px, 9.2vw, 56px); }
  .ln__rule, .ln__dot { display: none; }
  .ln__lab { flex: 1 0 100%; padding: 10px 0 16px 27px; position: relative; }
  .ln__lab::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 16px; width: 1px; background: var(--ink); opacity: .45; }
  .ln__lab::after { content: ""; position: absolute; left: 0; top: 4px; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 16%, transparent); }
  .ft__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft__brand { grid-column: 1 / -1; }
  .ft__bar { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .ft__legal { justify-content: flex-start; flex-wrap: wrap; }
  .ft__bar .ft__copy { order: 3; }
}
@media (max-width: 767px) {
  :root { --hdr: 64px; }
  /* the materials on a phone: one at a time, swiped (a finger has no hover and needs no arrows) */
  .mats { grid-template-columns: repeat(3, minmax(250px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * max(var(--gut), env(safe-area-inset-left, 0px))); padding-inline: max(var(--gut), env(safe-area-inset-left, 0px)); scroll-padding-inline: max(var(--gut), env(safe-area-inset-left, 0px)); }
  .mats::-webkit-scrollbar { display: none; }
  .mcard { scroll-snap-align: start; }
  body { font-size: 17px; }
  .brand { font-size: 20px; }
  .hdr.is-scrolled, .hdr.is-scrolled .hdr__in { transform: none; }
  .hdr__call { min-height: 44px; padding: 0 1.5em; font-size: 15px; }
  .hdr__call .long { display: none; }
  .hdr__call .short { display: inline; }
  .kicker { font-size: 12.5px; }
  .h1 { font-size: clamp(30px, min(11vw, 6.4svh), 52px); }
  .hero__cta { flex-direction: column; gap: 10px; }
  .hero__cta .btn { width: 100%; min-height: clamp(48px, 7.4svh, 56px); }
  .hero__lead { font-size: 16px; }
  .co__lab { max-width: 160px; font-size: 13.5px; }
  .co__lab span { font-size: 12px; }
  .steps { grid-template-columns: minmax(0, 1fr); border-top: 0; padding-top: 0; row-gap: 0; }
  .step { position: relative; padding: 0 0 30px 34px; }
  .step::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: -6px; width: 1px; background: var(--ink); opacity: .35; }
  .step:last-child::before { display: none; }
  .step::after { content: ""; position: absolute; left: 0; top: 2px; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--paper); }
  .step--big::after { background: var(--ink); box-shadow: 0 0 0 5px color-mix(in srgb, var(--ink) 15%, transparent); }
  .shot img { height: auto; width: 78vw; aspect-ratio: 4 / 5; }
  .strip__arrow { display: none !important; }
  .stops { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .stops li { grid-template-columns: 28px minmax(0, 1fr); padding-block: 14px; }
  .bignum { font-size: clamp(34px, 10.4vw, 48px); }
  .qa .ans { padding-right: 0; }
  .prefs { justify-content: flex-start; }
  /* the call bar stands from the first paint of every page, so moving between pages never takes it away and brings it
     back (Daniel, 1 Nov 2026: "flickers ... visible on the call buttons"), and the first screen ends above it. The call
     leads (Daniel, 2 Nov 2026: "put the phone buttons more prominently at the front"): the bar's call button is the
     wide one and shows the number, and the first screen keeps its own call button under the title while its quote
     button gives way to the bar's. The open menu (z-index 45) covers the bar. */
  :root { --cbar-h: calc(65px + max(12px, env(safe-area-inset-bottom, 0px))); }
  .cbar { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--top);
    padding: 12px max(16px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    border-top: 1px solid var(--on-line); }
  .hero { min-height: calc(100svh - var(--hdr) - var(--cbar-h)); }
  .hero .hero__cta .btn--ghost { display: none; }
  .cbar .btn { min-height: 52px; padding: 0 .9em; font-size: 16px; width: 100%; }
  .cbar__call .num { font-weight: 600; opacity: 1; }   /* the number fits the bar's call button down to 320 px */
  .ft { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}
/* a phone this short keeps the photo, the title and the call button in its first screen; the line under them waits
   (360x640 ran 8 to 15 px under the call bar with it) */
@media (max-width: 767px) and (max-height: 660px) { .hero__lead, .phero__lead { display: none; } }
/* 320 px: every call button that shows the number, and the call bar, drop a size so the words keep 24px from
   each edge (1.5 times the label); at 1em of padding they ran 16 px from the edges */
@media (max-width: 340px) {
  .btn:has(.num) { padding-inline: 24px; font-size: 15px; }
  .cbar { gap: 8px; padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px));
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .cbar .btn { padding: 0 24px; font-size: 14px; }
}
/* under 360 px the header's call button is the handset alone (its name is its aria-label): with the word it squeezed
   the menu button and pushed the page 16 px wide at 320; the bar and the first screen carry the number */
@media (max-width: 359px) { .hdr__call { width: 48px; padding: 0; } .hdr__call .short { display: none; } }
@media (max-width: 420px) {
  .ft__cols { grid-template-columns: minmax(0, 1fr); }
  .ft__bar > * { white-space: normal; }
}
@media (max-width: 360px) {
  .seg { display: grid; width: 100%; }
  .seg button + button { border-left: 0; border-top: 1px solid var(--on-line); }
}
@media (max-width: 767px), (pointer: coarse) { .fld input, .fld select, .fld textarea { font-size: 16px; } }

/* ---------- responsive: inner pages ---------- */
@media (max-width: 1180px) {
  .courses { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .course, .course:nth-child(6n + 1), .course:nth-child(6n + 4) { grid-column: span 2; }
  .course:nth-child(4n + 1) { grid-column: 1 / span 2; }
  .course:nth-child(4n + 3) { grid-column: 2 / span 2; }
}
@media (max-width: 1080px) {
  .tape__marks { grid-template-columns: repeat(min(var(--n), 3), minmax(0, 1fr)); row-gap: 40px; column-gap: 0; }
  .tape__rule { display: none; }
  .tape__marks { margin-top: 0; border-top: 1.5px solid color-mix(in srgb, var(--ink) 50%, transparent); }
  .tape__mark { padding-top: 34px; }
  .tape__mark::before { height: 22px; }
  .tape__mark::after { top: 16px; }
}
@media (max-width: 900px) {
  .ojobs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ojob__line { font-size: 14.5px; }
  .phero__in { display: flex; flex-direction: column; align-items: stretch; gap: 0; min-height: calc(100svh - var(--hdr)); padding-block: 0; }
  .phero__media { order: -1; flex: 1 1 auto; height: auto; min-height: clamp(150px, 30svh, 560px); width: auto; border-radius: 0; justify-self: stretch;
    margin-inline: calc(-1 * max(var(--gut), env(safe-area-inset-left, 0px))); }
  .phero__media > img[src*="/svc-pala-"] { object-position: 50% 24%; }   /* the strip keeps the roofer's head (site.js reads it) */
  .phero__copy { max-width: none; padding-block: clamp(18px, 3.4svh, 40px) clamp(22px, 4.5svh, 64px); gap: clamp(12px, 2.2svh, 18px); }
  .phero .kicker { order: 1; }
  .phero__h1 { order: 2; font-size: clamp(32px, min(8.4vw, 6.6svh), 64px); }
  .phero .hero__cta { order: 3; }
  .phero__offer { order: 3; font-size: 15px; }   /* after the call, which comes first in the markup */
  .phero__lead { order: 4; }
  .courses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course, .course:nth-child(n) { grid-column: auto; }
  .wall__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .phero__in { min-height: calc(100svh - var(--hdr) - var(--cbar-h)); }
  .phero:not(.nf) .hero__cta .btn--ghost { display: none; }      /* the bar holds the quote; the call stays up front */
  .phero.nf .hero__cta .btn--ghost { display: none; }            /* its call button is the bar's own */
  .phero__media { min-height: clamp(120px, 21svh, 560px); }
  .phero__h1 { font-size: clamp(30px, min(10.4vw, 6.2svh), 48px); }
  .phero .hero__cta { flex-direction: column; gap: 10px; }
  .phero .hero__cta .btn { width: 100%; min-height: clamp(48px, 7.4svh, 56px); }
  .phero__lead { font-size: 16px; }
  .courses { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .course { grid-template-columns: 52px minmax(0, 1fr); column-gap: 14px; row-gap: 6px; }
  .course__n { grid-row: 1 / span 2; font-size: 34px; }
  .tape__marks { grid-template-columns: minmax(0, 1fr); row-gap: 0; border-top: 0; }
  .tape__mark { padding: 0 0 28px 34px; }
  .tape__mark::before { left: 5px; top: 8px; bottom: -8px; height: auto; }
  .tape__mark:last-child::before { display: none; }
  .tape__mark::after { top: 4px; }
  .wall__grid { grid-template-columns: minmax(0, 1fr); }
  .wall__item img { aspect-ratio: 4 / 5; }
  .nf__num { font-size: clamp(44px, min(14vw, 8svh), 64px); }
}
@media (max-width: 767px) and (max-height: 600px) { .phero__lead { display: none; } }


/* ===================================================================================== */
/* 10 light over the page (assets/js/bands.js)                                           */
/* ===================================================================================== */
/* Nothing is ever held back for the scroll: every band, word, line and photo stands from the first paint. Daniel,
   30 Oct 2026: "every one of these where i scroll down and there is nothing, and then they appear -- this is such
   bullshit" (the bands used to be laid, drawn or faded in as they came into view, the photos to rise out of a dark mask).
   What moves is light laid once over what is already there, the closing photo's drift, and the sun on the roof beside
   the contact form. */

/* hero: the sun runs up the metal, a warm-white light crossing the tile crests from the eave to the ridge, once; the mask
   is the photo's crests (img/hero-glint.webp, ../design/glint/glint-mask.py), placed as the photo is */
/* the mask image (img/hero-glint.webp) is set by bands.js once it has fetched it, after the page's load event and first
   paint: set here from the start, its 143 KB were fetched with the first paint, twice, racing the photo */
.glint { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; mix-blend-mode: screen;
  -webkit-mask: none 50% 35% / cover no-repeat; mask: none 50% 35% / cover no-repeat;
  background: linear-gradient(160deg, transparent 0 44%, rgb(255 222 190 / .25) 47.5%, rgb(255 246 234) 50%, rgb(255 222 190 / .25) 52.5%, transparent 56% 100%) 50% 0 / 100% 260% no-repeat; }
/* the band lies along the courses (160deg: they climb 20deg to the right) and takes about three seconds from the eave to
   the ridge, at an even pace. On a wide screen the roof is only the lower part of its travel, so the band stops at 60%
   once it has passed the ridge; on a phone's strip the roof fills the frame and the band runs the whole way */
.glint.is-run { animation: glint 4.2s cubic-bezier(.37, 0, .63, 1) both; }
@keyframes glint { 0% { opacity: 0; background-position: 50% 0; } 12% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; background-position: 50% 60%; } }
@keyframes glint-sm { 0% { opacity: 0; background-position: 50% 0; } 12% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; background-position: 50% 100%; } }
@media (max-width: 1080px) { .glint { -webkit-mask-position: 74% 40%; mask-position: 74% 40%; } .glint.is-run { animation-name: glint-sm; } }

/* team: a warm light runs once along each verb's wire, top to bottom */
.ln__rule { position: relative; opacity: 1; background: color-mix(in srgb, var(--ink) 55%, transparent); }
.ln__rule::after { content: ""; position: absolute; top: -1px; left: -90px; width: 90px; height: 3px; border-radius: 2px; opacity: 0;
  background: linear-gradient(90deg, rgb(232 98 44 / 0), var(--warm) 60%, rgb(232 98 44 / 0)); }
html.b-on .team.is-in .ln__rule::after { animation: wire 1.6s cubic-bezier(.45, 0, .2, 1) calc(var(--i) * 280ms + .3s) both; }
@keyframes wire { 0% { opacity: 0; left: -90px; } 15%, 85% { opacity: 1; } 100% { opacity: 0; left: 100%; } }

/* materials: each one drawn in section, its real profile; the sun runs along it once */
.prof { display: block; width: 100%; height: 36px; margin-bottom: 12px; overflow: hidden; color: var(--on); }
.prof__l { fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linejoin: round; opacity: .78; }
.prof__g { fill: none; stroke: var(--warm); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: .06 2; stroke-dashoffset: .07; opacity: 0; }
html.b-on .mat.is-in .prof__g { animation: sun 2.3s cubic-bezier(.4, 0, .2, 1) calc(var(--i) * 260ms + .3s) both; }
@keyframes sun { 0% { opacity: 0; stroke-dashoffset: .07; } 12%, 86% { opacity: 1; } 100% { opacity: 0; stroke-dashoffset: -1.02; } }

/* contact: the sun on the roof (assets/js/sunroof.js; Daniel picked it of the dots directions, 30 Oct 2026). A roof plane
   in dots, the sun's reflection gliding across it; in the column beside the tall form, under the stops, never under words.
   The crests light in the ember by day and in a warm white by night (the ember lit in dots on night reads as embers) */
.sunroof { --sr-dot: 13, 16, 19; --sr-dot-a: .3; --sr-sun: 232, 98, 44; --sr-ridge: 232, 98, 44;
  position: relative; width: 100%; max-width: 640px; aspect-ratio: 487 / 316; }
:root[data-theme="dark"] .sunroof { --sr-dot: 238, 241, 243; --sr-dot-a: .24; --sr-sun: 255, 241, 226; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sunroof { --sr-dot: 238, 241, 243; --sr-dot-a: .24; --sr-sun: 255, 241, 226; } }
.sunroof canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sunroof__pause { position: absolute; top: 0; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(var(--sr-dot), .26);
  background: transparent; display: grid; place-items: center; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: border-color .4s var(--ease); }
.sunroof__pause span { width: 10px; height: 12px; border-left: 3px solid rgba(var(--sr-dot), .7); border-right: 3px solid rgba(var(--sr-dot), .7); }
.sunroof__pause[aria-pressed="true"] span { width: 0; height: 0; margin-left: 3px; border: 0; border-left: 10px solid rgba(var(--sr-dot), .7); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
@media (hover: hover) and (pointer: fine) { .sunroof__pause:hover { border-color: rgba(var(--sr-dot), .6); } }
.sunroof__pause:focus-visible { outline: 2px solid var(--warm); outline-offset: 3px; }
@media (min-width: 1081px) {
  .ct .wrap { grid-template-rows: auto auto 1fr; }
  .ct .fcard { grid-row: 1 / span 3; }
  .sunroof { grid-column: 1; grid-row: 3; align-self: end; }
}
@media (max-width: 1080px) { .sunroof { display: none; } }

/* contact: a warm line runs once round the form card from the foot of its left side, as flashing goes round a chimney */
.trace { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
.trace path { fill: none; stroke: var(--warm); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1 1.2; stroke-dashoffset: 1.1; opacity: 0; }
html.b-on .ct.is-in .trace path { animation: trace 3.8s cubic-bezier(.45, 0, .2, 1) .2s both; }
@keyframes trace { 0% { opacity: 1; stroke-dashoffset: 1.1; } 55% { opacity: 1; stroke-dashoffset: 0; } 100% { opacity: 0; stroke-dashoffset: 0; } }

/* closing: the photo drifts a little slower than the page (bands.js sets its transform) */
.roofline.is-drift img { transform: scale(1.12); will-change: transform; }

/* ===================================================================================== */
/* 11 the build-up band (parts/buildup.php)                                              */
/* ===================================================================================== */

/* a roof halfway through the work, in 3D: one of four renders shows, lit for the theme, wide or tall for the screen;
   the callouts follow the one showing (site.js), and only that one loads */
.build__fig { position: relative; height: clamp(380px, 31vw, 600px); overflow: hidden; background: var(--paper); }
.build__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.build__img--l { display: block; }
/* the lines in the text's own color with a glow of the page's, so they hold on the white render and the dark one alike
   (the photos' white lines with a dark shadow all but vanish on white) */
.build .co--tag { color: var(--ink); }
.build .co--tag svg { filter: drop-shadow(0 0 1px var(--paper)) drop-shadow(0 0 2px var(--paper)); }
:root[data-theme="dark"] .build__img--l { display: none; }
:root[data-theme="dark"] .build__img--d { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .build__img--l { display: none; }
  :root:not([data-theme="light"]) .build__img--d { display: block; }
}
@media (max-width: 900px) {
  .build__fig { height: min(125vw, 720px); }
  .build__img--l { display: none; }
  .build__img--pl { display: block; }
  :root[data-theme="dark"] .build__img--d, :root[data-theme="dark"] .build__img--pl { display: none; }
  :root[data-theme="dark"] .build__img--pd { display: block; }
}
@media (max-width: 900px) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .build__img--d, :root:not([data-theme="light"]) .build__img--pl { display: none; }
  :root:not([data-theme="light"]) .build__img--pd { display: block; }
}

/* ===================================================================================== */
/* 12 before and after (parts/compare.php)                                               */
/* ===================================================================================== */

/* one device: the after photo laid over the before, cut at a white line the visitor moves (site.js, "compare"); it
   opens on the after, the line at 90%. The line, the knob and the words float over the photo: white with a dark glyph
   and a shadow in both themes, the words on the callouts' soft plate, never in a box */
.ba { background: var(--band-2); padding-block: var(--sect); }
.ba--white { background: var(--white); }
.ba__in { display: grid; gap: clamp(32px, 4vw, 56px); }
.ba--one .ba__in { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; column-gap: clamp(40px, 5vw, 96px); }
.ba .h2 { font-size: clamp(32px, 3.7vw, 56px); line-height: 1.05; }
.ba__cases { display: grid; gap: clamp(16px, 1.6vw, 22px); }
.ba:not(.ba--one) .ba__cases { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(32px, 3vw, 40px); }
.ba__case { display: grid; gap: 12px; }
.ba__cap { display: flex; flex-wrap: wrap; column-gap: 10px; font-size: 15px; color: var(--ink-2); }
.ba__cap b { color: var(--ink); font-weight: 600; }
.ba__foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; }
.ba:not(.ba--one) .ba__foot { grid-column: 1 / -1; }
.ba__hint { color: var(--ink-2); font-size: 16px; }

.cmp { --at: 90%; position: relative; aspect-ratio: 4 / 3; overflow: hidden; isolation: isolate; border-radius: var(--r-img); background: var(--line);
  cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.cmp__img, .cmp__after { position: absolute; inset: 0; width: 100%; height: 100%; }
.cmp__img { object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.cmp__after { clip-path: inset(0 calc(100% - var(--at)) 0 0); }
/* the handle: a 48 px strip to grab, the white line in its middle, the knob halfway down */
.cmp__handle { position: absolute; top: 0; bottom: 0; left: var(--at); z-index: 2; width: 48px; margin-left: -24px; touch-action: none; cursor: ew-resize; }
.cmp__handle:focus-visible { outline: none; }
.cmp__handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 8px rgb(0 0 0 / .35); }
.cmp__knob { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; display: grid; place-items: center;
  border-radius: 50%; background: #fff; color: #0d1013; box-shadow: 0 6px 22px rgb(0 0 0 / .26); transition: box-shadow .2s var(--ease);
  transform: translateX(var(--kx, 0px)); }
.cmp__knob svg { width: 24px; height: 24px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cmp.is-drag .cmp__knob { box-shadow: 0 0 0 3px var(--warm), 0 8px 26px rgb(0 0 0 / .32); }
@media (hover: hover) and (pointer: fine) { .cmp__handle:hover .cmp__knob { box-shadow: 0 0 0 3px var(--warm), 0 8px 26px rgb(0 0 0 / .32); } }
/* the keyboard's ring last, so it shows under a resting pointer too */
.cmp__handle:focus-visible .cmp__knob { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--warm), 0 6px 22px rgb(0 0 0 / .26); }
/* the words stand on the hero's daylight plate in both themes: no scrim lies under them, and white words on the sky
   read faint by night */
.cmp__tag { position: absolute; top: 16px; z-index: 1; padding: 7px 11px 8px; font: 600 15px/1.25 var(--text); color: #0d1013;
  white-space: nowrap; pointer-events: none; isolation: isolate; transition: opacity .2s var(--ease); }
.cmp__tag::before { content: ""; position: absolute; inset: -3px -5px; z-index: -1; border-radius: 12px; background: rgb(255 255 255 / .93); filter: blur(5px); }
.cmp__tag--after { right: calc(100% - var(--at) + 14px); }
.cmp__tag--before { left: calc(var(--at) + 14px); }
.cmp__tag.is-off { opacity: 0; }
/* while it waits on screen and nobody has touched it, the knob's arrows lean outward now and then */
@media (prefers-reduced-motion: no-preference) {
  .cmp.is-live:not(.is-used) .cmp__l { animation: cmp-l 2.8s var(--ease) infinite; }
  .cmp.is-live:not(.is-used) .cmp__r { animation: cmp-r 2.8s var(--ease) infinite; }
}
@keyframes cmp-l { 0%, 55%, 100% { transform: none; } 70% { transform: translateX(-3px); } }
@keyframes cmp-r { 0%, 55%, 100% { transform: none; } 70% { transform: translateX(3px); } }
@media (max-width: 900px) { .ba--one .ba__in { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) {
  .ba:not(.ba--one) .ba__cases { grid-template-columns: minmax(0, 1fr); }
  .cmp__knob { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
  .cmp__tag { font-size: 14px; }
}
