/* =========================================================
   TERRA SPACE STUDIO — Architecture & Interiors
   Design system. Brand colours come from the logo:
   deep earth brown #3a2d22 and taupe #b5a898.
   (Animations intentionally minimal — to be planned next.)
   ========================================================= */

:root {
  --ivory: #faf7f2;
  --cream: #f2ece4;
  --sand: #e7ddd0;
  --brown: #3a2d22;
  --brown-2: #2e231a;
  --brown-3: #211812;
  --taupe: #b5a898;
  --taupe-2: #cfc3b4;
  --bronze: #8c7158;
  --bronze-3: #6b5440;
  --ink: #221912;
  --text: #2c221b;
  --muted: #5d5148;
  --line: #e2d8cb;
  --line-dark: rgba(207, 195, 180, .2);
  --grad: linear-gradient(135deg, #d9cbb9 0%, #a8907a 45%, #6b5440 100%);

  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", system-ui, sans-serif;

  --pad: clamp(18px, 5vw, 72px);
  --max: 1320px;
  --section: clamp(84px, 13vh, 150px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--ivory); color: var(--text);
  font-family: var(--sans); font-weight: 500; font-size: 15.5px; line-height: 1.75;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--brown); color: var(--ivory); }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--brown); color: var(--ivory); padding: 10px 16px; }
.skip-link:focus { top: 12px; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: var(--section) 0; position: relative; }
.section--cream { background: var(--cream); }
.section--dark { background: var(--brown-3); color: var(--cream); }
.section--brown { background: var(--brown); color: var(--cream); }
.section--dark::before, .section--brown::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: radial-gradient(circle at 50% 50%, rgba(207,195,180,.1) 1px, transparent 1.5px);
  background-size: 28px 28px;
}
.section--dark > *, .section--brown > * { position: relative; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 110px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--display); font-size: 12px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase;
  color: var(--bronze-3);
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--bronze); }
.eyebrow::after { content: ""; width: 6px; height: 6px; background: var(--bronze); transform: rotate(45deg); order: -1; margin-right: -8px; }
.section--dark .eyebrow, .section--brown .eyebrow { color: var(--taupe-2); }
.section--dark .eyebrow::before, .section--brown .eyebrow::before,
.section--dark .eyebrow::after, .section--brown .eyebrow::after { background: var(--taupe); }
.eyebrow--center { justify-content: center; }

.h1, .h2 {
  font-family: var(--display); font-weight: 500; text-transform: uppercase;
  letter-spacing: .045em; line-height: 1.18; color: var(--ink);
}
.section--dark .h2, .section--brown .h2 { color: var(--ivory); }
.h1 { font-size: clamp(30px, 3.6vw, 56px); }
.h2 { font-size: clamp(26px, 2.7vw, 42px); }
.h1 em, .h2 em {
  font-family: var(--serif); font-style: italic; font-weight: 500; text-transform: none;
  letter-spacing: .005em; font-size: 1.22em; line-height: .9;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
.section--dark .h2 em, .section--brown .h2 em { background: linear-gradient(135deg, #efe5d8, #cfc3b4 50%, #a8907a); -webkit-background-clip: text; background-clip: text; }
.lead { font-size: clamp(15.5px, 1.15vw, 17.5px); line-height: 1.85; color: var(--text); font-weight: 500; max-width: 600px; }
.section--dark .lead, .section--brown .lead { color: rgba(242, 236, 228, .74); }
.statement { font-family: var(--serif); font-size: clamp(21px, 1.85vw, 28px); line-height: 1.5; font-weight: 500; color: var(--ink); max-width: 580px; }
.statement em { font-style: italic; color: var(--bronze-3); }
.mt-s { margin-top: 18px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 56px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ornament divider:  ——— ◆ ——— */
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--bronze); }
.ornament::before, .ornament::after { content: ""; width: min(120px, 20vw); height: 1px; background: linear-gradient(90deg, transparent, var(--bronze)); }
.ornament::after { transform: scaleX(-1); }
.ornament span { width: 9px; height: 9px; border: 1px solid var(--bronze); transform: rotate(45deg); position: relative; }
.ornament span::after { content: ""; position: absolute; inset: 2px; background: var(--bronze); }
.section--brown .ornament, .section--dark .ornament { color: var(--taupe); }
.section--brown .ornament::before, .section--brown .ornament::after { background: linear-gradient(90deg, transparent, var(--taupe)); }
.section--brown .ornament span { border-color: var(--taupe); }
.section--brown .ornament span::after { background: var(--taupe); }

/* ---------- buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 30px; border-radius: 999px;
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  transition: color .5s var(--ease), border-color .5s, box-shadow .5s;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(102%); transition: transform .55s var(--ease-io); }
.btn:hover::before { transform: translateY(0); }
.btn .arrow { transition: transform .5s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--bronze { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -12px rgba(107,84,64,.7); }
.btn--bronze::before { background: var(--brown); }
.btn--brown { background: var(--brown); color: var(--ivory); }
.btn--brown::before { background: var(--bronze-3); }
.btn--outline { border: 1.5px solid var(--ink); color: var(--ink); }
.btn--outline::before { background: var(--brown); }
.btn--outline:hover { color: var(--ivory); }
.btn--light { border: 1px solid rgba(242,236,228,.5); color: var(--ivory); }
.btn--light::before { background: var(--ivory); }
.btn--light:hover { color: var(--brown); }
.btn--sm { padding: 12px 22px; font-size: 11px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--brown);
  padding-bottom: 6px; background: linear-gradient(var(--bronze), var(--bronze)) 0 100% / 100% 1px no-repeat;
  transition: background-size .5s var(--ease);
}
.link-arrow:hover { background-size: 40% 1px; }
.section--dark .link-arrow, .section--brown .link-arrow { color: var(--taupe-2); background-image: linear-gradient(var(--taupe), var(--taupe)); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  display: flex; align-items: center; gap: 32px; padding: 18px var(--pad);
  transition: background .5s, padding .5s, box-shadow .5s;
}
.site-header.is-scrolled {
  background: rgba(250, 247, 242, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding-top: 10px; padding-bottom: 10px; box-shadow: 0 1px 0 var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; color: var(--brown); }
.brand__mark { width: 34px; height: 42px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: .18em; color: var(--brown); }
.brand__tag { font-family: var(--display); font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--bronze-3); margin-top: 4px; }
.main-nav { display: flex; gap: clamp(18px, 2.4vw, 38px); }
.main-nav a { position: relative; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); padding: 6px 0; }
.main-nav a::after {
  content: ""; position: absolute; left: 50%; bottom: -2px; width: 5px; height: 5px; background: var(--bronze);
  transform: translateX(-50%) rotate(45deg) scale(0); transition: transform .4s var(--ease);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: translateX(-50%) rotate(45deg) scale(1); }
.main-nav a[aria-current="page"] { color: var(--bronze-3); }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); position: relative; z-index: 120; }
.menu-toggle span:not(.sr-only) { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--brown); transition: transform .5s var(--ease), top .5s var(--ease); }
.menu-toggle span:nth-child(1) { top: 19px; }
.menu-toggle span:nth-child(2) { top: 26px; }
.menu-open .menu-toggle { border-color: rgba(242,236,228,.3); }
.menu-open .menu-toggle span:not(.sr-only) { background: var(--ivory); top: 22.5px; }
.menu-open .menu-toggle span:nth-child(1) { transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { transform: rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 110; background: var(--brown-3); color: var(--cream);
  display: flex; flex-direction: column; justify-content: center; padding: 110px var(--pad) 40px;
  clip-path: circle(0% at calc(100% - 44px) 40px); transition: clip-path .8s var(--ease-io); visibility: hidden;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 44px) 40px); visibility: visible; }
.mm-link { display: flex; align-items: baseline; gap: 16px; font-family: var(--serif); font-size: clamp(38px, 10vw, 60px); line-height: 1.2; font-weight: 300; }
.mm-link small { font-family: var(--display); font-size: 11px; color: var(--taupe); letter-spacing: .2em; }
.mm-link[aria-current="page"] { color: var(--taupe-2); font-style: italic; }
.mobile-menu__foot { margin-top: 48px; font-size: 14px; color: rgba(242,236,228,.6); display: grid; gap: 6px; }

/* ---------- arch frames & media ---------- */
.arch { border-radius: 999px 999px 0 0; overflow: hidden; position: relative; }
.arch img, .frame img { width: 100%; height: 100%; object-fit: cover; }
.arch--outline { padding: 12px; border: 1px solid var(--bronze); border-bottom: 0; border-radius: 999px 999px 0 0; }
.arch--outline > .arch { height: 100%; }
.frame { overflow: hidden; position: relative; }
.media-wrap { position: relative; }
.ratio-45 { aspect-ratio: 4 / 5; }
.ratio-34 { aspect-ratio: 3 / 4; }
.ratio-43 { aspect-ratio: 4 / 3; }
.ratio-169 { aspect-ratio: 16 / 9; }
.badge-seal {
  position: absolute; z-index: 2; width: 132px; height: 132px; border-radius: 50%;
  background: var(--brown); color: var(--taupe-2); display: grid; place-items: center; text-align: center;
  font-family: var(--display); font-size: 10px; letter-spacing: .2em; line-height: 1.5; text-transform: uppercase;
  box-shadow: 0 0 0 6px var(--ivory), 0 0 0 7px var(--bronze);
}
.badge-seal b { display: block; font-family: var(--serif); font-size: 40px; letter-spacing: 0; color: var(--ivory); font-weight: 400; line-height: 1; }

/* ---------- home hero ---------- */
.hero { position: relative; min-height: 100vh; background: var(--cream); overflow: hidden; display: flex; align-items: center; padding: 130px 0 90px; }
.hero::after {
  content: ""; position: absolute; right: -10vw; top: -14vw; width: 56vw; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(140,113,88,.22); box-shadow: 0 0 0 50px rgba(140,113,88,.04), 0 0 0 100px rgba(140,113,88,.03); pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 6vw, 100px); align-items: center; position: relative; z-index: 1; }
.hero .h1 { font-size: clamp(34px, 4.2vw, 64px); margin-top: 22px; }
.hero__side { margin-top: 26px; max-width: 470px; color: var(--text); font-size: 16px; line-height: 1.85; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__facts { display: flex; gap: 0; margin-top: 54px; border-top: 1px solid var(--line); max-width: 520px; }
.hero__facts div { flex: 1; padding: 18px 18px 0 0; }
.hero__facts div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.hero__facts b { display: block; font-family: var(--serif); font-size: 34px; line-height: 1; font-weight: 500; color: var(--brown); }
.hero__facts b sup { font-size: .5em; color: var(--bronze); }
.hero__facts span { display: block; margin-top: 8px; font-family: var(--display); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.hero__media { position: relative; max-width: 500px; justify-self: end; width: 100%; }
.hero__media .badge-seal { left: -46px; bottom: 70px; }
.hero__tag {
  position: absolute; right: -14px; top: 42%; z-index: 2; background: var(--ivory); border: 1px solid var(--line);
  padding: 12px 18px; font-family: var(--display); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--brown);
  box-shadow: 0 20px 40px -24px rgba(33,24,18,.4);
}
.hero__tag small { display: block; font-family: var(--serif); font-style: italic; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--bronze-3); }

/* ---------- inner page hero ---------- */
.page-hero { position: relative; padding: clamp(150px, 22vh, 210px) 0 clamp(70px, 10vh, 110px); background: var(--cream); overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -8vw; top: -10vw; width: 46vw; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(140,113,88,.25); box-shadow: 0 0 0 40px rgba(140,113,88,.04), 0 0 0 80px rgba(140,113,88,.03); pointer-events: none;
}
.page-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 96px); align-items: end; position: relative; z-index: 1; }
.page-hero .lead { margin-top: 28px; }
.page-hero .h1 { margin-top: 20px; }
.page-hero__media { position: relative; z-index: 1; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--display); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.breadcrumb a:hover { color: var(--brown); }
.breadcrumb li + li::before { content: "◆"; color: var(--bronze); font-size: 7px; margin-right: 10px; vertical-align: 2px; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: 72px; }
.stat { padding: 30px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat__num { font-family: var(--serif); font-size: clamp(44px, 5vw, 76px); line-height: 1; color: var(--brown); }
.stat__num sup { font-size: .45em; color: var(--bronze); margin-left: 2px; }
.stat__label { font-family: var(--display); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }

/* ---------- services list (home, dark) ---------- */
.svc-list { border-top: 1px solid var(--line-dark); margin-top: 64px; }
.svc-row { display: grid; grid-template-columns: 90px 1.1fr 1fr 48px; gap: 24px; align-items: center; padding: 34px 0; border-bottom: 1px solid var(--line-dark); }
.svc-row__no { font-family: var(--display); font-size: 13px; color: var(--taupe); letter-spacing: .1em; }
.svc-row__name { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 36px); font-weight: 500; line-height: 1.15; color: var(--ivory); transition: transform .6s var(--ease), color .4s; }
.svc-row__desc { font-size: 15px; color: rgba(242,236,228,.62); max-width: 440px; }
.svc-row__arrow { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; color: var(--taupe-2); transition: background .4s, transform .5s var(--ease), color .4s; }
.svc-row:hover .svc-row__name { transform: translateX(16px); color: var(--taupe-2); font-style: italic; }
.svc-row:hover .svc-row__arrow { background: var(--taupe); color: var(--brown-3); transform: rotate(-45deg); }

