/* ==========================================================================
   JOE MCGHEE — PERSONAL SITE
   Design tokens, reset, and shared component styles.
   Section-specific styles live below, grouped and commented by section.
   ========================================================================== */

:root {
  /* ---- Navy scale (site foundation) ---- */
  --navy-deep: #05070c;
  --navy: #0a0f1c;
  --navy-2: #121a2e;
  --navy-3: #1c2740;
  --navy-4: #283454;

  /* ---- Ivory / text ---- */
  --ivory: #f6f3ea;
  --ivory-dim: #a7aec2;
  --ivory-faint: #6e7690;

  /* ---- Gold accent (ties to Whitmore Studio brand) ---- */
  --gold: #c9a25c;
  --gold-bright: #e9c97e;
  --gold-dim: #8a6f3d;

  /* ---- Crestline blue (secondary accent, used in Crestline contexts) ----
     Sampled from the live crestlinetalentpartners.com site (#0B5EA8 / #10283A)
     so Joe's site and Crestline's own site read as clearly related. ---- */
  --blue: #0b5ea8;
  --blue-bright: #4a97d9;
  --blue-dim: #10283a;

  /* ---- Borders / lines ---- */
  --line: rgba(246, 243, 234, 0.1);
  --line-strong: rgba(246, 243, 234, 0.2);

  /* ---- Fonts ---- */
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* ---- Type scale ---- */
  --fs-display: clamp(2.4rem, 3.6vw + 1rem, 4.75rem);
  --fs-h1: clamp(2.1rem, 3.2vw + 1rem, 3.75rem);
  --fs-h2: clamp(1.7rem, 2vw + 1rem, 2.6rem);
  --fs-h3: clamp(1.25rem, 1vw + 0.9rem, 1.6rem);
  --fs-lg: clamp(1.05rem, 0.4vw + 0.95rem, 1.25rem);
  --fs-body: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.75rem;

  /* ---- Spacing scale ---- */
  --space-3xs: 0.375rem;
  --space-2xs: 0.625rem;
  --space-xs: 1rem;
  --space-sm: 1.5rem;
  --space-md: 2.25rem;
  --space-lg: 3.5rem;
  --space-xl: 5.5rem;
  --space-2xl: 8rem;
  --space-3xl: 11rem;

  /* ---- Radius ---- */
  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 999px;

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 0.22s;
  --dur-med: 0.45s;
  --dur-slow: 0.85s;

  /* ---- Layout ---- */
  --container-max: 1320px;
  --gutter: clamp(1.5rem, 4vw, 3.5rem);

  /* ---- Z-index scale ---- */
  --z-bg: 0;
  --z-content: 10;
  --z-nav: 200;
  --z-overlay: 400;
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
  background: var(--navy-deep);
  scroll-behavior: auto; /* Lenis handles smooth scroll; avoid double-smoothing */
}

body {
  font-family: var(--sans);
  background: var(--navy-deep);
  color: var(--ivory);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
}

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

img {
  height: auto;
}

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

a,
button {
  cursor: pointer;
}

button {
  font: inherit;
  background: none;
  border: none;
  color: inherit;
}

ul {
  list-style: none;
}

::selection {
  background: var(--gold);
  color: var(--navy-deep);
}

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

p {
  line-height: 1.7;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--gutter);
  background: var(--gold);
  color: var(--navy-deep);
  padding: 0.85rem 1.4rem;
  font-weight: 600;
  font-size: var(--fs-sm);
  z-index: 999;
  border-radius: var(--radius-sm);
  transition: top var(--dur-fast) var(--ease-out);
}

.skip-link:focus {
  top: var(--space-sm);
}

