/* ================================================
   TrenchCore — Ground Zero Design System v2
   ================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Dark tones (logo navy) */
  --ink:           oklch(19% 0.07 248);
  --ink-raised:    oklch(24% 0.08 248);
  --ink-border:    oklch(33% 0.09 248);

  /* Light tones (concrete) */
  --concrete:      oklch(92% 0.005 248);
  --concrete-mid:  oklch(85% 0.008 248);
  --concrete-dark: oklch(74% 0.012 248);

  /* Orange accent (logo orange) */
  --steel:         oklch(74% 0.19 55);
  --steel-light:   oklch(80% 0.17 55);
  --steel-dim:     oklch(60% 0.18 55);

  /* Text on dark */
  --chalk:         oklch(96% 0.004 80);
  --smoke:         oklch(65% 0.04 248);
  --smoke-dim:     oklch(48% 0.05 248);

  /* Text on light */
  --ink-text:      oklch(19% 0.07 248);
  --ink-text-mid:  oklch(42% 0.07 248);

  --font-display: 'Barlow Semi Condensed', system-ui, sans-serif;
  --font-body:    'IBM Plex Sans', system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius:   2px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-text);
  background: var(--concrete);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
fieldset { border: none; padding: 0; margin: 0; min-width: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 999;
  background: var(--steel);
  color: var(--chalk);
  padding: 0.6rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus-visible { top: 1rem; }

/* ----------------------------------------
   Typography
   ---------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.05;
  color: inherit;
  font-weight: 800;
}

h1 { font-size: clamp(3rem, 6.5vw, 5.8rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); letter-spacing: -0.005em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); letter-spacing: 0em; }

.label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.label--steel { color: var(--steel); }
.label--smoke { color: var(--smoke); }
.label--ink   { color: var(--ink-text-mid); }

/* legacy compat */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 1.25rem;
}

/* ----------------------------------------
   Layout
   ---------------------------------------- */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ----------------------------------------
   Buttons
   ---------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  border-radius: var(--radius);
  white-space: nowrap;
}

/* steel filled */
.btn-steel,
.btn-primary {
  background: var(--steel);
  color: var(--chalk);
  border-color: var(--steel);
}
.btn-steel:hover,
.btn-primary:hover {
  background: var(--steel-light);
  border-color: var(--steel-light);
  transform: translateY(-1px);
}

/* ghost on dark bg */
.btn-outline-chalk,
.btn-outline {
  background: transparent;
  color: var(--chalk);
  border-color: oklch(96% 0.004 80 / 0.28);
}
.btn-outline-chalk:hover,
.btn-outline:hover {
  border-color: var(--chalk);
  background: oklch(96% 0.004 80 / 0.08);
}

/* dark filled */
.btn-ink,
.btn-ghost {
  background: var(--ink);
  color: var(--chalk);
  border-color: var(--ink);
}
.btn-ink:hover,
.btn-ghost:hover {
  background: var(--ink-raised);
  border-color: var(--steel);
}

/* outlined on light bg */
.btn-outline-ink {
  background: transparent;
  color: var(--ink-text);
  border-color: oklch(33% 0.09 248 / 0.35);
}
.btn-outline-ink:hover {
  border-color: var(--ink-text);
  background: oklch(19% 0.07 248 / 0.06);
}

/* press feedback */
.btn:active {
  transform: scale(0.97);
  transition-duration: 0.1s;
}

/* ----------------------------------------
   Navigation
   ---------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.4rem 0;
  border-top: 2px solid transparent;
  transition: background 0.5s var(--ease-out), padding 0.5s var(--ease-out),
              box-shadow 0.5s var(--ease-out), border-color 0.5s var(--ease-out);
}

.nav.scrolled {
  background: oklch(19% 0.07 248 / 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.85rem 0;
  border-top-color: var(--steel);
  box-shadow: 0 1px 0 oklch(74% 0.19 55 / 0.12);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  transition: opacity 0.3s;
  flex-shrink: 0;
  animation: fade-in 0.7s var(--ease-out) 0.05s both;
}
.nav-logo:hover { opacity: 0.88; }

.nav-logo-img {
  height: 44px;
  width: auto;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 0 5px oklch(96% 0.004 80 / 0.7));
}

.nav-logo-text {
  height: 22px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1) drop-shadow(0 0 4px oklch(96% 0.004 80 / 0.4));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--smoke);
  transition: color 0.25s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--steel);
  transition: width 0.4s var(--ease-out);
}

.nav-links a:hover,
.nav-links a.active { color: var(--chalk); }

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--steel) !important;
  color: var(--chalk) !important;
  padding: 0.55rem 1.3rem !important;
  border-radius: var(--radius) !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.13em !important;
  transition: background 0.3s !important;
}
.nav-cta:hover { background: var(--steel-light) !important; }
.nav-cta::after { display: none !important; }

/* Thin vertical divider between nav links and CTA */
.nav-sep {
  width: 1px;
  height: 16px;
  background: oklch(33% 0.09 248 / 0.55);
  flex-shrink: 0;
  pointer-events: none;
  list-style: none;
}

