/* ── Brunco Construction ─ design tokens ─────────────────────────── */
:root {
  --ink: #14181d;        /* page ground, slate ink */
  --ink-2: #191e24;      /* tint shift for alternating sections */
  --ink-3: #1f252c;      /* cards, form fields */
  --bone: #eae6de;       /* primary text */
  --muted: #9aa1a9;      /* secondary text */
  --brick: #4a8c87;      /* single accent: Brunco teal, sampled from the logo */
  --brick-deep: #2f615d;
  --hairline: rgba(234, 230, 222, 0.14);
  --font-display: "Outfit", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── nav ─────────────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: 72px; display: flex; align-items: center;
  background: linear-gradient(rgba(20, 24, 29, 0.92), rgba(20, 24, 29, 0.75) 70%, transparent);
  backdrop-filter: blur(8px);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--bone); }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name b {
  font-family: "Playfair Display", Georgia, serif; font-weight: 600;
  font-size: 19px; letter-spacing: 0.06em; color: var(--brick);
}
.brand-name span {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.28em;
  color: var(--muted);
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 400;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--bone); }
.nav-cta {
  color: var(--bone) !important; border: 1px solid var(--hairline);
  padding: 9px 18px; transition: border-color 0.2s, background 0.2s;
}
.nav-cta:hover { border-color: var(--brick); background: rgba(74, 140, 135, 0.12); }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--ink-2);
    border-bottom: 1px solid var(--hairline); padding: 8px 0 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 24px; width: 100%; }
  .nav-cta { border: none; padding: 12px 24px; }
  .nav-toggle {
    display: block; background: none; border: 1px solid var(--hairline);
    color: var(--bone); font-family: var(--font-mono); font-size: 12px;
    padding: 8px 14px; cursor: pointer;
  }
}

/* ── hero ────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 92dvh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(20,24,29,0.05) 30%, rgba(20,24,29,0.82) 78%, var(--ink) 100%);
}
.hero-inner { position: relative; z-index: 2; padding-bottom: 88px; padding-top: 96px; max-width: 720px; }
.hero h1 {
  font-size: clamp(44px, 7.5vw, 84px); font-weight: 600;
  letter-spacing: -0.03em; line-height: 1.02;
}
.hero h1 em { font-style: italic; color: var(--brick); }
.hero p { margin-top: 22px; font-size: 18px; max-width: 46ch; color: var(--bone); }
.hero-ctas { margin-top: 34px; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }

/* CTA garments: solid slab (primary) vs underline runner (secondary) */
.btn-slab {
  display: inline-block; background: var(--brick-deep); color: #fff;
  text-decoration: none; font-weight: 500; font-size: 16px;
  padding: 15px 30px; transition: background 0.2s, transform 0.15s;
}
.btn-slab:hover { background: #264e4b; }
.btn-slab:active { transform: translateY(1px); }
.link-runner {
  position: relative; color: var(--bone); text-decoration: none;
  font-size: 16px; font-weight: 400; padding-bottom: 4px;
}
.link-runner::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--muted); transform-origin: left;
  transition: transform 0.3s ease, background 0.3s;
}
.link-runner:hover::after { background: var(--brick); transform: scaleX(0.55); }

/* ── sections ────────────────────────────────────────────────────── */
section { padding: 96px 0; }
.section-tint { background: var(--ink-2); }
.section-head { max-width: 640px; margin-bottom: 56px; }
h2 {
  font-size: clamp(30px, 4.2vw, 46px); font-weight: 600;
  letter-spacing: -0.025em; line-height: 1.08;
}
.section-head p { margin-top: 16px; color: var(--muted); font-size: 17px; }

/* split manifesto */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.split h2 { max-width: 15ch; }
.split .lede { margin-top: 20px; font-size: 18px; color: var(--muted); max-width: 52ch; }
.split figure { position: relative; }
.split img { width: 100%; height: 460px; object-fit: cover; }
.split figcaption {
  margin-top: 12px; font-family: var(--font-mono); font-size: 12px;
  color: var(--muted); letter-spacing: 0.02em;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 40px; } .split img { height: 340px; } }

/* service index rows */
.service-row {
  display: grid; grid-template-columns: 64px 1fr 1.4fr 180px;
  gap: 28px; align-items: center; padding: 34px 0;
  border-top: 1px solid var(--hairline); text-decoration: none; color: inherit;
  transition: background 0.25s;
}
.service-rows { border-bottom: 1px solid var(--hairline); }
.service-row:hover { background: rgba(234, 230, 222, 0.03); }
.service-num { font-family: var(--font-mono); font-size: 13px; color: var(--brick); }
.service-row h3 { font-size: 24px; font-weight: 500; letter-spacing: -0.01em; }
.service-row p { color: var(--muted); font-size: 15.5px; }
.service-row img { width: 180px; height: 110px; object-fit: cover; }
@media (max-width: 860px) {
  .service-row { grid-template-columns: 40px 1fr; grid-template-rows: auto auto; }
  .service-row img { display: none; }
  .service-row p { grid-column: 2; }
}

