/* ===============================================================
   Drydel — site-wide stylesheet
   Direction: warm cream canvas, Inter, layered depth,
   Drydel orange as single accent. Same language across all pages.
   =============================================================== */

:root {
  --bg:        #F4EFE6;
  --bg-soft:   #EDE7DB;
  --bg-white:  #FAF7F0;
  --bg-bright: #FBF8F1;
  --ink:       #1C1C1E;
  --ink-2:     #3A3A3C;
  --muted:     #6B6B6E;
  --dim:       #9A9691;
  --line:      rgba(28,28,30,.10);
  --line-soft: rgba(28,28,30,.06);
  --accent:    #C85B1B;
  --accent-dk: #A84610;

  --max:       1280px;
  --reading:   780px;
  --pad:       clamp(24px, 5vw, 80px);

  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;

  --ease:      cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(255, 236, 210, 0.45), transparent 60%),
    radial-gradient(900px 600px at 100% 100%, rgba(200, 91, 27, 0.05), transparent 55%);
  pointer-events: none; z-index: 0;
}
body > * { position: relative; z-index: 1; }

img, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

/* ============ typography primitives ============ */
.display {
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 28px;
}
.display-sm {
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 24px;
}
.h1 { font-size: clamp(40px, 6vw, 80px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; color: var(--ink); }
.h2 { font-size: clamp(32px, 4.5vw, 56px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 600; color: var(--ink); }
.h3 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.h4 { font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 8px; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.eyebrow-mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 620px;
  margin: 0 0 28px;
  letter-spacing: -0.008em;
}
.lede-md {
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 700px;
  margin: 24px auto 28px;
}

p, .body { font-size: 17px; line-height: 1.6; color: var(--ink-2); }
p.muted { color: var(--muted); }

/* ============ buttons / links ============ */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #D66A20 0%, var(--accent) 55%, #BA511A 100%);
  color: #fff;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    inset 0 -1px 0 rgba(0,0,0,.18),
    0 1px 2px rgba(0,0,0,.10),
    0 8px 18px -4px rgba(200,91,27,.35),
    0 16px 32px -12px rgba(200,91,27,.30);
  transition: transform .25s var(--ease), filter .25s var(--ease), box-shadow .25s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-primary:active { transform: translateY(0); }

.btn-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 4px;
  transition: gap .25s var(--ease), color .25s var(--ease);
}
.btn-link:hover { color: var(--accent-dk); gap: 10px; }

.actions { display: inline-flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.actions.center { justify-content: center; }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--pad);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 6px 20px -10px rgba(28,28,30,.12);
}
.brand { display: inline-flex; align-items: center; }
.logo { height: 56px; width: auto; transition: opacity .2s var(--ease); }
.brand:hover .logo { opacity: .85; }
.logo-foot { height: 72px; }

.links { display: flex; gap: 36px; align-items: center; }
.links a {
  font-size: 14.5px; font-weight: 400; color: var(--ink-2);
  padding: 4px 0; position: relative;
  transition: color .2s var(--ease);
}
.links a:hover { color: var(--ink); }
.links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px; background: var(--accent);
  transition: width .3s var(--ease);
}
.links a:hover::after,
.links a.active::after { width: 100%; }
.links a.active { color: var(--ink); }
.links a.mother {
  font-weight: 500;
  color: var(--accent);
}
.links a.mother .c { color: var(--accent); }

@media (max-width: 640px) {
  .logo { height: 44px; }
  .logo-foot { height: 56px; }
  .links { display: none; }
}

/* ============ PAGE HERO (interior pages) ============ */
.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px var(--pad) 32px;
}
.page-hero .display,
.page-hero .display-sm { margin-bottom: 24px; }

/* ============ HOME HERO ============ */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 88px var(--pad) 48px;
}
@media (max-width: 640px) { .hero { padding-top: 56px; padding-bottom: 32px; } }

