/* =========================================================
   Pacific Modular — Design Tokens
   Premium architectural firm: minimal, timeless, luxury,
   spacious, confident. White-dominant, black text, light-grey
   structure, Pacific blue used only as a small accent.
   ========================================================= */
:root {
  /* ---- Color ----
     95% of every surface is white. Black (near-black) carries every
     heading, grey carries every line of body copy, and Pacific navy is
     reserved strictly for buttons, links, and small accents — never a
     section fill. No section on this page uses a tinted/cream
     background; white is the one surface color throughout. */
  --color-bg:         #FFFFFF;  /* white — the only section surface */
  --color-ink:        #111213;  /* near-black — every heading */
  --color-ink-soft:   #62666A;  /* grey — every line of body copy */
  --color-line:       #E3E3E1;  /* light grey — hairline dividers only */
  --color-line-strong:#CFCFCC;  /* slightly stronger grey for diagram detail */

  /* Pacific navy — official brand accent (#08243F). Used ONLY for:
     primary buttons, links, interactive states, small highlights,
     icons, and dividers where appropriate. No other blues anywhere. */
  --color-accent:      #08243F;
  --color-accent-dark: #061A2D; /* hover/active state for the accent */

  --color-dark-bg:    #0E0F10;  /* near-black — a single deliberate contrast section */
  --color-dark-line:  #2A2B2C;  /* hairlines on dark background */
  --color-dark-soft:  rgba(255, 255, 255, 0.64); /* secondary text on dark */

  /* ---- Type ----
     Archivo: architectural, confident sans for display/headings.
     Inter: neutral, highly legible sans for body copy.
     IBM Plex Mono: utility face for labels, specs, numerals. */
  --font-display: "Archivo", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  /* ---- Layout ---- */
  --container-w: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-pad: clamp(3.5rem, 10vw, 9rem);

  /* ---- Spacing system ----
     One shared scale drives section rhythm (grid gaps, block margins)
     everywhere on the page, so every section reads as one system
     instead of each having its own hand-picked numbers. */
  --space-1: 0.5rem;   /* 8px  */
  --space-2: 0.75rem;  /* 12px */
  --space-3: 1rem;     /* 16px */
  --space-4: 1.5rem;   /* 24px */
  --space-5: 2rem;     /* 32px */
  --space-6: 3rem;     /* 48px */
  --space-7: 4rem;     /* 64px */
  --space-8: 6rem;     /* 96px */

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* Offsets in-page anchor jumps (nav links, "Start a project", etc.) so
     content doesn't land underneath the fixed header. */
  scroll-padding-top: 88px;
}
@media (min-width: 720px) {
  html { scroll-padding-top: 100px; }
}
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd, blockquote, figure { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

@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;
    scroll-behavior: auto !important;
  }
}

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* =========================================================
   Skip link (keyboard/screen-reader accessibility)
   ========================================================= */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  background: var(--color-accent);
  color: #FFFFFF;
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 1rem;
}

/* =========================================================
   Reveal-on-scroll utility
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--color-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
@media (min-width: 720px) {
  .header-inner { height: 80px; }
}

/* Logo: cropped icon mark from the supplied brand artwork (unaltered,
   undistorted) paired with the existing type-set wordmark. The full
   lockup (icon + two lines of wordmark) is too tall to stay legible at
   header height, so the icon mark alone represents it here — swap
   assets/images/logo-icon.png for a final approved mark when ready; no
   markup or CSS changes needed as long as the replacement keeps a
   similar aspect ratio. See assets/images/logo-full.png and
   logo-source.png for the full lockup / original upload. */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent);
  transition: opacity 0.2s var(--ease);
}
.logo:hover { opacity: 0.72; }
@media (min-width: 720px) {
  .logo { font-size: 1.15rem; gap: 0.75rem; }
}
.logo-mark {
  display: block;
  height: 30px;
  width: auto;
}
@media (min-width: 720px) {
  .logo-mark { height: 34px; }
}
.logo-wordmark-sub {
  color: var(--color-ink-soft);
  font-weight: 500;
  margin-left: 0.35em;
}

/* Mobile-first: nav is a hidden slide-down panel by default,
   revealed by .is-open (toggled via JS). Becomes an inline
   row once there's room for it, and the toggle disappears. */
