/* ==========================================================================
   NORTHLINE BUILD CO. — Design System & Stylesheet
   Premium residential & light commercial construction
   Refinement pass: typography hierarchy, spacing rhythm, surface quality,
   editorial composition, interaction polish, mobile precision
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* --- Color: Primitives --- */
  --white: #FFFFFF;
  --off-white: #F8F6F3;
  --cream: #F0ECE6;
  --stone-100: #E8E3DC;
  --stone-200: #D4CEC6;
  --stone-300: #C0B9AF;
  --stone-400: #9A9389;
  --stone-500: #7A7369;
  --charcoal-100: #4A4A4A;
  --charcoal-200: #333333;
  --charcoal-300: #2C2C2C;
  --charcoal-400: #1E1E1E;
  --charcoal-500: #1A1A1A;
  --near-black: #141414;
  --accent-green: #3D5A3D;
  --accent-green-light: #4A6B4A;
  --accent-green-dark: #2D452D;

  /* --- Color: Semantic --- */
  --color-bg: var(--off-white);
  --color-bg-alt: var(--cream);
  --color-bg-dark: var(--charcoal-400);
  --color-bg-darker: var(--near-black);
  --color-surface: var(--white);
  --color-surface-elevated: var(--off-white);
  --color-text-primary: var(--charcoal-500);
  --color-text-secondary: var(--charcoal-100);
  --color-text-muted: var(--stone-500);
  --color-text-on-dark: var(--off-white);
  --color-text-on-dark-muted: var(--stone-300);
  --color-heading: var(--charcoal-500);
  --color-border: var(--stone-200);
  --color-border-light: var(--stone-100);
  --color-border-subtle: rgba(0,0,0,0.05);
  --color-accent: var(--accent-green);
  --color-accent-hover: var(--accent-green-light);
  --color-overlay: rgba(20, 20, 20, 0.6);
  --color-overlay-heavy: rgba(20, 20, 20, 0.72);
  --color-focus: rgba(61, 90, 61, 0.4);

  /* --- Typography --- */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  --leading-tight: 1.1;
  --leading-snug: 1.28;
  --leading-normal: 1.6;
  --leading-relaxed: 1.72;

  --tracking-tight: -0.03em;
  --tracking-snug: -0.015em;
  --tracking-normal: 0;
  --tracking-wide: 0.06em;
  --tracking-wider: 0.12em;

  /* --- Spacing (8px grid) --- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --space-40: 10rem;

  /* --- Layout --- */
  --content-width: 1200px;
  --content-narrow: 800px;
  --content-wide: 1400px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-py: clamp(4.5rem, 9vw, 8rem);
  --section-py-lg: clamp(6rem, 12vw, 10rem);

  /* --- Surfaces --- */
  --radius-none: 0;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --shadow-subtle: 0 1px 2px rgba(0,0,0,0.03);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.03);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-focus: 0 0 0 3px var(--color-focus);

  /* --- Transitions --- */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out: cubic-bezier(0.42, 0, 0.58, 1);
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;
  --duration-reveal: 700ms;

  /* --- Header --- */
  --header-height: 5rem;
}


/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-weight: var(--font-weight-regular);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  overflow-x: hidden;
  font-feature-settings: 'cv01', 'cv02', 'cv03', 'cv04';
}

img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

::selection {
  background-color: var(--charcoal-500);
  color: var(--off-white);
}

/* Focus-visible for keyboard accessibility */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Scroll margin for anchor targets */
[id] {
  scroll-margin-top: calc(var(--header-height) + var(--space-8));
}

/* 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;
  }
  .reveal { opacity: 1; transform: none; }
}


/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-heading);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

/* H1: Display — weight 500 for editorial refinement at large sizes */
h1 {
  font-size: clamp(2.5rem, 5vw + 0.5rem, 4.25rem);
  font-weight: var(--font-weight-medium);
  letter-spacing: -0.04em;
  line-height: 1.06;
}

/* H2: Section anchors — weight 600 for structural authority */
h2 {
  font-size: clamp(1.875rem, 3.5vw + 0.25rem, 3rem);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

h3 {
  font-size: clamp(1.25rem, 1.5vw + 0.5rem, 1.625rem);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-snug);
  line-height: var(--leading-snug);
}

h4 {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-snug);
  line-height: var(--leading-snug);
}

p {
  max-width: 66ch;
}

