/* ============================================
   LAYOUT — JASON HANLON PORTFOLIO
   ============================================ */

/* --- NAV --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--duration-med) var(--ease-out),
              backdrop-filter var(--duration-med) var(--ease-out);
}

.site-nav.scrolled {
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity var(--duration-slow) var(--ease-out) 0.8s,
              transform var(--duration-slow) var(--ease-out) 0.8s;
}

.nav-logo.visible { opacity: 1; transform: translateY(0); }

.nav-links {
  display: flex;
  gap: var(--space-5);
  list-style: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity var(--duration-slow) var(--ease-out) 1s,
              transform var(--duration-slow) var(--ease-out) 1s;
}

.nav-links.visible { opacity: 1; transform: translateY(0); }

.nav-links a {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--duration-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--duration-med) var(--ease-out);
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

/* Subtitle line inside the hero h1 */
.hero-title-sub {
  font-size: clamp(1.2rem, 2.5vw, 2.2rem);
  color: var(--text-muted);
  letter-spacing: -0.01em;
  font-style: normal;
}

/* "View Work ↓" accent link in hero */
.hero-cta-link {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

/* Accent link in section headers (e.g. "View All Projects →") */
.section-cta-link {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-glow);
}

/* --- HERO --- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 700px;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-7);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.80;
  transform: scale(1.05);
  transition: transform 12s ease;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,13,13,0.3) 0%,
    rgba(13,13,13,0.1) 40%,
    rgba(13,13,13,0.7) 80%,
    rgba(13,13,13,1) 100%
  );
}

/* Atmospheric glow */
.hero-glow {
  position: absolute;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,185,154,0.06) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--space-5);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  overflow: hidden;
}

.hero-eyebrow .label {
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 0.8s var(--ease-out) 0.3s forwards;
}

.hero-line-accent {
  width: 40px;
  height: 1px;
  background: var(--accent);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  animation: lineExpand 0.6s var(--ease-out) 0.6s forwards;
}

.hero-title {
  overflow: hidden;
  margin-bottom: var(--space-4);
}

.hero-title-line {
  display: block;
  opacity: 0;
  transform: translateY(100%);
}

.hero-title-line:nth-child(1) { animation: slideUp 0.9s var(--ease-out) 0.5s forwards; }
.hero-title-line:nth-child(2) { animation: slideUp 0.9s var(--ease-out) 0.65s forwards; }
.hero-title-line:nth-child(3) { animation: slideUp 0.9s var(--ease-out) 0.8s forwards; }

.hero-meta {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  opacity: 0;
  animation: fadeIn 0.8s var(--ease-out) 1.2s forwards;
}

.hero-scroll-hint {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-muted);
  font-size: 0.75rem; /* raised from 0.7rem (11.2px) → 12px for WCAG readability */
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-line {
  width: 40px;
  height: 1px;
  background: var(--text-faint);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollPulse 2.5s ease-in-out 2s infinite;
}

/* --- MARQUEE BAND --- */
.marquee-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-2) 0;
  overflow: hidden;
  position: relative;
  /* contain layout so resizes don't leak */
  contain: layout style;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  /* CSS animation runs on the compositor thread — survives iOS scroll throttling
     that kills requestAnimationFrame. JS will still clone items for seamless loop,
     but the actual motion is driven here, not in JS. */
  animation: marquee-scroll 30s linear infinite;
  /* Suppress JS-driven inline transform when CSS animation is active */
  will-change: transform;
}

/* Pause on reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

.marquee-item {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-faint);
  font-style: italic;
  display: inline-flex;
  align-items: center;
  gap: var(--space-5);
  /* consistent spacing between items */
  padding-right: var(--space-5);
  flex-shrink: 0;
}

.marquee-item .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
}

/* --- SECTION SHARED --- */
.section {
  padding: var(--space-9) 0;
}

.section-sm {
  padding: var(--space-7) 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-7);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}

.section-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-faint);
  font-style: italic;
  margin-bottom: var(--space-2);
}

