/* Duffey Construction — site stylesheet. Tokens and values from the design handoff README. */

:root {
  --ink: #14110f;
  --ink-deep: #0e0c0b;
  --ink-raised: #1d1916;
  --field-border: #3a342d;

  --parchment: #f7f4ed;
  --parchment-deep: #efe9dd;
  --card: #ffffff;
  --card-border: #e1dccf;
  --rule-light: #ece7db;
  --rule-mid: #ddd7c9;
  --rule-warm: #d4cab4;
  --portrait-border: #d8cdb6;
  --placeholder: #e8e2d6;
  --placeholder-warm: #e7ddca;

  --gold: #b08a4e;
  --gold-light: #c9a865;

  --ink-text: #1a1714;
  --body: #5f5b53;
  --body-dim: #6f6a61;
  --meta: #8a857c;
  --detail: #4f4b44;

  --cream-1: #f7f3ec;
  --cream-2: #f4efe6;
  --cream-3: #f2ece0;
  --cream-dim: #e7dfd2;
  --body-dark-1: #d8d0c4;
  --body-dark-2: #b8b1a6;
  --body-dark-3: #a8a298;
  --meta-dark-1: #9a9388;
  --meta-dark-2: #8a8276;
  --meta-dark-3: #bcb5aa;
  --footer-meta: #6a655c;

  --gold-a10: rgba(176,138,78,.1);
  --gold-a18: rgba(176,138,78,.18);
  --gold-a22: rgba(176,138,78,.22);
  --gold-a25: rgba(176,138,78,.25);
  --gold-a30: rgba(176,138,78,.3);

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  --header-h: 84px;
  --gutter: 32px;
  --section-pad: clamp(70px, 10vw, 118px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  background: var(--parchment);
  color: #2b2724;
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 12px; z-index: 300;
  background: var(--gold); color: var(--ink); padding: 10px 16px;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
}
.skip:focus { left: 12px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Shared type ---------- */
.eyebrow {
  font-size: 11.5px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; margin-bottom: 22px;
}
.eyebrow--20 { margin-bottom: 20px; }
.eyebrow--24 { margin-bottom: 24px; }
.eyebrow--34 { margin-bottom: 34px; }
.eyebrow--hero { font-size: 12px; letter-spacing: .4em; color: var(--gold-light); margin-bottom: 26px; }

.h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(34px, 4.6vw, 54px); line-height: 1.04; letter-spacing: .005em;
  color: var(--ink-text);
}
.h2--tight { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.02; }
.h2--small { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.1; }
.h2--dark { color: var(--cream-1); font-size: clamp(34px, 4.6vw, 56px); }

.body { font-weight: 300; font-size: 17px; line-height: 1.8; color: var(--body); }
.mt-16 { margin-top: 16px; }
.mt-18 { margin-top: 18px; }
.mt-24 { margin-top: 24px; }

.btn {
  display: inline-block;
  font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500;
  line-height: 1.2; transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.btn--gold { color: var(--ink); background: var(--gold); padding: 12px 22px; }
.btn--gold:hover { background: var(--gold-light); }
.btn--nav { font-size: 11.5px; }
.btn--lg { padding: 16px 30px; }
.btn--ghost { color: var(--cream-2); border: 1px solid rgba(244,239,230,.4); font-weight: 400; }
.btn--ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent; border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  transition: background .45s ease, border-color .45s ease, backdrop-filter .45s ease;
}
.header.is-scrolled, .header.is-open {
  background: rgba(20,17,15,.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom-color: var(--gold-a25);
}
.header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }

.lockup { display: flex; align-items: center; gap: 13px; }
.lockup__mark { height: 46px; width: auto; flex: none; }
.lockup__words { line-height: 1; }
.lockup__name { display: block; font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: .12em; color: var(--cream-2); }
.lockup__sub { display: block; font-size: 8.5px; letter-spacing: .46em; color: var(--gold); font-weight: 500; margin-top: 2px; }
.lockup--footer { margin-bottom: 20px; }
.lockup--footer .lockup__mark { height: 48px; }
.lockup--footer .lockup__name { font-size: 23px; }

.nav { display: flex; align-items: center; gap: 38px; }
.nav__link {
  font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cream-dim); font-weight: 400; transition: color .25s ease;
}
.nav__link:hover { color: var(--gold-light); }

