/* ═══════════════════════════════════════════════════════════
   GS CONSTRUCTION LLC — gsbuild.co
   Legacy Craft. Capital Scale.
   ═══════════════════════════════════════════════════════════ */

/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --bg:           #080807;
  --surface:      #111110;
  --surface-2:    #1a1918;
  --text:         #ede9e2;
  --text-muted:   #8a847c;
  --text-dim:     #4a4641;   /* decorative only — numerals, hairline labels */
  --border:       #1e1c1a;
  --border-light: #2a2826;
  --accent:       #b8965a;
  --accent-dim:   rgba(184,150,90,0.1);
  --accent-hover: #cca96e;
  --danger:       #b0604f;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h:        68px;
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

::selection { background: var(--accent); color: var(--bg); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Cross-document page transitions (progressive enhancement) */
@view-transition { navigation: auto; }

/* Grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px;
}

/* ─── SKIP LINK ──────────────────────────────────────────── */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 1001;
  background: var(--accent);
  color: var(--bg);
  padding: 10px 18px;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ─── NAV ────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: var(--nav-h);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(8,8,7,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.nav-logo-main {
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.nav-logo-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1;
  white-space: nowrap;
}
.nav-logo-llc {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 400;
}
.nav-logo-sub {
  font-size: 0.55rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}
.nav-links a {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 400;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }
.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 22px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--accent); color: var(--bg); }

/* Burger (mobile only) */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  padding: 0 8px;
  margin-right: -8px;
}
.nav-burger-line {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav-burger.open .nav-burger-line:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-burger.open .nav-burger-line:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

/* ─── MOBILE MENU ────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 890;
  background: rgba(8,8,7,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 32px) 32px 40px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.mobile-menu-links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1.1;
  color: var(--text);
  transition: color 0.2s;
}
.mobile-menu-links a:hover,
.mobile-menu-links a[aria-current="page"] { color: var(--accent); }
.mobile-menu-num {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
}
.mobile-menu-cta {
  margin-top: 36px;
  justify-content: center;
}
.mobile-menu-foot {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.mobile-menu-foot a { color: var(--accent); }
.mobile-menu.open .mobile-menu-links li {
  animation: menuItem 0.5s var(--ease-out) both;
}
.mobile-menu.open .mobile-menu-links li:nth-child(2) { animation-delay: 0.05s; }
.mobile-menu.open .mobile-menu-links li:nth-child(3) { animation-delay: 0.1s; }
.mobile-menu.open .mobile-menu-links li:nth-child(4) { animation-delay: 0.15s; }
@keyframes menuItem {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
body.menu-open { overflow: hidden; }

/* ─── HERO (full-bleed) ──────────────────────────────────── */
.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-top: var(--nav-h);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(0.85) contrast(1.04);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(8,8,7,0.96) 0%,
    rgba(8,8,7,0.82) 40%,
    rgba(8,8,7,0.38) 75%,
    rgba(8,8,7,0.2) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 48px 96px;
  max-width: 680px;
  min-width: 0;
  overflow: hidden;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}
.hero-eyebrow-line { width: 36px; height: 1px; background: var(--accent); }
.hero-eyebrow span {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6vw, 6rem);
  font-weight: 300;
  line-height: 1.02;
  color: var(--text);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}