/* Phone number in nav — subtle secondary action */
.nav-phone {
  font-size: 0.7rem !important;
  font-weight: 400 !important;
  color: var(--smoke-dim) !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
  transition: color 0.25s !important;
}
.nav-phone:hover { color: var(--chalk) !important; }
.nav-phone::after { display: none !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 11px 10px;
  background: none;
  border: none;
  z-index: 101;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--chalk);
  transition: all 0.3s var(--ease-out);
}

/* ----------------------------------------
   Hero
   ---------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  overflow: hidden;
}

/* Blueprint grid */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(oklch(74% 0.19 55 / 0.055) 1px, transparent 1px),
    linear-gradient(90deg, oklch(74% 0.19 55 / 0.055) 1px, transparent 1px),
    linear-gradient(oklch(74% 0.19 55 / 0.022) 1px, transparent 1px),
    linear-gradient(90deg, oklch(74% 0.19 55 / 0.022) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
  background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
  pointer-events: none;
}

/* Engineering corner bracket (top right) */
.hero::after {
  content: '';
  position: absolute;
  top: 28px;
  right: 2.5rem;
  width: 36px;
  height: 36px;
  border-top: 1.5px solid oklch(74% 0.19 55 / 0.4);
  border-right: 1.5px solid oklch(74% 0.19 55 / 0.4);
  pointer-events: none;
}

.hero-inner {
  flex: 1;
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 3rem;
  align-items: center;
  padding-top: clamp(7rem, 14vw, 10rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  position: relative;
  z-index: 1;
}

.hero-content {}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: fade-up 0.9s var(--ease-out) 0.1s both;
}

.hero-eyebrow::before {
  content: '';
  width: 28px;
  height: 1.5px;
  background: var(--steel);
  flex-shrink: 0;
}

.hero h1 {
  color: var(--chalk);
  font-weight: 800;
  line-height: 0.95;
  margin-bottom: 1.5rem;
  animation: fade-up 0.9s var(--ease-out) 0.2s both;
}

.hero-sub {
  color: var(--smoke);
  font-size: 1.02rem;
  line-height: 1.78;
  max-width: 460px;
  margin-bottom: 2.5rem;
  animation: fade-up 0.9s var(--ease-out) 0.3s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fade-up 0.9s var(--ease-out) 0.4s both;
}

/* Hero illustration (right column) */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fade-up 0.9s var(--ease-out) 0.25s both;
}

.trench-diagram {
  display: none;
}

.hero-photo-layout {
  width: 100%;
  max-width: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
  gap: 1rem;
  position: relative;
}

.hero-photo-stack {
  display: grid;
  gap: 1rem;
}

.hero-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid oklch(33% 0.09 248 / 0.45);
  background: var(--ink-raised);
  box-shadow: 0 20px 60px oklch(19% 0.07 248 / 0.35);
  min-height: 0;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-photo-main {
  min-height: 520px;
}

.hero-photo-small {
  min-height: 252px;
}

.hero-photo-badge {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 16rem;
  padding: 1rem 1.1rem;
  background: oklch(19% 0.07 248 / 0.9);
  border: 1px solid oklch(33% 0.09 248 / 0.55);
  color: var(--chalk);
  box-shadow: 0 18px 40px oklch(19% 0.07 248 / 0.35);
}

.hero-photo-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.05;
}

.hero-photo-badge-label {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
}

/* Stats bar (concrete strip below hero) */
.hero-stats {
  background: var(--concrete);
  position: relative;
  z-index: 2;
}

.hero-stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0;
}

.stat {
  padding: 2rem 2.5rem;
  border-left: 1px solid var(--concrete-dark);
}

.stat:first-child { border-left: none; }

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 800;
  color: var(--ink-text);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-text-mid);
  margin-top: 0.4rem;
}

/* ----------------------------------------
   Services Home (dark section — matches hero)
   ---------------------------------------- */
.services-home {
  background: var(--ink);
  padding: clamp(5rem, 9vw, 8rem) 0;
  border-top: 1px solid var(--ink-border);
}

.section-intro {
  margin-bottom: 3rem;
}

.section-intro h2 {
  color: var(--ink-text);
}

.section-intro p {
  color: var(--ink-text-mid);
  max-width: 500px;
  margin-top: 0.9rem;
  line-height: 1.75;
  font-size: 0.95rem;
}

/* Services-home is dark — flip text colors */
.services-home .section-intro h2 { color: var(--chalk); }
.services-home .section-intro p   { color: var(--smoke); }
.services-home .section-intro .label--ink { color: var(--steel); }

