:root {
  --bg: #f4f7fb;
  --paper: rgba(255, 255, 255, 0.86);
  --paper-strong: #ffffff;
  --ink: #0f1728;
  --muted: #5a6578;
  --line: rgba(15, 23, 40, 0.09);
  --teal: #116466;
  --teal-deep: #0b4b4d;
  --rust: #2563eb;
  --sand: #dde6f5;
  --gold: #1f8f70;
  --shadow: 0 18px 48px rgba(15, 23, 40, 0.08);
  --body-font: "Inter", "Avenir Next", "Segoe UI", sans-serif;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body-font);
  color: var(--ink);
  background:
    radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.09), transparent 26%),
    radial-gradient(circle at 92% 8%, rgba(17, 100, 102, 0.12), transparent 22%),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 52%, #eef3fb 100%);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

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

.page-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 64px;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 24px rgba(15, 23, 40, 0.05);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, #10192d, #1b3157);
}

.brand-text {
  display: grid;
  gap: 2px;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 0.97rem;
  letter-spacing: -0.02em;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: rgba(20, 95, 96, 0.08);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 6px auto;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 22px;
}

.hero-copy,
.hero-stage,
.proof-band,
.project-card,
.system-card,
.credentials-panel,
.contact-panel {
  border: 1px solid var(--line);
  background: var(--paper);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-stage {
  border-radius: var(--radius-xl);
}

.hero-copy {
  padding: 48px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(247, 250, 255, 0.72)),
    var(--paper);
}

.eyebrow,
.signal-label,
.project-tag,
.system-number,
.proof-number {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 800;
}

.eyebrow,
.signal-label,
.system-number,
.proof-number {
  color: var(--teal);
}

h1,
h2,
h3 {
  letter-spacing: -0.035em;
  text-wrap: pretty;
}

h1 {
  margin-top: 16px;
  font-size: clamp(3.2rem, 6vw, 5.7rem);
  line-height: 0.92;
  max-width: 13ch;
}

h2 {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1;
}

h3 {
  font-size: 1.28rem;
  line-height: 1.1;
}

.hero-text,
.project-summary,
.project-points,
.system-card p:last-child,
.timeline-content p:last-child,
.credentials-copy,
.proof-item p,
.timeline-place,
.timeline-period,
.project-stack,
.project-subtitle,
.hero-meta {
  color: var(--muted);
}

.hero-text {
  max-width: 58ch;
  margin-top: 22px;
  font-size: 1.02rem;
  line-height: 1.75;
}

.hero-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  margin-top: 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 40, 0.07);
  background: rgba(17, 100, 102, 0.06);
  color: var(--teal-deep);
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-ribbon::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--rust));
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(31, 37, 44, 0.08);
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  color: white;
  background: linear-gradient(135deg, #0f1728, #213252);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.72);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
  font-size: 0.88rem;
  line-height: 1.7;
}

.hero-stage {
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(17, 100, 102, 0.05), rgba(255, 255, 255, 0.92));
}

.profile-photo-frame {
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid rgba(15, 23, 40, 0.08);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(17, 100, 102, 0.08), rgba(37, 99, 235, 0.08));
  aspect-ratio: 4 / 3;
}

.profile-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 18%;
}

.signal-card {
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(31, 37, 44, 0.08);
}

.signal-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.signal-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.signal-card-primary {
  padding: 24px;
}

.signal-card-primary h2 {
  margin-top: 10px;
  max-width: 16ch;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.02;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.signal-card.accent {
  background: linear-gradient(135deg, rgba(17, 100, 102, 0.1), rgba(255, 255, 255, 0.72));
}

.section {
  margin-top: 26px;
}

.section-heading {
  margin-bottom: 20px;
}

.proof-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 22px;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(246, 249, 255, 0.75)),
    var(--paper);
}

.proof-item {
  padding: 2px 12px 2px 0;
  border-right: 1px solid var(--line);
}

.proof-item:last-child {
  border-right: 0;
}

.proof-number {
  display: inline-block;
  margin-bottom: 10px;
}

.proof-item p {
  line-height: 1.7;
}