/* Hamburger (hidden on desktop) */
.nav-toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  flex-direction: column; align-items: center; justify-content: center; gap: 7px;
}
.nav-toggle__bar { display: block; width: 24px; height: 1px; background: var(--cream-2); transition: transform .25s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Mobile drawer: full-screen fade beneath the header */
.drawer {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(20,17,15,.98);
  padding: calc(var(--header-h) + 28px) var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; transition: opacity .3s ease;
}
.drawer.is-visible { opacity: 1; }
.drawer__nav { display: flex; flex-direction: column; gap: 6px; }
.drawer__link {
  font-family: var(--serif); font-size: clamp(36px, 9vw, 52px); font-weight: 500; line-height: 1.2;
  color: var(--cream-1); padding: 6px 0; border-bottom: 1px solid var(--gold-a18);
}
.drawer__link:hover { color: var(--gold-light); }
.drawer__foot { display: flex; flex-direction: column; gap: 26px; }
.drawer__foot .btn { align-self: flex-start; }
.drawer__meta { font-size: 13px; line-height: 1.8; color: var(--meta-dark-1); font-weight: 300; }
body.drawer-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--ink);
}
.hero__bg { position: absolute; inset: 0; display: block; opacity: .62; }
.hero__bg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,17,15,.55) 0%, rgba(20,17,15,.2) 38%, rgba(20,17,15,.82) 100%);
}
.hero__body { position: relative; width: 100%; }
.hero__content { padding-top: 118px; padding-bottom: 54px; }
.hero__h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(44px, 7vw, 86px); line-height: 1.0; letter-spacing: .005em;
  color: var(--cream-1); max-width: 15ch;
}
.hero__p {
  font-weight: 300; font-size: clamp(16px, 1.8vw, 20px); line-height: 1.6;
  color: var(--body-dark-1); max-width: 46ch; margin-top: 26px;
}
.hero__cta { display: flex; gap: 16px; margin-top: 38px; flex-wrap: wrap; }

.hero__stats { position: relative; border-top: 1px solid var(--gold-a30); background: rgba(20,17,15,.45); }
.hero__stats-row { display: flex; flex-wrap: wrap; }
.hero__stat { flex: 1; min-width: 200px; padding: 20px 0; }
.hero__stat--second { border-left: 1px solid var(--gold-a18); padding-left: 30px; }
.hero__stat-num { font-family: var(--serif); font-size: 30px; color: var(--gold-light); font-weight: 500; line-height: 1; }
.hero__stat-label { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--meta-dark-1); margin-top: 4px; }

/* ---------- Intro ---------- */
.intro { background: var(--parchment); padding: var(--section-pad) 0; }
.intro__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 70px; align-items: start; }
.intro__copy { padding-top: 8px; }
.intro__stats { display: flex; gap: 40px; margin-top: 34px; flex-wrap: wrap; }
.stat-lg { font-family: var(--serif); font-size: 38px; color: var(--ink-text); font-weight: 500; line-height: 1; }
.stat-lg__label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--meta); margin-top: 6px; }

/* ---------- Work ---------- */
.work { background: var(--parchment-deep); padding: clamp(70px, 10vw, 110px) 0; }
.work__head { margin-bottom: 38px; }
.work__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.card { background: var(--card); border: 1px solid var(--card-border); overflow: hidden; }
.card__media { position: relative; height: 248px; overflow: hidden; background: var(--placeholder); }
.card__slides { position: absolute; inset: 0; }
/* A slide is a <picture> (AVIF + JPEG, 800/1600 srcset) stacked absolutely; its <img> fills it. */
.slide { position: absolute; inset: 0; display: block; opacity: 0; transition: opacity 1.1s ease; }
.slide img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.slide.is-active { opacity: 1; }
.card__open { position: absolute; inset: 0; width: 100%; height: 100%; cursor: zoom-in; z-index: 1; }
.card__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(20,17,15,.5); color: var(--cream-3);
  font-size: 15px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s ease;
}
.card__nav:hover { background: rgba(20,17,15,.85); }
.card__nav--prev { left: 10px; }
.card__nav--next { right: 10px; }
.card__indicator { position: absolute; left: 16px; bottom: 14px; z-index: 2; display: flex; gap: 6px; align-items: center; }
.dot { width: 7px; height: 7px; border-radius: 50%; padding: 0; background: rgba(242,236,224,.4); transition: background .5s ease; }
.dot.is-active { background: var(--cream-3); }
.counter { font-size: 10.5px; letter-spacing: .14em; color: var(--cream-3); background: rgba(20,17,15,.55); padding: 4px 9px; }

