:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --ink: #0b1220;
  --muted: #586575;
  --line: #dde3ea;
  --line-strong: #c8d1dc;
  --teal: #006b68;
  --teal-dark: #005754;
  --blue: #1b64d8;
  --cyan: #0aa7c8;
  --copper: #bd5832;
  --gold: #b98512;
  --berry: #8b405d;
  --green: #25845d;
  --adobe: #fa0f00;
  --shopify: #6f9f2f;
  --opencart: #28a8df;
  --shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  --radius-lg: 8px;
  --radius-md: 8px;
  --radius-sm: 6px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(221, 227, 234, 0.42) 1px, transparent 1px),
    linear-gradient(180deg, rgba(221, 227, 234, 0.34) 1px, transparent 1px),
    var(--bg);
  background-size: 64px 64px;
  font-family: "IBM Plex Sans", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

.page-shell {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  font-family: "Sora", Arial, sans-serif;
  font-size: 1.24rem;
  font-weight: 800;
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem;
}

.nav a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.62fr);
  gap: 2.2rem;
  align-items: start;
  padding: 2.2rem 0 1.35rem;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  min-width: 0;
}

.hero-copy h1,
.section h2,
.contact-card h2,
.profile-copy h2,
.featured-body h3,
.download-card h3,
.strength-card h3,
.project-list-card h3,
.summary-card h3,
.experience-card h3,
.commercial-card h3,
.platform-card h3,
.not-found h1 {
  margin: 0;
  font-family: "Sora", Arial, sans-serif;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 12ch;
  font-size: 4.45rem;
  line-height: 0.98;
}

.hero-role {
  margin: 0 0 0.8rem;
  color: var(--teal);
  font-family: "Sora", Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-kicker {
  max-width: 48rem;
  margin: 1.05rem 0 0;
  color: var(--ink);
  font-size: 1.42rem;
  font-weight: 700;
  line-height: 1.28;
}

.hero-intro {
  max-width: 50rem;
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.availability-banner {
  max-width: 48rem;
  margin: 1.5rem 0 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-md);
  background: rgba(246, 248, 251, 0.9);
  color: var(--muted);
  line-height: 1.65;
}

.availability-banner strong {
  color: var(--ink);
}

.cta-row,
.contact-actions,
.project-links,
.project-list-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.cta-row {
  margin-top: 1.5rem;
}

.button,
.filter-chip,
.carousel-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.button {
  padding: 0.72rem 0.9rem;
}

.button:hover,
.filter-chip:hover,
.carousel-button:hover,
.section-link:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--teal);
  color: white;
  box-shadow: 0 12px 26px rgba(0, 107, 104, 0.18);
}

.button-primary:hover {
  background: var(--teal-dark);
}

