:root {
  color-scheme: light;
  --paper: #f6efe3;
  --surface: #fffaf2;
  --surface-muted: #eee4d3;
  --ink: #132622;
  --ink-soft: #38504a;
  --muted: #6e7972;
  --line: rgba(19, 38, 34, 0.14);
  --teal: #0f4f4a;
  --coral: #bd6a52;
  --sage: #9caf9e;
  --shadow: 0 22px 60px rgba(47, 36, 22, 0.08);
  --max: 1180px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

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

p,
h1,
h2,
h3,
figure,
dl,
dd {
  margin: 0;
}

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

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

.skip-link:focus {
  z-index: 100;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  clip: auto;
  color: var(--surface);
  background: var(--ink);
  border-radius: var(--radius);
}

.site-header {
  position: fixed;
  z-index: 40;
  inset: 0 0 auto;
  border-bottom: 1px solid transparent;
  transition:
    background 180ms ease,
    border-color 180ms ease;
}

.site-header.is-scrolled,
.blog-page .site-header {
  background: rgba(246, 239, 227, 0.86);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.nav,
.section-inner,
.hero-inner {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
}

.nav {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-weight: 760;
}

.brand-mark {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--surface);
  background: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--ink-soft);
  font-size: 0.91rem;
  font-weight: 680;
}

.nav-links a {
  padding-block: 0.4rem;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  color: var(--teal);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 250, 242, 0.72);
  cursor: pointer;
  place-items: center;
}

.nav-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  margin: 2px auto;
  background: var(--ink);
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.nav-open .nav-toggle-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-open .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 90vh;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  padding: 7.25rem 1rem 4.25rem;
  border-bottom: 1px solid var(--line);
}

.hero-media,
.hero-media img,
.hero-overlay,
.signal-canvas {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -3;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.88);
}

.signal-canvas {
  z-index: -2;
  opacity: 0.22;
  mix-blend-mode: multiply;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(246, 239, 227, 0.98) 0%, rgba(246, 239, 227, 0.92) 42%, rgba(246, 239, 227, 0.44) 76%),
    linear-gradient(180deg, rgba(255, 250, 242, 0.2), rgba(246, 239, 227, 0.96));
}

.hero-inner {
  display: grid;
  justify-items: start;
}

.profile-lockup {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 0.82rem;
  margin-bottom: 1.9rem;
  padding: 0.36rem 0.84rem 0.36rem 0.36rem;
  border: 1px solid rgba(19, 38, 34, 0.14);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.74);
  box-shadow: 0 16px 40px rgba(47, 36, 22, 0.08);
  backdrop-filter: blur(14px);
}

.profile-lockup img {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border: 2px solid var(--surface);
  border-radius: 50%;
  object-fit: cover;
}

.profile-lockup figcaption {
  display: grid;
  min-width: 0;
  line-height: 1.2;
}

.profile-lockup strong {
  color: var(--ink);
  font-size: 0.96rem;
}

.profile-lockup span {
  color: var(--muted);
  font-size: 0.82rem;
}

