:root {
  --bg: #f3ede3;
  --bg-soft: #faf6ef;
  --surface: rgba(255, 251, 245, 0.9);
  --surface-strong: #fffdf8;
  --surface-accent: #e5f0eb;
  --surface-dark: #102d4c;
  --surface-dark-soft: #183f66;
  --text: #1f211d;
  --muted: #5d6158;
  --line: rgba(31, 33, 29, 0.12);
  --accent: #0f5d4a;
  --accent-deep: #0a4335;
  --accent-warm: #b85a3f;
  --blue: #18477a;
  --blue-soft: #dfeaff;
  --success-bg: #e3f4ea;
  --success-text: #176244;
  --active-bg: #e7f1fb;
  --active-text: #1d5f93;
  --prototype-bg: #fff1dd;
  --prototype-text: #9d6320;
  --concept-bg: #efe9f8;
  --concept-text: #72559d;
  --shadow-lg: 0 24px 70px rgba(51, 44, 32, 0.12);
  --shadow-sm: 0 10px 30px rgba(51, 44, 32, 0.06);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Instrument Sans", sans-serif;
  font-size: 16px;
  background:
    radial-gradient(circle at top left, rgba(15, 93, 74, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(184, 90, 63, 0.08), transparent 22%),
    linear-gradient(180deg, #fbf8f1 0%, var(--bg) 100%);
}

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

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

p {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text);
}

ul {
  margin: 0;
  padding-left: 1.1rem;
}

.plain-list {
  list-style: none;
  padding-left: 0;
}

.plain-list li {
  position: relative;
  margin-bottom: 0.7rem;
  padding-left: 1.1rem;
  color: var(--muted);
}

.plain-list li::before {
  content: "";
  position: absolute;
  top: 0.72rem;
  left: 0;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--accent);
}

.page-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  animation: fade-up 720ms ease both;
}

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(500px, 58vh, 620px);
  padding: 16px 24px 16px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 251, 245, 0.94), rgba(245, 237, 225, 0.88)),
    var(--surface);
  box-shadow: var(--shadow-lg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -120px 80px auto;
  width: 320px;
  height: 320px;
  border-radius: 32% 68% 62% 38% / 35% 40% 60% 65%;
  background: linear-gradient(135deg, rgba(15, 93, 74, 0.12), rgba(24, 71, 122, 0.08));
}

.topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.brand {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
}

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

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.86fr);
  gap: 22px;
  align-items: center;
}

.eyebrow,
.section-kicker,
.panel-kicker,
.journey-phase {
  margin-bottom: 8px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
}

h1,
h2 {
  font-family: "Newsreader", serif;
  line-height: 0.98;
}

h1 {
  max-width: none;
  margin-bottom: 8px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
}

.hero-subheadline {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 700;
}

.hero-text {
  max-width: 48ch;
  font-size: 0.98rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

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

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

.button-primary:hover {
  background: var(--accent-deep);
}

.button-secondary,
.button-tertiary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.6);
}

.button-tertiary {
  min-height: 44px;
  padding: 12px 18px;
}

.button-muted {
  min-height: 44px;
  padding: 12px 18px;
  border-color: var(--line);
  background: rgba(245, 240, 232, 0.9);
  color: var(--muted);
  cursor: default;
}

.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.proof-row li {
  padding: 8px 12px;
  border: 1px solid rgba(15, 93, 74, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--text);
  font-size: 0.84rem;
}

.hero-panel {
  display: grid;
  gap: 10px;
}

.summary-card,
.accent-box,
.metric-card,
.feature-card,
.journey-step,
.project-summary-card,
.showcase-block,
.detail-card,
.skill-panel,
.mini-card,
.published-card,
.contact-grid a,
.site-footer {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
}

.summary-card {
  padding: 16px;
}

.summary-card h2 {
  margin-bottom: 6px;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
}

.content-section {
  padding: 72px 8px 0;
}

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

.section-intro {
  max-width: 70ch;
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1.08;
}

h3 {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.2;
}

h4 {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.two-column,
.contact-layout,
.showcase-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.accent-box {
  padding: 20px;
  background: linear-gradient(180deg, rgba(229, 240, 235, 0.8), rgba(255, 253, 248, 1));
}

.section-callout {
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
}

.accent-title {
  margin-bottom: 12px;
  color: var(--text);
  font-weight: 700;
}

.metrics-grid,
.difference-grid,
.impact-grid,
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

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

.metric-card,
.feature-card,
.journey-step,
.skill-panel,
.mini-card,
.detail-card,
.published-body {
  padding: 20px;
}

.metric-value {
  margin-bottom: 8px;
  color: var(--text);
  font-family: "Newsreader", serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 0.95;
}

.metric-label {
  margin-bottom: 6px;
  color: var(--text);
  font-weight: 700;
}

.metric-note {
  margin-bottom: 0;
  font-size: 0.95rem;
}

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

.journey-step {
  position: relative;
}

.journey-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
}

.project-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.evidence-stack {
  display: grid;
  gap: 18px;
}

