:root {
  --ink: #101114;
  --ink-soft: #4f555e;
  --paper: #f7f4ef;
  --paper-clean: #fffdf9;
  --line: rgba(16, 17, 20, 0.14);
  --teal: #126b67;
  --teal-dark: #0d4542;
  --amber: #d98d2b;
  --coral: #c55442;
  --charcoal: #15171c;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(16, 17, 20, 0.16);
  --max: 1160px;
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper-clean);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.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;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 16px clamp(18px, 4vw, 48px);
  color: var(--white);
  transition:
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header:has(.site-nav.is-open) {
  background: rgba(255, 253, 249, 0.96);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  font-weight: 760;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-size: 0.76rem;
  letter-spacing: 0;
}

.brand-name {
  font-size: 1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 32px);
  font-size: 0.94rem;
  font-weight: 650;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 8px;
}

.nav-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 84svh;
  overflow: hidden;
  color: var(--white);
  background: var(--charcoal);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(1.04);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(15, 17, 19, 0.84) 0%, rgba(15, 17, 19, 0.58) 42%, rgba(15, 17, 19, 0.2) 100%),
    linear-gradient(0deg, rgba(15, 17, 19, 0.32), rgba(15, 17, 19, 0.1));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(680px, calc(100% - 36px));
  margin: 86px auto 54px;
  padding-right: min(8vw, 96px);
  transform: translateX(calc((min(100vw, var(--max)) - min(680px, calc(100vw - 36px))) / -2));
}

.eyebrow,
.section-kicker,
.project-label,
.contact-label {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0b465;
}

.hero h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(4.8rem, 14vw, 11rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.25rem, 2.4vw, 1.9rem);
  line-height: 1.28;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 780;
  line-height: 1.2;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

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

.button-primary {
  color: var(--ink);
  background: var(--white);
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.08);
}

.inline-button {
  width: max-content;
  color: var(--white);
  background: var(--teal-dark);
}

.section {
  padding: clamp(64px, 8vw, 112px) clamp(18px, 4vw, 48px);
}

.section-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.section-muted {
  background: var(--paper);
}

.section-dark {
  color: var(--white);
  background: var(--charcoal);
}

.section-dark .section-kicker {
  color: #efae57;
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(34px, 5vw, 56px);
}

.section-heading.split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  align-items: end;
  max-width: none;
  gap: clamp(24px, 6vw, 88px);
}

.section-heading.split p:last-child {
  margin: 0 0 8px;
  color: var(--ink-soft);
}

h2 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.14;
  letter-spacing: 0;
}

p {
  color: var(--ink-soft);
}

.intro {
  padding-top: clamp(38px, 5vw, 72px);
  padding-bottom: clamp(52px, 6vw, 88px);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 80px);
}

.intro-copy {
  max-width: 840px;
}

.intro-copy p {
  max-width: 740px;
  margin: 26px 0 0;
  font-size: clamp(1.05rem, 1.8vw, 1.34rem);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 290px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-clean);
  box-shadow: 0 1px 0 rgba(16, 17, 20, 0.04);
}

.service-card:nth-child(2) {
  border-top-color: rgba(18, 107, 103, 0.46);
}

.service-card:nth-child(3) {
  border-top-color: rgba(197, 84, 66, 0.5);
}

.card-number {
  display: inline-flex;
  margin-bottom: 70px;
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 850;
}

.service-card p {
  margin: 18px 0 0;
}

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

.person-card {
  min-height: 300px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-clean);
}

.person-card h3 {
  margin-top: 54px;
}

.person-card p:last-child {
  margin: 18px 0 0;
}