.main-nav {
  position: fixed;
  top: 68px;
  left: 0; right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
  padding: 0.5rem var(--gutter) 1.25rem;
  font-size: 1rem;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.main-nav.is-open { opacity: 1; transform: translateY(0); visibility: visible; box-shadow: 0 24px 32px -20px rgba(17, 18, 19, 0.14); }
.main-nav a {
  width: 100%;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--color-line);
  color: var(--color-ink-soft);
  font-weight: 500;
  transition: color 0.2s var(--ease);
  /* comfortable touch target */
  min-height: 44px;
  display: flex;
  align-items: center;
}
.main-nav a:hover { color: var(--color-accent); }
/* Same navy/white treatment as .btn-primary, by design (both read from
   --color-accent/-dark, so they can't drift out of sync) — but redeclared
   here rather than sharing the .btn classes. Reason: .main-nav a and
   .main-nav a:hover both have higher CSS specificity than .btn-primary's
   rules, so composing classes would make this button's text render
   navy-on-navy on hover unless carefully re-guarded. Not worth the risk
   without a real browser to verify against; revisit with visual testing
   available. */
.nav-cta {
  color: #FFFFFF !important;
  background: var(--color-accent);
  padding: 0.6rem 1.15rem !important;
  border-radius: 100px;
  border-bottom: none !important;
  margin-top: 0.85rem;
  justify-content: center !important;
  width: 100%;
}
.nav-cta:hover { background: var(--color-accent-dark); color: #FFFFFF !important; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--color-accent);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
/* Hamburger -> close (X), driven by .is-open toggled on the button in JS */
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 720px) {
  .main-nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: clamp(1.5rem, 2.5vw, 2.5rem);
    background: none;
    border-bottom: none;
    padding: 0;
    font-size: 0.94rem;
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .main-nav a {
    width: auto;
    padding: 0.4rem 0;
    border-bottom: none;
    min-height: 0;
    font-weight: 500;
  }
  .nav-cta { width: auto; margin-top: 0; }
  .nav-toggle { display: none; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: calc(68px + clamp(2.5rem, 8vw, 6rem)) 0 clamp(4rem, 12vw, 8.5rem);
  overflow: hidden;
}
@media (min-width: 720px) {
  .hero { padding-top: calc(80px + clamp(1rem, 2vw, 2rem)); }
}
/* Desktop/tablet only: tighten the gap between the CTA row and the hero
   photo below. Mobile keeps the original padding-bottom untouched. */
@media (min-width: 900px) {
  .hero { padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
  .hero-assembly { display: none; }
}
/* Hides the decorative assembly graphic at every width — the rule above
   only matched >=900px, so it stayed visible on mobile/tablet. Kept as a
   separate, unconditional rule placed after the media-query version so
   it wins by source order at every breakpoint without !important. HTML
   and the animation CSS below are left in place, just unused while the
   graphic is hidden. */
.hero-assembly { display: none; }
.hero-inner { max-width: 780px; position: relative; z-index: 2; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 7.5vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  color: var(--color-ink);
}
.hero-title em { font-style: normal; color: var(--color-accent); }

.hero-sub {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--color-ink-soft);
  max-width: 46ch;
  margin-bottom: var(--space-5);
}

.hero-actions { display: flex; flex-direction: column; gap: var(--space-2); align-items: stretch; }
.hero-actions .btn { width: 100%; }
@media (min-width: 480px) {
  .hero-title {
    font-size: clamp(2.5rem, 6.4vw, 4.4rem);
    line-height: 1.08;
    margin-bottom: var(--space-5);
  }
  .hero-sub {
    font-size: clamp(1.02rem, 1.4vw, 1.18rem);
    line-height: 1.6;
    margin-bottom: var(--space-6);
  }
  .hero-actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .hero-actions .btn { width: auto; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.85rem;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 500;
  min-height: 44px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
  border: 1px solid transparent;
}
.btn-primary { background: var(--color-accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--color-accent-dark); transform: translateY(-1px); }
.btn-ghost { color: var(--color-ink); }
.btn-ghost::after {
  content: "\2192";
  display: inline-block;
  margin-left: 0.6em;
  transition: transform 0.25s var(--ease);
}
.btn-ghost:hover::after { transform: translateX(4px); }
.btn-full { width: 100%; }

/* Hero assembly SVG (signature element) — rendered as a quiet,
   monochrome architectural line drawing; no colour intrusion. */
.hero-assembly {
  position: absolute;
  inset: auto 0 0 0;
  height: clamp(120px, 30vw, 300px);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, black 45%, transparent 100%);
  mask-image: linear-gradient(to top, black 45%, transparent 100%);
  z-index: 1;
}
.assembly-svg { width: 100%; height: 100%; }
.assembly-ground { stroke: var(--color-line); stroke-width: 1; }

.module rect {
  fill: rgba(17, 18, 19, 0.02);
  stroke: var(--color-line-strong);
  stroke-width: 1.25;
  opacity: 0;
  transform: translate(var(--tx), var(--ty));
  animation: assemble 1.1s var(--ease) forwards;
}
.module line { stroke: var(--color-line); stroke-width: 1; opacity: 0; animation: fadeIn 0.6s ease forwards; }
.module[data-order="1"] rect, .module[data-order="1"] line { animation-delay: 0.15s; }
.module[data-order="2"] rect, .module[data-order="2"] line { animation-delay: 0.32s; }
.module[data-order="3"] rect, .module[data-order="3"] line { animation-delay: 0.49s; }
.module[data-order="4"] rect, .module[data-order="4"] line { animation-delay: 0.66s; }
.module[data-order="5"] rect, .module[data-order="5"] line { animation-delay: 0.83s; }

@keyframes assemble {
  from { opacity: 0; transform: translate(var(--tx), var(--ty)); }
  to   { opacity: 1; transform: translate(0, 0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =========================================================
   Feature photo — full-bleed image band, no text overlay (so
   there's no contrast risk). Reused after the Hero and again to
   lead the Projects section. object-fit:cover crops to fill the
   frame without ever stretching or distorting the source photo.
   ========================================================= */
.feature-photo {
  width: 100%;
  height: clamp(260px, 45vw, 620px);
  object-fit: cover;
  object-position: center;
}
.projects-feature-photo {
  border-radius: 0;
  margin-bottom: var(--space-8);
}

/* =========================================================
   Marquee strip
   ========================================================= */
.strip {
  border-top: 1px solid var(--color-accent);
  border-bottom: 1px solid var(--color-accent);
  overflow: hidden;
  background: var(--color-bg);
}
.strip-track {
  display: flex;
  gap: 2.5rem;
  white-space: nowrap;
  width: max-content;
  padding: 1.1rem 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  animation: scroll-left 32s linear infinite;
}
/* Pause-on-hover is scoped to devices with a genuine pointer (mouse/
   trackpad). Touchscreens report a persistent :hover after the first
   tap/scroll touch (there's no pointer to "leave" with), which was
   permanently freezing the marquee on mobile the moment a visitor
   touched or scrolled past this band — this keeps that hover-pause
   desktop-only so the animation always runs continuously on touch. */
@media (hover: hover) and (pointer: fine) {
  .strip:hover .strip-track { animation-play-state: paused; }
}
@keyframes scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================================================
   Section shared
   ========================================================= */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}
.section-label--light { color: var(--color-dark-soft); }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.55rem, 7vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  max-width: 18ch;
  margin-bottom: clamp(2.25rem, 5vw, 3.75rem);
  color: var(--color-ink);
}
@media (min-width: 700px) {
  .section-title {
    font-size: clamp(1.9rem, 3.6vw, 2.6rem);
    line-height: 1.18;
  }
}
.section-title--light { color: #FFFFFF; }

/* =========================================================
   Philosophy
   ========================================================= */
.philosophy { padding: var(--section-pad) var(--gutter); }
/* Desktop/tablet only: top padding stays at the full --section-pad
   (balances against the hero photo above); bottom padding drops to
   match Process's own compact clamp so About doesn't stack a full
   --section-pad against Process's already-reduced top padding. */
@media (min-width: 700px) {
  .philosophy { padding-bottom: clamp(2.5rem, 8vw, 3.5rem); }
}
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 4vw, 4rem);
  align-items: start;
}
.philosophy-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.55rem, 7vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 20ch;
  margin-bottom: var(--space-4);
  color: var(--color-ink);
}
.philosophy-copy {
  max-width: 62ch;
  color: var(--color-ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
}
.philosophy-copy:not(:last-child) { margin-bottom: var(--space-3); }
@media (min-width: 900px) {
  .philosophy-grid { grid-template-columns: 200px 1fr; }
  .philosophy-title, .philosophy-copy { grid-column: 2; }
  .philosophy-title {
    font-size: clamp(1.5rem, 5vw, 2.35rem);
    line-height: 1.3;
    margin-bottom: var(--space-5);
  }
  .philosophy-copy { font-size: 1.08rem; line-height: 1.7; }
  /* .philosophy-grid's own gap already spaces this paragraph from the one
     above it as a separate grid row — this margin used to add --space-4
     on top of that, double-spacing the two paragraphs. Zeroed at this
     breakpoint only; mobile still uses --space-3 below. */
  .philosophy-copy:not(:last-child) { margin-bottom: 0; }
}

/* =========================================================
   Process
   ========================================================= */
/* Process reads as a compact connective section rather than a full
   chapter break: both top and bottom padding use the same reduced
   clamp at every width (not just mobile), so this section never
   stacks a full --section-pad against About/Projects on either
   touching edge. Heading-to-list gap still grows at 700px to match
   the rest of the page's internal rhythm. */
.process { padding-top: clamp(2.5rem, 8vw, 3.5rem); padding-bottom: clamp(2.5rem, 8vw, 3.5rem); }
#process .section-title { margin-bottom: var(--space-4); }
@media (min-width: 700px) {
  #process .section-title { margin-bottom: clamp(2.25rem, 5vw, 3.75rem); }
}
/* Label/heading share the page's standard 1200px grid (matching
   About/Projects); only the step list itself keeps the previous
   900px reading width, so the section aligns flush-left with its
   neighbours instead of sitting in its own independently-centred,
   narrower column. */
.process-list { max-width: 900px; border-top: 1px solid var(--color-line); }
.process-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-line);
}
@media (min-width: 700px) {
  .process-item {
    flex-direction: row;
    gap: clamp(1.25rem, 4vw, 3rem);
    padding: clamp(1.75rem, 3vw, 2.5rem) 0;
    align-items: baseline;
  }
}
.process-index {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--color-ink-soft);
  min-width: 2.5rem;
}
.process-item h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-1);
  color: var(--color-ink);
}
.process-item p { color: var(--color-ink-soft); max-width: 56ch; line-height: 1.65; }