.project-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.project-grid .project-card:nth-child(4),
.project-grid .project-card:nth-child(5) {
  min-height: 100%;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.project-feature {
  background:
    linear-gradient(180deg, rgba(17, 100, 102, 0.08), rgba(255, 255, 255, 0.88)),
    var(--paper);
}

.project-topline {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-tag {
  color: var(--teal);
}

.project-stack,
.project-subtitle {
  font-size: 0.92rem;
  line-height: 1.65;
}

.project-summary {
  font-size: 0.96rem;
  line-height: 1.72;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08), transparent 70%);
  pointer-events: none;
}

.project-points {
  margin: 0;
  padding-left: 18px;
  line-height: 1.72;
}

.project-points li + li {
  margin-top: 8px;
}

.systems-section {
  position: relative;
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.system-card {
  padding: 22px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), transparent 55%),
    var(--paper);
}

.system-card h3 {
  margin-top: 16px;
}

.system-card p:last-child {
  margin-top: 12px;
  line-height: 1.8;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-entry {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 16px;
}

.timeline-rail {
  position: relative;
}

.timeline-rail::before,
.timeline-rail::after {
  content: "";
  position: absolute;
}

.timeline-rail::before {
  top: 6px;
  left: 10px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rust), #cb7c57);
  box-shadow: 0 0 0 6px rgba(176, 77, 45, 0.12);
}

.timeline-rail::after {
  top: 30px;
  bottom: -24px;
  left: 16px;
  width: 2px;
  background: linear-gradient(180deg, rgba(20, 95, 96, 0.16), rgba(20, 95, 96, 0));
}

.timeline-entry:last-child .timeline-rail::after {
  display: none;
}

.timeline-content {
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.timeline-period {
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-place {
  margin-top: 10px;
  font-size: 0.95rem;
}

.timeline-content p:last-child {
  margin-top: 14px;
  line-height: 1.8;
}

.credentials-panel,
.contact-panel {
  padding: 28px;
  border-radius: var(--radius-xl);
}

.credentials-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
}

.credentials-copy {
  max-width: 60ch;
  margin-top: 16px;
  line-height: 1.8;
}

.credentials-tags {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 10px;
}

.credentials-tags span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(31, 37, 44, 0.08);
  font-size: 0.92rem;
  font-weight: 700;
}

.contact-panel {
  text-align: center;
  background:
    radial-gradient(circle at top center, rgba(37, 99, 235, 0.08), transparent 42%),
    var(--paper);
}

.philosophy-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.07), rgba(17, 100, 102, 0.05)),
    var(--paper);
  box-shadow: var(--shadow);
}

.philosophy-card h2 {
  max-width: 20ch;
  margin-top: 10px;
}

.philosophy-card p:last-child {
  max-width: 62ch;
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.85;
}

.contact-panel h2 {
  max-width: 24ch;
  margin: 12px auto 0;
}

.contact-actions {
  justify-content: center;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

@media (max-width: 1080px) {
  .project-grid,
  .systems-grid,
  .proof-band,
  .credentials-panel {
    grid-template-columns: 1fr 1fr;
  }

  .proof-item {
    border-right: 0;
    padding-right: 0;
  }

  .project-feature {
    grid-column: 1 / -1;
  }
}

@media (max-width: 920px) {
  .hero,
  .project-grid,
  .systems-grid,
  .proof-band,
  .credentials-panel {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 32px;
  }

  .hero-stage,
  .project-card,
  .system-card,
  .credentials-panel,
  .contact-panel {
    padding: 22px;
  }

  .profile-photo-frame {
    aspect-ratio: 5 / 4;
  }
}

@media (max-width: 720px) {
  .site-header {
    border-radius: 18px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .site-header.menu-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(20, 95, 96, 0.04);
  }

  h1 {
    font-size: clamp(2.8rem, 12vw, 4rem);
    max-width: none;
  }

  h2 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .signal-card-primary h2,
  .philosophy-card h2,
  .contact-panel h2 {
    max-width: none;
  }

  .hero-actions,
  .contact-actions,
  .hero-meta {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .signal-grid {
    grid-template-columns: 1fr;
  }

  .timeline-entry {
    grid-template-columns: 1fr;
  }

  .timeline-rail {
    display: none;
  }
}

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

  .reveal,
  .button,
  .hero-actions a,
  .menu-toggle span {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