.hero-headline em { font-style: italic; color: var(--accent); }
.hero-subhead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 48px;
  font-weight: 300;
}
.hero-actions {
  display: flex;
  gap: 24px;
  align-items: center;
}
.hero-scroll {
  position: absolute;
  bottom: 36px;
  right: 48px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
.hero-scroll-label {
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  writing-mode: vertical-rl;
}
@keyframes scrollLine {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* Slow settle on the hero image — translate (parallax) composes on the wrapper */
@media (prefers-reduced-motion: no-preference) {
  .hero-bg img { animation: heroSettle 1.8s var(--ease-out) both; }
}
@keyframes heroSettle {
  from { transform: scale(1.045); }
  to   { transform: scale(1); }
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  font-family: var(--font-body);
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-primary[disabled] { opacity: 0.55; pointer-events: none; }
.btn-block { width: 100%; justify-content: center; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 400;
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--text); }
.btn-ghost svg { transition: transform 0.2s; }
.btn-ghost:hover svg { transform: translateX(3px); }

/* ─── STATS STRIP ────────────────────────────────────────── */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.stats-strip-item {
  padding: 48px 48px;
  border-right: 1px solid var(--border);
}
.stats-strip-item:last-child { border-right: none; }
.stats-strip-num {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1;
  margin-bottom: 10px;
}
.stats-strip-num sup { font-size: 1.4rem; color: var(--accent); vertical-align: super; }
.stats-strip-label {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ─── SECTION BASICS ─────────────────────────────────────── */
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.section-eyebrow-line { width: 28px; height: 1px; background: var(--accent); flex-shrink: 0; }
.section-eyebrow span {
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text);
}
.section-title em { font-style: italic; color: var(--accent); }
.section-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  font-weight: 300;
}

/* ─── ABOUT STRIP ────────────────────────────────────────── */
.about-strip {
  border-top: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
}
.about-strip-left { padding: 96px 64px 96px 48px; }
.about-strip-divider { background: var(--border); }
.about-strip-right {
  padding: 96px 48px 96px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
}
.about-pillar { display: grid; grid-template-columns: 36px 1fr; gap: 16px; align-items: start; }
.about-pillar-num { font-family: var(--font-display); font-size: 0.85rem; color: var(--accent); padding-top: 2px; }
.about-pillar-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.about-pillar-body { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }

/* ─── PHOTO BREAK ────────────────────────────────────────── */
.photo-break {
  position: relative;
  height: 440px;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.photo-break > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: grayscale(1) contrast(1.06) brightness(0.95);
}
/* Extra bleed so the parallax drift never exposes an edge */
[data-drift] > img { height: 116%; top: -8%; bottom: auto; }
.photo-break-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8,8,7,0.55);
}
.photo-break-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px;
  z-index: 2;
}
.photo-break-quote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.8rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  line-height: 1.2;
  max-width: 820px;
  margin-bottom: 20px;
}
.photo-break-accent {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ─── SERVICES (home) ────────────────────────────────────── */
.services-section { border-top: 1px solid var(--border); padding: 96px 48px; overflow: hidden; }
.services-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
  align-items: end;
}
.services-list { border-top: 1px solid var(--border); }
.service-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.service-item.fade-up,
.service-item.fade-up.visible {
  transition:
    background 0.7s ease,
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}
.service-item::before {
  content: '';
  position: absolute;
  left: -48px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 0;
  background: var(--accent);
  transition: height 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.service-item:hover { background: rgba(201,168,76,0.04); }
.service-item:hover::before { height: 100%; }
.service-item-name {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.2;
  transition: color 0.7s ease;
}
.service-item:hover .service-item-name { color: var(--text); }
.service-item-label {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  opacity: 0.55;
  transition: opacity 0.7s ease;
}
.service-item:hover .service-item-label { opacity: 1; }
.service-item-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  transition: color 0.7s ease;
}
.service-item:hover .service-item-desc { color: var(--text); }

