/* TPH-rak Oy, style 35 Cinematic dark, variant "mason-line": a drawn brick wall at dusk
   under a centred headline; the taut mason line from the hero runs through every section
   head. Services laid as a running bond, the two ways to order joined by the line.
   Big Shoulders Display 800 (headings) + Hanken Grotesk 400/600.
   Type scale 13/15/17/20/24/phone/h2/h1. Radius 4 px only. */

@font-face { font-family: "Big Shoulders"; src: url("../fonts/big-shoulders-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Hanken"; src: url("../fonts/hanken-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken"; src: url("../fonts/hanken-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ink: #12141a;
  --ink-2: #1b1e26;
  --mortar: #2b2623;
  --text: #ece6dc;
  --muted: #a39d94;
  --line: #ff8a2b;
  --rule: rgb(236 230 220 / 0.12);
  --display: "Big Shoulders", "Arial Narrow", sans-serif;
  --font: "Hanken", system-ui, "Segoe UI", sans-serif;
  --s-label: 0.8125rem;
  --s-ui: 0.9375rem;
  --s-body: 1.0625rem;
  --s-lead: 1.25rem;
  --s-h3: 1.5rem;
  --s-phone: clamp(2rem, 3.4vw, 2.75rem);
  --s-h2: clamp(2.5rem, 5vw, 4rem);
  --s-h1: clamp(3rem, 7.6vw, 7.25rem);
  --radius: 4px;
  --section: clamp(88px, 10vw, 140px);
  --ease: cubic-bezier(.165, .84, .44, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 88px; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--font); font-size: var(--s-body); line-height: 1.65; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.22em; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--line); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 40; padding: 10px 16px; background: var(--line); color: var(--ink); }
.skip:focus { top: 10px; }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: clamp(16px, 3vw, 40px); }
h1, h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.005em; text-wrap: balance; overflow-wrap: anywhere; }
h1 { font-size: var(--s-h1); line-height: 0.92; }
h2 { font-size: var(--s-h2); line-height: 0.98; }
h3 { font-size: var(--s-h3); font-weight: 600; line-height: 1.25; }
.section { padding-top: var(--section); }
.lead { font-size: var(--s-lead); line-height: 1.55; color: var(--muted); }