/* --- ABOUT SECTION --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: start;
}

.about-statement {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  line-height: 1.3;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
}

.about-statement em {
  color: var(--accent);
  font-style: italic;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.stat-item {
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: border-color var(--duration-med);
}

.stat-item:hover { border-color: var(--border-hover); }

.stat-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.stat-label {
  font-size: 0.75rem; /* raised from 0.7rem (11.2px) → 12px for WCAG readability */
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.skills-heading {
  margin-bottom: var(--space-3);
}

.skills-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.skills-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--duration-fast);
}

.skills-list li:hover { color: var(--text-primary); }

.skill-tag {
  font-size: 0.75rem; /* raised from 0.6rem (9.6px) → 12px for WCAG readability */
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 2px 8px;
  border-radius: 2px;
}

/* --- WORK SECTION --- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-3);
}

.work-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  cursor: none;
  transition: border-color var(--duration-med);
}

.work-card:hover { border-color: var(--border-hover); }

/* Layout: alternating sizes */
.work-card:nth-child(1) { grid-column: span 7; }
.work-card:nth-child(2) { grid-column: span 5; }
.work-card:nth-child(3) { grid-column: span 5; }
.work-card:nth-child(4) { grid-column: span 7; }
.work-card:nth-child(5) { grid-column: span 4; }
.work-card:nth-child(6) { grid-column: span 8; }
.work-card:nth-child(7) { grid-column: span 6; }
.work-card:nth-child(8) { grid-column: span 6; }

.work-card-img-wrap {
  overflow: hidden;
  aspect-ratio: 4/3;
}

.work-card-img {
  /* ── UPDATE IMAGES: replace src in work.html work-card-img tags ──────────
     Recommended size: 1280×960px (4:3), JPEG at 80–85% quality, < 200 KB.
     Each card in work.html has its own <img> with a unique src attribute.  */
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.9s var(--ease-out), filter 0.9s var(--ease-out);
  filter: saturate(0.7);
}

.work-card:hover .work-card-img {
  transform: scale(1.06);
  filter: saturate(1);
}

.work-card-body {
  padding: var(--space-3) var(--space-4);
}

.work-card-client {
  font-size: 0.75rem; /* raised from 0.65rem (10.4px) → 12px for WCAG readability */
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-1);
}

.work-card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.work-card-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-top: var(--space-2);
}

.work-tag {
  font-size: 0.75rem; /* raised from 0.6rem (9.6px) → 12px for WCAG readability */
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 1px;
}

.work-card-arrow {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--duration-med), transform var(--duration-med), border-color var(--duration-med), color var(--duration-med);
}

.work-card:hover .work-card-arrow {
  opacity: 1;
  transform: translateY(0);
  border-color: var(--accent);
  color: var(--accent);
}

/* --- PHILOSOPHY SECTION --- */
.philosophy-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-7);
  align-items: start;
}

.philosophy-text {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  line-height: 1.5;
  font-weight: 300;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.philosophy-text em {
  color: var(--accent);
  font-style: italic;
}

/* Clients & Partners inline list — always left-aligned, wraps naturally, no bullets */
.clients-list {
  font-size: 0.8125rem;
  line-height: 1.9;
  color: var(--text-muted);
  font-weight: 300;
  text-align: left;
  text-indent: 0;
  padding-left: 0;
  margin-left: 0;
}

.clients-block {
  margin-top: var(--space-5);
}

.clients-label {
  margin-bottom: var(--space-2);
}

/* Contact section intro paragraph */
.contact-intro {
  max-width: 380px;
}

.process-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.process-step {
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: 2px;
  position: relative;
  transition: background var(--duration-med), border-color var(--duration-med);
}

.process-step:hover {
  background: var(--bg-card);
  border-color: var(--border-hover);
}

.step-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--text-faint);
  line-height: 1;
  margin-bottom: var(--space-2);
  font-style: italic;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: var(--space-1);
  color: var(--text-primary);
}

.step-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- CONTACT SECTION --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: center;
}

.contact-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  line-height: 1.05;
  margin-bottom: var(--space-4);
  letter-spacing: -0.03em;
}