.project-summary-card {
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-summary-card:hover,
.showcase-block:hover,
.published-card:hover,
.evidence-card:hover,
.app-proof-card:hover,
.feature-card:hover,
.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(51, 44, 32, 0.1);
}

.project-summary-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1eee7;
}

.project-summary-image img {
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.project-summary-card:hover .project-summary-image img {
  transform: scale(1.03);
}

.placeholder-surface,
.placeholder-frame {
  display: grid;
  place-items: center;
  min-height: 260px;
  border: 1px dashed rgba(31, 33, 29, 0.18);
  background:
    linear-gradient(135deg, rgba(234, 231, 246, 0.9), rgba(249, 241, 228, 0.9));
}

.placeholder-content {
  max-width: 26ch;
  padding: 20px;
  text-align: center;
}

.placeholder-label {
  display: inline-block;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-summary-body {
  padding: 18px 20px 20px;
}

.project-summary-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.key-achievement {
  margin-top: 6px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}

.text-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--accent);
  font-weight: 700;
}

.status-badge,
.tech-badge,
.link-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.status-badge.published {
  background: var(--success-bg);
  color: var(--success-text);
}

.status-badge.active {
  background: var(--active-bg);
  color: var(--active-text);
}

.status-badge.prototype {
  background: var(--prototype-bg);
  color: var(--prototype-text);
}

.status-badge.concept {
  background: var(--concept-bg);
  color: var(--concept-text);
}

.tech-badge,
.link-chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
  color: var(--text);
}

.tech-badge.muted,
.link-chip.muted {
  background: rgba(245, 240, 232, 0.88);
  color: var(--muted);
}

.showcase-block {
  margin-bottom: 24px;
  padding: 22px;
}

.evidence-card,
.app-proof-card {
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.evidence-card {
  padding: 22px;
}

.evidence-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.evidence-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 16px;
  align-items: start;
}

.evidence-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.evidence-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #f4f1ea;
}

.evidence-media img {
  height: 100%;
  object-fit: cover;
}

.evidence-media figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.evidence-media-large {
  grid-column: span 2;
}

.evidence-info-grid {
  display: grid;
  gap: 14px;
}

.evidence-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
  padding: 18px;
}

.showcase-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.showcase-intro {
  max-width: 72ch;
  margin-top: 12px;
}

.link-row,
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

.gallery-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #f4f1ea;
}

.gallery-item img {
  height: 100%;
  object-fit: cover;
}

.gallery-item figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.gallery-item-large {
  grid-column: span 2;
}

.showcase-details {
  display: grid;
  gap: 16px;
}

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

.published-proof-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(229, 240, 235, 0.82), rgba(255, 253, 248, 0.98));
  box-shadow: var(--shadow-sm);
}

.published-proof-copy {
  max-width: 70ch;
}

.app-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.app-proof-top {
  display: grid;
  gap: 12px;
  padding: 18px 18px 0;
}

.app-icon-placeholder,
.app-screenshot-frame {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: #f4f1ea;
}

.app-icon-placeholder {
  min-height: 118px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(234, 231, 246, 0.9), rgba(249, 241, 228, 0.9));
}

.app-screenshot-frame img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.app-proof-body {
  padding: 16px 18px 20px;
}

.published-card {
  overflow: hidden;
}

.published-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f3f0ea;
}

.published-image img {
  height: 100%;
  object-fit: cover;
}

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

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

.mini-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 242, 234, 0.96));
}

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

.contact-grid a {
  display: grid;
  gap: 6px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.link-label {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-section {
  padding-bottom: 36px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 8px 18px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(255, 249, 240, 0.98), rgba(229, 240, 235, 0.94));
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-line {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
}

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

.error-shell {
  min-height: calc(100vh - 40px);
}

.error-actions {
  align-items: center;
}

@media (max-width: 1180px) {
  .metrics-grid,
  .difference-grid,
  .impact-grid,
  .journey-timeline,
  .exploring-grid,
  .published-grid,
  .app-proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid-three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .hero {
    min-height: auto;
  }

  .hero-grid,
  .two-column,
  .contact-layout,
  .showcase-layout,
  .evidence-card-body,
  .project-card-grid,
  .skills-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .showcase-header {
    flex-direction: column;
  }

  .evidence-card-head {
    flex-direction: column;
  }

  .gallery-item-large {
    grid-column: auto;
  }

  .topbar {
    margin-bottom: 28px;
  }

  h1 {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 12px;
  }

  .hero {
    min-height: auto;
    padding: 16px;
    border-radius: 26px;
  }

  .cta-row {
    gap: 10px;
  }

  .cta-row .button {
    width: 100%;
    min-height: 46px;
    padding: 12px 18px;
  }

  .content-section {
    padding-top: 56px;
  }

  .nav-links {
    gap: 12px;
  }

  .metrics-grid,
  .difference-grid,
  .impact-grid,
  .journey-timeline,
  .exploring-grid,
  .published-grid,
  .gallery-grid,
  .evidence-media-grid,
  .app-proof-grid {
    grid-template-columns: 1fr;
  }

  .evidence-media-large {
    grid-column: auto;
  }

  .site-footer {
    padding: 20px;
  }
}
