/* style.css */
:root {
  --bg: #f3f5f8;
  --panel: rgba(255, 255, 255, 0.8);
  --panel-strong: rgba(255, 255, 255, 0.94);
  --line: rgba(13, 31, 52, 0.08);
  --line-strong: rgba(13, 31, 52, 0.16);
  --text: #0f1c2c;
  --muted: #5f6f82;
  --soft: #314255;
  --accent: #163a63;
  --shadow: 0 24px 80px rgba(8, 20, 35, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --container: 1240px;
  --transition: 240ms ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(22, 58, 99, 0.06), transparent 26%),
    radial-gradient(circle at top right, rgba(107, 124, 145, 0.08), transparent 20%),
    linear-gradient(180deg, #f6f8fb 0%, #edf1f5 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: none;
  color: inherit;
}

code {
  color: var(--accent);
}

.section {
  width: min(var(--container), 92%);
  margin: 0 auto;
  padding: 104px 0;
}

.glass {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.eyebrow,
.section-tag,
.footer-kicker,
.boot-kicker,
.signal-label,
.metric-label,
.panel-label,
.award-kicker,
.timeline-role {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 920px;
  margin-bottom: 40px;
}

.section-heading h2 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-top: 10px;
}

p {
  color: var(--muted);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 18px 0 0;
}

.nav {
  width: min(var(--container), 92%);
  margin: 0 auto;
  border-radius: 20px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.84);
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(22, 58, 99, 0.08), rgba(22, 58, 99, 0.03));
  border: 1px solid var(--line-strong);
  font-weight: 800;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong {
  font-size: 0.98rem;
  font-weight: 700;
}

.brand-copy small {
  font-size: 0.75rem;
  color: var(--muted);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.nav-menu a {
  color: var(--soft);
  font-size: 0.94rem;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 14px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  border: 1px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--accent);
  background: rgba(22, 58, 99, 0.05);
  border-color: var(--line);
}

.nav-cta {
  background: rgba(22, 58, 99, 0.05);
  border-color: var(--line) !important;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(22, 58, 99, 0.03);
  position: relative;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle span:first-child {
  top: 17px;
}

.menu-toggle span:last-child {
  top: 25px;
}

.menu-toggle.is-active span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle.is-active span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 24px;
  align-items: center;
  padding: 56px 0 82px;
}

.hero-copy h1 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.5rem, 5.8vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  max-width: 10.5ch;
  margin: 14px 0 18px;
}

.hero-text {
  max-width: 62ch;
  font-size: 1.04rem;
  color: var(--soft);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}

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

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-secondary {
  border-color: var(--line-strong);
  color: var(--accent);
  background: rgba(255, 255, 255, 0.8);
}

.hero-signal-grid,
.dashboard-grid,
.philosophy-grid,
.impact-grid,
.awards-grid {
  display: grid;
  gap: 18px;
}

.hero-signal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.signal-card,
.metric-card,
.philosophy-card,
.impact-card,
.award-card {
  border-radius: var(--radius-lg);
  padding: 20px;
}

.signal-card strong {
  display: block;
  margin-top: 10px;
}

.hero-panel {
  border-radius: var(--radius-xl);
  padding: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 252, 0.94));
}

.panel-header,
.dashboard-panel-head {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.panel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-panel-block {
  padding: 24px 0 22px;
  border-bottom: 1px solid var(--line);
}

.hero-panel-block h2 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  margin: 10px 0 6px;
  letter-spacing: -0.04em;
}

.panel-muted {
  color: var(--muted);
}

.hero-panel-grid,
.readout-grid,
.contact-grid,
.modal-grid {
  display: grid;
  gap: 14px;
}

.hero-panel-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 22px;
}

.hero-panel-grid span,
.readout-grid span,
.contact-card-command span,
.modal-card span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 6px;
}

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

.metric-card h3 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1;
  margin: 14px 0 12px;
  letter-spacing: -0.05em;
  color: var(--accent);
}

.metric-card p,
.philosophy-card p,
.impact-card p,
.award-card p {
  color: var(--soft);
}

.dashboard-panel {
  margin-top: 18px;
  border-radius: var(--radius-xl);
  padding: 22px;
}

.readout-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 22px;
}

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

.philosophy-card h3,
.impact-card h3,
.award-card h3,
.timeline-content h3,
.contact-summary h3,
.modal-head h2,
.footer-inner h3 {
  font-family: "Manrope", sans-serif;
}

