:root {
  --bg: #fbf1dc;
  --ink: #171511;
  --muted: #665f53;
  --soft: #8e806e;
  --line: #e2d2b9;
  --line-strong: #bca98d;
  --panel: #fffaf1;
  --accent: #c74632;
  --accent-dark: #87362b;
  --sky: #58c7dd;
  --sky-deep: #174b55;
  --gold: #f1b53c;
  --mint: #5aa887;
  --paper-shadow: rgba(89, 67, 35, 0.12);
  --max: 960px;
  --scroll-progress: 0;
  --font: "Geist", 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(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.42;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(60, 43, 24, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(60, 43, 24, 0.045) 1px, transparent 1px);
  background-size: 84px 84px;
  transform: translateY(calc(var(--scroll-progress) * -36px));
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.82), transparent 84%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(135deg, rgba(88, 199, 221, 0.24), transparent 36%),
    linear-gradient(315deg, rgba(241, 181, 60, 0.18), transparent 42%),
    var(--bg);
}

.scroll-rail {
  position: fixed;
  top: 22px;
  right: 20px;
  z-index: 30;
  width: 3px;
  height: calc(100vh - 44px);
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 21, 17, 0.14);
}

.scroll-rail span {
  display: block;
  width: 100%;
  height: calc(var(--scroll-progress) * 100%);
  min-height: 16px;
  border-radius: inherit;
  background: var(--accent);
}

.page-wash {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.wash-strip {
  position: absolute;
  display: block;
  width: 220px;
  height: 64px;
  border: 1px solid rgba(23, 21, 17, 0.06);
  border-radius: 8px;
  opacity: 0.2;
  transform: translateY(var(--parallax-y, 0)) rotate(var(--wash-rotate, -9deg));
  will-change: transform;
}

.wash-one {
  top: 190px;
  right: 72px;
  background: rgba(88, 199, 221, 0.5);
  --wash-rotate: -8deg;
}

.wash-two {
  top: 70%;
  left: 64px;
  background: rgba(241, 181, 60, 0.38);
  --wash-rotate: 5deg;
}

.wash-three {
  right: 22%;
  bottom: 96px;
  background: rgba(90, 168, 135, 0.28);
  --wash-rotate: -3deg;
}

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

button {
  appearance: none;
  color: inherit;
  font: inherit;
}

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

.icon-sprite {
  display: none;
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

main {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 48px 0 34px;
  position: relative;
  min-width: 0;
}

.hero {
  position: relative;
  min-height: 660px;
  display: flex;
  align-items: center;
  padding: 64px 0 74px;
  isolation: isolate;
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.46fr);
  gap: 36px;
  align-items: center;
  width: 100%;
}

.hero-copy {
  min-width: 0;
}

.identity {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.hero-color-system {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.color-tile {
  position: absolute;
  display: block;
  border: 1px solid rgba(23, 21, 17, 0.08);
  border-radius: 8px;
  box-shadow: 0 16px 40px var(--paper-shadow);
  transform: translateY(var(--parallax-y, 0)) rotate(var(--tile-rotate, -5deg));
  will-change: transform;
}

.tile-a {
  top: 84px;
  right: 18px;
  width: 132px;
  height: 76px;
  background: var(--sky);
  --tile-rotate: 7deg;
  opacity: 0.55;
}

.tile-b {
  top: 242px;
  right: 8px;
  width: 76px;
  height: 48px;
  background: var(--gold);
  --tile-rotate: -12deg;
  opacity: 0.5;
}

.tile-c {
  right: 126px;
  bottom: 72px;
  width: 86px;
  height: 54px;
  background: var(--mint);
  --tile-rotate: 10deg;
  opacity: 0.45;
}

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

h1 {
  max-width: 760px;
  margin-top: 16px;
  font-size: 64px;
  font-weight: 900;
  line-height: 0.99;
  position: relative;
  text-wrap: balance;
}

.hero-eyebrow {
  margin-top: 26px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.subtitle {
  max-width: 650px;
  margin-top: 20px;
  color: #3f3e3a;
  font-size: 21px;
  line-height: 1.32;
  position: relative;
  overflow-wrap: break-word;
}

.icon-links,
.contact-actions,
.proof-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.icon-links a,
.proof-links a,
.contact-actions a,
.contact-actions button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.68);
  cursor: pointer;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(89, 67, 35, 0.08);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.icon-links a:hover,
.proof-links a:hover,
.contact-actions a:hover,
.contact-actions button:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}

.proof-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 760px;
  margin-top: 26px;
  gap: 12px;
}

.proof-links a {
  justify-content: flex-start;
  min-width: 0;
  min-height: 58px;
  padding: 10px 15px 10px 12px;
  border-color: rgba(188, 169, 141, 0.78);
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.9), rgba(255, 250, 241, 0.58)),
    rgba(255, 250, 241, 0.72);
  font-size: 13px;
  box-shadow: 0 12px 30px rgba(89, 67, 35, 0.1);
  backdrop-filter: blur(8px);
}

