/* ============================================================
   ANCILLOTTI MASONRY — Design System
   Premium architectural identity. Warm ivory, charcoal,
   bronze/copper. Editorial serif headlines, clean sans body.
   ============================================================ */

:root {
  /* Palette */
  --ivory:        #F6F3EE;
  --ivory-deep:   #EDE8E0;
  --stone:        #D9D1C5;
  --charcoal:     #262622;
  --charcoal-soft:#3C3C37;
  --graphite:     #1A1A18;
  --bronze:       #A07853;
  --bronze-dark:  #86624A;
  --bronze-lite:  #C29B76;
  --smoke:        #6E6E66;
  --line:         #E0D9CE;
  --white:        #FFFFFF;

  /* Type */
  --serif:  "Playfair Display", "Georgia", serif;
  --sans:   "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Scale */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1:  clamp(1.25rem, 1.15rem + 0.5vw, 1.6rem);
  --step-2:  clamp(1.6rem, 1.3rem + 1.5vw, 2.4rem);
  --step-3:  clamp(2.2rem, 1.6rem + 3vw, 4rem);
  --step-4:  clamp(3rem, 1.8rem + 6vw, 6.5rem);

  /* Layout */
  --maxw: 1240px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --radius: 4px;
  --shadow-soft: 0 20px 60px -30px rgba(26,26,24,0.45);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; color: var(--charcoal); }
p { max-width: 62ch; }
::selection { background: var(--bronze); color: var(--ivory); }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--bronze-lite);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  font-family: var(--sans);
  font-size: var(--step--1);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--bronze-dark);
  display: inline-block;
}
.section-head { max-width: 44ch; }
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head h2 { font-size: var(--step-3); margin-bottom: 1.25rem; }
.section-head p { color: var(--smoke); font-size: var(--step-1); line-height: 1.65; }
.divider { width: 64px; height: 2px; background: var(--bronze); margin: 1.5rem 0; }
.divider.center { margin-inline: auto; }
.center { text-align: center; }
.center .divider { margin-inline: auto; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--sans); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 1.05rem 2.1rem; border: 1px solid transparent;
  cursor: pointer; transition: all 0.4s var(--ease);
  border-radius: var(--radius);
}
.btn-primary { background: var(--bronze); color: var(--ivory); }
.btn-primary:hover { background: var(--bronze-dark); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-ghost { border-color: var(--ivory); color: var(--ivory); background: transparent; }
.btn-ghost:hover { background: var(--ivory); color: var(--charcoal); }
.btn-dark { background: var(--charcoal); color: var(--ivory); }
.btn-dark:hover { background: var(--bronze); }
.btn svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 1; transform: none; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.reveal-pending { opacity: 0; transform: translateY(28px); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Top bar ---------- */
.topbar {
  font-size: var(--step--1); letter-spacing: 0.06em; color: var(--ivory);
  background: var(--graphite);
}
.topbar .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 0.6rem; }
.topbar a { color: var(--ivory); transition: color 0.3s; }
.topbar a:hover { color: var(--bronze-lite); }
.topbar ul { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.topbar .sep { opacity: 0.4; }

/* ---------- Header / Nav ---------- */
header.site {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1.1rem;
  background: rgba(246,243,238,0.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: all 0.4s var(--ease);
}
header.site.scrolled { padding-block: 0.65rem; border-color: var(--line); box-shadow: 0 6px 30px -20px rgba(26,26,24,0.35); }
.brand { display: flex; align-items: center; gap: 0.8rem; font-family: var(--serif); }
.brand .mark {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--charcoal); color: var(--bronze-lite);
  font-weight: 700; font-size: 1.05rem; font-family: var(--serif);
}
.brand .txt { line-height: 1.05; }
.brand .txt .name { font-size: 1.15rem; font-weight: 600; letter-spacing: 0.02em; }
.brand .txt .sub { font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.38em; text-transform: uppercase; color: var(--bronze-dark); font-weight: 600; }

nav.primary ul { display: flex; gap: 2.2rem; align-items: center; }
nav.primary a {
  font-size: 0.86rem; font-weight: 500; letter-spacing: 0.04em;
  position: relative; padding: 0.4rem 0; color: var(--charcoal-soft);
  transition: color 0.3s;
}
nav.primary a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--bronze); transition: width 0.35s var(--ease);
}
nav.primary a:hover, nav.primary a.active { color: var(--charcoal); }
nav.primary a:hover::after, nav.primary a.active::after { width: 100%; }
nav.primary .cta { padding: 0.7rem 1.4rem; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  background: transparent; border: 1px solid var(--line); cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 50%; top: 50%; width: 20px; height: 1.5px;
  background: var(--charcoal); transform: translate(-50%,-50%);
  transition: all 0.35s var(--ease);
}
.nav-toggle span:nth-child(1) { transform: translate(-50%,-6px); }
.nav-toggle span:nth-child(3) { transform: translate(-50%, 4px); }
.nav-toggle.open span:nth-child(1) { transform: translate(-50%, 0) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translate(-50%, 0) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: flex-end;
  color: var(--ivory); overflow: hidden;
}
.hero .bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.05); transition: transform 8s linear;
}
.hero.in .bg { transform: scale(1.14); }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,26,24,0.35) 0%, rgba(26,26,24,0.15) 35%, rgba(26,26,24,0.82) 100%);
}
.hero .container { position: relative; z-index: 2; padding-block: clamp(5rem, 12vh, 10rem); max-width: 820px; }
.hero .eyebrow { color: var(--bronze-lite); }
.hero h1 { color: var(--ivory); font-size: var(--step-4); margin: 1.2rem 0 1.4rem; font-weight: 600; }
.hero h1 em { font-style: italic; color: var(--bronze-lite); }
.hero .lede { font-size: var(--step-1); color: rgba(246,243,238,0.9); max-width: 52ch; line-height: 1.65; margin-bottom: 2.2rem; }
.hero .actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero .meta {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  border-top: 1px solid rgba(246,243,238,0.2);
  background: rgba(26,26,24,0.5); backdrop-filter: blur(8px);
}
.hero .meta .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero .meta > div { padding: 1.3rem 0; text-align: center; border-right: 1px solid rgba(246,243,238,0.12); }
.hero .meta > div:last-child { border-right: none; }
.hero .meta .k { font-size: 0.66rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--bronze-lite); }
.hero .meta .v { font-family: var(--serif); font-size: 1.05rem; margin-top: 0.3rem; color: var(--ivory); }