.contact-headline em {
  font-style: italic;
  color: var(--accent);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: border-color var(--duration-med), background var(--duration-med);
  color: var(--text-primary);
}

.contact-link-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card);
}

.contact-link-label {
  font-size: 0.75rem; /* raised from 0.65rem (10.4px) → 12px for WCAG readability */
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-link-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.contact-arrow {
  color: var(--accent);
  font-size: 1rem;
  transition: transform var(--duration-fast);
}

.contact-link-item:hover .contact-arrow {
  transform: translate(3px, -3px);
}

/* --- FOOTER --- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-5) 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.8rem;
  color: var(--text-muted);
}


/* --- VIBE CODED FOOTER ANIMATION --- */
@keyframes vibe-char-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.vibe-coded {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  /* Characters are invisible until JS triggers the animation */
}

.vibe-coded .vc-char {
  display: inline-block;
  opacity: 0;
}

.vibe-coded.is-animating .vc-char {
  animation: vibe-char-in 0.5s var(--ease-out) both;
}

/* Gold highlight on "Claude Code" */
.vibe-coded .vc-highlight {
  color: var(--accent);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .vibe-coded .vc-char {
    animation: none !important;
    opacity: 1;
  }
}

/* --- SCROLL ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .work-card:nth-child(1) { grid-column: span 12; }
  .work-card:nth-child(2) { grid-column: span 12; }
  .work-card:nth-child(3) { grid-column: span 6; }
  .work-card:nth-child(4) { grid-column: span 6; }
  .work-card:nth-child(5) { grid-column: span 12; }
  .work-card:nth-child(6) { grid-column: span 12; }
  .work-card:nth-child(7) { grid-column: span 6; }
  .work-card:nth-child(8) { grid-column: span 6; }

  .about-grid { grid-template-columns: 1fr; }
  .philosophy-layout { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}

/* Touch devices have no hover — always show the arrow so cards look tappable */
@media (hover: none) {
  .work-card-arrow {
    opacity: 1;
    transform: translateY(0);
    border-color: var(--accent);
    color: var(--accent);
  }
}

@media (max-width: 768px) {
  :root {
    --space-7: 64px;
    --space-8: 96px;
    --space-9: 128px;
  }

  .site-nav { padding: var(--space-3) var(--space-3); }
  .hero-content { padding: 0 var(--space-3); }

  .work-card:nth-child(n) { grid-column: span 12; }

  .process-steps { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }

  .nav-links { gap: var(--space-3); }
  .footer-inner { flex-direction: column; align-items: center; gap: var(--space-2); text-align: center; }

}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-3); }
  .section-header { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
}

/* Hide custom cursor on all touch / non-mouse devices (phones AND tablets).
   `hover: none` catches devices with no true hover (finger input).
   `pointer: coarse` catches touchscreens regardless of screen size.
   Using both together avoids false positives on some hybrid devices. */
@media (hover: none), (pointer: coarse) {
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none !important; }
}

/* ============================================
   INTERACTIVE SKILLS — CORE DISCIPLINES
   ============================================ */

.skill-item {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
}

.skill-item:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.skill-name {
  flex: 1;
  transition: color var(--duration-fast);
}

.skill-item-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.skill-chevron {
  font-size: 1.1rem;
  color: var(--text-faint);
  transition: transform 0.35s var(--ease-out), color 0.2s;
  display: inline-block;
  line-height: 1;
}

.skill-item:hover .skill-chevron,
.skill-item.active .skill-chevron {
  color: var(--accent);
}

.skill-item.active .skill-chevron {
  transform: rotate(90deg);
}

.skill-item.active .skill-name,
.skill-item:hover .skill-name {
  color: var(--text-primary);
}

.skill-item.active {
  color: var(--text-primary);
}

/* --- SKILL DRAWER --- */
.skill-drawer {
  overflow: hidden;
  /* --sd-h is measured and set by JS so no content ever clips */
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.55s var(--ease-out),
    opacity 0.4s var(--ease-out),
    margin-top 0.4s var(--ease-out);
  margin-top: 0;
  border-radius: 2px;
  background: var(--bg-card);
  border: 1px solid transparent;
}