/* Editorial service list */
.service-list {
  border-top: 1px solid var(--ink-border);
  margin-bottom: 3rem;
}

.service-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--ink-border);
  text-decoration: none;
  transition: padding-left 0.4s var(--ease-out);
  position: relative;
}

.service-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--steel);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease-out);
}

.service-row:hover { padding-left: 1.25rem; }
.service-row:hover::before { transform: scaleY(1); }

.service-row-name {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 700;
  color: var(--chalk);
  letter-spacing: 0em;
  line-height: 1.15;
  min-width: 0;
  width: 38%;
  flex-shrink: 0;
  transition: color 0.3s;
}

.service-row-desc {
  flex: 1;
  font-size: 0.86rem;
  color: var(--smoke);
  line-height: 1.6;
  min-width: 0;
}

.service-row-arrow {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  stroke: var(--smoke-dim);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s, transform 0.4s var(--ease-out);
}

.service-row:hover .service-row-name { color: var(--steel); }
.service-row:hover .service-row-arrow {
  stroke: var(--steel);
  transform: translateX(6px);
}

/* Keep service-card-num for services.html detail cards */
.service-card-num {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--steel);
  margin-bottom: 1.4rem;
  display: block;
}

.section-cta { text-align: center; }

/* ----------------------------------------
   About (dark section)
   ---------------------------------------- */
.about {
  background: var(--ink-raised);
  padding: clamp(5rem, 9vw, 8rem) 0;
}

.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-content h2 {
  color: var(--chalk);
  margin-bottom: 1.5rem;
}

.about-content > p {
  color: var(--smoke);
  line-height: 1.8;
  margin-bottom: 1.2rem;
  max-width: 500px;
  font-size: 0.95rem;
}

.about-visual {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.about-photo-grid {
  width: 100%;
  max-width: 420px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 240px 170px;
  gap: 1rem;
}

.about-photo {
  margin: 0;
  width: 100%;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid oklch(33% 0.09 248 / 0.45);
  background: var(--ink-raised);
  box-shadow: 0 20px 60px oklch(19% 0.07 248 / 0.3);
}

.about-photo-wide {
  grid-column: 1 / -1;
  min-height: 0;
}

.about-photo-left,
.about-photo-right {
  min-height: 0;
}

.about-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Why-item list (inside about) */
.why-list {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-top: 2rem;
}

.why-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.why-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  background: oklch(74% 0.19 55 / 0.12);
  border: 1px solid oklch(74% 0.19 55 / 0.3);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-icon svg {
  width: 15px;
  height: 15px;
  stroke: var(--steel);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-item h4 {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--chalk);
  margin-bottom: 0.2rem;
}

.why-item p {
  font-size: 0.83rem;
  color: var(--smoke);
  line-height: 1.6;
}

/* ----------------------------------------
   Testimonials (concrete section)
   ---------------------------------------- */
.testimonials {
  background: var(--concrete);
  padding: clamp(5rem, 9vw, 8rem) 0;
}

.testimonials-editorial {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 2px;
  background: var(--concrete-dark);
  outline: 2px solid var(--concrete-dark);
  margin-top: 3rem;
}

.testimonial-lead {
  background: var(--ink);
  padding: 3.5rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  transition: background 0.35s var(--ease-out);
}
.testimonial-lead:hover { background: var(--ink-raised); }

.testimonial-mark {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--steel);
  line-height: 0.72;
  margin-bottom: 1.75rem;
  letter-spacing: -0.05em;
  opacity: 0.75;
  user-select: none;
}

.testimonial-lead > p {
  font-size: 1.06rem;
  color: var(--chalk);
  line-height: 1.8;
  font-weight: 300;
  flex: 1;
  margin-bottom: 2.25rem;
}

.testimonials-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--concrete-dark);
}

.testimonial-compact {
  background: var(--ink-raised);
  padding: 2.4rem;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  transition: background 0.35s var(--ease-out);
}
.testimonial-compact:hover { background: oklch(27% 0.09 248); }

.testimonial-compact::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--steel);
  line-height: 0.72;
  display: block;
  margin-bottom: 1.25rem;
  letter-spacing: -0.04em;
  opacity: 0.6;
}

.testimonial-compact > p {
  font-size: 0.87rem;
  color: var(--smoke);
  line-height: 1.78;
  flex: 1;
  margin-bottom: 1.5rem;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ink-border);
}

.reviewer-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: oklch(74% 0.19 55 / 0.15);
  border: 1px solid oklch(74% 0.19 55 / 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--steel);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  font-family: var(--font-body);
}

.reviewer-name {
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--chalk);
  font-family: var(--font-body);
}

.reviewer-loc {
  font-size: 0.7rem;
  color: var(--smoke-dim);
}

/* ----------------------------------------
   CTA Banner
   ---------------------------------------- */
