/* ============================================================
   STEPHEN SHERWOOD — PORTFOLIO
   style.css — Design tokens, global styles, viewer mode system
   ============================================================ */

/* ===== DESIGN TOKENS ===== */
:root {
  /* Colors */
  --color-bg:             #F7F4EF;
  --color-text:           #1C1917;
  --color-text-muted:     #6B6560;
  --color-text-faint:     #9B9590;
  --color-surface:        #EEEAE3;
  --color-surface-2:      #E4DFD7;
  --color-border:         #D8D3CB;
  --color-border-light:   #E8E3DB;

  /* Accent — terracotta */
  --color-accent:         #C1502E;
  --color-accent-hover:   #A84227;
  --color-accent-soft:    rgba(193, 80, 46, 0.08);
  --color-accent-softer:  rgba(193, 80, 46, 0.04);

  /* Showcase section — darker register */
  --color-showcase-bg:    #1E1A17;
  --color-showcase-text:  #F0EBE4;
  --color-showcase-muted: #9B9188;
  --color-showcase-border:rgba(240, 235, 228, 0.12);

  /* Typography */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', Courier, monospace;

  /* Type scale */
  --text-xs:    0.6875rem;   /* 11px — tags, labels */
  --text-sm:    0.875rem;    /* 14px — metadata, captions */
  --text-base:  1.0625rem;   /* 17px — body */
  --text-lg:    1.25rem;     /* 20px — lead text */
  --text-xl:    1.5rem;      /* 24px — h3 */
  --text-2xl:   2rem;        /* 32px — h2 */
  --text-3xl:   2.75rem;     /* 44px — section headings */
  --text-hero:  clamp(3.25rem, 8vw, 6rem); /* hero name */

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Layout */
  --max-width:     1100px;
  --reading-width: 720px;
  --nav-height:    64px;

  /* Radius */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(28,25,23,0.06), 0 1px 2px rgba(28,25,23,0.04);
  --shadow-md: 0 4px 16px rgba(28,25,23,0.08), 0 2px 4px rgba(28,25,23,0.04);
  --shadow-lg: 0 12px 40px rgba(28,25,23,0.12), 0 4px 8px rgba(28,25,23,0.06);

  /* Motion */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
  --duration-fast: 140ms;
  --duration-base: 220ms;
  --duration-slow: 400ms;

  /* Mode transition */
  --mode-duration: 240ms;
}

/* ===== VIEWER MODE SYSTEM ===== */
/* All mode-specific content hidden by default */
[data-mode] {
  display: none;
}

/* Recruiter mode — active content */
:root[data-mode="recruiter"] [data-mode="recruiter"],
body.mode-recruiter [data-mode="recruiter"] {
  display: block;
}

/* Hiring manager mode — active content */
:root[data-mode="hiring-manager"] [data-mode="hiring-manager"],
body.mode-hiring-manager [data-mode="hiring-manager"] {
  display: block;
}

/* Designer mode — active content */
:root[data-mode="designer"] [data-mode="designer"],
body.mode-designer [data-mode="designer"] {
  display: block;
}

/* Process section hidden entirely in recruiter mode */
:root[data-mode="recruiter"] .process,
body.mode-recruiter .process {
  display: none;
}

/* Mode transition — elements that change fade during switch */
.mode-transitioning [data-mode] {
  opacity: 0;
  transform: translateY(6px);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

ul, ol {
  list-style: none;
}

/* ===== ACCESSIBILITY ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-4);
  z-index: 9999;
  padding: var(--sp-3) var(--sp-6);
  background: var(--color-accent);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-md);
  transform: translateY(-200%);
  transition: transform var(--duration-base) var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Focus styles — visible, warm */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--sp-10);
  }
}

.section {
  padding-block: var(--sp-24);
}

.section-header {
  margin-bottom: var(--sp-12);
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--sp-3);
}

.section-label--light {
  color: rgba(193, 80, 46, 0.7);
}

