/* Level Edge Construction — private design concept
   Palette derived from the prospect's own published theme colors:
   #382310 espresso · #4e382d brown · #83511c caramel · #fce7d4 cream
   (see SOURCES.md row 23). All neutrals tinted toward hue ~60–70. */

@font-face {
  font-family: 'Hepta Slab';
  src: url('assets/fonts/HeptaSlab-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('assets/fonts/SourceSans3-var.woff2') format('woff2');
  font-weight: 200 900;
  font-display: swap;
}

:root {
  /* color */
  --ink: oklch(0.21 0.028 60);        /* deep espresso surface */
  --ink-2: oklch(0.25 0.032 58);      /* raised espresso */
  --panel: oklch(0.30 0.038 55);      /* brown panel (#4e382d family) */
  --cream: oklch(0.94 0.022 75);      /* primary text on dark (#fce7d4) */
  --cream-dim: oklch(0.80 0.025 72);  /* secondary text on dark */
  --cream-bg: oklch(0.955 0.018 80);  /* light section background */
  --ink-on-cream: oklch(0.25 0.03 58);
  --ink-soft: oklch(0.42 0.035 58);   /* secondary text on cream */
  --accent: oklch(0.66 0.115 65);     /* caramel (#83511c, lifted for dark bg) */
  --accent-deep: oklch(0.50 0.10 62);
  --hairline: oklch(0.40 0.03 60);
  --hairline-cream: oklch(0.84 0.025 75);

  /* space (4pt) */
  --sp-xs: 4px; --sp-sm: 8px; --sp-md: 12px; --sp-lg: 16px;
  --sp-xl: 24px; --sp-2xl: 32px; --sp-3xl: 48px; --sp-4xl: 64px; --sp-5xl: 96px;

  /* type */
  --display: 'Hepta Slab', 'Rockwell', serif;
  --body: 'Source Sans 3', 'Gill Sans', system-ui, sans-serif;
  --fs-hero: clamp(2.35rem, 1.2rem + 4.4vw, 4.3rem);
  --fs-h2: clamp(1.7rem, 1.1rem + 2.1vw, 2.6rem);
  --fs-h3: 1.22rem;
  --fs-lede: clamp(0.98rem, 0.9rem + 0.45vw, 1.2rem);
  --fs-body: 1.04rem;
  --fs-small: 0.86rem;
  --fs-tiny: 0.72rem;

  --measure: 64ch;
  --rail: clamp(20px, 4vw, 56px);
  --maxw: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--cream);
  background: var(--ink);
}
img { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--display); }

.eyebrow {
  font-family: var(--body);
  font-size: var(--fs-tiny);
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow-dark { color: var(--accent-deep); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 12px 22px;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }
.btn-accent {
  background: var(--accent);
  color: oklch(0.17 0.025 60);
}
.btn-accent:hover { background: oklch(0.72 0.115 68); }
.btn-line {
  border: 1px solid oklch(0.70 0.03 70 / 0.65);
  color: var(--cream);
}
.btn-line:hover { border-color: var(--cream); background: oklch(0.94 0.02 75 / 0.07); }

/* ---------- header ---------- */

.site-head {
  display: flex;
  align-items: center;
  gap: var(--sp-2xl);
  padding: var(--sp-md) var(--rail);
  background: var(--ink);
  border-bottom: 1px solid oklch(0.32 0.03 60);
}
.brand img { width: 132px; height: auto; }
.site-nav {
  display: flex;
  gap: var(--sp-xl);
  margin-inline: auto;
}
.site-nav a {
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--cream-dim);
}
.site-nav a:hover { color: var(--cream); }
.head-actions { display: flex; align-items: center; gap: var(--sp-xl); }
.head-phone {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  color: var(--cream);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(824px, calc(100svh - 78px));
  isolation: isolate;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 62%;
  z-index: -2;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* photo legibility scrims only — no decorative gradients */
  background:
    linear-gradient(76deg, oklch(0.20 0.03 58 / 0.93) 10%, oklch(0.20 0.03 58 / 0.62) 42%, oklch(0.20 0.03 58 / 0.05) 66%),
    linear-gradient(to top, oklch(0.19 0.03 58 / 0.88) 0%, oklch(0.19 0.03 58 / 0.25) 30%, transparent 55%);
}
.hero-inner {
  padding: var(--sp-5xl) var(--rail) var(--sp-3xl);
  max-width: var(--maxw);
  width: 100%;
  margin-inline: auto;
}
.hero-inner .eyebrow { text-shadow: 0 1px 6px oklch(0.15 0.02 60 / 0.65); }
.hero h1 {
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: var(--sp-lg) 0 var(--sp-xl);
}
.lede {
  font-size: var(--fs-lede);
  line-height: 1.6;
  color: var(--cream-dim);
  max-width: 54ch;
  margin-bottom: var(--sp-2xl);
}
.cta-row { display: flex; flex-wrap: wrap; gap: var(--sp-md); }