.skill-drawer.open {
  max-height: var(--sd-h, 680px); /* JS overrides --sd-h; 680px is a safe fallback */
  opacity: 1;
  margin-top: var(--space-2);
  border-color: var(--border-hover);
}

.skill-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: var(--space-3) var(--space-3) var(--space-2);
  border-bottom: 1px solid var(--border);
}

.skill-drawer-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.2;
}

.skill-drawer-tag-line {
  font-size: 0.75rem; /* raised from 0.65rem (10.4px) → 12px for WCAG readability */
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 4px;
}

.skill-drawer-close {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 32px;   /* raised from 26px for better touch target size */
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.75rem; /* raised from 0.6rem (9.6px) → 12px for WCAG readability */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: var(--space-2);
  transition: border-color var(--duration-fast), color var(--duration-fast);
}

.skill-drawer-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Meta row */
.skill-drawer-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-bottom: 1px solid var(--border);
}

.skill-meta-block {
  background: var(--bg-card);
  padding: var(--space-2) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.skill-meta-label {
  font-size: 0.75rem; /* raised from 0.6rem (9.6px) → 12px for WCAG readability */
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.skill-meta-value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--accent-warm);
}

/* Chart area */
.skill-chart-wrap {
  padding: var(--space-2) var(--space-3) 0;
}

.skill-chart-label {
  font-size: 0.75rem; /* raised from 0.6rem (9.6px) → 12px for WCAG readability */
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}

.skill-chart {
  width: 100%;
  height: 90px;
  display: block;
}

.skill-chart-axis {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem; /* raised from 0.6rem (9.6px) → 12px for WCAG readability */
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-top: 4px;
  text-transform: uppercase;
}

.skill-drawer-desc {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-muted);
  padding: var(--space-2) var(--space-3) var(--space-3);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .skill-drawer.open {
    max-height: var(--sd-h, 780px);
  }

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

  .skill-meta-block:last-child {
    grid-column: 1 / -1;
  }

  .skill-chart {
    height: 80px;
  }
}

/* ─────────────────────────────────────────────────────────────────
   CONTACT PAGE — moved from inline <style> in contact.html
   ───────────────────────────────────────────────────────────────── */
.contact-page-hero { padding-top: 160px; padding-bottom: var(--space-9); }
.contact-page-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: start; }

.contact-form-group { display: flex; flex-direction: column; gap: var(--space-1); margin-bottom: var(--space-4); }

.contact-form-label {
  font-size: 0.75rem; /* raised from 0.65rem (10.4px) → 12px for WCAG readability */
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-form-input,
.contact-form-textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 300;
  padding: var(--space-3);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.3s;
  width: 100%;
}
.contact-form-input:focus,
.contact-form-textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 2px; }
.contact-form-input[aria-invalid="true"],
.contact-form-textarea[aria-invalid="true"] { border-color: #ff5f5f; }

.contact-form-textarea { min-height: 160px; resize: vertical; line-height: 1.6; }

.contact-form-error {
  font-size: 0.75rem;
  color: #ff5f5f;
  margin-top: 4px;
  display: none;
}
.contact-form-error.visible { display: block; }

.contact-form-status {
  margin-top: var(--space-3);
  font-size: 0.875rem;
  color: var(--text-muted);
}
.contact-form-status.success { color: #3ecf8e; }
.contact-form-status.error   { color: #ff5f5f; }

.contact-form-submit {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: none;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.75rem; /* raised from 0.7rem (11.2px) → 12px for WCAG readability */
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-5);
  border-radius: 2px;
  cursor: none;
  transition: background 0.3s, color 0.3s;
}
.contact-form-submit:hover { background: var(--accent); color: var(--bg-primary); }
body.cursor-default .contact-form-submit { cursor: pointer; }

@media (max-width: 768px) {
  .contact-page-layout { grid-template-columns: 1fr; }
}
