:root {
  --canvas: #f4f7fb;
  --paper: #ffffff;
  --ink: #10213a;
  --muted: #5f6d82;
  --line: #c9d4e3;
  --line-strong: #9fb0c7;
  --cobalt: #315eea;
  --cobalt-soft: #e8edff;
  --teal: #087f80;
  --teal-soft: #dff3f1;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--canvas);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(49, 94, 234, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 94, 234, 0.045) 1px, transparent 1px),
    var(--canvas);
  background-size: 40px 40px;
  font-family: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--ink);
  color: white;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

nav { display: flex; gap: 30px; }

nav a,
.about-links a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

nav a:hover,
.about-links a:hover { color: var(--cobalt); }

a:focus-visible {
  outline: 3px solid rgba(49, 94, 234, 0.35);
  outline-offset: 4px;
  border-radius: 3px;
}

main,
footer {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: clamp(60px, 9vw, 130px);
  align-items: center;
  padding: 90px 0 110px;
}

.role {
  margin: 0 0 26px;
  color: var(--teal);
  font-size: 16px;
  font-weight: 600;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 30px;
  font-size: clamp(48px, 6.2vw, 82px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero-intro {
  max-width: 680px;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.48;
}

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

.button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.button.primary { background: var(--ink); color: white; }
.button.primary:hover { background: var(--cobalt); border-color: var(--cobalt); }
.button.secondary:hover { color: var(--cobalt); border-color: var(--cobalt); }

.system-map {
  position: relative;
  padding: 28px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line-strong);
  box-shadow: 18px 18px 0 var(--cobalt-soft);
}

.map-title {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.map-stage {
  position: relative;
  padding: 18px 18px 18px 56px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.map-stage strong,
.map-stage small { display: block; }

.map-stage strong { margin-bottom: 3px; font-size: 16px; }
.map-stage small { color: var(--muted); font-size: 13px; line-height: 1.4; }

.stage-index {
  position: absolute;
  top: 19px;
  left: 17px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cobalt-soft);
  color: var(--cobalt);
  font-size: 11px;
  font-weight: 700;
}

.stage-three .stage-index { background: var(--teal-soft); color: var(--teal); }

.map-connector { height: 30px; margin-left: 29px; border-left: 1px solid var(--cobalt); }
.map-connector span { display: block; width: 6px; height: 6px; background: var(--cobalt); transform: translate(-3.5px, 12px) rotate(45deg); }

.proof-section {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: rgba(244, 247, 251, 0.78);
}

.proof-label {
  margin: 0;
  padding: 15px 26px;
  border-bottom: 1px solid var(--line);
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.proof-strip div { padding: 30px 26px; border-right: 1px solid var(--line); }
.proof-strip div:last-child { border-right: 0; }
.proof-strip strong { display: block; margin-bottom: 5px; color: var(--cobalt); font-size: 30px; line-height: 1; }
.proof-strip span { color: var(--muted); font-size: 14px; line-height: 1.35; }

.work-section,
.approach-section,
.about-section { padding: 120px 0; }

.section-heading {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 50px;
  margin-bottom: 62px;
}

.section-heading h2,
.about-section h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.section-heading p {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 20px;
}

.case-study {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 2fr);
  gap: clamp(36px, 7vw, 100px);
  padding: 58px 0 66px;
  border-top: 1px solid var(--line-strong);
}

.case-study:last-child { border-bottom: 1px solid var(--line-strong); }

.case-meta p { margin-bottom: 4px; font-size: 17px; font-weight: 600; }
.case-meta span { color: var(--muted); font-size: 14px; }

.case-body h3 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(27px, 3.2vw, 41px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.case-body > p:not(.technology) { max-width: 760px; color: var(--muted); font-size: 18px; }

.case-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin: 34px 0 28px;
}

.case-details div { padding-left: 17px; border-left: 3px solid var(--cobalt); }
.featured-case .case-details div { border-color: var(--teal); }
.case-details h4 { margin-bottom: 6px; font-size: 15px; font-weight: 600; }
.case-details p { margin-bottom: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

.technology { margin-bottom: 0; color: var(--cobalt); font-size: 14px; font-weight: 500; }

.case-flow {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 35px 0;
}

.case-flow span {
  padding: 10px 12px;
  background: var(--teal-soft);
  color: #075e5f;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.case-flow i { display: block; height: 1px; background: var(--teal); }

.approach-section { border-bottom: 1px solid var(--line-strong); }

.capabilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--paper);
  border: 1px solid var(--line-strong);
}

.capabilities div { min-height: 230px; padding: 32px; border-right: 1px solid var(--line); }
.capabilities div:last-child { border-right: 0; }
.capabilities h3 { margin-bottom: 18px; font-size: 21px; }
.capabilities p { margin-bottom: 0; color: var(--muted); font-size: 16px; }

.about-section {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 50px;
}

.about-copy > p { max-width: 720px; color: var(--muted); font-size: 20px; }

.education-mark {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  gap: 30px;
  max-width: 720px;
  margin: 34px 0;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tau-logo {
  display: block;
  padding-right: 30px;
  border-right: 1px solid var(--line);
}

.tau-logo img { display: block; width: 100%; height: auto; }

.education-mark span {
  display: block;
  margin-bottom: 7px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.education-mark strong { display: block; color: var(--ink); font-size: 18px; }
.education-mark p { margin: 5px 0 0; color: var(--muted); font-size: 15px; }

.about-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 35px;
}

.social-link { display: inline-flex; align-items: center; gap: 8px; }
.social-icon { width: 19px; height: 19px; flex: 0 0 auto; fill: currentColor; }
.linkedin-icon,
.about-links .linkedin-link { color: #0a66c2; }
.about-links .github-link { color: var(--ink); }

footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 30px 0 44px;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 14px;
}

footer p { margin: 0; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 70px 0 90px; }
  .system-map { max-width: 600px; }
  .proof-strip { grid-template-columns: repeat(2, 1fr); }
  .proof-strip div:nth-child(2) { border-right: 0; }
  .proof-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-heading,
  .about-section { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; background-size: 28px 28px; }
  .site-header { width: min(calc(100% - 28px), var(--max-width)); min-height: 72px; }
  main,
  footer { width: min(calc(100% - 28px), var(--max-width)); }
  nav { gap: 15px; }
  nav a { font-size: 13px; }
  nav a:nth-child(2),
  nav a:nth-child(3) { display: none; }
  .wordmark { width: 38px; height: 38px; }
  .hero { gap: 54px; padding: 60px 0 80px; }
  .role { margin-bottom: 18px; }
  h1 { font-size: clamp(43px, 14vw, 64px); }
  .hero-intro { font-size: 18px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .system-map { margin-right: 10px; padding: 18px; box-shadow: 10px 10px 0 var(--cobalt-soft); }
  .proof-strip { grid-template-columns: 1fr 1fr; }
  .proof-strip div { padding: 22px 16px; }
  .proof-strip strong { font-size: 25px; }
  .work-section,
  .approach-section,
  .about-section { padding: 82px 0; }
  .section-heading { margin-bottom: 38px; }
  .section-heading p,
  .about-copy > p { font-size: 18px; }
  .case-study { grid-template-columns: 1fr; gap: 25px; padding: 46px 0 52px; }
  .case-details { grid-template-columns: 1fr; gap: 22px; }
  .case-flow { grid-template-columns: 1fr; gap: 8px; }
  .case-flow i { width: 1px; height: 18px; margin: 0 auto; }
  .capabilities { grid-template-columns: 1fr; }
  .capabilities div { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .capabilities div:last-child { border-bottom: 0; }
  .about-links { flex-wrap: wrap; }
  .education-mark { grid-template-columns: 150px 1fr; gap: 20px; }
  .tau-logo { padding-right: 20px; }
  footer { flex-direction: column; }
}

@media (max-width: 440px) {
  .education-mark { grid-template-columns: 1fr; }
  .tau-logo { width: 190px; padding: 0 0 20px; border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (prefers-reduced-motion: no-preference) {
  .map-connector span { animation: signal 2.4s ease-in-out infinite; }
  .map-connector:nth-of-type(2) span { animation-delay: 0.6s; }
}

@keyframes signal {
  0%, 100% { opacity: 0.3; transform: translate(-3.5px, 7px) rotate(45deg); }
  50% { opacity: 1; transform: translate(-3.5px, 17px) rotate(45deg); }
}

@media print {
  .site-header,
  .hero-actions { display: none; }
  body { background: white; }
}
