/* Noor Nasir & Company */
:root {
  --paper: #eceeed;        /* poured-concrete grey */
  --surface: #ffffff;
  --ink: #1b1918;          /* logo black */
  --ink-2: #4b5157;        /* shuttering steel */
  --ink-3: #737a80;
  --line: #cdd1cf;
  --brick: #952a1f;        /* logo brick red */
  --brick-dark: #6f1f17;
  --brick-tint: #f3e3df;
  --green: #1d4a2c;        /* Nashrah Villas green */
  --green-tint: #e2ece4;
  --gold: #c99a3b;

  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --text: "Source Serif 4", Georgia, "Times New Roman", serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; max-width: 68ch; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.2vw, 5.25rem); font-stretch: 112%; font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-stretch: 108%; font-weight: 750; }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-stretch: 100%; }
:focus-visible { outline: 3px solid var(--brick); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sans { font-family: var(--display); }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 54ch; }
.muted { color: var(--ink-3); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; }
.skip:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--display); font-weight: 600; font-size: 1rem; font-stretch: 100%;
  padding: .85em 1.35em; border: 2px solid var(--ink); border-radius: 2px;
  text-decoration: none; cursor: pointer; background: transparent; color: var(--ink);
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn--brick { background: var(--brick); border-color: var(--brick); color: #fff; }
.btn--brick:hover { background: var(--brick-dark); border-color: var(--brick-dark); }
.btn--light { border-color: #fff; color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.link {
  font-family: var(--display); font-weight: 600; text-decoration: none;
  border-bottom: 2px solid var(--brick); padding-bottom: 2px;
}
.link:hover { color: var(--brick); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 68px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 32px); }
.nav a {
  font-family: var(--display); font-weight: 600; font-size: .98rem; text-decoration: none;
  padding: 6px 0; border-bottom: 2px solid transparent; color: var(--ink-2);
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brick); }
.nav .btn { padding: .6em 1.05em; font-size: .95rem; border-bottom-width: 2px; color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: 2px; cursor: pointer;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: ""; display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: transform .2s;
  }
  .nav-toggle span::before { position: absolute; top: -6px; }
  .nav-toggle span::after { position: absolute; top: 6px; }
  .nav-toggle[aria-expanded="true"] span { background: transparent; }
  .nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--brick); }
  .nav .btn { margin-top: 16px; justify-content: center; border-bottom: 2px solid var(--brick); }
  .brand img { height: 56px; }
}