/* ---------- Intro strip ---------- */
.intro { padding: clamp(5rem, 9vw, 8.5rem) 0; }
.intro .grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.intro .copy h2 { font-size: var(--step-2); margin-bottom: 1.5rem; }
.intro .copy p { color: var(--smoke); margin-bottom: 1.4rem; }
.intro .stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.intro .stat { border-top: 2px solid var(--bronze); padding-top: 1.1rem; }
.intro .stat .n { font-family: var(--serif); font-size: var(--step-2); color: var(--charcoal); }
.intro .stat .l { font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; color: var(--smoke); margin-top: 0.35rem; }
.intro .media { position: relative; }
.intro .media img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.intro .media .badge {
  position: absolute; bottom: -24px; left: -24px; background: var(--charcoal); color: var(--ivory);
  padding: 1.4rem 1.6rem; border-radius: var(--radius); max-width: 220px;
  box-shadow: var(--shadow-soft);
}
.intro .media .badge .n { font-family: var(--serif); font-size: 2rem; color: var(--bronze-lite); line-height: 1; }
.intro .media .badge .l { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; margin-top: 0.4rem; display: block; }

/* ---------- Services ---------- */
.services { padding: clamp(5rem, 9vw, 8.5rem) 0; background: var(--ivory-deep); }
.services .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 3rem; border: 1px solid var(--line); }
.service {
  background: var(--ivory); padding: clamp(1.8rem, 3vw, 2.8rem);
  transition: all 0.45s var(--ease); position: relative;
}
.service::before {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 3px;
  background: var(--bronze); transform: scaleY(0); transform-origin: top; transition: transform 0.45s var(--ease);
}
.service:hover { background: var(--charcoal); color: var(--ivory); transform: translateY(-4px); }
.service:hover::before { transform: scaleY(1); }
.service:hover .service .n, .service:hover .service p, .service:hover .service .more { color: var(--ivory); }
.service .n { font-family: var(--serif); font-size: var(--step-2); color: var(--bronze); transition: color 0.4s; }
.service h3 { font-size: var(--step-1); margin: 0.9rem 0 0.7rem; }
.service p { color: var(--smoke); font-size: 0.95rem; transition: color 0.4s; }
.service .more { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.2rem; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--bronze-dark); transition: color 0.4s, gap 0.4s; }
.service:hover .more { gap: 0.9rem; }

