/* =========================================================
   BRICKWEAVERS — shared design system
   ========================================================= */
:root {
  /* Brand palette — measured from the current brickweavers.com */
  --ink: #242323;        /* charcoal */
  --ink-2: #404040;      /* charcoal, lifted */
  --bone: #ffffff;       /* white */
  --bone-2: #f2f2f2;
  --concrete: #9b8f82;   /* the taupe concrete surface */
  --grey: #bfbfbf;       /* light grey (current mobile preloader) */
  --brick: #c74300;      /* brick-orange accent */
  --terra: #b3765d;      /* logo terracotta */
  --line-light: rgba(255, 255, 255, 0.3);
  --line-dark: rgba(36, 35, 35, 0.16);

  /* textures from the current site, with a charcoal wash so white text reads */
  --tex-concrete: url('/media/4bff90_ec22785a9567490a9d93da1140376df3-2400.webp');
  --tex-dark: url('/media/4bff90_ba8bf915a736412ebd6d5914c8e78c52-2400.webp');

  --radius: 22px;
  --radius-sm: 14px;

  --f-display: 'Lato', system-ui, sans-serif;
  --f-ui: 'Questrial', system-ui, sans-serif;

  --gutter: clamp(16px, 3.2vw, 48px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* clip, not hidden — hidden breaks position: sticky */
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--terra); color: var(--ink); }

/* ---------- type ---------- */
.label {
  font-family: var(--f-ui);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.label--idx::before { content: attr(data-idx); margin-right: 1.2em; opacity: 0.55; }
.display {
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-size: clamp(44px, 8.4vw, 150px);
}
.h2 {
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-size: clamp(34px, 5vw, 84px);
}
.lead { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.55; max-width: 38ch; }
.wordmark { letter-spacing: 0.32em; text-transform: uppercase; font-weight: 300; white-space: nowrap; }
.wordmark b { font-weight: 700; }

/* split text helpers (created by core.js) */
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.sw > span { display: inline-block; will-change: transform; }
.sc { display: inline-block; will-change: transform, opacity; }

.wrap { padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(96px, 14vw, 200px); }
.theme-light { background: var(--bone); color: var(--ink); }
.surface-concrete {
  background: linear-gradient(rgba(36, 35, 35, 0.3), rgba(36, 35, 35, 0.3)), var(--tex-concrete) center / cover, var(--concrete);
  color: var(--bone);
}
.surface-dark {
  background: linear-gradient(rgba(36, 35, 35, 0.55), rgba(36, 35, 35, 0.55)), var(--tex-dark) center / cover, var(--ink);
  color: var(--bone);
}

/* ---------- pill button (evolved from the current site) ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 12px;
  height: 48px; padding: 0 8px 0 22px;
  border: 1px solid currentColor; border-radius: 999px;
  font-family: var(--f-ui); font-size: 14px; letter-spacing: 0.04em;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color 0.5s var(--ease-out);
}
.pill::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--bone); border-radius: inherit;
  transform: translateY(101%); transition: transform 0.5s var(--ease-out);
}
.pill:hover { color: var(--ink); }
.pill:hover::before { transform: none; }
.pill__dot {
  width: 32px; height: 32px; border-radius: 50%;
  background: currentColor; display: grid; place-items: center;
}
.pill__dot svg { width: 12px; height: 12px; stroke: var(--ink); transition: transform 0.5s var(--ease-out); }
.pill:hover .pill__dot { background: var(--ink); }
.pill:hover .pill__dot svg { stroke: var(--bone); transform: rotate(-45deg); }
.theme-light .pill::before { background: var(--ink); }
.theme-light .pill:hover { color: var(--bone); }
.theme-light .pill__dot svg { stroke: var(--bone); }
.theme-light .pill:hover .pill__dot { background: var(--bone); }
.theme-light .pill:hover .pill__dot svg { stroke: var(--ink); }

/* ---------- brick mark ---------- */
/* Exact geometry of the Brickweavers mark: two parallel bars (SVG, see BW.markHTML). */
.mark { display: block; width: 100px; height: auto; overflow: visible; }
.mark__bar { fill: var(--terra); }
.mark__fold { fill: #774c3b; } /* the folded underside of each brick */

/* ---------- preloader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--grey); color: var(--ink);
  display: grid; place-items: center;
}
.loader .mark { width: 89px; }
.loader__word { position: absolute; left: var(--gutter); bottom: var(--gutter); font-size: 13px; }

/* ---------- page-transition curtain ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 95; pointer-events: none;
  background: var(--grey); display: grid; place-items: center;
  clip-path: inset(100% 0% 0% 0%); visibility: visible;
}
.curtain .mark { width: 69px; }
html.is-curtain body { visibility: hidden; } /* set by the inline <head> script */
html.is-curtain .curtain { clip-path: inset(0% 0% 0% 0%); }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--gutter);
  color: var(--bone);
  transition: transform 0.7s var(--ease-out), color 0.4s;
}
.header.is-hidden { transform: translateY(-100%); }
.header.is-dark { color: var(--ink); }
.header__logo { font-size: 15px; padding-block: 12px; } /* ≥44px tap target */
.header__right { display: flex; align-items: center; gap: 28px; }
.header__cta { font-family: var(--f-ui); font-size: 14px; position: relative; }
.header__cta::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease-out);
}
.header__cta:hover::after { transform: scaleX(1); transform-origin: left; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 14px;
  height: 44px; padding: 0 8px 0 20px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line-light);
  font-family: var(--f-ui); font-size: 14px;
}
.header.is-dark .menu-btn { background: rgba(20, 18, 17, 0.06); border-color: var(--line-dark); }
.menu-btn__dot { width: 28px; height: 28px; border-radius: 50%; background: currentColor; position: relative; }
.menu-btn__dot::before, .menu-btn__dot::after {
  content: ''; position: absolute; left: 8px; right: 8px; height: 1.5px; background: var(--ink);
  top: 50%; transition: transform 0.5s var(--ease-out);
}
.header.is-dark .menu-btn__dot::before, .header.is-dark .menu-btn__dot::after { background: var(--bone); }
.menu-btn__dot::before { transform: translateY(-3px); }
.menu-btn__dot::after { transform: translateY(3px); }
.menu-open .menu-btn__dot::before { transform: rotate(45deg); }
.menu-open .menu-btn__dot::after { transform: rotate(-45deg); }
.menu-open .header { color: var(--bone); }
.menu-open .header .menu-btn { background: rgba(255, 255, 255, 0.14); border-color: var(--line-light); }
.menu-open .header .menu-btn__dot::before, .menu-open .header .menu-btn__dot::after { background: var(--ink); }