.cta-banner {
  background: var(--ink);
  padding: clamp(5rem, 8vw, 7rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(oklch(74% 0.19 55 / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, oklch(74% 0.19 55 / 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.cta-banner h2 {
  color: var(--chalk);
  position: relative;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: var(--smoke);
  font-size: 0.98rem;
  max-width: 440px;
  margin: 0 auto 2.5rem;
  position: relative;
  line-height: 1.75;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ----------------------------------------
   Footer
   ---------------------------------------- */
.footer {
  background: var(--ink);
  border-top: 1px solid var(--ink-border);
  color: var(--smoke);
  padding: 4.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  font-size: 0.84rem;
  line-height: 1.7;
  margin-top: 1.25rem;
  max-width: 240px;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: opacity 0.3s;
}
.footer-logo-link:hover { opacity: 0.85; }

.footer-logo-img {
  height: 50px;
  width: auto;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 0 5px oklch(96% 0.004 80 / 0.7));
}

.footer-logo-text {
  height: 26px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1) drop-shadow(0 0 4px oklch(96% 0.004 80 / 0.4));
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink-border);
  border-radius: var(--radius);
  transition: border-color 0.25s, color 0.25s, transform 0.25s var(--ease-out);
  color: var(--smoke);
}

.footer-social a:hover {
  border-color: var(--steel);
  color: var(--steel);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--chalk);
  margin-bottom: 1.25rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col ul li a {
  font-size: 0.84rem;
  color: var(--smoke);
  transition: color 0.25s;
}
.footer-col ul li a:hover { color: var(--chalk); }

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}

.footer-contact-item svg {
  width: 13px;
  height: 13px;
  stroke: var(--steel);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  margin-top: 4px;
}

.footer-contact-item span {
  font-size: 0.84rem;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid var(--ink-border);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  gap: 1rem;
  color: var(--smoke-dim);
}

.footer-bottom a {
  color: var(--steel);
  transition: color 0.25s;
}
.footer-bottom a:hover { color: var(--steel-light); }

/* ----------------------------------------
   Page Hero (inner pages)
   ---------------------------------------- */
.page-hero {
  background: var(--ink);
  padding: clamp(9rem, 16vw, 12rem) 0 clamp(4rem, 7vw, 6rem);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(oklch(74% 0.19 55 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, oklch(74% 0.19 55 / 0.05) 1px, transparent 1px),
    linear-gradient(oklch(74% 0.19 55 / 0.02) 1px, transparent 1px),
    linear-gradient(90deg, oklch(74% 0.19 55 / 0.02) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
  pointer-events: none;
}

/* Bottom-left corner bracket */
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 24px;
  left: 2rem;
  width: 28px;
  height: 28px;
  border-bottom: 1.5px solid oklch(74% 0.19 55 / 0.35);
  border-left: 1.5px solid oklch(74% 0.19 55 / 0.35);
  pointer-events: none;
}

.page-hero .section-label,
.page-hero .label {
  color: var(--steel);
  position: relative;
  animation: fade-up 0.8s var(--ease-out) 0.1s both;
}

.page-hero h1 {
  color: var(--chalk);
  position: relative;
  animation: fade-up 0.8s var(--ease-out) 0.2s both;
}

.page-hero p {
  color: var(--smoke);
  max-width: 540px;
  margin-top: 1rem;
  line-height: 1.75;
  position: relative;
  font-size: 0.98rem;
  animation: fade-up 0.8s var(--ease-out) 0.3s both;
}

/* ----------------------------------------
   Services Page — Detail Grid
   ---------------------------------------- */
.services-detailed {
  background: var(--concrete);
  padding: clamp(5rem, 9vw, 8rem) 0;
}

.services-grid-full {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--concrete-dark);
  outline: 2px solid var(--concrete-dark);
  margin-top: 3rem;
}

.service-detail-card {
  background: var(--ink);
  padding: 2.8rem 2.4rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: background 0.35s var(--ease-out);
  text-decoration: none;
}

.service-detail-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--steel);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}

.service-detail-card:hover { background: var(--ink-raised); }
.service-detail-card:hover::after { transform: scaleX(1); }

.service-detail-card .service-card-num {
  color: var(--steel);
  margin-bottom: 1.25rem;
}

.service-detail-card h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  color: var(--chalk);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.service-detail-card > p {
  color: var(--smoke);
  font-size: 0.88rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  flex: 1;
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 2rem;
}

.service-features li {
  font-size: 0.82rem;
  color: var(--smoke);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.5;
}

.service-features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--steel);
  font-size: 0.72rem;
}

/* Process section (services page) */
.process {
  background: var(--ink-raised);
  padding: clamp(5rem, 9vw, 8rem) 0;
}

.process .section-header {
  margin-bottom: 4rem;
}

.process .section-header h2 {
  color: var(--chalk);
}

