:root {
  --ink: #112047;
  --body: #40506b;
  --muted: #68758d;
  --primary: #3158f5;
  --primary-dark: #1638c8;
  --soft-blue: #edf2ff;
  --line: #dce4f3;
  --surface: #ffffff;
  --background: #f6f8ff;
  --green: #08a669;
  --red: #ee3551;
  --shadow: 0 26px 65px rgba(26, 57, 136, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--background);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  color: #ffffff;
  background: var(--primary-dark);
  text-decoration: none;
  transform: translateY(-170%);
  transition: transform 0.2s ease;
}

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

.page-shell {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.portfolio-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 228, 243, 0.9);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.portfolio-nav {
  width: min(1160px, calc(100% - 48px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.6px;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 7px 18px rgba(39, 69, 176, 0.2);
}

.brand strong {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-actions > a:not(.nav-contact) {
  color: var(--body);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.nav-actions > a:not(.nav-contact):hover {
  color: var(--primary);
}

.nav-contact {
  padding: 10px 15px;
  border: 1px solid #cfdaff;
  border-radius: 10px;
  color: var(--primary);
  background: #f7f9ff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 74px;
  background:
    radial-gradient(circle at 87% 15%, rgba(49, 88, 245, 0.14), transparent 0 245px),
    radial-gradient(circle at 3% 100%, rgba(83, 120, 255, 0.1), transparent 0 250px),
    linear-gradient(180deg, #ffffff 0%, #f6f8ff 100%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: 64px;
}

.hero-orbit {
  position: absolute;
  border: 1px dashed rgba(49, 88, 245, 0.22);
  border-radius: 999px;
  pointer-events: none;
}

.orbit-one {
  width: 610px;
  height: 610px;
  top: -350px;
  right: -90px;
}

.orbit-two {
  width: 260px;
  height: 260px;
  bottom: -185px;
  left: 17%;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.13em;
  line-height: 1.2;
}

.hero h1,
.section h2,
.contact-card h2 {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -0.055em;
}

.hero h1 {
  max-width: 600px;
  font-size: clamp(48px, 6.2vw, 78px);
  line-height: 0.98;
}

.hero h1 span {
  color: var(--primary);
}

.hero-lede {
  max-width: 625px;
  margin: 22px 0 30px;
  color: var(--body);
  font-size: 18px;
  line-height: 1.7;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.button:focus-visible,
.nav-actions a:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgba(49, 88, 245, 0.34);
  outline-offset: 3px;
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #4268f7, #2048e8);
  box-shadow: 0 14px 26px rgba(49, 88, 245, 0.27);
}

.button-primary:hover {
  box-shadow: 0 18px 31px rgba(49, 88, 245, 0.35);
}

.button-secondary {
  border-color: #d5def3;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
}

.button-secondary:hover {
  border-color: #aebff7;
  box-shadow: 0 12px 24px rgba(28, 51, 116, 0.1);
}

.project-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 40px 0 0;
}

.project-facts > div {
  padding: 13px 14px;
  border: 1px solid #dde5f6;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
}

.project-facts dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.product-window {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid rgba(139, 162, 243, 0.62);
  border-radius: 27px;
  background:
    radial-gradient(circle at 89% 20%, rgba(72, 111, 255, 0.72), transparent 0 135px),
    linear-gradient(145deg, #0d2058 0%, #163a9f 53%, #3158f5 100%);
  box-shadow: var(--shadow);
}

.product-window::after {
  position: absolute;
  inset: auto -70px -120px auto;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  content: "";
}

.window-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 19px 21px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  color: #ffffff;
}

.window-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 750;
}

.window-brand b {
  color: #9bc5ff;
}

.brand-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff5e8, #f6ae90);
}

.window-status {
  padding: 6px 9px;
  border: 1px solid rgba(220, 237, 255, 0.42);
  border-radius: 999px;
  color: #dceaff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.window-content {
  position: relative;
  z-index: 1;
  padding: 45px 30px 30px;
  color: #ffffff;
}

.preview-label {
  display: inline-flex;
  padding: 8px 12px;
  border: 1px solid rgba(232, 242, 255, 0.36);
  border-radius: 999px;
  color: #dceaff;
  font-size: 11px;
  font-weight: 800;
}

.window-content h2 {
  margin: 17px 0 20px;
  color: #ffffff;
  font-size: clamp(30px, 3.2vw, 41px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.window-content h2 span {
  color: #9ac2ff;
}

.preview-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}

.control {
  display: inline-flex;
  align-items: center;
  min-height: 39px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 800;
}

.search-control {
  flex: 1;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #dbe9ff;
  background: rgba(255, 255, 255, 0.1);
}

.report-control {
  padding: 0 13px;
  color: #ffffff;
  background: #ef3554;
}

.preview-cards {
  display: grid;
  gap: 10px;
}

.mini-report {
  display: grid;
  grid-template-columns: 59px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 24px rgba(3, 18, 62, 0.18);
}

.mini-pet {
  width: 59px;
  height: 50px;
  border-radius: 10px;
}

.pet-dog {
  background:
    radial-gradient(circle at 64% 45%, #47291e 0 4px, transparent 5px),
    radial-gradient(circle at 38% 45%, #47291e 0 4px, transparent 5px),
    radial-gradient(ellipse at 50% 66%, #3b231d 0 10px, transparent 11px),
    linear-gradient(135deg, #f7dec5 0 51%, #b36447 51% 71%, #f7dec5 71%);
}

.pet-cat {
  background:
    radial-gradient(circle at 62% 51%, #22355c 0 4px, transparent 5px),
    radial-gradient(circle at 37% 51%, #22355c 0 4px, transparent 5px),
    linear-gradient(135deg, #dce7f8 0 46%, #7d98c9 46% 71%, #dce7f8 71%);
}

.mini-report > div:last-child {
  display: grid;
  gap: 3px;
  color: var(--ink);
}

.mini-report strong {
  font-size: 14px;
}

.mini-report small {
  color: #61718c;
  font-size: 11px;
}

.report-badge {
  width: max-content;
  padding: 3px 6px;
  border-radius: 6px;
  color: #ffffff;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.lost-report .report-badge {
  background: var(--red);
}

.found-report .report-badge {
  background: var(--green);
}

.section {
  padding: 96px 0;
}

.section-intro {
  max-width: 815px;
}

.section h2,
.contact-card h2 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.06;
}

.challenge-section {
  padding-bottom: 84px;
}

.two-column-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin-top: 40px;
}

.two-column-copy article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(24, 53, 129, 0.05);
}

.two-column-copy h3,
.capability-card h3,
.stack-panel h3,
.contribution-panel h3,
.decision-list h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 20px;
  letter-spacing: -0.025em;
}

.two-column-copy p,
.capability-card p,
.stack-group p,
.contribution-panel > p,
.decision-list p,
.section-summary,
.principle p {
  margin: 0;
  color: var(--body);
  font-size: 15px;
  line-height: 1.7;
}

.principle {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 22px;
  margin-top: 25px;
  padding: 22px 25px;
  border: 1px solid #cbd9ff;
  border-radius: 17px;
  background: #eff3ff;
}

.principle span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.capabilities-section {
  background: #ffffff;
}

.split-heading {
  max-width: none;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: 36px;
}

.section-summary {
  max-width: 420px;
  margin-left: auto;
  padding-bottom: 5px;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 42px;
}

.capability-card {
  min-height: 236px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: linear-gradient(145deg, #ffffff, #f8faff);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.capability-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 17px 35px rgba(28, 59, 143, 0.11);
}

.feature-index {
  display: inline-flex;
  margin-bottom: 36px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.stack-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 26px;
  margin-top: 40px;
}

.stack-panel,
.contribution-panel {
  padding: 29px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--surface);
}

.stack-panel {
  background: linear-gradient(155deg, #eef3ff, #ffffff);
}

.stack-group {
  display: grid;
  grid-template-columns: 135px minmax(0, 1fr);
  gap: 12px;
  padding: 17px 0;
  border-top: 1px solid #dce5f8;
}

.stack-group:first-of-type {
  margin-top: 17px;
}

.stack-group span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.journey-list {
  display: grid;
  gap: 13px;
  margin-top: 25px;
}

.journey-list > div {
  display: grid;
  grid-template-columns: 102px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.journey-list > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.journey-list b {
  color: var(--primary);
  font-size: 13px;
}

.journey-list span {
  color: var(--body);
  font-size: 14px;
  line-height: 1.45;
}

.decisions-section {
  background:
    radial-gradient(circle at 90% 12%, rgba(49, 88, 245, 0.13), transparent 0 210px),
    #edf2ff;
}

.decisions-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 68px;
  align-items: start;
}

.decision-list {
  display: grid;
  gap: 17px;
}

.decision-list article {
  padding: 22px 0 22px 25px;
  border-left: 3px solid #9cb5ff;
}

.decision-list h3 {
  margin-bottom: 6px;
  font-size: 17px;
}

.contact-section {
  padding: 94px 0;
  background: #ffffff;
}

.contact-card {
  display: grid;
  grid-template-columns: 1.18fr auto;
  align-items: center;
  gap: 30px;
  padding: 43px 47px;
  border-radius: 26px;
  color: #ffffff;
  background:
    radial-gradient(circle at 90% 13%, rgba(100, 137, 255, 0.58), transparent 0 138px),
    linear-gradient(135deg, #0e2056 0%, #1b409d 56%, #3158f5 100%);
  box-shadow: var(--shadow);
}

.contact-card .eyebrow {
  color: #abc6ff;
}

.contact-card h2 {
  max-width: 690px;
  color: #ffffff;
  font-size: clamp(30px, 3.4vw, 44px);
}

.contact-card .button-secondary {
  border-color: rgba(255, 255, 255, 0.27);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.11);
}

.portfolio-footer {
  border-top: 1px solid var(--line);
  background: #fbfcff;
}

.portfolio-footer .page-shell {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}

.portfolio-footer .page-shell span:first-child {
  color: var(--ink);
  font-weight: 850;
}

@media (max-width: 900px) {
  .hero {
    padding-top: 58px;
  }

  .hero-grid,
  .split-heading,
  .stack-layout,
  .decisions-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 45px;
  }

  .product-window {
    max-width: 620px;
    width: 100%;
  }

  .section-summary {
    max-width: 620px;
    margin-left: 0;
  }

  .capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .decisions-grid {
    gap: 38px;
  }

  .contact-card {
    padding: 36px;
  }
}

@media (max-width: 620px) {
  .page-shell,
  .portfolio-nav {
    width: min(100% - 32px, 1160px);
  }

  .portfolio-nav {
    min-height: 66px;
  }

  .brand {
    gap: 8px;
    font-size: 17px;
  }

  .brand img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .nav-actions {
    gap: 12px;
  }

  .nav-actions > a:not(.nav-contact) {
    display: none;
  }

  .nav-contact {
    padding: 9px 12px;
    font-size: 13px;
  }

  .hero {
    padding: 50px 0 55px;
  }

  .hero h1 {
    font-size: clamp(45px, 15vw, 62px);
  }

  .hero-lede {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.62;
  }

  .button {
    width: 100%;
  }

  .project-facts,
  .two-column-copy,
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .project-facts {
    margin-top: 28px;
  }

  .product-window {
    min-height: 415px;
    border-radius: 22px;
  }

  .window-content {
    padding: 34px 20px 23px;
  }

  .section {
    padding: 68px 0;
  }

  .section h2,
  .contact-card h2 {
    font-size: clamp(32px, 10vw, 43px);
  }

  .two-column-copy {
    gap: 14px;
    margin-top: 30px;
  }

  .two-column-copy article,
  .capability-card,
  .stack-panel,
  .contribution-panel {
    padding: 22px;
  }

  .principle {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 20px;
  }

  .capability-grid {
    margin-top: 30px;
  }

  .capability-card {
    min-height: auto;
  }

  .feature-index {
    margin-bottom: 25px;
  }

  .stack-layout {
    gap: 14px;
    margin-top: 30px;
  }

  .stack-group,
  .journey-list > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .decisions-grid {
    gap: 30px;
  }

  .contact-section {
    padding: 68px 0;
  }

  .contact-card {
    gap: 26px;
    padding: 28px 23px;
    border-radius: 21px;
  }

  .portfolio-footer .page-shell {
    min-height: 92px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
  }
}