.hero-image {
  max-width: var(--max);
  margin: 0 auto 96px;
  padding: 0 var(--pad);
}
.hero-image img {
  width: 100%;
  height: clamp(320px, 56vh, 640px);
  object-fit: cover;
  border-radius: 24px;
  filter: contrast(1.03) saturate(1.06);
  box-shadow:
    0 1px 2px rgba(28,28,30,.06),
    0 4px 12px rgba(28,28,30,.08),
    0 24px 48px -18px rgba(28,28,30,.22),
    0 60px 120px -40px rgba(28,28,30,.28);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.hero-image img:hover { transform: translateY(-3px); }

.page-image {
  max-width: var(--max);
  margin: 0 auto 80px;
  padding: 0 var(--pad);
}
.page-image img {
  width: 100%;
  height: clamp(280px, 50vh, 540px);
  object-fit: cover;
  border-radius: 24px;
  filter: contrast(1.03) saturate(1.06);
  box-shadow:
    0 1px 2px rgba(28,28,30,.06),
    0 4px 12px rgba(28,28,30,.08),
    0 24px 48px -18px rgba(28,28,30,.22);
}

/* ============ SECTIONS / LAYOUT ============ */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) 96px;
}
.section-tight { padding-bottom: 72px; }
.section.bg-bright {
  max-width: none;
  background: var(--bg-white);
  padding: 88px var(--pad);
  margin-bottom: 96px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.section.bg-bright > * { max-width: var(--max); margin-left: auto; margin-right: auto; }

.section-head { max-width: var(--reading); margin: 0 auto 56px; text-align: center; }
.section-head.left { text-align: left; margin-left: 0; max-width: 800px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.two-col.flip { grid-template-columns: 1.15fr 1fr; }
.two-col img {
  width: 100%;
  height: clamp(320px, 44vw, 540px);
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 14px 40px -16px rgba(28,28,30,.18);
}
@media (max-width: 860px) { .two-col, .two-col.flip { grid-template-columns: 1fr; gap: 28px; } }
/* text + capabilities columns should top-align (image two-cols stay centered) */
.two-col:has(.caps) { align-items: start; }

/* ============ CAPABILITIES LIST ============ */
.caps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 32px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-top: 12px;
}
.caps li {
  font-size: 16.5px;
  color: var(--ink-2);
  padding-left: 22px;
  position: relative;
  line-height: 1.55;
}
.caps li::before {
  content: "";
  position: absolute; left: 0; top: 11px;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
@media (max-width: 720px) { .caps { grid-template-columns: 1fr; } }

/* ============ NUMBERED PROCESS ============ */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.process .step {
  background: var(--bg-bright);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 24px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 1px 2px rgba(28,28,30,.04);
}
.step-n {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.step-name { font-weight: 600; color: var(--ink); margin-bottom: 8px; font-size: 18px; }
.step-body { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
@media (max-width: 880px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .process { grid-template-columns: 1fr; } }

/* ============ GC-OR-SUB CALLOUT ============ */
.gc-sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 36px -18px rgba(28,28,30,.16);
}
.gc-sub > div {
  padding: 32px 28px;
  background: var(--bg-bright);
}
.gc-sub > div + div {
  border-left: 1px solid var(--line);
  background: var(--bg-white);
}
.gc-sub h4 {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.gc-sub h4::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.gc-sub p { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 720px) {
  .gc-sub { grid-template-columns: 1fr; }
  .gc-sub > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

/* ============ NUMBERS BLOCK ============ */
.numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 40px 48px;
  background: linear-gradient(180deg, var(--bg-white), color-mix(in srgb, var(--bg-white) 80%, #fff));
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 10px 28px -12px rgba(28,28,30,.14);
  text-align: center;
  margin-top: 32px;
}
.numbers > div { display: flex; flex-direction: column; align-items: center; position: relative; }
.numbers > div + div::before {
  content: ""; position: absolute; left: -20px; top: 10%;
  width: 1px; height: 80%;
  background: linear-gradient(180deg, transparent, rgba(28,28,30,.08), transparent);
}
.n {
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.n sup { font-size: 0.5em; top: -0.4em; margin-left: 2px; color: var(--accent); }
.nl { margin-top: 14px; font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }
@media (max-width: 780px) {
  .numbers { grid-template-columns: repeat(2, 1fr); padding: 32px 24px; gap: 24px; }
  .numbers > div + div::before { display: none; }
}

/* ============ RELATED SERVICES STRIP ============ */
.related {
  margin-top: 64px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}
.related-card {
  display: block;
  padding: 22px;
  background: var(--bg-bright);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px -10px rgba(28,28,30,.12);
  border-color: var(--line);
}
.related-card .eyebrow-mono { display: block; margin-bottom: 8px; }
.related-card h4 { color: var(--ink); margin: 0 0 8px; }
.related-card p { font-size: 14px; color: var(--muted); margin: 0; }
.related-card .arrow {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  transition: transform .25s var(--ease);
}
.related-card:hover .arrow { transform: translateX(4px); }
@media (max-width: 880px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .related-grid { grid-template-columns: 1fr; } }

/* ============ TABLE (vendor profile / faq) ============ */
.tbl {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 15.5px;
}
.tbl th, .tbl td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.tbl th {
  font-weight: 500;
  color: var(--ink);
  background: var(--bg-bright);
  width: 30%;
}
.tbl td { color: var(--ink-2); }

/* ============ FAQ ACCORDION ============ */
.faq { max-width: 880px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%;
  background: transparent; border: 0; cursor: pointer;
  text-align: left;
  padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  font-size: 18px; font-weight: 500; color: var(--ink);
  letter-spacing: -0.01em;
  transition: color .2s var(--ease);
}
.faq-q:hover { color: var(--accent); }
.faq-q::after {
  content: "+";
  font-size: 22px; font-weight: 300; color: var(--accent);
  transition: transform .25s var(--ease);
  flex-shrink: 0;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s var(--ease), padding .3s var(--ease);
}
.faq-item.open .faq-a { max-height: 600px; padding: 0 0 22px; }
.faq-a p { color: var(--ink-2); font-size: 16px; line-height: 1.65; max-width: 760px; }

/* ============ CONTACT GRID ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 24px;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-row label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-row input, .form-row select, .form-row textarea {
  background: var(--bg-bright);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s var(--ease);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--accent); }
.form-row textarea { min-height: 120px; resize: vertical; }

.contact-info dt {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 18px;
}
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { font-size: 17px; color: var(--ink); margin-top: 4px; }
.contact-info dd a { color: var(--accent); }

/* ============ CTA ============ */
.cta {
  background: var(--bg-soft);
  padding: 96px var(--pad);
  text-align: center;
}
.cta .h1 { max-width: 900px; margin: 0 auto 24px; }
.cta p { color: var(--ink-2); max-width: 640px; margin: 0 auto 32px; }
@media (max-width: 640px) { .cta { padding: 64px var(--pad); } }

/* ============ STATEMENT (homepage) ============ */
.statement {
  max-width: var(--max);
  margin: 0 auto 96px;
  padding: 0 var(--pad);
  text-align: center;
}
.lede-lg {
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.35;
  color: var(--ink);
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  letter-spacing: -0.015em;
}
.lede-lg em { font-style: normal; color: var(--accent); }

/* ============ CLIENT WALL ============ */
.clients {
  max-width: var(--max);
  margin: 0 auto 96px;
  padding: 0 var(--pad);
}
.client-list {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}
.client-list li {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 10px 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-white) 92%, #fff), var(--bg-white));
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 1px 2px rgba(28,28,30,.04);
  transition: color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.client-list li:hover {
  color: var(--accent); transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 4px 12px rgba(28,28,30,.08);
}
@media (max-width: 640px) {

}

/* ============ SERVICES OVERVIEW GRID ============ */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}
.svc-card {
  display: flex; flex-direction: column;
  padding: 28px 24px 24px;
  background: var(--bg-bright);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  height: 100%;
}
.svc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px -14px rgba(28,28,30,.16);
  border-color: var(--line);
}
.svc-card .num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 14px;
}
.svc-card h3 {
  font-size: 22px; font-weight: 600; letter-spacing: -0.02em;
  color: var(--ink); margin-bottom: 10px;
}
.svc-card p { font-size: 14.5px; color: var(--muted); line-height: 1.55; flex: 1; }
.svc-card .arrow {
  margin-top: 18px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  transition: transform .25s var(--ease);
}
.svc-card:hover .arrow { transform: translateX(4px); }
@media (max-width: 980px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }

/* ============ PROJECT INDEX (table) ============ */
.proj-idx {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 15.5px;
}
.proj-idx th, .proj-idx td {
  text-align: left;
  padding: 18px 12px;
  border-bottom: 1px solid var(--line);
}
.proj-idx th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  background: transparent;
}
.proj-idx td.name { font-weight: 500; color: var(--ink); }
.proj-idx tr { transition: background .2s var(--ease); }
.proj-idx tbody tr:hover { background: var(--bg-bright); }
.proj-idx td.year { font-family: var(--font-mono); color: var(--muted); }

/* ============ FOOTER ============ */
.foot {
  background: var(--bg);
  padding: 64px var(--pad) 32px;
  border-top: 1px solid var(--line);
}
.foot-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.foot-brand p { margin-top: 20px; font-size: 14.5px; line-height: 1.6; color: var(--muted); max-width: 320px; }
.foot h4 { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--ink); margin-bottom: 18px; }
.foot ul { display: flex; flex-direction: column; gap: 10px; }
.foot ul a, .foot ul li { font-size: 14.5px; color: var(--muted); transition: color .2s var(--ease); }
.foot ul a:hover { color: var(--accent); }
.foot-bottom {
  max-width: var(--max);
  margin: 28px auto 0;
  display: flex; justify-content: space-between;
  font-size: 13px;
  color: var(--dim);
}
@media (max-width: 780px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .foot-bottom { flex-direction: column; gap: 8px; }
}
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}


/* ============================================================
   MOBILE OPTIMIZATIONS
   ============================================================ */

/* hamburger button — hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 10px 8px;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 5px;
  z-index: 60;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
  transform-origin: center;
}

/* Tablet & mobile (<= 880px) — center hero content + headings */
@media (max-width: 880px) {
  .hero,
  .page-hero {
    text-align: center;
    padding-top: 56px;
    padding-bottom: 32px;
  }
  .hero .lede,
  .page-hero .lede,
  .hero .display,
  .hero .display-sm,
  .page-hero .display,
  .page-hero .display-sm {
    margin-left: auto;
    margin-right: auto;
  }
  .hero .actions,
  .page-hero .actions { justify-content: center; }
  .hero .eyebrow,
  .page-hero .eyebrow { display: block; }

  /* Section heads centered (incl. left-aligned variant) */
  .section-head,
  .section-head.left {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 720px;
  }
  .section-head .lede,
  .section-head p { margin-left: auto; margin-right: auto; }

  /* Two-col content — heading + intro centered, body left-aligned */
  .two-col .eyebrow,
  .two-col h2,
  .two-col h3 { text-align: center; }
  .two-col .actions { justify-content: center; }

  /* Featured-work two-col: stack and center */
  .section.bg-bright .two-col > div { text-align: center; }
  .section.bg-bright .two-col > div[style*="text-align: right"] { text-align: center !important; }

  /* Numbers block tightens */
  .numbers { padding: 32px 20px; gap: 32px 20px; }

  /* Statement section centered (already is, just confirming) */
  .statement { padding-left: var(--pad); padding-right: var(--pad); }

  /* About page caps list is fine left-aligned */

  /* CTA already centered */
  .cta { padding: 64px var(--pad); }

  /* Service grid stacks to 2 then 1 */
  .svc-grid { gap: 12px; }

  /* GC-or-sub stacks already; ensure consistent spacing */
  .gc-sub > div { padding: 24px 22px; }

  /* Process steps tighten */
  .process { gap: 14px; }
  .process .step { padding: 20px 18px; }

  /* Related cards tighten */
  .related-grid { gap: 12px; }
  .related-card { padding: 20px 18px; }

  /* Page hero image height reduced */
  .page-image img { height: clamp(220px, 38vh, 360px); }
  .hero-image img { height: clamp(240px, 40vh, 380px); }
  .two-col img { height: clamp(220px, 36vh, 360px); }
}

/* Mobile-only — < 640px: hamburger menu, full-width nav drawer */
@media (max-width: 640px) {
  .nav { padding: 12px var(--pad); }
  .nav-toggle { display: inline-flex; }

  /* mobile menu now drops DOWN from the nav bar with a smooth transition */
  .links {
    display: flex;                    /* always flex; reveal via max-height */
    position: absolute;
    top: 100%;                        /* hangs directly under the nav */
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-top: 1px solid var(--line);
    box-shadow: 0 16px 32px -16px rgba(28,28,30,.18);
    padding: 0 var(--pad);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height .35s var(--ease),
                padding      .35s var(--ease),
                visibility   .35s;
  }
  body.nav-open .links {
    max-height: 70vh;
    padding: 8px var(--pad) 24px;
    visibility: visible;
  }
  body.nav-open { overflow: hidden; }
  .links a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 17px;
    color: var(--ink);
    width: 100%;
  }
  .links a:last-child { border-bottom: 0; }
  .links a::after { display: none; }
  .links a.mother { color: var(--accent); font-weight: 600; }
  /* hamburger animates to X when open */
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Hide some table columns on mobile (project index) */
  .proj-idx th:nth-child(3),
  .proj-idx td:nth-child(3),
  .proj-idx th:nth-child(4),
  .proj-idx td:nth-child(4) { display: none; }
  .proj-idx th, .proj-idx td { padding: 14px 8px; font-size: 14px; }

  /* Vendor-profile tables: tighter padding */
  .tbl th, .tbl td { padding: 12px 14px; font-size: 14.5px; }
  .tbl th { width: 40%; }

  /* FAQ Q tightens */
  .faq-q { padding: 18px 0; font-size: 16px; }

  /* Contact form rows */
  .contact-grid { gap: 32px; }

  /* Service grid stacks to 1 */
  .svc-grid { grid-template-columns: 1fr; }

  /* Section padding tightens */
  .section { padding: 0 var(--pad) 64px; }
  .section.bg-bright { padding: 56px var(--pad); margin-bottom: 64px; }
  .hero, .page-hero { padding-left: var(--pad); padding-right: var(--pad); }

  /* Footer single-col */
  .foot { padding: 48px var(--pad) 28px; }
  .foot-grid { gap: 32px; }

  /* Logo set above in 640px breakpoint — keep brand z-index for hamburger overlay */
  .brand { z-index: 60; }
}