.process .section-header p {
  color: var(--smoke);
  max-width: 520px;
  margin-top: 0.75rem;
  line-height: 1.75;
  font-size: 0.95rem;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--ink-border);
  outline: 2px solid var(--ink-border);
}

.process-step {
  background: var(--ink);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: background 0.35s var(--ease-out);
}

.process-step:hover { background: oklch(27% 0.09 248); }

.step-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: oklch(74% 0.19 55 / 0.18);
  line-height: 1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
  transition: color 0.35s var(--ease-out);
}
.process-step:hover .step-num { color: oklch(74% 0.19 55 / 0.42); }

.process-step h4 {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--chalk);
  margin-bottom: 0.6rem;
}

.process-step p {
  font-size: 0.83rem;
  color: var(--smoke);
  line-height: 1.65;
}

/* CTA strip (services page bottom) */
.services-cta-strip {
  background: var(--concrete);
  padding: clamp(4rem, 7vw, 6rem) 0;
  text-align: center;
  border-top: 2px solid var(--concrete-dark);
}

.services-cta-strip h2 {
  color: var(--ink-text);
  margin-bottom: 0.75rem;
}

.services-cta-strip p {
  color: var(--ink-text-mid);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* ----------------------------------------
   Previous Work Page
   ---------------------------------------- */
.work-hero {
  min-height: 76vh;
  display: flex;
  align-items: end;
  color: var(--chalk);
  background:
    linear-gradient(90deg, oklch(12% 0.05 248 / 0.9) 0%, oklch(12% 0.05 248 / 0.68) 48%, oklch(12% 0.05 248 / 0.18) 100%),
    url('https://images.pexels.com/photos/20296265/pexels-photo-20296265.jpeg?auto=compress&cs=tinysrgb&w=1800') center / cover;
  padding: 8rem 0 4rem;
}

.work-hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 3rem;
  align-items: end;
}

.work-hero-copy {
  max-width: 760px;
}

.work-hero h1 {
  max-width: 720px;
}

.work-hero p {
  max-width: 600px;
  margin-top: 1rem;
  color: var(--smoke);
  font-size: 1rem;
  line-height: 1.8;
}

.work-hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid oklch(96% 0.004 80 / 0.18);
  background: oklch(12% 0.05 248 / 0.58);
  backdrop-filter: blur(10px);
}

.work-hero-stats div {
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid oklch(96% 0.004 80 / 0.14);
}

.work-hero-stats div:last-child {
  border-bottom: none;
}

.work-hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.35rem;
  line-height: 1;
  color: var(--steel);
}

.work-hero-stats span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--chalk);
}

.featured-work {
  background: var(--ink);
  color: var(--chalk);
  padding: clamp(5rem, 9vw, 8rem) 0;
}

.featured-work-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.featured-work-image {
  height: 480px;
  overflow: hidden;
}

.featured-work-image img,
.featured-work-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-work-copy h2 {
  color: var(--chalk);
  margin-bottom: 1rem;
}

.featured-work-copy > p {
  color: var(--smoke);
  line-height: 1.8;
  margin-bottom: 1.8rem;
}

.work-specs {
  display: grid;
  gap: 1px;
  background: var(--ink-border);
  margin-bottom: 2rem;
}

.work-specs div {
  background: var(--ink-raised);
  padding: 1rem 1.2rem;
}

.work-specs dt {
  color: var(--steel);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.work-specs dd {
  color: var(--smoke);
  font-size: 0.9rem;
}

.work-gallery {
  background: var(--concrete);
  padding: clamp(5rem, 9vw, 8rem) 0;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--concrete-dark);
  outline: 2px solid var(--concrete-dark);
}

.work-card {
  background: var(--chalk);
  min-width: 0;
}

.work-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.work-card-body {
  padding: 1.5rem;
}

.work-card-body span {
  display: inline-block;
  margin-bottom: 0.65rem;
  color: var(--steel-dim);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.work-card-body h3 {
  color: var(--ink-text);
  margin-bottom: 0.55rem;
}

.work-card-body p {
  color: var(--ink-text-mid);
  font-size: 0.9rem;
  line-height: 1.7;
}

.work-cta {
  background: var(--ink-raised);
  color: var(--chalk);
  padding: clamp(4rem, 7vw, 6rem) 0;
}

.work-cta .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
}

.work-cta h2 {
  max-width: 660px;
}

.work-cta p {
  max-width: 560px;
  margin-top: 0.75rem;
  color: var(--smoke);
}

/* ----------------------------------------
   Contact Page
   ---------------------------------------- */
