:root {
  --ink: #17212b;
  --muted: #64717f;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --teal: #0f8f8c;
  --teal-dark: #086263;
  --coral: #ed745f;
  --gold: #d9a441;
  --line: rgba(23, 33, 43, 0.12);
  --shadow: 0 24px 70px rgba(20, 36, 46, 0.13);
  --radius: 8px;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}

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

img {
  max-width: 100%;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(251, 250, 247, 0.82);
  backdrop-filter: blur(18px);
}

.navbar {
  width: min(100% - 32px, var(--max-width));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--coral));
  letter-spacing: 0;
}

.brand-text {
  white-space: nowrap;
}

.nav-links {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: var(--radius);
  color: #334352;
  font-size: 0.94rem;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--teal-dark);
  background: rgba(15, 143, 140, 0.1);
}

.nav-links .nav-cta {
  color: #fff;
  background: var(--ink);
}

.nav-links .nav-cta:hover {
  color: #fff;
  background: var(--teal-dark);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
}

.section {
  position: relative;
}

.section-inner {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #dfeeea;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/hero-portfolio-ai.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(251, 250, 247, 0.96) 0%, rgba(251, 250, 247, 0.74) 34%, rgba(251, 250, 247, 0.18) 72%),
    linear-gradient(180deg, rgba(251, 250, 247, 0.08), rgba(251, 250, 247, 0.88));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 92px 0 130px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 1120px;
  margin: 0;
  font-size: clamp(2.25rem, 3.6vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: 0;
  white-space: nowrap;
}

.nowrap-name {
  white-space: nowrap;
}

.hero-lead {
  max-width: 660px;
  margin: 24px 0 0;
  color: #374654;
  font-size: 1.14rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero-actions {
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button.primary {
  color: #fff;
  background: var(--teal-dark);
  box-shadow: 0 16px 30px rgba(8, 98, 99, 0.24);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(23, 33, 43, 0.14);
}

.profile,
.projects,
.summary {
  padding: 92px 0;
}

.profile-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 52px;
  align-items: start;
}

.profile-card,
.project-card,
.goal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.profile-card {
  padding: 28px;
}

.avatar-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 34%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 18px 38px rgba(20, 36, 46, 0.16);
}

.profile-card h2 {
  margin: 22px 0 2px;
  font-size: 1.5rem;
}

.profile-card p {
  margin: 0 0 20px;
  color: var(--muted);
}

dl {
  margin: 0;
}

dl div {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

dd {
  margin: 3px 0 0;
  font-weight: 700;
}

.profile-copy h2,
.section-heading h2,
.summary-copy h2,
.portfolio-goal h2,
.personal-goals-inline h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.profile-copy p,
.section-heading p,
.summary-copy > p,
.portfolio-goal p,
.personal-goals-inline p {
  max-width: 780px;
  color: var(--muted);
}

.info-strip {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.info-strip div {
  min-height: 132px;
  padding: 20px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}

.info-strip strong,
.info-strip span {
  display: block;
}

.info-strip strong {
  margin-bottom: 8px;
  color: var(--teal-dark);
}

.info-strip span {
  color: #314150;
}

.portfolio-goal,
.personal-goals-inline {
  margin-top: 42px;
}

.portfolio-goal {
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

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

.goal-grid,
.project-grid {
  display: grid;
  gap: 18px;
}

.goal-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 22px;
}

.goal-card {
  padding: 24px;
  box-shadow: none;
}

.icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  background: var(--coral);
  font-weight: 800;
}

.goal-card h3,
.project-card h3,
.timeline h3 {
  margin: 18px 0 8px;
  line-height: 1.25;
}

.goal-card p,
.project-card p,
.project-card li,
.timeline p {
  color: var(--muted);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #344555;
  background: #fff;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
}

.filter-button.active,
.filter-button:hover {
  color: #fff;
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

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

.project-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 74px rgba(20, 36, 46, 0.18);
}

.project-card.hidden {
  display: none;
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.task-number,
.task-status {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 800;
}

.task-number {
  padding: 0 12px;
  color: #fff;
  background: var(--ink);
}

.task-status {
  padding: 0 10px;
  color: #7a4a00;
  background: rgba(217, 164, 65, 0.18);
}

.project-card ul {
  padding-left: 18px;
  margin: 8px 0 24px;
}

.project-card a {
  margin-top: auto;
  color: var(--teal-dark);
  font-weight: 800;
}

.evidence-lab {
  margin-top: 34px;
  display: grid;
  gap: 22px;
}

.evidence-block {
  scroll-margin-top: 92px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 50px rgba(20, 36, 46, 0.1);
}

.evidence-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.evidence-heading span {
  min-width: 64px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: #fff;
  background: var(--teal-dark);
  font-weight: 800;
}

.evidence-heading h3,
.evidence-block h4 {
  margin: 0;
}

.prompt-grid,
.ai-process,
.principle-grid {
  display: grid;
  gap: 16px;
}

.prompt-card,
.ai-process div,
.principle-grid div,
.infographic {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #f8fbfa;
}

.prompt-card,
.ai-process div {
  padding: 18px;
}

pre {
  overflow: auto;
  margin: 12px 0 0;
  padding: 14px;
  border-radius: var(--radius);
  color: #d8fff7;
  background: #17212b;
}

code {
  font-family: "SFMono-Regular", Consolas, monospace;
}

.screenshot-gallery {
  margin-top: 26px;
}

.screenshot-gallery h4 {
  margin-bottom: 14px;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.screenshot-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.screenshot-grid a {
  display: block;
  background: #f4f6f7;
}

.screenshot-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: left top;
  transition: transform 180ms ease;
}

.screenshot-grid a:hover img {
  transform: scale(1.03);
}

.ai-proof-grid img {
  aspect-ratio: 4 / 3;
  object-position: center top;
}

.screenshot-grid figcaption {
  padding: 10px 12px 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.wide-evidence-shot {
  margin: 22px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.wide-evidence-shot a {
  display: block;
  background: #f4f6f7;
}

.wide-evidence-shot img {
  width: 100%;
  max-height: 720px;
  object-fit: contain;
  background: #fff;
}

.wide-evidence-shot figcaption {
  padding: 14px 16px;
  color: var(--muted);
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
  margin: 18px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
  background: #fff;
}

th,
td {
  padding: 14px;
  border: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

th {
  color: #fff;
  background: var(--ink);
}

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

.tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.tool-row span {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--teal-dark);
  background: rgba(15, 143, 140, 0.1);
  font-weight: 800;
}

.ai-process {
  grid-template-columns: repeat(3, 1fr);
}

.principle-grid {
  grid-template-columns: repeat(2, 1fr);
  margin: 18px 0;
}

.principle-grid div {
  padding: 16px;
  font-weight: 700;
}

.infographic {
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(15, 143, 140, 0.16), rgba(237, 116, 95, 0.14)),
    #fff;
}

.infographic h4 {
  font-size: 1.5rem;
}

.info-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.info-steps span {
  min-height: 70px;
  display: grid;
  place-items: center;
  padding: 10px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--ink);
  font-weight: 800;
  text-align: center;
}

.summary {
  background: #17212b;
  color: #fff;
}

.summary .section-kicker,
.summary-copy > p,
.timeline p {
  color: rgba(255, 255, 255, 0.74);
}

.summary-grid {
  max-width: 920px;
  margin: 0 auto;
}

.timeline {
  margin-top: 30px;
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 14px;
}

.timeline-item span {
  width: 14px;
  height: 14px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 8px rgba(237, 116, 95, 0.16);
}

.timeline h3,
.timeline p {
  margin: 0;
}

.site-footer {
  width: min(100% - 32px, var(--max-width));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.site-footer a {
  color: var(--teal-dark);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

@media (max-width: 980px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    justify-content: center;
  }

  .profile-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .goal-grid,
  .project-grid,
  .screenshot-grid,
  .prompt-grid,
  .ai-process {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .brand-text {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 86px 0 96px;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 2.65rem);
    white-space: normal;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(251, 250, 247, 0.95) 0%, rgba(251, 250, 247, 0.86) 58%, rgba(251, 250, 247, 0.72) 100%);
  }

  .profile,
  .projects,
  .summary {
    padding: 64px 0;
  }

  .goal-grid,
  .project-grid,
  .screenshot-grid,
  .prompt-grid,
  .ai-process,
  .principle-grid,
  .info-steps {
    grid-template-columns: 1fr;
  }

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

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
