/* ============================================================
   TEXAS 1ST SERVICES — SITE STYLES (v4)
   Editorial, image-led redesign.
   Palette: warm white canvas, charcoal ink, deep green contrast
   sections, logo red as a restrained accent only.
   Type: Fraunces (display serif) + Archivo (body/UI sans).
   Content is visible by default. Motion only enhances.
   ============================================================ */

:root {
  --bg: #FAF8F4;        /* warm white canvas */
  --white: #FFFFFF;
  --ink: #23272A;       /* charcoal */
  --ink-soft: #596062;
  --green: #203C32;     /* deep green */
  --green-2: #2B4E42;
  --red: #E9342A;       /* sampled from logo */
  --red-text: #C42B22;  /* deeper red, AA on light */
  --sand: #E3DFD4;      /* warm gray */
  --line: #E4DFD4;
  --radius: 4px;
  --radius-lg: 8px;
  --header-h: 88px;
  --header-h-compact: 68px;
  --ease: cubic-bezier(.33, .1, .25, 1);
  --t: 300ms;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h-compact) + 24px); }
body {
  margin: 0; font-family: var(--sans);
  font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-2); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  margin: 0; color: var(--ink); font-weight: 400;
  font-family: var(--serif);
  line-height: 1.05; letter-spacing: -.01em;
}
h1 { font-size: clamp(2.9rem, 7vw, 5.4rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); text-wrap: balance; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.2; }
p { margin: 0 0 1rem; }
.serif-i { font-style: italic; }

.container { width: min(1200px, 92%); margin-inline: auto; }
.container-wide { width: min(1440px, 94%); margin-inline: auto; }
.section { padding-block: clamp(3rem, 7.5vw, 6.5rem); }
.section-sm { padding-block: clamp(2.25rem, 5vw, 4rem); }

/* section label: thin red rule + uppercase */
.label {
  display: flex; align-items: center; gap: .9rem;
  font-family: var(--sans);
  font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 1.2rem;
}
.label::before { content: ""; width: 36px; height: 2px; background: var(--red); flex: none; }
.label .num { color: var(--ink); }
.on-dark .label { color: rgba(250,248,244,.66); }
.on-dark .label .num { color: #fff; }

.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 38rem; }
.lede-lg { font-size: clamp(1.2rem, 2vw, 1.4rem); color: var(--ink-soft); max-width: 42rem; }

