:root {
  --bg: #f7f4ed;
  --paper: #fffdf8;
  --ink: #17130f;
  --muted: #71685f;
  --line: #ded6ca;
  --line-strong: #aaa094;
  --accent: #ff5a3d;
  --accent-soft: #ffe0d8;
  --green-soft: #dce8d2;
  --shadow: 0 24px 60px rgba(21, 21, 18, 0.12);
  --button-shadow: 6px 6px 0 var(--ink);
  --max: 1180px;
  --font-body: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Outfit", "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(23, 19, 15, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 19, 15, 0.024) 1px, transparent 1px),
    var(--bg);
  background-size: 42px 42px;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  letter-spacing: 0;
}

::selection {
  background: var(--accent-soft);
  color: var(--ink);
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  touch-action: manipulation;
}

button {
  font: inherit;
  touch-action: manipulation;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-140%);
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 10px 12px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(var(--max), calc(100% - 32px));
  margin: 16px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(21, 21, 18, 0.12);
  background: rgba(255, 252, 245, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgba(21, 21, 18, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-symbol {
  display: grid;
  width: 34px;
  height: 34px;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.68rem;
  line-height: 1;
}

.brand-symbol span {
  display: grid;
  place-items: center;
}

.brand-symbol span:first-child {
  background: var(--ink);
  color: var(--paper);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  justify-self: center;
  padding: 4px;
  border: 1px solid rgba(21, 21, 18, 0.1);
  background: rgba(247, 243, 235, 0.72);
}

.nav a,
.header-cta,
.social-row a,
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover,
.social-row a:hover,
.footer-links a:hover {
  color: var(--ink);
  background: rgba(255, 90, 61, 0.12);
}

.header-cta {
  justify-self: end;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding-inline: 14px;
}

.header-cta:hover {
  background: var(--accent);
  color: var(--ink);
}

.section,
.section-grid,
.proof-bar,
.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

section[id] {
  scroll-margin-top: 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 168px);
  padding: 34px 0 24px;
}

.hero-copy {
  max-width: 780px;
  min-width: 0;
}

.eyebrow,
.section-kicker,
.card-label,
.work-meta,
.panel-topline,
.capability-card span {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 17ch;
  margin: 16px 0 24px;
  font-family: var(--font-heading);
  font-size: 4.85rem;
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0;
  text-wrap: balance;
}

.lede {
  max-width: 720px;
  margin: 0;
  color: #2e2c27;
  font-size: 1.32rem;
  line-height: 1.35;
}

.cta-row,
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.cta-row {
  margin-top: 32px;
}

.social-row {
  margin-top: 12px;
}

.hero-note {
  max-width: 610px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 650;
}

.button,
.offer-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  font-size: 0.95rem;
  font-weight: 820;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.offer-card a:hover {
  transform: translateY(-2px);
  box-shadow: var(--button-shadow);
}

.button.primary,
.offer-card.featured a {
  background: var(--accent);
  color: var(--ink);
}

.button.secondary,
.offer-card a {
  background: var(--paper);
  color: var(--ink);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 520px;
  min-width: 0;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(21, 21, 18, 0.36), transparent 28%),
    linear-gradient(to top, rgba(21, 21, 18, 0.78), transparent 42%);
  pointer-events: none;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 252, 245, 0.2);
  pointer-events: none;
}

.portrait-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.96) contrast(1.02);
}

.panel-topline {
  position: absolute;
  top: 14px;
  right: 14px;
  left: 14px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  color: var(--ink);
}

.panel-topline span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(23, 19, 15, 0.16);
  background: rgba(255, 253, 248, 0.72);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.panel-topline span:last-child {
  border-color: rgba(255, 252, 245, 0.2);
  background: rgba(21, 21, 18, 0.78);
  color: var(--paper);
}

.proof-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-strong);
  background: rgba(255, 253, 248, 0.72);
}

.proof-bar div {
  min-height: 112px;
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}