.hero-credit {
  position: absolute;
  right: var(--rail);
  bottom: 104px;
  font-size: var(--fs-tiny);
  letter-spacing: 0.06em;
  color: oklch(0.93 0.02 75 / 0.85);
  text-shadow: 0 1px 8px oklch(0.15 0.02 60 / 0.7);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: var(--maxw);
  width: calc(100% - 2 * var(--rail));
  margin: 0 auto;
  border-top: 1px solid oklch(0.90 0.02 75 / 0.28);
}
.proof-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--sp-lg) var(--sp-xl) var(--sp-xl) 0;
}
.proof-cell + .proof-cell { border-left: 1px solid oklch(0.90 0.02 75 / 0.22); padding-left: var(--sp-xl); }
.proof-cell b {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.28rem;
  line-height: 1.2;
}
.proof-cell span {
  font-size: var(--fs-small);
  color: var(--cream-dim);
}

/* ---------- services (cream) ---------- */

.services {
  background: var(--cream-bg);
  color: var(--ink-on-cream);
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--sp-4xl);
  padding: var(--sp-5xl) var(--rail);
  max-width: calc(var(--maxw) + 2 * var(--rail));
  margin-inline: auto;
}
.services { max-width: none; }
.services > * { min-width: 0; }
.services-head { max-width: 30rem; margin-left: auto; width: 100%; padding-left: max(0px, calc((100vw - var(--maxw)) / 2 - var(--rail))); }
.services-head h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.1;
  margin: var(--sp-lg) 0 var(--sp-xl);
}
.services-note { color: var(--ink-soft); max-width: 34ch; }
.service-list {
  list-style: none;
  max-width: 40rem;
  padding-right: max(0px, calc((100vw - var(--maxw)) / 2 - var(--rail)));
}
.service-list li {
  display: flex;
  gap: var(--sp-xl);
  padding: var(--sp-xl) 0;
}
.service-list li + li { border-top: 1px solid var(--hairline-cream); }
.svc-no {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent-deep);
  padding-top: 3px;
}
.svc-body h3 { font-size: var(--fs-h3); font-weight: 600; margin-bottom: var(--sp-xs); }
.svc-body p { font-size: 0.98rem; color: var(--ink-soft); max-width: 52ch; }

/* ---------- projects (dark) ---------- */

.projects {
  padding: var(--sp-5xl) var(--rail);
  max-width: calc(var(--maxw) + 2 * var(--rail));
  margin-inline: auto;
}
.projects-head { margin-bottom: var(--sp-3xl); }
.projects-head h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  margin-top: var(--sp-lg);
  max-width: 18ch;
  line-height: 1.12;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--sp-xl);
}
.proj { grid-column: span 4; }
.proj-wide { grid-column: span 8; }
.proj img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.proj-wide img { aspect-ratio: 16 / 8.05; }
.proj-square img { aspect-ratio: 1 / 1.045; }
.proj figcaption {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: var(--sp-md) 0 0;
}
.proj figcaption b {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.98rem;
}
.proj figcaption span {
  font-size: var(--fs-small);
  color: var(--cream-dim);
}
.projects-foot {
  grid-column: span 8;
  align-self: center;
  padding: var(--sp-xl) 0 var(--sp-xl) var(--sp-2xl);
  border-top: 1px solid var(--hairline);
  color: var(--cream-dim);
  font-size: 0.98rem;
  max-width: 52ch;
}

/* ---------- testimonials (brown panel) ---------- */

.words { background: var(--panel); }
.quote-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4xl);
  padding: var(--sp-4xl) var(--rail);
  max-width: calc(var(--maxw) + 2 * var(--rail));
  margin-inline: auto;
}
.quote-pair blockquote p {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
  line-height: 1.5;
  max-width: 44ch;
}
.quote-pair cite {
  display: block;
  margin-top: var(--sp-lg);
  font-style: normal;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: oklch(0.78 0.05 68);
}

/* ---------- about (cream) ---------- */