/* ---------- a11y ---------- */
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 300; background: var(--ink); color: #fff; padding: .7rem 1.2rem; border-radius: var(--radius); transition: top .2s; }
.skip-link:focus { top: 1rem; color: #fff; }
.visually-hidden, .hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans); font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  padding: .85rem 1.5rem; border-radius: var(--radius);
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.btn-lg { padding: 1rem 1.8rem; font-size: 1rem; }
.btn .arrow { transition: transform var(--t) var(--ease); display: inline-block; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-red { background: #D62B21; color: #FFFFFF; border-color: #D62B21; }
.btn-red:hover { background: #B92218; color: #fff; }
.on-dark .btn-red, .hero .btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.on-dark .btn-red:hover, .hero .btn-red:hover { background: #fff; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.hero .btn-ghost, .on-dark .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.hero .btn-ghost:hover, .on-dark .btn-ghost:hover { background: #fff; color: var(--ink); }
.text-link { font-weight: 700; color: var(--red-text); text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; font-size: .95rem; }
.text-link .arrow { transition: transform var(--t) var(--ease); display: inline-block; }
.text-link:hover { color: var(--ink); }
.text-link:hover .arrow { transform: translateX(4px); }
.on-dark .text-link { color: #fff; }
.on-dark .text-link:hover { color: rgba(255,255,255,.8); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(250,248,244,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(35,39,42,.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); transition: min-height var(--t) var(--ease); }
.scrolled .header-inner { min-height: var(--header-h-compact); }
.brand img { height: clamp(42px, 5vw, 54px); width: auto; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 24px; height: 2px; background: var(--ink); content: ""; position: relative;
  transition: transform var(--t) var(--ease), background-color var(--t) var(--ease);
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
.main-nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.2rem); }
.nav-link { font-weight: 600; font-size: .93rem; letter-spacing: .02em; text-decoration: none; color: var(--ink); padding: .35rem 0; border-bottom: 2px solid transparent; }
.nav-link:hover { color: var(--red-text); }
.nav-link[aria-current="page"] { border-bottom-color: var(--red); }
.header-cta { margin-left: .5rem; }
.header-cta .btn { padding: .7rem 1.15rem; font-size: .88rem; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 92svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(35,39,42,.18) 0%, rgba(35,39,42,0) 34%, rgba(35,39,42,.46) 78%, rgba(32,60,50,.62) 100%);
}
.hero-content { position: relative; z-index: 2; padding-block: clamp(3rem, 8vh, 5.5rem); max-width: 46rem; }
.hero .tag {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #fff;
  margin-bottom: 1.3rem;
}
.hero .tag::before { content: ""; width: 34px; height: 2px; background: var(--red); }
.hero h1 { color: #fff; margin-bottom: 1.2rem; }
.hero h1 .accent { font-style: italic; color: #F6F1E7; }
.hero .sub { color: rgba(255,255,255,.92); font-size: clamp(1.05rem, 1.8vw, 1.25rem); max-width: 34rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-note {
  position: absolute; right: 1.2rem; bottom: 1rem; z-index: 3;
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.62);
}
.hero-scroll {
  position: absolute; left: 50%; bottom: 1.2rem; transform: translateX(-50%); z-index: 3;
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.72);
  display: inline-flex; flex-direction: column; align-items: center; gap: .5rem; text-decoration: none;
}
.hero-scroll::after { content: ""; width: 1px; height: 34px; background: rgba(255,255,255,.5); }
@media (max-width: 700px) { .hero-scroll { display: none; } }

/* ---------- Intro (editorial two-col) ---------- */
.intro { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.intro-media { overflow: hidden; border-radius: var(--radius-lg); }
.intro-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 500ms var(--ease); }
.intro-media:hover img { transform: scale(1.03); }
.intro h2 em { font-style: italic; color: var(--green); }

/* ---------- Featured project (sticky summary + scrolling photos) ---------- */
.feature-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.feature { background: var(--white); border-block: 1px solid var(--line); }
.home-projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
.hp-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.hp-media { overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 4 / 3; background: var(--sand); margin-bottom: 1.1rem; }
.hp-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.hp-card:hover .hp-media img { transform: scale(1.03); }
.hp-meta { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .5rem; }
.hp-card h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); margin-bottom: .45rem; }
.hp-card p { color: var(--ink-soft); margin: 0 0 .9rem; flex: 1; }

/* ---------- Services composition: 2 large features + compact grid ---------- */
.svc-features { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-bottom: 1.4rem; }
.svc-feature { position: relative; overflow: hidden; border-radius: var(--radius-lg); min-height: clamp(320px, 34vw, 460px); display: flex; align-items: flex-end; color: #fff; text-decoration: none; }
.svc-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.svc-feature:hover img { transform: scale(1.03); }
.svc-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(35,39,42,0) 38%, rgba(35,39,42,.78) 100%); }
.svc-feature-body { position: relative; z-index: 2; padding: clamp(1.2rem, 2.6vw, 2rem); }
.svc-feature-body .n { font-size: .72rem; font-weight: 700; letter-spacing: .16em; color: rgba(255,255,255,.75); display: block; margin-bottom: .4rem; }
.svc-feature-body h3 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: .5rem; }
.svc-feature-body p { color: rgba(255,255,255,.86); font-size: .98rem; margin: 0 0 .8rem; max-width: 30rem; }
.svc-feature-body .text-link { color: #fff; }
.svc-feature-body .text-link:hover { color: rgba(255,255,255,.78); }

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.svc { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: inherit; transition: border-color var(--t) var(--ease), transform var(--t) var(--ease); }
.svc:hover { border-color: var(--ink); transform: translateY(-3px); }
.svc-media { overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand); position: relative; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 450ms var(--ease); }
.svc:hover .svc-media img { transform: scale(1.03); }
.svc-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.svc-body .n { font-size: .72rem; font-weight: 700; letter-spacing: .14em; color: var(--red-text); }
.svc-body h3 { font-size: 1.3rem; }
.svc-body p { font-size: .93rem; color: var(--ink-soft); margin: 0; flex: 1; line-height: 1.55; }
.svc-body .text-link { font-size: .88rem; align-self: flex-start; margin-top: .4rem; }
.illus-note { font-size: .78rem; color: var(--ink-soft); margin-top: 1.4rem; }

/* ---------- Breathing moment (full-bleed) ---------- */
.moment { position: relative; }
.moment-media { overflow: hidden; border-radius: var(--radius-lg); max-width: min(760px, calc(100% - 2.5rem)); margin: 0 auto; }
.moment-media img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 64%; }
.moment .container { justify-content: center; }
.moment figcaption { text-align: center; }
.moment figcaption { padding: .9rem 0 0; font-size: .82rem; color: var(--ink-soft); letter-spacing: .04em; }
.moment .container { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }

/* ---------- Process (sticky intro + steps) ---------- */
.process { background: var(--white); border-block: 1px solid var(--line); }
.process-body { display: grid; grid-template-columns: minmax(280px, 5fr) 7fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.process-intro { position: sticky; top: calc(var(--header-h-compact) + 32px); }
.process-intro .lede { margin-bottom: 1.4rem; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 3.4rem 1fr; gap: 1.2rem; padding-block: clamp(1.3rem, 2.4vw, 1.8rem); border-top: 1px solid var(--line); transition: opacity var(--t) var(--ease); opacity: .55; }
.steps li.current { opacity: 1; }
.steps .snum { font-family: var(--serif); font-size: 1.7rem; color: var(--ink-soft); line-height: 1; transition: color var(--t) var(--ease); }
.steps li.current .snum { color: var(--red-text); }
.steps h3 { margin-bottom: .4rem; }
.steps p { color: var(--ink-soft); margin: 0; max-width: 34rem; }

/* ---------- Why Texas 1st (deep green) ---------- */
.why { background: var(--green); color: #F5F2EA; }
.why-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.why-media { overflow: hidden; border-radius: var(--radius-lg); }
.why-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 500ms var(--ease); }
.why-media:hover img { transform: scale(1.03); }
.why h2 { color: #fff; margin-bottom: 1.4rem; }
.why h2 em { font-style: italic; }
.why-list { list-style: none; margin: 0; padding: 0; }
.why-list li { display: grid; grid-template-columns: 2.8rem 1fr; gap: .7rem; padding-block: 1.05rem; border-top: 1px solid rgba(250,248,244,.16); }
.why-list li:last-child { border-bottom: 1px solid rgba(250,248,244,.16); }
.why-list .k { font-size: .72rem; font-weight: 700; color: #FF6B62; letter-spacing: .14em; padding-top: .3rem; }
.why-list strong { display: block; color: #fff; font-family: var(--serif); font-weight: 500; font-size: 1.15rem; margin-bottom: .1rem; }
.why-list span { color: rgba(245,242,234,.76); font-size: .96rem; }

/* ---------- Service area ---------- */
.area { text-align: center; }
.area h2 { margin-bottom: 1rem; }
.area p { color: var(--ink-soft); font-size: 1.1rem; max-width: 42rem; margin-inline: auto; }
.area .map-note { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-top: 1.6rem; }

/* ---------- Homepage inquiry (contact invitation) ---------- */
.invite { background: var(--bg); border-top: 1px solid var(--line); }
.invite-head { max-width: 44rem; margin-bottom: 2.4rem; }
.invite-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3.5vw, 2.4rem); }
.invite-side p { color: var(--ink-soft); }
.invite-side .divider { border-top: 1px solid var(--line); margin-block: 1.6rem; }
.direct-contact a { color: var(--ink); font-weight: 700; text-decoration: none; }
.direct-contact a:hover { color: var(--red-text); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; }
.field label .hint { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: .8rem .9rem; transition: border-color var(--t) var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); background: var(--white); }
.field textarea { min-height: 130px; resize: vertical; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red-text); background: #FDF4F2; }
.error-text { color: var(--red-text); font-size: .84rem; min-height: 1em; }
.req { color: var(--red-text); }
.file-preview { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.file-preview img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.spinner { display: none; width: 1em; height: 1em; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; margin-right: .5rem; animation: spin .8s linear infinite; }
button[data-loading="true"] .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } }

.status-panel { border-radius: var(--radius); padding: 1.05rem 1.2rem; font-size: .95rem; }
.status-ok { background: #EEF3EE; border: 1px solid #BBD3BB; color: #1E3D2E; }
.status-error { background: #FDF0EE; border: 1px solid #E7B7B2; color: #8A241C; }
.status-title { display: block; font-weight: 700; margin-bottom: .2rem; }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding-top: calc(var(--header-h) + clamp(2rem, 5vw, 3.5rem)); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.5rem, 5.5vw, 4.2rem); max-width: 20ch; margin-bottom: 1rem; text-wrap: balance; }