/* ---------- Split (feature) ---------- */
.split { padding: clamp(5rem, 9vw, 8.5rem) 0; }
.split .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: 520px; }
.split .media { position: relative; overflow: hidden; }
.split .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.split .media:hover img { transform: scale(1.06); }
.split .copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(2.5rem, 6vw, 5rem); background: var(--charcoal); color: var(--ivory); }
.split .copy .eyebrow { color: var(--bronze-lite); }
.split .copy h2 { color: var(--ivory); font-size: var(--step-2); margin: 1rem 0 1.4rem; }
.split .copy p { color: rgba(246,243,238,0.8); margin-bottom: 1.4rem; }
.split.alt .copy { order: 2; }
.split.alt .media { order: 1; }

/* ---------- Portfolio grid ---------- */
.work { padding: clamp(5.5rem, 10vw, 9rem) 0; }
.work .head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: 3rem; }
.work .filters { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.work .filter {
  font-size: 0.8rem; letter-spacing: 0.08em; padding: 0.6rem 1.2rem;
  border: 1px solid var(--line); background: transparent; color: var(--smoke);
  border-radius: 40px; cursor: pointer; transition: all 0.3s var(--ease);
}
.work .filter:hover { border-color: var(--bronze); color: var(--charcoal); }
.work .filter.active { background: var(--charcoal); color: var(--ivory); border-color: var(--charcoal); }
.work .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 3; cursor: pointer; background: var(--charcoal);
}
.tile.wide { grid-column: span 2; aspect-ratio: 8 / 3; }
.tile.tall { grid-row: span 2; aspect-ratio: auto; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.tile:hover img { transform: scale(1.08); }
.tile .cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: clamp(1.4rem, 3vw, 2.4rem); color: var(--ivory);
  background: linear-gradient(0deg, rgba(26,26,24,0.85) 0%, rgba(26,26,24,0) 70%);
  transform: translateY(12px); opacity: 0; transition: all 0.5s var(--ease);
}
.tile:hover .cap, .tile:focus-visible .cap { transform: translateY(0); opacity: 1; }
.tile .cap .cat { font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--bronze-lite); }
.tile .cap h3 { font-size: var(--step-1); margin-top: 0.35rem; }
.tile .cap p { font-size: 0.85rem; color: rgba(246,243,238,0.85); margin: 0.4rem 0 0; }
.tile .num { position: absolute; top: 1rem; left: 1rem; z-index: 2; font-family: var(--serif); font-size: 0.9rem; color: var(--ivory); background: rgba(26,26,24,0.5); padding: 0.3rem 0.7rem; border-radius: 40px; backdrop-filter: blur(4px); }

/* ---------- Testimonials ---------- */
.quotes { padding: clamp(5.5rem, 10vw, 9rem) 0; background: var(--graphite); color: var(--ivory); }
.quotes .eyebrow { color: var(--bronze-lite); }
.quotes .head-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: end; margin-bottom: 3.5rem; }
.quotes .head-row h2 { color: var(--ivory); font-size: var(--step-2); }
.quotes .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.quote {
  background: rgba(246,243,238,0.04); border: 1px solid rgba(246,243,238,0.1);
  padding: clamp(1.8rem, 3vw, 2.6rem); border-radius: var(--radius);
  transition: all 0.4s var(--ease);
}
.quote:hover { background: rgba(246,243,238,0.07); transform: translateY(-4px); }
.quote .mark { font-family: var(--serif); font-size: 3rem; line-height: 0.6; color: var(--bronze); }
.quote p { color: rgba(246,243,238,0.9); font-size: 1rem; line-height: 1.7; margin: 1rem 0 1.6rem; }
.quote .who { display: flex; align-items: center; gap: 0.8rem; border-top: 1px solid rgba(246,243,238,0.12); padding-top: 1.1rem; }
.quote .who .av {
  width: 42px; height: 42px; border-radius: 50%; background: var(--bronze);
  display: grid; place-items: center; font-family: var(--serif); font-weight: 700; color: var(--ivory);
}
.quote .who .n { font-weight: 600; }
.quote .who .y { font-size: 0.78rem; color: var(--bronze-lite); }