.about {
  background: var(--cream-bg);
  color: var(--ink-on-cream);
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: var(--sp-4xl);
  align-items: center;
  padding: var(--sp-5xl) var(--rail);
}
.about-photo { max-width: 640px; justify-self: end; width: 100%; }
.about-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.about-photo figcaption {
  font-size: var(--fs-tiny);
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  padding-top: var(--sp-sm);
}
.about-body { max-width: 34rem; }
.about-body h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  margin: var(--sp-lg) 0 var(--sp-xl);
}
.about-body > p { color: var(--ink-soft); max-width: 52ch; }
.about-body em { font-style: italic; color: var(--ink-on-cream); }
.team-list {
  list-style: none;
  margin-top: var(--sp-2xl);
}
.team-list li {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-xl);
  padding: var(--sp-md) 0;
  font-size: 0.98rem;
}
.team-list li + li { border-top: 1px solid var(--hairline-cream); }
.team-list b { font-weight: 700; }
.team-list span { color: var(--ink-soft); }

/* ---------- contact (espresso) ---------- */

.contact { border-top: 1px solid oklch(0.30 0.03 60); }
.contact-inner {
  max-width: calc(var(--maxw) + 2 * var(--rail));
  margin-inline: auto;
  padding: var(--sp-5xl) var(--rail);
}
.contact-inner h2 {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem);
  font-weight: 800;
  margin: var(--sp-lg) 0 var(--sp-lg);
  max-width: 16ch;
  line-height: 1.1;
}
.contact-lede { color: var(--cream-dim); max-width: 46ch; margin-bottom: var(--sp-2xl); }
.contact-meta {
  margin-top: var(--sp-2xl);
  font-size: var(--fs-small);
  color: var(--cream-dim);
}

/* ---------- footer ---------- */

.site-foot {
  background: oklch(0.17 0.025 58);
  border-top: 1px solid oklch(0.28 0.03 60);
  padding: var(--sp-2xl) var(--rail) var(--sp-xl);
}
.foot-row {
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
  flex-wrap: wrap;
  max-width: var(--maxw);
  margin-inline: auto;
}
.foot-row img { opacity: 0.9; }
.foot-row p { font-size: var(--fs-small); color: var(--cream-dim); }
.foot-row a { color: var(--cream); text-decoration: none; }
.foot-disclosure {
  max-width: var(--maxw);
  margin: var(--sp-lg) auto 0;
  font-size: var(--fs-tiny);
  color: oklch(0.62 0.025 65);
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .site-nav { display: none; }
  .services { grid-template-columns: 1fr; gap: var(--sp-2xl); }
  .services-head { margin-left: 0; }
  .service-list { padding-right: 0; }
  .about { grid-template-columns: 1fr; gap: var(--sp-2xl); }
  .about-photo { justify-self: start; }
  .quote-pair { grid-template-columns: 1fr; gap: var(--sp-2xl); }
  .proj, .proj-wide { grid-column: span 6; }
  .proj-wide img { aspect-ratio: 4 / 3; }
}

@media (max-width: 640px) {
  .head-phone { display: none; }
  .site-head { gap: var(--sp-lg); justify-content: space-between; }
  .brand img { width: 104px; }
  .btn { padding: 10px 16px; font-size: 0.9rem; }

  .hero { min-height: calc(100svh - 62px); justify-content: flex-end; }
  .hero-photo { object-position: 60% 62%; }
  .eyebrow-ext { display: none; }
  .h1-br { display: none; }
  .hero h1 { text-wrap: balance; }
  .proj-square img { aspect-ratio: 4 / 3; }
  .hero-inner { padding: var(--sp-3xl) var(--rail) var(--sp-xl); }
  .hero h1 { margin: var(--sp-md) 0 var(--sp-lg); }
  .lede { font-size: 0.95rem; margin-bottom: var(--sp-lg); max-width: 40ch; }
  .cta-row { gap: var(--sp-sm); }
  .btn-lg { padding: 12px 18px; font-size: 0.93rem; }
  .hero-credit { display: none; }

  .proof-strip { width: calc(100% - 2 * var(--rail)); }
  .proof-cell { padding: var(--sp-md) var(--sp-sm) var(--sp-lg) 0; }
  .proof-cell + .proof-cell { padding-left: var(--sp-md); }
  .proof-cell b { font-size: 0.92rem; }
  .proof-cell span { font-size: 0.66rem; line-height: 1.35; }

  .services, .projects, .contact-inner { padding-block: var(--sp-4xl); }
  .proj, .proj-wide { grid-column: span 12; }
  .projects-foot { grid-column: span 12; padding-left: 0; }
  .team-list li { flex-direction: column; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
