@font-face {
  font-family: "Bricolage";
  src: url("fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --beam: #000000;
  --wash: #ffffff;
  --ink: #000000;
  --muted: #4a4a4a;
  --canal: #2b50ff;
  --gorse: #ffd23f;
  --salt: #ff7ab6;
  --plain: #00a86b;
  --beam-w: 10px;
  --measure: 62ch;
  --pad: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font-family: "Bricolage", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
  font-weight: 400;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
a:hover { text-decoration-thickness: 4px; }

:focus-visible { outline: 4px solid var(--canal); outline-offset: 3px; }

.skip {
  position: absolute; left: 8px; top: -60px;
  background: var(--gorse); color: var(--ink); padding: 10px 16px; font-weight: 700; z-index: 10;
}
.skip:focus { top: 8px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Header ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 20px; padding-bottom: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 40px; height: 40px; flex: none; }
.nav { display: flex; gap: 24px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { text-decoration: none; font-weight: 600; font-size: 1rem; }
.nav a:hover { text-decoration: underline; }
.nav .nav-cta {
  background: var(--beam); color: var(--wash); padding: 10px 18px; border-radius: 999px;
}
.nav .nav-cta:hover { background: var(--canal); text-decoration: none; }
@media (max-width: 760px) {
  .nav a:not(.nav-cta) { display: none; }
}

/* ---------- The facade (hero) ---------- */
.facade {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(120px, auto);
  gap: var(--beam-w);
  background: var(--beam);
  border: var(--beam-w) solid var(--beam);
  margin-bottom: 0;
}
.panel {
  background: var(--wash);
  position: relative;
  padding: clamp(18px, 2.4vw, 32px);
  display: flex; flex-direction: column; justify-content: flex-end;
  min-width: 0;
}
.panel--headline { grid-column: 1 / span 8; grid-row: 1 / span 2; justify-content: space-between; gap: 28px; }
.panel--web      { grid-column: 9 / span 4; grid-row: 1; }
.panel--brace-a  { grid-column: 9 / span 2; grid-row: 2; padding: 0; }
.panel--ai       { grid-column: 11 / span 2; grid-row: 2; }
.panel--host     { grid-column: 1 / span 3; grid-row: 3; }
.panel--brace-b  { grid-column: 4 / span 2; grid-row: 3; padding: 0; }
.panel--mkt      { grid-column: 6 / span 3; grid-row: 3; }
.panel--act      { grid-column: 9 / span 4; grid-row: 3; justify-content: center; }

.fill { --c: var(--wash); background: var(--c); }
.fill--canal { --c: var(--canal); color: var(--wash); }
.fill--salt  { --c: var(--salt); }
.fill--gorse { --c: var(--gorse); }
.fill--plain { --c: var(--plain); }

.brace { width: 100%; height: 100%; min-height: 120px; }
.brace line { stroke: var(--beam); stroke-width: 10; vector-effect: non-scaling-stroke; }

h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0;
  max-width: 14ch;
}
.lede { font-size: clamp(1.1rem, 1.6vw, 1.35rem); max-width: 40ch; margin: 0; color: var(--ink); }

.tag { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1; margin: 0; }
.tag-sub { margin: 8px 0 0; font-size: 1rem; line-height: 1.35; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 700; font-size: 1.05rem;
  padding: 14px 24px; border-radius: 999px; text-decoration: none;
  border: 3px solid var(--beam);
  transition: background-color 120ms ease, color 120ms ease;
}
.btn:hover { text-decoration: none; }
.btn--solid { background: var(--beam); color: var(--wash); }
.btn--solid:hover { background: var(--canal); border-color: var(--canal); }
.btn--line { background: var(--wash); color: var(--ink); }
.btn--line:hover { background: var(--gorse); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.panel--act .btn { width: 100%; }
.panel--act .btn-row { flex-direction: column; }

/* One orchestrated moment: the timber frame fills with colour, panel by panel */
@media (prefers-reduced-motion: no-preference) {
  .facade .fill {
    background: linear-gradient(var(--c), var(--c)) no-repeat bottom / 100% 0%, var(--wash);
    animation: infill 700ms cubic-bezier(.2,.8,.2,1) forwards;
  }
  .facade .fill > * { opacity: 0; animation: reveal 300ms ease forwards; }
  .fill--canal { animation-delay: 150ms !important; }
  .fill--salt  { animation-delay: 350ms !important; }
  .fill--gorse { animation-delay: 550ms !important; }
  .fill--plain { animation-delay: 750ms !important; }
  .fill--canal > * { animation-delay: 550ms; }
  .fill--salt > *  { animation-delay: 750ms; }
  .fill--gorse > * { animation-delay: 950ms; }
  .fill--plain > * { animation-delay: 1150ms; }
}
@keyframes infill { to { background-size: 100% 100%, auto; } }
@keyframes reveal { to { opacity: 1; } }

@media (max-width: 900px) {
  .facade { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(110px, auto); }
  .panel--headline { grid-column: 1 / -1; grid-row: auto; }
  .panel--web     { grid-column: 1 / span 2; grid-row: auto; }
  .panel--ai      { grid-column: 3 / span 2; grid-row: auto; }
  .panel--host    { grid-column: 1 / span 2; grid-row: auto; }
  .panel--mkt     { grid-column: 3 / span 2; grid-row: auto; }
  .panel--brace-a { grid-column: 1 / span 1; grid-row: auto; }
  .panel--act     { grid-column: 2 / span 3; grid-row: auto; }
  .panel--brace-b { display: none; }
}
@media (max-width: 480px) {
  :root { --beam-w: 8px; }
  .panel--web, .panel--ai, .panel--host, .panel--mkt { grid-column: span 2; }
  .panel--brace-a { display: none; }
  .panel--act { grid-column: 1 / -1; }
  .tag { font-size: 1.3rem; }
  .tag-sub { font-size: 0.95rem; }
}

/* ---------- Sections ---------- */
section { scroll-margin-top: 16px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--beam { background: var(--beam); color: var(--wash); }
.section--beam a { color: var(--wash); }

h2 {
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 24px;
  max-width: 18ch;
}
h3 { font-size: 1.5rem; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 12px; font-weight: 800; }
p { margin: 0 0 1em; max-width: var(--measure); }
.intro { font-size: clamp(1.15rem, 1.8vw, 1.4rem); max-width: 48ch; }

/* The wave */
.wave { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.wave h2 { font-size: clamp(2.4rem, 6vw, 5rem); max-width: 12ch; }
.wave-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--wash); }
.wave-list li { padding: 18px 0; border-bottom: 2px solid var(--wash); font-size: 1.2rem; line-height: 1.35; }
.wave-list strong { color: var(--gorse); font-weight: 700; }
@media (max-width: 860px) { .wave { grid-template-columns: 1fr; } }

/* Rooms: services */
.rooms {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--beam-w); background: var(--beam); border: var(--beam-w) solid var(--beam);
  margin-top: 40px;
}
.room { background: var(--wash); display: flex; flex-direction: column; }
.room-head { padding: 22px 28px; border-bottom: var(--beam-w) solid var(--beam); }
.room-head h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0; }
.room-head p { margin: 6px 0 0; font-size: 1.05rem; }
.room-body { padding: 22px 28px 28px; }
.room ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 24px; }
.room li { padding: 6px 0 6px 18px; position: relative; break-inside: avoid; font-size: 1.02rem; line-height: 1.35; }
.room li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 8px; background: var(--beam); }
.room-note { margin: 18px 0 0; font-size: 1rem; color: var(--muted); }
.room-note a { color: var(--ink); }
@media (max-width: 860px) { .rooms { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .room ul { columns: 1; } }

/* Steps: a real sequence */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: var(--beam-w) solid var(--beam); counter-reset: step; }
.steps li { padding: 28px 24px 0 0; counter-increment: step; position: relative; }
.steps li::before {
  content: counter(step);
  display: inline-grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--beam); color: var(--wash); font-weight: 800; font-size: 1.4rem;
  margin-bottom: 18px;
}
.steps li:nth-child(1)::before { background: var(--canal); }
.steps li:nth-child(2)::before { background: var(--salt); color: var(--ink); }
.steps li:nth-child(3)::before { background: var(--gorse); color: var(--ink); }
.steps li:nth-child(4)::before { background: var(--plain); color: var(--ink); }
.steps p { font-size: 1.02rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); row-gap: 12px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Work */
.work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.job { border: var(--beam-w) solid var(--beam); display: flex; flex-direction: column; background: var(--wash); }
.job-sign { padding: 24px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; border-bottom: var(--beam-w) solid var(--beam); }
.job-sign .domain { font-weight: 800; font-size: clamp(1.25rem, 2vw, 1.55rem); letter-spacing: -0.02em; line-height: 1.1; overflow-wrap: normal; }
.job-sign .kind { font-size: 0.95rem; font-weight: 600; margin: 0; }
.job:nth-child(1) .job-sign { background: var(--salt); }
.job:nth-child(2) .job-sign { background: var(--canal); color: var(--wash); }
.job:nth-child(3) .job-sign { background: var(--plain); }
.job-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.job-body p { font-size: 1.02rem; margin: 0; }
.job-body .visit { margin-top: auto; font-weight: 700; }
@media (max-width: 900px) { .work { grid-template-columns: 1fr; } }

