:root {
  --bg: #fbfaf7;
  --bg-soft: #f5f2ec;
  --surface: #ffffff;
  --graphite: #182126;
  --graphite-deep: #11181c;
  --text: #111619;
  --text-muted: #4f585d;
  --text-faint: #777e81;
  --line: #dcd7cf;
  --line-dark: rgba(255, 255, 255, 0.16);
  --copper: #b85224;
  --copper-bright: #d06a31;
  --copper-soft: #f0dfd3;
  --focus: #d6743e;
  --radius: 10px;
  --container: 1320px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 65%, transparent);
  outline-offset: 4px;
  border-radius: 4px;
}

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.04;
  letter-spacing: -0.035em;
}

p {
  margin-bottom: 1em;
}

img,
svg {
  display: block;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--graphite-deep);
  color: #fff;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  color: var(--copper);
}

.brand-name {
  font-size: 20px;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  font-size: 15px;
  font-weight: 540;
  text-decoration: none;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 13px 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.menu-toggle > span:not(.sr-only) {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero */
.hero {
  min-height: min(570px, calc(100vh - 76px));
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #fbf7f4;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(560px, 1.04fr);
  align-items: center;
  gap: 10px;
  padding-block: 70px 72px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero h1 {
  max-width: 700px;
  margin-bottom: 24px;
  font-size: clamp(3.1rem, 4.5vw, 4.65rem);
  font-weight: 760;
}

.hero-copy > p {
  max-width: 600px;
  margin-bottom: 34px;
  color: var(--text-muted);
  font-size: clamp(1.08rem, 1.5vw, 1.32rem);
  line-height: 1.55;
}

.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn span {
  transition: transform 0.25s var(--ease);
}

.btn:hover span {
  transform: translateX(4px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--copper), var(--copper-bright));
  color: #fff;
  box-shadow: 0 12px 28px rgba(184, 82, 36, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 16px 34px rgba(184, 82, 36, 0.28);
}

.btn-secondary {
  border-color: var(--text);
  background: transparent;
}

.btn-secondary:hover {
  border-color: var(--copper);
  color: var(--copper);
}

.hero-visual {
  position: relative;
  width: 125%;
  margin: 0 -15% 0 -10%;
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: auto;
}

/* Shared section language */
.services,
.products,
.contact {
  padding-block: 96px;
}

.section-heading {
  margin-bottom: 50px;
}

.section-heading h2,
.contact h2 {
  margin-bottom: 0;
  font-size: clamp(2.25rem, 4.4vw, 4rem);
  font-weight: 740;
}

.section-heading h2::after {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  margin-top: 23px;
  background: var(--copper);
}

.section-heading-wide h2 {
  max-width: 900px;
}

/* Two lines of business */
.services {
  background: var(--bg);
}

.service-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.service-item {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 28px;
  padding: 38px 42px 38px 0;
}

.service-item + .service-item {
  padding-right: 0;
  padding-left: 42px;
  border-left: 1px solid var(--line);
}

.service-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  color: var(--copper);
  background: var(--copper-soft);
  border-radius: 50%;
}

.service-icon-dark {
  color: var(--copper-bright);
  background: var(--graphite);
}

.service-icon svg {
  width: 43px;
  height: 43px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.service-item h3 {
  margin-bottom: 10px;
  font-size: clamp(1.4rem, 2vw, 1.75rem);
}

.service-item p {
  max-width: 460px;
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 17px;
}

.process-areas {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
}

.process-areas li {
  position: relative;
  min-height: 64px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-weight: 560;
}

.process-areas li + li::before {
  content: "";
  position: absolute;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--copper);
}

/* Approach */
.approach {
  padding-block: 88px 94px;
  background: var(--graphite);
  color: #fff;
  overflow: hidden;
}

.section-heading-inverse {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  align-items: end;
  gap: 60px;
}

.section-heading-inverse p {
  max-width: 470px;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}

.approach-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
}

.approach-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 104px 1fr;
  align-items: start;
  gap: 22px;
  padding-right: 46px;
}

.approach-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 49px;
  right: -1px;
  width: 48px;
  height: 1px;
  background: var(--copper-bright);
}

.step-icon {
  width: 98px;
  height: 98px;
  display: grid;
  place-items: center;
  border: 1px solid var(--copper-bright);
  border-radius: 50%;
  color: var(--copper-bright);
}