.text-lg {
  font-size: clamp(1.0625rem, 0.5vw + 0.9rem, 1.1875rem);
  line-height: var(--leading-relaxed);
}

.text-body {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-secondary);
}

.label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-muted);
  line-height: 1;
  display: block;
}

.label--accent {
  color: var(--color-accent);
}

.label--light {
  color: var(--color-text-on-dark-muted);
}


/* --------------------------------------------------------------------------
   4. LAYOUT
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container--narrow {
  max-width: var(--content-narrow);
}

.container--wide {
  max-width: var(--content-wide);
}

.section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}

.section--lg {
  padding-top: var(--section-py-lg);
  padding-bottom: var(--section-py-lg);
}

.section--dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-text-on-dark);
}

.section--dark .label {
  color: var(--color-text-on-dark-muted);
}

.section--dark .text-body,
.section--dark p {
  color: var(--color-text-on-dark-muted);
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section--surface {
  background-color: var(--color-surface);
}

.grid {
  display: grid;
  gap: var(--space-8);
}

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

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

/* Section headers — increased bottom margin for breathing room */
.section-header {
  margin-bottom: var(--space-16);
}

.section-header .label {
  margin-bottom: var(--space-6);
}

.section-header h2 {
  margin-bottom: var(--space-6);
}

.section-header p {
  color: var(--color-text-secondary);
}

.section--dark .section-header p {
  color: var(--color-text-on-dark-muted);
}

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

