/* ============================================================
   Pemy — Company Profile  ·  profile.css
   ============================================================ */

/* ---- Design tokens ---- */
:root {
  --dark:        #07090f;
  --dark-2:      #0c0f1c;
  --dark-3:      #111527;
  --dark-border: rgb(240 244 255 / 7%);
  --dark-border-strong: rgb(240 244 255 / 14%);
  --warm:        #f6f1e9;
  --warm-2:      #ede6d9;
  --surface:     #fff;
  --surface-warm: #fdfaf6;
  --text:        #18222c;
  --muted:       #5a6672;
  --faint:       #8c96a2;
  --head-light:  #f0f4ff;
  --body-dark:   rgb(200 212 224 / 75%);
  --muted-dark:  rgb(120 140 160 / 70%);
  --accent:      #b45309;
  --accent-soft: #f3dfc2;
  --accent-glow: rgb(180 83 9 / 22%);
  --accent-gold: #e8941a;
  --green:       #10b981;
  --green-bg:    rgb(16 185 129 / 10%);
  --amber:       #f59e0b;
  --amber-bg:    rgb(245 158 11 / 10%);
  --line:        rgb(24 34 44 / 10%);
  --font:        "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono:        "IBM Plex Mono", "Fira Code", monospace;
  --r-sm:  0.5rem;
  --r-md:  1rem;
  --r-lg:  1.5rem;
  --r-xl:  2rem;
  --r-pill: 999px;
  --shadow-sm: 0 2px 10px rgb(8 12 24 / 6%);
  --shadow-md: 0 8px 36px rgb(8 12 24 / 11%);
  --shadow-lg: 0 24px 80px rgb(8 12 24 / 16%);
  --wrap: 1120px;
  --narrow: 740px;
  --section-y: clamp(5.5rem, 10vw, 9rem);
  --gap: clamp(1.25rem, 2.5vw, 2rem);
}

/* ---- Reset ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

ul { list-style: none; }
img { max-width: 100%; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

/* ---- Type scale ---- */
h1 {
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ---- Layout utilities ---- */
.wrap {
  width: min(100% - 3rem, var(--wrap));
  margin-inline: auto;
}

.section {
  padding: var(--section-y) 0;
}

.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head h2 { margin-top: 0.4rem; }

.section-sub {
  margin-top: 0.75rem;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 60ch;
}

/* ---- Accessibility ---- */
.skip-link {
  position: absolute;
  top: -5rem;
  left: 1.25rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--r-sm);
  z-index: 200;
}

.skip-link:focus-visible { top: 1rem; }

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: background 0.35s, box-shadow 0.35s;
}

.nav.is-scrolled {
  background: rgb(7 9 15 / 88%);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--dark-border);
}

.nav-inner {
  width: min(100% - 3rem, var(--wrap));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--head-light);
}

.nav-brand span {
  color: var(--accent-gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgb(200 212 224 / 65%);
  padding: 0.4rem 0.9rem;
  border-radius: var(--r-pill);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--head-light);
  background: var(--dark-border);
}

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 0.45rem 1.1rem !important;
}

.nav-cta:hover {
  background: #9a4508 !important;
  color: #fff !important;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 18px var(--accent-glow);
}

.btn-primary:hover {
  background: #9a4508;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 28px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: rgb(200 212 224 / 75%);
  border: 1px solid var(--dark-border-strong);
}

.btn-outline:hover {
  color: var(--head-light);
  border-color: rgb(240 244 255 / 24%);
  background: var(--dark-border);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 75% 15%, rgb(180 83 9 / 32%) 0%, transparent 52%),
    radial-gradient(ellipse at 15% 85%, rgb(15 118 110 / 18%) 0%, transparent 48%),
    radial-gradient(ellipse at 50% 50%, rgb(59 130 246 / 6%) 0%, transparent 60%),
    linear-gradient(170deg, #07090f 0%, #0c0f1c 100%);
  padding-top: 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
  padding-block: clamp(4rem, 8vw, 7rem);
}

.hero-copy .eyebrow {
  margin-bottom: 1.25rem;
}

.hero h1 {
  color: var(--head-light);
  margin-bottom: 1.5rem;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--body-dark);
  max-width: 56ch;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* Stat stack */
.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.stat-card {
  background: rgb(255 255 255 / 3%);
  border: 1px solid var(--dark-border);
  border-radius: var(--r-md);
  padding: 1.1rem 1.35rem;
  backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s;
}

.stat-card:hover {
  background: rgb(255 255 255 / 6%);
  border-color: var(--dark-border-strong);
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--head-light);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted-dark);
  margin-top: 0.3rem;
  line-height: 1.4;
}

/* ---- About (light) ---- */
.about {
  background: var(--surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: start;
}

.about-copy h2 {
  color: #0f1a24;
  margin-top: 0.4rem;
  margin-bottom: 1.5rem;
}

.about-copy p {
  color: #3a4650;
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 62ch;
  margin-bottom: 1.25rem;
}

.tag-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 2rem;
}

.tag-strip li {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.85rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--r-pill);
  border: 1px solid rgb(180 83 9 / 15%);
}

