:root {
  --bg: #f3ecdb;
  --bg-2: #ede4ce;
  --surface: #faf5e8;
  --ink: #1a1914;
  --ink-2: #48423a;
  --ink-3: #7a7368;
  --line: #e2d9c1;
  --line-2: #d0c6ad;
  --accent: #c94a1a;
  --accent-ink: #7a2a0c;
  --dark: #1a1914;
  --dark-2: #23211b;
  --cream: #f3ecdb;
  --good: #4a7a3f;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1180px;
  --gutter: clamp(20px, 4vw, 52px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--cream); }

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

/* NAV */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-nav.is-scrolled { border-bottom-color: var(--line); }

.site-nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand__mark {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: var(--ink);
}
.brand__mark svg { width: 100%; height: 100%; }

.brand__words {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand__name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.brand__sub {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.site-nav__links {
  margin-left: auto;
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-2);
}
.site-nav__links a { position: relative; padding: 4px 0; transition: color 0.2s ease; }
.site-nav__links a:hover { color: var(--ink); }
.site-nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.site-nav__links a:hover::after { transform: scaleX(1); }

@media (max-width: 820px) {
  .site-nav__links { display: none; }
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  white-space: nowrap;
}
.btn svg { width: 14px; height: 14px; transition: transform 0.25s ease; }
.btn:hover svg { transform: translateX(3px); }

.btn--sm { padding: 9px 14px; font-size: 13.5px; }

.btn--solid {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.btn--solid:hover {
  transform: translateY(-1px);
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn--ghost:hover {
  border-color: var(--ink);
  background: rgba(26, 25, 20, 0.04);
}

.btn--on-dark {
  background: var(--cream);
  color: var(--dark);
  border-color: var(--cream);
}
.btn--on-dark:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* HERO */
.hero {
  padding-top: clamp(64px, 9vw, 120px);
  padding-bottom: clamp(56px, 8vw, 110px);
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12.5px;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}
.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 74, 26, 0.18);
}

.display {
  margin: 28px 0 24px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(42px, 6.2vw, 86px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 18ch;
}
.display em {
  font-style: normal;
  color: var(--accent);
  font-weight: 500;
  position: relative;
}

.lede {
  margin: 0 0 32px;
  max-width: 60ch;
  font-size: clamp(16.5px, 1.15vw, 18.5px);
  line-height: 1.58;
  color: var(--ink-2);
  font-weight: 400;
}

.ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
}
.facts > div { padding-right: 16px; }
.facts > div + div { padding-left: 20px; border-left: 1px solid var(--line); }

.facts dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.facts dd {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}

@media (max-width: 720px) {
  .facts { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .facts > div + div { border-left: none; padding-left: 0; }
  .facts > div:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 16px; }
  .facts > div:nth-child(even) { padding-left: 20px; }
}

/* PANELS */
.panel {
  padding-top: clamp(80px, 10vw, 140px);
  padding-bottom: clamp(80px, 10vw, 140px);
  position: relative;
  border-top: 1px solid var(--line);
}
.panel + .panel { border-top: 1px solid var(--line); }

.section-head {
  max-width: 820px;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.section-label__dash {
  display: inline-block;
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.section-title {
  margin: 0 0 20px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.section-title em {
  font-style: normal;
  color: var(--accent);
  font-weight: 500;
}

.section-lede {
  margin: 0;
  max-width: 64ch;
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink-2);
}

/* THESIS */
.thesis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
}
@media (max-width: 900px) { .thesis { grid-template-columns: 1fr; } }

.thesis__item {
  padding: 32px 28px 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  position: relative;
  transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}
.thesis__item:hover {
  transform: translateY(-3px);
  background: #fbf7ea;
  border-color: var(--line-2);
}

.thesis__num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  margin-bottom: 44px;
}

.thesis__item h3 {
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.thesis__item p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.6;
}

/* APPROACH */
.approach {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.4vw, 32px);
}
@media (max-width: 820px) { .approach { grid-template-columns: 1fr; } }

.approach__card {
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.approach__card h3 {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.list li {
  position: relative;
  padding: 14px 0 14px 30px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
}
.list li:first-child { border-top: none; padding-top: 4px; }
.list li:last-child { padding-bottom: 0; }

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: block;
}
.list li:first-child::before { top: 8px; }

.list--yes li::before {
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='%23c94a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3 8.5 7 12l6-7'/></svg>") center/11px no-repeat,
    rgba(201, 74, 26, 0.08);
}
.list--no li::before {
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='%2348423a' stroke-width='2' stroke-linecap='round' d='M4 4l8 8M12 4l-8 8'/></svg>") center/10px no-repeat,
    rgba(72, 66, 58, 0.08);
}

.pull {
  margin: clamp(40px, 5vw, 72px) 0 0;
  padding: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 56px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  max-width: 900px;
}
.pull blockquote {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 400;
}
.pull__accent { color: var(--accent); font-weight: 500; }
.pull cite {
  display: block;
  margin-top: 20px;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* INVERTED PANEL (PORTFOLIO) */
.panel--inverted {
  background: var(--dark);
  color: var(--cream);
  border-top-color: var(--dark);
}
.panel--inverted + .panel { border-top-color: var(--dark); }

.panel--inverted .section-label { color: rgba(243, 236, 219, 0.6); }
.panel--inverted .section-title { color: var(--cream); }
.panel--inverted .section-title em { color: #ff8f5e; }
.panel--inverted .section-lede { color: rgba(243, 236, 219, 0.72); }

/* COMPANY */
.company {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(28px, 4vw, 48px);
  background: var(--dark-2);
  border: 1px solid rgba(243, 236, 219, 0.08);
  border-radius: 26px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 960px) { .company { grid-template-columns: 1fr; } }

.company__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 8px;
  border: 1px solid rgba(255, 143, 94, 0.35);
  border-radius: 999px;
  background: rgba(255, 143, 94, 0.08);
  color: #ff8f5e;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  margin-bottom: 22px;
}
.company__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff8f5e;
  box-shadow: 0 0 10px rgba(255, 143, 94, 0.8);
}

.company__mark {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--cream);
  color: var(--dark);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
  font-variant: small-caps;
  text-transform: lowercase;
}