/* ---------- arch project cards (home, dark) ---------- */
.feature-grid { display: grid; grid-template-columns: .9fr 1fr 1fr 1fr; gap: clamp(20px, 2.6vw, 40px); align-items: start; margin-top: 10px; }
.feature-intro p { color: rgba(242,236,228,.68); max-width: 320px; }
.hcard { display: block; }
.hcard:nth-child(odd) { margin-top: 70px; }
.hcard__img { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 220px 220px 0 0; }
.hcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hcard:hover .hcard__img img { transform: scale(1.06); }
.hcard__meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; gap: 12px; }
.hcard__meta h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.15; color: var(--ivory); }
.hcard__meta span { font-family: var(--display); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--taupe); white-space: nowrap; }
.hcard__loc { margin-top: 4px; font-size: 13.5px; color: rgba(242,236,228,.55); }

/* ---------- steps (philosophy / process) ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 70px; }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.step { padding: 34px 24px 10px 0; border-top: 1px solid var(--brown); position: relative; }
.step + .step { padding-left: 24px; }
.step::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; background: var(--bronze); transform: rotate(45deg); }
.step + .step::before { left: 24px; }
.step__no { font-family: var(--display); font-size: 38px; color: var(--bronze); line-height: 1; }
.step h3 { font-family: var(--serif); font-weight: 500; font-size: 27px; margin: 18px 0 4px; color: var(--brown); }
.step small { display: block; font-family: var(--display); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--bronze-3); margin-bottom: 10px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* ---------- before & after ---------- */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 40px); margin-top: 56px; }
.ba-card { background: var(--ivory); border: 1px solid var(--line); padding: 14px; position: relative; }
.ba { position: relative; aspect-ratio: 4 / 3; overflow: hidden; user-select: none; background: var(--sand); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__after { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px; background: var(--ivory); pointer-events: none; }
.ba__knob { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: var(--brown); color: var(--taupe-2); display: grid; place-items: center; font-size: 15px; box-shadow: 0 0 0 4px var(--ivory); }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba__tag { position: absolute; top: 14px; padding: 6px 12px; background: var(--ivory); color: var(--brown); font-family: var(--display); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; pointer-events: none; }
.ba__tag--l { left: 14px; }
.ba__tag--r { right: 14px; }
.ba-card figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 6px 6px; }
.ba-card figcaption b { font-family: var(--serif); font-weight: 500; font-size: 22px; }
.ba-card figcaption span { font-family: var(--display); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--bronze-3); }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.5vw, 32px); margin-top: 64px; }
.quote-card { background: var(--ivory); padding: 40px 34px; border: 1px solid var(--line); position: relative; display: flex; flex-direction: column; }
.quote-card::before { content: "“"; font-family: var(--serif); font-size: 110px; line-height: .6; color: var(--bronze); height: 44px; }
.quote-card blockquote { font-family: var(--serif); font-size: 21px; line-height: 1.5; font-weight: 500; flex: 1; color: var(--ink); }
.quote-card figcaption { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--display); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--brown); }
.quote-card figcaption span { display: block; color: var(--muted); margin-top: 4px; font-size: 10px; }
.quote-card--cta { background: var(--brown); border-color: var(--brown); color: var(--cream); justify-content: space-between; }
.quote-card--cta::before { color: var(--taupe); }
.quote-card--cta blockquote { color: var(--ivory); font-style: italic; font-size: 25px; }
.quote-card--cta .btn { align-self: flex-start; margin-top: 26px; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .h2 { max-width: 900px; margin: 22px auto 0; }
.cta-band .lead { margin: 22px auto 0; }
.cta-band__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

/* ---------- about: values / architect ---------- */
.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); margin-top: 64px; }
.value { background: var(--brown-3); padding: 42px 26px; transition: background .5s; }
.value:hover { background: #2c2119; }
.value__icon { width: 54px; height: 54px; border: 1px solid var(--taupe); transform: rotate(45deg); display: grid; place-items: center; margin: 6px 0 30px 6px; }
.value__icon span { transform: rotate(-45deg); font-family: var(--display); color: var(--taupe-2); font-size: 16px; }
.value h3 { font-family: var(--display); font-weight: 500; font-size: 16px; letter-spacing: .14em; text-transform: uppercase; color: var(--ivory); }
.value small { display: block; margin-top: 6px; font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--taupe); }
.value p { margin-top: 12px; font-size: 14.5px; color: rgba(242,236,228,.64); }
.checklist { display: grid; gap: 16px; margin-top: 30px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; }
.checklist li::before { content: ""; width: 9px; height: 9px; margin-top: 9px; background: var(--bronze); transform: rotate(45deg); }
.checklist strong { font-weight: 600; color: var(--ink); }
.creds { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 40px; border: 1px solid var(--line); background: var(--ivory); }
.creds div { padding: 20px 18px; text-align: center; }
.creds div + div { border-left: 1px solid var(--line); }
.creds b { display: block; font-family: var(--serif); font-size: 30px; font-weight: 500; line-height: 1; color: var(--brown); }
.creds span { display: block; margin-top: 8px; font-family: var(--display); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.signature { margin-top: 30px; font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--bronze-3); }