.person-role {
  margin: 0;
  color: var(--coral);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.project-item {
  display: grid;
  grid-template-columns: minmax(210px, 0.6fr) minmax(0, 1fr) minmax(120px, auto);
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(24px, 4vw, 36px) 0;
  border-bottom: 1px solid var(--line);
}

.project-item p {
  margin: 0;
}

.project-item > p {
  max-width: 640px;
  font-size: 1.04rem;
}

.project-link {
  color: inherit;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    padding-inline 160ms ease;
}

.project-link:hover,
.project-link:focus-visible {
  padding-inline: 16px;
  color: var(--teal-dark);
  background: rgba(18, 107, 103, 0.06);
  outline: none;
}

.project-cta {
  justify-self: end;
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.project-cta::after {
  content: " ->";
}

.project-label {
  margin-bottom: 10px;
  color: var(--coral);
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(36px, 7vw, 92px);
}

.process-list {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.process-list li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.process-list span {
  color: #efae57;
  font-weight: 850;
}

.process-list p {
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.contact-section {
  background: var(--paper-clean);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: center;
  gap: clamp(28px, 6vw, 78px);
}

.contact-layout p {
  max-width: 660px;
  font-size: 1.08rem;
}

.contact-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.contact-link {
  display: inline-block;
  color: var(--teal-dark);
  font-size: clamp(1.45rem, 3.8vw, 2.35rem);
  font-weight: 820;
  line-height: 1.05;
  word-break: break-word;
}

.contact-note {
  margin: 22px 0 0;
}

.site-footer {
  padding: 28px clamp(18px, 4vw, 48px);
  color: rgba(255, 255, 255, 0.76);
  background: var(--ink);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.footer-inner p {
  margin: 0;
  color: inherit;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.legal-main {
  padding-top: 110px;
}

.books-hero {
  padding-bottom: clamp(52px, 6vw, 88px);
}

.about-hero {
  padding-bottom: clamp(52px, 6vw, 88px);
}

.about-hero h1,
.books-hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.light-list {
  border-top-color: var(--line);
}

.light-list li {
  border-bottom-color: var(--line);
}

.light-list p {
  color: var(--ink-soft);
}

.legal-document {
  width: min(860px, calc(100% - 36px));
  margin: 0 auto;
  padding: 64px 0 96px;
}

.legal-document h1 {
  margin: 0 0 18px;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.legal-document h2 {
  margin-top: 42px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.notice {
  padding: 18px 20px;
  margin: 28px 0;
  border: 1px solid rgba(197, 84, 66, 0.32);
  border-radius: 8px;
  color: #66271f;
  background: #fff1ed;
}

@media (max-width: 920px) {
  .site-header {
    min-height: 68px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: fixed;
    top: 68px;
    right: 16px;
    left: 16px;
    display: grid;
    gap: 4px;
    padding: 18px;
    color: var(--ink);
    background: var(--paper-clean);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 160ms ease,
      transform 160ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 12px 4px;
  }

  .hero {
    min-height: 82svh;
  }

  .hero-content {
    width: min(100% - 36px, 680px);
    margin-top: 96px;
    padding-right: 0;
    transform: none;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(15, 17, 19, 0.88) 0%, rgba(15, 17, 19, 0.56) 72%, rgba(15, 17, 19, 0.36) 100%),
      linear-gradient(0deg, rgba(15, 17, 19, 0.28), rgba(15, 17, 19, 0.16));
  }

  .intro-grid,
  .section-heading.split,
  .process-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

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

  .service-card {
    min-height: auto;
  }

  .card-number {
    margin-bottom: 42px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-inline: 14px;
  }

  .brand-name {
    font-size: 0.96rem;
  }

  .hero {
    min-height: 80svh;
  }

  .hero-image {
    object-position: 58% center;
  }

  .hero h1 {
    font-size: clamp(4.4rem, 22vw, 7rem);
  }

  .hero-copy {
    font-size: 1.13rem;
  }

  .button {
    width: 100%;
  }

  .section {
    padding-inline: 18px;
  }

  .project-item {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .project-link:hover,
  .project-link:focus-visible {
    padding-inline: 0;
  }

  .project-cta {
    justify-self: start;
  }

  .process-list li {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .contact-panel {
    padding: 22px;
  }

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

@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;
  }
}
