:root {
  color-scheme: light;
  --ink: #15171a;
  --muted: #616873;
  --line: #dfe4ea;
  --paper: #f7f8f5;
  --surface: #ffffff;
  --green: #245a4c;
  --teal: #1f8a8a;
  --coral: #d86b54;
  --gold: #c99a2e;
  --shadow: 0 18px 50px rgba(25, 31, 36, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(223, 228, 234, 0.75);
  background: rgba(247, 248, 245, 0.88);
  backdrop-filter: blur(16px);
}

.brand,
.nav,
.hero-actions,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 13px;
  letter-spacing: 0;
}

.nav {
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 15px;
}

.nav a:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(32px, 6vw, 80px);
  min-height: calc(100vh - 75px);
  padding: clamp(52px, 8vw, 104px) clamp(20px, 5vw, 72px) 56px;
  align-items: center;
}

.hero-copy {
  max-width: 820px;
}

.eyebrow,
.tag,
.year {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 860px;
  margin-bottom: 24px;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0;
}

.intro {
  max-width: 680px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--ink);
  color: white;
  box-shadow: 0 12px 30px rgba(21, 23, 26, 0.2);
}

.button.ghost {
  background: transparent;
}

.portrait-panel {
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 15%, rgba(216, 107, 84, 0.2), transparent 30%),
    linear-gradient(135deg, rgba(31, 138, 138, 0.16), rgba(201, 154, 46, 0.16)),
    var(--surface);
  box-shadow: var(--shadow);
  display: grid;
  align-content: space-between;
  padding: clamp(24px, 4vw, 44px);
}

.portrait {
  position: relative;
  display: grid;
  width: min(100%, 360px);
  aspect-ratio: 1;
  margin: 0 auto;
  place-items: center;
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(36, 90, 76, 0.94), rgba(31, 138, 138, 0.9)),
    url("./assets/profile-pattern.svg");
  background-size: cover;
  color: white;
  font-size: clamp(68px, 10vw, 120px);
  font-weight: 900;
  letter-spacing: 0;
  overflow: hidden;
}

.portrait-ring {
  position: absolute;
  inset: 9%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
}

.quick-facts {
  display: grid;
  gap: 16px;
  margin: 34px 0 0;
}

.quick-facts div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 18px;
  border-top: 1px solid rgba(21, 23, 26, 0.12);
  padding-top: 16px;
}

dt {
  color: var(--muted);
  font-size: 13px;
}

dd {
  margin: 0;
  font-weight: 800;
}

.latency-section {
  padding: 64px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.latency-inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(26px, 5vw, 70px);
  max-width: 1320px;
  margin: 0 auto;
  align-items: start;
}

.latency-copy p:last-child {
  max-width: 560px;
  color: var(--muted);
}

.latency-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: clamp(18px, 3vw, 28px);
  box-shadow: 0 10px 32px rgba(25, 31, 36, 0.08);
}

.latency-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.latency-stats div {
  min-width: 0;
  border: 1px solid rgba(21, 23, 26, 0.08);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
}

.metric-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.latency-stats strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: clamp(22px, 4vw, 34px);
  line-height: 1.1;
}

.latency-chart {
  display: block;
  width: 100%;
  height: 260px;
  border: 1px solid rgba(21, 23, 26, 0.08);
  border-radius: 8px;
  background: var(--surface);
}

.latency-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 82px clamp(20px, 5vw, 72px);
}

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

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

.work-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 32px rgba(25, 31, 36, 0.08);
}

.card-media {
  min-height: 210px;
  background-size: cover;
}

.media-a {
  background:
    linear-gradient(135deg, transparent 42%, rgba(255, 255, 255, 0.35) 42% 52%, transparent 52%),
    linear-gradient(135deg, #245a4c, #1f8a8a);
}

.media-b {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.25) 0 2px, transparent 2px 28px),
    linear-gradient(135deg, #d86b54, #c99a2e);
}

.media-c {
  background:
    radial-gradient(circle at 72% 30%, rgba(255, 255, 255, 0.4), transparent 22%),
    linear-gradient(135deg, #252a31, #245a4c);
}

.card-body {
  padding: 24px;
}

.card-body p:last-child,
.timeline p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(26px, 5vw, 72px);
  background: #eef2ee;
}

.split .section-heading {
  display: block;
  margin-bottom: 0;
}

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

.timeline article {
  border-left: 3px solid var(--coral);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 0 8px 8px 0;
  padding: 24px;
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 72px clamp(20px, 5vw, 72px);
  border-radius: 8px;
  background: var(--green);
  color: white;
  padding: clamp(28px, 5vw, 52px);
}

.contact-band .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.contact-band h2 {
  max-width: 720px;
}

.contact-band .button.primary {
  border-color: white;
  background: white;
  color: var(--green);
  box-shadow: none;
  flex: 0 0 auto;
}

.footer {
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .hero,
  .latency-inner,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .portrait-panel {
    min-height: auto;
  }

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

  .section-heading,
  .contact-band,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding-top: 42px;
  }

  h1 {
    font-size: 42px;
  }

  .button {
    width: 100%;
  }

  .quick-facts div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .latency-stats {
    grid-template-columns: 1fr;
  }

  .latency-chart {
    height: 220px;
  }

  .latency-meta {
    flex-direction: column;
    gap: 4px;
  }
}