@media (max-width: 420px) {
  /* extra-small phones */
  .display, .display-sm, .h1, .h2 { letter-spacing: -0.035em; }
  .display { font-size: clamp(40px, 11vw, 56px); }
  .display-sm { font-size: clamp(34px, 9.5vw, 48px); }
  .h2 { font-size: clamp(28px, 8vw, 40px); }
  .lede { font-size: 17px; }
  .lede-md { font-size: 18px; }
}


/* ============================================================
   CLIENT WALL — logo grid (overrides the earlier pill rules)
   ============================================================ */
.client-list {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  flex-wrap: nowrap !important;
  max-width: 1080px;
}
.client-list li {
  background: #FFFFFF !important;
  border: 1px solid var(--line-soft) !important;
  border-radius: 12px !important;
  height: 92px;
  padding: 16px 18px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(28,28,30,.04) !important;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease) !important;
  overflow: hidden;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: var(--ink-2) !important;
  text-align: center;
}
.client-list li:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 22px -10px rgba(28,28,30,.14) !important;
  color: var(--accent) !important;
}
.client-list li img {
  max-height: 44px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .8;
  transition: filter .25s var(--ease), opacity .25s var(--ease);
}
.client-list li:hover img {
  filter: grayscale(0);
  opacity: 1;
}
.client-list li span {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: inherit;
}
@media (max-width: 880px) {
  .client-list { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 480px) {
  .client-list { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  .client-list li { height: 76px !important; padding: 12px !important; }
  .client-list li img { max-height: 34px; }
}


/* ============================================================
   CLIENT WALL — logo + name stacked
   ============================================================ */
.client-list li {
  flex-direction: column !important;
  gap: 10px !important;
  height: 112px !important;
  padding: 14px 12px !important;
}
.client-list li img {
  max-height: 36px;
  flex: none;
}
.client-list li .name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: -0.005em;
  text-align: center;
  line-height: 1.2;
}
.client-list li:hover .name {
  color: var(--ink);
}
/* text-only cells: bigger name since there's no logo */
.client-list li.no-logo {
  align-items: center;
  justify-content: center;
}
.client-list li.no-logo .name {
  font-size: 15px;
  color: var(--ink-2);
}
@media (max-width: 480px) {
  .client-list li { height: 96px !important; padding: 10px 8px !important; }
  .client-list li img { max-height: 28px; }
  .client-list li .name { font-size: 11.5px; }
}

/* ====== Featured project meta block (homepage) ====== */
.featured-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: clamp(28px, 4vw, 48px);
}
.featured-text p { font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.featured-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
@media (max-width: 860px) {
  .featured-meta { grid-template-columns: 1fr; align-items: start; gap: 20px; }
  .featured-actions { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 18px; }
}

/* ====== Featured project hero (clickable) ====== */
.featured-link { display: block; text-decoration: none; transition: opacity .2s ease; margin-bottom: 32px; }
.featured-figure { margin: 0; }
.featured-figure img {
  display: block; width: 100%; max-width: 100%;
  height: auto; max-height: 640px; object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,.10);
  transition: transform .25s ease, box-shadow .25s ease;
}
.featured-link:hover .featured-figure img { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0,0,0,.16); }
@media (max-width: 600px) {
  .featured-figure img { max-height: 320px; border-radius: 8px; }
}