.card__text { padding: 22px 22px 26px; }
.card__type { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 11px; }
.card__area { font-family: var(--serif); font-size: 25px; font-weight: 600; color: var(--ink-text); line-height: 1.15; }
.card__town { font-weight: 300; font-size: 14px; color: var(--body-dim); margin-top: 6px; }
.card__meta { font-size: 11.5px; letter-spacing: .04em; color: var(--meta); margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule-light); }

/* ---------- Services ---------- */
.services {
  background: var(--ink) radial-gradient(circle at 84% 8%, var(--gold-a10), transparent 50%);
  padding: clamp(74px, 10vw, 120px) 0;
}
.services__head { max-width: 50%; margin-bottom: 60px; }
.services__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--gold-a22); }
.service { display: flex; gap: 24px; align-items: baseline; padding: 38px 44px 38px 0; }
.service:nth-child(1), .service:nth-child(3) { border-right: 1px solid var(--gold-a22); }
.service:nth-child(2), .service:nth-child(4) { padding: 38px 0 38px 44px; }
.service:nth-child(1), .service:nth-child(2) { border-bottom: 1px solid var(--gold-a22); }
.service:nth-child(3), .service:nth-child(4) { padding-bottom: 0; }
.service__num { font-family: var(--serif); font-size: 26px; color: var(--gold); font-weight: 500; flex: none; }
.service__h3 { font-family: var(--serif); font-size: 29px; font-weight: 600; color: var(--cream-2); line-height: 1.1; }
.service__p { font-weight: 300; font-size: 15px; line-height: 1.75; color: var(--body-dark-3); margin-top: 12px; }

/* ---------- About ---------- */
.about { background: var(--parchment); padding: clamp(74px, 10vw, 120px) 0; }
.about__grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 64px; align-items: start; }
.portrait { position: relative; border: 1px solid var(--portrait-border); aspect-ratio: 4 / 5; overflow: hidden; background: var(--placeholder-warm); }
.portrait__img { position: absolute; inset: 0; display: block; }
.portrait__img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
@keyframes portraitCycle { 0%, 40% { opacity: 1 } 50%, 90% { opacity: 0 } 100% { opacity: 1 } }
.portrait__img--cycle { animation: portraitCycle 13s ease-in-out infinite; }
.creds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; margin-top: 36px; border-top: 1px solid var(--rule-mid); padding-top: 30px; }
.cred { display: flex; gap: 14px; align-items: baseline; font-weight: 300; font-size: 15px; color: var(--detail); }
.cred__dash { color: var(--gold); font-family: var(--serif); font-size: 18px; flex: none; }

/* ---------- Process ---------- */
.process { background: var(--parchment-deep); padding: clamp(74px, 10vw, 116px) 0; }
.process__head { max-width: 640px; margin-bottom: 56px; }
.process__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--rule-warm); }
.phase { padding: 32px 22px 30px 22px; border-right: 1px solid var(--rule-warm); }
.phase:first-child { padding-left: 0; }
.phase:last-child { padding-right: 0; border-right: 0; }
.phase__num { font-family: var(--serif); font-size: 46px; color: var(--gold); font-weight: 500; line-height: 1; }
.phase__h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--ink-text); margin-top: 18px; line-height: 1.1; }
.phase__p { font-weight: 300; font-size: 13.5px; line-height: 1.7; color: var(--body-dim); margin-top: 10px; }

/* ---------- Spotlight ---------- */
.spotlight { position: relative; background: var(--ink); }
.spotlight__grid { display: grid; grid-template-columns: 1.15fr 1fr; }
.spotlight__media { position: relative; min-height: 560px; overflow: hidden; }
.spotlight__media .slide { transition-duration: 1.2s; }
.spotlight__text {
  padding: clamp(54px, 7vw, 90px) clamp(34px, 5vw, 72px);
  display: flex; flex-direction: column; justify-content: center;
  background-image: radial-gradient(circle at 90% 10%, rgba(176,138,78,.12), transparent 55%);
}
.spotlight__h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 4vw, 48px); line-height: 1.05; color: var(--cream-1); }
.spotlight__p { font-weight: 300; font-size: 16px; line-height: 1.8; color: var(--body-dark-2); margin-top: 18px; max-width: 44ch; }
.facts { display: flex; gap: 44px; margin-top: 34px; flex-wrap: wrap; }
.fact__label { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--meta-dark-2); margin-bottom: 7px; }
.fact__value { font-family: var(--serif); font-size: 21px; color: var(--cream-dim); }
.fact__value--lg { font-size: 24px; }