/* ---------- services page ---------- */
.svc-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.svc-nav a { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--display); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; background: var(--ivory); transition: background .3s, color .3s, border-color .3s; }
.svc-nav a:hover { background: var(--brown); color: var(--ivory); border-color: var(--brown); }
.svc-block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 110px); align-items: center; scroll-margin-top: 100px; }
.svc-block + .svc-block { margin-top: clamp(90px, 14vh, 160px); }
.svc-block:nth-child(even) .svc-block__media { order: 2; }
.svc-block__media { max-width: 520px; width: 100%; }
.svc-block:nth-child(odd) .svc-block__media { justify-self: start; }
.svc-block:nth-child(even) .svc-block__media { justify-self: end; }
.svc-block__no { font-family: var(--display); font-size: 70px; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.svc-block h2 { font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.25; margin-top: 12px; color: var(--ink); }
.svc-block .lead { margin-top: 20px; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.svc-tags li { padding: 8px 14px; background: var(--cream); border: 1px solid var(--line); font-size: 13.5px; }
.faq { max-width: 920px; margin: 56px auto 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 26px 0; font-family: var(--serif); font-size: clamp(21px, 2vw, 27px); font-weight: 500; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: 0 0 40px; height: 40px; border-radius: 50%; border: 1px solid var(--bronze); display: grid; place-items: center; color: var(--bronze-3); font-family: var(--sans); font-size: 20px; transition: transform .4s var(--ease), background .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--bronze); color: #fff; }
.faq details p { padding: 0 60px 28px 0; color: var(--muted); }

/* ---------- projects page ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.filter { padding: 12px 22px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--display); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; background: var(--ivory); transition: all .35s; }
.filter:hover { border-color: var(--brown); }
.filter.is-active { background: var(--brown); color: var(--ivory); border-color: var(--brown); }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 40px); margin-top: 56px; }
.pcard { position: relative; display: block; }
.pgrid .pcard:nth-child(3n+2) { margin-top: 70px; }
.pcard__img { aspect-ratio: 4 / 5; overflow: hidden; position: relative; background: var(--sand); }
.pcard--arch .pcard__img { border-radius: 999px 999px 0 0; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pcard__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(33,24,18,.85)); opacity: 0; transition: opacity .6s; }
.pcard:hover .pcard__img img { transform: scale(1.07); }
.pcard:hover .pcard__img::after { opacity: 1; }
.pcard__hover { position: absolute; left: 26px; right: 26px; bottom: 24px; z-index: 2; color: var(--ivory); font-size: 14px; opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .6s var(--ease); }
.pcard:hover .pcard__hover { opacity: 1; transform: none; }
.pcard__meta { margin-top: 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pcard__meta h3 { font-family: var(--serif); font-weight: 600; font-size: 25px; line-height: 1.2; color: var(--ink); }
.pcard__meta span { font-family: var(--display); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--bronze-3); white-space: nowrap; }
.pcard__loc { font-size: 14px; color: var(--muted); }
.pcard.is-hidden { display: none; }

/* ---------- project detail ---------- */
.pd-meta { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--ivory); margin-top: 40px; }
.pd-meta div { padding: 20px 22px; }
.pd-meta div + div { border-left: 1px solid var(--line); }
.pd-meta small { display: block; font-family: var(--display); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--bronze-3); }
.pd-meta b { display: block; margin-top: 6px; font-weight: 500; font-size: 15px; color: var(--ink); }
.pd-cover { aspect-ratio: 16 / 8; }
.pd-body { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 100px); align-items: start; }
.pd-body .lead + .lead { margin-top: 18px; }
.next-card { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 0; background: var(--brown-3); color: var(--cream); overflow: hidden; }
.next-card__img { aspect-ratio: 16 / 10; overflow: hidden; }
.next-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.next-card:hover .next-card__img img { transform: scale(1.05); }
.next-card__text { padding: clamp(30px, 5vw, 70px); }
.next-card__text h3 { font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; font-size: clamp(24px, 2.6vw, 38px); line-height: 1.2; color: var(--ivory); margin: 16px 0 24px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 100px); align-items: start; }
.info-cards { display: grid; gap: 14px; margin-top: 40px; }
.info-card { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: center; padding: 22px; background: var(--ivory); border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease); }
a.info-card:hover { border-color: var(--bronze); transform: translateX(6px); }
.info-card__icon { width: 52px; height: 52px; border-radius: 50%; background: var(--brown); color: var(--taupe-2); display: grid; place-items: center; }
.info-card__icon svg { width: 20px; height: 20px; }
.info-card small { display: block; font-family: var(--display); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.info-card b { font-weight: 500; font-size: 16.5px; color: var(--ink); }
.form-card { background: var(--ivory); padding: clamp(28px, 4vw, 56px); border: 1px solid var(--line); position: relative; }
.form-card::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(140,113,88,.28); pointer-events: none; }
.form-card h2 { font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; font-size: clamp(22px, 2vw, 28px); line-height: 1.3; color: var(--ink); position: relative; }
.form-card h2 em { font-family: var(--serif); text-transform: none; font-size: 1.25em; letter-spacing: 0; color: var(--bronze-3); }
.form-card > p { position: relative; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; margin-top: 32px; position: relative; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--display); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--line); padding: 10px 0; outline: none; border-radius: 0; transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brown); }
.field select { appearance: none; -webkit-appearance: none; background: linear-gradient(45deg, transparent 50%, var(--bronze) 50%) right 6px center / 7px 7px no-repeat; }
.field.is-error input { border-color: #a4473a; }
.form-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 30px; position: relative; }
.form-note { margin-top: 16px; font-size: 14.5px; color: var(--brown); min-height: 22px; position: relative; }
.studio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.5vw, 32px); margin-top: 56px; }
.studio-card { position: relative; padding: 44px 38px; border: 1px solid var(--line-dark); background: rgba(255,255,255,.02); }
.studio-card h3 { font-family: var(--display); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; font-size: clamp(24px, 2.4vw, 34px); color: var(--ivory); margin-top: 14px; }
.studio-card p { margin-top: 12px; color: rgba(242,236,228,.66); }
.studio-card svg { position: absolute; right: 30px; top: 34px; width: 36px; height: 44px; color: var(--taupe); opacity: .6; }