.proof-links a:nth-child(2) {
  grid-column: span 1;
}

.proof-links a:last-child {
  width: fit-content;
  min-width: 220px;
}

.proof-links a > span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.proof-links strong {
  display: block;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.05;
}

.proof-links small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pill-logo {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.pill-rosebud {
  background: #dc6d57;
}

.pill-mason {
  background: #151515;
}

.pill-codex {
  background: #317b8a;
  font-size: 10px;
}

.pill-willoe {
  background: #5aa887;
}

.pill-linkedin {
  background: #0a66c2;
  font-size: 11px;
  font-weight: 800;
}

.section {
  position: relative;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.section::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 74px;
  height: 3px;
  content: "";
  background: var(--section-accent, var(--accent));
}

.section h2 {
  margin-bottom: 30px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.what-section {
  padding-top: 52px;
  --section-accent: var(--sky);
}

.what-story {
  margin-bottom: 28px;
}

.what-story > p {
  max-width: 770px;
  color: #272624;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.2;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.42);
}

.metric-row span {
  min-height: 120px;
  padding: 24px 22px 22px;
  border-right: 1px solid var(--line);
}

.metric-row.is-visible span {
  opacity: 1;
  transform: translateY(0);
}

.metric-row.is-visible span:nth-child(2) {
  transition-delay: 80ms;
}

.metric-row.is-visible span:nth-child(3) {
  transition-delay: 160ms;
}

.metric-row.is-visible span:nth-child(4) {
  transition-delay: 240ms;
}

.metric-row span:last-child {
  border-right: 0;
}

.metric-row strong {
  display: block;
  color: var(--accent);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.metric-row small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.28;
}

.stack {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.icon-row,
.life-list article {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.icon-row .icon,
.life-list .icon {
  margin-top: 4px;
  color: var(--accent);
  transition: color 240ms ease, transform 240ms ease;
}

.icon-row:hover .icon,
.life-list article:hover .icon {
  color: var(--sky-deep);
  transform: translateY(-2px);
}

h3 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.08;
}

.icon-row p,
.list p,
.life-list p,
footer p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.48;
}

.icon-row p {
  max-width: 650px;
  margin-top: 7px;
}

.who-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 28px;
  align-items: stretch;
}

.who-note {
  max-width: 680px;
  color: #272624;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.28;
}

.who-note p + p {
  margin-top: 16px;
}

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

.principles-list li {
  display: grid;
  grid-template-columns: minmax(170px, 0.52fr) minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.principles-list strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.12;
}

.principles-list span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
}