.button-secondary,
.section-link,
.carousel-button {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin: 1.35rem 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.stat-strip li {
  display: grid;
  align-content: start;
  gap: 0.15rem;
  min-height: 58px;
  padding: 0.72rem 0.85rem 0.72rem 0;
  border-right: 1px solid var(--line);
  line-height: 1.25;
}

.stat-value {
  color: var(--ink);
  font-family: "Sora", Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 800;
}

.stat-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.stat-strip li:last-child {
  border-right: 0;
}

.hero-panel {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.panel-card,
.profile-card,
.summary-card,
.strength-card,
.project-list-card,
.contact-card,
.experience-card,
.commercial-card,
.platform-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.profile-card {
  display: grid;
  grid-template-columns: 128px 1fr;
  overflow: hidden;
  margin: 0;
  box-shadow: var(--shadow);
}

.profile-photo-shell {
  aspect-ratio: 1 / 1.08;
  overflow: hidden;
  background: var(--bg-soft);
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
}

.profile-copy {
  padding: 0.72rem;
}

.profile-copy h2 {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.18;
}

.profile-links,
.career-points,
.experience-points,
.detail-list,
.hero-now-list {
  display: grid;
  gap: 0.36rem;
  padding-left: 1.1rem;
  margin: 0;
}

.profile-links {
  padding-left: 1rem;
  font-size: 0.86rem;
}

.hero-now-list {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.38;
}

.profile-links a,
.commercial-domain a {
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
  word-break: break-word;
}

.panel-card {
  padding: 0.72rem;
}

.core-panel {
  display: none;
}

.panel-card-accent,
.summary-card-accent {
  background: linear-gradient(180deg, #f7faf9 0%, #ffffff 100%);
}

.panel-card h2 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.chip,
.filter-chip {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--ink);
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.32rem 0.48rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.eyebrow,
.panel-label,
.project-category {
  margin: 0 0 0.55rem;
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section {
  padding: 2.45rem 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 54rem;
  margin-bottom: 1.25rem;
}

.section-heading-split {
  display: flex;
  max-width: none;
  justify-content: space-between;
  gap: 1.4rem;
  align-items: flex-end;
}

.section-heading h2,
.contact-card h2 {
  font-size: 2.18rem;
  line-height: 1.08;
}

.section-heading p:last-child,
.strength-card p,
.project-summary,
.project-impact,
.contact-card p,
.project-meta,
.experience-meta,
.commercial-domain,
.carousel-note,
.commercial-status,
.download-note,
.artifact-meta,
.platform-copy p {
  color: var(--muted);
  line-height: 1.55;
}

.section-heading p {
  margin-top: 0.65rem;
}

.section-link {
  flex-shrink: 0;
  padding: 0.72rem 0.9rem;
}

.focus-section {
  padding-top: 2.2rem;
}

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

.focus-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 0.78rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.focus-card h3 {
  margin: 0;
  font-family: "Sora", Arial, sans-serif;
  font-size: 1.08rem;
  line-height: 1.18;
}

.focus-card p:not(.project-category) {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.focus-card .chip-grid {
  margin-top: auto;
}

.platform-section {
  margin: 0 -20px;
  padding: 2.45rem 20px;
  background: rgba(246, 248, 251, 0.86);
}

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

.platform-card {
  position: relative;
  display: grid;
  gap: 0.82rem;
  padding: 1rem;
  overflow: hidden;
}

.platform-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--teal);
}

.platform-adobe::before {
  background: var(--adobe);
}

.platform-shopify::before {
  background: var(--shopify);
}

.platform-opencart::before {
  background: var(--opencart);
}

.platform-woo::before {
  background: var(--copper);
}

.platform-logo-link {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding-left: 0.15rem;
}

.platform-logo {
  width: auto;
  max-width: 190px;
  max-height: 36px;
  object-fit: contain;
}

.platform-text-logo {
  color: var(--ink);
  font-family: "Sora", Arial, sans-serif;
  font-size: 1.28rem;
  font-weight: 800;
}

.platform-copy h3 {
  margin-bottom: 0.42rem;
  font-size: 1.16rem;
}

.platform-copy p {
  margin: 0;
}

.platform-strengths {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
}

.platform-strengths span {
  padding: 0.32rem 0.46rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0.85rem;
}

.summary-card,
.strength-card,
.experience-card,
.commercial-card,
.project-list-card,
.download-card {
  padding: 1rem;
}

.skill-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.skill-group {
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
}

.skill-group h3 {
  margin-bottom: 0.65rem;
  font-size: 0.94rem;
}

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

.experience-grid-spaced {
  margin-top: 0.85rem;
}

.experience-card h3,
.commercial-card h3 {
  font-size: 1.12rem;
  margin-bottom: 0.35rem;
}

.experience-meta,
.commercial-domain {
  margin: 0 0 0.6rem;
}

.experience-points {
  color: var(--muted);
}

.carousel-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.carousel-note {
  margin: 0;
  max-width: 44rem;
}

.carousel-controls {
  display: flex;
  gap: 0.5rem;
}

.carousel-button {
  padding: 0.65rem 0.8rem;
}

.commercial-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 30vw);
  gap: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 23, 42, 0.24) transparent;
}

.commercial-card {
  display: grid;
  gap: 0.78rem;
  min-height: 100%;
  scroll-snap-align: start;
}

.commercial-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  aspect-ratio: 16 / 9;
}

.commercial-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.commercial-body {
  display: grid;
  gap: 0.5rem;
}

.commercial-body .project-category,
.commercial-body h3,
.commercial-body .commercial-domain,
.commercial-body .project-summary,
.commercial-body .commercial-status {
  margin: 0;
}

.commercial-status {
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}

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

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

.featured-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.featured-media {
  position: relative;
  aspect-ratio: 16 / 9.1;
  background: var(--bg-soft);
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.featured-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem;
}

.featured-body h3 {
  margin-bottom: 0.55rem;
  font-size: 1.18rem;
}

.project-impact {
  margin-bottom: 0.75rem;
}

.featured-body .project-summary,
.featured-body .project-impact {
  font-size: 0.91rem;
}

.featured-body .chip-grid {
  margin-top: auto;
}

.project-links {
  margin-top: 0.85rem;
}

.project-links a,
.project-list-bottom a {
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

.downloads-hero {
  align-items: start;
}

.download-side-list {
  display: grid;
  gap: 0.8rem;
  padding-left: 1.15rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.download-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.download-card-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.download-card .project-category,
.download-card h3,
.download-card .project-summary,
.download-card .download-note {
  margin: 0;
}

.download-card h3 {
  font-size: 1.4rem;
}

.download-card .project-links {
  margin-top: auto;
}

.download-badge {
  margin: 0;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.artifact-list {
  display: grid;
  gap: 0.75rem;
}

.artifact-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
}

.artifact-copy {
  min-width: 0;
}

.artifact-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.artifact-label {
  margin: 0;
  font-weight: 800;
}

.artifact-meta {
  margin: 0.25rem 0 0;
}

.artifact-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.48rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 800;
}

.artifact-pill-hosted {
  background: rgba(0, 107, 104, 0.1);
  color: var(--teal);
}

.artifact-pill-external {
  background: rgba(189, 88, 50, 0.1);
  color: var(--copper);
}

.artifact-button {
  flex-shrink: 0;
  white-space: nowrap;
}

.strength-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.strength-card h3 {
  margin-bottom: 0.7rem;
  font-size: 1.08rem;
}

.project-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1rem;
  align-items: flex-end;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
}