.contact-section {
  background: var(--concrete);
  padding: clamp(5rem, 9vw, 8rem) 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h2 {
  color: var(--ink-text);
  margin-bottom: 1.25rem;
}

.contact-info > p {
  color: var(--ink-text-mid);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.detail-icon {
  width: 40px;
  height: 40px;
  background: var(--ink);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.detail-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--steel);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-text strong {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-text-mid);
  margin-bottom: 0.15rem;
}

.detail-text span {
  font-size: 0.95rem;
  color: var(--ink-text);
}

.service-area {
  background: var(--concrete-mid);
  border-left: 2px solid var(--steel);
  padding: 1.25rem 1.5rem;
  margin-top: 0.5rem;
}

.service-area h4 {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-text-mid);
  margin-bottom: 0.5rem;
}

.service-area p {
  font-size: 0.86rem;
  color: var(--ink-text-mid);
  line-height: 1.65;
}

/* ----------------------------------------
   Forms
   ---------------------------------------- */
.quote-form-wrap {
  background: var(--ink);
  padding: 3rem;
  border-radius: var(--radius);
  position: relative;
}

.quote-form-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--steel);
}

.quote-form-wrap h3 {
  color: var(--chalk);
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  margin-bottom: 0.5rem;
}

.quote-form-wrap > p {
  font-size: 0.84rem;
  color: var(--smoke);
  margin-bottom: 2rem;
}

.required { color: var(--steel); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group.full { grid-column: 1 / -1; }

.form-group label,
.form-group legend {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--smoke);
  display: block;
  margin-bottom: 0.45rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--ink-raised);
  border: 1px solid var(--ink-border);
  color: var(--chalk);
  font-family: var(--font-body);
  font-size: 0.9rem;
  border-radius: var(--radius);
  transition: border-color 0.2s, outline-color 0.2s, box-shadow 0.2s;
  outline: 2px solid transparent;
  outline-offset: 2px;
  -webkit-appearance: none;
  appearance: none;
}

.form-group 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='oklch(65%25 0.04 248)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--smoke-dim); }

.form-group select option {
  background: var(--ink-raised);
  color: var(--chalk);
}

.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  border-color: var(--steel);
  outline-color: var(--steel);
  box-shadow: 0 0 0 3px oklch(74% 0.19 55 / 0.15);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error { border-color: oklch(58% 0.18 20); }

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: var(--smoke);
  cursor: pointer;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.checkbox-label input[type="radio"],
.checkbox-label input[type="checkbox"] {
  width: auto;
  padding: 0;
  accent-color: var(--steel);
}

.form-error-msg {
  font-size: 0.76rem;
  color: oklch(58% 0.18 20);
  margin-top: 0.2rem;
}

.form-submit {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.form-note {
  font-size: 0.76rem;
  color: var(--smoke-dim);
  line-height: 1.65;
}

.form-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
}

.form-success.visible {
  display: block;
  animation: fade-up 0.5s var(--ease-out) both;
}

.success-icon {
  width: 52px;
  height: 52px;
  background: oklch(74% 0.19 55 / 0.12);
  border: 1px solid var(--steel);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.success-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--steel);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-success h3 { color: var(--chalk); margin-bottom: 0.75rem; }
.form-success p  { color: var(--smoke); font-size: 0.88rem; line-height: 1.7; }

/* Map */
.map-section {
  height: 280px;
  background: var(--ink-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--ink-border);
  border-bottom: 1px solid var(--ink-border);
}

.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--smoke-dim);
}

.map-placeholder svg {
  width: 28px;
  height: 28px;
  stroke: var(--steel);
  fill: none;
  stroke-width: 1.5;
}

.map-placeholder p {
  font-size: 0.88rem;
  color: var(--smoke);
}

.map-placeholder span {
  font-size: 0.78rem;
  color: var(--smoke-dim);
  text-align: center;
  max-width: 320px;
  line-height: 1.6;
}

/* Team section */
.team-section {
  background: var(--concrete);
  padding: clamp(5rem, 9vw, 8rem) 0;
}

.service-area-section {
  background:
    linear-gradient(180deg, oklch(92% 0.005 248) 0%, oklch(88% 0.008 248) 100%);
  padding: clamp(5rem, 9vw, 8rem) 0;
  border-top: 1px solid oklch(33% 0.09 248 / 0.08);
}

.service-area-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: oklch(33% 0.09 248 / 0.14);
  outline: 1px solid oklch(33% 0.09 248 / 0.14);
}

.service-area-card {
  background: var(--chalk);
  padding: 2.25rem 2rem;
  min-height: 100%;
}

.service-area-card-label {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel-dim);
}

.service-area-card h3 {
  color: var(--ink-text);
  margin-bottom: 1rem;
}

.service-area-list {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.service-area-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--ink-text-mid);
  line-height: 1.6;
}

.service-area-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.36rem;
  height: 0.36rem;
  background: var(--steel);
}

.service-area-note {
  margin-top: 2rem;
  padding: 1.35rem 1.5rem;
  background: var(--ink);
  color: var(--chalk);
  border-left: 2px solid var(--steel);
}