/* ---------- CTA band ---------- */
.cta-band {
  padding: clamp(4.5rem, 8vw, 7rem) 0; position: relative; overflow: hidden;
  color: var(--ivory); text-align: center;
}
.cta-band .bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: rgba(26,26,24,0.8); }
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 { color: var(--ivory); font-size: var(--step-3); margin-bottom: 1.2rem; }
.cta-band p { color: rgba(246,243,238,0.85); font-size: var(--step-1); margin-inline: auto; margin-bottom: 2.2rem; }
.cta-band .actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact { padding: clamp(5.5rem, 10vw, 9rem) 0; }
.contact .grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(3rem, 6vw, 6rem); }
.contact .info h2 { font-size: var(--step-2); margin-bottom: 1.2rem; }
.contact .info p { color: var(--smoke); margin-bottom: 2.5rem; }
.contact .details { display: grid; gap: 1.6rem; }
.contact .detail .lbl { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bronze-dark); font-weight: 600; }
.contact .detail .val { font-family: var(--serif); font-size: var(--step-1); margin-top: 0.3rem; }
.contact .detail a { transition: color 0.3s; }
.contact .detail a:hover { color: var(--bronze); }
.contact .form { background: var(--ivory-deep); padding: clamp(2rem, 4vw, 3rem); border-radius: var(--radius); border: 1px solid var(--line); }
.contact .form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.contact .field { margin-bottom: 1.3rem; }
.contact .field label { display: block; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--charcoal-soft); margin-bottom: 0.5rem; font-weight: 600; }
.contact .field input, .select-wrap .contact .field select, .contact .field textarea {
  width: 100%; font-family: var(--sans); font-size: var(--step-0);
  padding: 0.9rem 1rem; border: 1px solid var(--line); background: var(--ivory);
  border-radius: var(--radius); color: var(--charcoal); transition: border-color 0.3s, box-shadow 0.3s;
}
.contact .field textarea { resize: vertical; min-height: 130px; }
.contact .field input:focus, .contact .field select:focus, .contact .field textarea:focus { outline: none; border-color: var(--bronze); box-shadow: 0 0 0 3px rgba(160,120,83,0.15); }
.select-wrap { position: relative; }
.select-wrap::after { content: "\25BC"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font-size: 0.7rem; color: var(--bronze); pointer-events: none; }
.contact .form .btn { width: 100%; justify-content: center; margin-top: 0.5rem; }
.form-note { font-size: 0.8rem; color: var(--smoke); margin-top: 1rem; }

/* ---------- Footer ---------- */
footer.site { background: var(--graphite); color: rgba(246,243,238,0.75); padding: clamp(4rem, 7vw, 6rem) 0 0; }
footer .grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 3rem; padding-bottom: 3.5rem; border-bottom: 1px solid rgba(246,243,238,0.1); }
footer .brand .txt .name { color: var(--ivory); }
footer .brand p { color: rgba(246,243,238,0.6); font-size: 0.92rem; margin-top: 1.2rem; }
footer h4 { color: var(--ivory); font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; margin-bottom: 1.4rem; }
footer ul li { margin-bottom: 0.8rem; }
footer ul a { color: rgba(246,243,238,0.65); transition: color 0.3s, padding-left 0.3s; font-size: 0.92rem; }
footer ul a:hover { color: var(--bronze-lite); padding-left: 4px; }
footer .contact-line { font-size: 0.92rem; margin-bottom: 0.7rem; }
footer .contact-line a { color: var(--bronze-lite); }
footer .socials { display: flex; gap: 0.7rem; margin-top: 1.4rem; }
footer .socials a { width: 40px; height: 40px; border: 1px solid rgba(246,243,238,0.18); border-radius: 50%; display: grid; place-items: center; color: var(--ivory); transition: all 0.3s; }
footer .socials a:hover { background: var(--bronze); border-color: var(--bronze); }
footer .bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; padding: 1.8rem 0; font-size: 0.82rem; color: rgba(246,243,238,0.5); }
footer .bottom a { color: rgba(246,243,238,0.5); transition: color 0.3s; }
footer .bottom a:hover { color: var(--bronze-lite); }