/* ==========================================================================
   Layout utilities
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--space-2xl);
}

.section-tight {
  padding-block: var(--space-xl);
}

@media (max-width: 720px) {
  .section {
    padding-block: var(--space-xl);
  }
  .section-tight {
    padding-block: var(--space-lg);
  }
}

.section-head {
  max-width: 46rem;
  margin-bottom: var(--space-lg);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: var(--space-sm);
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.eyebrow--blue {
  color: var(--blue-bright);
}
.eyebrow--blue::before {
  background: var(--blue);
}

.section-head h2 {
  font-size: var(--fs-h2);
  color: var(--ivory);
  margin-bottom: var(--space-xs);
}

.section-head p {
  color: var(--ivory-dim);
  font-size: var(--fs-lg);
  max-width: 42ch;
}

/* ==========================================================================
   Buttons & links
   ========================================================================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 1rem 1.9rem;
  border-radius: var(--radius-full);
  transition: transform var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--dur-fast) var(--ease-out);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
  border: 1px solid var(--gold);
}

.btn-primary:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--line-strong);
  color: var(--ivory);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.75rem 1.4rem;
  font-size: var(--fs-xs);
}

.link-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

.link-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-med) var(--ease-out);
}

.link-underline:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ==========================================================================
   Placeholder / editable content callouts
   These are visible in-browser so Joe can spot exactly what to personalize.
   Remove the .editable-note wrapper once real content is filled in.
   ========================================================================== */

.editable-note {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  border: 1px dashed var(--gold-dim);
  background: rgba(201, 162, 92, 0.06);
  padding: 0.15em 0.6em;
  border-radius: var(--radius-sm);
  font-style: italic;
  color: var(--gold-bright);
}

.editable-note::before {
  content: 'EDIT';
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.62em;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--navy-deep);
  background: var(--gold);
  padding: 0.2em 0.45em;
  border-radius: 3px;
  flex-shrink: 0;
}

@media print {
  .editable-note::before {
    display: none;
  }
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: var(--space-sm) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(5, 7, 12, 0.55) 0%, rgba(5, 7, 12, 0) 100%);
  transition: background var(--dur-med) var(--ease-out), padding var(--dur-med) var(--ease-out),
    border-color var(--dur-med) var(--ease-out);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(8, 11, 20, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding-block: var(--space-2xs);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  z-index: 2;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.main-nav ul {
  display: flex;
  gap: var(--space-md);
}

.main-nav a {
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ivory-dim);
  transition: color var(--dur-fast) var(--ease-out);
  position: relative;
  padding-bottom: 4px;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold-bright);
  transition: width var(--dur-med) var(--ease-out);
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--ivory);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  width: 100%;
}

.nav-cta {
  display: none;
}

@media (min-width: 900px) {
  .nav-cta {
    display: inline-flex;
  }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  z-index: 2;
}

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

@media (max-width: 899px) {
  .main-nav {
    display: none;
  }
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--ivory);
  transition: transform var(--dur-med) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}

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

/* ---- Full-screen mobile menu ---- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: var(--navy-deep);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-2xl) var(--gutter);
  clip-path: circle(0% at calc(100% - 2.5rem) 2.5rem);
  transition: clip-path var(--dur-slow) var(--ease-in-out);
  pointer-events: none;
}

.mobile-menu.is-open {
  clip-path: circle(150% at calc(100% - 2.5rem) 2.5rem);
  pointer-events: auto;
}

.mobile-menu-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mobile-menu-list li {
  overflow: hidden;
}

.mobile-menu-list a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 8vw, 3.4rem);
  color: var(--ivory);
  padding: 0.3rem 0;
  transform: translateY(110%);
  transition: color var(--dur-fast) var(--ease-out);
}

.mobile-menu.is-open .mobile-menu-list a {
  animation: menuItemIn 0.7s var(--ease-out) forwards;
}

.mobile-menu-list a:hover {
  color: var(--gold-bright);
}

.mobile-menu-list .menu-index {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  color: var(--gold-dim);
}

@keyframes menuItemIn {
  to {
    transform: translateY(0);
  }
}

.mobile-menu-foot {
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.mobile-menu-brands {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  opacity: 0.7;
}

.mobile-menu-brand-plate {
  display: inline-flex;
  align-items: center;
  background: var(--ivory);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.7rem;
}

.mobile-menu-brands img {
  height: 18px;
  width: auto;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu,
  .mobile-menu-list a {
    transition: none !important;
    animation: none !important;
  }
  .mobile-menu.is-open .mobile-menu-list a {
    transform: none;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 5.5rem;
  padding-bottom: 2rem;
  overflow: hidden;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  z-index: var(--z-bg);
  background: radial-gradient(ellipse 90% 60% at 50% 0%, var(--navy-2) 0%, var(--navy-deep) 65%);
}

.hero-3d-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
}

.hero-3d-canvas.is-ready {
  opacity: 1;
}

@media (max-width: 980px) {
  /* The crest is composed to sit beside the desktop portrait layout; on
     stacked mobile layouts it has no clean spot and costs WebGL perf for
     little benefit, so it's skipped in JS too (see hero-3d.js). */
  .hero-3d-canvas {
    display: none;
  }
}