/* =========================================================
   Projects
   ========================================================= */
.projects { padding: var(--section-pad) 0; }
/* This section's title is followed by an intro paragraph rather than
   going straight to the grid, so it needs a smaller gap than the other
   section titles — the intro paragraph carries the usual big gap
   instead, matching .section-title's default spacing so section rhythm
   still lines up with Process/Sustainability/Contact. */
.projects .section-title { margin-bottom: var(--space-4); }
.projects-disclosure {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  margin-bottom: var(--space-3);
}
.projects-intro {
  max-width: 62ch;
  color: var(--color-ink-soft);
  font-size: 1.04rem;
  line-height: 1.7;
  margin-bottom: clamp(2.25rem, 5vw, 3.75rem);
}
/* Full-width image areas, stacked, at every breakpoint — the point of
   this section is the photography, not a grid of small cards. Mobile
   gets a tighter --space-6 gap between cards (the full --space-8 read
   as an oversized empty band under the compact caption on short
   viewports); restored at 700px where there's room for it to breathe. */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
@media (min-width: 700px) {
  /* Top padding matches Process's compact clamp so Process → Projects
     doesn't stack a full --section-pad against Process's own reduced
     bottom padding; bottom padding keeps deliberate breathing room
     before Sustainability but steps down from the full --section-pad. */
  .projects { padding-top: clamp(2.5rem, 8vw, 3.5rem); padding-bottom: var(--space-8); }
  .projects-grid { gap: var(--space-7); }
}
/* Wrapper enforces the 16:9 frame and clips the img to it — the ratio
   used to live directly on the <img>, which relied on the browser
   resolving aspect-ratio + object-fit on a replaced element correctly.
   Moved to an explicit wrapper (aspect-ratio + overflow:hidden) with
   the img sized to width:100%/height:100% inside it, which is the more
   bulletproof, long-standing cross-browser pattern and doesn't depend
   on img-specific aspect-ratio resolution at all. */