/* The mason line: a label hooked on a line block, the line pulled taut to the edge */
.line-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; font-size: var(--s-label); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--line); }
.line-head::before { content: ""; flex: none; width: 10px; height: 18px; border-radius: 2px; background: #c9a26a; }
.line-head::after { content: ""; flex: 1; height: 18px; background: linear-gradient(#c9a26a, #c9a26a) right center / 10px 18px no-repeat, linear-gradient(var(--line), var(--line)) left center / calc(100% - 10px) 1.5px no-repeat; }
.section-head { display: grid; gap: 18px; margin-bottom: 48px; }
.section-head h2 { max-width: 16ch; }
.section-head p:not(.line-head) { max-width: 36rem; color: var(--muted); }

/* Header */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 30; background: var(--ink); border-bottom: 1px solid var(--rule); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.logo { font-family: var(--display); font-weight: 800; font-size: var(--s-h3); letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; }
.logo span { color: var(--muted); }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: var(--s-ui); }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 2px; }
.nav-call { font-size: var(--s-ui); font-weight: 600; text-decoration: none; white-space: nowrap; }

/* Buttons: one filled action per screen */
.btn { display: inline-flex; align-items: center; padding: 15px 26px; border: 0; border-radius: var(--radius); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn-line { background: var(--line); color: var(--ink); box-shadow: 0 10px 36px -12px rgb(255 138 43 / 0.6); transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease); }
.btn-quiet { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-quiet:hover { color: var(--line); }
.btn-line:hover { box-shadow: 0 14px 44px -10px rgb(255 138 43 / 0.85); transform: translateY(-2px); }
.text-link { font-weight: 600; color: var(--text); text-decoration-color: var(--line); text-decoration-thickness: 2px; }
.text-link:hover { color: var(--line); }

/* Hero: the drawn wall full-bleed, the headline centred in the dusk above it */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); min-height: clamp(680px, 100svh, 1000px); overflow: hidden; isolation: isolate; text-align: center; }
.hero-art { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero-content { display: grid; justify-items: center; align-content: start; gap: 22px; padding-top: clamp(120px, 15vh, 168px); }
.hero h1 { max-width: 20ch; }
.h1-place { display: block; }
.hero .lead { max-width: 34ch; text-wrap: balance; }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; margin-top: 6px; }
.art-note { position: absolute; right: 0; left: 0; bottom: 18px; font-size: var(--s-label); color: var(--muted); text-align: right; }
@media (prefers-reduced-motion: no-preference) {
  .mason-line line { transform-box: fill-box; transform-origin: left center; animation: pull 0.9s 0.25s var(--ease) both; }
  .hero-content > * { animation: rise 0.6s var(--ease) both; }
  .hero-content > :nth-child(2) { animation-delay: 0.08s; }
  .hero-content > :nth-child(3) { animation-delay: 0.16s; }
}
@keyframes pull { from { transform: scaleX(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* Services as a running bond: two courses, joints offset, mortar shows between */
.bond { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; padding: 6px; background: var(--mortar); border-radius: var(--radius); }
.brick { display: grid; align-content: start; gap: 10px; padding: clamp(24px, 3vw, 40px); background: var(--ink-2); border-radius: 2px; text-decoration: none; transition: background-color 0.25s var(--ease); }
.brick:hover { background: #222631; }
.brick:hover h3 { color: var(--line); }
/* courses: 4 + 2 above, 3 + 3 below, so the joints never line up */
.brick-a { grid-column: 1 / 5; }
.brick-b { grid-column: 5 / 7; }
.brick-c { grid-column: 1 / 4; }
.brick-d { grid-column: 4 / 7; }
.brick-no { font-family: var(--display); font-weight: 800; font-size: var(--s-h3); color: var(--muted); }
.brick.brick-a h3 { font-family: var(--display); font-weight: 800; font-size: var(--s-phone); line-height: 0.98; text-transform: uppercase; max-width: 12ch; }
.brick p, .brick li { color: var(--muted); max-width: 30rem; }
.brick li::before { content: "– "; }


/* Call band: Toni's number beside the town drawn from OpenStreetMap */
.call { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.call .text-link { display: inline-block; margin-top: 24px; }
.big-phone { display: inline-block; margin: 6px 0 22px; font-family: var(--display); font-weight: 800; font-size: var(--s-phone); line-height: 1; letter-spacing: 0.01em; text-decoration: none; white-space: nowrap; }
.big-phone:hover { color: var(--line); }
.info { display: grid; grid-template-columns: 8rem 1fr; gap: 8px 16px; }
.info dt { color: var(--muted); }
.town { padding-top: 40px; }
.town img { width: 100%; max-width: 260px; margin-inline: auto; border-radius: var(--radius); }
.town figcaption, .osm-attribution { margin-top: 10px; font-size: var(--s-label); color: var(--muted); text-align: center; }

/* Sub-page band */
.page-hero { padding-block: 152px 0; }
.page-hero h1 { font-size: var(--s-h2); line-height: 0.98; max-width: 18ch; }
.page-hero .lead { margin-top: 20px; max-width: 38rem; }

/* Service chapters: one wide plate, a pair side by side, one compact band with the call */
.chapter { display: grid; gap: 24px; align-content: start; }
.chapter img { width: 100%; border-radius: var(--radius); border: 1px solid var(--rule); }
.chapter h2 { font-size: var(--s-phone); }
.chapter h2 .brick-no { display: block; margin-bottom: 6px; }
.chapter-text { display: grid; gap: 14px; }
.chapter-text p { color: var(--muted); max-width: 34rem; }
.chapter-text ul { display: grid; gap: 6px; }
.chapter-text li::before { content: "– "; }
.chapter-text .btn { justify-self: start; margin-top: 10px; }
.chapter-wide { padding-top: 48px; }
.chapter-wide img { aspect-ratio: 7 / 3; object-fit: cover; }
.chapter-wide .chapter-text { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 72px; align-items: end; }
.chapter-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding-top: var(--section); }
.chapter-band { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: clamp(32px, 6vw, 88px); align-items: center; margin-top: var(--section); padding-top: 48px; border-top: 1px solid var(--rule); }
.chapters-note { margin-top: 20px; font-size: var(--s-label); color: var(--muted); }

/* Contact page */
/* One sheet: the number leads on the left, the form is the quieter column on the right */
.contact { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 104px); padding-top: 56px; }
.contact-panel, .contact-form { align-self: start; }
.contact-form { padding-left: clamp(0px, 4vw, 48px); border-left: 1px solid var(--rule); }
.contact-panel .info { margin: 22px 0 28px; }
.contact .panel-title { font-family: var(--font); font-size: var(--s-h3); font-weight: 600; line-height: 1.25; text-transform: none; }
.call-number { font-size: var(--s-h2); margin: 10px 0 24px; text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 3px; text-underline-offset: 0.12em; }
.map { aspect-ratio: 16 / 10; border-radius: var(--radius); border: 1px solid var(--rule); background: var(--ink); display: grid; place-content: center; gap: 8px; text-align: center; padding: 16px; }
.map.is-loaded { display: block; padding: 0; overflow: hidden; }
.map iframe { width: 100%; height: 100%; border: 0; }
.map-load { font: inherit; font-weight: 600; padding: 10px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; color: var(--text); cursor: pointer; justify-self: center; }
.map-note { font-size: var(--s-label); color: var(--muted); }
.map-link { display: inline-block; margin-top: 12px; font-size: var(--s-ui); }
.contact-form { display: grid; gap: 6px; }
.contact-form h2 { margin-bottom: 8px; }
.contact-form label { font-size: var(--s-ui); font-weight: 600; margin-top: 10px; }
.contact-form input, .contact-form textarea { width: 100%; min-width: 0; font: inherit; color: var(--text); background: var(--ink); border: 1px solid rgb(236 230 220 / 0.3); border-radius: var(--radius); padding: 11px 12px; }
.contact-form .btn { margin-top: 20px; justify-self: start; }
.form-note { font-size: var(--s-ui); color: var(--muted); margin-top: 12px; }
.form-status { min-height: 1.6em; font-size: var(--s-ui); }
.form-status[data-state="error"] { color: #ffb4a8; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Privacy page */
.legal { max-width: 46rem; padding-block: 140px 0; }
.legal h1 { font-size: var(--s-h2); margin-bottom: 12px; }
.legal h2 { font-family: var(--font); font-size: var(--s-h3); font-weight: 600; text-transform: none; margin: 32px 0 8px; }
.legal p { margin-bottom: 12px; color: var(--muted); }

/* Footer, mobile call bar */
.foot { margin-top: var(--section); padding-block: 32px 48px; border-top: 1px solid var(--rule); font-size: var(--s-ui); color: var(--muted); }
.foot a[href^="tel:"] { white-space: nowrap; }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; }
.callbar { display: none; }

/* Page-to-page cross-fade (core/premium) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-group(root) { animation-duration: 250ms; animation-timing-function: cubic-bezier(.165, .84, .44, 1); }
}

@media (max-width: 900px) {
  .town { padding-top: 0; }
  .town img { max-width: 150px; }
  .contact-form { padding-left: 0; border-left: 0; padding-top: 32px; border-top: 1px solid var(--rule); }
  .call, .contact, .chapter-band, .chapter-pair, .chapter-wide .chapter-text { grid-template-columns: minmax(0, 1fr); }
  .chapter-band figure { order: -1; }
  .chapter-wide img { aspect-ratio: 4 / 3; }
  .nav-call { display: none; }
}
@media (max-width: 640px) {
  .nav-inner { flex-wrap: wrap; gap: 4px 18px; height: auto; min-height: 64px; padding-block: 8px; }
  .nav-links { gap: 18px; margin-left: 0; }
  .logo { margin-right: auto; }
  .hero { min-height: 0; }
  .hero-content { padding-top: 7rem; padding-bottom: 20px; }
  .hero h1 { font-size: clamp(2.5rem, 14vw, 3.25rem); }
  h2, .page-hero h1, .brick.brick-a h3 { font-size: clamp(1.75rem, 10vw, 2.5rem); }
  .hero .lead { font-size: var(--s-body); }
  .hero-art { position: relative; inset: auto; width: 180%; height: auto; aspect-ratio: 16 / 11; margin: -280px 0 0 -42%; }
  .art-note { position: static; padding: 4px 16px 0; text-align: left; }
  .bond { grid-template-columns: minmax(0, 1fr); }
  .brick-a, .brick-b, .brick-c, .brick-d { grid-column: auto; grid-row: auto; }
  .big-phone { font-size: clamp(2rem, 12vw, 2.5rem); }
  .info { grid-template-columns: 1fr; gap: 0; }
  .info dd { margin-bottom: 10px; overflow-wrap: anywhere; }
  .page-hero { padding-block: 7.5rem 40px; }
  body { padding-bottom: 72px; }
  .callbar { display: block; position: fixed; inset: auto 0 0 0; z-index: 25; padding: 18px; background: var(--ink-2); color: var(--line); border-top: 2px solid var(--line); text-align: center; font-weight: 600; text-decoration: none; }
}