.hero-inner {
  position: relative;
  z-index: var(--z-content);
  display: grid;
  grid-template-columns: 1.4fr 0.85fr;
  gap: var(--space-lg);
  align-items: center;
  width: 100%;
  max-height: calc(100dvh - 8rem);
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
  }
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold);
}

@media (max-width: 980px) {
  .hero-eyebrow {
    justify-content: center;
  }
}

.hero-title {
  font-size: var(--fs-display);
  color: var(--ivory);
  overflow: hidden;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.hero-title .line span {
  display: inline-block;
  transform: translateY(115%);
}

.hero-title em {
  font-style: italic;
  color: var(--gold-bright);
}

.hero-sub {
  margin-top: var(--space-sm);
  font-size: var(--fs-lg);
  color: var(--ivory-dim);
  max-width: 46ch;
}

@media (max-width: 980px) {
  .hero-sub {
    margin-inline: auto;
  }
}

.hero-actions {
  margin-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 980px) {
  .hero-actions {
    justify-content: center;
  }
}

.hero-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  height: min(58vh, 560px);
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

@media (max-width: 980px) {
  .hero-portrait {
    order: -1;
    height: auto;
    width: 100%;
    max-width: 240px;
    margin-inline: auto;
  }
}

.hero-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 7, 12, 0) 55%, rgba(5, 7, 12, 0.55) 100%);
}

.hero-portrait-frame {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(233, 201, 126, 0.35);
  border-radius: calc(var(--radius-lg) - 8px);
  pointer-events: none;
  z-index: 2;
}

.scroll-cue {
  display: none;
}

@media (min-width: 981px) {
  .scroll-cue {
    display: flex;
  }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: var(--space-lg);
  transform: translateX(-50%);
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  z-index: var(--z-content);
  color: var(--ivory-faint);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.scroll-cue .wheel {
  width: 22px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-full);
  position: relative;
}

.scroll-cue .wheel::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 6px;
  background: var(--gold-bright);
  border-radius: var(--radius-full);
  transform: translateX(-50%);
  animation: scrollCue 1.8s var(--ease-in-out) infinite;
}

@keyframes scrollCue {
  0% { opacity: 1; transform: translate(-50%, 0); }
  70% { opacity: 0; transform: translate(-50%, 14px); }
  100% { opacity: 0; transform: translate(-50%, 14px); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue .wheel::before {
    animation: none;
    opacity: 1;
  }
}

/* ==========================================================================
   Reveal utilities (driven by GSAP/ScrollTrigger in js/main.js)
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
}

.reveal-ready [data-reveal] {
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   Intro (personal introduction)
   ========================================================================== */

.intro {
  border-top: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  gap: var(--space-xl);
}

@media (max-width: 900px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

.intro-lede {
  font-family: var(--serif);
  font-size: var(--fs-h2);
  line-height: 1.35;
  color: var(--ivory);
}

.intro-lede em {
  font-style: italic;
  color: var(--gold-bright);
}

.intro-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  color: var(--ivory-dim);
  font-size: var(--fs-lg);
  align-self: center;
}

.intro-copy strong {
  color: var(--ivory);
  font-weight: 600;
}

/* ==========================================================================
   Ventures
   ========================================================================== */

.ventures {
  border-top: 1px solid var(--line);
}

.venture-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5px;
  background: var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}