.project-visual-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: var(--space-4);
  background: var(--color-line); /* visible briefly while the image loads */
}
.project-visual {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.4s var(--ease);
}
.project-card:hover .project-visual { opacity: 0.92; }
/* Stacked on mobile so the (often long) location/platform metadata
   never has to share a cramped side-by-side column with the project
   name — that's what was forcing awkward one-word wrapping at
   320-430px. Restored to the original row/space-between layout at
   700px, matching the .process-item row breakpoint. */
.project-meta { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-1); }
.project-meta h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.01em; color: var(--color-ink); }
.project-meta span { font-family: var(--font-mono); font-size: 0.8rem; color: var(--color-ink-soft); }
@media (min-width: 700px) {
  .project-meta { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 1rem; }
  .project-meta span { text-align: right; }
}

/* =========================================================
   Sustainability (dark section)
   ========================================================= */
.sustainability { padding: var(--section-pad) 0; background: var(--color-dark-bg); color: #FFFFFF; }
/* Desktop/tablet only: both sides step down from the full --section-pad
   so Projects → Sustainability → Contact doesn't compound two full
   section paddings on each touching edge. Background, colour and
   content are untouched. */
@media (min-width: 700px) {
  .sustainability { padding: var(--space-8) 0; }
}
.sustainability-copy { color: var(--color-dark-soft); max-width: 52ch; font-size: 1.03rem; line-height: 1.7; }

/* =========================================================
   Testimonial
   ========================================================= */
.testimonial { padding: var(--section-pad) var(--gutter); text-align: center; }
.testimonial blockquote { max-width: 720px; margin: 0 auto; }
.testimonial p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  letter-spacing: -0.01em;
  line-height: 1.45;
  color: var(--color-ink);
  margin-bottom: var(--space-4);
}
.testimonial cite { font-family: var(--font-mono); font-style: normal; font-size: 0.8rem; color: var(--color-ink-soft); }

