:root {
  --paper: #ffffff;
  --paper-2: #fbfbf9;
  --paper-warm: #fff8e9;
  --paper-neutral: #f5f0e6;
  --header-pad: clamp(1.25rem, 3vw, 2rem);
  --ink: #171717;
  --ink-soft: #5d594f;
  --line: rgba(23, 23, 23, 0.12);
  --line-soft: rgba(23, 23, 23, 0.07);
  --charcoal: #181a1f;
  --charcoal-soft: #23262d;
  --gold: #f4c86a;
  --gold-soft: rgba(244, 200, 106, 0.18);
  --container: 1180px;
  --gutter: clamp(1.25rem, 3vw, 2rem);
  --shadow: 0 16px 40px rgba(20, 20, 20, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(244, 200, 106, 0.08), transparent 18%),
    linear-gradient(180deg, #ffffff 0%, var(--paper) 55%, #fcfcfb 100%);
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

.site-shell {
  position: relative;
  overflow: clip;
}

.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(23, 23, 23, 0.025) 1px, transparent 1px) 0 0 / 100% 80px,
    linear-gradient(90deg, rgba(23, 23, 23, 0.02) 1px, transparent 1px) 0 0 / 80px 100%;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.22), transparent 92%);
  z-index: -1;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section,
.hero,
.page-hero,
.site-footer {
  position: relative;
}

.section,
.hero,
.page-hero {
  padding: clamp(2.75rem, 5vw, 4.75rem) 0;
}

.section::before,
.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(calc(100% - 2rem), var(--container));
  height: 1px;
  transform: translateX(-50%);
  background: var(--line);
}