.section-header--center p {
  margin-left: auto;
  margin-right: auto;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.split--contact {
  gap: var(--space-20);
  align-items: start;
}


/* --------------------------------------------------------------------------
   5. HEADER / NAVIGATION
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: background-color var(--duration-slow) var(--ease-out),
              box-shadow var(--duration-slow) var(--ease-out);
}

.header--transparent {
  background-color: transparent;
}

.header--scrolled {
  background-color: rgba(248, 246, 243, 0.97);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.header--scrolled .nav__logo,
.header--scrolled .nav__link,
.header--scrolled .nav__cta-mobile {
  color: var(--color-text-primary);
}

.header--scrolled .hamburger span {
  background-color: var(--color-text-primary);
}

.header--scrolled .nav__cta {
  background-color: var(--charcoal-500);
  color: var(--off-white);
}

.header--scrolled .nav__cta:hover {
  background-color: var(--charcoal-300);
}

.header__inner {
  width: 100%;
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--white);
  transition: color var(--duration-slow) var(--ease-out);
  white-space: nowrap;
}

.nav__logo span {
  font-weight: var(--font-weight-regular);
  opacity: 0.65;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-10);
}

.nav__link {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  transition: color var(--duration-fast) var(--ease-out);
  position: relative;
  padding: var(--space-1) 0;
}

.header--scrolled .nav__link {
  color: var(--color-text-secondary);
}

.nav__link:hover {
  color: var(--white);
}

.header--scrolled .nav__link:hover {
  color: var(--color-text-primary);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: width var(--duration-base) var(--ease-out);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__cta {
  margin-left: var(--space-8);
}

.nav__cta-mobile {
  display: none;
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  transition: color var(--duration-slow) var(--ease-out);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-3);
  cursor: pointer;
  z-index: 1010;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: var(--white);
  transition: transform var(--duration-base) var(--ease-out),
              opacity var(--duration-fast) var(--ease-out),
              background-color var(--duration-slow) var(--ease-out);
}

.hamburger--active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hamburger--active span:nth-child(2) {
  opacity: 0;
}

.hamburger--active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background-color: var(--color-bg-darker);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-slow) var(--ease-out),
              visibility var(--duration-slow) var(--ease-out);
}

.mobile-nav--open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav__link {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-on-dark);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  transition: opacity var(--duration-fast);
}

.mobile-nav__link:hover {
  opacity: 0.6;
}

.mobile-nav__cta {
  margin-top: var(--space-6);
}


/* --------------------------------------------------------------------------
   6. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  padding: 0.9375rem 2rem;
  border-radius: 0;
  transition: background-color var(--duration-base) var(--ease-out),
              color var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out);
  white-space: nowrap;
  line-height: 1;
  position: relative;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background-color: var(--charcoal-500);
  color: var(--off-white);
}

.btn--primary:hover {
  background-color: var(--charcoal-300);
}

.btn--primary-light {
  background-color: var(--white);
  color: var(--charcoal-500);
}

.btn--primary-light:hover {
  background-color: var(--off-white);
}

.btn--outline {
  border: 1px solid var(--charcoal-500);
  color: var(--charcoal-500);
  background-color: transparent;
}

.btn--outline:hover {
  background-color: var(--charcoal-500);
  color: var(--off-white);
}

.btn--outline-light {
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
}

.btn--outline-light:hover {
  background-color: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.55);
}

.btn--accent {
  background-color: var(--color-accent);
  color: var(--white);
}

.btn--accent:hover {
  background-color: var(--accent-green-light);
}

.btn--sm {
  font-size: 0.6875rem;
  padding: 0.625rem 1.25rem;
  letter-spacing: var(--tracking-wider);
}

.btn--lg {
  padding: 1.125rem 2.75rem;
  font-size: var(--text-xs);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

.btn-group--center {
  justify-content: center;
}


/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero--sub {
  min-height: 65vh;
  min-height: 65dvh;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(18, 18, 16, 0.82) 0%,
    rgba(20, 20, 18, 0.58) 45%,
    rgba(22, 22, 20, 0.40) 100%
  );
  z-index: 1;
}

.hero--sub .hero__overlay {
  background: linear-gradient(
    165deg,
    rgba(18, 18, 16, 0.85) 0%,
    rgba(20, 20, 18, 0.68) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding-top: var(--header-height);
}

.hero__label {
  margin-bottom: var(--space-8);
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--space-10);
}

.hero__text {
  font-size: clamp(1rem, 0.5vw + 0.85rem, 1.125rem);
  line-height: var(--leading-relaxed);
  color: var(--stone-200);
  margin-bottom: var(--space-12);
  max-width: 580px;
}

.hero .btn-group {
  margin-top: var(--space-2);
}

/* Hero decorative line */
.hero__line {
  position: absolute;
  bottom: var(--space-12);
  left: var(--gutter);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--stone-400);
  font-size: 0.6875rem;
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.hero__line::before {
  content: '';
  width: 40px;
  height: 1px;
  background-color: var(--stone-500);
}


/* --------------------------------------------------------------------------
   8. CREDIBILITY INTRO
   -------------------------------------------------------------------------- */
.intro-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.intro-block__lead {
  position: relative;
}

.intro-block__lead .label {
  margin-bottom: var(--space-6);
}

.intro-block__lead h2 {
  position: sticky;
  top: calc(var(--header-height) + var(--space-10));
}

.intro-block__body {
  padding-top: var(--space-2);
}

.intro-block__body p {
  color: var(--color-text-secondary);
  font-size: clamp(1rem, 0.3vw + 0.9rem, 1.0625rem);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.intro-block__body p:last-child {
  margin-bottom: 0;
}


/* --------------------------------------------------------------------------
   9. SERVICE CARDS — borderless, shadow-on-hover for cleaner surfaces
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.service-card {
  padding: var(--space-10);
  background-color: var(--color-surface);
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  transition: box-shadow var(--duration-slow) var(--ease-premium),
              transform var(--duration-slow) var(--ease-premium);
  position: relative;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-card__number {
  font-size: 0.6875rem;
  font-weight: var(--font-weight-medium);
  color: var(--stone-400);
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-8);
  display: block;
}

.service-card h3 {
  margin-bottom: var(--space-4);
}

.service-card p {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  flex-grow: 1;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: var(--space-8);
  transition: color var(--duration-base) var(--ease-out),
              gap var(--duration-base) var(--ease-out);
}

.service-card:hover .service-card__link {
  color: var(--color-text-primary);
}

.service-card__link:hover {
  gap: var(--space-3);
}

.service-card__link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--duration-base) var(--ease-out);
}

.service-card:hover .service-card__link svg {
  transform: translateX(3px);
}

/* 5-card grid: bottom row stays at 2 columns, centered */
.services-grid .service-card:nth-child(4) {
  grid-column: 1 / 2;
}

.services-grid .service-card:nth-child(5) {
  grid-column: 2 / 3;
}


/* --------------------------------------------------------------------------
   10. PILLAR / VALUE CARDS
   -------------------------------------------------------------------------- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-10);
}

.pillar {
  position: relative;
  padding-top: var(--space-8);
}

.pillar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--duration-slow) var(--ease-out);
}

.pillar:hover::before {
  width: 36px;
}

.section--dark .pillar::before {
  background-color: var(--stone-400);
}

.pillar h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}

.pillar p {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-text-secondary);
}

.section--dark .pillar p {
  color: var(--color-text-on-dark-muted);
}


/* --------------------------------------------------------------------------
   11. PROCESS STEPS — larger editorial numbers
   -------------------------------------------------------------------------- */
.process-steps {
  counter-reset: process-step;
  max-width: 900px;
}

.process-step {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--space-8);
  padding: var(--space-12) 0;
  border-bottom: 1px solid var(--color-border-light);
  counter-increment: process-step;
}

.process-step:first-child {
  padding-top: 0;
}

.process-step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.process-step__number {
  font-size: var(--text-5xl);
  font-weight: var(--font-weight-light);
  color: var(--stone-200);
  letter-spacing: -0.04em;
  line-height: 1;
  padding-top: 0;
}

.section--dark .process-step__number {
  color: rgba(255,255,255,0.12);
}

.section--dark .process-step {
  border-bottom-color: rgba(255,255,255,0.06);
}

.process-step__content h3 {
  margin-bottom: var(--space-3);
}

.process-step__content p {
  color: var(--color-text-secondary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  max-width: 52ch;
}


/* --------------------------------------------------------------------------
   12. PROJECT CARDS
   -------------------------------------------------------------------------- */
.projects-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-12);
}