/* ---------- footer ---------- */
.site-footer { background: var(--brown-3); color: rgba(242,236,228,.72); padding: clamp(70px, 10vh, 110px) 0 28px; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: clamp(30px, 4vw, 64px); }
.footer-seal { width: 128px; height: 128px; border-radius: 50%; background: var(--taupe); color: var(--brown); display: grid; place-items: center; align-content: center; gap: 6px; box-shadow: 0 0 0 5px var(--brown-3), 0 0 0 6px var(--taupe); }
.footer-seal svg { width: 40px; height: 48px; }
.footer-seal span { font-family: var(--display); font-size: 12px; letter-spacing: .24em; font-weight: 600; margin-right: -.24em; }
.footer-brand p { margin-top: 26px; font-size: 15px; max-width: 340px; }
.site-footer h3 { font-family: var(--display); font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--taupe-2); margin-bottom: 22px; }
.footer-links { display: grid; gap: 11px; font-size: 15px; }
.footer-links a { transition: color .3s, padding .3s; }
.footer-links a:hover { color: var(--ivory); padding-left: 6px; }
.footer-contact { display: grid; gap: 14px; font-size: 15px; font-style: normal; }
.footer-contact a:hover { color: var(--ivory); }
.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; transition: background .3s, color .3s, border-color .3s; }
.socials a:hover { background: var(--taupe); color: var(--brown-3); border-color: var(--taupe); }
.socials svg { width: 16px; height: 16px; }
.footer-word { font-family: var(--display); font-weight: 500; font-size: clamp(28px, 6.6vw, 108px); letter-spacing: .06em; line-height: 1; margin-top: clamp(60px, 9vh, 100px); text-align: center; white-space: nowrap; background: linear-gradient(180deg, rgba(207,195,180,.55), rgba(207,195,180,.05)); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 13px; }