.section-heading {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 300;
  line-height: 1.15;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.section-heading--light {
  color: var(--color-showcase-text);
}

/* ===== NAVIGATION ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-light);
  transition: box-shadow var(--duration-base) var(--ease-out);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--sp-6);
  height: 100%;
}

@media (min-width: 768px) {
  .nav-inner {
    padding-inline: var(--sp-10);
  }
}

/* Wordmark */
.nav-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  flex-shrink: 0;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.nav-wordmark:hover {
  opacity: 0.7;
}

.wordmark-first {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.wordmark-last {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

/* Nav links */
.nav-links {
  display: none;
  gap: var(--sp-6);
  margin-right: auto;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--duration-fast) var(--ease-out);
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 100%;
  height: 1.5px;
  background: var(--color-accent);
  transition: right var(--duration-base) var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text);
}

.nav-link:hover::after,
.nav-link.active::after {
  right: 0;
}

/* Mode toggle */
.mode-toggle {
  display: none;
  border: none;
  padding: 0;
  background: var(--color-surface);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
}

@media (min-width: 900px) {
  .mode-toggle {
    display: flex;
    align-items: center;
  }
}

.mode-option {
  display: flex;
  cursor: pointer;
}

.mode-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.mode-label {
  display: inline-block;
  padding: var(--sp-1) var(--sp-3);
  font-size: var(--text-xs);
  font-weight: 500;
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  border-radius: var(--radius-pill);
  transition:
    background var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
}

.mode-radio:checked + .mode-label {
  background: var(--color-bg);
  color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.mode-radio:focus-visible + .mode-label {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Mobile hamburger */
.nav-mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-2);
  border-radius: var(--radius-sm);
  transition: background var(--duration-fast) var(--ease-out);
}

.nav-mobile-toggle:hover {
  background: var(--color-surface);
}

@media (min-width: 768px) {
  .nav-mobile-toggle {
    display: none;
  }
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--duration-base) var(--ease-out), opacity var(--duration-base) var(--ease-out);
}

.nav-mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}
.nav-mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: var(--sp-6);
  display: none;
  flex-direction: column;
  gap: var(--sp-6);
  z-index: 99;
}

.mobile-menu[aria-hidden="false"] {
  display: flex;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.mobile-nav-links .nav-link {
  font-size: var(--text-base);
}

.mode-toggle--mobile {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  border: none;
  background: none;
  padding: 0;
}

.mode-toggle-legend {
  width: 100%;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}

.mode-toggle--mobile .mode-label {
  background: var(--color-surface);
  border-radius: var(--radius-pill);
  padding: var(--sp-2) var(--sp-4);
}

.mode-toggle--mobile .mode-radio:checked + .mode-label {
  background: var(--color-accent);
  color: #fff;
  box-shadow: none;
}

/* ===== HERO ===== */
.hero {
  padding-top: calc(var(--nav-height) + var(--sp-24));
  padding-bottom: var(--sp-32);
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 820px;
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-8);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4CAF50;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .badge-dot {
    animation: pulse 2.5s ease-in-out infinite;
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero-name {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: var(--sp-5);
  display: flex;
  flex-direction: column;
}

.hero-name-line {
  display: block;
}

.hero-title {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--sp-6);
}

.hero-tagline {
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 580px;
  margin-bottom: var(--sp-10);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-6);
  cursor: pointer;
  transition:
    background var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
  text-decoration: none;
  border: none;
  white-space: nowrap;
}

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

@media (prefers-reduced-motion: no-preference) {
  .btn--primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
  }

  .btn--primary:hover .btn-arrow {
    transform: translateX(3px);
  }
}

.btn-arrow {
  display: inline-block;
  transition: transform var(--duration-fast) var(--ease-out);
}

.btn--secondary {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.btn--secondary:hover {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-surface-2);
}

.btn--full {
  width: 100%;
  justify-content: center;
}

.btn--showcase {
  background: rgba(240, 235, 228, 0.12);
  color: var(--color-showcase-text);
  border: 1px solid var(--color-showcase-border);
}

.btn--showcase:hover {
  background: rgba(240, 235, 228, 0.2);
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 280px;
    gap: var(--sp-16);
    align-items: start;
  }
}

.about-bio p {
  margin-bottom: var(--sp-5);
  color: var(--color-text);
}

.about-lead {
  font-size: var(--text-lg);
  line-height: 1.6;
  font-weight: 400;
}

.about-human {
  color: var(--color-text-muted) !important;
  font-style: italic;
}

.about-status {
  margin-top: var(--sp-6) !important;
  padding: var(--sp-4) var(--sp-5);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-accent);
}

.about-bio a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Skills sidebar */
.about-skills {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.skills-block {
  padding: var(--sp-5);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
}

.skills-heading {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--sp-4);
}

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

.skills-list li {
  font-size: var(--text-sm);
  color: var(--color-text);
  padding-left: var(--sp-3);
  position: relative;
}

.skills-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 0.7em;
  top: 0.2em;
}

/* ===== WORK ===== */
.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
}

@media (min-width: 768px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Case cards */
.case-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

@media (prefers-reduced-motion: no-preference) {
  .case-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
  }
}

.case-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--color-surface-2);
}

.case-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

@media (prefers-reduced-motion: no-preference) {
  .case-card:hover .case-card-image img {
    transform: scale(1.03);
  }
}

/* Placeholder for UW card — Phase 4 will have real images */
.case-card-image--uw {
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-placeholder-uw {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 300;
  color: var(--color-border);
  letter-spacing: -0.02em;
}

.case-card-content {
  padding: var(--sp-6);
}

.case-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.case-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  background: var(--color-surface-2);
  padding: 2px var(--sp-3);
  border-radius: var(--radius-pill);
}

