/* ArchDomus Home Design — single stylesheet */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #1c1b1f;
  --ink-2: #2a2724;
  --cream: #f6f2ec;
  --paper: #ffffff;
  --stone: #e9e2d8;
  --muted: #625b53;
  --accent: #c29a63;       /* brass — decorative / on dark */
  --accent-ink: #7d5a29;   /* brass text on light: AA on paper, cream and the reviews tint */
  --accent-wash: #f0e7da;  /* brass at surface strength — icon tiles, soft fills */
  --gold: #dfa63c;         /* review stars only */
  --err: #9e3627;          /* form errors */
  --ok: #1f5130;           /* form success */
  --focus: #7d5a29;        /* focus ring on light surfaces; --accent on dark ones */
  --line: rgba(28, 27, 31, .12);

  --r-sm: 12px;
  --r: 20px;
  --r-lg: 32px;
  --pill: 999px;

  --shadow: 0 18px 50px -20px rgba(28, 20, 10, .35);
  --ease: cubic-bezier(.16, 1, .3, 1);

  --font-head: "Archivo", "Helvetica Neue", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; caret-color: var(--accent-ink); scrollbar-color: #c9bfb1 var(--cream); }
body {
  margin: 0;
  font: 400 1rem/1.65 var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: .18em; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.03em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 700; text-wrap: balance; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.015em; }
p { margin: 0 0 1em; text-wrap: pretty; }
em.hl { font-style: normal; color: var(--accent-ink); }
.dark em.hl, .hero em.hl, .page-hero em.hl { color: var(--accent); }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.lead { font-size: 1.12rem; line-height: 1.55; color: var(--muted); max-width: 58ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 1rem; z-index: 100; background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: var(--r-sm); }
.skip:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible, .cta :focus-visible, .page-hero :focus-visible, .nav :focus-visible, .site-footer :focus-visible { outline-color: var(--accent); }
::selection { background: #e8d6b5; color: var(--ink); }
.dark ::selection, .site-footer ::selection, .cta ::selection { background: var(--accent); color: var(--ink); }

/* ---------- Liquid glass ---------- */
.glass {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .06));
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 -1px 0 rgba(255, 255, 255, .08),
    0 12px 40px -12px rgba(0, 0, 0, .35);
  color: #fff;
}
.glass::before { /* specular sheen */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 60% at 15% 0%, rgba(255, 255, 255, .28), transparent 55%);
  mix-blend-mode: soft-light;
}
.glass--dark { background: linear-gradient(135deg, rgba(26, 23, 20, .82), rgba(26, 23, 20, .7)); }
.glass--light {
  background: linear-gradient(135deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .5));
  border-color: rgba(255, 255, 255, .9);
  box-shadow: inset 0 1px 0 #fff, 0 20px 50px -24px rgba(60, 40, 20, .35);
  color: var(--ink);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(30, 27, 24, .82); }
  .glass--light { background: rgba(255, 255, 255, .95); }
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .8rem 1.5rem;
  border: 0; border-radius: var(--pill);
  background: var(--bg); color: var(--fg);
  font: 600 .95rem/1 var(--font-head); letter-spacing: .01em; text-decoration: none;
  cursor: pointer; touch-action: manipulation;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .45); }