/* Who */
.who { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.family { border: var(--beam-w) solid var(--beam); }
.family > div { padding: 22px 26px; border-bottom: var(--beam-w) solid var(--beam); }
.family > div:last-child { border-bottom: 0; }
.family h3 { margin: 0 0 6px; font-size: 1.35rem; }
.family p { margin: 0; font-size: 1.02rem; }
.family .here { background: var(--gorse); }
@media (max-width: 860px) { .who { grid-template-columns: 1fr; } }

/* Contact */
.contact { background: var(--gorse); border-top: var(--beam-w) solid var(--beam); border-bottom: var(--beam-w) solid var(--beam); }
.contact h2 { font-size: clamp(2.4rem, 6vw, 5rem); max-width: 13ch; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.ways { display: flex; flex-direction: column; gap: 12px; }
.ways .btn { justify-content: space-between; padding: 18px 26px; font-size: 1.15rem; }
.ways .btn span { font-weight: 400; }
.ways .btn--line { background: transparent; }
.ways .btn--line:hover { background: var(--wash); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .ways .btn { flex-direction: column; align-items: flex-start; gap: 2px; } }

/* Footer */
.foot { padding-top: 40px; padding-bottom: 56px; font-size: 0.95rem; }
.foot-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.foot p { margin: 0 0 6px; max-width: 70ch; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* Plain pages */
.page { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(64px, 8vw, 104px); }
.page h1 { font-size: clamp(2.4rem, 5vw, 4rem); max-width: 18ch; margin-bottom: 28px; }
.page h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 40px; margin-bottom: 12px; }
.page ul { max-width: var(--measure); padding-left: 1.2em; }
.page li { margin-bottom: 0.4em; }

@media print {
  .nav, .skip { display: none; }
  .facade, .rooms, .job, .family { border-color: #000; }
}

/* Helpers kept out of the markup so the CSP needs no inline styles */
.section--after-facade { margin-top: clamp(64px, 9vw, 120px); }
.section--flush-top { padding-top: 0; }
.section--beam .steps { border-top-color: var(--wash); }
.room-head--canal { background: var(--canal); color: var(--wash); }
.room-head--gorse { background: var(--gorse); }
.room-head--plain { background: var(--plain); }
.room-head--salt  { background: var(--salt); }
.contact-grid > * { min-width: 0; }
.ways .btn span { overflow-wrap: anywhere; min-width: 0; }

/* Enquiry form */
.contact-grid { align-items: start; }
.contact .ways { margin-top: 28px; }
.enquiry { background: var(--wash); border: var(--beam-w) solid var(--beam); padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: 1rem; padding: 0; }
.field .opt { font-weight: 400; color: var(--muted); }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 520px) { .field-pair { grid-template-columns: 1fr; } }
.enquiry input[type="text"], .enquiry input[type="email"], .enquiry input[type="tel"], .enquiry textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--wash);
  border: 3px solid var(--beam); border-radius: 0; padding: 12px 14px; width: 100%;
}
.enquiry textarea { resize: vertical; min-height: 120px; }
.enquiry input:focus-visible, .enquiry textarea:focus-visible { outline: 4px solid var(--canal); outline-offset: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chips label { display: inline-flex; align-items: center; gap: 8px; border: 3px solid var(--beam); border-radius: 999px; padding: 8px 14px; font-weight: 600; cursor: pointer; }
.chips input { width: 18px; height: 18px; accent-color: var(--beam); margin: 0; }
.chips label:has(input:checked) { background: var(--salt); }
.enquiry .btn { align-self: flex-start; }
.form-note { margin: 0; font-size: 0.95rem; color: var(--muted); }
.form-note a { color: var(--ink); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* Brand page */
.brand-page .brand-sec { margin-top: clamp(56px, 8vw, 96px); padding-top: 32px; border-top: var(--beam-w) solid var(--beam); scroll-margin-top: 16px; }
.brand-page h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-top: 0; }
.brand-page h3 { margin-top: 36px; }
.logo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--beam-w); background: var(--beam); border: var(--beam-w) solid var(--beam); margin: 16px 0 8px; }
.logo-grid--sym { grid-template-columns: repeat(3, 1fr); }
.logo-tile { margin: 0; display: flex; flex-direction: column; background: var(--wash); }
.logo-ground { flex: 1; display: grid; place-items: center; padding: 40px 24px; min-height: 160px; }
.logo-tile--dark .logo-ground { background: #1f1f1f; }
.logo-ground img { max-width: 100%; height: auto; }
.logo-tile figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 3px solid var(--beam); font-size: 0.95rem; font-weight: 600; }
.logo-tile figcaption a { font-weight: 700; }
@media (max-width: 700px) { .logo-grid, .logo-grid--sym { grid-template-columns: 1fr; } }
.rules { list-style: none; padding: 0; margin: 24px 0 0; max-width: var(--measure); }
.rules li { padding: 14px 0; border-bottom: 2px solid var(--beam); }
.rules li:first-child { border-top: 2px solid var(--beam); }
.swatches { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; max-width: none; }
.swatch .chip { height: 110px; border: var(--beam-w) solid var(--beam); display: flex; align-items: flex-end; padding: 12px; font-weight: 800; font-size: 1.1rem; }
.swatch p { margin: 6px 0 0; font-size: 0.98rem; }
.sw-name { font-weight: 800; font-size: 1.15rem !important; }
.sw-token code { font-family: inherit; font-size: 0.9rem; color: var(--muted); }
.type-spec { border: var(--beam-w) solid var(--beam); padding: clamp(20px, 3vw, 36px); margin: 20px 0; max-width: 860px; }
.type-big { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1; margin: 0 0 16px; max-width: none; }
.type-body { margin: 0; }
.chip--000000 { background: #000000; color: #ffffff; }
.chip--00a86b { background: #00a86b; color: #000000; }
.chip--2b50ff { background: #2b50ff; color: #ffffff; }
.chip--4a4a4a { background: #4a4a4a; color: #ffffff; }
.chip--ff7ab6 { background: #ff7ab6; color: #000000; }
.chip--ffd23f { background: #ffd23f; color: #000000; }
.chip--ffffff { background: #ffffff; color: #000000; }

.foot-cols { display: flex; gap: 48px; flex-wrap: wrap; }
.foot-cols > div { display: flex; flex-direction: column; gap: 6px; }
.foot-h { font-weight: 800; margin: 0 0 4px !important; }
.brand-page .swatches, .brand-page .rules { padding-left: 0; } .brand-page .swatches { max-width: none; }

/* Cookie choice */
.cc { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; max-width: 560px; margin-left: auto;
  background: var(--wash); border: var(--beam-w) solid var(--beam); padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.cc[hidden] { display: none; }
.cc p { margin: 0; font-size: 1rem; }
.cc-btns { display: flex; gap: 12px; }
.cc-btns .btn { flex: 1; padding: 12px 18px; }

/* Service pages */
.room-more { display: inline-block; margin-top: 16px; font-weight: 700; }
.crumbs { font-size: 0.95rem; margin-bottom: 20px; }
.crumbs a { font-weight: 600; }
.svc-hero { border: var(--beam-w) solid var(--beam); padding: clamp(24px, 4vw, 56px); }
.svc-hero--canal { background: var(--canal); color: var(--wash); }
.svc-hero--canal .btn--solid { background: var(--wash); color: var(--ink); border-color: var(--wash); }
.svc-hero--canal .btn--line { background: transparent; color: var(--wash); border-color: var(--wash); }
.svc-hero--gorse { background: var(--gorse); }
.svc-hero--plain { background: var(--plain); }
.svc-hero--salt { background: var(--salt); }
.svc-hero h1 { max-width: 16ch; margin-bottom: 20px; }
.svc-hero .intro { color: inherit; margin-bottom: 28px; }
.svc-room { font-weight: 800; font-size: 1.1rem; margin: 0 0 12px; }
.svc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); margin-top: clamp(40px, 6vw, 72px); align-items: start; }
.svc-main h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 40px; margin-bottom: 14px; }
.svc-main > p:first-child { font-size: 1.25rem; }
.svc-list { list-style: none; padding: 0 !important; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; max-width: none !important; }
.svc-list li { padding: 8px 0 8px 18px; position: relative; border-bottom: 2px solid var(--beam); margin: 0; }
.svc-list li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 8px; height: 8px; background: var(--beam); }
.svc-steps { padding-left: 1.3em; }
.svc-steps li { margin-bottom: 10px; }
.faqs details { border-bottom: 2px solid var(--beam); }
.faqs details:first-child { border-top: 2px solid var(--beam); }
.faqs summary { cursor: pointer; font-weight: 700; padding: 14px 0; font-size: 1.1rem; }
.faqs details p { margin: 0 0 16px; }
.svc-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 16px; }
.svc-box { border: var(--beam-w) solid var(--beam); padding: 22px; }
.svc-box h2 { font-size: 1.35rem; margin: 0 0 10px; }
.svc-box p { font-size: 1rem; }
.svc-box .btn { width: 100%; }
.svc-phone { margin: 14px 0 0 !important; font-weight: 700; }
.svc-links { list-style: none; padding: 0 !important; margin: 0; }
.svc-links li { padding: 6px 0; }
@media (max-width: 960px) { .svc-grid { grid-template-columns: 1fr; } .svc-side { position: static; } }
@media (max-width: 560px) { .svc-list { grid-template-columns: 1fr; } }