/* ─── PROCESS ────────────────────────────────────────────── */
.process-section {
  border-top: 1px solid var(--border);
  padding: 96px 48px;
  background: var(--surface);
}
.process-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 72px;
}
.process-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.process-step {
  padding: 0 36px 8px 28px;
  border-left: 1px solid var(--border);
}
.process-step:last-child { padding-right: 0; }
.process-num {
  display: block;
  position: relative;
  padding-top: 20px;
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 300;
  line-height: 1;
  color: var(--text-dim);
  transition: color 0.4s ease;
}
.process-num::before {
  content: '';
  position: absolute;
  top: 0; left: 2px;
  width: 28px; height: 1px;
  background: var(--accent);
}
.process-step:hover .process-num { color: var(--accent); }
.process-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
}
.process-body {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ─── AUTHORITY BAND ─────────────────────────────────────── */
.authority-band {
  background: var(--accent);
  padding: 64px 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
}
.authority-text {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 400;
  color: var(--bg);
  line-height: 1.2;
}
.authority-text strong { font-weight: 600; }
.authority-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border: 1.5px solid var(--bg);
  color: var(--bg);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  font-family: var(--font-body);
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.authority-btn:hover { background: var(--bg); color: var(--accent); }
.authority-btn:focus-visible { outline-color: var(--bg); }

/* ─── WHY GS ─────────────────────────────────────────────── */
.why-section {
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 360px 1fr;
}
.why-left {
  padding: 96px 48px;
  border-right: 1px solid var(--border);
  background: var(--surface);
}
.why-right { padding: 96px 64px; }
.why-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.why-item:first-child { border-top: 1px solid var(--border); }
.why-check {
  width: 18px; height: 18px;
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 3px;
}
.why-check svg { width: 9px; height: 9px; color: var(--accent); }
.why-item-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; color: var(--text); margin-bottom: 5px; }
.why-item-body { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }

/* ─── FOOTER ─────────────────────────────────────────────── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 72px 48px 36px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}
.footer-brand-name { font-family: var(--font-display); font-size: 1.3rem; color: var(--text); margin-bottom: 4px; }
.footer-tagline { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.footer-brand-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.65; }
.footer-col-title { font-size: 0.58rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 18px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.875rem; color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-address { color: var(--text-muted); font-size: 0.875rem; line-height: 1.6; font-style: normal; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 0.7rem; color: var(--text-muted); }

/* ─── ABOUT PAGE ─────────────────────────────────────────── */
.about-hero {
  min-height: 60vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: var(--nav-h);
}
.about-hero-left {
  padding: 96px 64px 96px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--border);
}
.about-hero-right {
  /* Middle gray layer blends in saturation mode → monochrome photo */
  background-image:
    linear-gradient(rgba(8,8,7,0.55) 0%, rgba(8,8,7,0.75) 100%),
    linear-gradient(#8a8a8a, #8a8a8a),
    url("https://images.unsplash.com/photo-1543372654-b45dd90eeee5?w=900&q=80&auto=format&fit=crop");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-blend-mode: normal, saturation, normal;
  padding: 96px 48px 96px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-hero-stat-num {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 300;
  line-height: 1;
}
.about-hero-stat-label {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 8px;
}
.about-body-section {
  border-top: 1px solid var(--border);
  padding: 96px 48px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 80px;
}
.about-body-label {
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 6px;
}
.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 64px;
  background: var(--border);
}
.about-value { background: var(--bg); padding: 40px 36px; }
.about-value-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; color: var(--text); margin-bottom: 10px; }
.about-value-body { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }

/* ─── SERVICES PAGE ──────────────────────────────────────── */
.services-hero {
  padding: calc(var(--nav-h) + 80px) 48px 80px;
  border-bottom: 1px solid var(--border);
  background-image:
    linear-gradient(rgba(8,8,7,0.82) 0%, rgba(8,8,7,0.82) 100%),
    linear-gradient(#8a8a8a, #8a8a8a),
    url("https://images.unsplash.com/photo-1535732759880-bbd5c7265e3f?w=1440&q=80&auto=format&fit=crop");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-blend-mode: normal, saturation, normal;
}
.services-full-list { border-top: 1px solid var(--border); }
.service-row {
  display: grid;
  grid-template-columns: 72px 1fr 1fr;
  gap: 48px;
  padding: 56px 48px;
  border-bottom: 1px solid var(--border);
  align-items: start;
  transition: background 0.3s;
}
.service-row:hover { background: var(--surface); }
.service-row-num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 300; color: var(--text-dim); line-height: 1; }
.service-row-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; color: var(--text); line-height: 1.2; margin-bottom: 14px; }
.service-row-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }
.service-row-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.service-tag-pill { padding: 5px 12px; border: 1px solid var(--border-light); font-size: 0.58rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); }