.case-year {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-left: auto;
}

.case-card-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-4);
  color: var(--color-text);
}

.case-card-hook {
  font-style: italic;
  color: var(--color-text-muted);
  margin-bottom: var(--sp-3);
}

.case-card-body {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--sp-3);
}

.case-card-outcome {
  font-size: var(--text-sm);
  color: var(--color-text);
  margin-bottom: var(--sp-5);
  padding: var(--sp-3) var(--sp-4);
  background: var(--color-accent-softer);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--color-accent);
}

.case-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-accent);
  transition: gap var(--duration-fast) var(--ease-out);
}

.case-card-link:hover {
  gap: var(--sp-3);
}

/* Designer take annotations */
.designer-take-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-accent);
  background: var(--color-accent-soft);
  padding: 2px var(--sp-2);
  border-radius: var(--radius-sm);
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-2);
}

.designer-take-text {
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--color-text-muted);
  padding-left: var(--sp-4);
  border-left: 2px solid var(--color-accent-soft);
  margin-bottom: var(--sp-4);
}

/* ===== SHOWCASE ===== */
.showcase {
  padding: 0;
}

.showcase-inner {
  background: var(--color-showcase-bg);
  padding-block: var(--sp-32);
  position: relative;
  overflow: hidden;
}

.showcase-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
  pointer-events: none;
}

.showcase-content {
  position: relative;
  z-index: 1;
  max-width: var(--reading-width);
}

.showcase-description {
  font-size: var(--text-lg);
  color: var(--color-showcase-muted);
  line-height: 1.7;
  margin-bottom: var(--sp-5);
}

.showcase-description:first-of-type {
  color: var(--color-showcase-text);
  font-size: var(--text-xl);
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
}

/* ===== PROCESS ===== */
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-10);
  max-width: var(--reading-width);
}

@media (min-width: 768px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

.process-step {
  position: relative;
  padding-top: var(--sp-8);
  border-top: 1px solid var(--color-border);
}

.process-num {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-accent);
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-3);
}

.process-step-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-3);
}

.process-step p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--sp-3);
}

/* ===== CONTACT ===== */
.contact {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-light);
}

.contact-inner {
  max-width: 600px;
  margin-inline: auto;
  text-align: center;
}

.contact-heading {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-6);
}

.contact-body {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--sp-10);
  line-height: 1.6;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
}

@media (min-width: 480px) {
  .contact-links {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

.contact-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 2px;
  transition: color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}

.contact-link:hover {
  color: var(--color-text);
  border-color: var(--color-text);
}

.contact-link--primary {
  color: var(--color-accent);
  border-color: var(--color-accent);
  font-size: var(--text-base);
}

.contact-link--primary:hover {
  color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

/* ===== FOOTER ===== */
.site-footer {
  padding-block: var(--sp-8);
  border-top: 1px solid var(--color-border-light);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.footer-copy,
.footer-made {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer-made a {
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1px;
}

.footer-made a:hover {
  color: var(--color-text);
}

/* ===== SCROLL REVEAL ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition:
      opacity var(--duration-slow) var(--ease-out),
      transform var(--duration-slow) var(--ease-out);
  }

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

  .reveal:nth-child(2) { transition-delay: 80ms; }
  .reveal:nth-child(3) { transition-delay: 160ms; }
  .reveal:nth-child(4) { transition-delay: 240ms; }
}

/* ===== HERO LOAD ANIMATION ===== */
@media (prefers-reduced-motion: no-preference) {
  .availability-badge {
    animation: heroFadeUp 500ms var(--ease-out) both;
    animation-delay: 100ms;
  }

  .hero-name {
    animation: heroFadeUp 600ms var(--ease-out) both;
    animation-delay: 200ms;
  }

  .hero-title {
    animation: heroFadeUp 500ms var(--ease-out) both;
    animation-delay: 350ms;
  }

  .hero-tagline {
    animation: heroFadeUp 500ms var(--ease-out) both;
    animation-delay: 450ms;
  }

  .hero-ctas {
    animation: heroFadeUp 500ms var(--ease-out) both;
    animation-delay: 550ms;
  }

  @keyframes heroFadeUp {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ===== DESIGNER MODE VOICE STYLES ===== */
.designer-voice {
  /* subtle warm tint to signal different register */
}

/* ===== OPEN DECISIONS ===== */
/* OPEN: accent color set to terracotta — revisit if too earthy after seeing real images */
/* OPEN: showcase canvas animation is placeholder — Phase 5 will implement generative WebGL */
/* OPEN: case study images need real WebP assets */
/* OPEN: /now page not yet built — Phase 6 */