.eyebrow {
  margin-bottom: 0.85rem;
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section-kicker h2,
.impact-layout h2,
.expertise-layout h2,
.blog-layout h2,
.contact-layout h2,
.blog-hero h1,
.article h2 {
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-weight: 560;
  letter-spacing: 0;
}

.hero h1 {
  width: min(100%, 610px);
  margin-bottom: 1rem;
  color: var(--ink);
  font-size: 3.18rem;
  line-height: 1.04;
}

.hero-copy {
  width: min(100%, 560px);
  margin-bottom: 1.65rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

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

.availability-note {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
}

.button {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 760;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

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

.button-primary {
  color: var(--surface);
  background: var(--teal);
}

.button-secondary {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 250, 242, 0.64);
}

.metric-rail {
  display: grid;
  width: min(100%, 620px);
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2.2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric-rail div {
  padding: 1rem 1.25rem 1rem 0;
}

.metric-rail div + div {
  padding-left: 1.25rem;
  border-left: 1px solid var(--line);
}

.metric-rail dt {
  color: var(--teal);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 2rem;
  line-height: 1;
  font-weight: 650;
}

.metric-rail dd {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.section {
  padding: 6.4rem 1rem;
}

.section-kicker {
  max-width: 640px;
}

.section-kicker h2,
.impact-layout h2,
.expertise-layout h2,
.blog-layout h2,
.contact-layout h2 {
  color: var(--ink);
  font-size: 2.7rem;
  line-height: 1.08;
  text-wrap: balance;
}

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

.story-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.64fr) minmax(0, 1.36fr);
  gap: 3.5rem;
  align-items: start;
}

.story-shell > .section-kicker,
.story-shell > .story-steps {
  grid-column: 1;
}

.story-shell > .story-board {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.story-steps {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 2.6rem 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.story-step {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.step-icon {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  color: var(--teal);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.72);
}

.step-icon svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.step-index {
  display: block;
  margin-bottom: 0.18rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.story-step strong {
  display: block;
  margin-bottom: 0.28rem;
  color: var(--ink);
  font-size: 1rem;
}

.story-step p {
  max-width: 420px;
  color: var(--muted);
  font-size: 0.92rem;
}

.story-step.is-active strong,
.story-step:hover strong {
  color: var(--teal);
}

.story-step.is-active .step-icon,
.story-step:hover .step-icon {
  color: var(--surface);
  border-color: var(--teal);
  background: var(--teal);
}

.story-board {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.86), rgba(246, 239, 227, 0.9)),
    linear-gradient(90deg, rgba(156, 175, 158, 0.16), transparent 60%);
  box-shadow: var(--shadow);
}

.story-board::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(19, 38, 34, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 38, 34, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(150deg, black, transparent 72%);
}

.story-board-labels {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.story-board-labels span {
  padding: 0.95rem 1.1rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.story-board-labels span + span {
  border-left: 1px solid var(--line);
}

.matrix {
  position: absolute;
  z-index: 3;
  top: 105px;
  left: 44px;
  display: grid;
  grid-template-columns: repeat(6, 17px);
  gap: 9px;
  transition:
    transform 520ms ease,
    opacity 520ms ease;
}

.matrix span {
  width: 17px;
  height: 17px;
  border-radius: 4px;
  background: rgba(15, 79, 74, 0.22);
  animation: matrixPulse 2600ms ease-in-out infinite;
}

.matrix span:nth-child(3n) {
  background: rgba(189, 106, 82, 0.42);
  animation-delay: 260ms;
}

.matrix span:nth-child(4n) {
  background: rgba(156, 175, 158, 0.42);
  animation-delay: 560ms;
}

@keyframes matrixPulse {
  0%,
  100% {
    opacity: 0.5;
    transform: translateY(0);
  }

  50% {
    opacity: 0.95;
    transform: translateY(-4px);
  }
}

.story-line {
  position: absolute;
  right: 5%;
  bottom: 140px;
  z-index: 2;
  width: min(86%, 650px);
}

.grid-line {
  fill: none;
  stroke: rgba(19, 38, 34, 0.1);
}

.line-fill {
  fill: rgba(156, 175, 158, 0.16);
}

.line-path {
  fill: none;
  stroke: var(--teal);
  stroke-linecap: round;
  stroke-width: 4;
  stroke-dasharray: 720;
  animation: drawLine 3600ms ease-in-out infinite alternate;
}

@keyframes drawLine {
  from {
    stroke-dashoffset: 160;
  }

  to {
    stroke-dashoffset: 0;
  }
}

.line-points circle {
  fill: var(--surface);
  stroke: var(--teal);
  stroke-width: 4;
}

.insight-panel {
  position: absolute;
  z-index: 4;
  right: 24px;
  bottom: 24px;
  left: 24px;
  min-height: 116px;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.88);
  backdrop-filter: blur(14px);
}

.insight-panel p {
  margin-bottom: 0.25rem;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.insight-panel strong {
  display: block;
  max-width: 540px;
  color: var(--ink);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 1.28rem;
  line-height: 1.18;
  font-weight: 560;
}

.insight-panel span {
  display: inline-block;
  margin-top: 0.72rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.story-board[data-state="1"] .matrix {
  transform: translate(98px, 56px);
}

.story-board[data-state="2"] .matrix {
  opacity: 0.72;
  transform: translate(220px, 102px) scale(0.86);
}

.story-board[data-state="3"] .matrix {
  opacity: 0.48;
  transform: translate(308px, 142px) scale(0.7);
}

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

.impact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  gap: 4rem;
  align-items: start;
}

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

.impact-list article {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.impact-list span {
  color: var(--teal);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 2.25rem;
  line-height: 1;
  font-weight: 650;
}

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

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

.work-heading {
  margin-bottom: 2.5rem;
}

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

.work-list article {
  display: grid;
  grid-template-columns: 4rem minmax(180px, 0.72fr) minmax(0, 1fr);
  gap: 1.4rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.work-list span,
.blog-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.work-list h3 {
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.25;
}

.work-list p {
  max-width: 620px;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.expertise-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  gap: 4rem;
  align-items: start;
}

.expertise-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.expertise-list li {
  padding: 0.58rem 0.78rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 250, 242, 0.55);
  font-size: 0.9rem;
  font-weight: 650;
}

.blog-preview,
.contact-section {
  background: var(--ink);
  color: var(--surface);
}

.blog-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
}

.blog-preview .eyebrow,
.blog-preview h2,
.contact-section .eyebrow,
.contact-section h2 {
  color: var(--surface);
}

.text-link {
  color: var(--surface);
  font-weight: 780;
  border-bottom: 1px solid rgba(255, 250, 242, 0.72);
}

.contact-section .button-secondary {
  color: var(--surface);
  border-color: rgba(255, 250, 242, 0.24);
  background: rgba(255, 250, 242, 0.07);
}

.site-footer {
  padding: 1rem;
  border-top: 1px solid rgba(255, 250, 242, 0.12);
  background: var(--ink);
  color: rgba(255, 250, 242, 0.72);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner a {
  color: var(--surface);
  font-weight: 700;
}

.blog-page {
  background: var(--surface);
}

.blog-hero {
  padding: 9rem 1rem 5rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(246, 239, 227, 0.78), rgba(255, 250, 242, 0.96)),
    url("assets/hero-data-story.webp") center / cover;
}

.blog-hero .section-inner {
  max-width: 780px;
}

.blog-author {
  margin-bottom: 1.8rem;
}

.blog-hero h1 {
  margin-bottom: 1rem;
  color: var(--ink);
  font-size: 2.84rem;
  line-height: 1.04;
}

.blog-hero p:not(.eyebrow) {
  max-width: 560px;
  font-size: 1.04rem;
}

.article-list {
  background: var(--surface);
}

.articles {
  display: grid;
  max-width: 860px;
  gap: 0;
  border-top: 1px solid var(--line);
}

.article {
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--line);
}

.article h2 {
  max-width: 680px;
  margin: 0.5rem 0 0.8rem;
  color: var(--ink);
  font-size: 2.1rem;
  line-height: 1.1;
}

.article p:not(.blog-label) {
  max-width: 700px;
  color: var(--ink-soft);
  font-size: 1rem;
}

@media (max-width: 980px) {
  .hero h1 {
    font-size: 2.78rem;
  }

  .story-shell,
  .impact-layout,
  .expertise-layout,
  .blog-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .story-shell > .section-kicker,
  .story-shell > .story-steps,
  .story-shell > .story-board {
    grid-column: 1;
  }

  .story-shell > .story-board {
    grid-row: auto;
    min-height: 500px;
  }

  .work-list article {
    grid-template-columns: 3rem minmax(0, 1fr);
  }

  .work-list p {
    grid-column: 2;
  }

  .text-link {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .nav {
    min-height: 68px;
  }

  .nav-toggle {
    display: grid;
    flex: 0 0 44px;
  }

  .nav-links {
    position: fixed;
    top: 68px;
    right: 1rem;
    left: 1rem;
    display: grid;
    gap: 0;
    padding: 0.55rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 250, 242, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

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

  .nav-links a {
    padding: 0.82rem;
  }

  .hero {
    min-height: auto;
    padding-top: 7rem;
  }

  .profile-lockup {
    width: 100%;
    border-radius: var(--radius);
  }

  .hero h1,
  .blog-hero h1 {
    font-size: 2.12rem;
    line-height: 1.06;
  }

  .section-kicker h2,
  .impact-layout h2,
  .expertise-layout h2,
  .blog-layout h2,
  .contact-layout h2 {
    font-size: 2.1rem;
  }

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

  .hero-actions .button,
  .contact-actions .button {
    width: 100%;
  }

  .metric-rail {
    grid-template-columns: 1fr;
  }

  .metric-rail div,
  .metric-rail div + div {
    padding: 1rem 0;
    border-left: 0;
  }

  .metric-rail div + div {
    border-top: 1px solid var(--line);
  }

  .section {
    padding-block: 4.5rem;
  }

  .story-step {
    grid-template-columns: 2.6rem minmax(0, 1fr);
  }

  .story-board {
    min-height: 460px;
  }

  .matrix {
    top: 92px;
    left: 24px;
    grid-template-columns: repeat(6, 14px);
    gap: 7px;
  }

  .matrix span {
    width: 14px;
    height: 14px;
  }

  .story-line {
    right: 3%;
    bottom: 145px;
    width: 96%;
  }

  .insight-panel {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }

  .insight-panel strong {
    font-size: 1.1rem;
  }

  .impact-list article {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .work-list article {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .work-list p {
    grid-column: auto;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .hero h1,
  .blog-hero h1 {
    font-size: 1.96rem;
  }
}

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

  .signal-canvas {
    display: none;
  }
}