/* ─── CONTACT PAGE ───────────────────────────────────────── */
.contact-hero {
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
  padding: 120px 48px 64px;
  border-bottom: 1px solid var(--border);
  background-image:
    linear-gradient(rgba(8,8,7,0.78) 0%, rgba(8,8,7,0.78) 100%),
    linear-gradient(#8a8a8a, #8a8a8a),
    url("https://images.unsplash.com/photo-1768396747960-ae6ba3c855bc?w=1440&q=80&auto=format&fit=crop");
  background-position: center 40%;
  background-size: cover;
  background-repeat: no-repeat;
  background-blend-mode: normal, saturation, normal;
}
.contact-body { display: grid; grid-template-columns: 1fr 1px 1fr; }
.contact-info { padding: 72px 56px 72px 48px; }
.contact-divider { background: var(--border); }
.contact-form-wrap { padding: 72px 48px 72px 56px; }
.contact-detail { margin-bottom: 36px; }
.contact-detail-label { font-size: 0.58rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.contact-detail-value { font-family: var(--font-display); font-size: 1.05rem; color: var(--text); line-height: 1.4; font-style: normal; }
.contact-detail-value a:hover { color: var(--accent); }
.contact-note {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 7px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-light);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  border-radius: 0;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-dim); }
.form-textarea { resize: vertical; min-height: 110px; }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a756e' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.form-select option { background: var(--surface-2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.form-success {
  margin-top: 20px;
  padding: 24px;
  border: 1px solid var(--accent);
  background: var(--accent-dim);
}
.form-success-title { font-family: var(--font-display); font-size: 1.2rem; color: var(--accent); margin-bottom: 6px; }
.form-success-body { font-size: 0.875rem; color: var(--text-muted); }
.form-error {
  margin-top: 20px;
  padding: 18px 22px;
  border: 1px solid rgba(176,96,79,0.55);
  background: rgba(176,96,79,0.1);
  font-size: 0.875rem;
  line-height: 1.6;
  color: #d8a89e;
}
.form-error a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.form-input.field-invalid,
.form-select.field-invalid,
.form-textarea.field-invalid {
  border-color: var(--danger);
  background-color: rgba(176,96,79,0.07);
}
.field-error {
  margin-top: 7px;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #d8a89e;
}
.field-error[hidden] { display: none; }

/* ─── FAQ ────────────────────────────────────────────────── */
.faq-section {
  border-top: 1px solid var(--border);
  padding: 96px 48px;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 80px;
  background: var(--surface);
}
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: transform 0.3s var(--ease-out), border-color 0.2s;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); border-color: var(--accent); }
.faq-answer {
  padding: 0 52px 28px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 680px;
}

/* ─── 404 ────────────────────────────────────────────────── */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: calc(var(--nav-h) + 48px) 48px 96px;
}
.error-code {
  font-family: var(--font-display);
  font-size: clamp(7rem, 20vw, 15rem);
  font-weight: 300;
  line-height: 0.9;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.error-code em { font-style: italic; color: var(--accent); }
.error-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  color: var(--text);
  margin-bottom: 16px;
}
.error-body {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 440px;
  margin-bottom: 40px;
  line-height: 1.7;
}

/* ─── SCROLL REVEALS ─────────────────────────────────────── */
/* Hidden state only applies once JS has booted (html.js) —
   without JS the site renders fully visible. */
.js .fade-up {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(3px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out), filter 0.75s var(--ease-out);
}
.js .fade-up.visible { opacity: 1; transform: none; filter: blur(0); }
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }

/* ─── MOTION: masked headline reveals ────────────────────── */
/* Lines rise from behind a baseline mask. Block padding gives
   serif ascenders/descenders room inside the overflow window;
   the negative margin cancels it so layout is unchanged. */
