:root {
  --bg: #f8f6f1;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --text: #171717;
  --muted: #64615b;
  --line: #ddd8cd;
  --line-strong: #c9c0b1;
  --accent: #8b3326;
  --accent-dark: #612115;
  --hero-diagonal: rgba(139, 51, 38, 0.62);
  --charcoal: #20201e;
  --charcoal-soft: #2c2c29;
  --max: 1180px;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(23, 23, 23, 0.08);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(23, 23, 23, 0.035) 1px, transparent 1px) 0 0 / 92px 92px,
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

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

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

.skip-link:focus {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  background: var(--text);
  color: var(--surface);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(221, 216, 205, 0.72);
  background: rgba(248, 246, 241, 0.9);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--text);
  background:
    linear-gradient(90deg, rgba(248, 246, 241, 0.1) 1px, transparent 1px),
    linear-gradient(180deg, rgba(248, 246, 241, 0.1) 1px, transparent 1px),
    var(--text);
  background-size: 9px 9px;
}

.brand-mark svg {
  width: 26px;
  height: 26px;
}

.brand-mark path {
  fill: none;
  stroke: var(--surface);
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 3.2;
}

.brand-name {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  font-weight: 670;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(201, 192, 177, 0.72);
  background: rgba(255, 253, 248, 0.56);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 620;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 40px rgba(23, 23, 23, 0.045);
}

.nav-links a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border-right: 1px solid rgba(201, 192, 177, 0.46);
  padding: 0 14px;
  text-decoration: none;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.nav-links a:last-child {
  border-right: 0;
}

.nav-links a:hover,
.text-link:hover,
.footer-links a:hover {
  color: var(--accent);
}

.nav-cta {
  background: rgba(23, 23, 23, 0.92);
  color: var(--surface);
  font-weight: 720;
}

.nav-cta:hover {
  background: var(--accent);
  color: #fffaf3;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  background: transparent;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  display: block;
  width: 18px;
  height: 1px;
  margin-inline: auto;
  background: var(--text);
  content: "";
}

.nav-toggle__bar::before {
  transform: translateY(-6px);
}

.nav-toggle__bar::after {
  transform: translateY(5px);
}

.hero {
  min-height: calc(100svh - 78px);
  padding: clamp(76px, 12vw, 142px) 0 clamp(54px, 8vw, 96px);
}

.hero-grid,
.split,
.founder-grid,
.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.65fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: start;
}

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

.eyebrow,
.section-kicker {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 900px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 8vw, 7.2rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.95;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.6vw, 4.35rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.02;
}

h3 {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 680;
  line-height: 1.25;
}

.hero-lede {
  max-width: 680px;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 13px 18px;
  font-weight: 720;
  text-decoration: none;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

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

.button--primary {
  border-color: var(--accent-dark);
  background: var(--accent);
  color: #fffaf3;
}

.button--primary:hover {
  background: var(--accent-dark);
}

.button--secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.38);
}

.button--secondary:hover {
  border-color: var(--text);
}

.hero-panel {
  display: grid;
  gap: 14px;
  padding-top: 28px;
}

.hero-panel::before {
  display: block;
  width: 100%;
  height: clamp(170px, 22vw, 260px);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, transparent 49.6%, var(--hero-diagonal) 50%, transparent 50.4%),
    linear-gradient(90deg, rgba(23, 23, 23, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(23, 23, 23, 0.08) 1px, transparent 1px),
    var(--surface);
  background-size: auto, 34px 34px, 34px 34px, auto;
  content: "";
  box-shadow: var(--shadow);
}

html[data-darkreader-mode] {
  --hero-diagonal: rgba(255, 250, 243, 0.9);
}

.signal-card {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.86);
  padding: 22px;
}

.signal-card--accent {
  border-color: rgba(139, 51, 38, 0.36);
}

.signal-card__label {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.signal-card p,
.copy-stack p,
.service-card p,
.process-step p,
.principles-block li,
.audience-line p,
.work-list p,
.work-note,
.founder-copy p,
.cta-card p,
.cta-grid p {
  color: var(--muted);
}

.section {
  padding: clamp(76px, 10vw, 132px) 0;
}

.section--compact {
  padding: clamp(54px, 7vw, 86px) 0;
}

.section--ruled {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.56);
}

.copy-stack {
  display: grid;
  gap: 18px;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
}

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

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  min-height: 280px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.68);
  padding: clamp(22px, 3vw, 32px);
}

.service-card span {
  display: block;
  margin-bottom: 42px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 780;
}

.service-card h3 {
  margin-bottom: 14px;
}

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

.section--dark .section-kicker,
.section--dark .process-step span {
  color: #d88976;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 253, 248, 0.18);
}

.process-step {
  min-height: 310px;
  background: var(--charcoal-soft);
  padding: clamp(24px, 4vw, 36px);
}