/* floating WhatsApp */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 80; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(0,0,0,.35); transition: transform .4s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ping 2.4s infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .step:nth-child(4) { padding-left: 0; } .step:nth-child(4)::before { left: 0; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-intro { grid-column: 1 / -1; }
  .hcard:nth-child(odd) { margin-top: 0; }
  .hcard:nth-child(3) { margin-top: 60px; }
}
@media (max-width: 900px) {
  .grid-2, .grid-3, .hero__grid, .page-hero__grid, .contact-grid, .svc-block, .pd-body, .next-card, .ba-grid, .studio-cards { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .hero__media { justify-self: center; max-width: 420px; }
  .hero__media .badge-seal { left: -10px; bottom: 30px; width: 110px; height: 110px; }
  .hero__tag { right: 0; }
  .svc-block:nth-child(even) .svc-block__media { order: 0; }
  .svc-block__media { justify-self: center !important; max-width: 420px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { margin-top: 26px; }
  .quotes { grid-template-columns: 1fr; }
  .pgrid { grid-template-columns: 1fr 1fr; }
  .pgrid .pcard:nth-child(3n+2) { margin-top: 0; }
  .pgrid .pcard:nth-child(even) { margin-top: 50px; }
  .svc-row { grid-template-columns: 44px 1fr 44px; }
  .svc-row__desc { display: none; }
  .svc-row__arrow { width: 44px; height: 44px; }
  .page-hero__media { max-width: 420px; }
  .pd-meta { grid-template-columns: 1fr 1fr; }
  .pd-meta div:nth-child(3) { border-left: 0; }
  .pd-meta div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .values { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3), .step:nth-child(5) { padding-left: 0; } .step:nth-child(3)::before, .step:nth-child(5)::before { left: 0; }
  .step:nth-child(4) { padding-left: 24px; } .step:nth-child(4)::before { left: 24px; }
  .creds { grid-template-columns: 1fr 1fr; }
  .creds div:nth-child(3) { border-left: 0; }
  .creds div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .steps, .values, .footer-grid, .form-grid, .feature-grid { grid-template-columns: 1fr; }
  .step + .step { padding-left: 0 !important; } .step + .step::before { left: 0 !important; }
  .hcard:nth-child(3) { margin-top: 0; }
  .pgrid { grid-template-columns: 1fr; }
  .pgrid .pcard:nth-child(even) { margin-top: 0; }
  .brand__name { font-size: 16px; }
  .brand__mark { width: 28px; height: 34px; }
  .faq details p { padding-right: 0; }
  .hero__facts b { font-size: 28px; }
  .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .ba-card figcaption { flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* featured cards: stack title + category (narrow columns) */
.feature-grid .hcard__meta { flex-direction: column; gap: 4px; }
.feature-grid .hcard__meta h3 { font-size: 22px; }

/* grid children must be allowed to shrink (long emails etc.) */
.grid-2 > *, .contact-grid > *, .hero__grid > *, .page-hero__grid > *, .pd-body > *, .svc-block > * { min-width: 0; }
.info-card b, .footer-contact a { overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .contact-grid, .grid-2, .hero__grid, .page-hero__grid, .pd-body, .svc-block { grid-template-columns: minmax(0, 1fr); }
  .media-wrap .badge-seal { right: 8px !important; width: 110px; height: 110px; }
}
.next-card .eyebrow { color: var(--taupe-2); }
.next-card .eyebrow::before, .next-card .eyebrow::after { background: var(--taupe); }

/* =========================================================
   PROCESS STEPS (design philosophy) — badge + step label
   ========================================================= */
.process { margin-top: 64px; display: grid; gap: 22px; }
.pstep {
  position: relative; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: clamp(24px, 4vw, 60px);
  padding: clamp(34px, 4vw, 56px) clamp(26px, 4.5vw, 64px);
  background: linear-gradient(90deg, #f7f3ee 0%, #fbf9f6 60%, #fdfcfa 100%);
  border-left: 1px solid var(--taupe-2);
  transition: box-shadow .5s var(--ease), transform .5s var(--ease);
}
.pstep:hover { box-shadow: 0 30px 60px -40px rgba(33,24,18,.35); transform: translateY(-3px); }
.pstep:nth-child(even) { grid-template-columns: .75fr 1.25fr; border-left: 0; border-right: 1px solid var(--taupe-2); background: linear-gradient(270deg, #f7f3ee 0%, #fbf9f6 60%, #fdfcfa 100%); }
.pstep:nth-child(even) .pstep__art { order: -1; }
.pstep__head { display: flex; align-items: center; gap: 18px; }
.pstep__badge {
  flex: none; width: 70px; height: 70px; border-radius: 50%; background: var(--brown-3); color: #d9bf94;
  display: grid; place-items: center;
  box-shadow: 0 0 0 7px #ece0cc, 0 14px 28px -10px rgba(33,24,18,.45);
}
.pstep__badge svg { width: 26px; height: 26px; }
.pstep__label { font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #6f665f; }
.pstep h3 { margin-top: 26px; font-family: var(--sans); font-weight: 600; font-size: clamp(24px, 2.1vw, 30px); line-height: 1.25; color: var(--ink); letter-spacing: -.005em; }
.pstep p { margin-top: 18px; max-width: 560px; font-size: clamp(15.5px, 1.2vw, 17.5px); line-height: 1.85; font-weight: 400; color: #5a524c; }
.pstep__art { justify-self: center; width: min(240px, 100%); aspect-ratio: 1; border-radius: 50%; overflow: hidden; mix-blend-mode: multiply; }
.pstep__art img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .pstep, .pstep:nth-child(even) { grid-template-columns: 1fr; border-right: 0; border-left: 1px solid var(--taupe-2); background: linear-gradient(90deg, #f7f3ee, #fdfcfa); }
  .pstep:nth-child(even) .pstep__art { order: 0; }
  .pstep__art { width: 180px; justify-self: start; }
}

/* =========================================================
   DESIGN STYLE CARDS
   ========================================================= */
.styles { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.2vw, 30px); margin-top: 60px; align-items: start; }
.style-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 450px;
  padding: 30px 28px; border-radius: 14px; overflow: hidden; color: #fff; isolation: isolate;
  box-shadow: 0 24px 40px -26px rgba(33,24,18,.55);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.style-card:nth-child(even) { margin-top: -8px; }
.style-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.style-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,15,11,.42) 0%, rgba(20,15,11,.55) 50%, rgba(20,15,11,.78) 100%); }
.style-card:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -30px rgba(33,24,18,.65); }
.style-card:hover img { transform: scale(1.06); }
.style-card__icon { width: 38px; height: 38px; margin-bottom: 16px; color: #fff; }
.style-card__icon svg { width: 100%; height: 100%; }
.style-card h3 { font-family: var(--sans); font-weight: 600; font-size: clamp(22px, 1.9vw, 27px); line-height: 1.2; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.style-card p { margin-top: 12px; font-size: 16px; line-height: 1.6; font-weight: 400; color: rgba(255,255,255,.88); }
@media (max-width: 1000px) { .styles { grid-template-columns: 1fr 1fr; } .style-card:nth-child(even) { margin-top: 0; } }
@media (max-width: 560px) { .styles { grid-template-columns: 1fr; } .style-card { min-height: 380px; } }

/* =========================================================
   TESTIMONIALS — premium dark review cards
   (Raleway text + Playfair title, Terra earth palette)
   ========================================================= */
.reviews {
  position: relative; overflow: hidden; color: var(--cream);
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(120, 92, 64, .28) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(0, 0, 0, .35) 0%, transparent 70%),
    linear-gradient(180deg, #241a13 0%, #1c140f 55%, #18110c 100%);
}
.reviews::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(230, 205, 160, .07) 1px, transparent 1.2px);
  background-size: 22px 22px;
}
.reviews > .container { position: relative; }
.reviews .container { max-width: 1720px; }
.reviews__head { text-align: center; }
.reviews__eyebrow {
  display: inline-flex; align-items: center; gap: 26px;
  font-family: "Raleway", var(--sans); font-size: 15px; font-weight: 600; letter-spacing: .36em; text-transform: uppercase;
  color: #d6ad5c; margin-right: -.36em;
}
.reviews__eyebrow::before, .reviews__eyebrow::after { content: ""; width: 66px; height: 1px; background: linear-gradient(90deg, transparent, rgba(214,173,92,.75)); }
.reviews__eyebrow::after { transform: scaleX(-1); }
.reviews__title {
  margin-top: 30px; font-family: "Playfair Display", Georgia, serif; font-weight: 700;
  font-size: clamp(34px, 3.3vw, 52px); line-height: 1.12; letter-spacing: .005em; color: #fbf6ee;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.reviews__sub {
  margin: 20px auto 0; max-width: 780px; text-wrap: balance;
  font-family: "Raleway", var(--sans); font-size: clamp(16px, 1.15vw, 18.5px); font-weight: 300; line-height: 1.6;
  color: rgba(236, 228, 218, .62);
}
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 2.4vw, 42px); margin-top: clamp(56px, 6vw, 76px); }
.review {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  padding: clamp(30px, 2.4vw, 40px) clamp(28px, 2.3vw, 40px) clamp(34px, 2.6vw, 46px);
  background: linear-gradient(180deg, #2c2119 0%, #261c15 100%);
  border: 1px solid rgba(214, 173, 92, .14); border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255,240,215,.05), 0 30px 60px -34px rgba(0,0,0,.75);
  transition: transform .6s var(--ease), border-color .5s, box-shadow .6s var(--ease);
}
.review:hover { transform: translateY(-6px); border-color: rgba(214,173,92,.38); box-shadow: inset 0 1px 0 rgba(255,240,215,.07), 0 40px 70px -34px rgba(0,0,0,.85); }
.review::after {
  content: "\201D"; position: absolute; right: 34px; bottom: -34px;
  font-family: "Playfair Display", Georgia, serif; font-size: 180px; line-height: 1; color: rgba(255, 240, 215, .06); pointer-events: none;
}
.review__who { display: flex; align-items: center; gap: 18px; }
.review__avatar {
  flex: none; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, #c9a982 0%, #8c6c4f 55%, #5e4532 100%);
  color: #fff8ec; font-family: "Playfair Display", Georgia, serif; font-size: 20px; font-weight: 600; letter-spacing: .02em;
  box-shadow: 0 0 0 3px #2b2018, 0 0 0 4.5px rgba(214,173,92,.75), 0 10px 20px -8px rgba(0,0,0,.6);
}
.review figcaption { min-width: 0; }
.review__name { display: block; font-family: "Raleway", var(--sans); font-size: clamp(16px, 1.1vw, 18px); font-weight: 600; color: #fbf6ee; line-height: 1.35; }
.review__verified { display: block; margin-top: 6px; font-family: "Raleway", var(--sans); font-size: 15px; font-weight: 500; color: #53c27a; }
.review__stars { margin-top: 30px; color: #e3b24f; font-size: 17px; letter-spacing: 4px; text-shadow: 0 0 12px rgba(227,178,79,.25); }
.review blockquote {
  margin-top: 20px; position: relative; z-index: 1;
  font-family: "Raleway", var(--sans); font-size: clamp(15.5px, 1.05vw, 17.5px); font-style: italic; font-weight: 300; line-height: 1.95;
  color: rgba(232, 224, 214, .7);
}
.review mark {
  font-style: normal; font-weight: 600; color: #f2c96a;
  background: linear-gradient(180deg, rgba(214,173,92,.10), rgba(214,173,92,.2));
  padding: 3px 8px; border-radius: 3px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.review__ctx { display: none; }
.review--cta { justify-content: center; background: linear-gradient(150deg, #4a3829 0%, #2c2119 100%); border-color: rgba(214,173,92,.35); }
.review--cta::after { color: rgba(255,240,215,.09); }
.review--cta h3 { font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: clamp(28px, 2.3vw, 36px); line-height: 1.2; color: #fbf6ee; }
.review--cta p { margin-top: 14px; font-family: "Raleway", var(--sans); font-size: 17px; font-weight: 300; color: rgba(236,228,218,.72); }
.review--cta .btn { align-self: flex-start; margin-top: 30px; }
@media (max-width: 1100px) { .review-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) {
  .review-grid { grid-template-columns: 1fr; }
  .reviews__eyebrow { font-size: 12px; gap: 14px; letter-spacing: .28em; margin-right: -.28em; }
  .reviews__eyebrow::before, .reviews__eyebrow::after { width: 34px; }
}

/* six design styles: 3 x 2 grid, middle column raised */
.styles { grid-template-columns: repeat(3, 1fr); }
.style-card:nth-child(even) { margin-top: 0; }
.style-card:nth-child(3n+2) { margin-top: -10px; }
@media (max-width: 1000px) { .styles { grid-template-columns: 1fr 1fr; } .style-card:nth-child(3n+2) { margin-top: 0; } }
@media (max-width: 560px) { .styles { grid-template-columns: 1fr; } }

/* principles on About: photo in round frame + tag line */
.pstep__tags { margin-top: 8px !important; font-family: var(--serif); font-style: italic; font-size: 18px !important; color: var(--bronze-3) !important; }
.pstep__art--photo { mix-blend-mode: normal; box-shadow: 0 0 0 8px #fff, 0 0 0 9px var(--taupe-2), 0 24px 40px -22px rgba(33,24,18,.45); }

/* projects page header (centered, pill eyebrow + pill filters) */
.work-head { background: #f5f2ec; padding: clamp(150px, 20vh, 200px) 0 clamp(30px, 5vh, 50px); }
.pill-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 11px 24px; border: 1px solid #e2d2b6; border-radius: 999px; font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bronze-3); }
.pill-eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--bronze); }
.work-head__title { margin: 34px auto 0; max-width: 1000px; font-family: var(--serif); font-weight: 700; font-size: clamp(38px, 5vw, 76px); line-height: 1.06; letter-spacing: -.01em; color: var(--brown-3); }
.work-head__sub { margin: 26px auto 0; max-width: 780px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.75; font-weight: 400; color: var(--ink); }
.pill-filters { margin-top: 44px; gap: 12px; }
.pill-filters .filter { padding: 15px 26px; border: 1px solid var(--line); border-radius: 999px; background: #faf8f4; font-family: var(--sans); font-size: 16px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); }
.pill-filters .filter:hover { border-color: var(--brown); }
.pill-filters .filter.is-active { background: var(--brown-3); border-color: var(--brown-3); color: #fff; }
.work-grid { background: #f5f2ec; padding-top: clamp(30px, 5vh, 60px); }
.work-grid .pgrid { margin-top: 30px; }
@media (max-width: 560px) { .pill-filters .filter { padding: 11px 18px; font-size: 14px; } }

/* CTA band: night façade photo with warm dark overlay */
.cta-band {
  background:
    radial-gradient(ellipse 42% 58% at 50% 50%, rgba(46,33,24,.5) 0%, rgba(46,33,24,.12) 100%),
    linear-gradient(180deg, rgba(46,33,24,.18) 0%, rgba(46,33,24,.05) 45%, rgba(46,33,24,.35) 100%),
    url("../assets/img/cta-living.jpg") center 55% / cover no-repeat,
    var(--brown-3);
  padding: clamp(110px, 16vh, 190px) 0;
}
.cta-band::before { opacity: 0; }
.cta-band .h2 { text-shadow: 0 4px 30px rgba(0,0,0,.45); }
.cta-band .lead { color: rgba(250,244,236,.85); text-shadow: 0 2px 14px rgba(0,0,0,.5); }

/* hero label is long: let it wrap neatly */
.hero__label { flex-wrap: wrap; row-gap: 6px; line-height: 1.6; max-width: 620px; }
.hero__side--2 { margin-top: 12px; }

/* new hero headline: keep to two lines */
.hero .h1 { font-size: clamp(32px, 3.4vw, 56px); }

/* =========================================================
   HERO — the hall as a full background, text in a shadow box
   ========================================================= */
.hero--hall { background: #2b2119; padding: 140px 0 100px; }
.hero--hall::after { display: none; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(33,24,18,.45) 0%, rgba(33,24,18,.15) 55%, rgba(33,24,18,.05) 100%), linear-gradient(180deg, rgba(33,24,18,.25), transparent 30%); }
.hero--hall .hero__grid { grid-template-columns: minmax(0, 640px) 1fr; align-items: end; }
.hero__panel {
  position: relative; padding: clamp(28px, 3.4vw, 50px) clamp(24px, 3.4vw, 50px) clamp(26px, 3vw, 42px);
  background: rgba(250, 247, 242, .88);
  backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid rgba(255,255,255,.6); border-radius: 6px;
  box-shadow: 0 40px 80px -30px rgba(20,14,10,.6), 0 12px 30px -12px rgba(20,14,10,.35);
}
.hero__panel::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(140,113,88,.25); border-radius: 3px; pointer-events: none; }
.hero__panel > * { position: relative; }
.hero--hall .h1 { margin-top: 18px; }
.hero--hall .hero__side { color: var(--ink); }
.hero--hall .hero__facts { margin-top: 34px; }
.hero--hall .btn--outline { background: rgba(255,255,255,.5); }
.hero__aside { position: relative; justify-self: end; align-self: end; display: flex; align-items: flex-end; gap: 18px; }
.hero__aside .badge-seal { position: relative; box-shadow: 0 0 0 6px rgba(250,247,242,.9), 0 0 0 7px var(--bronze), 0 20px 40px -12px rgba(0,0,0,.5); }
.hero__aside .hero__tag { position: relative; right: auto; top: auto; }
@media (max-width: 900px) {
  .hero--hall .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__aside { justify-self: start; }
  .hero__aside .badge-seal { width: 100px; height: 100px; }
}
@media (max-width: 560px) {
  .hero--hall { padding: 110px 0 60px; }
  .hero__aside { display: none; }
}


/* =========================================================
   HERO (split) — wider copy column, Playfair headline, Raleway text
   ========================================================= */
.hero--split .hero__grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, .8fr); gap: clamp(36px, 5vw, 80px); }
.hero__copy { max-width: 760px; }
.hero__title {
  margin-top: 22px; font-family: "Playfair Display", Georgia, serif; font-weight: 600;
  font-size: clamp(38px, 4.3vw, 70px); line-height: 1.08; letter-spacing: -.012em; color: var(--brown-3);
}
.hero__title em {
  font-style: italic; font-weight: 500;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em;
}
.hero__lead { margin-top: 28px; max-width: 680px; font-family: "Raleway", var(--sans); font-size: clamp(17px, 1.35vw, 20px); font-weight: 500; line-height: 1.7; color: var(--ink); }
.hero__text { margin-top: 14px; max-width: 680px; font-family: "Raleway", var(--sans); font-size: clamp(15.5px, 1.1vw, 17px); font-weight: 400; line-height: 1.85; color: #4a3f37; }
.hero__text b { font-weight: 600; color: var(--ink); }
.hero--split .hero__facts { max-width: 620px; }
.hero--split .hero__media { max-width: 440px; }
@media (max-width: 900px) {
  .hero--split .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero--split .hero__media { max-width: 400px; }
}

/* =========================================================
   SERVICES + PROJECTS HERO — shared animated header with image cards
   ========================================================= */
.work-head--anim { position: relative; overflow: hidden; padding-bottom: clamp(40px, 6vh, 70px); }
.work-head--anim > .container { position: relative; z-index: 1; }
.work-head__blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; }
.work-head__blob--1 { width: 520px; height: 520px; left: -160px; top: -120px; background: radial-gradient(circle, #e6d3b8, transparent 70%); animation: blobDrift 14s ease-in-out infinite alternate; }
.work-head__blob--2 { width: 460px; height: 460px; right: -140px; top: 120px; background: radial-gradient(circle, #d9c4a8, transparent 70%); animation: blobDrift 17s ease-in-out infinite alternate-reverse; }
@keyframes blobDrift { from { transform: translate(0, 0) scale(1); } to { transform: translate(70px, 40px) scale(1.15); } }
.work-head__title em { font-style: italic; font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .05em; }
/* entrance: pill → title → text → cards → filters */
.work-head--anim .pill-eyebrow, .work-head--anim .work-head__title, .work-head--anim .work-head__sub, .work-head--anim .pill-filters { animation: headIn .9s cubic-bezier(.2,.8,.2,1) both; }
.work-head--anim .work-head__title { animation-delay: .12s; }
.work-head--anim .work-head__sub { animation-delay: .24s; }
.work-head--anim .pill-filters { animation-delay: .8s; }
@keyframes headIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.hcards2 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); margin: 50px auto 0; max-width: 1240px; text-align: left; }
.hcards2--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1000px; }
.hcard2 {
  position: relative; display: block; overflow: hidden; border-radius: 14px; aspect-ratio: 3 / 4; isolation: isolate; color: #fff; font: inherit; cursor: pointer; border: 0; padding: 0;
  box-shadow: 0 20px 40px -26px rgba(33,24,18,.6); background: var(--brown-3);
  animation: cardIn .9s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.35s + var(--i, 0) * .08s);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.hcard2:nth-child(even) { margin-top: 26px; }
@keyframes cardIn { from { opacity: 0; transform: translateY(40px) scale(.96); } to { opacity: 1; transform: none; } }
.hcard2__img, .hcard2__img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hcard2__img img { object-fit: cover; transition: transform 1.1s var(--ease); }
.hcard2::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(20,14,10,.05) 30%, rgba(20,14,10,.82) 100%); }
.hcard2 > span:not(.hcard2__img) { z-index: 1; }
.hcard2__no { position: absolute; left: 14px; top: 14px; font-family: var(--display); font-size: 12px; letter-spacing: .12em; padding: 5px 11px; border-radius: 999px; background: rgba(250,247,242,.88); color: var(--brown); }
.hcard2__name { position: absolute; left: 16px; right: 46px; bottom: 16px; font-family: var(--serif); font-weight: 600; font-size: clamp(18px, 1.5vw, 23px); line-height: 1.15; }
.hcard2__arrow { position: absolute; right: 14px; bottom: 16px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); display: grid; place-items: center; font-size: 13px; transition: background .4s, color .4s, transform .5s var(--ease); }
.hcard2:hover { transform: translateY(-8px); box-shadow: 0 34px 60px -28px rgba(33,24,18,.7); }
.hcard2:hover .hcard2__img img { transform: scale(1.08); }
.hcard2:hover .hcard2__arrow { background: #fff; color: var(--brown); transform: translateY(3px); }
.hcard2.is-active { outline: 3px solid var(--bronze); outline-offset: 3px; }
@media (max-width: 1000px) { .hcards2 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .hcards2--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hcard2:nth-child(even) { margin-top: 0; } }
@media (max-width: 520px) { .hcards2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hcard2 { aspect-ratio: 4 / 5; } }

/* inner-page hero: less empty space above the text (About etc.) */
.page-hero { padding: clamp(120px, 15vh, 150px) 0 clamp(56px, 8vh, 90px); }
.page-hero__grid { align-items: center; }
.page-hero__media { max-width: 420px; justify-self: end; width: 100%; }

/* =========================================================
   PROJECTS PAGE — gallery cards (badge, ‹ › arrows, counter, thumbnails)
   ========================================================= */
.ggrid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.gcard {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 24px 50px -34px rgba(33,24,18,.45);
  animation: cardIn .8s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * .07s);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.gcard:hover { transform: translateY(-6px); box-shadow: 0 36px 64px -32px rgba(33,24,18,.55); }
.gcard.is-hidden { display: none; }
.gcard__media { position: relative; aspect-ratio: 7 / 5; background: var(--sand); overflow: hidden; }
.gcard__track { position: absolute; inset: 0; display: block; }
.gcard__track img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease, transform 1.2s var(--ease); }
.gcard__track img.on { opacity: 1; }
.gcard:hover .gcard__track img.on { transform: scale(1.04); }
.gcard__status {
  position: absolute; left: 16px; top: 16px; z-index: 2; padding: 8px 14px; border-radius: 3px;
  font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff;
  background: #1f7a4d; box-shadow: 0 6px 16px -6px rgba(0,0,0,.4);
}
.gcard__status--progress { background: #b7791f; }
.gcard__status--design { background: var(--bronze-3); }
.gcard__nav {
  position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 26px; line-height: 1; padding-bottom: 3px; color: #fff;
  background: rgba(33,24,18,.62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  transition: background .3s, transform .3s;
}
.gcard__nav:hover { background: var(--brown-3); transform: scale(1.08); }
.gcard__nav--prev { left: 12px; } .gcard__nav--next { right: 12px; }
.gcard__count { position: absolute; right: 12px; bottom: 12px; z-index: 2; padding: 6px 12px; border-radius: 3px; background: rgba(33,24,18,.78); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .08em; }
.gcard__count b { font-weight: 700; }
.gcard__thumbs { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 8px; padding: 10px; background: var(--cream); }
.gcard__thumbs button { aspect-ratio: 4 / 3; overflow: hidden; border: 2px solid transparent; padding: 2px; border-radius: 2px; opacity: .72; transition: opacity .3s, border-color .3s; }
.gcard__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gcard__thumbs button:hover { opacity: 1; }
.gcard__thumbs button.on { border-color: #c09a4e; opacity: 1; }
.gcard__body { padding: 24px 24px 28px; background: #fdfbf7; flex: 1; display: flex; flex-direction: column; }
.gcard__meta { font-family: var(--sans); font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #9a7a3c; }
.gcard__body h3 { margin-top: 10px; font-family: "Playfair Display", Georgia, serif; font-weight: 600; font-size: clamp(22px, 1.8vw, 27px); line-height: 1.25; color: var(--ink); }
.gcard__intro { margin-top: 10px; color: var(--muted); font-size: 14.5px; line-height: 1.7; flex: 1; }
.gcard__more { margin-top: 18px; align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze-3); border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.gcard__more span { display: inline-block; transition: transform .4s var(--ease); }
.gcard__more:hover span { transform: translateX(4px); }
@media (max-width: 1000px) { .ggrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ggrid { grid-template-columns: minmax(0, 1fr); } .gcard__nav { width: 40px; height: 40px; margin-top: -20px; } }

/* footer: big word — js/layout.js sizes it to fill the width exactly */
.footer-word { background: none; color: inherit; font-size: 0; line-height: 1; text-align: center; white-space: nowrap; overflow: hidden; padding: 0 0 .1em; }
.footer-word span {
  display: inline-block; font-family: var(--display); font-weight: 500; font-size: clamp(26px, 6vw, 96px); line-height: 1.05;
  letter-spacing: .08em; margin-right: -.08em; /* balance the last letter's spacing so it stays centred */
  color: rgba(207,195,180,.4);
  background: linear-gradient(180deg, rgba(232,220,204,.78) 0%, rgba(207,195,180,.4) 55%, rgba(168,144,122,.12) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.socials { flex-wrap: wrap; }

/* contact form: bolder, easier to read */
.form-card h2 { font-weight: 600; }
.form-card h2 em { font-weight: 600; }
.field label { font-weight: 600; font-size: 12.5px; letter-spacing: .16em; color: var(--ink); -webkit-text-stroke: .35px currentColor; }
.field input, .field select, .field textarea { font-weight: 700; font-size: 17px; color: var(--ink); border-bottom-width: 1.5px; border-bottom-color: #bfae9a; }
.field input::placeholder, .field textarea::placeholder { font-weight: 600; color: #8a7b6c; }
.form-card .lead { font-weight: 700; }
.form-note { font-weight: 700; }
.field select { padding-right: 24px; text-overflow: ellipsis; }

/* TERRA wordmark logo (header + footer) */
.brand__logo { display: block; height: 66px; width: auto; aspect-ratio: 1399 / 469; transition: height .5s var(--ease), filter .4s; }
.site-header.is-scrolled .brand__logo { height: 54px; }
/* the logo is black ink on transparent — turn it white on dark backgrounds */
.sd-page .site-header:not(.is-scrolled) .brand__logo { filter: invert(1); }
.footer-logo { display: inline-block; }
.footer-logo img { display: block; width: 250px; height: auto; filter: invert(1); opacity: .88; }
.footer-tagline { margin-top: 14px !important; font-family: var(--serif); font-style: italic; font-size: 21px !important; color: var(--taupe-2); }
@media (max-width: 600px) { .brand__logo { height: 48px; } .site-header.is-scrolled .brand__logo { height: 42px; } }

/* blog page — empty state is shown only while #blogGrid has no posts */
.blog-list { padding-top: clamp(30px, 5vh, 60px); }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 40px); }
.blog-grid:empty { display: none; }
.blog-grid:not(:empty) + .blog-empty { display: none; }
.blog-empty { max-width: 760px; margin: 0 auto; text-align: center; padding: clamp(48px, 7vw, 90px) clamp(22px, 5vw, 70px); background: var(--ivory); border: 1px solid var(--line); border-radius: 8px; position: relative; box-shadow: 0 30px 60px -40px rgba(33,24,18,.4); }
.blog-empty::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(140,113,88,.25); border-radius: 4px; pointer-events: none; }
.blog-empty .lead { margin: 22px auto 0; }
.blog-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; position: relative; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: minmax(0, 1fr); } }

/* about: founder signature */
.founder-sign { display: grid; gap: 2px; padding-left: 22px; border-left: 2px solid var(--bronze); }
.founder-sign b { font-family: var(--serif); font-style: italic; font-size: 26px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.founder-sign span { font-family: var(--display); font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--bronze-3); }

/* services overview: link to each service page */
.svc-block .svc-more { margin-top: 30px; }

/* =========================================================
   SERVICE DETAIL PAGES (service-*.html)
   ========================================================= */
.sd-hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; color: var(--ivory); overflow: hidden; isolation: isolate; background: var(--brown-3); }
.sd-hero__img { position: absolute; inset: 0; z-index: -2; }
.sd-hero__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: sdZoom 2.4s var(--ease) forwards; }
@keyframes sdZoom { to { transform: scale(1); } }
.sd-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,14,10,.55) 0%, rgba(20,14,10,.25) 35%, rgba(20,14,10,.88) 100%); }
.sd-hero__inner { width: 100%; padding-top: 150px; padding-bottom: clamp(56px, 9vh, 96px); }
.sd-hero__inner > * { animation: headIn .9s cubic-bezier(.2,.8,.2,1) both; }
.sd-hero .breadcrumb, .sd-hero .breadcrumb a, .sd-hero .breadcrumb li { color: rgba(250,247,242,.82); }
.sd-hero .eyebrow { color: var(--taupe-2); margin-top: 18px; }
.sd-hero .eyebrow::before, .sd-hero .eyebrow::after { background: var(--taupe); }
.sd-hero__no { display: block; margin-top: 18px; font-family: var(--display); font-size: clamp(60px, 8vw, 120px); line-height: .9; background: linear-gradient(180deg, rgba(239,229,216,.95), rgba(207,195,180,.15)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sd-hero h1 { margin-top: 10px; font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; font-size: clamp(32px, 5vw, 76px); line-height: 1.08; max-width: 16ch; color: var(--ivory); }
.sd-hero h1 em { font-family: var(--serif); font-style: italic; text-transform: none; letter-spacing: 0; font-size: 1.12em; background: linear-gradient(135deg, #efe5d8, #cfc3b4 50%, #a8907a); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.sd-hero__lead { margin-top: 22px; max-width: 620px; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.8; color: rgba(250,247,242,.88); }
.sd-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* light header while it sits over the dark hero image */
.sd-page .site-header:not(.is-scrolled) .brand,
.sd-page .site-header:not(.is-scrolled) .brand__name,
.sd-page .site-header:not(.is-scrolled) .brand__tag,
.sd-page .site-header:not(.is-scrolled) .main-nav a { color: var(--ivory); }
.sd-page .site-header:not(.is-scrolled) .main-nav a[aria-current="page"] { color: var(--taupe-2); }
.sd-page .site-header:not(.is-scrolled) .menu-toggle span:not(.sr-only) { background: var(--ivory); }

.sd-strip { background: var(--brown); color: var(--cream); }
.sd-strip__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sd-strip__grid div { padding: 30px 26px; border-left: 1px solid var(--line-dark); }
.sd-strip__grid div:first-child { border-left: 0; padding-left: 0; }
.sd-strip small { display: block; font-family: var(--display); font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--taupe); }
.sd-strip b { display: block; margin-top: 6px; font-family: var(--serif); font-size: clamp(19px, 1.5vw, 23px); font-weight: 600; color: var(--ivory); line-height: 1.3; }

.sd-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 110px); align-items: center; }
.sd-intro__media { position: relative; isolation: isolate; max-width: 500px; width: 100%; }
.sd-intro__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 220px 220px 6px 6px; box-shadow: 0 40px 70px -40px rgba(33,24,18,.6); }
.sd-intro__media::before { content: ""; position: absolute; inset: -16px 16px 16px -16px; border: 1px solid var(--bronze); border-radius: 230px 230px 8px 8px; z-index: -1; }
.sd-quote { margin-top: 30px; padding-left: 22px; border-left: 2px solid var(--bronze); font-family: var(--serif); font-style: italic; font-size: clamp(20px, 1.7vw, 25px); line-height: 1.5; color: var(--bronze-3); max-width: 560px; }

.sd-offer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: 56px; }
.sd-offer article { position: relative; padding: 38px 32px 36px; background: var(--ivory); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s; }
.sd-offer article::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--grad); transition: width .6s var(--ease); }
.sd-offer article:hover { transform: translateY(-6px); border-color: var(--taupe); box-shadow: 0 30px 60px -34px rgba(33,24,18,.45); }
.sd-offer article:hover::before { width: 100%; }
.sd-offer__no { font-family: var(--display); font-size: 13px; letter-spacing: .2em; color: var(--bronze); }
.sd-offer h3 { margin-top: 14px; font-family: var(--serif); font-size: clamp(22px, 1.7vw, 26px); font-weight: 600; line-height: 1.25; color: var(--ink); }
.sd-offer p { margin-top: 10px; color: var(--muted); font-size: 15px; }

.sd-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 60px; }
.sd-step { position: relative; padding-right: 26px; }
.sd-step::before { content: ""; position: absolute; left: 60px; right: 8px; top: 26px; height: 1px; background: linear-gradient(90deg, var(--taupe), transparent); opacity: .5; }
.sd-step:last-child::before { display: none; }
.sd-step__dot { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--taupe); font-family: var(--display); font-size: 15px; color: var(--ivory); background: var(--brown-3); position: relative; }
.sd-step h3 { margin-top: 26px; font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--ivory); line-height: 1.25; }
.sd-step p { margin-top: 10px; color: rgba(242,236,228,.72); font-size: 15px; }

.sd-gallery { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: clamp(12px, 1.4vw, 20px); margin-top: 56px; height: clamp(420px, 56vw, 680px); }
.sd-gallery figure { position: relative; overflow: hidden; border-radius: 6px; background: var(--sand); }
.sd-gallery figure:first-child { grid-row: 1 / 3; }
.sd-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.sd-gallery figure:hover img { transform: scale(1.05); }

.sd-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); margin-top: 56px; }
.sd-why div { padding-top: 26px; border-top: 1px solid var(--bronze); }
.sd-why h3 { font-family: var(--display); font-weight: 500; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.sd-why p { margin-top: 12px; color: var(--muted); }

.sd-others { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); margin: 44px 0 0; max-width: none; }
.sd-others .hcard2 { animation: none; }
.sd-others .hcard2:nth-child(even) { margin-top: 0; }