.js .reveal-lines.rl-ready .rl-line {
  display: block;
  overflow: hidden;
  padding-block: 0.14em;
  margin-block: -0.14em;
}
.js .reveal-lines.rl-ready .rl-inner {
  display: inline-block;
  transform: translateY(118%);
  transition: transform 1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 95ms);
  will-change: transform;
}
.js .reveal-lines.rl-ready.visible .rl-inner { transform: none; }

/* ─── MOTION: hairlines that draw themselves ─────────────── */
.js .fade-up .hero-eyebrow-line,
.js .fade-up .section-eyebrow-line {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.9s var(--ease-out) 0.15s;
}
.js .fade-up.visible .hero-eyebrow-line,
.js .fade-up.visible .section-eyebrow-line { transform: scaleX(1); }

/* Section top borders draw across on entry. The ::before is
   absolutely positioned, so grid hosts are unaffected. */
.js [data-line] { position: relative; border-top-color: transparent; }
.js [data-line]::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--border);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.4s var(--ease-out);
}
.js [data-line].lined::before { transform: scaleX(1); }

/* ─── MOTION: image unveils ──────────────────────────────── */
/* Clip lives on the child img — clipping the observed element
   itself would zero its intersection area and the reveal would
   never fire. */
.js [data-unveil] > img {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.5s var(--ease-out);
}
.js [data-unveil].unveiled > img { clip-path: inset(0 0 0 0); }

/* Background-image panels unveil via a retracting curtain. */
.about-hero-right { position: relative; }
.about-hero-right > div { position: relative; z-index: 1; }
.js .about-hero-right[data-unveil]::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg);
  transform-origin: right center;
  transition: transform 1.5s var(--ease-out);
}
.js .about-hero-right[data-unveil].unveiled::after { transform: scaleX(0); }

/* ─── MOTION: process steps ignite on scroll ─────────────── */
.js .process-num::before {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.8s var(--ease-out) 0.1s;
}
.js .process-step.lit .process-num::before { transform: scaleX(1); }
.process-num { transition: color 0.6s ease 0.2s; }
.js .process-step.lit .process-num { color: var(--accent); }
/* Cascade the ignition 01 → 04 */
.process-step:nth-child(2) .process-num,
.process-step:nth-child(2) .process-num::before { transition-delay: 0.3s; }
.process-step:nth-child(3) .process-num,
.process-step:nth-child(3) .process-num::before { transition-delay: 0.5s; }
.process-step:nth-child(4) .process-num,
.process-step:nth-child(4) .process-num::before { transition-delay: 0.7s; }

/* ─── MOTION: checkmarks draw in ─────────────────────────── */
.js .why-check polyline {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  transition: stroke-dashoffset 0.7s ease 0.3s;
}
.js .why-item.visible .why-check polyline { stroke-dashoffset: 0; }

/* ─── MOTION: smart nav ──────────────────────────────────── */
.site-nav {
  transition: transform 0.45s var(--ease-out), background-color 0.3s ease;
}
.site-nav.nav-hidden { transform: translateY(-100%); }
.site-nav:focus-within { transform: none; }
.site-nav.nav-scrolled { background: rgba(8,8,7,0.95); }