/* ---------- Subpage hero ---------- */
.page-hero { padding: clamp(4.5rem, 9vw, 7rem) 0; background: var(--ivory-deep); border-bottom: 1px solid var(--line); }
.page-hero .eyebrow { margin-bottom: 1rem; }
.page-hero h1 { font-size: var(--step-3); }
.page-hero .lede { color: var(--smoke); font-size: var(--step-1); margin-top: 1rem; }
.breadcrumb { margin-top: 1.4rem; font-size: 0.82rem; color: var(--smoke); }
.breadcrumb a { color: var(--bronze-dark); }
.breadcrumb span { margin: 0 0.6rem; opacity: 0.5; }

/* ---------- Services list (page) ---------- */
.svc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.svc-item { padding: clamp(1.8rem, 3vw, 2.6rem); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ivory); transition: background 0.4s; }
.svc-item:nth-child(2n) { border-right: none; }
.svc-item:nth-child(n+3) { border-top: 1px solid var(--line); }
.svc-item:hover { background: var(--ivory-deep); }
.svc-item .top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.8rem; }
.svc-item .n { font-family: var(--serif); font-size: var(--step-1); color: var(--bronze); }
.svc-item h3 { font-size: var(--step-1); margin-bottom: 0.6rem; }
.svc-item p { color: var(--smoke); font-size: 0.95rem; }

/* ---------- About page ---------- */
.about-hero { position: relative; min-height: 60vh; display: flex; align-items: flex-end; overflow: hidden; }
.about-hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.about-hero::after { content: ""; position: absolute; inset: 0; background: rgba(26,26,24,0.55); }
.about-hero .container { position: relative; z-index: 2; color: var(--ivory); }
.about-hero h1 { color: var(--ivory); font-size: var(--step-3); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.value { padding-top: 2rem; border-top: 2px solid var(--bronze); }
.value h3 { font-size: var(--step-1); margin-bottom: 0.7rem; }
.value p { color: var(--smoke); font-size: 0.95rem; }

/* ---------- Project modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 1000; background: rgba(26,26,24,0.92);
  display: none; align-items: center; justify-content: center; padding: 2rem; backdrop-filter: blur(4px);
}
.modal.open { display: flex; }
.modal .panel {
  background: var(--ivory); border-radius: var(--radius); max-width: 920px; width: 100%;
  max-height: 90vh; overflow-y: auto; position: relative; box-shadow: var(--shadow-soft);
  animation: modalIn 0.4s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.modal .close {
  position: absolute; top: 1rem; right: 1rem; z-index: 5; width: 44px; height: 44px;
  border-radius: 50%; background: var(--charcoal); color: var(--ivory); border: none;
  font-size: 1.4rem; cursor: pointer; display: grid; place-items: center; transition: background 0.3s;
}
.modal .close:hover { background: var(--bronze); }
.modal .media { aspect-ratio: 16/9; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.modal .media img { width: 100%; height: 100%; object-fit: cover; }
.modal .body { padding: clamp(1.8rem, 4vw, 3rem); }
.modal .body .cat { font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--bronze-dark); }
.modal .body h2 { font-size: var(--step-2); margin: 0.6rem 0 1rem; }
.modal .body p { color: var(--smoke); margin-bottom: 1rem; }
.modal .facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1.8rem 0; padding: 1.6rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.modal .facts .f .k { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bronze-dark); }
.modal .facts .f .v { font-family: var(--serif); font-size: 1.05rem; margin-top: 0.3rem; }

/* ---------- Back to top ---------- */
.totop {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 90; width: 48px; height: 48px;
  border-radius: 50%; background: var(--charcoal); color: var(--ivory); border: none;
  cursor: pointer; display: grid; place-items: center; opacity: 0; pointer-events: none;
  transition: all 0.4s var(--ease); box-shadow: var(--shadow-soft);
}
.totop.show { opacity: 1; pointer-events: auto; }
.totop:hover { background: var(--bronze); }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  nav.primary {
    display: none;
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 360px); height: 100vh;
    background: var(--charcoal); flex-direction: column; justify-content: center; padding: 2rem;
    transform: translateX(100%); transition: transform 0.5s var(--ease); box-shadow: -20px 0 60px -20px rgba(0,0,0,0.6);
  }
  nav.primary.open { display:flex; transform: translateX(0); }
  nav.primary ul { flex-direction: column; gap: 1.6rem; align-items: stretch; }
  nav.primary a { font-size: 1.2rem; color: var(--ivory); padding: 0.5rem 0; }
  nav.primary a::after { background: var(--bronze-lite); }
  nav.primary .cta { text-align: center; margin-top: 1rem; }
  .nav-toggle { display: grid; place-items: center; z-index: 110; }
  .intro .grid, .split .grid, .contact .grid, .quotes .head-row { grid-template-columns: 1fr; gap: 2.5rem; }
  .split.alt .copy { order: 0; }
  .split.alt .media { order: 0; }
  .services .grid, .work .grid { grid-template-columns: repeat(2, 1fr); }
  .tile.wide { grid-column: span 2; }
  .quotes .grid { grid-template-columns: 1fr; }
  footer .grid { grid-template-columns: 1fr 1fr; }
  .svc-list { grid-template-columns: 1fr; }
  .svc-item { border-right: none; }
  .values { grid-template-columns: 1fr; }
  .hero .meta .container { grid-template-columns: repeat(2, 1fr); }
  .hero .meta > div:nth-child(2) { border-right: none; }
}
@media (max-width: 560px) {
  .services .grid, .work .grid { grid-template-columns: 1fr; }
  .tile.wide { grid-column: span 1; aspect-ratio: 4/3; }
  .contact .form .row, .contact .facts .row { grid-template-columns: 1fr; }
  footer .grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero .meta .container { grid-template-columns: 1fr; }
  .hero .meta > div { border-right: none; border-bottom: 1px solid rgba(246,243,238,0.12); }
  .intro .media .badge { position: static; margin-top: 1.2rem; }
}

