:root {
  --unc-navy: #13294b;
  --unc-navy-2: #0b1f3d;
  --carolina: #4b9cd3;
  --carolina-soft: #d8ecfa;
  --offwhite: #f7f4ee;
  --paper: #fffaf2;
  --ink: #172033;
  --muted: #607084;
  --line: #d8e0e8;
  --green: #4f9f70;
  --gold: #d4a72c;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(13, 36, 66, 0.14);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font, "Inter", sans-serif);
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(255, 250, 242, 0.9);
  border-bottom: 1px solid rgba(19, 41, 75, 0.08);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(19, 41, 75, 0.1);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--unc-navy);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--unc-navy);
  font-size: 0.98rem;
  line-height: 1.15;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.site-nav a {
  border-radius: 8px;
  color: #24344d;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 10px 13px;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--carolina-soft);
  color: var(--unc-navy);
  outline: none;
}

.site-nav .nav-cta {
  margin-left: 6px;
  color: var(--white);
  background: var(--unc-navy);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  color: var(--white);
  background: #0d376b;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--unc-navy);
}

.content-shell {
  width: min(1140px, calc(100% - 36px));
  margin: 0 auto;
}

.section-pad {
  padding: clamp(64px, 9vw, 118px) 0;
}

.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(19, 41, 75, 0.96) 0%, rgba(19, 41, 75, 0.88) 46%, rgba(75, 156, 211, 0.22) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 84px),
    var(--unc-navy);
  color: var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 16%;
  background: linear-gradient(to bottom, rgba(19, 41, 75, 0), rgba(19, 41, 75, 0.22));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--carolina);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.inverted .eyebrow,
.contact-band .eyebrow {
  color: #9fd2f3;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(3.25rem, 7vw, 6.85rem);
  line-height: 0.93;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  color: var(--unc-navy);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 9px;
  color: var(--unc-navy);
  font-size: 1.04rem;
  line-height: 1.25;
}

.hero-lede {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 8px;
  font-weight: 800;
  padding: 12px 18px;
  text-decoration: none;
}

.button.primary {
  color: var(--unc-navy);
  background: var(--carolina);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: var(--white);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 700px;
  margin: 0;
}

.hero-facts div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-facts dt {
  color: #9fd2f3;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-visual {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(247, 244, 238, 0.96);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.visual-toolbar,
.visual-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  background: #eef5fa;
}

.visual-toolbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d95f5f;
}

.visual-toolbar span:nth-child(2) {
  background: var(--gold);
}

.visual-toolbar span:nth-child(3) {
  background: var(--green);
}

.visual-toolbar strong {
  margin-left: 8px;
  color: #506177;
  font-size: 0.78rem;
}

.vector-stage {
  position: relative;
  aspect-ratio: 1.45;
  background:
    linear-gradient(rgba(19, 41, 75, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 41, 75, 0.05) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
}

#vectorCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

.stage-label {
  position: absolute;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--unc-navy);
  background: rgba(255, 255, 255, 0.86);
  font-size: 0.76rem;
  font-weight: 800;
}

.top-left {
  left: 14px;
  top: 14px;
}

.bottom-right {
  right: 14px;
  bottom: 14px;
}

.visual-footer {
  justify-content: space-between;
  color: #536276;
  font-size: 0.82rem;
  font-weight: 800;
}

.material-dots {
  display: inline-flex;
  gap: 8px;
}

.material-dots i {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(19, 41, 75, 0.14);
  border-radius: 50%;
}

.mat-blue {
  background: var(--carolina);
}

.mat-green {
  background: var(--green);
}

.mat-gold {
  background: var(--gold);
}

.mat-white {
  background: var(--white);
}

.offwhite {
  background: var(--offwhite);
}

.two-column,
.journal-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: start;
}

.copy-block {
  color: #42536a;
  font-size: 1.06rem;
}

.copy-block p:last-child {
  margin-bottom: 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.workflow-grid,
.deliverable-grid,
.team-grid,
.roles-grid,
.requirements-grid,
.links-grid {
  display: grid;
  gap: 16px;
}

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

.workflow-step,
.deliverable-grid article,
.person-card,
.tech-panel,
.journal-list article,
.roles-grid article,
.requirements-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

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

.roles-grid article {
  min-height: 220px;
  padding: 22px;
}

.roles-grid span {
  display: inline-block;
  margin-bottom: 28px;
  color: #0c5f9b;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.workflow-step {
  min-height: 260px;
  padding: 22px;
}

.workflow-step span,
.deliverable-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 30px;
  margin-bottom: 44px;
  border-radius: 8px;
  color: var(--unc-navy);
  background: var(--carolina-soft);
  font-size: 0.78rem;
  font-weight: 900;
}

.workflow-step p,
.deliverable-grid p,
.person-card p,
.tech-panel p,
.journal-list p {
  margin-bottom: 0;
  color: #526177;
  font-size: 0.94rem;
}

.navy-band {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(75, 156, 211, 0.18), rgba(79, 159, 112, 0.08)),
    var(--unc-navy-2);
}

.inverted h2,
.navy-band h3 {
  color: var(--white);
}

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