/* ─── MOTION: FAQ answer ease ────────────────────────────── */
.faq-item[open] .faq-answer { animation: faqIn 0.45s var(--ease-out); }
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ─── TEXTURE: drafting grid ─────────────────────────────── */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  background-image:
    linear-gradient(to right, rgba(237,233,226,0.5) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(237,233,226,0.5) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: linear-gradient(105deg, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 78%);
  mask-image: linear-gradient(105deg, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 78%);
}
.process-section {
  background-image:
    linear-gradient(to right, rgba(237,233,226,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(237,233,226,0.025) 1px, transparent 1px);
  background-size: 96px 96px;
}
.mobile-menu {
  background-image:
    linear-gradient(to right, rgba(237,233,226,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(237,233,226,0.03) 1px, transparent 1px);
  background-size: 96px 96px;
}

/* ─── DETAIL: service row hover arrow ────────────────────── */
@media (min-width: 961px) {
  .service-item { padding-right: 64px; }
  .service-item::after {
    content: '→';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%) translateX(-12px);
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--accent);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s var(--ease-out);
  }
  .service-item:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

/* ─── DETAIL: authority button arrow nudge ───────────────── */
.authority-btn svg { transition: transform 0.25s var(--ease-out); }
.authority-btn:hover svg { transform: translateX(3px); }

/* ─── REDUCED MOTION ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .fade-up { opacity: 1; transform: none; filter: none; }
  .js .reveal-lines .rl-inner { transform: none; }
  .js [data-line]::before { transform: scaleX(1); }
  .js [data-unveil] > img { clip-path: none; }
  .js .about-hero-right[data-unveil]::after { transform: scaleX(0); }
  .js .process-num::before { transform: scaleX(1); }
  .js .why-check polyline { stroke-dashoffset: 0; }
  .js .fade-up .hero-eyebrow-line,
  .js .fade-up .section-eyebrow-line { transform: scaleX(1); }
  .site-nav.nav-hidden { transform: none; }
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 960px) {
  .site-nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-cta { font-size: 0.55rem; padding: 7px 12px; }
  .hero-content { padding: 64px 24px 80px; width: 100%; max-width: 100%; }
  .hero-overlay { background: linear-gradient(180deg, rgba(8,8,7,0.75) 0%, rgba(8,8,7,0.88) 60%, rgba(8,8,7,0.95) 100%); }
  .hero-subhead { color: var(--text); opacity: 0.75; }
  .btn-primary, .btn-ghost { white-space: nowrap; font-size: 0.58rem; }
  .hero-scroll { display: none; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .stats-strip-item { padding: 40px 24px; }
  .stats-strip-item:last-child { border-top: 1px solid var(--border); border-right: none; grid-column: span 2; }
  .about-strip { grid-template-columns: 1fr; }
  .about-strip-divider { display: none; }
  .about-strip-left, .about-strip-right { padding: 64px 24px; }
  .services-section { padding: 64px 24px; }
  .services-header { grid-template-columns: 1fr; gap: 20px; }
  .service-item { grid-template-columns: 1fr; gap: 12px; padding: 32px 0; }
  .service-item-name { color: var(--text); }
  .process-section { padding: 64px 24px; }
  .process-header { grid-template-columns: 1fr; gap: 20px; margin-bottom: 48px; }
  .process-grid { grid-template-columns: 1fr 1fr; gap: 40px 0; }
  .why-section { grid-template-columns: 1fr; }
  .why-left { padding: 64px 24px; border-right: none; border-bottom: 1px solid var(--border); }
  .why-right { padding: 64px 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; padding-bottom: 40px; }
  .authority-band { grid-template-columns: 1fr; gap: 28px; padding: 56px 24px; }
  .about-hero { grid-template-columns: 1fr; }
  .about-hero-left { padding: 64px 24px; border-right: none; }
  .about-hero-right { min-height: 320px; padding: 64px 24px; }
  .about-body-section { grid-template-columns: 1fr; gap: 28px; padding: 64px 24px; }
  .about-values { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 48px 1fr; padding: 48px 24px; }
  .service-row-tags { display: none; }
  .services-hero { padding-left: 24px; padding-right: 24px; }
  .contact-hero { padding: 120px 24px 48px; }
  .contact-body { grid-template-columns: 1fr; }
  .contact-divider { display: none; }
  .contact-info { padding: 56px 24px; }
  .contact-form-wrap { padding: 0 24px 56px; }
  .form-row { grid-template-columns: 1fr; }
  .faq-section { grid-template-columns: 1fr; gap: 36px; padding: 64px 24px; }
  .faq-answer { padding-right: 0; }
  .error-page { padding-left: 24px; padding-right: 24px; }
  footer { padding: 56px 24px 32px; }
}

@media (max-width: 640px) {
  /* The mobile menu carries the CTA — nav stays logo + burger */
  .nav-cta { display: none; }
  .process-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}