.btn:active { transform: scale(.97); }
.btn--accent { --bg: var(--accent); --fg: var(--ink); }
.btn.glass { background: linear-gradient(135deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, .08)); }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translate(2px, -2px); }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font: 600 .92rem var(--font-head); text-decoration: none; color: var(--accent-ink); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 1rem 0 auto; z-index: 50; pointer-events: none; }
.nav {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: min(var(--wrap), 100% - 1.5rem); margin-inline: auto;
  padding: .55rem .55rem .55rem 1.4rem; border-radius: var(--pill);
}
.nav { transition: background .3s; }
.site-header.solid .nav { background: rgba(28, 27, 31, .82); }
.brand { display: flex; align-items: center; color: #fff; text-decoration: none; }
.logo { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: .7rem 1rem; border-radius: var(--pill);
  color: rgba(255, 255, 255, .88); text-decoration: none; font: 600 .76rem var(--font-head);
  text-transform: uppercase; letter-spacing: .09em;
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.nav-links a[aria-current="page"] { background: rgba(255, 255, 255, .2); color: #fff; }
.nav .btn { min-height: 44px; padding: .7rem 1.2rem; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer; place-items: center; }
.menu-btn .icon { width: 22px; height: 22px; }
.nav-links .mobile-cta { display: none; margin-top: .4rem; }
.nav-links .mobile-cta a { background: var(--accent); color: var(--ink); text-align: center; font-weight: 600; }

@media (max-width: 960px) {
  .menu-btn { display: grid; }
  .nav { padding-left: 1.1rem; }
  .nav > .btn { display: none; }
  .nav-links {
    position: absolute; top: calc(100% + .6rem); left: .75rem; right: .75rem;
    flex-direction: column; align-items: stretch; gap: .2rem; padding: .75rem;
    border-radius: var(--r);
    background: rgba(28, 27, 31, .97); /* nested backdrop-filter doesn't blur inside the glass nav */
    border: 1px solid rgba(255, 255, 255, .2);
    opacity: 0; transform: translateY(-8px) scale(.98); visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav.open .nav-links { opacity: 1; transform: none; visibility: visible; }
  .nav-links a { padding: .95rem 1rem; font-size: 1rem; }
  .nav-links .mobile-cta { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end;
  color: #fff; isolation: isolate; overflow: hidden;
  padding: 8rem 0 2.5rem;
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::after, .page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15, 12, 10, .55) 0%, rgba(15, 12, 10, .2) 35%, rgba(15, 12, 10, .72) 100%);
}
.hero__content { text-align: center; max-width: 900px; margin: 0 auto 3.5rem; }
.hero h1 { text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.hero .lead { color: rgba(255, 255, 255, .86); margin-inline: auto; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 2rem; }
.hero__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-radius: var(--r-lg); padding: 1.2rem .5rem;
  max-width: 820px; margin-inline: auto;
}
.stat { text-align: center; padding: .3rem 1rem; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, .22); }
.stat strong { display: block; font: 700 clamp(1.5rem, 3vw, 2.1rem)/1.1 var(--font-head); font-variant-numeric: lining-nums tabular-nums; }
.stat span { display: block; font-size: .85rem; line-height: 1.35; color: rgba(255, 255, 255, .8); }
.stat strong .stars { display: inline; font-size: .6em; color: var(--gold); }
.stars { color: var(--gold); letter-spacing: .1em; }

/* Home hero: editorial — type on paper, the house printed below it */
.hero--editorial {
  position: static; display: block; min-height: 0; overflow: visible; isolation: auto;
  color: var(--ink); background: var(--paper);
  padding: clamp(7.5rem, 11vw, 10.5rem) 0 clamp(3rem, 5vw, 4.5rem);
}
.hero--editorial::after { display: none; }
.hero--editorial .wrap { width: min(1360px, 100% - 3rem); }
.hero--editorial .wrap + .wrap { margin-top: 0; }
.hero--editorial .hero__content { text-align: left; max-width: none; margin: 0; }
.hero--editorial h1 {
  margin: 0; max-width: 24ch; overflow-wrap: break-word;
  font-size: clamp(2.5rem, 5.4vw, 4.6rem); font-weight: 800;
  line-height: .96; letter-spacing: -.04em; text-transform: uppercase; text-wrap: balance;
  text-shadow: none;
}
.hero--editorial em.hl { color: var(--accent-ink); }
.hero__sub {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1.4rem 3rem; margin: clamp(1.6rem, 2.6vw, 2.4rem) 0 clamp(2rem, 3.4vw, 3rem);
  padding-top: clamp(1.1rem, 1.8vw, 1.6rem); border-top: 1px solid var(--line);
}
.hero--editorial .lead { margin: 0; max-width: 50ch; color: var(--muted); }
.hero--editorial .hero__ctas { margin: 0; justify-content: flex-start; }
.hero__frame { position: relative; }
.hero__photo {
  width: 100%; height: auto; aspect-ratio: 1550 / 930;
  object-fit: cover; object-position: 50% 50%;
  border-radius: var(--r-lg); background: var(--stone);
}
.hero--editorial .hero__stats {
  position: absolute; left: clamp(.9rem, 2.2vw, 2rem); bottom: clamp(.9rem, 2vw, 1.75rem);
  width: auto; max-width: none; margin: 0;
  grid-template-columns: repeat(3, auto); padding: .9rem .3rem; border-radius: var(--r);
}
.hero--editorial .stat { padding: .25rem clamp(.9rem, 1.8vw, 1.7rem); }
.hero--editorial .stat + .stat { border-color: rgba(28, 27, 31, .16); }
.hero--editorial .stat strong { font-size: clamp(1.35rem, 2.2vw, 1.9rem); }
.hero--editorial .stat > span { color: var(--muted); font-size: .78rem; letter-spacing: .01em; }

/* iOS-style liquid glass: translucent fill, light-catching rim, top specular, soft depth */
.liquid {
  --lg-inset: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(120, 100, 80, .14), inset 0 10px 16px -12px rgba(255, 255, 255, .9), inset 0 -12px 20px -12px rgba(255, 255, 255, .85);
  --lg-drop: 0 0 0 .5px rgba(60, 45, 30, .1), 0 14px 34px -14px rgba(40, 30, 20, .38), 0 3px 8px -3px rgba(40, 30, 20, .14);
  position: relative; isolation: isolate;
  background: linear-gradient(180deg, rgba(255, 255, 255, .4), rgba(255, 255, 255, .1));
  -webkit-backdrop-filter: blur(20px) saturate(190%) brightness(1.04);
  backdrop-filter: blur(20px) saturate(190%) brightness(1.04);
  border: 0; color: var(--ink);
  box-shadow: var(--lg-inset), var(--lg-drop);
}
.liquid::before { /* rim: bright at top-left and bottom-right, like light bending through the edge */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.2px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, .25) 35%, rgba(255, 255, 255, .05) 60%, rgba(255, 255, 255, .85));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.liquid::after { /* top specular sheen */
  content: ""; position: absolute; inset: 1px; z-index: -1; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(120% 90% at 20% -30%, rgba(255, 255, 255, .85), transparent 50%),
    radial-gradient(80% 70% at 95% 135%, rgba(255, 255, 255, .6), transparent 60%);
}
.liquid--dark {
  --lg-inset: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -1px 1px rgba(255, 255, 255, .1);
  --lg-drop: 0 12px 30px -10px rgba(0, 0, 0, .5), 0 2px 6px -2px rgba(0, 0, 0, .25);
  background: linear-gradient(180deg, rgba(52, 50, 56, .82), rgba(22, 21, 25, .92));
  color: #fff;
}
.liquid--dark::before { background: linear-gradient(135deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, .08) 40%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, .35)); }
.liquid--dark::after { background: radial-gradient(130% 90% at 30% -25%, rgba(255, 255, 255, .28), transparent 55%); }
.btn.liquid { background: linear-gradient(180deg, rgba(255, 255, 255, .4), rgba(255, 255, 255, .1)); color: var(--ink); }
.btn.liquid--dark { background: linear-gradient(180deg, rgba(52, 50, 56, .82), rgba(22, 21, 25, .92)); color: #fff; }
.btn.liquid:hover { box-shadow: var(--lg-inset), 0 16px 36px -12px rgba(40, 30, 20, .4), 0 3px 8px -2px rgba(40, 30, 20, .15); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .liquid { background: rgba(255, 255, 255, .92); }
}
/* Mobile: the same reading order — headline, promise, buttons, then the house */
@media (max-width: 860px) {
  .hero--editorial { padding: 6.75rem 0 2.5rem; }
  .hero--editorial .wrap { width: min(1360px, 100% - 2.5rem); }
  .hero--editorial h1 { max-width: none; font-size: clamp(1.85rem, 8.5vw, 3rem); letter-spacing: -.03em; }
  .hero__sub { display: block; margin: 1.1rem 0 1.5rem; padding-top: 1.1rem; }
  .hero--editorial .lead { max-width: none; font-size: 1rem; }
  .hero--editorial .hero__ctas { flex-wrap: nowrap; gap: .6rem; margin-top: 1.25rem; }
  .hero--editorial .hero__ctas .btn { flex: 1; min-width: 0; padding: .75rem .55rem; font-size: .8rem; letter-spacing: 0; }
  .hero--editorial .hero__ctas .icon { display: none; }
  .hero__photo { aspect-ratio: 1550 / 930; border-radius: var(--r); }
  .hero--editorial .hero__stats {
    position: static; width: 100%; margin-top: .85rem;
    grid-template-columns: repeat(3, 1fr); padding: .6rem .15rem;
  }
  .hero--editorial .stat { padding: .25rem .35rem; }
  .hero--editorial .stat strong { font-size: 1.3rem; }
  .hero--editorial .stat > span { font-size: .7rem; }
}

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding: 11rem 0 4.5rem; }
.page-hero .lead { color: rgba(255, 255, 255, .86); }
.crumbs { display: flex; gap: .5rem; font-size: .85rem; color: rgba(255, 255, 255, .75); margin-bottom: 1rem; }
.crumbs a { color: #fff; }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split--flip > :first-child { order: 2; }
.media { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media .badge { position: absolute; left: 1rem; bottom: 1rem; right: 1rem; padding: 1rem 1.2rem; border-radius: var(--r); display: flex; gap: .9rem; align-items: center; }
.badge .icon { width: 2rem; height: 2rem; color: var(--accent); }
.badge strong { display: block; font-family: var(--font-head); }
.badge span { font-size: .85rem; opacity: .85; }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.2rem; }
.checks li { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; }
.checks .icon { color: var(--accent-ink); margin-top: .2rem; }

/* towns strip */
.towns { border-block: 1px solid var(--line); padding: 1.4rem 0; }
.towns ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 2rem; list-style: none; margin: 0; padding: 0; font: 600 .78rem var(--font-head); color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Services ---------- */
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: 3rem; }
.head-row h2 { margin: 0; max-width: 18ch; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.svc {
  position: relative; display: flex; flex-direction: column; gap: .8rem;
  padding: 1.8rem; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line);
  text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.svc__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-wash); color: var(--accent-ink); }
