:root {
  --bg: #f3f2ee;
  --surface: #fbfaf7;
  --surface-2: #e7e5df;
  --ink: #101010;
  --muted: #5e5c57;
  --line: rgba(16,16,16,.14);
  --accent: #0f6b64;
  --accent-soft: #d8ebe8;
}

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

html { scroll-behavior: smooth; }

body.mod-body {
  margin: 0;
  background:
    linear-gradient(to right, transparent 0, transparent calc(25% - .5px), rgba(16,16,16,.05) calc(25% - .5px), rgba(16,16,16,.05) 25%, transparent 25%, transparent calc(50% - .5px), rgba(16,16,16,.05) calc(50% - .5px), rgba(16,16,16,.05) 50%, transparent 50%, transparent calc(75% - .5px), rgba(16,16,16,.05) calc(75% - .5px), rgba(16,16,16,.05) 75%, transparent 75%),
    var(--bg);
  color: var(--ink);
  font-family: "Inter", sans-serif;
}

.skip-link {
  position: absolute;
  left: 10px;
  top: -40px;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 12px;
  z-index: 1000;
}
.skip-link:focus { top: 10px; }

.mod-header,
.mod-hero,
.mod-grid-overview,
.mod-metrics,
.mod-list-section,
.mod-inner {
  width: min(1240px, calc(100% - 36px));
  margin-inline: auto;
}

.mod-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.mod-brand {
  display: flex;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}
.mod-brand svg {
  width: 42px;
  height: 42px;
  stroke: currentColor;
  fill: none;
  stroke-width: 6;
}
.mod-brand strong,
.mod-brand span {
  display: block;
}
.mod-brand strong {
  font-size: .95rem;
}
.mod-brand span {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--muted);
}
.mod-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.mod-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: .92rem;
  position: relative;
}
.mod-nav a.active::after,
.mod-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

.mod-hero {
  display: grid;
  grid-template-columns: .28fr .92fr .55fr;
  gap: 18px;
  padding: 28px 0 60px;
  min-height: 70vh;
  align-items: end;
}
.hero-cell {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  min-height: 220px;
}
.hero-cell.label span,
.eyebrow,
.box-id,
.service-tile small,
.project-strip span,
.contact-meta span {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  color: var(--muted);
}
.hero-cell.main h1,
.mod-page-hero h1,
.grid-box h2,
.service-tile h2,
.project-strip h2 {
  font-family: "Space Grotesk", sans-serif;
  line-height: .92;
  margin: 0;
}
.hero-cell.main h1 {
  font-size: clamp(3rem, 7vw, 7rem);
  max-width: 8ch;
}
.hero-cell.side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-cell.side p {
  margin: 0;
  color: var(--muted);
  max-width: 26rem;
  font-size: 1rem;
}
.mod-link {
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  margin-top: 18px;
}

.mod-grid-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.grid-box {
  min-height: 280px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.grid-box.accent {
  background: var(--accent-soft);
}
.grid-box.image {
  background:
    linear-gradient(rgba(255,255,255,.04), rgba(0,0,0,.05)),
    url("https://picsum.photos/seed/sheappard-swiss-grid/1200/900") center/cover;
}
.grid-box h2 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  max-width: 8ch;
  margin-top: 16px;
}
.grid-box p {
  max-width: 28rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.mod-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 18px 0 80px;
}
.metric {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.metric strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: .95;
}
.metric span {
  color: var(--muted);
}

.mod-list-section {
  padding-bottom: 100px;
}
.section-intro {
  margin-bottom: 22px;
}
.section-intro h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: .95;
  margin: 12px 0 0;
  max-width: 9ch;
}
.mod-list {
  border-top: 1px solid var(--line);
}
.mod-row {
  display: grid;
  grid-template-columns: 70px .8fr 1fr;
  gap: 18px;
  padding: 22px 0;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mod-row span,
.mod-row em {
  color: var(--muted);
  font-style: normal;
}
.mod-row strong {
  font-size: 1.1rem;
}

.mod-inner {
  padding: 28px 0 100px;
}
.mod-page-hero {
  padding: 10px 0 36px;
}
.mod-page-hero h1 {
  font-size: clamp(2.8rem, 6vw, 6rem);
  max-width: 11ch;
}

.service-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.service-tile {
  min-height: 260px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.service-tile h2 {
  font-size: 2.1rem;
  margin: 14px 0 10px;
}
.service-tile p {
  color: var(--muted);
  max-width: 28rem;
}

.project-board {
  border-top: 1px solid var(--line);
}
.project-strip {
  display: grid;
  grid-template-columns: .5fr .7fr 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.project-strip h2 {
  font-size: 2rem;
  margin: 0;
}
.project-strip p {
  margin: 0;
  color: var(--muted);
  max-width: 38rem;
}

.contact-panel {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.contact-main a {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: .95;
  color: var(--ink);
  text-decoration: none;
}
.contact-main p {
  color: var(--muted);
  max-width: 34rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .mod-hero,
  .mod-grid-overview,
  .mod-metrics,
  .mod-row,
  .service-matrix,
  .project-strip,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .mod-header {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .mod-hero {
    min-height: auto;
  }
}

.intake-shell {
  display: grid;
  grid-template-columns: .44fr 1fr;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  align-items: start;
}

.intake-intro {
  position: sticky;
  top: 24px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.intake-intro p {
  color: var(--muted);
  max-width: 28rem;
}

.intake-mini-stats {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.intake-mini-stats div {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.intake-mini-stats strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  line-height: 1;
}
.intake-mini-stats span {
  color: var(--muted);
  font-size: .95rem;
}

.intake-form,
.success-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 24px;
}

.field-grid {
  display: grid;
  gap: 18px;
}
.field-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.field,
.choice-field {
  margin-bottom: 18px;
}

.field label,
.choice-field legend {
  display: block;
  margin-bottom: 10px;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 16px 16px;
  font: inherit;
  border-radius: 0;
  transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  background: #fcfffe;
}

.field.is-valid input,
.field.is-valid select,
.field.is-valid textarea {
  border-color: var(--accent);
  background: #f7fffd;
}

.field.is-error input,
.field.is-error select,
.field.is-error textarea {
  border-color: #b42318;
  background: #fff7f7;
}

.field-note {
  display: inline-block;
  margin-top: 8px;
  color: var(--muted);
  font-size: .82rem;
}

.choice-field {
  border: 0;
  padding: 0;
  margin: 0 0 18px;
}

.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice-pill {
  position: relative;
  cursor: pointer;
}
.choice-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choice-pill span {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.choice-pill input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.choice-pill:hover span {
  transform: translateY(-2px);
}

.field-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 8px;
}
.char-count {
  color: var(--muted);
  font-size: .82rem;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 8px;
}
.form-status {
  margin: 0;
  color: var(--muted);
  min-height: 24px;
  font-size: .92rem;
}

.submit-btn,
.reset-btn {
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font: inherit;
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease;
}
.submit-btn:hover,
.reset-btn:hover {
  transform: translateY(-2px);
}
.submit-btn:disabled {
  opacity: .65;
  cursor: wait;
}

.success-panel {
  animation: panelIn .5s cubic-bezier(.16,1,.3,1);
}
.success-panel h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: .95;
  margin: 12px 0;
  max-width: 12ch;
}
.success-panel p {
  color: var(--muted);
  max-width: 36rem;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .intake-shell,
  .field-grid.two,
  .form-footer {
    grid-template-columns: 1fr;
    display: grid;
  }

  .intake-intro {
    position: static;
  }

  .form-footer {
    align-items: start;
  }
}