.filter-btn {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  padding: var(--space-3) var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: 0;
  color: var(--color-text-secondary);
  transition: background-color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
  cursor: pointer;
  min-height: 44px;
}

.filter-btn:hover,
.filter-btn--active {
  background-color: var(--charcoal-500);
  border-color: var(--charcoal-500);
  color: var(--off-white);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: opacity var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out);
}

.project-card__image {
  position: absolute;
  inset: 0;
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-premium);
}

.project-card:hover .project-card__image img {
  transform: scale(1.04);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(14, 14, 14, 0.72) 0%,
    rgba(14, 14, 14, 0.08) 55%,
    transparent 100%
  );
  z-index: 1;
  transition: opacity var(--duration-slow) var(--ease-out);
}

.project-card:hover .project-card__overlay {
  opacity: 0.9;
}

.project-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: var(--space-8) var(--space-8) var(--space-8);
  transform: translateY(4px);
  transition: transform var(--duration-slow) var(--ease-premium);
}

.project-card:hover .project-card__content {
  transform: translateY(0);
}

.project-card__tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--stone-300);
  margin-bottom: var(--space-3);
}

.project-card__title {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-medium);
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
  line-height: var(--leading-snug);
}

.project-card__meta {
  font-size: var(--text-sm);
  color: var(--stone-400);
  letter-spacing: 0.01em;
}

/* Feature card — more editorial proportions */
.project-card--large {
  grid-column: span 2;
  aspect-ratio: 2.2 / 1;
}


/* --------------------------------------------------------------------------
   13. TESTIMONIALS — cleaner surfaces, larger quotes
   -------------------------------------------------------------------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.testimonial {
  padding: var(--space-12) var(--space-10);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  transition: box-shadow var(--duration-slow) var(--ease-premium);
}

.testimonial:hover {
  box-shadow: var(--shadow-sm);
}

.testimonial__quote {
  font-size: clamp(1rem, 0.3vw + 0.9rem, 1.0625rem);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-10);
  position: relative;
  font-style: normal;
}

.testimonial__quote::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--color-accent);
  margin-bottom: var(--space-8);
}

.testimonial__author {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  letter-spacing: var(--tracking-snug);
}

.testimonial__detail {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
  letter-spacing: 0.01em;
}


/* --------------------------------------------------------------------------
   14. CTA SECTIONS — no double padding, constrained widths
   -------------------------------------------------------------------------- */
.cta-section {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section h2 {
  margin-bottom: var(--space-6);
}

.cta-section p {
  margin-left: auto;
  margin-right: auto;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-12);
}

.section--dark .cta-section p {
  color: var(--color-text-on-dark-muted);
}


