:root {
  color-scheme: light;
  --paper: #f8f8f3;
  --paper-quiet: #eeeee7;
  --ink: #111412;
  --ink-soft: #4f5853;
  --muted: #727b75;
  --line: #d7d9d1;
  --line-strong: #aeb4aa;
  --green: #0f5f45;
  --green-soft: #dcebe3;
  --green-ink: #073523;
  --coral: #c94f39;
  --blue: #315f9f;
  --panel: #ffffff;
  --shadow: 0 1.3rem 4rem rgba(17, 20, 18, 0.11);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: clip;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 0, rgba(15, 95, 69, 0.11), transparent 22rem),
    linear-gradient(180deg, #fbfbf8 0, var(--paper) 38rem, #f2f3ed 100%);
  color: var(--ink);
  font-family: Aptos, "SF Pro Text", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.56;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(15, 95, 69, 0.18);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--green);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(15, 95, 69, 0.45);
  outline-offset: 4px;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

.site-shell {
  width: calc(100% - 2rem);
  max-width: 72rem;
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0.75rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: max-content;
  max-width: 100%;
  margin: 0.75rem auto 0;
  border: 1px solid rgba(174, 180, 170, 0.65);
  border-radius: 999px;
  background: rgba(255, 255, 252, 0.82);
  padding: 0.28rem;
  box-shadow: 0 0.75rem 2rem rgba(17, 20, 18, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 252, 0.82);
  border-radius: 999px;
  background:
    radial-gradient(circle at 36% 24%, rgba(255, 255, 255, 0.16), transparent 44%),
    linear-gradient(145deg, #17201b 0%, #07100c 100%);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 850;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 0 2px rgba(17, 20, 18, 0.08),
    0 0.55rem 1rem rgba(7, 16, 12, 0.2);
}

.brand:hover {
  border-color: var(--green);
  color: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 0 2px rgba(15, 95, 69, 0.2),
    0 0.55rem 1rem rgba(7, 16, 12, 0.2);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  min-width: 0;
}

.nav a,
.actions a,
.story-item a,
.detail-link,
.contact-panel a,
.footer a {
  border-radius: 999px;
  transition:
    background-color 160ms var(--ease-out),
    color 160ms var(--ease-out),
    border-color 160ms var(--ease-out),
    transform 140ms var(--ease-out);
}

.nav a {
  padding: 0.43rem 0.78rem;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 720;
}

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

.nav a:active,
.actions a:active,
.story-item a:active,
.detail-link:active,
.contact-panel a:active,
.footer a:active {
  transform: scale(0.97);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  min-height: min(42rem, calc(100dvh - 4.25rem));
  padding: clamp(2.7rem, 5.5vw, 4.4rem) 0 clamp(2.1rem, 4vw, 3.2rem);
  text-align: center;
}

.portrait-ring {
  position: relative;
  width: clamp(10rem, 21vw, 15.5rem);
  aspect-ratio: 1;
  border-radius: 999px;
  margin-bottom: 1.55rem;
  padding: 0.42rem;
  background:
    conic-gradient(from 120deg, var(--green), #ffffff 28%, var(--coral) 42%, #ffffff 58%, var(--blue) 74%, var(--green));
  box-shadow: 0 1.7rem 5rem rgba(17, 20, 18, 0.16);
}

.portrait-ring::after {
  content: "";
  position: absolute;
  inset: -0.75rem;
  z-index: -1;
  border: 1px dashed rgba(15, 95, 69, 0.28);
  border-radius: inherit;
}

.hero-portrait {
  display: block;
  width: 100%;
  height: 100%;
  border: 0.42rem solid var(--paper);
  border-radius: inherit;
  object-fit: cover;
}

.role-line {
  width: 100%;
  max-width: 32rem;
  margin-bottom: 0.75rem;
  color: var(--green);
  font-size: clamp(0.95rem, 1.4vw, 1.12rem);
  font-weight: 820;
  text-wrap: balance;
}

h1 {
  width: 100%;
  max-width: 13.8ch;
  margin-bottom: 1.05rem;
  font-size: clamp(3.1rem, 7.2vw, 5.9rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero-summary {
  width: 100%;
  max-width: 45rem;
  margin-bottom: 1.7rem;
  color: var(--ink-soft);
  font-size: clamp(1.06rem, 1.55vw, 1.24rem);
  text-wrap: balance;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
}

.actions a,
.story-item a,
.detail-link,
.contact-panel a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  border: 1px solid var(--line-strong);
  padding: 0.46rem 0.95rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 760;
}

.actions a {
  width: 6.6rem;
}

.actions a:hover,
.story-item a:hover,
.detail-link:hover,
.contact-panel a:hover,
.footer a:hover {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green-ink);
}

.primary-link,
.actions .primary-link,
.contact-panel .primary-link {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.primary-link:hover,
.actions .primary-link:hover,
.contact-panel .primary-link:hover {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.section-heading {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto clamp(2.1rem, 4vw, 3.3rem);
  text-align: center;
}

h2 {
  margin-bottom: 0.55rem;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1;
  letter-spacing: -0.032em;
}

.section-heading p,
.evidence-grid p,
.credentials-band p,
.stack-band p,
.story-item p {
  color: var(--ink-soft);
}

.story-section,
.evidence,
.stack-band,
.credentials-band,
.contact-panel {
  padding-top: clamp(2.8rem, 6vw, 4.5rem);
}

.storyline {
  position: relative;
  display: grid;
  gap: clamp(1.5rem, 3.2vw, 2.4rem);
  margin: 0;
  padding: 0 0 clamp(2.5rem, 6vw, 4rem);
  list-style: none;
}

.storyline::before {
  content: "";
  position: absolute;
  top: 0.8rem;
  bottom: 0;
  left: 50%;
  border-left: 2px dashed rgba(15, 95, 69, 0.3);
  transform: translateX(-50%);
}

.story-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4.5rem minmax(0, 1fr);
  align-items: start;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 520ms var(--ease-out),
    transform 520ms var(--ease-out);
}

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

.story-item:nth-child(odd) article {
  grid-column: 1;
  justify-self: end;
  text-align: right;
}

.story-item:nth-child(even) article {
  grid-column: 3;
}

.pin {
  position: relative;
  z-index: 1;
  grid-column: 2;
  width: 1.25rem;
  height: 1.25rem;
  justify-self: center;
  border: 3px solid var(--paper);
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 1px rgba(15, 95, 69, 0.35), 0 0.55rem 1.4rem rgba(15, 95, 69, 0.22);
}

.story-item article {
  width: 100%;
  max-width: 30rem;
  min-width: 0;
  border: 1px solid rgba(215, 217, 209, 0.95);
  border-radius: 1rem;
  background: rgba(255, 255, 252, 0.88);
  padding: clamp(1rem, 2.4vw, 1.45rem);
  box-shadow: 0 1rem 2.8rem rgba(17, 20, 18, 0.07);
  backdrop-filter: blur(14px);
  transition:
    border-color 180ms var(--ease-out),
    background-color 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out);
}

.story-item article:hover {
  border-color: rgba(15, 95, 69, 0.38);
  background: #fff;
  box-shadow: 0 1.4rem 3.2rem rgba(17, 20, 18, 0.1);
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 0.72rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

.story-item:nth-child(odd) .story-meta {
  justify-content: flex-end;
}

.story-meta span {
  border-radius: 999px;
  padding: 0.16rem 0.52rem;
  background: var(--paper-quiet);
  color: var(--ink);
}

.is-coded .story-meta span,
.is-coded .pin {
  background: var(--green);
  color: #fff;
}

.is-managed .story-meta span,
.is-managed .pin {
  background: var(--blue);
  color: #fff;
}

.is-hybrid .story-meta span,
.is-hybrid .pin {
  background: var(--coral);
  color: #fff;
}

h3 {
  margin-bottom: 0.42rem;
  font-size: clamp(1.08rem, 1.8vw, 1.38rem);
  line-height: 1.13;
  letter-spacing: -0.016em;
}

.story-item p {
  margin-bottom: 0;
}

.story-item a {
  margin-top: 1rem;
  background: var(--panel);
}

.story-item a + .detail-link {
  margin-left: 0.5rem;
}

.detail-link {
  margin-top: 1rem;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
}

.detail-link:hover {
  color: #fff;
  background: var(--green);
  transform: translateY(-1px);
}

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

.evidence-grid article {
  min-height: 15rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--panel);
  padding: 1.25rem;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 420ms var(--ease-out),
    transform 420ms var(--ease-out),
    border-color 160ms var(--ease-out),
    box-shadow 160ms var(--ease-out);
}

.evidence-grid article.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.evidence-grid article:hover {
  border-color: rgba(15, 95, 69, 0.38);
  box-shadow: var(--shadow);
}

.evidence-grid span {
  display: inline-flex;
  margin-bottom: 2rem;
  border-radius: 999px;
  background: var(--green-soft);
  padding: 0.22rem 0.6rem;
  color: var(--green-ink);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

.evidence-grid strong {
  display: block;
  margin-bottom: 0.75rem;
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  line-height: 1.12;
  letter-spacing: -0.022em;
}

.evidence-grid p {
  margin-bottom: 0;
}

.stack-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: start;
}

.stack-band > div {
  max-width: 30rem;
}

.stack-band ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stack-band li {
  border-radius: 0.85rem;
  background: var(--panel);
  padding: 0;
  color: var(--ink);
  font-weight: 760;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 380ms var(--ease-out),
    transform 380ms var(--ease-out),
    background-color 160ms var(--ease-out);
}

.stack-band li.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stack-band li:hover {
  background: var(--green-soft);
}

.stack-card {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 4.15rem;
  border: 0;
  background: transparent;
  padding: 0.95rem 1rem;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.stack-card:hover {
  background: var(--green-soft);
}

.stack-card:active {
  transform: scale(0.99);
}

.credentials-band {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: start;
}

.credentials-band > div {
  max-width: 31rem;
}

.credentials-band ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.credentials-band li {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 380ms var(--ease-out),
    transform 380ms var(--ease-out);
}

.credentials-band li.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.credential-card {
  display: grid;
  align-content: space-between;
  width: 100%;
  min-height: 9.75rem;
  border: 1px solid rgba(174, 180, 170, 0.76);
  border-radius: 0.95rem;
  background: linear-gradient(180deg, #fff 0%, #f6f7f1 100%);
  padding: 1rem;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 0.85rem 2.2rem rgba(17, 20, 18, 0.055);
  transition:
    border-color 170ms var(--ease-out),
    box-shadow 170ms var(--ease-out),
    transform 170ms var(--ease-out);
}

.credential-card:hover {
  border-color: rgba(15, 95, 69, 0.48);
  box-shadow: 0 1.2rem 2.8rem rgba(17, 20, 18, 0.095);
  transform: translateY(-1px);
}

.credential-card:active {
  transform: scale(0.99);
}

.credential-card span {
  width: fit-content;
  border-radius: 999px;
  background: var(--green-soft);
  padding: 0.2rem 0.58rem;
  color: var(--green-ink);
  font-size: 0.74rem;
  font-weight: 830;
  text-transform: uppercase;
}

.credential-card strong {
  display: block;
  max-width: 15rem;
  font-size: clamp(1rem, 1.55vw, 1.22rem);
  line-height: 1.12;
  letter-spacing: -0.012em;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
}

.contact-panel p {
  max-width: 56rem;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 3.2vw, 2.45rem);
  font-weight: 820;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: clamp(4rem, 8vw, 6rem);
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer p {
  margin: 0;
}

.footer a {
  border: 1px solid var(--line);
  padding: 0.42rem 0.78rem;
  color: var(--ink-soft);
  font-weight: 740;
}

.redirect-page {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 2rem;
  color: var(--ink-soft);
}

.redirect-page a {
  color: var(--green);
  font-weight: 760;
  text-decoration: underline;
}

.detail-modal {
  width: min(calc(100% - 2rem), 38rem);
  border: 0;
  border-radius: 1.1rem;
  padding: 0;
  background: transparent;
  color: var(--ink);
}

.detail-modal::backdrop {
  background: rgba(17, 20, 18, 0.42);
  backdrop-filter: blur(7px);
}

.modal-card {
  position: relative;
  border: 1px solid rgba(215, 217, 209, 0.95);
  border-radius: inherit;
  background: #fffffc;
  padding: clamp(1.25rem, 4vw, 2rem);
  box-shadow: 0 2rem 6rem rgba(17, 20, 18, 0.24);
}

.modal-card h2 {
  max-width: 28rem;
  margin-bottom: 0.8rem;
  padding-right: 4.5rem;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.modal-card p {
  margin-bottom: 1.15rem;
  color: var(--ink-soft);
}

.modal-card ul {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.modal-card li {
  border-radius: 0.72rem;
  background: var(--paper);
  padding: 0.75rem 0.85rem;
  color: var(--ink);
  font-weight: 690;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  min-height: 2.2rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--panel);
  padding: 0.35rem 0.78rem;
  color: var(--ink);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 760;
  cursor: pointer;
}

.modal-close:hover {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green-ink);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 880px) {
  .site-shell {
    width: calc(100% - 1.35rem);
  }

  .topbar {
    width: 100%;
    max-width: 27rem;
    overflow: hidden;
  }

  .nav {
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: 1 1 0;
    padding-inline: 0.35rem;
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding-top: clamp(2.4rem, 9vw, 4rem);
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(2.45rem, 10.4vw, 4rem);
    line-height: 1.02;
  }

  .storyline::before {
    left: 1rem;
  }

  .story-item {
    grid-template-columns: 2rem minmax(0, 1fr);
  }

  .story-item:nth-child(odd) article,
  .story-item:nth-child(even) article {
    grid-column: 2;
    justify-self: stretch;
    text-align: left;
  }

  .pin {
    grid-column: 1;
  }

  .story-item:nth-child(odd) .story-meta {
    justify-content: flex-start;
  }

  .evidence-grid,
  .stack-band,
  .credentials-band,
  .contact-panel {
    grid-template-columns: 1fr;
  }

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

  .evidence-grid article {
    min-height: auto;
  }

  .contact-panel a {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: calc(100% - 1rem);
    max-width: 23rem;
    padding-inline: 0.75rem;
  }

  .topbar {
    top: 0.45rem;
    gap: 0.35rem;
    width: calc(100% - 0.5rem);
    max-width: 23rem;
  }

  .brand {
    width: 2rem;
    height: 2rem;
  }

  .nav a {
    flex: 0 0 auto;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  h1 {
    max-width: 9.6ch;
    font-size: clamp(2.25rem, 9.5vw, 3rem);
    letter-spacing: -0.025em;
  }

  .role-line {
    max-width: 20rem;
    font-size: 0.95rem;
  }

  .hero-summary {
    max-width: 21rem;
    font-size: 1rem;
  }

  .section-heading p {
    max-width: 18rem;
    margin-inline: auto;
  }

  .actions a,
  .story-item a,
  .detail-link,
  .contact-panel a {
    min-height: 2.35rem;
    padding-inline: 0.82rem;
  }

  .actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: min(100%, 20rem);
  }

  .actions a {
    width: auto;
    min-width: 0;
  }

  .story-section,
  .evidence,
  .stack-band,
  .credentials-band,
  .contact-panel {
    padding-top: 4rem;
  }

  .storyline,
  .story-item,
  .story-item article {
    max-width: 100%;
    min-width: 0;
  }

  .story-item article {
    border-radius: 0.85rem;
  }

  .stack-band ul {
    grid-template-columns: 1fr;
  }

  .credentials-band ul {
    grid-template-columns: 1fr;
  }

  .credential-card {
    min-height: 7.25rem;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
