/* =========================================================
   HouseMasters — site styles
   ========================================================= */
:root {
  --navy: #003366;
  --navy-deep: #04203f;
  --ink: #15202e;
  --text: #3a4552;
  --muted: #6b7684;
  --sand: #f4efe7;
  --sand-2: #e9e1d4;
  --stone: #c9a46a;
  --stone-dark: #a8844b;
  --line: rgba(10, 44, 85, .12);
  --white: #fff;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 4px;
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, .stat-num, .service-num, .pillar-num, .about-badge span, .partitions-stat b { font-variant-numeric: lining-nums; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -.005em; }
h2 { font-size: clamp(2.1rem, 4vw, 3.3rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1rem; }

.container { width: min(1240px, 100% - 48px); margin-inline: auto; }
.section { padding: clamp(80px, 11vw, 140px) 0; }

.eyebrow {
  font-size: .75rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--stone-dark); margin: 0 0 1.1rem; display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow.light { color: var(--stone); }
.lead { font-size: 1.15rem; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: var(--radius); border: 1px solid transparent;
  font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.btn::after { content: "→"; transition: transform .3s var(--ease); }
.btn:hover::after { transform: translateX(4px); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--stone); color: var(--white); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--stone-dark); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .4s, box-shadow .4s, height .4s;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .4s;
}
.site-header.is-scrolled::before { opacity: 1; }
.menu-open .site-header::before { opacity: 0; }
.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--line); --header-h: 70px;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 48px; width: auto; transition: height .4s; box-shadow: 0 4px 18px rgba(0,0,0,.18); }
.is-scrolled .brand img { height: 42px; box-shadow: none; }
.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  color: #fff; font-size: .84rem; font-weight: 600; letter-spacing: .06em; position: relative; padding: 6px 0;
}
.main-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.main-nav a:hover::after, .main-nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { border: 1px solid rgba(255,255,255,.6); padding: 10px 20px !important; border-radius: var(--radius); transition: .3s; }
.nav-cta:hover { background: #fff; color: var(--navy) !important; }
.is-scrolled .main-nav a { color: var(--ink); }
.is-scrolled .nav-cta { background: var(--navy); color: #fff !important; border-color: var(--navy); }
.is-scrolled .nav-cta:hover { background: var(--stone-dark); border-color: var(--stone-dark); }

.menu-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; position: relative; z-index: 60; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; transition: .35s var(--ease); }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.is-scrolled .menu-toggle span { background: var(--ink); }
.menu-open .menu-toggle span { background: #fff; }
.menu-open .menu-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; color: #fff; overflow: hidden; background: var(--navy-deep); }
.hero-slides, .hero-slide, .hero-shade { position: absolute; inset: 0; }
.hero-slide {
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.08);
  transition: opacity 1.6s ease, transform 8s linear;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-shade {
  background:
    linear-gradient(90deg, rgba(7,29,58,.85) 0%, rgba(7,29,58,.45) 50%, rgba(7,29,58,.1) 100%),
    linear-gradient(0deg, rgba(7,29,58,.75) 0%, rgba(7,29,58,0) 40%);
}
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: 40px; padding-bottom: 110px; }
.hero h1 { color: #fff; font-size: clamp(2.9rem, 6.2vw, 5.6rem); font-weight: 600; max-width: 15ch; line-height: 1.02; }
.hero h1 em { font-style: italic; color: var(--stone); font-weight: 500; }
.hero-lead { max-width: 520px; font-size: 1.08rem; color: rgba(255,255,255,.85); margin: 1.6rem 0 2.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-footer {
  position: absolute; left: 0; right: 0; bottom: 36px; z-index: 3;
  display: flex; align-items: flex-end; justify-content: flex-end; gap: 24px;
}
.hero-caption { display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--stone); padding-left: 16px; }
.hero-caption-label { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--stone); font-weight: 700; }
.hero-caption-title { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; transition: opacity .4s; }
.hero-caption-place { font-size: .82rem; color: rgba(255,255,255,.7); transition: opacity .4s; }
.hero-controls { display: flex; align-items: center; gap: 18px; }
.hero-count { font-size: .82rem; letter-spacing: .1em; color: rgba(255,255,255,.7); }
.hero-count b { color: #fff; }
.hero-bars { display: flex; gap: 6px; }
.hero-bar { width: 34px; height: 2px; background: rgba(255,255,255,.3); border: 0; padding: 0; position: relative; overflow: hidden; }
.hero-bar::before { content: ""; position: absolute; inset: -10px 0; }
.hero-bar i { position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero-bar.is-done i { transform: scaleX(1); }
.hero-bar.is-active i { animation: fill var(--dur, 6s) linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }
.hero-arrow {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45);
  background: transparent; color: #fff; font-size: 1.1rem; transition: .3s;
}
.hero-arrow:hover { background: #fff; color: var(--navy); }

/* ---------- Stats ---------- */
.stats { background: var(--navy); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 46px 28px; border-left: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; gap: 4px; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num { font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 600; line-height: 1; color: #fff; }
.stat-label { font-size: .8rem; letter-spacing: .08em; color: rgba(255,255,255,.65); text-transform: uppercase; }

/* ---------- About ---------- */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(48px, 7vw, 110px); align-items: center; }
.about-media { position: relative; padding: 0 0 90px 0; }
.about-media figure { margin: 0; overflow: hidden; border-radius: var(--radius); }
.about-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about-media figure:hover img { transform: scale(1.04); }
.about-img-main { aspect-ratio: 4/5; width: 82%; }
.about-img-sub { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 4/3; border: 8px solid #fff; box-shadow: 0 30px 60px -20px rgba(7,29,58,.35); }
.about-badge {
  position: absolute; left: -18px; bottom: 40px; background: var(--stone); color: #fff;
  padding: 18px 24px; display: flex; flex-direction: column; line-height: 1; border-radius: var(--radius);
}
.about-badge b { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 6px; }
.about-badge span { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; }
.about-text h2 { margin-bottom: 1.6rem; }
.pillars { list-style: none; padding: 0; margin: 2.2rem 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; border-top: 1px solid var(--line); padding-top: 26px; }
.pillars li { display: flex; flex-direction: column; gap: 8px; }
.pillar-num { font-family: var(--serif); font-size: 1rem; color: var(--stone-dark); font-weight: 700; }
.pillars h4 { font-size: 1.3rem; margin-bottom: 4px; }
.pillars p { font-size: .88rem; color: var(--muted); margin: 0; line-height: 1.55; }
.registered { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--muted); background: var(--sand); padding: 16px 18px; border-radius: var(--radius); margin: 0; }
.registered svg { width: 22px; flex: none; fill: var(--navy); margin-top: 1px; }

/* ---------- Section heads ---------- */
.section-head { max-width: 680px; margin: 0 auto 64px; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head.left { text-align: left; margin: 0; }
.section-head.left .eyebrow { justify-content: flex-start; }
.section-head h2 { margin-bottom: 1rem; }
.section-head p:last-child { color: var(--muted); margin: 0; }

/* ---------- Services ---------- */
.services { background: var(--sand); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--sand-2); border: 1px solid var(--sand-2); }
.service {
  position: relative; background: var(--sand); padding: 44px 38px 48px; overflow: hidden; isolation: isolate;
  min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end;
  transition: color .5s;
}
.service::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--img) center/cover; transform: scale(1.12); opacity: 0;
  transition: opacity .6s var(--ease), transform 1.2s var(--ease);
}
.service::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(7,29,58,.92) 10%, rgba(7,29,58,.45));
  opacity: 0; transition: opacity .6s var(--ease);
}
.service:hover::before { opacity: 1; transform: scale(1); }
.service:hover::after { opacity: 1; }
.service-num { position: absolute; top: 36px; left: 38px; font-family: var(--serif); font-size: 3rem; font-weight: 600; color: var(--stone); line-height: 1; transition: color .5s; }
.service h3 { margin-bottom: 12px; transition: color .5s; }
.service p { margin: 0; color: var(--muted); font-size: .95rem; transition: color .5s; }
.service:hover h3, .service:hover p { color: #fff; }
.service:hover .service-num { color: var(--stone); }

/* ---------- Projects ---------- */
.projects-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 48px; flex-wrap: wrap; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  border: 1px solid var(--line); background: #fff; color: var(--text);
  padding: 9px 16px; border-radius: 999px; font-size: .8rem; font-weight: 600; transition: .25s;
}
.filter:hover { border-color: var(--navy); color: var(--navy); }
.filter.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.project {
  position: relative; cursor: pointer; display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; width: 100%; font: inherit; text-align: left; background: none; border: 0; padding: 0; color: inherit;
}
.project[hidden] { display: none; }
.project-img { position: relative; aspect-ratio: 4/3.2; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.project-img::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,29,58,.55), transparent 55%);
  opacity: 0; transition: opacity .5s;
}
.project:hover .project-img img { transform: scale(1.06); }
.project:hover .project-img::after { opacity: 1; }
.project-photos {
  position: absolute; right: 14px; bottom: 14px; z-index: 2; background: rgba(255,255,255,.95); color: var(--navy);
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; padding: 6px 11px; border-radius: 999px;
  opacity: 0; transform: translateY(8px); transition: .4s var(--ease);
}
.project:hover .project-photos { opacity: 1; transform: none; }
.project-cat {
  position: absolute; left: 14px; top: 14px; z-index: 2; background: var(--navy); color: #fff;
  font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 6px 10px; border-radius: 2px;
}
.project-body { padding: 18px 2px 4px; display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.project-body h3 { font-size: 1.45rem; transition: color .3s; }
.project:hover h3 { color: var(--navy); }
.project-loc { font-size: .85rem; color: var(--muted); margin-top: 4px; display: block; }
.project-arrow {
  flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--navy); transition: .35s var(--ease); margin-top: 2px;
}
.project:hover .project-arrow { background: var(--navy); color: #fff; border-color: var(--navy); transform: rotate(-45deg); }
.project.is-entering { animation: rise .6s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.projects-more { text-align: center; margin-top: 56px; }

/* ---------- Partitions ---------- */
.partitions { background: var(--navy-deep); color: rgba(255,255,255,.78); position: relative; overflow: hidden; }
.partitions::before {
  content: ""; position: absolute; width: 700px; height: 700px; right: -250px; top: -250px;
  border-radius: 50%; background: radial-gradient(circle, rgba(201,164,106,.14), transparent 65%);
}
.partitions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 100px); align-items: center; position: relative; }
.partitions h2 { color: #fff; margin-bottom: 1.4rem; }
.partitions-stat { display: flex; align-items: center; gap: 18px; margin: 2rem 0 1.6rem; }
.partitions-stat b { font-family: var(--serif); font-size: 3.6rem; color: var(--stone); line-height: 1; }
.partitions-stat span { max-width: 200px; font-size: .9rem; line-height: 1.45; }
.tag-list { list-style: none; padding: 0; margin: 0 0 2.4rem; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li { border: 1px solid rgba(255,255,255,.18); padding: 6px 13px; border-radius: 999px; font-size: .78rem; color: rgba(255,255,255,.85); }
.partitions-media { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: 560px; }
.partitions-media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.partitions-media img:first-child { grid-row: span 2; }

/* ---------- Clients ---------- */
.clients { background: #fff; }
.logo-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.logo-tile { background: #fff; width: 188px; height: 112px; display: grid; place-items: center; padding: 20px 26px; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .3s, box-shadow .3s; }
.logo-tile:hover { border-color: transparent; box-shadow: 0 18px 40px -18px rgba(4,32,63,.3); }
.logo-tile img { max-height: 72px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .6; transition: .4s; }
.logo-tile:hover img { filter: none; opacity: 1; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background-size: cover; background-position: center 40%; background-attachment: fixed; padding: clamp(100px, 14vw, 170px) 0; color: #fff; text-align: center; }
.cta-shade { position: absolute; inset: 0; background: rgba(7,29,58,.72); }
.cta-inner { position: relative; max-width: 640px; }
.cta-inner h2 { color: #fff; margin-bottom: 1rem; font-size: clamp(2.4rem, 5vw, 4rem); }
.cta-inner p { color: rgba(255,255,255,.82); margin-bottom: 2.2rem; font-size: 1.08rem; }

/* ---------- Contact ---------- */
.contact { background: var(--sand); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(48px, 7vw, 100px); align-items: start; }
.contact-info h2 { margin-bottom: 1.4rem; }
.contact-list { list-style: none; padding: 0; margin: 2.4rem 0 0; display: grid; gap: 4px; }
.contact-list li { display: flex; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ci-icon { width: 48px; height: 48px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
.ci-icon svg { width: 20px; fill: var(--navy); }
.contact-list small { display: block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.contact-list a, .contact-list span { color: var(--ink); font-weight: 600; font-size: 1.02rem; }
.contact-list a:hover { color: var(--stone-dark); }

.contact-form { background: #fff; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); box-shadow: 0 40px 80px -40px rgba(7,29,58,.25); }
.contact-form h3 { font-size: 2rem; margin-bottom: 1.6rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: block; margin-bottom: 18px; }
.field span { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .98rem; color: var(--ink);
  border: 1px solid var(--line); background: #fbfaf7; border-radius: var(--radius); padding: 13px 14px;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 3px rgba(10,44,85,.08); }
.field.has-error input, .field.has-error textarea { border-color: #b4412f; }
.contact-form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { margin: 14px 0 0; font-size: .88rem; min-height: 1.4em; }
.form-note.ok { color: #2f7a4a; }
.form-note.err { color: #b4412f; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.65); padding: 80px 0 0; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 48px; padding-bottom: 60px; }
.footer-brand img { height: 56px; width: auto; margin-bottom: 20px; border: 1px solid rgba(255,255,255,.15); }
.footer-brand p { max-width: 340px; }
.site-footer h5 { color: #fff; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 18px; }
.site-footer a, .site-footer span { display: block; margin-bottom: 9px; transition: color .25s; }
.site-footer a:hover { color: var(--stone); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0; display: flex; justify-content: space-between; gap: 16px; font-size: .8rem; flex-wrap: wrap; }
.footer-bottom span, .footer-bottom a { display: inline; margin: 0; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(5,15,30,.97);
  display: grid; grid-template-rows: minmax(0, 1fr) auto auto; padding: 60px 80px 20px;
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lb-stage { margin: 0; position: relative; min-height: 0; }
.lb-stage img { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 2px; transition: opacity .3s; }
.lb-stage img.is-loading { opacity: .2; }
.lb-close { position: absolute; top: 14px; right: 22px; background: none; border: 0; color: #fff; font-size: 2.6rem; line-height: 1; opacity: .7; }
.lb-close:hover { opacity: 1; }
.lb-nav {
  position: absolute; top: 45%; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); color: #fff; font-size: 1.2rem; transition: .25s;
}
.lb-nav:hover { background: #fff; color: var(--navy); }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; color: rgba(255,255,255,.7); padding: 20px 0 14px; }
.lb-cat { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); font-weight: 700; }
.lb-title { color: #fff; font-size: 1.8rem; margin: 4px 0; }
.lb-details { margin: 0; font-size: .88rem; }
.lb-count { font-size: .85rem; white-space: nowrap; }
.lb-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.lb-thumbs button { flex: none; width: 82px; height: 58px; padding: 0; border: 2px solid transparent; border-radius: 2px; overflow: hidden; opacity: .45; background: none; transition: .25s; }
.lb-thumbs button.is-active { opacity: 1; border-color: var(--stone); }
.lb-thumbs button:hover { opacity: .9; }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.service.reveal:nth-child(3n+2) { transition-delay: .1s; }
.service.reveal:nth-child(3n+3) { transition-delay: .2s; }
.stat.reveal:nth-child(2) { transition-delay: .08s; }
.stat.reveal:nth-child(3) { transition-delay: .16s; }
.stat.reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --header-h: 70px; }
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 0; background: var(--navy-deep); flex-direction: column; justify-content: center; gap: 26px;
    opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
  }
  .main-nav a { color: #fff !important; font-family: var(--serif); font-size: 2rem; font-weight: 600; letter-spacing: 0; }
  .main-nav .nav-cta { font-family: var(--sans); font-size: .9rem; background: transparent !important; border-color: rgba(255,255,255,.5) !important; margin-top: 10px; }
  .menu-open .main-nav { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }
  .menu-open .brand img { box-shadow: none; }
  .brand { position: relative; z-index: 60; }
  .brand img { height: 40px; }

  .about-grid, .partitions-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 560px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 32px 22px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.1); }
  .stat:nth-child(2) { padding-left: 22px; }
  .partitions-media { height: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .cta-band { background-attachment: scroll; }
  .lightbox { padding: 56px 16px 14px; }
  .lb-nav { top: auto; bottom: 120px; width: 44px; height: 44px; }
}
@media (max-width: 640px) {
  .logo-tile { width: calc(50% - 7px); height: 100px; padding: 16px; }
  .container { width: calc(100% - 32px); }
  .project-grid, .service-grid { grid-template-columns: 1fr; }
  .service { min-height: 240px; padding: 34px 26px 36px; }
  .service-num { top: 28px; left: 26px; }
  .pillars { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .hero { height: auto; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; }
  .hero-content { height: auto; padding: 120px 0 36px; }
  .hero-footer { position: relative; bottom: auto; flex-direction: column; align-items: flex-start; padding-bottom: 28px; }
  .hero-arrow { display: none; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .stat-label { font-size: .7rem; }
  .about-badge { left: 0; }
  .partitions-media { height: 340px; }
  .footer-grid { grid-template-columns: 1fr; }
  .lb-title { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