/* --------------------------------------------------------------------------
   15. SERVICE DETAIL SECTIONS
   -------------------------------------------------------------------------- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
  padding: var(--section-py) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.service-detail:last-of-type {
  border-bottom: none;
}

.service-detail__number {
  font-size: 0.6875rem;
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  display: block;
}

.service-detail h3 {
  font-size: clamp(1.5rem, 2vw + 0.5rem, 2.125rem);
  margin-bottom: var(--space-8);
}

.service-detail__body p {
  color: var(--color-text-secondary);
  font-size: clamp(1rem, 0.3vw + 0.9rem, 1.0625rem);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.service-detail__fit {
  background-color: var(--color-bg-alt);
  padding: var(--space-8);
  border-radius: var(--radius-sm);
  margin-top: var(--space-6);
  border-left: 2px solid var(--color-accent);
}

.service-detail__fit-label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.service-detail__fit p {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

.service-detail__image {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  position: sticky;
  top: calc(var(--header-height) + var(--space-10));
}

.service-detail__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-premium);
}

.service-detail:hover .service-detail__image img {
  transform: scale(1.02);
}


/* --------------------------------------------------------------------------
   16. ABOUT VALUES
   -------------------------------------------------------------------------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.value-card {
  padding: var(--space-8) var(--space-8) var(--space-8) var(--space-10);
  border-left: 2px solid var(--color-accent);
  transition: border-color var(--duration-slow) var(--ease-out);
}

.value-card:hover {
  border-left-color: var(--accent-green-light);
}

.value-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

.value-card p {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-secondary);
}


/* --------------------------------------------------------------------------
   17. FORMS — premium input treatment
   -------------------------------------------------------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

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

.form-label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-primary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: 0;
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: var(--color-border);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--charcoal-300);
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.06);
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--stone-400);
}

.form-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%237A7369' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-5) center;
  padding-right: var(--space-12);
}

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

.form-submit {
  margin-top: var(--space-6);
}

.form-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
  margin-top: var(--space-6);
  max-width: 50ch;
}

/* Form success */
.form-success {
  display: none;
  padding: var(--space-16) var(--space-10);
  text-align: center;
}

.form-success.is-visible {
  display: block;
}

.form-success h3 {
  margin-bottom: var(--space-4);
}

.form-success p {
  color: var(--color-text-secondary);
  margin: 0 auto;
}

/* Contact info panel */
.contact-panel {
  padding: var(--space-12) var(--space-10);
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-sm);
}

.contact-panel h3 {
  margin-bottom: var(--space-8);
}

.contact-panel > p {
  margin-bottom: var(--space-10);
}


/* --------------------------------------------------------------------------
   18. CONTACT DETAILS
   -------------------------------------------------------------------------- */
.contact-info {
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border-light);
}

.contact-info__item {
  margin-bottom: var(--space-6);
}

.contact-info__item:last-child {
  margin-bottom: 0;
}

.contact-info__label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.contact-info__value {
  font-size: var(--text-base);
  color: var(--color-text-primary);
  line-height: var(--leading-normal);
}

.contact-info__value a {
  border-bottom: 1px solid var(--color-border-light);
  transition: border-color var(--duration-fast) var(--ease-out);
}

.contact-info__value a:hover {
  border-color: var(--color-text-primary);
}


/* --------------------------------------------------------------------------
   19. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--near-black);
  color: var(--color-text-on-dark);
  padding: var(--space-24) 0 var(--space-12);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-20);
}

.footer__brand-text {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--stone-500);
  max-width: 34ch;
  margin-top: var(--space-6);
}

.footer__logo {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--off-white);
}

.footer__logo span {
  font-weight: var(--font-weight-regular);
  opacity: 0.5;
}

.footer__heading {
  font-size: 0.6875rem;
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--stone-500);
  margin-bottom: var(--space-6);
}

.footer__link {
  display: block;
  font-size: var(--text-sm);
  color: var(--stone-400);
  padding: var(--space-1) 0;
  transition: color var(--duration-fast) var(--ease-out);
}

.footer__link:hover {
  color: var(--off-white);
}

.footer__text {
  display: block;
  font-size: var(--text-sm);
  color: var(--stone-400);
  padding: var(--space-1) 0;
  margin-top: var(--space-4);
  line-height: var(--leading-normal);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-10);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--stone-500);
  letter-spacing: 0.01em;
}

.footer__legal {
  display: flex;
  gap: var(--space-6);
}

.footer__legal a {
  font-size: var(--text-xs);
  color: var(--stone-500);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer__legal a:hover {
  color: var(--stone-300);
}


/* --------------------------------------------------------------------------
   20. UTILITIES
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }
.pt-0 { padding-top: 0; }

.text-center { text-align: center; }
.text-balance { text-wrap: balance; }

.max-w-narrow { max-width: var(--content-narrow); }
.mx-auto { margin-left: auto; margin-right: auto; }

.divider {
  width: 100%;
  height: 1px;
  background-color: var(--color-border-light);
  border: none;
}


/* --------------------------------------------------------------------------
   21. SCROLL REVEAL — more restrained motion, wider stagger
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--duration-reveal) var(--ease-premium),
              transform var(--duration-reveal) var(--ease-premium);
}

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

.reveal--delay-1 { transition-delay: 100ms; }
.reveal--delay-2 { transition-delay: 200ms; }
.reveal--delay-3 { transition-delay: 300ms; }
.reveal--delay-4 { transition-delay: 400ms; }
.reveal--delay-5 { transition-delay: 500ms; }

/* Staggered children — deliberate 100ms intervals */
.stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.stagger > .reveal:nth-child(2) { transition-delay: 100ms; }
.stagger > .reveal:nth-child(3) { transition-delay: 200ms; }
.stagger > .reveal:nth-child(4) { transition-delay: 300ms; }
.stagger > .reveal:nth-child(5) { transition-delay: 400ms; }
.stagger > .reveal:nth-child(6) { transition-delay: 500ms; }
.stagger > .reveal:nth-child(7) { transition-delay: 600ms; }
.stagger > .reveal:nth-child(8) { transition-delay: 700ms; }