.svc__icon .icon { width: 26px; height: 26px; }
.svc p { color: var(--muted); margin: 0; font-size: .95rem; }
.svc .link-arrow { margin-top: auto; padding-top: .6rem; }
.svc--feature { background: var(--ink); color: #fff; border-color: transparent; }
.svc--feature p { color: rgba(255, 255, 255, .75); }
.svc--feature .svc__icon { background: rgba(255, 255, 255, .1); color: var(--accent); }
.svc--feature .link-arrow { color: var(--accent); }

/* services page detailed cards */
.svc-list { display: grid; gap: 1.5rem; }
.svc-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--paper); border: 1px solid var(--line); scroll-margin-top: 7rem; }
.svc-row:nth-child(even) .svc-row__img { order: 2; }
.svc-row__img { min-height: 320px; }
.svc-row__img img { width: 100%; height: 100%; object-fit: cover; }
.svc-row__body { padding: clamp(1.8rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: center; }
.svc-row__body .svc__icon { margin-bottom: 1rem; }
.svc-row__body p { color: var(--muted); }
.svc-row h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.svc-row .checks { grid-template-columns: 1fr 1fr; margin: .5rem 0 1.5rem; font-size: .95rem; }

/* ---------- What we do (scroll-snap rail) ---------- */
.work .head-row { margin-bottom: 2rem; align-items: center; }
.rail__nav { display: flex; gap: .5rem; }
.rail__btn {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  transition: background .2s, color .2s, border-color .2s, opacity .2s;
}
.rail__btn:hover:not(:disabled) { background: var(--ink); color: #fff; border-color: var(--ink); }
.rail__btn:disabled { opacity: .3; cursor: default; }
.rail__btn[data-rail-prev] .icon { transform: scaleX(-1); }
.rail {
  display: flex; gap: 1.2rem; list-style: none; margin: 0; padding: .25rem .25rem 1rem;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: .25rem;
  scrollbar-width: thin; scrollbar-color: #cdbfa9 var(--stone);
}
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-track { background: var(--stone); border-radius: var(--pill); }
.rail::-webkit-scrollbar-thumb { background: #cdbfa9; border-radius: var(--pill); }
.rail > li { flex: 0 0 calc((100% - 2.4rem) / 3); min-width: 0; scroll-snap-align: start; display: flex; }
.wcard {
  display: flex; flex-direction: column; width: 100%; overflow: hidden;
  border-radius: var(--r); background: var(--paper); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.wcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.wcard img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--stone); transition: transform 1s var(--ease); }
.wcard:hover img { transform: scale(1.04); }
.wcard__body { display: flex; flex-direction: column; gap: .4rem; flex: 1; padding: 1.25rem 1.35rem 1.4rem; }
.wcard h3 { margin: 0; overflow-wrap: break-word; }
.wcard p { margin: 0; color: var(--muted); font-size: .95rem; overflow-wrap: break-word; }
.wcard .link-arrow { margin-top: auto; padding-top: .8rem; }
.rail__more { margin: 1.5rem 0 0; }
@media (max-width: 1000px) { .rail > li { flex-basis: calc((100% - 1.2rem) / 2); } }
@media (max-width: 680px) {
  .rail > li { flex-basis: 80%; }
  .rail__nav { display: none; }
  .work .head-row { margin-bottom: 1.5rem; }
}

/* ---------- Projects ---------- */
.proj-stack { display: grid; gap: 1.5rem; }
.proj {
  position: relative; display: block; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 16 / 7; color: #fff; text-decoration: none; isolation: isolate;
}
.proj img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.proj::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(12, 10, 8, .78)); }
.proj:hover img { transform: scale(1.04); }
.proj__tag { position: absolute; top: 1.2rem; left: 1.2rem; padding: .45rem .9rem; border-radius: var(--pill); font: 500 .8rem var(--font-head); }
.proj__tag.glass, .proj .btn.glass { background: linear-gradient(135deg, rgba(26, 23, 20, .78), rgba(26, 23, 20, .64)); border-color: rgba(255, 255, 255, .26); color: #fff; }
.proj__info { position: absolute; left: 1.8rem; bottom: 1.6rem; right: 12rem; }
.proj__info h3 { font-size: clamp(1.3rem, 2.4vw, 1.9rem); margin-bottom: .3rem; }
.proj__info p { margin: 0; color: rgba(255, 255, 255, .82); max-width: 48ch; }
.proj .btn { position: absolute; right: 1.4rem; bottom: 1.4rem; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2.5rem; }
.filter { min-height: 44px; padding: .6rem 1.2rem; border-radius: var(--pill); border: 1px solid var(--line); background: var(--paper); font: 500 .9rem var(--font-head); cursor: pointer; color: var(--ink); transition: background .2s, color .2s; }
.filter[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.gallery { columns: 3 320px; column-gap: 1.2rem; }
.tile { break-inside: avoid; margin: 0 0 1.2rem; position: relative; border-radius: var(--r); overflow: hidden; cursor: zoom-in; background: var(--stone); }
.tile img { width: 100%; height: auto; transition: transform .8s var(--ease); }
.tile:hover img { transform: scale(1.03); }
.tile figcaption { position: absolute; left: .7rem; right: .7rem; bottom: .7rem; padding: .7rem 1rem; border-radius: 14px; font-size: .85rem; line-height: 1.35; }
.tile figcaption strong { display: block; font: 600 .95rem var(--font-head); }
.tile button { all: unset; position: absolute; inset: 0; cursor: zoom-in; }
.tile button:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: var(--r); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); max-height: 92vh; }
.lightbox::backdrop { background: rgba(10, 8, 6, .8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: var(--r); }
.lightbox p { color: #fff; text-align: center; margin: .8rem 0 0; font-family: var(--font-head); }
.lightbox .close { position: fixed; top: 1rem; right: 1rem; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; }

/* ---------- Process (dark) ---------- */
.dark { position: relative; isolation: isolate; background: var(--ink); color: #fff; overflow: hidden; }
.dark__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; }
.dark::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 17, 14, .7), rgba(20, 17, 14, .85)); }
.dark .lead { color: rgba(255, 255, 255, .78); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 3rem; counter-reset: step; list-style: none; padding: 0; }
.step { border-radius: var(--r); padding: 1.8rem 1.5rem 5rem; min-height: 280px; overflow: hidden; }
.step::after { counter-increment: step; content: "0" counter(step); position: absolute; right: 1rem; bottom: -.6rem; font: 800 5.5rem/1 var(--font-head); color: rgba(255, 255, 255, .1); }
.step h3 { margin-top: .4rem; }
.step p { color: rgba(255, 255, 255, .78); font-size: .95rem; margin: 0; }
.step--accent { background: var(--accent); color: var(--ink); }
.step--accent p { color: rgba(28, 27, 31, .88); }
.step--accent::after { color: rgba(28, 27, 31, .14); }