.tech-panel {
  padding: 24px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.tech-panel.large {
  grid-column: span 2;
}

.tech-panel p {
  color: rgba(255, 255, 255, 0.74);
}

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

.requirements-grid article {
  padding: 26px;
}

.requirements-grid ul {
  margin: 16px 0 0;
  padding-left: 20px;
  color: #526177;
}

.requirements-grid li + li {
  margin-top: 10px;
}

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

.person-card {
  padding: 22px;
}

.person-card.lead {
  border-color: rgba(75, 156, 211, 0.65);
  box-shadow: 0 16px 42px rgba(75, 156, 211, 0.18);
}

.avatar {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--unc-navy);
  font-weight: 900;
}

.person-card a {
  display: inline-block;
  margin-top: 14px;
  color: #0c5f9b;
  font-size: 0.91rem;
  font-weight: 800;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.journal-list {
  display: grid;
  gap: 14px;
}

.journal-list article {
  padding: 22px;
  border-left: 5px solid var(--carolina);
}

.journal-list time {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

.deliverable-grid article {
  min-height: 235px;
  padding: 22px;
}

.deliverable-grid span {
  margin-bottom: 34px;
  background: #e7f0df;
}

.schedule-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.schedule-table [role="row"] {
  display: grid;
  grid-template-columns: 0.9fr 0.9fr 1.2fr;
}

.schedule-table span {
  padding: 17px 18px;
  border-top: 1px solid var(--line);
  color: #526177;
}

.schedule-table span + span {
  border-left: 1px solid var(--line);
}

.schedule-table .table-head span {
  border-top: 0;
  color: var(--white);
  background: var(--unc-navy);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.rules-list {
  display: grid;
  gap: 14px;
}

.rules-list p {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: #526177;
}

.rules-list strong {
  color: var(--unc-navy);
}

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

.links-grid a {
  display: flex;
  align-items: center;
  min-height: 76px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--unc-navy);
  background: var(--white);
  font-weight: 800;
  overflow-wrap: anywhere;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.links-grid a:hover,
.links-grid a:focus-visible {
  border-color: rgba(75, 156, 211, 0.8);
  box-shadow: 0 16px 34px rgba(13, 36, 66, 0.1);
  outline: none;
  transform: translateY(-2px);
}

.contact-band {
  padding: 58px 0;
  color: var(--white);
  background: var(--unc-navy);
}

.contact-band h2 {
  color: var(--white);
}

address {
  display: grid;
  gap: 7px;
  font-style: normal;
}

address strong {
  margin-top: 6px;
  color: #9fd2f3;
  font-size: 0.78rem;
  text-transform: uppercase;
}

address a {
  width: fit-content;
  color: var(--white);
  font-weight: 800;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.contact-stack {
  display: grid;
  gap: 22px;
}

.contact-stack address span {
  color: rgba(255, 255, 255, 0.86);
  overflow-wrap: anywhere;
}

.contact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.contact-row button {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  padding: 7px 11px;
  color: var(--unc-navy);
  background: var(--carolina);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
}

.team-email-box {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.team-email-box span {
  color: #9fd2f3;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.team-email-box code {
  display: block;
  padding: 13px;
  border-radius: 8px;
  color: var(--white);
  background: rgba(7, 26, 51, 0.55);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
  white-space: normal;
}

.email-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.email-actions button,
.email-actions a {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--unc-navy);
  background: var(--carolina);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
}

.email-actions a {
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
}

.team-email-box p {
  min-height: 18px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.88rem;
}

.page-title {
  font-size: 2.5rem;
  overflow-wrap: anywhere;
}

.site-nav a[aria-current="page"] {
  color: var(--unc-navy);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.spec-document {
  max-width: 900px;
  overflow-wrap: anywhere;
}

.spec-document h1 {
  font-size: 2.5rem;
}

.spec-document h2 {
  font-size: 1.5rem;
}

.spec-document section {
  margin-top: 36px;
}

.spec-document li + li {
  margin-top: 8px;
}

.site-footer {
  color: #6d7b8f;
  background: #071a33;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: #b4d9f2;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 1080px) {
  .hero-grid,
  .two-column,
  .journal-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding-top: 36px;
  }

  .hero-visual {
    max-width: 760px;
  }

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

  .tech-layout,
  .team-grid,
  .roles-grid,
  .links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    padding: 12px 18px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    padding: 10px 18px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 20px 38px rgba(19, 41, 75, 0.1);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 12px;
  }

  .site-nav .nav-cta {
    margin-left: 0;
    text-align: center;
  }

  .section-pad {
    padding: 58px 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 4.2rem);
  }

  .hero-facts,
  .workflow-grid,
  .deliverable-grid,
  .tech-layout,
  .team-grid,
  .roles-grid,
  .requirements-grid,
  .links-grid {
    grid-template-columns: 1fr;
  }

  .tech-panel.large {
    grid-column: auto;
  }

  .workflow-step,
  .deliverable-grid article {
    min-height: auto;
  }

  .workflow-step span,
  .deliverable-grid span {
    margin-bottom: 24px;
  }

  .schedule-table [role="row"],
  .schedule-table .table-head {
    grid-template-columns: 1fr;
  }

  .schedule-table span + span {
    border-left: 0;
  }

  .schedule-table [role="row"]:not(.table-head) span:first-child {
    color: var(--unc-navy);
    font-weight: 900;
  }

  .contact-row {
    grid-template-columns: 1fr;
  }

  .contact-row button {
    width: fit-content;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 18px 0;
  }
}