.proof-bar div:last-child {
  border-right: 0;
}

.proof-bar strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}

.proof-bar span {
  display: block;
  max-width: 19ch;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section {
  padding: 96px 0 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.45fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading .section-kicker {
  grid-column: 1 / -1;
}

.section-heading h2,
.fit-panel h2,
.final-cta h2 {
  max-width: 860px;
  margin: 0;
  font-family: var(--font-heading);
  font-size: 4.05rem;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0;
  text-wrap: balance;
}

.section-heading p:last-child {
  align-self: end;
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.capability-grid,
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.capability-card,
.offer-card,
.final-cta {
  border: 1px solid var(--line-strong);
  background: var(--paper);
}

.capability-card {
  display: flex;
  min-height: 340px;
  flex-direction: column;
  padding: 26px;
}

.capability-card span {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(23, 19, 15, 0.14);
  background: var(--green-soft);
  color: var(--ink);
}

.capability-card h3,
.offer-card h3 {
  margin: 48px 0 12px;
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.capability-card p,
.offer-card p,
.fit-copy p,
.final-actions p,
.site-footer p {
  margin: 0;
  color: var(--muted);
}

.fit-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.68fr);
  gap: 44px;
  align-items: start;
  padding: 42px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.fit-panel .section-kicker {
  color: rgba(255, 253, 248, 0.7);
}

.fit-panel h2 {
  margin-top: 12px;
  color: var(--paper);
}

.fit-copy {
  display: grid;
  gap: 18px;
}

.fit-copy p {
  color: #e8dfd1;
  font-size: 1.08rem;
}

.rail-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: -10px 0 14px;
}

.rail-controls button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.rail-controls button:hover {
  transform: translateY(-2px);
  background: var(--ink);
  color: var(--paper);
}

.rail-controls button span {
  transform: translateY(-1px);
}

.horizontal-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 32px) / 3);
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 0 0 18px;
  scroll-padding-inline: 1px;
  scroll-snap-type: inline mandatory;
  scrollbar-color: var(--ink) transparent;
}

.horizontal-rail:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}

.work-card {
  display: grid;
  min-height: 476px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: rgba(255, 253, 248, 0.82);
  scroll-snap-align: start;
  transition: border-color 180ms ease, background 180ms ease;
}

.work-card:hover {
  border-color: var(--ink);
  background: var(--paper);
}

.work-card.feature {
  grid-auto-columns: auto;
  grid-template-rows: auto 1fr;
  background: var(--paper);
}

.work-preview {
  position: relative;
  display: block;
  height: 176px;
  margin: 14px 14px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #d8d0c4;
}

.work-card.feature .work-preview {
  height: 194px;
}

.work-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(255, 253, 248, 0.05), transparent 28%),
    linear-gradient(to top, rgba(23, 19, 15, 0.16), transparent 45%);
  pointer-events: none;
}

.work-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: saturate(0.72) contrast(0.98);
  transform: scale(1.12);
  transform-origin: top center;
  transition: transform 420ms ease, filter 420ms ease;
}

.work-preview.warm img {
  object-position: 50% 8%;
}

.work-preview.electric img {
  object-position: 50% 0;
}

.work-preview:hover img {
  filter: saturate(1) contrast(1.02);
  transform: scale(1.16);
}

.work-body {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  padding: 22px 24px 24px;
}

.work-body h3 {
  margin: 12px 0 10px;
  font-family: var(--font-heading);
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 0.95;
}

.work-body p {
  margin: 0;
  color: var(--muted);
}

.work-body a {
  width: fit-content;
  margin-top: auto;
  color: var(--ink);
  font-weight: 800;
}

.work-body a:hover {
  text-decoration-color: var(--accent);
}

.offer-card {
  display: flex;
  min-height: 318px;
  flex-direction: column;
  padding: 24px;
}

.offer-card.featured {
  background: var(--ink);
  color: var(--paper);
}

.offer-card.featured p,
.offer-card.featured .card-label {
  color: #d8d0c2;
}

