:root {
  --ink: #1d160d;
  --muted: #6d6046;
  --leaf: #171108;
  --leaf-2: #a46f17;
  --moss: #eadcc0;
  --sun: #d89a20;
  --sky: #d7c397;
  --paper: #f3ead8;
  --white: #fffaf1;
  --line: rgba(45, 33, 15, 0.16);
  --shadow: 0 20px 55px rgba(29, 22, 13, 0.22);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

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

#services,
#approach,
#team,
#quote {
  scroll-margin-top: 82px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

img,
video,
svg {
  display: block;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  transform: translateY(-160%);
  border-radius: 6px;
  background: var(--white);
  padding: 0.7rem 1rem;
  color: var(--ink);
  font-weight: 800;
  transition: transform 160ms ease;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  padding: 10px clamp(16px, 3vw, 34px);
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    padding 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(243, 234, 216, 0.93);
  box-shadow: 0 1px 18px rgba(29, 22, 13, 0.14);
  padding-block: 5px;
  backdrop-filter: blur(18px);
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--white);
  font-size: 0.94rem;
  font-weight: 850;
  letter-spacing: 0;
  text-decoration: none;
}

.is-scrolled .brand,
.footer .brand {
  color: var(--ink);
}

.brand span:last-child {
  white-space: nowrap;
  overflow-wrap: anywhere;
}

.brand-mark {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: var(--sun);
  overflow: hidden;
  box-shadow: 0 0 0 2px rgba(29, 22, 13, 0.14);
}

.is-scrolled .brand-mark,
.footer .brand-mark {
  border-color: rgba(45, 33, 15, 0.18);
  box-shadow: 0 0 0 2px rgba(45, 33, 15, 0.09);
}

.is-scrolled .brand {
  font-size: 0.82rem;
}

.is-scrolled .brand-mark {
  width: 18px;
  height: 18px;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(23, 17, 8, 0.32);
  color: var(--white);
  backdrop-filter: blur(14px);
}

.is-scrolled .nav-links {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
}

.nav-links a {
  min-height: 29px;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  outline: none;
}

.is-scrolled .nav-links a:hover,
.is-scrolled .nav-links a:focus-visible {
  background: var(--moss);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(23, 17, 8, 0.32);
  color: var(--white);
  text-decoration: none;
  backdrop-filter: blur(14px);
}

.is-scrolled .icon-button {
  border-color: var(--line);
  background: var(--leaf);
  width: 28px;
  height: 28px;
}

.icon-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

.is-scrolled .icon-button svg {
  width: 14px;
  height: 14px;
}

.hero {
  position: relative;
  min-height: 76svh;
  overflow: hidden;
  background: var(--leaf);
}

.hero-media {
  position: absolute;
  inset: 0;
  background: var(--leaf);
}

.hero-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 12, 5, 0.78), rgba(54, 36, 12, 0.38) 48%, rgba(18, 12, 5, 0.08)),
    linear-gradient(180deg, rgba(18, 12, 5, 0.52), rgba(18, 12, 5, 0) 34%, rgba(18, 12, 5, 0.5));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 76svh;
  max-width: 1180px;
  margin: 0 auto;
  padding: 104px clamp(22px, 5vw, 48px) 66px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--sun);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 1.1rem 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.08rem, 2vw, 1.36rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.78rem 1.08rem;
  cursor: pointer;
  font-weight: 850;
  letter-spacing: 0;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
.icon-button:focus-visible {
  outline: 3px solid rgba(216, 154, 32, 0.72);
  outline-offset: 3px;
}

.button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.button-primary {
  background: var(--sun);
  color: #171108;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  backdrop-filter: blur(14px);
}

.section-quote .button-secondary {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.service-strip div {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-right: 1px solid var(--line);
  padding: 1rem;
  font-weight: 850;
}

.service-strip div:last-child {
  border-right: 0;
}

.service-strip span {
  color: var(--leaf-2);
  font-size: 0.76rem;
  font-weight: 900;
}

.section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: clamp(28px, 6vw, 90px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(46px, 7vw, 82px) clamp(22px, 5vw, 48px);
}

.section h2,
.feature-copy h2,
.quote-intro h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.95rem, 3.6vw, 3.65rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-copy,
.quote-intro p,
.feature-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.service-card {
  min-height: 220px;
  background: var(--paper);
  padding: clamp(22px, 2.6vw, 30px);
}

.service-card svg {
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  color: var(--leaf-2);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.service-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.22rem;
  letter-spacing: 0;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  min-height: 470px;
  background: var(--leaf);
  color: var(--white);
}

.feature-media {
  position: relative;
  min-height: 360px;
  overflow: hidden;
}

.feature-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
}

.feature-copy {
  align-self: center;
  padding: clamp(34px, 6vw, 64px);
}

.feature-copy h2,
.feature-copy p {
  color: var(--white);
}

.feature-copy p {
  margin-top: 1.2rem;
  color: rgba(255, 255, 255, 0.78);
}

.calvin-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(260px, 0.44fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  background:
    linear-gradient(135deg, rgba(216, 154, 32, 0.16), rgba(216, 154, 32, 0) 38%),
    var(--paper);
  padding: clamp(42px, 6vw, 72px) clamp(22px, 5vw, 48px);
}