.philosophy-card h3,
.impact-card h3,
.award-card h3 {
  font-size: 1.35rem;
  line-height: 1.12;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

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

.timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, rgba(22, 58, 99, 0.24), rgba(22, 58, 99, 0.04));
}

.timeline-item {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 22px 22px 22px 54px;
}

.timeline-marker {
  position: absolute;
  left: 8px;
  top: 22px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(22, 58, 99, 0.08);
}

.timeline-content h3 {
  font-size: 1.55rem;
  line-height: 1.08;
  margin: 10px 0;
  letter-spacing: -0.03em;
}

.timeline-content p {
  color: var(--soft);
  max-width: 68ch;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.94rem;
}

.contact-shell {
  border-radius: var(--radius-xl);
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
}

.contact-summary h3 {
  font-size: 2rem;
  margin: 12px 0 8px;
  letter-spacing: -0.04em;
}

.contact-summary p {
  color: var(--soft);
}

.contact-note {
  margin-top: 14px;
}

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

.contact-card-command,
.modal-card {
  min-height: 112px;
  border-radius: var(--radius-lg);
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.contact-card-command {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.contact-card-command:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.92);
}

.resume-command {
  cursor: pointer;
}

.footer {
  padding: 0 0 36px;
}

.footer-inner {
  width: min(var(--container), 92%);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: grid;
  gap: 20px;
}

.footer-inner h3 {
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  max-width: 16ch;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.footer-links a {
  color: var(--soft);
  font-weight: 600;
}

.footer-copy {
  font-size: 0.92rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition), visibility var(--transition);
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 17, 31, 0.24);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  border-radius: 28px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.97));
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(22, 58, 99, 0.03);
  color: var(--text);
  cursor: pointer;
}

.modal-head h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-top: 8px;
}

.modal-subtitle,
.modal-card p,
.modal-note {
  color: var(--soft);
}

.modal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 24px 0;
}

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

#boot-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #0d1d32 0%, #102642 100%);
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#boot-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-shell {
  width: min(560px, 88vw);
  padding: 34px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
  text-align: left;
}

.boot-name {
  margin-top: 10px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 9vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
}

.boot-line {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
}

.boot-kicker,
.boot-status {
  color: rgba(255, 255, 255, 0.74);
}

.boot-progress {
  width: 100%;
  height: 7px;
  margin-top: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.boot-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fff, #d9e2ec);
  animation: boot-progress 2.5s ease forwards;
}

.boot-status {
  margin-top: 16px;
  font-size: 0.95rem;
}

@keyframes boot-progress {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 38px;
  }

  .dashboard-grid,
  .readout-grid,
  .philosophy-grid,
  .impact-grid,
  .awards-grid,
  .contact-shell,
  .contact-grid,
  .modal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .topbar {
    padding-top: 14px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav {
    position: relative;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    margin-left: 0;
    padding: 12px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.97);
    display: grid;
    gap: 8px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
  }

  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .hero-signal-grid,
  .dashboard-grid,
  .readout-grid,
  .philosophy-grid,
  .impact-grid,
  .awards-grid,
  .contact-shell,
  .contact-grid,
  .hero-panel-grid,
  .modal-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 84px 0;
  }
}