/* The inquiry is a real saved Wix form, with a usable direct-link fallback. */
.enquiry-form { min-width:0; background:var(--ivory-deep); padding:clamp(1rem,3vw,2rem); border:1px solid var(--line); border-radius:var(--radius); }
.enquiry-form h2 { font-size:var(--step-1); margin-bottom:1rem; }
.enquiry-form > p { margin-bottom:1.2rem; }
.wix-enquiry { display:block; width:100%; height:730px; border:0; background:white; border-radius:var(--radius); }
@media(max-width:560px) { .wix-enquiry { height:760px; } .enquiry-form .btn { width:100%; white-space:normal; text-align:center; } }

/* Match the actual header and hero markup without hiding content behind overlays. */
header.site > .container { display:flex; align-items:center; justify-content:space-between; gap:1.5rem; }
.brand .mark { flex-shrink:0; }
.brand .txt .name, .brand .txt .sub { display:block; }
.brand .txt .sub { margin-top:0.4rem; }
nav.primary a.btn-dark, nav.primary a.btn-dark.active, nav.primary a.btn-dark:hover { color:var(--ivory); }
.hero { flex-direction:column; align-items:stretch; justify-content:flex-end; min-height:84svh; }
.hero > .container { padding-block:clamp(3rem,8vh,6rem); }
.hero .eyebrow { color:var(--ivory); }
.hero .meta { position:relative; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); }
.hero .meta > div { padding:1.25rem 1rem; }
.service:hover h3, .service:hover p, .service:hover .n, .service:hover .more { color:var(--ivory); }
@media(max-width:960px) { .hero .meta { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:560px) { header.site > .container { gap:0.75rem; } .brand .txt .name { font-size:1rem; } .brand .txt .sub { font-size:0.55rem; letter-spacing:0.2em; } .hero .meta .v { font-size:0.9rem; } }
