:root {
  --ink: #10181d;
  --ink-soft: #26343b;
  --paper: #f7f8f6;
  --white: #ffffff;
  --mist: #e8edeb;
  --line: #cad4d1;
  --teal: #087b78;
  --teal-dark: #075a59;
  --coral: #d35f45;
  --gold: #b98522;
  --shadow: 0 18px 50px rgba(16, 24, 29, 0.12);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
svg { width: 1.1rem; height: 1.1rem; stroke-width: 1.8; }
.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  color: var(--white);
  background: rgba(16, 24, 29, 0.86);
  border-bottom: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(14px);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  text-decoration: none;
}
.wordmark-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.62);
  border-radius: 50%;
  font-size: 0.72rem;
  letter-spacing: 0;
}
.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a {
  color: rgba(255,255,255,0.88);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--white); }
.site-nav .nav-download {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(255,255,255,0.44);
  border-radius: 4px;
}
.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.menu-toggle { display: none; }

.hero {
  position: relative;
  min-height: min(820px, 92vh);
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  background-color: #0f171b;
  background-image: url("assets/platform-operations-hero.png");
  background-size: cover;
  background-position: center;
  color: var(--white);
  isolation: isolate;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(8, 14, 17, 0.33);
}
.hero-content {
  width: min(var(--max), 90vw);
  margin: 0 auto;
  padding-top: 8rem;
}
.hero-content > * { max-width: 680px; }
.eyebrow, .section-label, .case-kicker {
  margin: 0 0 0.7rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero .eyebrow { color: #9ce3d8; }
.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 7vw, 7rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: 0;
}
.hero-lede {
  margin: 1.5rem 0 0;
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  line-height: 1.5;
  color: rgba(255,255,255,0.88);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}
.primary-action, .secondary-action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
}
.primary-action { background: #f4c65b; color: #172027; border: 1px solid #f4c65b; }
.primary-action:hover, .primary-action:focus-visible { background: #ffd675; }
.secondary-action { color: var(--white); border: 1px solid rgba(255,255,255,0.55); }
.secondary-action:hover, .secondary-action:focus-visible { border-color: var(--white); background: rgba(255,255,255,0.08); }
.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(var(--max), 90vw);
  margin: 0 auto 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.32);
}
.hero-proof div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 0.75rem;
  padding: 1rem 1.2rem 0.2rem 0;
}
.hero-proof strong { font: 500 clamp(1.8rem, 3vw, 2.8rem)/1 Georgia, serif; }
.hero-proof span { max-width: 150px; color: rgba(255,255,255,0.76); font-size: 0.8rem; line-height: 1.25; }

.section-inner { width: min(var(--max), 90vw); margin: 0 auto; }
.intro-band { background: var(--white); padding: 5rem 0; border-bottom: 1px solid var(--line); }
.intro-grid { display: grid; grid-template-columns: 0.9fr 1.35fr; gap: 5vw; align-items: start; }
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
}
.intro-copy { margin: 1.5rem 0 0; font-size: clamp(1rem, 2vw, 1.25rem); color: var(--ink-soft); }

