/* Corbel Labs */

:root {
  --paper: #F6F4EF;
  --paper-alt: #EEEBE3;
  --surface: #FFFFFF;
  --ink: #16181D;
  --ink-soft: #3A3E47;
  --muted: #646A75;
  --line: #D9D4C8;
  --accent: #B4532A;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(180, 83, 42, 0.12);

  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0F1114;
    --paper-alt: #15181C;
    --surface: #191C21;
    --ink: #ECEAE4;
    --ink-soft: #C9C6BE;
    --muted: #9198A3;
    --line: #2A2E35;
    --accent: #E07A4F;
    --accent-ink: #0F1114;
    --accent-soft: rgba(224, 122, 79, 0.14);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

.skip {
  position: absolute; left: 8px; top: -48px;
  background: var(--ink); color: var(--paper);
  padding: 8px 12px; border-radius: var(--radius); z-index: 100;
}
.skip:focus { top: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; font-size: 17px; }
.mark { width: 26px; height: 26px; flex: none; }
.mark-wall { fill: var(--ink); }
.mark-corbel { fill: var(--accent); }

.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-soft); transition: color .15s; }
.nav a:hover { color: var(--ink); }
.nav .nav-cta {
  color: var(--ink); border: 1px solid var(--ink);
  padding: 7px 14px; border-radius: var(--radius);
  transition: background .15s, color .15s;
}
.nav .nav-cta:hover { background: var(--ink); color: var(--paper); }

/* ---------- Shared ---------- */

.eyebrow {
  font: 500 12px/1 var(--mono);
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 20px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px;
  border-radius: var(--radius);
  font: 500 15px/1 var(--sans);
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s, background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 17px; font-family: var(--mono); }

.section { padding: clamp(72px, 10vw, 128px) 0; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.section-alt { background: var(--paper-alt); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2, .contact h2 { font-size: clamp(32px, 4.4vw, 48px); }
.section-lede { margin-top: 16px; color: var(--muted); font-size: 18px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(56px, 9vw, 112px) 0 clamp(56px, 8vw, 96px);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
}
.hero::after {
  /* fade the blueprint grid toward the edges */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 70% 40%, transparent 0%, var(--paper) 72%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }

.hero h1 {
  font-size: clamp(42px, 6.2vw, 76px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.hero h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: -0.01em; }

.lede { margin-top: 28px; max-width: 34em; font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-soft); }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero-figure { margin: 0; }
.hero-figure svg { width: 100%; height: auto; display: block; }
.stroke { stroke: var(--ink); stroke-width: 1.5; }
.fill-paper { fill: var(--surface); }
.fill-accent { fill: var(--accent-soft); stroke: var(--accent); }
.hatch-line { stroke: var(--line); stroke-width: 2; }
.accent-line line, .accent-line path { stroke: var(--accent); stroke-width: 1.5; fill: none; }
.leader line { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.dim line { stroke: var(--muted); stroke-width: 1; }
.label { font: 500 10px var(--mono); letter-spacing: 0.08em; fill: var(--muted); }

/* ---------- Strip ---------- */

.strip { border-top: 1px solid var(--line); background: var(--paper); }
.strip-inner { display: flex; align-items: center; gap: 28px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.strip-label { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.strip-list { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; color: var(--ink-soft); }

/* ---------- Services ---------- */

.cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.card {
  padding: 32px 28px 36px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--paper);
  transition: background .2s;
}
.card:hover { background: var(--surface); }
.card-num { display: block; font: 500 12px var(--mono); color: var(--accent); margin-bottom: 40px; }
.card h3 { font-size: 21px; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 16px; }

/* ---------- Approach ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: none; }
.steps li { position: relative; padding-top: 28px; border-top: 2px solid var(--ink); }
.steps li:first-child { border-top-color: var(--accent); }
.step-num { display: block; font: 500 12px var(--mono); color: var(--muted); margin-bottom: 16px; }
.steps h3 { font-size: 22px; margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: 16px; }

/* ---------- Engagements ---------- */

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tier {
  padding: 32px 28px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper);
  display: flex; flex-direction: column;
}
.tier-featured { border-color: var(--ink); background: var(--surface); }
.tier-meta { font: 500 12px var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 18px; }
.tier h3 { font-size: 24px; margin-bottom: 12px; }
.tier > p { color: var(--muted); font-size: 16px; }
.tier ul { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 15px; }
.tier li { position: relative; padding-left: 20px; }
.tier li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 10px; height: 1.5px; background: var(--accent); }

/* ---------- About ---------- */

.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; }
.about-grid .section-head { margin-bottom: 0; }
.about-copy { display: grid; gap: 20px; color: var(--ink-soft); max-width: 40em; }
.about-lead { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 30px); line-height: 1.3; color: var(--ink); }

/* ---------- Contact ---------- */

.contact { text-align: center; }
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact h2 { max-width: 16em; }
.contact .section-lede { margin-bottom: 36px; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; flex-wrap: wrap; }
.footer-mono { font-family: var(--mono); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-figure { max-width: 520px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .tiers { grid-template-columns: 1fr; max-width: 640px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 720px) {
  .nav a:not(.nav-cta) { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .cards, .tiers, .steps { grid-template-columns: 1fr; }
  .card-num { margin-bottom: 20px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .btn-lg { font-size: 15px; padding: 0 20px; width: 100%; }
}