/* ---------- hero (home) ---------- */
.hero { padding: clamp(32px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero h1 .line { display: block; }
.hero h1 .line--brick { color: var(--brick); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.build { margin: 0; }
.build__frame {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #cfd3d1;
}
.build__frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .45s ease;
}
.build__frame img.is-on { opacity: 1; }
.build__controls { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin-top: 12px; font-family: var(--display); font-size: .85rem; color: var(--ink-3); }
.build__caption { margin-top: 6px; font-family: var(--display); font-size: .9rem; color: var(--ink-2); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.build__caption b { color: var(--ink); font-weight: 600; margin-right: 6px; }
.build__caption a { color: var(--ink-3); text-decoration: none; }
.build__caption a:hover { color: var(--brick); text-decoration: underline; }

input[type="range"].scrub {
  -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; margin: 0;
}
input[type="range"].scrub::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(to right, var(--brick) var(--p, 0%), var(--line) var(--p, 0%)); }
input[type="range"].scrub::-moz-range-track { height: 4px; background: var(--line); }
input[type="range"].scrub::-moz-range-progress { height: 4px; background: var(--brick); }
input[type="range"].scrub::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; background: var(--brick); border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px var(--brick);
}
input[type="range"].scrub::-moz-range-thumb { width: 16px; height: 16px; background: var(--brick); border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px var(--brick); }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
}

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section--white { background: var(--surface); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { margin: 0; }
.section-head p { margin: 8px 0 0; color: var(--ink-2); }

/* practices: asymmetric */
.practices { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: clamp(16px, 2vw, 24px); }
.practice { position: relative; display: block; text-decoration: none; color: #fff; overflow: hidden; background: var(--ink); min-height: 280px; }
.practice:first-child { grid-row: span 2; min-height: 560px; }
.practice img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.practice::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,18,17,.88) 0%, rgba(20,18,17,.35) 45%, rgba(20,18,17,0) 70%); }
.practice__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(20px, 3vw, 32px); }
.practice h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-stretch: 112%; font-weight: 800; margin: 0 0 6px; }
.practice p { margin: 0; color: #e6e6e6; max-width: 40ch; font-size: 1rem; }
.practice .count { display: inline-block; margin-top: 12px; font-family: var(--display); font-weight: 600; font-size: .95rem; border-bottom: 2px solid var(--brick); }
.practice--planning .count { border-bottom-color: #8fc29d; }
.practice:hover img { transform: scale(1.03); }
@media (max-width: 760px) {
  .practices { grid-template-columns: 1fr; }
  .practice:first-child { grid-row: auto; min-height: 380px; }
}

/* featured list */
.featured { display: grid; gap: clamp(48px, 7vw, 96px); }
.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: end; }
.feature:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.feature:nth-child(even) .feature__media { order: 2; }
.feature__media { display: block; overflow: hidden; aspect-ratio: 3 / 2; background: #cfd3d1; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.feature__media:hover img { transform: scale(1.02); }
.feature__tag { font-family: var(--display); font-size: .95rem; font-weight: 600; color: var(--brick); margin-bottom: 10px; }
.feature__tag--planning { color: var(--green); }
.feature h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-stretch: 110%; font-weight: 800; }
.feature h3 a { text-decoration: none; }
.feature h3 a:hover { color: var(--brick); }
@media (max-width: 820px) {
  .feature, .feature:nth-child(even) { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature__media { order: 0; }
}

/* Nashrah band */
.nashrah { background: var(--green); color: #fff; }
.nashrah .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.nashrah__logo { width: 132px; background: #fff; padding: 8px; margin-bottom: 24px; }
.nashrah h2 { color: #fff; }
.nashrah p { color: #dce8de; }
.nashrah__plan { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; align-items: stretch; }
.nashrah__plan figure { margin: 0; background: #fff; }
.nashrah__plan figure:first-child { padding: 10px; }
.nashrah__plan img { width: 100%; height: 100%; object-fit: cover; }
.nashrah__plan figure:first-child img { object-fit: contain; }
.nashrah__plan figcaption { font-family: var(--display); font-size: .85rem; color: var(--ink-2); padding: 8px 2px 0; }
.nashrah .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (max-width: 900px) {
  .nashrah .wrap { grid-template-columns: 1fr; }
}

/* steps (a real sequence) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 2px solid var(--ink); counter-reset: step; }
.steps li { padding: 20px 20px 8px 0; counter-increment: step; position: relative; }
.steps li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.steps li::before {
  content: counter(step); display: block; font-family: var(--display); font-weight: 800; font-stretch: 115%;
  font-size: 2.6rem; line-height: 1; color: var(--brick); margin-bottom: 14px;
}
.steps h3 { font-size: 1.15rem; margin-bottom: 6px; }
.steps p { font-size: .98rem; color: var(--ink-2); margin: 0; }
@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li, .steps li + li { padding: 20px 16px 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* call band */
.callband { background: var(--brick); color: #fff; padding: clamp(48px, 7vw, 88px) 0; }
.callband .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.callband h2 { color: #fff; margin: 0 0 8px; }
.callband p { margin: 0; color: #f6dcd7; }
.callband .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.callband .btn--white { background: #fff; color: var(--brick); border-color: #fff; }
.callband .btn--white:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- cinematic page header ---------- */
.cine {
  position: relative; overflow: hidden; isolation: isolate; color: #f4efe7;
  height: clamp(560px, calc(100vh - var(--header-h)), 900px); background: #151413;
}
.cine__bg, .cine__fg { position: absolute; inset: 0; background-image: var(--bg); background-size: cover; background-position: var(--pos, center); }
.cine__bg { z-index: 0; }
.cine__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(12,11,10,.38) 0%, rgba(12,11,10,0) 22%); }
.cine__fg {
  z-index: 2;
  -webkit-mask-image: var(--mask); mask-image: var(--mask);
  -webkit-mask-size: cover; mask-size: cover;
  -webkit-mask-position: var(--pos, center); mask-position: var(--pos, center);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.cine__shade { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(to top, rgba(12,11,10,.78) 0%, rgba(12,11,10,.35) 26%, rgba(12,11,10,0) 48%); }
.cine__title {
  position: absolute; z-index: 1; left: 0; right: 0; top: var(--title-y, 16%); margin: 0; text-align: center;
  font-family: var(--display); font-weight: 700; font-stretch: 112%; text-transform: uppercase;
  font-size: clamp(64px, var(--title-vw, 17vw), 330px); line-height: .8; letter-spacing: -0.035em; color: #f4efe7; white-space: nowrap;
}
.cine__accent {
  position: absolute; z-index: 4; right: var(--accent-x, 7%); top: var(--accent-y, 52%); margin: 0;
  font-family: var(--text); font-style: italic; font-weight: 400; font-size: clamp(34px, 6.4vw, 118px); line-height: 1;
  color: #f4efe7; text-shadow: 0 2px 24px rgba(0,0,0,.35); max-width: none;
}
.cine__top {
  position: absolute; z-index: 4; left: 0; right: 0; top: 22px; display: flex; justify-content: space-between; gap: 24px;
  font-family: var(--display); font-size: .82rem; line-height: 1.35; color: rgba(244,239,231,.88);
}
.cine__top span:last-child { text-align: right; }
.cine__bottom { position: absolute; z-index: 5; left: 0; right: 0; bottom: clamp(20px, 4vw, 44px); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.cine__card {
  font-family: var(--display); font-size: .86rem; line-height: 1.5; color: #fff;
  padding: 16px 20px; border-radius: 14px; border: 1px solid rgba(255,255,255,.32);
  background: rgba(255,255,255,.1); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  min-width: 260px; max-width: 360px;
}
.cine__card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; }
.cine__card dt { color: rgba(255,255,255,.72); }
.cine__card dd { margin: 0; font-weight: 600; }
.cine__card a { display: inline-block; margin-top: 10px; color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.7); }
.cine__card a:hover { border-bottom-color: #fff; }
.cine__lede { margin: 0; max-width: 42ch; font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.55; color: rgba(244,239,231,.92); text-align: right; text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.cine__dot { position: absolute; z-index: 4; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: rgba(255,255,255,.95); box-shadow: 0 0 0 5px rgba(255,255,255,.28); pointer-events: none; }
.cine + .page-intro { padding-top: clamp(28px, 4vw, 48px); }
@media (max-width: 760px) {
  .cine { height: auto; min-height: 640px; }
  .cine__title { font-size: 14.5vw; top: var(--title-y-m, 18%); }
  .cine__accent { font-size: 9vw; top: var(--accent-y-m, 44%); right: 5%; left: 5%; text-align: right; }
  .cine__bottom { flex-direction: column; align-items: stretch; }
  .cine__lede { text-align: left; }
  .cine__card { max-width: none; min-width: 0; }
  .cine__dot { display: none; }
  .cine__top span:last-child { display: none; }
}

/* ---------- page head ---------- */
.page-head { padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 3vw, 40px); }
.page-head h1 { margin-bottom: .2em; }
.page-head__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.page-head__media { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: #cfd3d1; }
.page-head__media img { width: 100%; height: 100%; object-fit: cover; }
.page-head__media .chip { position: absolute; right: 8px; bottom: 8px; }
@media (max-width: 820px) {
  .page-head__grid { grid-template-columns: 1fr; }
  .page-head__media { aspect-ratio: 16 / 9; }
}
.about-logo { display: block; width: min(100%, 360px); height: auto; margin: 8px 0 28px; }
.about-photo { max-width: 460px; }
@media (max-width: 860px) { .about-logo { width: 240px; margin: 0 0 16px; } .about-photo { display: none; } }

/* ---------- filter + grid ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters button {
  font-family: var(--display); font-weight: 600; font-size: .98rem;
  padding: .6em 1.1em; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  border-radius: 2px; cursor: pointer;
}
.filters button:hover { border-color: var(--ink); color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters button .n { font-weight: 400; opacity: .7; margin-left: 4px; }
.cat-blurb { color: var(--ink-2); margin: -16px 0 28px; min-height: 1.6em; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(28px, 3vw, 40px) clamp(16px, 2vw, 28px); }
.tile { display: block; text-decoration: none; }
.tile__img { aspect-ratio: 4 / 3; overflow: hidden; background: #cfd3d1; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile:hover .tile__img img { transform: scale(1.03); }
.tile h3 { margin: 14px 0 4px; font-size: 1.3rem; }
.tile:hover h3 { color: var(--brick); }
.tile .meta { font-family: var(--display); font-size: .92rem; color: var(--ink-3); display: flex; gap: 6px 14px; flex-wrap: wrap; }
.tile .meta .cat { color: var(--brick); font-weight: 600; }
.tile .meta .cat--planning { color: var(--green); }
.tile .meta .cat--design { color: var(--ink); }
.grid:empty::after { content: "No projects in this category yet."; color: var(--ink-3); }

/* ---------- project page ---------- */
.p-hero { background: var(--ink); }
.p-hero img { width: 100%; max-height: min(78vh, 900px); object-fit: cover; margin: 0 auto; }
.p-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 5vw, 72px); padding: clamp(32px, 5vw, 64px) 0 clamp(24px, 4vw, 48px); }
.p-head .crumb { font-family: var(--display); font-size: .95rem; margin-bottom: 14px; }
.p-head .crumb a { color: var(--ink-2); }
.p-head h1 { font-size: clamp(2.2rem, 5vw, 4.25rem); }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0; border-top: 2px solid var(--ink); align-self: start; }
.facts dt, .facts dd { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.facts dt { font-family: var(--display); font-size: .92rem; color: var(--ink-3); padding-right: 24px; }
.facts dd { font-family: var(--display); font-weight: 600; }
.p-logo { width: 160px; margin-top: 20px; background: #fff; padding: 8px; }
@media (max-width: 820px) { .p-head { grid-template-columns: 1fr; } }

.p-section { padding: clamp(32px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
.p-section > .wrap > h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }

/* timeline */
.timeline { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.timeline .build__frame { aspect-ratio: 4 / 3; }
.timeline ol { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.timeline li button {
  display: grid; grid-template-columns: 5.5em 1fr; gap: 12px; width: 100%; text-align: left;
  padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer;
  font: inherit; font-size: .98rem; color: var(--ink-2);
}
.timeline li button b { font-family: var(--display); color: var(--ink); }
.timeline li button[aria-current="step"] { color: var(--ink); }
.timeline li button[aria-current="step"] b { color: var(--brick); }
.timeline li button:hover { color: var(--ink); }
@media (max-width: 820px) { .timeline { grid-template-columns: 1fr; } }

/* before / after */
.ba { position: relative; overflow: hidden; background: #cfd3d1; max-width: 1000px; aspect-ratio: 4 / 3; user-select: none; touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__after { clip-path: inset(0 0 0 var(--x, 50%)); }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 3px; margin-left: -1.5px; background: #fff; pointer-events: none; }
.ba__line::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 28px; height: 28px; transform: translate(-50%, -50%);
  border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.ba__label { position: absolute; bottom: 10px; font-family: var(--display); font-weight: 500; font-size: .72rem; background: rgba(20, 18, 17, .45); color: #fff; padding: 4px 7px; border-radius: 2px; pointer-events: none; }
.ba__label--before { left: 10px; }
.ba__label--after { right: 10px; }
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba:focus-within .ba__line::after { outline: 3px solid var(--ink); outline-offset: 2px; }

/* gallery */
.gallery { columns: 3 300px; column-gap: 14px; }
.gallery button { display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; background: #cfd3d1; cursor: zoom-in; break-inside: avoid; }
.gallery img { width: 100%; height: auto; }
.gallery button:hover img { opacity: .92; }

.p-video { max-width: 1000px; }
.p-video video { width: 100%; background: #000; }

.p-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.p-nav a { display: block; text-decoration: none; padding: 20px 0; border-top: 2px solid var(--ink); }
.p-nav a:last-child { text-align: right; }
.p-nav small { display: block; font-family: var(--display); color: var(--ink-3); font-size: .9rem; }
.p-nav span { font-family: var(--display); font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.5rem); }
.p-nav a:hover span { color: var(--brick); }

/* lightbox */
.lightbox { padding: 0; border: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgba(15,14,13,.96); color: #fff; }
.lightbox::backdrop { background: rgba(15,14,13,.96); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 64px 24px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; }
.lightbox figcaption { font-family: var(--display); font-size: .9rem; color: #bbb; margin-top: 12px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.25); width: 48px; height: 48px; border-radius: 2px; cursor: pointer; font-size: 1.4rem; line-height: 1; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255,255,255,.2); }
.lightbox .lb-close { top: 12px; right: 12px; }
.lightbox .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox figure { padding: 64px 8px 24px; } .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 12px; transform: none; } }

/* ---------- about ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.practice-list { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.practice-list > div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.practice-list h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-stretch: 110%; font-weight: 800; }
.practice-list ul { margin: 0; padding-left: 1.1em; columns: 2 220px; column-gap: 32px; }
.practice-list li { margin-bottom: 4px; break-inside: avoid; }
@media (max-width: 700px) { .practice-list > div { grid-template-columns: 1fr; gap: 8px; } }
.boards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.boards img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
@media (max-width: 700px) { .boards { grid-template-columns: 1fr 1fr; } }
.note { border-left: 4px solid var(--gold); background: #fbf6ea; padding: 14px 18px; font-family: var(--display); font-size: .95rem; color: var(--ink-2); max-width: 70ch; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact-list { margin: 0; border-top: 2px solid var(--ink); }
.contact-list > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { font-family: var(--display); font-size: .92rem; color: var(--ink-3); }
.contact-list dd { margin: 2px 0 0; font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.contact-list dd a { text-decoration: none; border-bottom: 2px solid var(--brick); }
.hours { border-collapse: collapse; font-family: var(--display); }
.hours th, .hours td { padding: 2px 0; text-align: left; vertical-align: top; }
.hours th { font-weight: 600; padding-right: 24px; }
.hours td { font-weight: 500; color: var(--ink-2); }
.form { background: var(--surface); padding: clamp(20px, 3vw, 36px); border-top: 4px solid var(--brick); }
.form h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-family: var(--display); font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #b9bebc; border-radius: 2px; background: #fff; color: var(--ink); width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brick); outline-offset: 0; border-color: var(--brick); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.call-list { display: grid; gap: 10px; margin-top: 20px; max-width: 320px; }
.call-list .btn { justify-content: center; font-size: 1.1rem; }
.form .hint { font-family: var(--display); font-size: .9rem; color: var(--ink-3); margin-top: 12px; }
.map { margin-top: 8px; border: 0; width: 100%; aspect-ratio: 4 / 3; background: #d9dcda; }
.maps { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); margin-top: clamp(40px, 5vw, 64px); }
.maps figure { margin: 0; }
.maps figcaption { font-family: var(--display); font-weight: 600; }
@media (max-width: 700px) { .maps { grid-template-columns: 1fr; } }
.founders { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 8px 0 20px; padding: 16px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.founders div { font-family: var(--display); }
.founders b { display: block; font-size: 1.25rem; font-stretch: 108%; }
.founders span { color: var(--ink-3); font-size: .92rem; }

/* ---------- built vs design labels ---------- */
/* small, quiet text tag in the corner of an image */
.chip {
  display: inline-block; font-family: var(--display); font-weight: 500; font-size: .68rem; line-height: 1;
  letter-spacing: .01em; padding: 4px 6px; border-radius: 2px; white-space: nowrap; vertical-align: middle;
  background: rgba(20, 18, 17, .55); color: #fff;
  width: auto; height: auto; max-width: max-content;
}
.tile__img, .feature__media, .p-hero, .spotlight__media, .spotlight__thumbs a { position: relative; }
.tile__img .chip, .feature__media .chip, .p-hero .chip, .spotlight__media .chip, .spotlight__thumbs .chip { position: absolute; right: 8px; bottom: 8px; z-index: 1; }
.p-hero .chip, .spotlight__media .chip { right: var(--gutter); bottom: 12px; }
.sub { font-family: var(--display); font-size: .92rem; color: var(--ink-3); margin: -6px 0 18px; }
.legend { font-family: var(--display); font-size: .88rem; color: var(--ink-3); margin: -8px 0 28px; }
.g-title { font-size: 1.1rem; margin: 24px 0 12px; }
.g-title:first-child { margin-top: 0; }
.gallery--wide { columns: 3 280px; }

/* ---------- stats + scope ---------- */
.stats-band { background: var(--surface); border-top: 1px solid var(--line); padding: clamp(28px, 4vw, 44px) 0; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stats li { padding: 4px 20px; border-left: 1px solid var(--line); font-family: var(--display); }
.stats li:first-child { border-left: 0; padding-left: 0; }
.stats b { display: block; font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 800; font-stretch: 112%; line-height: 1; color: var(--ink); }
.stats span { display: block; margin-top: 8px; font-size: .92rem; color: var(--ink-2); line-height: 1.3; }
.stats li:last-child b { color: var(--brick); }
.cities { font-family: var(--display); font-size: .97rem; color: var(--ink-2); margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--line); max-width: none; }
.cities span { color: var(--ink); font-weight: 600; }
.stats--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 0; margin-top: 24px; padding-top: 20px; border-top: 2px solid var(--ink); }
.stats--compact li:nth-child(3n+1) { border-left: 0; padding-left: 0; }
.stats--compact b { font-size: 1.9rem; }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 0; }
  .stats li { border-left: 0; padding: 0 12px 0 0; }
  .stats--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.scope { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: clamp(28px, 4vw, 48px); border-top: 2px solid var(--ink); }
.scope > div { padding: 24px 32px 0 0; }
.scope > div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.scope h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-stretch: 110%; font-weight: 800; }
.scope p { color: var(--ink-2); margin: 0; }
@media (max-width: 700px) {
  .scope { grid-template-columns: 1fr; }
  .scope > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 24px; }
}

/* ---------- rates ---------- */
.seg { display: inline-flex; border: 1px solid var(--ink); border-radius: 2px; overflow: hidden; }
.seg button {
  font-family: var(--display); font-weight: 600; font-size: .95rem; padding: .6em 1.2em;
  border: 0; background: transparent; color: var(--ink); cursor: pointer;
}
.seg button + button { border-left: 1px solid var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.seg button:hover:not([aria-pressed="true"]) { background: var(--surface); }

.rates-home { background: var(--paper); border-top: 1px solid var(--line); }
.rate-track {
  list-style: none; margin: 0; padding: 0 0 12px; display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 300px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent; overscroll-behavior-x: contain;
}
.rate-track:focus-visible { outline-offset: 6px; }
.rate-card { scroll-snap-align: start; background: var(--surface); padding: 22px 22px 20px; border-top: 2px solid var(--ink); }
.rate-card__group { font-family: var(--display); font-size: .85rem; color: var(--brick); font-weight: 600; }
.rate-card h3 { font-size: 1.2rem; margin: 6px 0 12px; }
.rate-card__price { font-family: var(--display); font-weight: 800; font-stretch: 108%; font-size: 1.45rem; line-height: 1.15; color: var(--ink); margin: 0 0 10px; }
.rate-card__price small { display: block; font-size: .8rem; font-weight: 500; color: var(--ink-3); margin-top: 2px; }
.rate-card__note { font-size: .95rem; color: var(--ink-2); margin: 0; }
.rate-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; }
.rate-arrow {
  width: 40px; height: 40px; border: 1px solid var(--ink); background: transparent; border-radius: 2px;
  font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--ink);
}
.rate-arrow + .rate-arrow { margin-left: 6px; }
.rate-arrow:hover { background: var(--ink); color: #fff; }
.brands-title { font-size: 1.1rem; margin: clamp(40px, 5vw, 56px) 0 14px; }
.brand-strip {
  list-style: none; margin: 0; padding: 0 0 10px; display: flex; gap: 0; overflow-x: auto;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); scrollbar-width: thin;
}
.brand-strip li { flex: none; padding: 14px 28px 14px 0; margin-right: 28px; border-right: 1px solid var(--line); font-family: var(--display); }
.brand-strip li:last-child { border-right: 0; }
.brand-strip b { display: block; font-size: 1rem; white-space: nowrap; }
.brand-strip span { display: block; font-size: .82rem; color: var(--ink-3); white-space: nowrap; }

.rate-card--budget { border-top-color: var(--brick); }
.budget-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.budget-grid .rate-card { border-top: 2px solid var(--brick); }
@media (max-width: 980px) { .budget-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .budget-grid { grid-template-columns: 1fr; } }
.rate-group { margin-top: clamp(32px, 4vw, 48px); }
.rate-group h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.rate-table-wrap { overflow-x: auto; }
.rate-table { width: 100%; min-width: 560px; border-collapse: collapse; font-family: var(--display); }
.rate-table th, .rate-table td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.rate-table thead th { font-size: .85rem; font-weight: 500; color: var(--ink-3); border-bottom: 2px solid var(--ink); }
.rate-table tbody th { font-weight: 600; width: 26%; }
.rate-table__price { font-weight: 800; font-stretch: 108%; white-space: nowrap; width: 26%; }
.rate-table td:last-child { color: var(--ink-2); font-family: var(--text); }
.rate-note { font-family: var(--display); font-size: .88rem; color: var(--ink-3); margin-top: 24px; }
.mat-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.mat-cols h3 { font-size: 1.25rem; }
.mat-list { margin: 0; border-top: 2px solid var(--ink); }
.mat-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-family: var(--display); }
.mat-list dt { color: var(--ink-2); }
.mat-list dd { margin: 0; font-weight: 600; text-align: right; }
@media (max-width: 760px) { .mat-cols { grid-template-columns: 1fr; } }

/* ---------- the foundation (About) ---------- */
.foundation { background: var(--surface); padding-top: clamp(56px, 8vw, 104px); }
.foundation__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 64px); align-items: end; margin-bottom: clamp(24px, 3vw, 40px); }
.foundation__head h2 { margin: 0; font-size: clamp(2.2rem, 5vw, 4rem); font-stretch: 112%; font-weight: 800; }
.foundation__head p { margin: 0; color: var(--ink-2); max-width: 52ch; }
.foundation__photo { margin: 0; width: 100%; height: clamp(360px, 70vh, 760px); overflow: hidden; background: #3a2a1f; }
.foundation__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; }
@media (max-width: 760px) {
  .foundation__head { grid-template-columns: 1fr; }
  .foundation__photo { height: auto; aspect-ratio: 3 / 2; }
}

/* ---------- team (About) ---------- */
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.team__photo { aspect-ratio: 4 / 5; overflow: hidden; background: #dfe2e0; display: grid; place-items: center; }
.team__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.team__initials { font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: clamp(3rem, 7vw, 5.5rem); color: var(--brick); letter-spacing: -0.02em; }
.team__member h3 { margin: 16px 0 2px; font-size: 1.3rem; }
.team__role { margin: 0; font-family: var(--display); color: var(--brick); font-weight: 600; font-size: .95rem; }
@media (max-width: 760px) { .team { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .team { grid-template-columns: 1fr; } }

/* ---------- design partner ---------- */
.partner { background: #151413; color: #f4efe7; padding: clamp(56px, 8vw, 104px) 0; }
.partner__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.partner__logo img { width: min(100%, 440px); height: auto; display: block; }
.partner h2 { color: #f4efe7; margin-bottom: 14px; }
.partner p { color: rgba(244,239,231,.82); }
.partner__services { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(244,239,231,.18); display: flex; flex-wrap: wrap; gap: 10px 28px; font-family: var(--display); font-size: .95rem; color: #c99474; }
@media (max-width: 860px) { .partner__inner { grid-template-columns: 1fr; } .partner__logo img { width: min(100%, 320px); } }

/* ---------- spotlight (home) ---------- */
.spotlight { background: var(--surface); padding-bottom: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.spotlight__media { display: block; background: var(--ink); }
.spotlight__media img, .spotlight__media video { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: min(72vh, 760px); object-fit: cover; background: var(--ink); }
.spotlight__body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: clamp(28px, 4vw, 48px); }
.spotlight h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); font-stretch: 112%; font-weight: 800; }
.spotlight .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.spotlight__thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.spotlight__thumbs a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #cfd3d1; }
.spotlight__thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.spotlight__thumbs a:hover img { transform: scale(1.04); }
.spotlight__thumbs .chip { right: 6px; bottom: 6px; }
.spotlight__thumbs li > span { display: block; font-family: var(--display); font-size: .88rem; color: var(--ink-2); margin-top: 6px; }
@media (max-width: 900px) {
  .spotlight__body { grid-template-columns: 1fr; }
  .spotlight__thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #c9c9c9; padding: clamp(48px, 6vw, 72px) 0 28px; font-family: var(--display); font-size: .97rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin: 0 0 12px; }
.site-footer a { color: #e6e6e6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer .logo { width: 240px; height: auto; margin: -8px 0 12px -10px; }
.site-footer .base { margin-top: 40px; padding-top: 20px; border-top: 1px solid #3a3634; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: #9a9a9a; font-size: .9rem; }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* floating WhatsApp */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; background: #1f9d55; color: #fff;
  display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { background: #17834a; }

/* ---------- scroll motion (only when JS adds .anim and the visitor allows motion) ---------- */
html.anim .reveal {
  opacity: 0; transform: translate3d(0, 34px, 0);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0ms);
}
html.anim .reveal.is-in { opacity: 1; transform: none; }
html.anim .reveal-img { overflow: hidden; }
html.anim .reveal-img img, html.anim .reveal-img video {
  transform: scale(1.12); transition: transform 1.4s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms);
}
html.anim .reveal-img.is-in img, html.anim .reveal-img.is-in video { transform: scale(1); }
html.anim .reveal-img.is-in:hover img { transform: scale(1.03); }
.cine__title, .cine__accent, .cine__card, .cine__lede, .cine__top { will-change: transform, opacity; }
.cine__bg, .cine__fg { will-change: transform; }
html.anim .cine .cine__title { animation: cineIn 1.3s cubic-bezier(.2,.7,.2,1) both; }
html.anim .cine .cine__accent { animation: cineIn 1.3s .25s cubic-bezier(.2,.7,.2,1) both; }
html.anim .cine .cine__bottom { animation: cineFade 1s .45s ease both; }
@keyframes cineIn { from { opacity: 0; transform: translate3d(0, 60px, 0); } to { opacity: 1; transform: none; } }
@keyframes cineFade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