.offer-card h3 {
  margin-top: 14px;
  font-size: 1.75rem;
  line-height: 1.03;
}

.offer-card a {
  width: fit-content;
  margin-top: auto;
}

.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.52fr);
  gap: 34px;
  align-items: center;
  margin-top: 104px;
  padding: 48px;
}

.final-cta h2 {
  margin-top: 10px;
}

.final-actions {
  display: grid;
  gap: 20px;
}

.final-actions .button {
  width: fit-content;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding: 58px 0 42px;
  color: var(--muted);
}

.footer-wordmark {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 6rem;
  font-weight: 700;
  line-height: 0.86;
  text-decoration: none;
}

.site-footer p {
  max-width: 440px;
  margin-top: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  align-content: start;
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    order: 3;
    grid-column: 1 / -1;
    width: 100%;
    overflow-x: auto;
    justify-content: start;
  }

  .hero,
  .section-heading,
  .capability-grid,
  .fit-panel,
  .offer-grid,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 76px;
  }

  .hero h1 {
    max-width: 14ch;
    font-size: 4.15rem;
  }

  .section-heading h2,
  .fit-panel h2,
  .final-cta h2 {
    font-size: 3.35rem;
  }

  .hero-panel {
    height: 540px;
  }

  .proof-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-bar div:nth-child(2) {
    border-right: 0;
  }

  .proof-bar div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .horizontal-rail {
    grid-auto-columns: minmax(340px, 68%);
  }

  .footer-wordmark {
    font-size: 4.7rem;
  }
}

@media (max-width: 640px) {
  .site-header,
  .section,
  .section-grid,
  .proof-bar,
  .site-footer {
    width: min(100% - 22px, var(--max));
  }

  .site-header {
    margin-top: 10px;
    padding: 10px;
    gap: 10px;
  }

  .nav {
    gap: 4px;
  }

  .nav a,
  .header-cta,
  .social-row a,
  .footer-links a {
    padding-inline: 8px;
    font-size: 0.82rem;
  }

  .header-cta {
    display: none;
  }

  .hero {
    gap: 28px;
    padding-top: 50px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: 2.75rem;
    line-height: 0.98;
  }

  .lede {
    font-size: 1rem;
    line-height: 1.36;
  }

  .button,
  .offer-card a {
    width: 100%;
    min-height: 48px;
    padding-inline: 14px;
    text-align: center;
  }

  .hero-copy .social-row {
    display: none;
  }

  .hero-panel {
    height: 460px;
  }

  .section-heading h2,
  .fit-panel h2,
  .final-cta h2 {
    font-size: 2.35rem;
    line-height: 0.98;
  }

  .section {
    padding-top: 74px;
  }

  .proof-bar {
    grid-template-columns: 1fr;
  }

  .proof-bar div,
  .proof-bar div:nth-child(2),
  .proof-bar div:last-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-bar div:last-child {
    border-bottom: 0;
  }

  .proof-bar strong {
    font-size: 2.55rem;
  }

  .capability-card,
  .fit-panel,
  .offer-card,
  .final-cta {
    padding: 20px;
  }

  .capability-card,
  .offer-card {
    min-height: 292px;
  }

  .capability-card h3,
  .work-body h3 {
    font-size: 2rem;
  }

  .offer-card h3 {
    font-size: 1.55rem;
  }

  .rail-controls {
    justify-content: flex-start;
    margin-top: -8px;
  }

  .horizontal-rail {
    grid-auto-columns: minmax(286px, 86%);
    gap: 12px;
    padding: 0 28px 14px 0;
  }

  .work-card {
    min-height: 454px;
  }

  .work-preview,
  .work-card.feature .work-preview {
    height: 172px;
  }

  .work-body {
    min-height: 282px;
    padding: 20px;
  }

  .final-cta {
    margin-top: 78px;
  }

  .final-actions .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }

  .footer-wordmark {
    font-size: 3.1rem;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