@media (max-width: 900px) {
  .venture-panels {
    grid-template-columns: 1fr;
  }
}

.venture-panel {
  position: relative;
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  min-height: 560px;
  overflow: hidden;
  transition: background var(--dur-med) var(--ease-out);
}

.venture-panel--crestline {
  background: radial-gradient(ellipse 120% 80% at 20% 0%, var(--blue-dim) 0%, var(--navy) 55%);
}

.venture-panel--whitmore {
  background: radial-gradient(ellipse 120% 80% at 80% 0%, #2a2210 0%, var(--navy) 55%);
}

.venture-logo-plate {
  display: inline-flex;
  align-items: center;
  background: var(--ivory);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  margin-bottom: var(--space-md);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
}

.venture-logo {
  height: 48px;
  width: auto;
}

@media (max-width: 640px) {
  .venture-logo {
    height: 40px;
  }
}

.venture-kicker {
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}

.venture-panel--crestline .venture-kicker {
  color: var(--blue-bright);
}
.venture-panel--whitmore .venture-kicker {
  color: var(--gold-bright);
}

.venture-panel h3 {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-xs);
  color: var(--ivory);
}

.venture-desc {
  color: var(--ivory-dim);
  margin-bottom: var(--space-md);
  max-width: 40ch;
}

.venture-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-lg);
}

.venture-meta dt {
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory-faint);
  margin-bottom: 0.3rem;
}

.venture-meta dd {
  font-size: var(--fs-sm);
  color: var(--ivory);
  line-height: 1.5;
}

.venture-role {
  font-size: var(--fs-sm);
  color: var(--ivory-dim);
  border-top: 1px solid var(--line);
  padding-top: var(--space-sm);
  margin-top: auto;
  margin-bottom: var(--space-md);
}

.venture-role strong {
  color: var(--ivory);
}

.venture-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.venture-panel--crestline .btn-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--ivory);
}
.venture-panel--crestline .btn-primary:hover {
  background: var(--blue-bright);
  border-color: var(--blue-bright);
  color: var(--navy-deep);
}
.venture-panel--crestline .btn-outline:hover {
  border-color: var(--blue-bright);
  color: var(--blue-bright);
}

/* ==========================================================================
   Selected Work
   ========================================================================== */

.work {
  border-top: 1px solid var(--line);
}

.work-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.work-item {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-xl);
  align-items: center;
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--line);
}

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

.work-item.is-reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.work-item.is-reverse .work-visual {
  order: 2;
}

@media (max-width: 980px) {
  .work-item,
  .work-item.is-reverse {
    grid-template-columns: 1fr;
  }
  .work-item.is-reverse .work-visual {
    order: 0;
  }
}

.work-visual {
  position: relative;
  perspective: 1400px;
}

.browser-mock {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--navy-3);
  border: 1px solid var(--line-strong);
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.65);
  transform: rotateY(-6deg) rotateX(2deg);
  transition: transform var(--dur-slow) var(--ease-out);
  will-change: transform;
}

.work-item:hover .browser-mock {
  transform: rotateY(0deg) rotateX(0deg);
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  background: var(--navy-2);
  border-bottom: 1px solid var(--line);
}

.browser-chrome .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}

.browser-chrome .url {
  margin-left: 0.6rem;
  font-size: var(--fs-xs);
  color: var(--ivory-faint);
  background: var(--navy);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.9rem;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-viewport {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  container-type: inline-size;
}

.browser-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.8s var(--ease-out);
}

.work-item:hover .browser-viewport img {
  transform: scale(1.03);
}

/* ---- Site preview mockups (built from each site's real copy/colors —
   not raster screenshots, so they stay crisp at any size and never go
   stale relative to what's actually live). Sized with container query
   units so they scale perfectly with the browser-mock frame. ---- */

.site-preview {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7cqw 8cqw;
  transition: transform 0.8s var(--ease-out);
}