.service-area-note strong {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

.service-area-note p {
  color: var(--smoke);
  max-width: 760px;
}

.service-area-note a {
  color: var(--chalk);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header .section-label { color: var(--ink-text-mid); }

.section-header h2 {
  color: var(--ink-text);
  max-width: 600px;
}

.section-header p {
  color: var(--ink-text-mid);
  max-width: 580px;
  margin-top: 0.9rem;
  line-height: 1.75;
  font-size: 0.95rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.team-member { text-align: center; }

.team-member-avatar {
  aspect-ratio: 1;
  background: var(--concrete-mid);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border: 1.5px dashed var(--concrete-dark);
}

.team-member-avatar .ph-icon {
  width: 32px;
  height: 32px;
  stroke: var(--concrete-dark);
  fill: none;
  stroke-width: 1.5;
}


.team-member-name {
  font-size: 1.05rem;
  color: var(--ink-text);
  margin-bottom: 0.3rem;
}

.team-member-title {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.7rem;
}

.team-member-bio {
  font-size: 0.86rem;
  color: var(--ink-text-mid);
  line-height: 1.65;
}

/* ----------------------------------------
   Privacy Policy
   ---------------------------------------- */
.policy-body {
  background: var(--concrete);
  padding: clamp(5rem, 9vw, 8rem) 0;
}

.policy-body .container {
  max-width: 780px;
}

.policy-body h2 {
  color: var(--ink-text);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  margin: 2.5rem 0 0.85rem;
}

.policy-body p,
.policy-body ul {
  color: var(--ink-text-mid);
  font-size: 0.92rem;
  line-height: 1.82;
  margin-bottom: 1.2rem;
}

.policy-body ul {
  padding-left: 1.5rem;
  list-style: disc;
}

/* ----------------------------------------
   Scroll Reveal
   ---------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------------------
   Keyframes
   ---------------------------------------- */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes draw-trench-wall {
  to { stroke-dashoffset: 0; }
}

/* ----------------------------------------
   SVG trench wall draw-in
   ---------------------------------------- */
.trench-wall {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: draw-trench-wall 1.1s var(--ease-out) 0.6s forwards;
}
.trench-wall-right { animation-delay: 0.72s; }

/* ----------------------------------------
   Reduced Motion
   ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .trench-wall { stroke-dashoffset: 0; }
}

/* ----------------------------------------
   Responsive — Tablet
   ---------------------------------------- */
@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-visual {
    order: -1;
  }

  .hero-photo-layout {
    max-width: 100%;
    grid-template-columns: 1fr;
  }

  .hero-photo-main {
    min-height: 320px;
  }

  .hero-photo-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-photo-small {
    min-height: 180px;
  }

  .hero-photo-badge {
    left: auto;
    right: 1rem;
    max-width: 14rem;
  }

  .about .container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-visual { order: -1; }

  .about-photo-grid {
    max-width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 220px 170px;
  }

  .service-grid,
  .services-grid-full,
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-hero .container,
  .featured-work-grid,
  .work-cta .container {
    grid-template-columns: 1fr;
  }

  .work-hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .work-hero-stats div {
    border-bottom: none;
    border-right: 1px solid oklch(96% 0.004 80 / 0.14);
  }

  .work-hero-stats div:last-child {
    border-right: none;
  }

  .testimonials-editorial {
    grid-template-columns: 1fr;
  }

  .testimonials-stack {
    flex-direction: row;
  }

  .process-steps { grid-template-columns: repeat(2, 1fr); }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .service-area-grid { grid-template-columns: 1fr; }

  .hero-stats-inner { grid-template-columns: repeat(2, 1fr); }

  .stat:nth-child(3) { border-left: none; }

  .stat {
    border-bottom: 1px solid var(--concrete-dark);
  }

  .stat:nth-child(3),
  .stat:nth-child(4) { border-bottom: none; }
}

/* ----------------------------------------
   Responsive — Mobile
   ---------------------------------------- */
@media (max-width: 640px) {
  .container { padding: 0 1.25rem; }

  /* — Navigation — */
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(360px, 90vw);
    background:
      linear-gradient(180deg, oklch(24% 0.08 248) 0%, var(--ink) 52%, oklch(15% 0.06 248) 100%);
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 5.75rem 1.35rem 1.5rem;
    transform: translateX(110%);
    transition: transform 0.45s var(--ease-out);
    z-index: 99;
    border-left: 1px solid oklch(74% 0.19 55 / 0.18);
    box-shadow: -24px 0 60px oklch(8% 0.04 248 / 0.5);
    overflow-y: auto;
  }

  .nav-links.open { transform: translateX(0); }

  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 48px;
    font-size: 0.9rem;
    width: 100%;
    padding: 0.85rem 0.95rem;
    border: 1px solid transparent;
    letter-spacing: 0.09em;
    color: var(--chalk);
    background: transparent;
  }

  .nav-links a::after { display: none; }

  .nav-links a:hover,
  .nav-links a.active {
    color: var(--chalk);
    background: oklch(96% 0.004 80 / 0.06);
    border-color: oklch(96% 0.004 80 / 0.08);
  }

  .nav-cta {
    justify-content: center;
    min-height: 52px;
    margin-top: 0.55rem;
    background: var(--steel) !important;
    color: var(--chalk) !important;
    font-size: 0.82rem !important;
    padding: 0.95rem 1rem !important;
    letter-spacing: 0.1em !important;
    border-radius: var(--radius) !important;
  }

  .nav-toggle { display: flex; }

  /* — Nav mobile — */
  .nav-sep {
    display: block;
    width: 100%;
    height: 1px;
    margin: 0.75rem 0 0.45rem;
    background: oklch(96% 0.004 80 / 0.12);
  }

  .nav-phone {
    justify-content: center;
    min-height: 48px;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    color: var(--steel-light) !important;
    letter-spacing: 0.04em !important;
    text-transform: none !important;
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid oklch(74% 0.19 55 / 0.2);
    background: oklch(74% 0.19 55 / 0.07);
  }

  /* — Hero — */
  .hero h1 { line-height: 1; }

  /* Push content clear of the fixed nav (nav ≈ 90px, give 55px breathing room) */
  .hero-inner { padding-top: 8.5rem; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Text first on mobile — override the tablet order: -1 */
  .hero-visual {
    order: 1;
    position: relative;
  }

  /* Subtle bottom fade to blend photo into the dark background */
  .hero-visual::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 55%;
    background: linear-gradient(to bottom, transparent, var(--ink));
    pointer-events: none;
    z-index: 1;
  }

  /* Show only the main photo — hide stack and badge on mobile */
  .hero-photo-layout { grid-template-columns: 1fr; }
  .hero-photo-stack  { display: none; }
  .hero-photo-badge  { display: none; }

  .hero-photo-main {
    min-height: 0;
    height: clamp(160px, 45vw, 220px);
  }

  /* — About — */
  /* Show only the wide photo; hide the two smaller ones */
  .about-photo-grid {
    grid-template-columns: 1fr;
    grid-template-rows: clamp(180px, 50vw, 240px);
    max-width: 100%;
  }

  .about-photo-wide { grid-column: 1; }

  .about-photo-left,
  .about-photo-right { display: none; }

  /* — Services home list — */
  .service-list { border-top: none; }

  .service-row {
    flex-wrap: wrap;
    gap: 0.3rem;
    padding: 1.25rem 0;
  }

  .service-row-name {
    width: 100%;
    flex-shrink: unset;
  }

  .service-row-desc {
    width: 100%;
    flex: none;
    font-size: 0.82rem;
  }

  .service-row-arrow { align-self: flex-end; }

  /* — Services detail grid & process — */
  .services-grid-full,
  .process-steps,
  .work-hero-stats,
  .work-grid { grid-template-columns: 1fr; }

  .work-hero {
    min-height: 70vh;
    padding: 7rem 0 3rem;
  }

  .work-hero-stats div {
    border-right: none;
    border-bottom: 1px solid oklch(96% 0.004 80 / 0.14);
  }

  .featured-work-image {
    height: 320px;
  }

  .service-detail-card { padding: 2.2rem 1.75rem; }
  .process-step        { padding: 2rem 1.75rem; }

  /* — Testimonials — */
  .testimonials-stack  { flex-direction: column; }
  .testimonial-lead    { padding: 2rem 1.5rem; }
  .testimonial-compact { padding: 1.75rem 1.5rem; }

  /* — CTA — */
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { text-align: center; justify-content: center; }

  /* — Footer — */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  /* — Forms — */
  .form-grid         { grid-template-columns: 1fr; }
  .quote-form-wrap   { padding: 2rem 1.5rem; }
  .checkbox-group    { flex-direction: column; gap: 0.5rem; }

  /* — Team / misc — */
  .team-grid         { grid-template-columns: 1fr; }
  .service-area-card { padding: 1.75rem 1.35rem; }
  .service-area-note { padding: 1.2rem 1.25rem; }

  /* — Stats — */
  .hero-stats-inner  { grid-template-columns: repeat(2, 1fr); }

  /* — Section spacing — */
  .section-intro { margin-bottom: 2rem; }
  .section-header { margin-bottom: 2.5rem; }
}

/* Extra-small screens (≤ 390px) */
@media (max-width: 390px) {
  .service-detail-card { padding: 1.75rem 1.25rem; }
  .process-step        { padding: 1.75rem 1.25rem; }
  .testimonial-lead    { padding: 1.75rem 1.25rem; }
  .testimonial-compact { padding: 1.5rem 1.25rem; }
  .quote-form-wrap     { padding: 1.75rem 1.1rem; }
}