.work-section { padding: 7rem 0; }
.section-heading {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 5vw;
  align-items: end;
  margin-bottom: 2.5rem;
}
.section-heading > p { margin: 0; color: var(--ink-soft); }
.case-study {
  position: relative;
  padding: 1.6rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.case-study-featured {
  display: grid;
  grid-template-columns: 54px minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 1.5rem;
  margin-bottom: 1rem;
  padding: 2rem;
  border-top: 4px solid var(--coral);
  box-shadow: var(--shadow);
}
.case-index { color: var(--coral); font-weight: 800; font-size: 0.86rem; }
.case-study h3 { margin: 0; font-size: 1.45rem; line-height: 1.24; }
.case-summary { margin: 1rem 0 0; color: var(--ink-soft); }
.case-outcomes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.case-outcomes div { display: flex; min-width: 0; flex-direction: column; }
.case-outcomes span, .case-outcomes small { color: var(--ink-soft); font-size: 0.72rem; }
.case-outcomes strong { font-size: 1rem; }
.case-detail dl { margin: 0; }
.case-detail div { padding: 0.65rem 0; border-bottom: 1px solid var(--mist); }
.case-detail div:last-child { border-bottom: 0; }
.case-detail dt { color: var(--teal-dark); font-size: 0.74rem; font-weight: 800; text-transform: uppercase; }
.case-detail dd { margin: 0.2rem 0 0; color: var(--ink-soft); font-size: 0.9rem; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.case-grid .case-study { display: flex; flex-direction: column; min-height: 100%; }
.case-grid .case-kicker { margin-top: 1.4rem; }
.case-grid .case-study > p:not(.case-kicker) { color: var(--ink-soft); }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: auto 0 1rem; list-style: none; }
.tag-list li { padding: 0.25rem 0.48rem; background: var(--mist); border-radius: 3px; font-size: 0.74rem; font-weight: 700; }
details { border-top: 1px solid var(--line); padding-top: 0.8rem; }
summary { color: var(--teal-dark); cursor: pointer; font-weight: 750; }
details p { margin-bottom: 0; font-size: 0.86rem; color: var(--ink-soft); }

.approach-section { padding: 7rem 0; background: #142329; color: var(--white); }
.approach-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 6vw; }
.approach-copy { position: sticky; top: 110px; align-self: start; }
.approach-copy .section-label { color: #9ce3d8; }
.approach-copy p:last-child { color: rgba(255,255,255,0.72); }
.contribution-flow { margin: 0; padding: 0; list-style: none; counter-reset: model; }
.contribution-flow li {
  display: grid;
  grid-template-columns: 56px 0.7fr 1.3fr;
  gap: 1rem;
  align-items: baseline;
  padding: 1.15rem 0;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.contribution-flow li:last-child { border-bottom: 1px solid rgba(255,255,255,0.18); }
.contribution-flow span { color: #f4c65b; font-weight: 800; }
.contribution-flow p { margin: 0; color: rgba(255,255,255,0.68); font-size: 0.9rem; }

.experience-section { padding: 7rem 0; background: var(--white); }
.timeline { border-top: 1px solid var(--line); }
.timeline article {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}
.timeline-date { color: var(--coral); font-weight: 800; }
.timeline h3 { margin: 0; font-size: 1.35rem; }
.timeline-role { margin: 0.15rem 0 0.7rem; color: var(--teal-dark); font-weight: 750; }
.timeline article p:last-child { margin: 0; max-width: 780px; color: var(--ink-soft); }

.skills-band { padding: 6rem 0; background: #f1eee8; }
.skills-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 6vw; }
.skills-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid #cfc7b9; }
.skills-groups div { padding: 1.2rem 1rem 1.2rem 0; border-bottom: 1px solid #cfc7b9; }
.skills-groups div:nth-child(odd) { border-right: 1px solid #cfc7b9; }
.skills-groups div:nth-child(even) { padding-left: 1rem; }
.skills-groups h3 { margin: 0; color: var(--teal-dark); font-size: 1rem; }
.skills-groups p { margin: 0.35rem 0 0; color: var(--ink-soft); font-size: 0.9rem; }

.contact-section { padding: 7rem 0; background: var(--white); }
.contact-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 5vw; align-items: end; }
.contact-layout p:not(.section-label) { max-width: 700px; color: var(--ink-soft); }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.contact-actions .primary-action { background: var(--ink); border-color: var(--ink); color: var(--white); }
.social-links { display: flex; gap: 0.7rem; color: var(--ink); }
.social-links .icon-button:hover, .social-links .icon-button:focus-visible { background: var(--mist); }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 5vw;
  background: var(--ink);
  color: rgba(255,255,255,0.68);
  font-size: 0.78rem;
}
.site-footer p { margin: 0; }

:focus-visible { outline: 3px solid #f4c65b; outline-offset: 3px; }

@media (max-width: 900px) {
  .site-header { padding: 0 1.2rem; }
  .menu-toggle { display: inline-grid; }
  .site-nav {
    position: fixed;
    inset: 68px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.2rem 1.4rem;
    background: #10181d;
    border-top: 1px solid rgba(255,255,255,0.14);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.75rem 0; }
  .site-nav .nav-download { justify-content: center; margin-top: 0.4rem; padding: 0.7rem; }
  .hero { min-height: 88vh; background-position: 58% center; }
  .hero-shade { background: rgba(8, 14, 17, 0.52); }
  .hero-content { padding-top: 7rem; }
  .hero-proof { grid-template-columns: 1fr; margin-bottom: 0.7rem; }
  .hero-proof div { padding: 0.55rem 0; border-top: 1px solid rgba(255,255,255,0.16); }
  .hero-proof div:first-child { border-top: 0; }
  .intro-grid, .section-heading, .approach-layout, .skills-layout, .contact-layout { grid-template-columns: 1fr; }
  .case-study-featured { grid-template-columns: 42px 1fr; }
  .case-detail { grid-column: 2; }
  .case-grid { grid-template-columns: 1fr; }
  .approach-copy { position: static; }
}

@media (max-width: 620px) {
  .wordmark > span:last-child { display: none; }
  .hero { min-height: 94vh; }
  .hero h1 { font-size: 3.45rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions a { width: 100%; }
  .intro-band, .work-section, .approach-section, .experience-section, .skills-band, .contact-section { padding: 4.5rem 0; }
  .case-study-featured { grid-template-columns: 1fr; padding: 1.35rem; }
  .case-detail { grid-column: 1; }
  .case-outcomes { grid-template-columns: 1fr; }
  .case-outcomes div { padding: 0.45rem 0; }
  .contribution-flow li { grid-template-columns: 42px 1fr; }
  .contribution-flow p { grid-column: 2; }
  .timeline article { grid-template-columns: 1fr; gap: 0.4rem; }
  .skills-groups { grid-template-columns: 1fr; }
  .skills-groups div:nth-child(odd) { border-right: 0; }
  .skills-groups div:nth-child(even) { padding-left: 0; }
  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