/* ====== Project case-study page ====== */
.project-hero {
  max-width: var(--max);
  margin: 0 auto 0;
  padding: 0 var(--pad);
}
.project-hero img {
  width: 100%;
  height: auto;
  max-height: 640px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,.10);
  display: block;
}
@media (max-width: 600px) {
  .project-hero img { max-height: 320px; border-radius: 8px; }
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 32px;
  row-gap: 28px;
  margin: 32px 0 0;
  padding: 28px 0;
  border-top: 1px solid rgba(0,0,0,.08);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.project-meta .item {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.project-meta .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin: 0 0 8px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-meta .value {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  line-height: 1.45;
}
@media (max-width: 900px) {
  .project-meta { grid-template-columns: repeat(2, 1fr); column-gap: 24px; row-gap: 22px; }
}
@media (max-width: 480px) {
  .project-meta { grid-template-columns: 1fr; row-gap: 18px; padding: 22px 0; }
  .project-meta .value { font-size: 16px; }
}

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 32px 0 0; }
.gallery-grid a { display: block; overflow: hidden; border-radius: 8px; background: #eee; aspect-ratio: 4/3; box-shadow: 0 1px 3px rgba(0,0,0,.06); transition: transform .2s ease, box-shadow .2s ease; }
.gallery-grid a:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.gallery-grid a:hover img { transform: scale(1.04); }

@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery-grid a { border-radius: 6px; }
}

/* ====== Lightbox ====== */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(8,8,10,.94);
  display: none; opacity: 0;
  transition: opacity .2s ease;
  align-items: center; justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox-stage {
  position: relative; max-width: 100%; max-height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.lightbox img {
  display: block;
  max-width: calc(100vw - 120px);
  max-height: calc(100vh - 120px);
  width: auto; height: auto;
  object-fit: contain;
  box-shadow: 0 12px 60px rgba(0,0,0,.6);
  border-radius: 4px;
  user-select: none; -webkit-user-drag: none;
}
.lightbox-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.10); border: 0;
  color: #fff; font-size: 24px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
  font-family: -apple-system, system-ui, sans-serif;
}
.lightbox-btn:hover { background: rgba(255,255,255,.22); }
.lightbox-btn.prev { left: 16px; }
.lightbox-btn.next { right: 16px; }
.lightbox-close {
  position: absolute; top: 16px; right: 16px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.10); border: 0;
  color: #fff; font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease; line-height: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,.22); }