/* =========================================================
   Contact
   ========================================================= */
.contact { padding: var(--section-pad) 0; background: var(--color-bg); }
/* Desktop/tablet only: top padding steps down to match Sustainability's
   reduced bottom padding above; bottom padding and horizontal behaviour
   stay at the full --section-pad, untouched. */
@media (min-width: 700px) {
  .contact { padding-top: var(--space-8); }
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: start;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
}
.contact-copy { color: var(--color-ink-soft); max-width: 42ch; line-height: 1.65; }
.contact-email { margin-top: var(--space-3); color: var(--color-ink-soft); max-width: 42ch; line-height: 1.65; }
.contact-email a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 0.15em; }
.contact-email a:hover { color: var(--color-accent-dark); }

.contact-form { display: flex; flex-direction: column; gap: var(--space-4); }
.form-row { display: flex; flex-direction: column; gap: var(--space-1); }
.form-row label { font-size: 0.85rem; color: var(--color-ink-soft); }
/* Minimal underline fields — no boxed input, consistent with the rest
   of the page's borderless, line-driven visual system. */
.form-row input, .form-row textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-line);
  border-radius: 0;
  padding: 0.75rem 0;
  font-size: 16px; /* prevents iOS auto-zoom on focus */
  resize: vertical;
  transition: border-color 0.25s var(--ease);
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-bottom-color: var(--color-accent);
}
.form-note { font-size: 0.85rem; color: var(--color-accent); min-height: 1.2em; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { border-top: 1px solid var(--color-line); padding: 2.75rem 0; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
}
.logo--footer { font-size: 1.1rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--space-4); font-size: 0.88rem; color: var(--color-ink-soft); }
.footer-nav a:hover { color: var(--color-accent); }
.footer-meta { width: 100%; font-size: 0.8rem; color: var(--color-ink-soft); font-family: var(--font-mono); }

/* Keyboard focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* =========================================================
   Mobile-first polish
   ========================================================= */
/* Section rhythm stays tighter on small screens via --section-pad's
   clamp() minimum; container gutter likewise shrinks via --gutter.
   Everything above (grids, nav, hero) is written mobile-first,
   with min-width media queries layering in the desktop layout. */

/* Centred mobile presentation (<700px). Marketing copy reads centred
   on phones/small tablets instead of flush-left; reverted to the
   original left-aligned layout at the existing 700px breakpoint so
   desktop/tablet is pixel-identical to before. Contact-form fields,
   project metadata and the mobile nav are untouched. */
.eyebrow,
.hero-title,
.philosophy-title,
.philosophy .section-label,
.projects-disclosure,
#process .section-label,
#process .section-title,
#projects .section-label,
#projects .section-title,
#sustainability .section-label,
#sustainability .section-title,
#contact .section-label,
#contact .section-title {
  text-align: center;
}
.hero-sub,
.philosophy-copy,
.projects-intro,
.sustainability-copy,
.contact-copy,
.contact-email,
#process .section-title,
#projects .section-title,
#sustainability .section-title,
#contact .section-title {
  margin-left: auto;
  margin-right: auto;
}
.hero-actions { justify-content: center; }
.footer-inner { justify-content: center; }
.footer-nav { justify-content: center; }

@media (min-width: 700px) {
  .eyebrow,
  .hero-title,
  .philosophy-title,
  .philosophy .section-label,
  .projects-disclosure,
  #process .section-label,
  #process .section-title,
  #projects .section-label,
  #projects .section-title,
  #sustainability .section-label,
  #sustainability .section-title,
  #contact .section-label,
  #contact .section-title {
    text-align: left;
  }
  .hero-sub,
  .philosophy-copy,
  .projects-intro,
  .sustainability-copy,
  .contact-copy,
  .contact-email,
  #process .section-title,
  #projects .section-title,
  #sustainability .section-title,
  #contact .section-title {
    margin-left: 0;
    margin-right: 0;
  }
  .hero-actions { justify-content: flex-start; }
  .footer-inner { justify-content: space-between; }
  .footer-nav { justify-content: flex-start; }
}

@media (min-width: 1200px) {
  .container { padding: 0 var(--gutter); }
}