@media (max-width: 1000px) {
  .sd-offer, .sd-why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sd-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .sd-step:nth-child(2)::before { display: none; }
  .sd-others { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sd-strip__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sd-strip__grid div:nth-child(3) { border-left: 0; padding-left: 0; }
  .sd-strip__grid div:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
}
@media (max-width: 760px) {
  .sd-intro { grid-template-columns: minmax(0, 1fr); }
  .sd-intro__media { max-width: 360px; margin: 0 auto; }
  .sd-offer, .sd-why, .sd-steps { grid-template-columns: minmax(0, 1fr); }
  .sd-step::before { display: none; }
  .sd-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; height: auto; }
  .sd-gallery figure { aspect-ratio: 1; }
  .sd-gallery figure:first-child { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .sd-others { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .sd-strip__grid { grid-template-columns: minmax(0, 1fr); }
  .sd-strip__grid div { border-left: 0 !important; padding-left: 0; }
  .sd-strip__grid div + div { border-top: 1px solid var(--line-dark); }
}

/* Home: until the intro film is on screen, show only a calm cover with the logo (no flash of the page) */
html.story-on:not(.story-off):not(.story-off-after) body > *:not(.intro3d) { visibility: hidden !important; }
html.story-on:not(.story-off):not(.story-off-after) body { background: radial-gradient(ellipse at 50% 46%, #fdfcf9 0%, #f6f3ee 45%, #e9e4dc 100%) fixed; }
html.story-on:not(.story-off):not(.story-off-after) body::before { content: ""; position: fixed; inset: 0; z-index: 1; background: url("../assets/logo.png") center 46% / min(560px, 78vw) auto no-repeat; mix-blend-mode: multiply; animation: coverPulse 1.8s ease-in-out infinite alternate; }
@keyframes coverPulse { from { opacity: .55; } to { opacity: 1; } }