/* --------------------------------------------------------------------------
   22. RESPONSIVE — TABLET (≤1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .split,
  .split--contact {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .intro-block {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .intro-block__lead h2 {
    position: static;
  }

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

  .services-grid .service-card:nth-child(5) {
    grid-column: auto;
  }

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

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

  .testimonials-grid .testimonial:nth-child(3) {
    grid-column: span 2;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
  }

  .service-detail {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .service-detail__image {
    position: static;
    aspect-ratio: 16 / 9;
    order: -1;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }
}


/* --------------------------------------------------------------------------
   23. RESPONSIVE — MOBILE (≤768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --header-height: 4rem;
    --section-py: clamp(3.5rem, 8vw, 5.5rem);
    --section-py-lg: clamp(4rem, 9vw, 6.5rem);
  }

  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__cta-mobile { display: block; }
  .hamburger { display: flex; }

  .hero {
    min-height: 88vh;
    min-height: 88dvh;
  }

  .hero--sub {
    min-height: 55vh;
    min-height: 55dvh;
  }

  .hero__content {
    padding-right: var(--space-4);
  }

  .hero__text {
    font-size: var(--text-base);
    margin-bottom: var(--space-10);
  }

  .hero__line {
    display: none;
  }

  .btn-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .btn-group .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .btn-group--center {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .services-grid .service-card:nth-child(4),
  .services-grid .service-card:nth-child(5) {
    grid-column: auto;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .pillar {
    padding-top: var(--space-6);
  }

  .process-steps {
    max-width: none;
  }

  .process-step {
    grid-template-columns: 56px 1fr;
    gap: var(--space-5);
    padding: var(--space-8) 0;
  }

  .process-step__number {
    font-size: var(--text-3xl);
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card--large {
    grid-column: auto;
    aspect-ratio: 4 / 3;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .testimonials-grid .testimonial:nth-child(3) {
    grid-column: auto;
  }

  .testimonial {
    padding: var(--space-10) var(--space-8);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

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

  .cta-section p {
    margin-left: 0;
  }

  .projects-filter {
    gap: var(--space-2);
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-2);
  }

  .filter-btn {
    flex-shrink: 0;
    min-height: 44px;
  }

  .section-header--center {
    text-align: left;
  }

  .section-header--center p {
    margin-left: 0;
  }

  .contact-panel {
    padding: var(--space-10) var(--space-8);
  }

  .section-header {
    margin-bottom: var(--space-12);
  }
}


/* --------------------------------------------------------------------------
   24. RESPONSIVE — SMALL MOBILE (≤480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .service-card {
    padding: var(--space-8) var(--space-6);
  }

  .project-card__content {
    padding: var(--space-6);
  }

  .project-card__title {
    font-size: var(--text-xl);
  }

  .contact-panel {
    padding: var(--space-8) var(--space-6);
  }
}


/* --------------------------------------------------------------------------
   25. PRINT STYLES
   -------------------------------------------------------------------------- */
@media print {
  .header,
  .hamburger,
  .mobile-nav,
  .hero__overlay,
  .btn,
  .footer {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 11pt;
  }

  .section {
    padding: 1rem 0;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  h1, h2, h3 {
    page-break-after: avoid;
  }
}