.profile-card {
  background: var(--warm-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2rem;
}

.profile-card h4 {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.cred-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

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

.cred-item:first-child {
  padding-top: 0;
}

.cred-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cred-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f1a24;
  line-height: 1.4;
}

.cred-org {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.contact-chip {
  margin-top: 1.25rem;
  background: var(--dark-2);
  border-radius: var(--r-md);
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.about-aside .contact-chip a {
  font-size: 0.82rem;
  color: rgb(200 212 224 / 65%);
  transition: color 0.2s;
}

.about-aside .contact-chip a:hover {
  color: var(--accent-gold);
}

/* ---- Services (warm bg) ---- */
.services {
  background: var(--warm);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.svc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.svc-card:hover {
  border-color: rgb(180 83 9 / 28%);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.svc-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.svc-card h3 { margin-bottom: 0.65rem; }

.svc-card > p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  max-width: none;
}

.svc-points {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.svc-points li {
  font-size: 0.82rem;
  color: var(--muted);
  padding-left: 1.1rem;
  position: relative;
}

.svc-points li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.68rem;
  top: 0.18em;
}

/* ---- Track Record (dark) ---- */
.track {
  background: var(--dark-2);
}

.track h2 {
  color: var(--head-light);
  margin-top: 0.4rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.exp-table {
  border: 1px solid var(--dark-border);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.exp-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  border-bottom: 1px solid var(--dark-border);
  transition: background 0.2s;
}

.exp-row:last-child { border-bottom: none; }
.exp-row:hover { background: rgb(255 255 255 / 2%); }

.exp-meta {
  padding: 2rem;
  border-right: 1px solid var(--dark-border);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.exp-tenure {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-gold);
  font-family: var(--mono);
}

.exp-role {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--head-light);
  line-height: 1.3;
}

.exp-company {
  font-size: 0.8rem;
  color: var(--muted-dark);
  margin-top: 0.2rem;
}

.exp-body {
  padding: 2rem;
}

.exp-body p {
  font-size: 0.9rem;
  color: var(--body-dark);
  line-height: 1.7;
  max-width: none;
  margin-bottom: 1.5rem;
}

.outcomes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.outcome-pill {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  background: rgb(255 255 255 / 3%);
  border: 1px solid var(--dark-border);
  border-radius: var(--r-md);
  padding: 0.7rem 1.1rem;
  min-width: 90px;
}

.outcome-val {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--accent-gold);
  line-height: 1;
}

.outcome-desc {
  font-size: 0.7rem;
  color: var(--muted-dark);
  line-height: 1.4;
}

/* ---- Capabilities (surface-warm) ---- */
.capabilities {
  background: var(--surface-warm);
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.cap-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.6rem;
}

.cap-block h4 {
  color: var(--muted);
  margin-bottom: 1.1rem;
  font-size: 0.72rem;
}

.tech-list {
  display: flex;
  flex-direction: column;
}

.tech-list li {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}

.tech-list li:last-child { border-bottom: none; }

/* AI callout */
.ai-callout {
  background: var(--dark-3);
  border: 1px solid rgb(245 158 11 / 18%);
  border-radius: var(--r-lg);
  padding: 2rem 2.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.ai-callout-copy h3 {
  color: var(--head-light);
  margin-bottom: 0.75rem;
}

.ai-callout-copy p {
  font-size: 0.9rem;
  color: var(--body-dark);
  line-height: 1.7;
  max-width: none;
}

.ai-tags {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  justify-content: center;
}

.ai-callout .ai-tags li {
  font-size: 0.78rem;
  font-family: var(--mono);
  color: rgb(200 212 224 / 60%);
  padding: 0.3rem 0.75rem;
  background: rgb(255 255 255 / 3%);
  border: 1px solid var(--dark-border);
  border-radius: var(--r-sm);
}

/* ---- Projects (warm) ---- */
.projects {
  background: var(--warm);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* Featured AI platform card — spans full width */
.proj-featured {
  grid-column: 1 / -1;
  background: var(--dark-3);
  border: 1px solid rgb(180 83 9 / 22%);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.proj-featured-left {
  padding: 2.5rem;
  border-right: 1px solid var(--dark-border);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.proj-featured-right {
  padding: 2.5rem;
}

.proj-featured-left h3 {
  color: var(--head-light);
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.proj-featured-left p,
.proj-featured-right p {
  font-size: 0.9rem;
  color: var(--body-dark);
  line-height: 1.7;
  max-width: none;
  margin-bottom: 1rem;
}

.proj-featured-right p:last-of-type { margin-bottom: 0; }

/* AI features list inside featured card */
.ai-features {
  margin-top: 0.5rem;
  background: rgb(245 158 11 / 6%);
  border: 1px solid rgb(245 158 11 / 15%);
  border-radius: var(--r-md);
  padding: 1.25rem;
}

.ai-features h4 {
  color: var(--amber);
  margin-bottom: 0.75rem;
}

.ai-features ul {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.proj-featured-right .ai-features li {
  font-size: 0.825rem;
  color: rgb(200 212 224 / 65%);
  padding-left: 1rem;
  position: relative;
}

.ai-features li::before {
  content: "·";
  position: absolute;
  left: 0.25rem;
  color: var(--amber);
  font-weight: 700;
}

/* Regular project cards */
.proj-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.proj-card:hover {
  border-color: rgb(180 83 9 / 28%);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.proj-card-top {
  padding: 1.5rem 1.5rem 0;
}

.proj-card-body {
  padding: 0.85rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.proj-card h3 {
  font-size: 0.975rem;
  margin-top: 0.5rem;
  margin-bottom: 0.6rem;
}

.proj-card .proj-card-body p {
  font-size: 0.855rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: none;
  flex: 1;
}

/* Status + category badges */
.proj-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge-status {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.18rem 0.6rem;
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.badge-status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentcolor;
  flex-shrink: 0;
}

.badge-live {
  color: var(--green);
  background: var(--green-bg);
}

.badge-dev {
  color: var(--amber);
  background: var(--amber-bg);
}

.badge-cat {
  font-size: 0.7rem;
  color: var(--faint);
  font-weight: 500;
}

/* Tech stack chips */
.tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 1rem;
}

.tech-chips span {
  font-size: 0.7rem;
  font-weight: 500;
  font-family: var(--mono);
  padding: 0.2rem 0.55rem;
  background: var(--warm-2);
  color: var(--muted);
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
}

/* Featured card tech chips (dark bg) */
.proj-featured .tech-chips span {
  background: rgb(255 255 255 / 5%);
  color: rgb(200 212 224 / 55%);
  border-color: var(--dark-border);
}

/* Outcome highlight */
.proj-outcome {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.35rem 0.8rem;
  border-radius: var(--r-sm);
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}

/* ---- Contact (dark) ---- */
.contact {
  background: var(--dark);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.contact-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 60%, rgb(180 83 9 / 18%) 0%, transparent 65%);
  pointer-events: none;
}

.contact-inner {
  position: relative;
  max-width: var(--narrow);
  margin-inline: auto;
}

.contact h2 {
  color: var(--head-light);
  margin-top: 0.4rem;
  margin-bottom: 1rem;
}

.contact-lead {
  font-size: 1.05rem;
  color: rgb(200 212 224 / 65%);
  max-width: 52ch;
  margin: 0 auto 3rem;
}

.contact-rows {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.75rem;
  background: rgb(255 255 255 / 3%);
  border: 1px solid var(--dark-border);
  border-radius: var(--r-md);
  width: 100%;
  max-width: 360px;
  transition: background 0.2s, border-color 0.2s;
}

.contact-row:hover {
  background: rgb(255 255 255 / 6%);
  border-color: rgb(180 83 9 / 30%);
}

.contact-row-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dark);
  min-width: 52px;
  text-align: left;
}

.contact-row-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgb(240 244 255 / 82%);
  text-align: left;
}

.back-link {
  font-size: 0.82rem;
  color: rgb(200 212 224 / 35%);
  transition: color 0.2s;
}

.back-link:hover { color: rgb(200 212 224 / 65%); }

/* ---- Footer ---- */
.site-footer {
  background: var(--dark);
  border-top: 1px solid var(--dark-border);
  padding: 1.5rem 0;
  text-align: center;
}

.site-footer .wrap p {
  font-size: 0.78rem;
  color: rgb(200 212 224 / 25%);
}

.site-footer .footer-links {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
}

.site-footer .footer-links a {
  color: rgb(200 212 224 / 40%);
  text-decoration: none;
}

.site-footer .footer-links a:hover { color: rgb(200 212 224 / 70%); }

/* ---- Responsive ---- */
@media (width <= 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

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

@media (width <= 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

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

  .exp-row {
    grid-template-columns: 1fr;
  }

  .exp-meta {
    border-right: none;
    border-bottom: 1px solid var(--dark-border);
    flex-flow: row wrap;
    align-items: center;
    gap: 0.5rem 1.5rem;
  }

  .ai-callout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .ai-tags {
    flex-flow: row wrap;
  }

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

  .proj-featured {
    grid-template-columns: 1fr;
  }

  .proj-featured-left {
    border-right: none;
    border-bottom: 1px solid var(--dark-border);
  }
}

@media (width <= 640px) {
  h1 {
    font-size: clamp(2.4rem, 9vw, 3.2rem);
  }

  h2 {
    font-size: clamp(1.6rem, 6vw, 2rem);
  }

  .nav-links {
    display: none;
  }

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

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

  .about-aside {
    grid-template-columns: 1fr;
  }

  .contact-row {
    max-width: none;
    width: 100%;
  }
}

/* ---- Print ---- */
@media print {
  .nav,
  .hero-actions,
  .back-link {
    display: none;
  }

  .hero {
    min-height: auto;
    page-break-after: always;
  }

  body {
    background: white;
    color: black;
  }

  .track,
  .contact {
    background: white;
  }

  .track h2,
  .contact h2,
  .exp-role,
  .stat-value,
  .outcome-val,
  .ai-callout-copy h3,
  .proj-featured-left h3 {
    color: black;
  }
}