/* ---------- menu overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: 40;
  background: linear-gradient(rgba(36, 35, 35, 0.6), rgba(36, 35, 35, 0.6)), var(--tex-dark) center / cover, var(--ink); color: var(--bone);
  clip-path: circle(0% at var(--mx, 95%) var(--my, 5%));
  visibility: hidden;
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  padding: calc(var(--header-h) + 4vh) var(--gutter) var(--gutter);
}
.menu__list { list-style: none; align-self: center; }
.menu__link {
  display: flex; align-items: baseline; gap: 20px;
  font-size: clamp(40px, 6.4vw, 104px); line-height: 1.02; letter-spacing: -0.02em;
}
.menu__link .sw > span { transition: transform 0.6s var(--ease-out); }
.menu__num { font-family: var(--f-ui); font-size: 13px; opacity: 0.5; width: 2.2em; }
.menu__list:hover .menu__link { opacity: 0.32; }
.menu__list .menu__link:hover { opacity: 1; }
.menu__link { transition: opacity 0.4s; }
.menu__preview { position: relative; border-radius: var(--radius-sm); align-self: center; aspect-ratio: 4 / 5; max-height: 70vh; overflow: hidden; justify-self: end; width: min(100%, 460px); }
.menu__preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity 0.7s, transform 1.2s var(--ease-out); }
.menu__preview img.is-on { opacity: 1; transform: none; }
.menu__foot {
  grid-column: 1 / -1; align-self: end;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--line-light); padding-top: 20px;
}
.menu__foot a { opacity: 0.7; transition: opacity 0.3s; }
.menu__foot a:hover { opacity: 1; }
.menu__social { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; }
.cursor__dot {
  position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
  background: var(--bone); mix-blend-mode: difference;
}
.cursor__ring {
  position: absolute; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%;
  background: var(--terra); color: var(--ink);
  display: grid; place-items: center;
  font-family: var(--f-ui); font-size: 13px; letter-spacing: 0.06em;
  transform: scale(0);
}
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- scroll progress ---------- */
.progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 60; background: var(--terra); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* ---------- reveals ---------- */
[data-reveal='img'] { overflow: hidden; }
[data-reveal='img'] img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; white-space: nowrap; }
.marquee__track { display: inline-flex; will-change: transform; }
.marquee__item { display: inline-flex; align-items: center; gap: 0.4em; padding-right: 0.4em; }
.marquee__item i { font-style: normal; color: var(--terra); font-size: 0.5em; }