.lightbox-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.85);
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  letter-spacing: .08em;
  background: rgba(0,0,0,.4); padding: 6px 14px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
body.lightbox-open { overflow: hidden; }

@media (max-width: 600px) {
  .lightbox { padding: 0; }
  .lightbox img { max-width: 100vw; max-height: 100vh; border-radius: 0; }
  .lightbox-btn { width: 44px; height: 44px; font-size: 20px; }
  .lightbox-btn.prev { left: 8px; }
  .lightbox-btn.next { right: 8px; }
  .lightbox-close { top: 12px; right: 12px; width: 40px; height: 40px; }
}

/* ====== Mobile safety + project page mobile ====== */
html, body { overflow-x: hidden; }
body { max-width: 100vw; }

@media (max-width: 600px) {
  /* page-hero h1 was too big on phone — reduce so it fits */
  .page-hero .display-sm {
    font-size: clamp(30px, 9vw, 44px);
    line-height: 1.08;
    margin-bottom: 18px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .page-hero { padding: 32px var(--pad) 24px; }
  .page-hero .lede { font-size: 16px; line-height: 1.55; }

  /* tighter section padding on phone */
  .section { padding-bottom: 48px; }
  .section.bg-bright { padding: 44px var(--pad); margin-bottom: 48px; }

  /* keep the two-col h2 from getting too large */
  .section.bg-bright .two-col h2 { font-size: clamp(26px, 7.5vw, 36px); }
}