/* ---------- Estimate teaser ---------- */
.teaser { position: relative; isolation: isolate; border-radius: var(--r-lg); overflow: hidden; padding: clamp(2rem, 6vw, 4.5rem); }
.teaser > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.teaser::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15, 12, 10, .72), rgba(15, 12, 10, .15)); }
.teaser__panel { max-width: 520px; border-radius: var(--r-lg); padding: clamp(1.6rem, 4vw, 2.6rem); }
.teaser__panel p { color: rgba(255, 255, 255, .85); }

/* ---------- Reviews ---------- */
.g-badge { display: inline-flex; align-items: center; gap: .9rem; padding: .7rem 1.2rem .7rem .8rem; border-radius: var(--pill); background: var(--paper); border: 1px solid var(--line); text-decoration: none; margin-top: .5rem; }
.g-badge svg { width: 28px; height: 28px; }
.g-badge strong { font: 700 1.1rem var(--font-head); }
.g-badge small { color: var(--muted); display: block; font-size: .8rem; }
.reviews { columns: 3 300px; column-gap: 1.2rem; margin-top: 3rem; }
.review { break-inside: avoid; margin: 0 0 1.2rem; padding: 1.7rem; border-radius: var(--r); }
.review blockquote { margin: .9rem 0 1.2rem; font-size: 1rem; }
.review footer { display: flex; align-items: center; gap: .8rem; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font: 600 1rem var(--font-head); flex: none; }
.review cite { font-style: normal; font-weight: 600; font-family: var(--font-head); display: block; }
.review small { color: var(--muted); }
.reviews-bg { background: radial-gradient(60% 50% at 80% 10%, #efe5d6 0%, transparent 70%), radial-gradient(50% 50% at 10% 90%, #ebe3d8 0%, transparent 70%), var(--cream); }

/* ---------- Languages ---------- */
.nav-links a.nav-lang { font-weight: 600; letter-spacing: .06em; border: 1px solid rgba(255, 255, 255, .28); padding: .55rem .85rem; margin-left: .3rem; }
.lang-pill { display: flex; width: fit-content; align-items: center; gap: .55rem; padding: .55rem 1rem; border-radius: var(--pill); background: var(--paper); border: 1px solid var(--line); font: 500 .9rem var(--font-head); margin: 0 0 1.6rem; }
.lang-pill .icon { color: var(--accent-ink); }
.site-footer .langs { display: flex; align-items: center; gap: .5rem; color: #fff; font-weight: 500; }
.site-footer .langs .icon { color: var(--accent); }
.pt-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2rem; }
.pt-point { padding: 1.5rem; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); }
.pt-point h3 { display: flex; gap: .6rem; align-items: center; }
.pt-point .icon { color: var(--accent-ink); }
.pt-point p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 600px) { .pt-points { grid-template-columns: 1fr; } }

