:root {
  color-scheme: light;
  --ink: #16211e;
  --muted: #63736d;
  --paper: #fbfaf7;
  --line: #dbe2de;
  --panel: #ffffff;
  --deep: #10231f;
  --teal: #0d9488;
  --amber: #c87b1e;
  --wine: #7f2549;
  --blue: #23648f;
  --shadow: 0 18px 45px rgba(15, 35, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  color: #f7fbf8;
  background: linear-gradient(180deg, rgba(12, 24, 22, 0.82), rgba(12, 24, 22, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.86);
}

nav a:hover,
.hero-actions a:hover,
.contact-links a:hover,
.project-card a:hover,
.text-link:hover {
  color: #ffd28a;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #f8fffb;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 20, 18, 0.94) 0%, rgba(11, 29, 26, 0.78) 40%, rgba(11, 29, 26, 0.28) 100%),
    linear-gradient(180deg, rgba(7, 20, 18, 0.28) 0%, rgba(7, 20, 18, 0.84) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
  padding: 150px 0 132px;
}

.eyebrow,
.section-kicker,
.card-label {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd28a;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(4rem, 11vw, 9.2rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.subtitle {
  max-width: 760px;
  margin-bottom: 30px;
  color: rgba(248, 255, 251, 0.86);
  font-size: clamp(1.12rem, 2vw, 1.42rem);
}

.hero-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions a,
.contact-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.hero-strip {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 1fr;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(8, 25, 22, 0.82);
}

.hero-strip span {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 14px clamp(18px, 4vw, 56px);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.section,
.metrics,
.contact-band {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.section {
  padding: clamp(70px, 10vw, 120px) 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.9fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
}

.intro p:last-child {
  color: var(--muted);
  font-size: 1.14rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}

.metrics div {
  padding: 28px clamp(18px, 3vw, 34px);
  border-right: 1px solid var(--line);
}

.metrics div:last-child {
  border-right: 0;
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics strong {
  margin-bottom: 8px;
  font-size: 1rem;
}

.metrics span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  margin-bottom: 30px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 0.85fr;
  gap: 18px;
}

.feature-card,
.project-card,
.skill-groups > div,
.split-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.feature-card {
  min-height: 310px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.primary-card {
  background: var(--deep);
  color: #f7fffb;
}

.feature-card p {
  color: var(--muted);
}

.primary-card p {
  color: rgba(247, 255, 251, 0.78);
}

.text-link,
.project-card a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--teal);
  font-weight: 800;
}

.primary-card .text-link {
  color: #ffd28a;
}

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

.output-section {
  padding-top: 0;
}

.output-list {
  display: grid;
  gap: 0;
  border-block: 1px solid var(--line);
}

.output-list article {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: clamp(20px, 5vw, 70px);
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.output-list article:last-child {
  border-bottom: 0;
}

.output-list time {
  color: var(--wine);
  font-size: 0.9rem;
  font-weight: 850;
}

.output-list p {
  max-width: 830px;
  color: var(--muted);
}

.output-list a {
  color: var(--teal);
  font-weight: 850;
}

.output-list a:hover {
  color: var(--amber);
}

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

.capability-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(300px, 1.05fr);
  gap: clamp(26px, 6vw, 80px);
  align-items: start;
}

.capability-layout > p {
  color: var(--muted);
  font-size: 1.14rem;
}

.capability-layout ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.capability-layout li {
  position: relative;
  padding: 16px 18px 16px 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
  color: var(--muted);
}

.capability-layout li::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 20px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
}

.timeline {
  border-left: 2px solid var(--teal);
  padding-left: 30px;
}

.timeline article {
  position: relative;
  max-width: 860px;
  padding: 0 0 34px;
}

.timeline article::before {
  content: "";
  position: absolute;
  left: -38px;
  top: 4px;
  width: 14px;
  height: 14px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 1px var(--teal);
}

.timeline time {
  display: block;
  margin-bottom: 8px;
  color: var(--wine);
  font-weight: 800;
}

.timeline p,
.split-list p,
.project-card p,
.skill-groups p {
  color: var(--muted);
}

.split-list {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.split-list article {
  padding: 28px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project-card {
  min-height: 228px;
  padding: 24px;
}

.project-card:nth-child(2n) {
  border-top: 4px solid var(--amber);
}

.project-card:nth-child(3n) {
  border-top: 4px solid var(--blue);
}

.project-card:nth-child(4n) {
  border-top: 4px solid var(--wine);
}

.skill-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.skill-groups > div {
  padding: 24px;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: center;
  margin-bottom: 60px;
  padding: clamp(40px, 7vw, 70px);
  border-radius: 8px;
  background: var(--deep);
  color: #f8fffb;
  box-shadow: var(--shadow);
}

.contact-band .section-kicker {
  color: #ffd28a;
}

.contact-links a {
  border-color: rgba(255, 255, 255, 0.24);
}

@media (max-width: 860px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: 820px;
  }

  .hero-content {
    padding-top: 130px;
    padding-bottom: 210px;
  }

  .hero-strip,
  .intro,
  .metrics,
  .feature-grid,
  .output-list article,
  .split-list,
  .project-grid,
  .capability-layout,
  .skill-groups,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .hero-strip span,
  .metrics div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .metrics div {
    border-bottom-color: var(--line);
  }

  .section-heading {
    display: block;
  }

  .feature-card,
  .project-card {
    min-height: auto;
  }

  .output-list article {
    gap: 8px;
    padding: 24px 0;
  }

  .contact-band {
    width: min(100% - 24px, 1180px);
    padding: 30px 20px;
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: 760px;
  }

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

  h1 {
    font-size: clamp(3.25rem, 18vw, 5.2rem);
  }

  h2 {
    font-size: 2rem;
  }
}