/* ---------- Testimonial ---------- */
.testimonial { background: var(--parchment); padding: clamp(74px, 10vw, 116px) var(--gutter); }
.testimonial__inner { max-width: 1000px; margin: 0 auto; text-align: center; }
.testimonial__quote {
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: clamp(26px, 3.6vw, 40px); line-height: 1.32; letter-spacing: .005em; color: var(--ink-text);
}
.testimonial__attr { margin-top: 30px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--meta); }
.testimonial__rule { width: 46px; height: 1px; background: var(--gold); margin: 30px auto 0; }

/* ---------- Contact ---------- */
.contact {
  background: var(--ink) radial-gradient(circle at 12% 90%, var(--gold-a10), transparent 50%);
  padding: clamp(74px, 10vw, 118px) 0;
}
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact__p { font-weight: 300; font-size: 16px; line-height: 1.8; color: var(--body-dark-2); margin-top: 22px; max-width: 42ch; }
.contact__details { margin-top: 40px; display: flex; flex-direction: column; gap: 22px; }
.email .at { color: var(--gold); }
.email--plain .at { color: inherit; }
a.email:hover { color: var(--gold-light); }

.form-card { background: var(--ink-raised); border: 1px solid var(--gold-a25); padding: clamp(28px, 3vw, 40px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__label { display: block; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--meta-dark-1); margin-bottom: 9px; }
.form__input {
  width: 100%; background: var(--ink); border: 1px solid var(--field-border); color: var(--cream-2);
  padding: 13px 14px; font-size: 15px; font-weight: 300; outline: none; border-radius: 0;
  transition: border-color .25s ease;
}
.form__input:focus { border-color: var(--gold); }
.form__input.is-invalid { border-color: #a4523c; }
.form__select { color: #cfc7bb; -webkit-appearance: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #9a9388 50%), linear-gradient(135deg, #9a9388 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.form__select option { background: var(--ink); color: var(--cream-2); }
.form__textarea { resize: vertical; min-height: 110px; }
.form__error { font-size: 12.5px; color: #d4886f; margin-top: 14px; font-weight: 300; }
.form__noscript { font-size: 14px; color: var(--body-dark-2); font-weight: 300; line-height: 1.7; margin-bottom: 20px; }
.form__submit {
  margin-top: 24px; width: 100%; background: var(--gold); color: var(--ink);
  padding: 16px; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500;
  transition: background .25s ease;
}
.form__submit:hover { background: var(--gold-light); }

.form-done { text-align: center; padding: 50px 20px; }
.form-done__tick {
  width: 54px; height: 54px; border: 1px solid var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 24px;
}
.form-done__tick span { font-family: var(--serif); font-size: 28px; color: var(--gold-light); }
.form-done__h3 { font-family: var(--serif); font-size: 30px; font-weight: 500; color: var(--cream-2); }
.form-done__p { font-weight: 300; font-size: 15px; color: var(--body-dark-2); margin-top: 12px; line-height: 1.7; }
.form-done__fallback { font-size: 13.5px; color: var(--meta-dark-1); margin-top: 18px; }
.form-done__fallback a { color: var(--cream-dim); border-bottom: 1px solid var(--gold-a30); }
.form-done__fallback a:hover { color: var(--gold-light); }

/* ---------- Footer ---------- */
.footer { background: var(--ink-deep); padding: 64px 0 36px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 46px; border-bottom: 1px solid var(--gold-a18); }
.footer__blurb { font-weight: 300; font-size: 14px; line-height: 1.75; color: var(--meta); max-width: 34ch; }
.footer__h { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 18px; }
.footer__links { display: flex; flex-direction: column; gap: 11px; font-weight: 300; font-size: 14px; color: var(--meta-dark-3); }
.footer__links a { transition: color .25s ease; }
.footer__links a:hover { color: var(--gold-light); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 24px; }
.footer__legal { font-size: 11.5px; letter-spacing: .06em; color: var(--footer-meta); }
.footer__tag { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--footer-meta); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(14,12,10,.94);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 24px; cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
/* Fixed-height stage so the controls below sit at the same spot for every photo. */
.lightbox { --lb-h: 74vh; }
.lightbox__stage { position: relative; width: 100%; max-width: 1180px; height: var(--lb-h); display: flex; align-items: center; justify-content: center; }
.lightbox__stage picture { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
/* The image hugs its own aspect inside the stage so the drop-shadow follows its real edges.
   max-height is in vh (not %) because the <picture> wrapper has no definite height. */
.lightbox__img {
  display: block; width: auto; height: auto; max-width: 100%; max-height: var(--lb-h);
  filter: drop-shadow(0 40px 90px rgba(0,0,0,.9)); cursor: default;
}
.lightbox__controls { display: flex; align-items: center; gap: 26px; margin-top: 26px; cursor: default; }
.lightbox__btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(242,236,224,.3);
  background: transparent; color: var(--cream-3); font-size: 19px;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s ease, border-color .25s ease;
}
.lightbox__btn:hover { background: rgba(242,236,224,.14); border-color: rgba(242,236,224,.6); }
.lightbox__caption { text-align: center; min-width: 220px; }
.lightbox__title { font-family: var(--serif); font-size: 23px; color: var(--cream-3); line-height: 1.2; }
.lightbox__count { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-top: 7px; }
.lightbox__close { position: absolute; top: 26px; right: 30px; width: 42px; height: 42px; font-size: 17px; border-color: rgba(242,236,224,.25); }
body.lightbox-open { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .work__grid { grid-template-columns: repeat(2, 1fr); }
  .intro__grid, .about__grid, .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .about__grid > div:first-child { max-width: 440px; }
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .phase { padding: 30px 22px 30px 22px; }
  .phase:nth-child(odd) { padding-left: 0; }
  .phase:nth-child(even) { padding-right: 0; border-right: 0; }
  .phase:nth-child(-n+2) { border-bottom: 1px solid var(--rule-warm); }
  .services__head { max-width: none; }
}

@media (max-width: 900px) {
  .spotlight__grid { grid-template-columns: 1fr; }
  .spotlight__media { min-height: 0; aspect-ratio: 16 / 10; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .drawer[hidden] { display: none; }
}
@media (min-width: 861px) {
  .drawer { display: none !important; }
}

@media (max-width: 760px) {
  .services__grid { grid-template-columns: 1fr; }
  .service { padding: 32px 0 !important; border-right: 0 !important; border-bottom: 1px solid var(--gold-a22) !important; }
  .service:last-child { border-bottom: 0 !important; }
}

@media (max-width: 640px) {
  :root { --gutter: 22px; }
  .work__grid { grid-template-columns: 1fr; }
  .process__grid { grid-template-columns: 1fr; }
  .phase { padding: 28px 0 !important; border-right: 0 !important; border-bottom: 1px solid var(--rule-warm); }
  .phase:last-child { border-bottom: 0; }
  .creds { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; gap: 18px; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__content { padding-top: 130px; padding-bottom: 44px; }
  .lightbox { padding: 24px 12px; }
  .lightbox { --lb-h: 62vh; }
  .lightbox__close { top: 14px; right: 14px; }
  .lightbox__caption { min-width: 0; flex: 1; }
  .lightbox__controls { width: 100%; max-width: 420px; justify-content: space-between; gap: 12px; }
}

@media (max-width: 500px) {
  .hero__stat { min-width: 100%; }
  .hero__stat--second { border-left: 0; padding-left: 0; padding-top: 0; }
}

@media (max-height: 480px) and (orientation: landscape) {
  .lightbox { padding: 12px; }
  .lightbox { --lb-h: 58vh; }
  .lightbox__controls { margin-top: 10px; }
}

/* Touch targets: enlarge the small card arrows */
@media (pointer: coarse) {
  .card__nav { width: 44px; height: 44px; font-size: 18px; }
  .dot { width: 9px; height: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide, .header, .drawer { transition: none; }
  .portrait__img--cycle { animation: none; }
}