.company__name {
  margin: 0 0 6px;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--cream);
}
.company__role {
  margin: 0 0 20px;
  color: rgba(243, 236, 219, 0.7);
  font-size: 15px;
  letter-spacing: 0.01em;
}
.company__desc {
  margin: 0 0 26px;
  color: rgba(243, 236, 219, 0.78);
  font-size: 15.5px;
  line-height: 1.6;
}

.company__facts {
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid rgba(243, 236, 219, 0.1);
}
.company__facts > div {
  padding: 14px 0;
  border-bottom: 1px solid rgba(243, 236, 219, 0.1);
}
.company__facts > div:nth-child(odd) { padding-right: 12px; }
.company__facts > div:nth-child(even) {
  padding-left: 12px;
  border-left: 1px solid rgba(243, 236, 219, 0.1);
}
.company__facts dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 236, 219, 0.55);
  margin-bottom: 4px;
}
.company__facts dd {
  margin: 0;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--cream);
}

/* PREVIEW */
.preview {
  background: #f7f1df;
  border: 1px solid rgba(243, 236, 219, 0.14);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.5);
}
.preview__chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.chrome-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-2);
}
.preview__url {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
}
.preview__body { padding: 18px; }

.preview__toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.chip {
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-2);
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.chip--on {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.preview__count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
}

.pipeline {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.pipeline__col {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pipeline__col header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 4px 10px;
  border-bottom: 1px dashed var(--line-2);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-family: var(--font-mono);
}
.pipeline__n {
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
}

.pcard {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px;
  background: #fdfaef;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.pcard:hover {
  transform: translateY(-1px);
  border-color: var(--line-2);
}
.pcard--active {
  border-color: var(--accent);
  background: #fdefe3;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--cream);
}
.av-a { background: #c94a1a; }
.av-b { background: #7a5a1a; }
.av-c { background: #4a6a3a; }
.av-d { background: #1a4a6a; }
.av-e { background: #5a2a5a; }
.av-f { background: #3a3a3a; }

.pcard__body strong {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  line-height: 1.2;
}
.pcard__body small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.2;
}
.score {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.score--hi {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.score--mid {
  background: #efe0b9;
  color: #5a4a1a;
  border-color: #d8c68a;
}

.copilot {
  margin-top: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fdfaef;
}
.copilot__tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(201, 74, 26, 0.1);
  border: 1px solid rgba(201, 74, 26, 0.25);
  white-space: nowrap;
}
.copilot p {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* NEXT */
.next {
  margin-top: clamp(28px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.4vw, 24px);
}
@media (max-width: 720px) { .next { grid-template-columns: 1fr; } }

.next__item {
  padding: 26px 28px;
  background: rgba(243, 236, 219, 0.04);
  border: 1px dashed rgba(243, 236, 219, 0.2);
  border-radius: 18px;
}
.next__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 236, 219, 0.55);
  margin-bottom: 12px;
  display: inline-block;
}
.next__item h4 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--cream);
}
.next__item p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(243, 236, 219, 0.72);
}

/* CONTACT */
.contact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}
.contact__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 26px 28px;
  border-top: 1px solid var(--line);
  transition: background 0.2s ease;
}
.contact__row:first-child { border-top: none; }
.contact__row:hover { background: #fbf7ea; }

.contact__kind {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.contact__email {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  margin-top: 4px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.018em;
  color: var(--ink);
}
.contact__row svg {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  width: 18px;
  height: 18px;
  color: var(--ink-3);
  transition: transform 0.25s ease, color 0.25s ease;
}
.contact__row:hover svg { transform: translateX(4px); color: var(--accent); }

/* FOOTER */
.site-foot {
  padding: 42px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.site-foot__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}
@media (max-width: 780px) {
  .site-foot__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
.site-foot__brand { display: flex; align-items: center; gap: 12px; }
.site-foot__brand > div { display: flex; flex-direction: column; line-height: 1.3; }
.site-foot__brand strong { font-size: 14px; font-weight: 600; color: var(--ink); }
.site-foot__brand span { font-size: 12.5px; color: var(--ink-3); }

.site-foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  font-size: 13.5px;
  color: var(--ink-2);
}
.site-foot__links a { transition: color 0.2s ease; }
.site-foot__links a:hover { color: var(--accent); }

.site-foot__copy {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}

/* REVEAL */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