/* ---------- Services page rows ---------- */
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(2.2rem, 4.5vw, 3.6rem); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h-compact) + 20px); }
.svc-row:last-of-type { border-bottom: 0; }
.svc-row-media { overflow: hidden; border-radius: var(--radius-lg); }
.svc-row-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 500ms var(--ease); }
.svc-row-media:hover img { transform: scale(1.03); }
.svc-row h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: .8rem; }
.svc-row p { color: var(--ink-soft); max-width: 33rem; }
.svc-row .svc-points { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.svc-row .svc-points li { padding-left: 1.4rem; position: relative; color: var(--ink-soft); font-size: .98rem; margin-bottom: .4rem; }
.svc-row .svc-points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 2px; background: var(--red); }

/* ---------- Our Work ---------- */
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.project-grid .project-card:first-child { grid-column: 1 / -1; }
.project-card { display: block; text-decoration: none; color: inherit; }
.project-card .pc-media { overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 4 / 3; background: var(--sand); }
.project-grid .project-card:first-child .pc-media { aspect-ratio: 21 / 10; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.project-card:hover img { transform: scale(1.03); }
.project-card h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 1.1rem 0 .4rem; }
.project-card p { color: var(--ink-soft); margin: 0 0 .6rem; }
.project-back { display: inline-block; margin-bottom: 1.6rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.gallery-grid img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); cursor: zoom-in; }
.gallery-grid img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.project-meta { display: flex; flex-wrap: wrap; gap: .6rem 2.5rem; margin: 1.6rem 0 0; }
.project-meta dt { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.project-meta dd { margin: .15rem 0 0; font-weight: 600; }
.project-cta { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 2rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; }
.project-cta h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(20, 24, 22, .94); display: none; align-items: center; justify-content: center; padding: 2.5rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 100%); max-height: 82vh; border-radius: var(--radius-lg); }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.4); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }

/* ---------- Contact page ---------- */
.contact-wrap { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.2rem, 2.5vw, 1.8rem); margin-bottom: 1.3rem; }
.contact-box h2 { font-size: 1.4rem; margin-bottom: .8rem; }
.contact-row { display: grid; grid-template-columns: 90px 1fr; gap: .6rem; padding-block: .5rem; align-items: baseline; }
.contact-row dt { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.contact-row dd { margin: 0; font-weight: 600; }
.contact-row a { color: var(--ink); text-decoration: none; }
.contact-row a:hover { color: var(--red-text); }
.next-steps { margin: 0; padding-left: 1.2rem; }
.next-steps li { margin-bottom: .5rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(250,248,244,.78); margin-top: clamp(3rem, 6vw, 5rem); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.footer-logo img { height: 44px; width: auto; margin-bottom: 1rem; }
.footer-tag { font-size: .95rem; max-width: 26rem; }
.site-footer h3 { color: #fff; font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a, .footer-contact a { color: rgba(250,248,244,.78); text-decoration: none; font-size: .95rem; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact p { margin-bottom: .55rem; font-size: .95rem; }
.footer-bottom { border-top: 1px solid rgba(250,248,244,.14); padding-block: 1.2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; font-size: .82rem; color: rgba(250,248,244,.55); }

/* ---------- Reveal & motion (fail-safe: visible by default) ---------- */
.js-motion .reveal { opacity: 0; transform: translateY(18px); }
.js-motion .reveal.in { opacity: 1; transform: none; transition: opacity 650ms var(--ease), transform 650ms var(--ease); }
.js-motion .reveal[data-delay="1"].in { transition-delay: 90ms; }
.js-motion .reveal[data-delay="2"].in { transition-delay: 180ms; }
.js-motion .reveal[data-delay="3"].in { transition-delay: 270ms; }
/* mask reveal (hero image + featured main only) */
/* hero image depth */
.js-motion .hero-media img { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js-motion .reveal { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .intro, .why-grid, .invite-grid, .contact-wrap { grid-template-columns: 1fr; }
  .home-projects { grid-template-columns: 1fr; }
  .process-body { grid-template-columns: 1fr; }
  .process-intro { position: static; }
  .steps li { opacity: 1; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 0 0 auto 0; top: 0; padding: calc(var(--header-h) + 1rem) 6% 2rem;
    background: var(--bg); flex-direction: column; align-items: flex-start; gap: 1.2rem;
    border-bottom: 1px solid var(--line); transform: translateY(-100%); transition: transform 320ms var(--ease);
    z-index: -1; visibility: hidden;
  }
  .main-nav.open { transform: translateY(0); visibility: visible; z-index: 150; }
  .main-nav .nav-link { font-size: 1.15rem; }
  .header-cta { margin: 0; }
  .nav-toggle[aria-expanded="true"] span { background: transparent; }
  .nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 640px) {
  .svc-features { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .project-grid, .gallery-grid, .home-projects { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 88svh; }
  .hero-media img { object-position: 58% 60%; }
}

/* ---------- Misc compat ---------- */
.svc-row:nth-of-type(even) .svc-row-media { order: 2; }
.invite-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.invite .phone { color: var(--ink); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 2px; }
@media (max-width: 640px) { .svc-row:nth-of-type(even) .svc-row-media { order: 0; } }
.contact-side { min-width: 0; }

/* ---------- Hero slideshow ---------- */
.hero-media { overflow: hidden; background: #23272A; }
.hero-media .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1600ms ease-in-out; }
.hero-media .slide.is-active { opacity: 1; z-index: 1; }
.hero-media .slide.is-active img { animation: heroDrift 7.5s ease-out forwards; }
.hero-media .slide:nth-child(even) img { transform-origin: 40% 55%; }
.hero-media .slide:nth-child(3n) img { transform-origin: 60% 45%; }
@keyframes heroDrift { from { transform: scale(1); } to { transform: scale(1.06); } }
.slideshow-paused .hero-media .slide.is-active img { animation-play-state: paused; }
.hero-controls { position: absolute; left: 0; right: 0; bottom: 1.1rem; z-index: 3; width: min(1200px, 92%); margin-inline: auto; display: flex; align-items: center; gap: .9rem; pointer-events: none; }
.hero-controls > * { pointer-events: auto; }
.slide-toggle { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.7); background: rgba(35,39,42,.35); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background-color var(--t) var(--ease); }
.slide-toggle:hover { background: rgba(35,39,42,.7); }
.ic-pause { width: 10px; height: 12px; border-left: 3px solid #fff; border-right: 3px solid #fff; display: block; }
.slide-toggle[aria-pressed="true"] .ic-pause { width: 0; height: 0; border: 0; border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.slide-dots { display: flex; gap: .45rem; }
.slide-dots i { width: 22px; height: 3px; background: rgba(255,255,255,.4); display: block; transition: background-color 400ms ease; }
.slide-dots i.on { background: #fff; }
@media (max-width: 640px) { .hero-media img { object-position: 50% 50%; } .hero-note { bottom: 3.2rem; } }
@media (prefers-reduced-motion: reduce) {
  .hero-media .slide { transition-duration: 1ms; }
  .hero-media .slide.is-active img { animation: none; }
}

/* left-side legibility scrim: keeps hero text readable on bright slides */
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(25,29,31,.50) 0%, rgba(25,29,31,.30) 38%, rgba(25,29,31,0) 68%); }
@media (max-width: 640px) { .hero::before { background: linear-gradient(180deg, rgba(25,29,31,.1) 0%, rgba(25,29,31,.45) 55%, rgba(25,29,31,.62) 100%); } }

/* ---------- Brand statement ---------- */
.motto { margin: .3rem 0 .5rem; line-height: 1.2; }
.motto strong { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(1.3rem, 1.9vw, 1.55rem); letter-spacing: .005em; }
.motto span { display: block; margin-top: .3rem; font-family: var(--sans); font-size: .92rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.hero .motto strong { color: #FAF8F4; text-shadow: 0 1px 12px rgba(25,29,31,.35); }
.hero .motto span { color: #FAF8F4; }
.page-head .motto { margin-top: 1.1rem; }
.page-head .motto strong { color: var(--ink); }
.page-head .motto span { color: var(--ink-soft); }
.footer-motto { margin: 0 0 1rem; max-width: 26rem; line-height: 1.2; }
.footer-motto strong { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(1.25rem, 2vw, 1.45rem); color: #FAF8F4; }
.footer-motto span { display: block; margin-top: .3rem; font-family: var(--sans); font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(250,248,244,.62); }
.footer-tag { margin-top: 0; }