.filter-chip {
  min-height: 34px;
  padding: 0.48rem 0.62rem;
}

.filter-chip.active {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.search-field {
  display: grid;
  gap: 0.35rem;
  min-width: min(100%, 20rem);
  color: var(--muted);
  font-weight: 700;
}

.search-field input {
  width: 100%;
  min-height: 38px;
  padding: 0.64rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

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

.project-list-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.72rem;
}

.project-list-card h3 {
  font-size: 1rem;
  line-height: 1.22;
}

.project-list-top {
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
  align-items: flex-start;
}

.project-meta {
  margin: 0;
  font-size: 0.76rem;
  text-align: right;
}

.project-list-card-empty {
  grid-column: 1 / -1;
  text-align: center;
}

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

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

.detail-list li {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
}

.detail-list strong {
  font-family: "Sora", Arial, sans-serif;
}

.contact-card {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.25rem;
  background: var(--ink);
  color: white;
}

.contact-card .eyebrow {
  color: #88ddd7;
}

.contact-card p {
  color: rgba(255, 255, 255, 0.76);
}

.contact-card .button-secondary {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.footer {
  padding: 1.4rem 0 2rem;
  text-align: center;
  color: var(--muted);
}

.not-found {
  width: min(720px, calc(100% - 2rem));
  margin: 6rem auto;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.accent-copper .project-category {
  color: var(--copper);
}

.accent-ink .project-category {
  color: var(--ink);
}

.accent-teal .project-category {
  color: var(--teal);
}

.accent-blue .project-category {
  color: var(--blue);
}

.accent-cyan .project-category {
  color: var(--cyan);
}

.accent-gold .project-category {
  color: var(--gold);
}

.accent-berry .project-category {
  color: var(--berry);
}

.accent-green .project-category {
  color: var(--green);
}

.reveal {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  animation-delay: 0s;
}

.reveal-delay-2 {
  animation-delay: 0s;
}

.reveal-delay-3 {
  animation-delay: 0s;
}

.reveal-delay-4 {
  animation-delay: 0s;
}

.reveal-delay-5 {
  animation-delay: 0s;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

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

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

  .reveal,
  .button,
  .filter-chip,
  .carousel-button,
  .section-link {
    animation: none;
    transition: none;
  }
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  }

  .profile-card {
    grid-template-columns: 220px 1fr;
  }

  .profile-photo-shell {
    aspect-ratio: 1 / 1.08;
  }

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

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

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

  .commercial-grid {
    grid-auto-columns: minmax(320px, 46vw);
  }
}

@media (max-width: 900px) {
  .page-shell {
    width: min(var(--max-width), calc(100% - 28px));
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
  }

  .nav {
    justify-content: flex-start;
    gap: 0.75rem 1rem;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-copy h1 {
    font-size: 3.7rem;
  }

  .summary-grid,
  .experience-grid,
  .featured-grid,
  .focus-grid,
  .download-grid,
  .credentials-grid,
  .platform-grid {
    grid-template-columns: 1fr;
  }

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

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

  .hero-panel .profile-card {
    grid-column: 1 / -1;
  }

  .hero-panel .panel-card-accent {
    grid-column: 1 / -1;
  }

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

  .section-heading-split,
  .carousel-toolbar,
  .project-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-card {
    grid-template-columns: 180px 1fr;
  }

  .skill-groups {
    grid-template-columns: 1fr;
  }

  .section-heading h2,
  .contact-card h2 {
    font-size: 1.95rem;
  }

  .project-toolbar {
    align-items: stretch;
  }

  .platform-section {
    margin-right: 0;
    margin-left: 0;
    padding-right: 0;
    padding-left: 0;
  }
}

@media (max-width: 640px) {
  body {
    background-size: 56px 56px;
  }

  .page-shell {
    width: min(var(--max-width), calc(100% - 20px));
  }

  .brand {
    font-size: 1.2rem;
  }

  .nav a {
    font-size: 0.9rem;
  }

  .hero-copy h1 {
    font-size: 2.85rem;
  }

  .hero-role {
    font-size: 0.82rem;
    letter-spacing: 0.1em;
  }

  .hero-kicker {
    font-size: 1.14rem;
  }

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

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

  .stat-strip li {
    min-height: auto;
    padding: 0.62rem 0.7rem 0.62rem 0;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .stat-strip li:nth-child(2n) {
    border-right: 0;
  }

  .stat-strip li:last-child {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 0;
  }

  .stat-value {
    font-size: 0.9rem;
  }

  .stat-label {
    font-size: 0.74rem;
  }

  .hero-panel {
    display: none;
  }

  .commercial-grid {
    grid-auto-columns: 88%;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .platform-section {
    margin-right: -10px;
    margin-left: -10px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .project-list-top,
  .artifact-item,
  .download-card-top,
  .contact-actions,
  .profile-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-card {
    display: flex;
  }

  .profile-photo-shell {
    width: 100%;
    max-height: 420px;
  }

  .project-meta {
    text-align: left;
  }
}