.step-icon svg {
  width: 50px;
  height: 50px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.step-number {
  display: block;
  margin: 4px 0 4px;
  color: var(--copper-bright);
  font-size: 24px;
  font-weight: 730;
  line-height: 1;
}

.step-copy h3 {
  margin-bottom: 10px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.step-copy p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
}

/* Products */
.products {
  background: var(--bg);
}

.product-list {
  border-top: 1px solid var(--line);
}

.product-row {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr 0.55fr;
  align-items: center;
  min-height: 220px;
  border-bottom: 1px solid var(--line);
}

.product-visual {
  height: 145px;
  display: grid;
  place-items: center;
  padding-right: 46px;
  border-right: 1px solid var(--line);
  color: var(--text-muted);
}

.product-visual svg {
  width: min(100%, 250px);
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.product-copy {
  padding: 20px 54px;
}

.product-copy h3 {
  margin-bottom: 6px;
  font-size: 2rem;
}

.product-copy p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--text-muted);
}

.product-copy .product-tagline {
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 650;
}

.product-status {
  min-height: 76px;
  display: flex;
  align-items: center;
  margin-bottom: 0;
  padding-left: 42px;
  border-left: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 650;
}

.product-status::before {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-right: 12px;
  border: 1px solid var(--copper);
  transform: rotate(45deg);
}

/* Contact */
.contact {
  overflow: hidden;
  background: #f8f4f0;
  border-top: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: 34px;
}

.contact-copy {
  position: relative;
  z-index: 2;
}

.contact h2 {
  margin-bottom: 24px;
}

.contact-copy > p:not(.contact-note) {
  max-width: 620px;
  margin-bottom: 32px;
  color: var(--text-muted);
  font-size: 19px;
}

.text-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-weight: 650;
  text-decoration-color: var(--copper);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.contact-note {
  margin: 28px 0 0;
  color: var(--text-faint);
  font-size: 14px;
}

.contact-visual {
  width: 126%;
  height: auto;
  margin-left: -10%;
}

/* Progressive motion */
.motion-ready .reveal-item {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.65s var(--ease) var(--reveal-delay, 0ms),
    transform 0.65s var(--ease) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.motion-ready .hero-visual.reveal-item,
.motion-ready .contact-visual.reveal-item {
  transform: translateX(28px) scale(0.985);
}

.motion-ready .reveal-item.is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* Footer */
.site-footer {
  position: relative;
  padding-block: 58px 38px;
  overflow: hidden;
  background: var(--graphite);
  color: rgba(255, 255, 255, 0.78);
}

.site-footer::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -260px;
  width: 620px;
  height: 360px;
  border: 1px solid var(--copper-bright);
  border-radius: 50%;
  opacity: 0.7;
  transform: rotate(-13deg);
  pointer-events: none;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 42px;
}

.brand-inverse {
  color: #fff;
}