.calvin-copy {
  justify-self: end;
  max-width: 560px;
}

.calvin-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.9rem, 3.5vw, 3.35rem);
  line-height: 1;
  letter-spacing: 0;
}

.calvin-copy p:not(.eyebrow) {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.calvin-photo {
  position: relative;
  width: min(100%, 320px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(45, 33, 15, 0.18);
  border-radius: var(--radius);
  background: var(--leaf);
  box-shadow: var(--shadow);
}

.calvin-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}

.calvin-photo figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  border: 1px solid rgba(255, 250, 241, 0.24);
  border-radius: 999px;
  background: rgba(23, 17, 8, 0.72);
  color: var(--white);
  padding: 0.5rem 0.78rem;
  font-size: 0.86rem;
  font-weight: 850;
  backdrop-filter: blur(14px);
}

.check-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: rgba(255, 255, 255, 0.9);
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--sun);
  color: #171108;
  content: "";
}

.check-list li::after {
  position: absolute;
  left: 6px;
  top: 0.38rem;
  width: 5px;
  height: 9px;
  border: solid #171108;
  border-width: 0 2px 2px 0;
  content: "";
  transform: rotate(45deg);
}

.section-quote {
  align-items: start;
  background:
    linear-gradient(180deg, rgba(216, 154, 32, 0.14), rgba(243, 234, 216, 0)),
    var(--paper);
}

.quote-intro {
  position: sticky;
  top: 96px;
}

.quote-intro a {
  color: var(--leaf-2);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: clamp(18px, 3vw, 28px);
  box-shadow: var(--shadow);
}

.quote-form label {
  display: grid;
  gap: 7px;
}

.quote-form label span {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 850;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 1px solid rgba(45, 33, 15, 0.18);
  border-radius: 6px;
  background: #fffaf1;
  color: var(--ink);
  padding: 0.86rem 0.9rem;
  outline: none;
}

.quote-form textarea {
  min-height: 118px;
  resize: vertical;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  border-color: var(--leaf-2);
  box-shadow: 0 0 0 3px rgba(216, 154, 32, 0.18);
}

.wide,
.form-actions,
.form-status {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
  color: var(--leaf-2);
  font-size: 0.94rem;
  font-weight: 780;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 22px clamp(22px, 5vw, 48px);
}

.footer-brand {
  color: var(--ink);
}

.footer p {
  margin: 0.45rem 0 0 48px;
  color: var(--muted);
}

.footer-link {
  color: var(--leaf-2);
  font-weight: 850;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

@media (max-width: 920px) {
  .nav {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(18, 12, 5, 0.84), rgba(18, 12, 5, 0.34)),
      linear-gradient(180deg, rgba(18, 12, 5, 0.58), rgba(18, 12, 5, 0.22));
  }

  .service-strip,
  .services-grid,
  .feature-band,
  .calvin-band,
  .section {
    grid-template-columns: 1fr;
  }

  .calvin-copy,
  .calvin-photo {
    justify-self: stretch;
  }

  .calvin-photo {
    width: min(100%, 360px);
  }

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

  .service-strip div:nth-child(2) {
    border-right: 0;
  }

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

  .quote-intro {
    position: static;
  }
}

@media (max-width: 620px) {
  html {
    scroll-padding-top: 52px;
  }

  #services,
  #approach,
  #team,
  #quote {
    scroll-margin-top: 52px;
  }

  .site-header {
    padding: 8px 12px;
  }

  .site-header.is-scrolled {
    padding-block: 4px;
  }

  .brand {
    gap: 5px;
    font-size: 0.78rem;
  }

  .brand span:last-child {
    max-width: none;
  }

  .brand-mark {
    width: 18px;
    height: 18px;
    box-shadow: none;
  }

  .site-header.is-scrolled .brand {
    font-size: 0.72rem;
  }

  .site-header.is-scrolled .brand-mark {
    width: 14px;
    height: 14px;
  }

  .icon-button {
    width: 30px;
    height: 30px;
  }

  .site-header.is-scrolled .icon-button {
    width: 26px;
    height: 26px;
  }

  .icon-button svg {
    width: 15px;
    height: 15px;
  }

  .site-header.is-scrolled .icon-button svg {
    width: 13px;
    height: 13px;
  }

  .header-actions {
    gap: 4px;
  }

  .nav {
    gap: 8px;
  }

  .hero {
    min-height: 72svh;
  }

  .hero-content {
    min-height: 72svh;
    padding: 86px 18px 48px;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 15vw, 4.35rem);
  }

  .hero-main {
    object-position: 30% 54%;
  }

  .button {
    width: 100%;
  }

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

  .service-strip div {
    justify-content: flex-start;
    min-height: 58px;
    padding-inline: 22px;
  }

  .service-strip div:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .service-strip div:nth-child(n + 3) {
    border-bottom: 0;
  }

  .service-card {
    min-height: 188px;
  }

  .service-card svg {
    width: 36px;
    height: 36px;
    margin-bottom: 14px;
  }

  .section,
  .feature-copy,
  .calvin-band {
    padding-inline: 18px;
  }

  .feature-media {
    min-height: 280px;
  }

  .calvin-photo {
    width: min(100%, 300px);
  }

  .quote-form {
    grid-template-columns: 1fr;
  }

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

  .footer p {
    margin-left: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