/* ---------- FAQ (native <details>) ---------- */
.faq { max-width: 860px; margin: 2.5rem auto 0; display: grid; gap: .8rem; }
.faq details { border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); transition: box-shadow .25s var(--ease); }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 56px; padding: 1rem 1.4rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.05rem; }
.faq summary::after { content: "+"; flex: none; font: 400 1.6rem/1 var(--font-head); color: var(--accent-ink); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 1.4rem 1.3rem; color: var(--muted); }

/* ---------- CTA + footer ---------- */
.cta { position: relative; isolation: isolate; overflow: hidden; text-align: center; color: #fff; padding: clamp(5rem, 10vw, 8rem) 0; }
.cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(15, 12, 10, .6); }
.wordmark { font: 800 clamp(3rem, 13vw, 11rem)/.9 var(--font-head); letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .38); margin: 0 0 1.5rem; user-select: none; }
.cta .lead { color: rgba(255, 255, 255, .85); }
.cta .hero__ctas { margin-top: 1.5rem; }

.site-footer { background: var(--ink); color: rgba(255, 255, 255, .78); padding: 4.5rem 0 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.site-footer .logo { height: 42px; color: #fff; margin-bottom: 1.2rem; }
.site-footer .f-title { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.contact-line { display: flex; gap: .6rem; align-items: flex-start; }
.contact-line .icon { color: var(--accent); margin-top: .25rem; }
.socials { display: flex; gap: .6rem; margin-top: 1.2rem; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 3.5rem; padding-top: 1.6rem; font-size: .85rem; color: rgba(255, 255, 255, .6); }

/* ---------- Forms (estimate + contact) ---------- */
.form-shell { position: relative; isolation: isolate; }
.form-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.5rem; align-items: start; }
.panel { border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 2.5rem); }
fieldset { border: 0; padding: 0; margin: 0 0 2rem; }
legend, .label { display: block; font: 600 .95rem var(--font-head); margin-bottom: .8rem; }
legend .n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .78rem; margin-right: .5rem; }
.types { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt span {
  display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; height: 100%;
  padding: .9rem 1rem; border-radius: 16px; border: 1.5px solid var(--line); background: rgba(255, 255, 255, .7);
  font: 500 .88rem/1.3 var(--font-head); cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s;
}
.opt span .icon { color: var(--accent-ink); width: 22px; height: 22px; }
.opt input:checked + span { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 1px var(--ink); }
.opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.seg .opt span { align-items: center; text-align: center; justify-content: center; min-height: 48px; }
input:disabled { opacity: .45; cursor: not-allowed; }
.field { display: grid; gap: .4rem; margin-bottom: 1rem; }
.field label { font: 600 .9rem var(--font-head); }
.field .help { font-size: .82rem; color: var(--muted); }
.req { color: #a23b2a; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; min-height: 50px; padding: .8rem 1rem; border-radius: 14px;
  border: 1.5px solid var(--line); background: rgba(255, 255, 255, .85);
  font: 400 1rem var(--font-body); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(194, 154, 99, .35); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: #a23b2a; }
.error { color: var(--err); font-size: .85rem; min-height: 0; overflow-wrap: anywhere; }
input[type="file"] {
  padding: .55rem; font: 500 .88rem var(--font-body); color: var(--muted);
  background: rgba(255, 255, 255, .7); border: 1px dashed rgba(28, 27, 31, .28); border-radius: var(--r-sm);
  cursor: pointer;
}
input[type="file"]::file-selector-button {
  margin-right: .85rem; padding: .55rem 1rem; border: 0; border-radius: var(--pill);
  background: var(--ink); color: #fff; font: 600 .82rem var(--font-head); cursor: pointer;
}
input[type="file"]:hover { border-color: var(--accent-ink); }
input[type="file"]:hover::file-selector-button { background: var(--accent-ink); }
.filelist { list-style: none; margin: .1rem 0 0; padding: 0; display: grid; gap: .3rem; }
.filelist li { display: flex; gap: .5rem; align-items: center; font-size: .84rem; color: var(--muted); overflow-wrap: anywhere; }
.filelist li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-ink); flex: none; }
.filelist li.over { color: var(--err); }
.filelist li.over::before { background: var(--err); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.checks-inline { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.checkbox { display: flex; gap: .7rem; align-items: center; padding: .75rem 1rem; border: 1.5px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .7); cursor: pointer; font-size: .92rem; min-height: 48px; }
.checkbox input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; }
.hp { position: absolute; left: -9999px; }