@media (max-width: 560px) {
  .nav {
    padding: 12px;
  }

  .brand-copy small {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 26px 0 68px;
    gap: 18px;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(2.35rem, 11vw, 3.7rem);
    letter-spacing: -0.06em;
  }

  .hero-text {
    font-size: 1rem;
  }

  .button,
  .hero-actions,
  .modal-actions {
    width: 100%;
  }

  .hero-actions,
  .modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .boot-shell,
  .modal-panel {
    padding: 24px;
  }

  .timeline-item {
    padding: 18px 18px 18px 46px;
  }
/* =========================================
   FINAL POLISH PATCH
   Append to bottom of style.css
========================================= */

:root {
  --shadow-soft: 0 14px 34px rgba(8, 20, 35, 0.06);
  --shadow-card: 0 18px 40px rgba(8, 20, 35, 0.07);
}

/* Global polish */
body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.glass {
  box-shadow: var(--shadow-card);
}

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

.section-heading h2 {
  max-width: 14ch;
}

p {
  line-height: 1.7;
}

/* Nav */
.topbar {
  padding: 12px 0 0;
}

.nav {
  padding: 12px 14px;
  border-radius: 22px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 13px;
}

.brand-copy strong {
  letter-spacing: -0.02em;
}

/* Hero */
.hero {
  padding: 40px 0 72px;
  gap: 20px;
}

.eyebrow {
  margin-bottom: 10px;
}

.hero-copy h1 {
  max-width: 9.8ch;
  margin: 10px 0 14px;
}

.hero-text {
  max-width: 34rem;
  line-height: 1.65;
}

.hero-actions {
  margin: 24px 0 28px;
}

.button {
  min-height: 54px;
  padding: 0 20px;
  box-shadow: var(--shadow-soft);
}

.button-primary {
  background: linear-gradient(180deg, #214f84 0%, #163a63 100%);
}

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

/* Cards */
.signal-card,
.metric-card,
.philosophy-card,
.impact-card,
.award-card,
.contact-card-command,
.modal-card,
.timeline-item,
.dashboard-panel,
.hero-panel,
.contact-shell {
  box-shadow: var(--shadow-card);
}

.signal-card,
.metric-card,
.philosophy-card,
.impact-card,
.award-card {
  padding: 22px;
}

.metric-card h3 {
  margin: 12px 0 10px;
}

.dashboard-panel {
  margin-top: 14px;
}

.readout-grid article,
.hero-panel-grid div {
  padding: 2px 0;
}

/* Contact */
.contact-shell {
  padding: 22px;
}

.contact-summary h3 {
  margin-bottom: 6px;
}

.contact-card-command {
  min-height: 104px;
}

/* Timeline */
.timeline {
  gap: 14px;
}

.timeline-item {
  padding: 20px 20px 20px 52px;
}

.timeline-content h3 {
  margin: 8px 0;
}

/* Footer */
.footer {
  padding-bottom: 28px;
}

.footer-inner {
  gap: 16px;
}

/* Tablet polish */
@media (max-width: 820px) {
  .section {
    padding: 74px 0;
  }

  .nav-menu {
    top: calc(100% + 10px);
    padding: 10px;
  }

  .nav-menu a {
    padding: 13px 14px;
  }

  .hero {
    padding-top: 24px;
  }

  .hero-copy h1 {
    max-width: 11ch;
  }

  .hero-text {
    max-width: 100%;
  }
}

/* Phone polish */
@media (max-width: 560px) {
  .topbar {
    padding-top: 10px;
  }

  .nav {
    padding: 10px 12px;
    border-radius: 20px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 1.45rem;
  }

  .brand-copy strong {
    font-size: 0.95rem;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .hero {
    padding: 18px 0 58px;
    gap: 16px;
  }

  .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    margin-bottom: 8px;
  }

  .hero-copy h1 {
    font-size: clamp(2.05rem, 9.6vw, 3.25rem);
    line-height: 0.96;
    letter-spacing: -0.07em;
    max-width: 8.9ch;
    margin: 8px 0 12px;
  }

  .hero-text {
    font-size: 0.98rem;
    line-height: 1.58;
    color: var(--muted);
  }

  .hero-actions {
    gap: 10px;
    margin: 22px 0 22px;
  }

  .button {
    min-height: 52px;
    font-size: 0.98rem;
  }

  .hero-signal-grid {
    gap: 10px;
  }

  .signal-card,
  .metric-card,
  .philosophy-card,
  .impact-card,
  .award-card {
    padding: 18px;
    border-radius: 18px;
  }

  .section {
    padding: 68px 0;
  }

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

  .section-heading h2 {
    font-size: clamp(1.8rem, 8.2vw, 2.45rem);
    max-width: 12ch;
  }

  .dashboard-panel,
  .hero-panel,
  .contact-shell,
  .modal-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .hero-panel-block {
    padding: 18px 0 18px;
  }

  .hero-panel-grid {
    gap: 14px;
    padding-top: 18px;
  }

  .timeline-item {
    padding: 16px 16px 16px 42px;
  }

  .timeline::before {
    left: 12px;
  }

  .timeline-marker {
    left: 5px;
    width: 14px;
    height: 14px;
  }

  .timeline-content h3 {
    font-size: 1.28rem;
  }

  .contact-card-command {
    min-height: 96px;
    padding: 16px;
  }

  .chip-grid {
    gap: 10px;
  }

  .chip-grid span {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.88rem;
  }

  .footer-inner h3 {
    max-width: 13ch;
  }
}