.section-dark {
  background: linear-gradient(180deg, var(--charcoal) 0%, #14161b 100%);
  color: #f7f7f4;
}

.section-dark::before {
  background: rgba(255, 255, 255, 0.08);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.site-header-inner {
  width: 100%;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0;
  min-height: 4.5rem;
}

.header-brand-zone,
.header-nav-zone {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 4.5rem;
}

.header-brand-zone {
  z-index: 1;
  background:
    radial-gradient(circle at 18% 50%, rgba(255, 255, 255, 0.4), transparent 26%),
    linear-gradient(135deg, rgba(244, 200, 106, 0.34), rgba(244, 200, 106, 0.14));
  overflow: visible;
}

.header-brand-zone::after {
  content: "";
  position: absolute;
  top: 0;
  right: -4.2rem;
  width: 4.2rem;
  height: 100%;
  z-index: 2;
  background: linear-gradient(135deg, rgba(255, 248, 233, 0.98), rgba(250, 246, 238, 0.92));
  clip-path: polygon(0 0, 100% 0, 48% 100%, 0 100%);
  border-right: 1px solid rgba(23, 23, 23, 0.06);
  pointer-events: none;
}

.header-nav-zone {
  z-index: 0;
  background: rgba(245, 240, 230, 0.95);
}

.header-brand-inner,
.header-nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  min-height: inherit;
}

.header-brand-inner {
  padding-left: var(--header-pad);
  padding-right: 1.35rem;
}

.header-nav-inner {
  justify-content: flex-end;
  gap: 1rem;
  padding-left: 4.8rem;
  padding-right: var(--header-pad);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: 220px;
  height: auto;
  mix-blend-mode: multiply;
}

.brand-logo-sm {
  width: 185px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 180ms ease, background-color 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  color: var(--ink);
  background: rgba(23, 23, 23, 0.05);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0.55rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 500;
}

.hero,
.page-hero {
  padding-top: clamp(2.4rem, 4vw, 3.8rem);
}

.hero {
  background: #ffffff;
}

.page-hero {
  background: rgba(255, 248, 233, 0.32);
}

.section-warm {
  background: rgba(255, 248, 233, 0.55);
}

.section.section-warm {
  padding: clamp(2.75rem, 5vw, 4.25rem) 0;
}

.hero-grid,
.two-col,
.contact-grid {
  display: grid;
  gap: 1.75rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: end;
}

.eyebrow,
.service-number,
.step-number,
.value-number,
.work-num,
.footer-eyebrow {
  margin: 0;
  color: #8a6b22;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.display,
.section-title,
.service-title,
.step-title,
.value-title,
.work-title,
.footer-display {
  margin: 0;
  letter-spacing: -0.04em;
}

.display {
  max-width: 11ch;
  font-size: clamp(3rem, 5.5vw, 4.9rem);
  line-height: 1.03;
  font-weight: 500;
}

.display-md {
  max-width: 13ch;
  font-size: clamp(2.55rem, 4.4vw, 3.95rem);
}

.hero-side {
  display: grid;
  gap: 1rem;
}

.lede {
  margin: 0;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.lede-narrow {
  margin-top: 0.85rem;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn,
.footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.2rem;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.btn:hover,
.btn:focus-visible,
.footer-cta:hover,
.footer-cta:focus-visible {
  transform: translateY(-2px);
}

.btn-primary,
.footer-cta {
  background: var(--charcoal);
  color: #f7f7f4;
  box-shadow: var(--shadow);
}

.btn-ghost {
  background: linear-gradient(90deg, rgba(255, 248, 233, 0.8), rgba(245, 240, 230, 0.75));
  border-color: var(--line);
  color: var(--ink);
}

.btn-block {
  width: 100%;
  justify-content: space-between;
}

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

.hero-panel-copy {
  margin: 0;
  max-width: 29rem;
  color: var(--ink-soft);
  line-height: 1.6;
  padding-left: 1rem;
  border-left: 2px solid rgba(244, 200, 106, 0.45);
}

.section-header {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.35rem;
  max-width: 40rem;
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 2.95rem);
  line-height: 1.1;
  font-weight: 500;
}

.section-header .eyebrow {
  color: #7f6220;
}

.services-grid,
.process-grid,
.featured-work-grid {
  display: grid;
  gap: 0.9rem;
}

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.featured-work-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service,
.step,
.value {
  padding: 1.25rem 1.25rem 1.25rem 0;
  border-right: 1px solid var(--line);
}

.service:not(:first-child),
.step:not(:first-child),
.value:not(:first-child) {
  padding-left: 1.25rem;
}

.service:last-child,
.step:last-child,
.value:last-child {
  border-right: 0;
}

.service:hover,
.step:hover,
.value:hover {
  background: linear-gradient(180deg, rgba(255, 248, 233, 0.4), rgba(245, 240, 230, 0.18));
}

.service-title,
.step-title,
.value-title,
.feature-title {
  margin-top: 0.45rem;
  font-size: 1.3rem;
  line-height: 1.25;
  font-weight: 500;
}

.service-copy,
.step-copy,
.value-copy,
.feature-copy,
.prose,
.footer-line,
.contact-aside-foot,
.contact-list span:last-child {
  color: var(--ink-soft);
}

.service-copy,
.step-copy,
.value-copy,
.feature-copy {
  margin: 0.45rem 0 0;
  line-height: 1.6;
}

.feature-visual {
  aspect-ratio: 4 / 3;
  min-height: 14rem;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    radial-gradient(circle at top right, rgba(244, 200, 106, 0.22), transparent 34%),
    linear-gradient(180deg, #262a34, #1b1f27);
}

.feature-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.feature-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.7rem;
  color: rgba(247, 247, 244, 0.68);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.feature-title {
  margin-top: 0.55rem;
}

.feature-copy {
  color: rgba(247, 247, 244, 0.74);
}

.feature-link {
  margin: 0.7rem 0 0;
  color: #f4d487;
  font-size: 0.9rem;
}

.two-col {
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  align-items: start;
}

.two-col-body {
  display: grid;
  gap: 0.75rem;
}

.prose {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
}

.work-list-head,
.work-row {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1.5fr) 1fr 0.6fr 2rem;
  gap: 1.5rem;
}

.work-list-head {
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-list {
  border-bottom: 1px solid var(--line);
}

.work-row {
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-soft);
  transition: background-color 180ms ease, padding 180ms ease;
}

.work-row:last-child {
  border-bottom: 0;
}

.work-row:hover,
.work-row:focus-visible {
  padding-left: 0.8rem;
  padding-right: 0.8rem;
  background: linear-gradient(90deg, rgba(255, 248, 233, 0.72), rgba(245, 240, 230, 0.52));
  outline: none;
}

.work-title {
  display: grid;
  gap: 0.35rem;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
}

.work-desc {
  display: block;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.5;
}

.work-tag,
.work-year {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.work-arrow {
  justify-self: end;
}

.footer-top,
.footer-grid,
.contact-grid {
  display: grid;
  gap: 1.25rem;
}

.footer-top {
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: center;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  gap: clamp(1.25rem, 4vw, 3rem);
  padding: 1.55rem max(var(--gutter), env(safe-area-inset-right)) 1.45rem max(var(--gutter), env(safe-area-inset-left));
  background: rgba(255, 248, 233, 0.55);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.footer-grid {
  background:
    linear-gradient(180deg, rgba(255, 248, 233, 0.12), rgba(255, 255, 255, 0));
}

.footer-display {
  font-size: clamp(2.1rem, 4vw, 3.35rem);
  line-height: 1;
  font-weight: 500;
  max-width: none;
  white-space: nowrap;
}

.footer-cta {
  min-height: 2.85rem;
  padding: 0.8rem 1.1rem;
  font-size: 0.84rem;
}

.footer-grid {
  grid-template-columns: 1.2fr 1fr 1fr 0.6fr;
  padding: 1.4rem 0 2rem;
}

.footer-eyebrow {
  margin-bottom: 0.8rem;
}

.footer-nav {
  display: grid;
  gap: 0.5rem;
}

.footer-nav a,
.link-underline {
  color: var(--ink-soft);
}

.contact-grid {
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  align-items: start;
}

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

.contact-list li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.85rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
}

.contact-list-num {
  color: #8a6b22;
  font-size: 0.78rem;
  font-weight: 500;
}

.contact-list strong {
  font-weight: 500;
}

.contact-form {
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field-label {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.6rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(244, 200, 106, 0.7);
  box-shadow: none;
}

@media (max-width: 980px) {
  .hero-grid,
  .services-grid,
  .featured-work-grid,
  .process-grid,
  .two-col,
  .work-list-head,
  .work-row,
  .footer-top,
  .footer-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service,
  .step,
  .value {
    border-right: 0;
    padding-right: 0;
  }

  .work-list-head {
    display: none;
  }

  .work-row {
    gap: 0.7rem;
  }
}

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

  .header-brand-zone,
  .header-nav-zone {
    width: 100%;
    min-height: auto;
  }

  .header-brand-zone {
    overflow: hidden;
  }

  .header-brand-inner {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    padding-right: 1.6rem;
  }

  .header-brand-zone::after {
    right: -2.8rem;
    width: 2.8rem;
  }

  .header-nav-zone {
    background: rgba(245, 240, 230, 0.92);
  }

  .header-nav-inner {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0.7rem var(--header-pad) 0.7rem 3.2rem;
  }

  .brand-logo {
    width: 185px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-link {
    padding-left: 0;
    padding-right: 0;
    border-radius: 0;
  }

  .hero-actions,
  .btn,
  .footer-cta {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