.work-item:hover .site-preview {
  transform: scale(1.025);
}

.site-preview .sp-eyebrow {
  font-family: var(--sans);
  font-size: 1.9cqw;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.6cqw;
}

.site-preview .sp-headline {
  font-family: var(--serif);
  font-size: 5.4cqw;
  line-height: 1.15;
  margin-bottom: 1.8cqw;
  max-width: 22ch;
}

.site-preview .sp-sub {
  font-size: 2.1cqw;
  line-height: 1.5;
  max-width: 34ch;
  margin-bottom: 2.4cqw;
}

.site-preview .sp-btn {
  display: inline-flex;
  align-self: flex-start;
  font-size: 1.9cqw;
  font-weight: 700;
  padding: 1.4cqw 2.4cqw;
  border-radius: 0.6cqw;
}

.site-preview .sp-logo-row {
  display: flex;
  align-items: center;
  gap: 1cqw;
  margin-bottom: 3cqw;
}

.site-preview .sp-logo-row img {
  height: 3.4cqw;
  width: auto;
}

.site-preview--crestline {
  background: radial-gradient(ellipse 120% 100% at 10% 0%, #16324a 0%, #10283a 60%);
  color: #eef2f5;
}
.site-preview--crestline .sp-eyebrow { color: #8fb7dd; }
.site-preview--crestline .sp-sub { color: #b7c4cf; }
.site-preview--crestline .sp-btn { background: var(--blue); color: #fff; }

.site-preview--whitmore {
  background: radial-gradient(ellipse 120% 100% at 90% 0%, #16233f 0%, #080d18 60%);
  color: #f7f2e7;
}
.site-preview--whitmore .sp-eyebrow { color: var(--gold-bright); }
.site-preview--whitmore .sp-headline { font-style: italic; }
.site-preview--whitmore .sp-sub { color: #b9bfd1; }
.site-preview--whitmore .sp-btn { background: var(--gold); color: #14213d; }

.site-preview--personal {
  background: radial-gradient(ellipse 90% 70% at 50% 0%, var(--navy-2) 0%, var(--navy-deep) 65%);
  color: var(--ivory);
}
.site-preview--personal .sp-eyebrow { color: var(--gold-bright); }
.site-preview--personal .sp-headline em { font-style: italic; color: var(--gold-bright); }
.site-preview--personal .sp-sub { color: var(--ivory-dim); }
.site-preview--personal .sp-btn { background: var(--gold); color: var(--navy-deep); }

@media (prefers-reduced-motion: reduce) {
  .work-item:hover .site-preview,
  .work-item:hover .browser-viewport img {
    transform: none;
  }
}

.work-body .venture-kicker {
  color: var(--gold-bright);
}

.work-item[data-brand='crestline'] .venture-kicker {
  color: var(--blue-bright);
}

.work-body h3 {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-xs);
}

.work-role {
  font-size: var(--fs-sm);
  color: var(--gold-bright);
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

.work-item[data-brand='crestline'] .work-role {
  color: var(--blue-bright);
}

.work-body p {
  color: var(--ivory-dim);
  margin-bottom: var(--space-sm);
}

.work-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-md);
}

.work-features li {
  font-size: var(--fs-xs);
  color: var(--ivory-dim);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.85rem;
}

.work-links {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  flex-wrap: wrap;
}

.work-links .link-underline {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--gold-bright);
}

.work-item[data-brand='crestline'] .work-links .link-underline {
  color: var(--blue-bright);
}

.work-note {
  font-size: var(--fs-sm);
  color: var(--ivory-faint);
  font-style: italic;
}

.work-self-statement {
  margin-top: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(201, 162, 92, 0.06), transparent 60%);
  color: var(--ivory-dim);
  font-family: var(--serif);
  font-size: var(--fs-h3);
  font-style: italic;
  line-height: 1.5;
}

.work-self-statement span {
  color: var(--gold-bright);
}

/* ==========================================================================
   Skills (bento grid, no fake percentages)
   ========================================================================== */

.skills {
  border-top: 1px solid var(--line);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

@media (max-width: 980px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

.skill-card {
  background: var(--navy);
  padding: var(--space-md) var(--space-sm);
  transition: background var(--dur-med) var(--ease-out);
}

.skill-card:hover {
  background: var(--navy-2);
}

.skill-card .num {
  font-family: var(--serif);
  font-size: var(--fs-sm);
  color: var(--gold-dim);
  margin-bottom: var(--space-sm);
}

.skill-card h4 {
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--ivory);
  margin-bottom: 0.5rem;
}

.skill-card p {
  font-size: var(--fs-sm);
  color: var(--ivory-dim);
}

/* ---- Grouped skills layout (Business / Talent / Creative) ---- */

.skill-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

@media (max-width: 900px) {
  .skill-groups {
    grid-template-columns: 1fr;
  }
}

.skill-group {
  background: var(--navy);
  padding: var(--space-lg) var(--space-md);
}

.skill-group-head {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--line);
}

.skill-group-head .num {
  font-family: var(--serif);
  font-size: var(--fs-sm);
  color: var(--gold-dim);
}

.skill-group-head h3 {
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ivory);
}

.skill-group-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.skill-group-list li {
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--line);
}

.skill-group-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.skill-group-list h4 {
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--ivory);
  margin-bottom: 0.3rem;
}