/* project rail */
.rail-wrap { overflow-x: auto; scrollbar-width: thin; padding-bottom: 12px; }
.rail { display: flex; gap: 24px; width: max-content; padding-right: 24px; }
.rail-card { width: min(430px, 78vw); text-decoration: none; color: inherit; }
.rail-card img { width: 100%; height: 300px; object-fit: cover; transition: transform 0.4s ease; }
.rail-card:hover img { transform: scale(1.025); }
.rail-card figure { overflow: hidden; }
.rail-meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; }
.rail-meta h3 { font-size: 19px; font-weight: 500; }
.rail-meta span { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-left: 1px solid var(--hairline); }
.step { padding: 8px 28px 8px 24px; border-right: 1px solid var(--hairline); }
.step b { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 13px; color: var(--brick); margin-bottom: 14px; }
.step h3 { font-size: 19px; font-weight: 500; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; border-left: 0; } .step { border-right: 0; border-top: 1px solid var(--hairline); padding: 24px 4px; } }

/* CTA band */
.cta-band { background: var(--ink-2); text-align: left; }
.cta-band .wrap { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.cta-band h2 { max-width: 18ch; }
.cta-band .sub { margin-top: 14px; color: var(--muted); }
@media (max-width: 760px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* ── inner pages ─────────────────────────────────────────────────── */
.page-head { padding: 168px 0 64px; }
.page-head h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.04; }
.page-head p { margin-top: 18px; color: var(--muted); font-size: 18px; max-width: 56ch; }

/* services page blocks */
.service-block { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 64px 0; border-top: 1px solid var(--hairline); }
.service-block:nth-of-type(even) figure { order: -1; }
.service-block img { width: 100%; height: 400px; object-fit: cover; }
.service-block h2 { font-size: 30px; }
.service-block .body { color: var(--muted); margin-top: 16px; font-size: 16.5px; }
.service-block ul { margin-top: 20px; list-style: none; }
.service-block li { padding: 10px 0; border-top: 1px solid var(--hairline); font-size: 15.5px; }
@media (max-width: 860px) {
  .service-block { grid-template-columns: 1fr; gap: 28px; }
  .service-block:nth-of-type(even) figure { order: 0; }
  .service-block img { height: 280px; }
}

/* projects grid */
.proj-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.proj { text-decoration: none; color: inherit; }
.proj figure { overflow: hidden; }
.proj img { width: 100%; object-fit: cover; transition: transform 0.4s ease; }
.proj:hover img { transform: scale(1.025); }
.proj-a { grid-column: span 7; } .proj-a img { height: 440px; }
.proj-b { grid-column: span 5; } .proj-b img { height: 440px; }
.proj-c { grid-column: span 5; } .proj-c img { height: 380px; }
.proj-d { grid-column: span 7; } .proj-d img { height: 380px; }
.proj-e { grid-column: span 6; } .proj-e img { height: 400px; }
.proj-f { grid-column: span 6; } .proj-f img { height: 400px; }
@media (max-width: 860px) { .proj { grid-column: span 12 !important; } .proj img { height: 300px !important; } }

/* about */
.about-figure img { width: 100%; height: 520px; object-fit: cover; }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 72px; }
.about-cols h2 { font-size: 28px; }
.about-cols p { color: var(--muted); margin-top: 14px; }
.value-list { list-style: none; margin-top: 8px; }
.value-list li { padding: 18px 0; border-top: 1px solid var(--hairline); }
.value-list b { font-weight: 500; display: block; margin-bottom: 4px; }
.value-list span { color: var(--muted); font-size: 15.5px; }
@media (max-width: 860px) { .about-cols { grid-template-columns: 1fr; gap: 40px; } .about-figure img { height: 320px; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; }
.contact-info p { color: var(--muted); margin-top: 16px; max-width: 44ch; }
.contact-line { margin-top: 32px; font-family: var(--font-mono); font-size: 14px; }
.contact-line a { color: var(--bone); text-decoration: none; border-bottom: 1px solid var(--brick); }
form { display: grid; gap: 22px; }
.field label { display: block; font-size: 14px; font-weight: 400; margin-bottom: 8px; color: var(--bone); }
.field input, .field textarea, .field select {
  width: 100%; background: var(--ink-3); border: 1px solid var(--hairline);
  color: var(--bone); font-family: var(--font-display); font-size: 16px;
  padding: 13px 14px; transition: border-color 0.2s; border-radius: 0;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brick);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 44px; } }

/* case studies (real work) */
.case { padding: 72px 0; border-top: 1px solid var(--hairline); }
.case-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; margin-bottom: 12px; }
.case-head h2 { font-size: clamp(26px, 3.4vw, 38px); }
.case-tag { font-family: var(--font-mono); font-size: 12px; color: var(--brick); letter-spacing: 0.08em; }
.case-desc { color: var(--muted); max-width: 62ch; margin-bottom: 40px; }
.case-media { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 24px; align-items: start; }
.case-media video { width: 100%; display: block; background: #000; }
.case-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.case-photos img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/4; }
.case-videos-pair { display: grid; grid-template-columns: minmax(280px, 380px) minmax(280px, 380px); gap: 24px; }
.case-videos-pair video { width: 100%; display: block; background: #000; }
@media (max-width: 860px) {
  .case-media, .case-videos-pair { grid-template-columns: 1fr; }
  .case-photos { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* footer */
footer { border-top: 1px solid var(--hairline); padding: 44px 0 56px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
footer p { color: var(--muted); font-size: 14px; }
footer nav { display: flex; gap: 22px; }
footer nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
footer nav a:hover { color: var(--bone); }

/* reveal animation (transform-only travel, gated) */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .rail-card img, .proj img, .btn-slab { transition: none; }
}
