@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500&display=swap');

:root {
  --canvas: #fffdf9;
  --paper: #f6f2e9;
  --ink: #242322;
  --muted: #575147;
  --line: #d8d0c3;
  --copper: #9d4a1c;
  --amber: #ffd092;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  color: var(--ink);
  background: var(--canvas);
  font: 16px/1.55 'Geist', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 24px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.shell { width: min(1250px, calc(100% - 112px)); margin-inline: auto; }
.skip { position: absolute; z-index: 2; top: 10px; left: 10px; padding: 10px 14px; background: var(--paper); transform: translateY(-150%); }
.skip:focus { transform: none; }

.header, .hero-band { background: var(--canvas); }
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 77px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  font-size: 1.27rem;
  font-weight: 700;
  letter-spacing: -.055em;
  white-space: nowrap;
}
.mark { position: relative; width: 24px; height: 20px; color: var(--copper); }
.mark::before, .mark::after {
  content: '';
  position: absolute;
  inset: 2px 5px 5px 0;
  border: 1px solid currentColor;
}
.mark::after { inset: 6px 0 1px 5px; background: var(--canvas); }
nav { display: flex; flex-wrap: wrap; gap: 12px 28px; color: var(--muted); font-size: .89rem; }
nav a:hover, nav [aria-current='page'], .footer a:hover { color: var(--copper); }
nav [aria-current='page'] { text-decoration: underline; text-underline-offset: 5px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid transparent;
  font-size: .9rem;
  line-height: 1.25;
  font-weight: 650;
  cursor: pointer;
}
.button-outline { justify-self: end; min-height: 39px; border-color: #b9ad9d; }
.button-outline:hover { border-color: var(--copper); color: var(--copper); }
.button-primary { background: var(--amber); color: var(--ink); }
.button-primary:hover { background: #f7bd73; }
.button-light { border-color: #b9ad9d; background: var(--canvas); }
.button-light:hover { border-color: var(--copper); color: var(--copper); }
.button:disabled { opacity: .7; cursor: wait; }
.text-link { display: inline-flex; align-items: baseline; gap: 8px; font-size: .9rem; font-weight: 600; }
.text-link:hover, .linkedin { text-decoration: underline; text-underline-offset: 4px; }
.hero-band .text-link { color: var(--muted); }

h1 { font-size: clamp(3.1rem, 6vw, 5.85rem); line-height: 1; letter-spacing: -.075em; font-weight: 650; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5.4vw, 80px);
  min-height: 410px;
  padding-block: 52px 54px;
}
.hero h1 span { display: block; }
.hero-description, .service-hero p { max-width: 40ch; color: var(--muted); font-size: 1.15rem; margin-top: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 13px 22px; margin-top: 27px; }
.hero-experience { margin-top: 16px; color: var(--muted); font-size: .9rem; }
.release-map {
  position: relative;
  min-width: 0;
  height: clamp(190px, 21vw, 259px);
  border: 1px solid var(--line);
  background: radial-gradient(circle, #88745d36 1px, transparent 1.4px) 0 0 / 16px 16px, var(--paper);
  font: 500 clamp(.66rem, 1.12vw, .9rem)/1.2 var(--mono);
}
.release-map span { position: absolute; z-index: 1; padding: 5px 7px; background: var(--paper); }
.release-map .upstream { top: 18%; left: 8%; }
.release-map .patches { top: 48%; left: 8%; }
.release-map .release { right: 8%; top: 76%; color: var(--copper); }
.trace { position: absolute; left: 10%; border-top: 1px solid; border-right: 1px solid; }
.trace-upstream { width: 56%; height: 44%; top: 28%; color: #776d60; }
.trace-patches { width: 39%; height: 14%; top: 58%; color: var(--copper); }
.trace-release { width: 76%; top: 72%; color: var(--copper); border-top-width: 2px; border-right: 0; }
.trace-release::after { content: ''; position: absolute; right: 0; top: -5px; width: 8px; height: 8px; background: currentColor; }

.services { padding-block: 30px 66px; }
.section-label { margin-bottom: 8px; color: var(--muted); font: 500 .74rem/1.45 var(--mono); }
.service-list, .service-details { border-top: 1px solid var(--line); }
.service-row, .service-details article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .73fr) auto;
  align-items: baseline;
  gap: 12px 23px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.service-row:hover { background: var(--paper); }
.service-row h3, .service-details h3 { font-size: clamp(1.23rem, 2.4vw, 2.18rem); line-height: 1.12; font-weight: 650; letter-spacing: -.052em; }
.service-row p, .service-details p, .contact p { color: var(--muted); }
.service-arrow { font-size: 1.35rem; }
.service-hero { padding-block: clamp(48px, 7vw, 96px); }
.service-hero h1 { max-width: 16ch; }
.service-hero .button { margin-top: 23px; }
.section-heading h2, .audit-panel h2, .contact h2 { font-size: clamp(2.1rem, 4.4vw, 3.65rem); line-height: 1.02; font-weight: 650; letter-spacing: -.061em; }
.section-heading { margin-bottom: 25px; }
.service-details article { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.service-next { padding-bottom: 62px; }
.service-next > .text-link { margin-top: 20px; }

.audit-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
  padding: clamp(28px, 5.5vw, 68px);
  border-top: 2px solid #c8854f;
  background: var(--paper);
}
.audit-panel p { color: var(--muted); margin-top: 16px; max-width: 50ch; }
.audit-panel .button { margin-top: 18px; }
.audit-deliverables h3 { color: var(--copper); font: 500 .82rem/1.45 var(--mono); }
.audit-deliverables ul { margin: 12px 0 0; padding: 0; list-style: none; }
.audit-deliverables li { padding: 10px 0; border-top: 1px solid var(--line); }
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(30px, 7vw, 100px);
  padding-block: clamp(48px, 8vw, 98px);
}
.contact-copy h2 { max-width: 12ch; }
.contact-copy p { margin: 16px 0 12px; max-width: 37ch; }
.brief { border-top: 2px solid var(--ink); padding-top: 14px; }
form { display: grid; gap: 7px; }
form label { font-size: .88rem; font-weight: 650; }
form label:not(:first-child) { margin-top: 6px; }
.optional { color: var(--muted); font-size: .78rem; font-weight: 400; }
input, select, textarea {
  width: 100%;
  padding: 9px 11px;
  color: var(--ink);
  background: #fbf9f4;
  border: 1px solid #a49c90;
  border-radius: 0;
  font-size: 1rem;
}
input, select { min-height: 44px; }
textarea { resize: vertical; }
form .button { justify-self: start; margin-top: 7px; }
.brief-note { font-size: .86rem; }
#brief-status { font-size: .86rem; }
#brief-status[data-state='error'] { color: #8b2929; }
.footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 78px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.footer a:not(.brand) { color: var(--muted); font-size: .9rem; }

@media (max-width: 1050px) {
  .shell { width: calc(100% - 64px); }
}

@media (max-width: 750px) {
  .shell { width: calc(100% - 40px); }
  .header-inner { grid-template-columns: 1fr auto; gap: 8px 12px; padding-block: 12px; }
  .header-inner nav { grid-column: 1 / -1; grid-row: 2; }
  .header-inner .button { grid-column: 2; grid-row: 1; }
  .hero, .audit-panel, .contact { grid-template-columns: 1fr; min-height: 0; }
  .hero { padding-block: 30px 28px; }
  h1 { font-size: clamp(2.7rem, 9vw, 4.7rem); }
  .release-map { width: min(440px, 100%); height: clamp(143px, 37vw, 200px); }
  .services { padding-block: 22px 44px; }
  .service-row, .service-details article { padding-block: 17px; gap: 6px 14px; }
  .service-row { grid-template-columns: 1fr auto; }
  .service-row p { grid-row: 2; }
  .service-row .service-arrow { grid-row: 1; grid-column: 2; }
  .service-details article { grid-template-columns: 1fr; }
}

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