.skill-group-list p {
  font-size: var(--fs-sm);
  color: var(--ivory-dim);
}

/* ==========================================================================
   Stats strip (truthful, verified figures only)
   ========================================================================== */

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-block {
  text-align: center;
  padding: var(--space-lg) var(--space-sm);
  border-left: 1px solid var(--line);
}

.stat-block:first-child {
  border-left: none;
}

@media (max-width: 640px) {
  .stats-strip {
    grid-template-columns: 1fr;
  }
  .stat-block {
    border-left: none;
    border-top: 1px solid var(--line);
    padding-block: var(--space-md);
  }
  .stat-block:first-child {
    border-top: none;
  }
}

.stat-block .stat-num {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--gold-bright);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-block .stat-label {
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

/* ==========================================================================
   Approach (process sequence)
   ========================================================================== */

.approach {
  border-top: 1px solid var(--line);
}

.approach-steps {
  display: flex;
  flex-direction: column;
}

.approach-step {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: var(--space-md);
  padding-block: var(--space-md);
  border-top: 1px solid var(--line);
  position: relative;
}

.approach-step:last-child {
  border-bottom: 1px solid var(--line);
}

.approach-step .step-num {
  font-family: var(--serif);
  font-size: var(--fs-h3);
  color: var(--gold-dim);
  transition: color var(--dur-med) var(--ease-out);
}

.approach-step:hover .step-num {
  color: var(--gold-bright);
}

.approach-step-body h3 {
  font-size: var(--fs-h3);
  color: var(--ivory);
  margin-bottom: 0.4rem;
  font-family: var(--sans);
  font-weight: 600;
}

.approach-step-body p {
  color: var(--ivory-dim);
  max-width: 56ch;
}

@media (max-width: 640px) {
  .approach-step {
    grid-template-columns: 3rem 1fr;
  }
}

/* ==========================================================================
   About
   ========================================================================== */

.about {
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--space-xl);
  align-items: start;
}

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

.about-portrait {
  position: sticky;
  top: 7rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
}

@media (max-width: 900px) {
  .about-portrait {
    position: static;
    max-width: 320px;
    margin-inline: auto;
  }
}

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(0.25) contrast(1.05);
}

.about-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  font-size: var(--fs-lg);
  color: var(--ivory-dim);
}

.about-copy p strong {
  color: var(--ivory);
  font-weight: 600;
}

.about-facts {
  margin-top: var(--space-sm);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid var(--line);
}

.about-facts dt {
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory-faint);
  margin-bottom: 0.3rem;
}

.about-facts dd {
  font-size: var(--fs-body);
  color: var(--ivory);
}

/* ==========================================================================
   Current Focus (status panel)
   ========================================================================== */

.focus {
  border-top: 1px solid var(--line);
}