/* ---------- footer / contact ---------- */
.footer { position: relative; background: linear-gradient(rgba(36, 35, 35, 0.6), rgba(36, 35, 35, 0.6)), var(--tex-dark) center / cover, var(--ink); overflow: hidden; }
.footer__inner { padding: clamp(80px, 10vw, 140px) var(--gutter) var(--gutter); }
.footer__marquee { font-size: clamp(36px, 5.6vw, 104px); line-height: 1.1; letter-spacing: -0.02em; padding-block: 0.25em; margin-top: 20px; border-block: 1px solid var(--line-light); }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 7vw, 120px); margin-top: clamp(64px, 8vw, 120px); }
.footer__info { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 32px; align-content: start; }
.footer__info h4 { margin-bottom: 12px; opacity: 0.55; font-weight: 400; }
.footer__info a { display: block; width: fit-content; }
.footer__info a:hover { color: var(--terra); }
.footer__bottom { margin-top: clamp(64px, 8vw, 120px); display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.footer__big { font-size: clamp(40px, 11.6vw, 210px); line-height: 0.8; letter-spacing: 0.08em; opacity: 0.1; width: 100%; white-space: nowrap; }
.footer__legal { display: flex; justify-content: space-between; width: 100%; opacity: 0.55; font-size: 13px; gap: 16px; flex-wrap: wrap; }
.to-top { display: inline-flex; gap: 10px; align-items: center; }

.form { display: grid; gap: 28px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-light);
  color: inherit; font: inherit; font-size: 18px; padding: 26px 0 10px; outline: none; border-radius: 0;
  transition: border-color 0.3s; appearance: none;
}
.field select option { color: var(--ink); }
.field textarea { resize: none; min-height: 110px; }
.field label {
  position: absolute; left: 0; top: 26px; pointer-events: none;
  font-family: var(--f-ui); font-size: 15px; opacity: 0.55;
  transition: transform 0.4s var(--ease-out), opacity 0.4s;
  transform-origin: 0 0;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--terra); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:valid + label { transform: translateY(-24px) scale(0.8); opacity: 0.8; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; border: 0; min-width: 0; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 9px 16px; border: 1px solid var(--line-light); border-radius: 999px;
  font-family: var(--f-ui); font-size: 14px; cursor: pointer; transition: all 0.3s;
}
.chip input:checked + span { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.chip input:focus-visible + span { outline: 2px solid var(--terra); outline-offset: 2px; }
.form__note { font-size: 13px; opacity: 0.55; }
.form__done { font-size: 22px; color: var(--terra); display: none; }
.form.is-sent .form__done { display: block; }

/* ---------- focus ---------- */
:focus-visible { outline: 2px solid var(--terra); outline-offset: 4px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--bone); color: var(--ink); padding: 10px 16px; }
.skip:focus { left: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .header__cta { display: none; }
  .menu { grid-template-columns: 1fr; }
  .menu__preview { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .chip span { padding: 12px 16px; } /* ≥44px tap target */
}
@media (max-width: 520px) {
  .footer__info { grid-template-columns: 1fr; }
  .header__logo { font-size: 13px; letter-spacing: 0.24em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