.process-step span {
  display: block;
  margin-bottom: 66px;
  font-size: 0.82rem;
  font-weight: 780;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.process-step p {
  color: #c9c5bd;
}

.principles-block {
  display: grid;
  grid-template-columns: calc((100% - 2px) / 3) minmax(0, 1fr);
  gap: 0;
  margin-top: 34px;
  border-top: 1px solid rgba(255, 253, 248, 0.18);
  padding-top: 28px;
}

.principles-block h3 {
  color: var(--surface);
}

.principles-block ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.principles-block li {
  border-left: 1px solid rgba(216, 137, 118, 0.5);
  padding-left: 16px;
}

.audience-line {
  align-self: center;
  border-left: 1px solid var(--line-strong);
  padding-left: clamp(22px, 3vw, 34px);
}

.audience-line p {
  max-width: 640px;
  font-size: clamp(1.16rem, 2vw, 1.45rem);
  line-height: 1.45;
}

.work-list {
  display: grid;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.work-list li {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.work-list span {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-list p {
  max-width: 720px;
}

.work-note {
  max-width: 640px;
  margin-top: 22px;
  font-size: 0.96rem;
}

.section--warm {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #eee9df;
}

.founder-grid {
  grid-template-columns: minmax(280px, 0.48fr) minmax(0, 0.86fr);
  align-items: center;
}

.founder-media {
  position: relative;
}

.founder-media::after {
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 58%;
  height: 42%;
  border: 1px solid var(--accent);
  content: "";
}

.founder-media img {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  max-height: 650px;
  height: auto;
  aspect-ratio: 640 / 800;
  border: 1px solid var(--line-strong);
  filter: saturate(0.9) contrast(1.04);
}

.founder-copy {
  max-width: 720px;
}

.founder-copy p {
  margin-top: 18px;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
}

.text-link {
  display: inline-flex;
  margin-top: 26px;
  color: var(--text);
  font-weight: 740;
  text-underline-offset: 5px;
}

.cta-section {
  background: var(--surface);
}

.cta-grid {
  align-items: center;
}

.cta-grid > div:first-child > p:not(.section-kicker) {
  max-width: 640px;
  margin-top: clamp(20px, 2.4vw, 30px);
  font-size: clamp(1.05rem, 1.45vw, 1.18rem);
}

.cta-card {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow);
}

.cta-card p {
  margin-top: 20px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  background: var(--bg);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

::selection {
  background: rgba(139, 51, 38, 0.18);
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: fixed;
    inset: 79px 0 auto 0;
    display: none;
    height: calc(100svh - 79px);
    align-content: start;
    align-items: stretch;
    gap: 0;
    border: 0;
    border-top: 1px solid var(--line);
    background: var(--bg);
    padding: 22px 20px;
    box-shadow: none;
  }

  .nav-links.is-open {
    display: grid;
  }

  .nav-links a {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
    color: var(--text);
    font-size: 1.35rem;
  }

  .nav-cta {
    border: 0;
    background: transparent;
    color: var(--text);
  }

  .container {
    width: min(100% - 56px, var(--max));
  }

  .hero-grid,
  .split,
  .founder-grid,
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-panel {
    max-width: 620px;
    padding-top: 0;
  }

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

  .principles-block,
  .principles-block ul {
    grid-template-columns: 1fr;
  }

  .principles-block h3 {
    margin-bottom: 18px;
  }

  .principles-block {
    padding-left: 8px;
  }

  .founder-media {
    justify-self: center;
    width: fit-content;
    margin-inline: auto;
  }

  .founder-media::after {
    right: -9px;
    bottom: -18px;
    width: 50%;
    height: 38%;
  }

  .service-card,
  .process-step {
    min-height: auto;
  }

  .service-card span,
  .process-step span {
    margin-bottom: 28px;
  }
}

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

  .nav {
    min-height: 68px;
  }

  .nav-links {
    inset-block-start: 69px;
    height: calc(100svh - 69px);
  }

  h1 {
    font-size: clamp(2.65rem, 15vw, 4.25rem);
  }

  .hero {
    padding-top: 54px;
  }

  #positioning,
  #services,
  #process,
  #selected-work,
  #founder,
  #contact {
    padding-top: 48px;
  }

  #positioning,
  #services,
  #process {
    padding-bottom: 56px;
  }

  #selected-work,
  #founder {
    padding-bottom: 42px;
  }

  .founder-media {
    margin: 20px auto 34px;
    padding-right: 0;
  }

  .founder-media img {
    width: min(100%, 386px);
  }

  .work-list li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column-reverse;
    gap: 12px;
  }

  .footer-links {
    flex-direction: row;
    gap: 18px;
  }

  .footer-grid p {
    margin-top: 0;
  }

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

  .button {
    width: 100%;
  }
}

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