.footer-positioning {
  margin: 15px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer-positioning span {
  margin-inline: 7px;
  color: var(--copper-bright);
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.footer-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: inherit;
  font-weight: 560;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 5px;
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  color: #fff;
  text-decoration-color: var(--copper-bright);
}

.footer-meta {
  grid-column: 1 / -1;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px 34px;
}

.footer-brand {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.footer-inner .footer-nav {
  grid-column: 2;
  grid-row: 1;
}

.footer-inner .footer-meta {
  grid-column: 1 / -1;
  margin-top: 0;
}

/* Legal pages */
.back-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 650;
  text-underline-offset: 5px;
  text-decoration-color: var(--line);
}

.back-link span {
  display: inline-block;
  margin-right: 7px;
  transition: transform 0.25s var(--ease);
}

.back-link:hover {
  color: var(--copper);
  text-decoration-color: var(--copper);
}

.back-link:hover span {
  transform: translateX(-3px);
}

.legal-main {
  min-height: calc(100vh - 265px);
}

.legal-container {
  max-width: 820px;
  padding-top: 76px;
  padding-bottom: 94px;
}

.legal-intro {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--copper);
  font-size: 13px;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-intro h1 {
  margin-bottom: 12px;
  font-size: clamp(2.4rem, 6vw, 4rem);
}

.legal-summary {
  max-width: 640px;
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.legal-updated {
  margin: 16px 0 0;
  color: var(--text-faint);
  font-size: 14px;
}

.legal-content > section {
  padding-top: 34px;
}

.legal-content h2 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.legal-content p,
.legal-content li,
.legal-content address {
  color: var(--text-muted);
}

.legal-content address {
  font-style: normal;
}

.legal-content a {
  color: var(--copper);
  font-weight: 650;
  text-underline-offset: 3px;
}

/* Responsive */
@media (max-width: 980px) {
  .hero {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-block: 72px 38px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-visual {
    width: 100%;
    margin: -4% 0 -8%;
  }

  .section-heading-inverse {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .approach-steps {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .approach-steps li {
    grid-template-columns: 88px 1fr;
    max-width: 620px;
    padding: 0 0 14px;
  }

  .approach-steps li:not(:last-child)::after {
    top: 82px;
    right: auto;
    bottom: -30px;
    left: 43px;
    width: 1px;
    height: 30px;
  }

  .step-icon {
    width: 86px;
    height: 86px;
  }

  .product-row {
    grid-template-columns: 0.8fr 1.4fr;
  }

  .product-status {
    grid-column: 2;
    min-height: 48px;
    margin: -24px 54px 24px;
    padding: 0;
    border: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-visual {
    width: 100%;
    margin: -7% 0 -12%;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .header-inner {
    min-height: 68px;
  }

  .brand-name {
    font-size: 16px;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle[aria-expanded="true"] > span:nth-of-type(2) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] > span:nth-of-type(3) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] > span:nth-of-type(4) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    top: 68px;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 18px 16px 28px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 35px rgba(17, 24, 28, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav a {
    min-height: 54px;
    padding-inline: 8px;
    border-bottom: 1px solid var(--line);
  }

  .main-nav a::after {
    display: none;
  }

  .hero-grid {
    padding-block: 50px 22px;
  }

  .hero h1 {
    margin-bottom: 20px;
    font-size: clamp(2.55rem, 12vw, 4rem);
  }

  .hero-copy > p {
    font-size: 17px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-visual {
    width: 118%;
    margin: -3% -9% -7%;
  }

  .services,
  .products,
  .contact {
    padding-block: 70px;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .section-heading h2,
  .contact h2 {
    font-size: clamp(2.1rem, 10vw, 3.2rem);
  }

  .service-columns {
    grid-template-columns: 1fr;
  }

  .service-item,
  .service-item + .service-item {
    grid-template-columns: 64px 1fr;
    gap: 20px;
    padding: 30px 0;
    border-left: 0;
  }

  .service-item + .service-item {
    border-top: 1px solid var(--line);
  }

  .service-icon {
    width: 58px;
    height: 58px;
  }

  .service-icon svg {
    width: 34px;
    height: 34px;
  }

  .service-item p {
    font-size: 15px;
  }

  .process-areas {
    grid-template-columns: 1fr 1fr;
  }

  .process-areas li {
    min-height: 52px;
    border-bottom: 1px solid var(--line);
  }

  .process-areas li + li::before {
    display: none;
  }

  .process-areas li:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .process-areas li:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .approach {
    padding-block: 68px 74px;
  }

  .section-heading-inverse p {
    font-size: 16px;
  }

  .approach-steps li {
    grid-template-columns: 68px 1fr;
    gap: 18px;
  }

  .approach-steps li:not(:last-child)::after {
    top: 66px;
    left: 33px;
  }

  .step-icon {
    width: 66px;
    height: 66px;
  }

  .step-icon svg {
    width: 38px;
    height: 38px;
  }

  .step-number {
    font-size: 18px;
  }

  .step-copy h3 {
    font-size: 20px;
  }

  .product-row {
    grid-template-columns: 1fr;
    padding-block: 30px;
  }

  .product-visual {
    height: 110px;
    justify-content: start;
    padding: 0;
    border: 0;
  }

  .product-visual svg {
    width: 210px;
  }

  .product-copy {
    padding: 14px 0 0;
  }

  .product-copy h3 {
    font-size: 1.7rem;
  }

  .product-status {
    grid-column: auto;
    min-height: 42px;
    margin: 16px 0 0;
  }

  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .text-link {
    justify-content: center;
  }

  .contact-visual {
    width: 122%;
    margin: -2% -11% -12%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }

  .footer-meta {
    grid-column: auto;
    margin-top: 6px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-inner .footer-nav,
  .footer-inner .footer-meta {
    grid-column: 1;
    grid-row: auto;
  }

  .legal-container {
    padding-top: 52px;
    padding-bottom: 70px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .motion-ready .reveal-item,
  .motion-ready .hero-visual.reveal-item,
  .motion-ready .contact-visual.reveal-item {
    opacity: 1 !important;
    transform: none !important;
  }
}