.photo-frame {
  position: relative;
  min-height: 0;
  overflow: visible;
  border: 1px solid rgba(23, 21, 17, 0.08);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 48px var(--paper-shadow);
  transform: translateY(var(--parallax-y, 0));
  will-change: transform;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.photo-frame::before {
  position: absolute;
  inset: 10px auto auto 10px;
  z-index: 2;
  width: 50px;
  height: 12px;
  border-radius: 999px;
  content: "";
  background: var(--photo-accent, var(--gold));
}

.photo-frame-warm {
  --photo-accent: var(--gold);
}

.photo-frame-cool {
  --photo-accent: var(--sky);
}

.photo-frame img {
  height: auto;
  min-height: 0;
  max-height: 760px;
  object-fit: contain;
  filter: saturate(0.92) contrast(1.02);
  border-radius: 6px;
  transform: none;
  transition: transform 700ms ease, filter 700ms ease;
}

.photo-frame:hover img {
  filter: saturate(1.08) contrast(1.04);
  transform: none;
}

.who-grid img {
  max-height: 420px;
  object-position: 50% 36%;
}

.hero-photo {
  align-self: center;
  justify-self: end;
  width: min(100%, 312px);
  --photo-accent: var(--sky);
}

.hero-photo img {
  max-height: 390px;
}

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

.list article,
.list a {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 24px;
  gap: 24px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.list article {
  grid-template-columns: 210px minmax(0, 1fr);
}

.list h3 {
  font-size: 21px;
}

.list div p {
  margin-top: 5px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.list a {
  transition: color 180ms ease, padding-left 180ms ease, background 180ms ease;
}

.list a:hover {
  padding-left: 8px;
  color: var(--accent-dark);
  background: rgba(88, 199, 221, 0.07);
}

.list a .icon {
  margin-top: 2px;
  justify-self: end;
}

.life-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 22px;
}

.life-grid .life-wide,
.life-grid .life-wide img {
  min-height: 0;
}

.life-grid .life-wide {
  grid-row: span 2;
}

.travel-card {
  --photo-accent: var(--mint);
}

.travel-card img {
  max-height: 320px;
  width: 100%;
}

.project-section {
  --section-accent: var(--gold);
}

.life-section {
  --section-accent: var(--mint);
}

.life-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  border-top: 1px solid var(--line);
}

.life-list h3 {
  font-size: 19px;
}

.life-list p {
  margin-top: 5px;
}

.contact {
  padding-bottom: 58px;
  --section-accent: var(--accent);
}

.contact-actions {
  margin-top: 0;
}

.contact-actions .primary {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.contact-actions .primary:hover {
  background: transparent;
  color: var(--ink);
}

footer {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.motion-ready .reveal {
  opacity: 1;
  transform: translateY(24px);
  transition: opacity 720ms ease, transform 720ms ease;
}

.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.motion-ready .hero.reveal,
.motion-ready .what-section.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

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

  .reveal,
  .metric-row span,
  .wash-strip,
  .color-tile,
  .photo-frame {
    opacity: 1;
    transform: none !important;
  }
}

@media (max-width: 820px) {
  main {
    width: min(calc(100% - 28px), var(--max));
    padding-top: 28px;
  }

  .hero {
    min-height: 0;
    padding: 48px 0 64px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero-photo {
    order: -1;
    justify-self: start;
    width: min(100%, 210px);
  }

  .hero-photo img {
    max-height: 250px;
  }

  .tile-a {
    top: 78px;
    right: 8px;
    width: 110px;
    height: 68px;
  }

  .tile-b {
    top: 300px;
    right: 34px;
    width: 68px;
    height: 42px;
  }

  .tile-c {
    right: 118px;
    bottom: 72px;
  }

  h1 {
    font-size: 42px;
  }

  .subtitle {
    font-size: 19px;
  }

  .who-grid,
  .life-grid,
  .life-list {
    grid-template-columns: 1fr;
  }

  .life-grid .life-wide {
    grid-row: auto;
  }

  .who-note {
    font-size: 26px;
  }

  .what-story > p {
    font-size: 24px;
  }

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

  .metric-row span:nth-child(2) {
    border-right: 0;
  }

  .metric-row span:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .list article,
  .list a {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .list a .icon {
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .scroll-rail {
    display: none;
  }

  .wash-strip {
    display: none;
  }

  main {
    width: min(calc(100% - 22px), var(--max));
    padding-top: 18px;
  }

  .hero {
    min-height: 0;
    padding: 22px 0 36px;
  }

  .tile-a {
    top: 104px;
    right: 4px;
    width: 104px;
    height: 64px;
  }

  .tile-b {
    display: none;
  }

  .tile-c {
    display: none;
  }

  .identity {
    font-size: 13px;
  }

  h1 {
    margin-top: 14px;
    font-size: 32px;
    line-height: 1.03;
  }

  .subtitle {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.36;
  }

  .hero-eyebrow {
    margin-top: 18px;
  }

  .hero-photo {
    width: 132px;
  }

  .hero-photo img {
    max-height: 168px;
  }

  .proof-links {
    grid-template-columns: 1fr;
    margin-top: 18px;
    gap: 9px;
  }

  .proof-links a {
    justify-content: flex-start;
    min-width: 0;
    width: 100%;
    min-height: 54px;
    padding: 10px 13px;
    white-space: nowrap;
  }

  .proof-links a:last-child {
    width: 100%;
    min-width: 0;
  }

  .proof-links strong {
    font-size: 13px;
  }

  .proof-links small {
    font-size: 10px;
  }

  .section {
    padding: 40px 0;
  }

  h3 {
    font-size: 21px;
  }

  .icon-row,
  .life-list article {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 14px;
    padding: 22px 0;
  }

  .who-note {
    font-size: 19px;
    line-height: 1.34;
  }

  .principles-list {
    margin-top: 16px;
  }

  .principles-list li {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 13px 0;
  }

  .principles-list strong {
    font-size: 17px;
  }

  .principles-list span {
    font-size: 15px;
  }

  .what-story > p {
    font-size: 21px;
  }

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

  .metric-row span,
  .metric-row span:nth-child(2) {
    min-height: auto;
    padding: 18px 0;
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .metric-row span:first-child {
    border-top: 0;
  }

  .photo-frame,
  .photo-frame img,
  .life-grid .life-wide,
  .life-grid .life-wide img {
    min-height: 0;
  }

  .icon-links a,
  .contact-actions a,
  .contact-actions button {
    max-width: 100%;
  }
}