.result { position: sticky; top: 7rem; border-radius: var(--r-lg); padding: clamp(1.6rem, 4vw, 2.4rem); color: #fff; background: var(--ink); overflow: hidden; isolation: isolate; }
.result > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .35; }
.result::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 17, 14, .55), rgba(20, 17, 14, .92)); }
.result .note { font-size: .85rem; color: rgba(255, 255, 255, .75); margin: 1.4rem 0 0; }
.result .note a { color: #fff; }
.how { list-style: none; counter-reset: how; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 1.1rem; }
.how li { counter-increment: how; display: grid; grid-template-columns: 38px 1fr; column-gap: .9rem; color: rgba(255, 255, 255, .75); font-size: .92rem; }
.how li::before { content: counter(how); grid-row: span 2; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); color: var(--accent); font: 700 .95rem var(--font-head); }
.how strong { color: #fff; font-family: var(--font-head); font-weight: 600; }
.notice { border-radius: 14px; padding: 1rem 1.2rem; font-size: .92rem; margin-top: 1rem; }
.notice--ok { background: #e7f2e8; color: var(--ok); }
.notice--err { background: #f8e6e2; color: #7a2a1c; }

.info-cards { display: grid; gap: 1rem; }
.info { display: flex; gap: 1rem; align-items: flex-start; padding: 1.3rem 1.4rem; border-radius: var(--r); }
.info .svc__icon { width: 46px; height: 46px; border-radius: 14px; }
.info strong { display: block; font-family: var(--font-head); }
a.info { text-decoration: none; transition: transform .25s var(--ease); }
a.info:hover { transform: translateY(-2px); }

.bg-soft { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.bg-soft img { width: 100%; height: 100%; object-fit: cover; opacity: .28; filter: saturate(.8); }
.bg-soft::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--cream) 0%, rgba(246, 242, 236, .6) 30%, var(--cream) 100%); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .result { position: relative; top: 0; }
}
@media (max-width: 860px) {
  .split, .svc-row { grid-template-columns: 1fr; }
  .split--flip > :first-child, .svc-row:nth-child(even) .svc-row__img { order: 0; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .proj { aspect-ratio: 4 / 5; }
  .proj__info { right: 1.4rem; bottom: 5.5rem; }
  .proj .btn { left: 1.4rem; right: auto; }
  .types { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-3, .steps, .footer-grid, .numbers, .checks, .row-2, .checks-inline, .svc-row .checks { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: 1fr 1fr 1fr; padding: 1rem .2rem; }
  .stat { padding: .2rem .4rem; }
  .stat span { font-size: .72rem; }
  .logo { height: 28px; }
  .step { min-height: 0; }
}