.focus-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  background: linear-gradient(160deg, var(--navy-2) 0%, var(--navy) 100%);
}

.focus-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: var(--space-md);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory-faint);
}

.focus-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6ee7a0;
  box-shadow: 0 0 0 0 rgba(110, 231, 160, 0.6);
  animation: focusPulse 2.4s ease-out infinite;
}

@keyframes focusPulse {
  0% { box-shadow: 0 0 0 0 rgba(110, 231, 160, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(110, 231, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(110, 231, 160, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .focus-dot {
    animation: none;
  }
}

.focus-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md) var(--space-lg);
}

@media (max-width: 640px) {
  .focus-list {
    grid-template-columns: 1fr;
  }
}

.focus-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--line);
}

.focus-item .label {
  color: var(--ivory);
  font-weight: 500;
}

.focus-item .tag {
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-bright);
  white-space: nowrap;
}

.focus-item[data-brand='crestline'] .tag {
  color: var(--blue-bright);
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.contact-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(201, 162, 92, 0.14) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.contact-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 46rem;
  margin-inline: auto;
}

.contact h2 {
  font-size: var(--fs-display);
  color: var(--ivory);
  margin-bottom: var(--space-md);
}

.contact h2 em {
  font-style: italic;
  color: var(--gold-bright);
}

.contact-sub {
  font-size: var(--fs-lg);
  color: var(--ivory-dim);
  margin-bottom: var(--space-lg);
  max-width: 42ch;
  margin-inline: auto;
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.contact-channels {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--line);
}

.contact-channel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.contact-channel .k {
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory-faint);
}

.contact-channel a {
  font-size: var(--fs-body);
  color: var(--ivory);
  font-weight: 500;
}

.contact-channel a:hover {
  color: var(--gold-bright);
}

/* ---- Contact form ---- */

.contact-form {
  margin-top: var(--space-xl);
  text-align: left;
  max-width: 34rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-row label {
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ivory-faint);
}

.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--sans);
  font-size: var(--fs-body);
  color: var(--ivory);
  background: var(--navy-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  transition: border-color var(--dur-fast) var(--ease-out);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--gold);
}

.form-row textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  font-size: var(--fs-xs);
  color: #e8817a;
  min-height: 1em;
}

.form-status {
  font-size: var(--fs-sm);
  min-height: 1.2em;
}

.form-status.is-success {
  color: #6ee7a0;
}

.form-status.is-error {
  color: #e8817a;
}

.contact-form .btn {
  align-self: flex-start;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: var(--space-lg);
}

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

.footer-mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif);
  font-size: var(--fs-sm);
  letter-spacing: 0.03em;
  color: var(--ivory-dim);
}

.footer-mark svg {
  width: 22px;
  height: 22px;
}

.footer-links {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-links a {
  font-size: var(--fs-sm);
  color: var(--ivory-faint);
}

.footer-links a:hover {
  color: var(--gold-bright);
}

.footer-meta {
  font-size: var(--fs-xs);
  color: var(--ivory-faint);
  text-align: right;
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-meta {
    text-align: center;
  }
}

/* ==========================================================================
   Page loader (brief, elegant — never blocks the headline for long)
   ========================================================================== */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s var(--ease-out);
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-mark {
  width: 46px;
  height: 46px;
  opacity: 0.9;
}

.loader-mark path {
  stroke-dasharray: 140;
  stroke-dashoffset: 140;
  animation: loaderDraw 1.1s var(--ease-in-out) forwards infinite alternate;
}

@keyframes loaderDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader {
    display: none;
  }
}

/* ==========================================================================
   Misc utilities
   ========================================================================== */

.text-gold { color: var(--gold-bright); }
.text-blue { color: var(--blue-bright); }
.text-dim { color: var(--ivory-dim); }

.tag-chip {
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  color: var(--ivory-dim);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.8rem;
}

.divider {
  height: 1px;
  background: var(--line);
  width: 100%;
}

/* Reduce motion globally as a final safety net for anything not covered above */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
