/* ============================================================
   J Mills Design — Global Stylesheet
   ============================================================ */

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

:root {
  --bg:     #0a0a09;
  --bg2:    #111110;
  --bg3:    #1a1a18;
  --bg4:    #222220;
  --fg:     #f0ede8;
  --fg2:    #9e9b95;
  --fg3:    #8e8d8a;
  --fg4:    #3a3836;
  --accent: #7ecba4;
  --accent2:#4a9e78;
  --serif:  'DM Serif Display', Georgia, serif;
  --sans:   'DM Sans', system-ui, sans-serif;
  --max:    1280px;
  --ease:   cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Shared Utilities ── */
.bot-margin { margin-bottom: 1em; }
.container {
  max-width: var(--max);
  margin: 0 auto;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 56px;
}

.section-tag {
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-line {
  height: .5px;
  width: 40px;
  background: var(--accent);
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--fg);
  color: var(--bg);
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: .01em;
  transition: transform .25s var(--ease), opacity .2s;
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  opacity: .9;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--fg2);
  text-decoration: none;
  letter-spacing: .01em;
  transition: color .2s;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--sans);
}

.btn-ghost:hover {
  color: var(--fg);
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

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

.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }

/* ── Page Routing ── */
.page {
  display: none;
  min-height: 100vh;
  padding-top: 80px;
}

.page.active {
  display: block;
}

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 28px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding .35s var(--ease), background .35s var(--ease), backdrop-filter .35s var(--ease);
}

nav.condensed {
  padding: 16px 48px;
  background: rgba(10, 10, 9, .88);
  backdrop-filter: blur(14px);
  border-bottom: .5px solid rgba(240, 237, 232, .06);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: -.01em;
  color: var(--fg);
  text-decoration: none;
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--fg2);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  letter-spacing: .02em;
  transition: color .2s;
  cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--fg);
}

.nav-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--bg);
  background: var(--fg);
  padding: 9px 20px;
  border-radius: 100px;
  text-decoration: none;
  letter-spacing: .01em;
  transition: opacity .2s, transform .2s;
  cursor: pointer;
}

.nav-cta:hover {
  opacity: .85;
  transform: translateY(-1px);
}

/* ── Hamburger button (mobile only) ── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: 8px;
  border-radius: 6px;
  transition: background .2s;
}

.nav-burger:hover {
  background: rgba(240, 237, 232, .06);
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s, width .3s var(--ease);
  transform-origin: center;
}

.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile drawer ── */
.nav-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 190;
  background: rgba(10, 10, 9, .97);
  backdrop-filter: blur(20px);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}

.nav-drawer.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.nav-drawer-link {
  font-family: var(--serif);
  font-size: clamp(2rem, 8vw, 3rem);
  color: var(--fg2);
  text-decoration: none;
  letter-spacing: -.01em;
  cursor: pointer;
  background: none;
  border: none;
  font-weight: 400;
  padding: 12px 0;
  transition: color .2s;
  display: block;
  text-align: center;
}

.nav-drawer-link:hover { color: var(--fg); }

.nav-drawer-divider {
  width: 40px;
  height: .5px;
  background: rgba(240, 237, 232, .12);
  margin: 16px 0;
}

.nav-drawer-cta {
  margin-top: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--bg);
  background: var(--fg);
  padding: 12px 32px;
  border-radius: 100px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: var(--sans);
  letter-spacing: .02em;
  transition: opacity .2s;
}

.nav-drawer-cta:hover { opacity: .85; }

/* ── Footer ── */
footer {
  padding: 48px;
  border-top: .5px solid rgba(240, 237, 232, .06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--fg);
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-size: 13px;
  color: var(--fg3);
  text-decoration: none;
  transition: color .2s;
  cursor: pointer;
}

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

.footer-copy {
  font-size: 13px;
  color: var(--fg3);
}

/* ============================================================
   HOMEPAGE
   ============================================================ */

/* Hero */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 48px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin-bottom: 28px;
}

.hero-headline em {
  font-style: italic;
  color: var(--fg2);
}

.hero-sub {
  font-size: 17px;
  color: var(--fg2);
  max-width: 420px;
  line-height: 1.7;
  margin-bottom: 48px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 520px;
}

.hero-card {
  border-radius: 16px;
  position: absolute;
}

.hero-card-main {
  width: 100%;
  height: 380px;
  background-color: rgba(15, 26, 20, 0.4);
  background-image:
    linear-gradient(rgba(240, 237, 232, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 237, 232, 0.02) 1px, transparent 1px);
  background-size: 36px 36px;
  border: .5px solid rgba(31, 31, 29, 0.6);
  top: 0;
  left: 0;
  padding: 24px;
  overflow: visible;
}

.hero-card-accent {
  width: 220px;
  height: 180px;
  background: var(--bg2);
  border: .5px solid rgba(240, 237, 232, .08);
  bottom: 0;
  right: -20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img-bg {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a2520 0%, #0f1a14 40%, #0a150e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.card-img-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 40%, rgba(126, 203, 164, .12) 0%, transparent 60%);
}

.hero-ui-preview {
  width: 85%;
  padding: 24px;
  background: rgba(10, 10, 9, .6);
  border-radius: 12px;
  border: .5px solid rgba(240, 237, 232, .08);
  backdrop-filter: blur(8px);
}

.ui-bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(240, 237, 232, .1);
  margin-bottom: 10px;
}

.ui-bar.accent { background: var(--accent); width: 60%; }
.ui-bar.w40    { width: 40%; }
.ui-bar.w80    { width: 80%; }
.ui-bar.w55    { width: 55%; }

.ui-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.ui-chip {
  height: 26px;
  border-radius: 6px;
  background: rgba(240, 237, 232, .07);
  flex: 1;
}

.ui-chip.hl {
  background: rgba(126, 203, 164, .2);
}

/* ===== Career network diagram ===== */
.career-eyebrow {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg3);
  margin: 0 0 24px 0;
}

.career-network-wrap {
  position: relative;
  width: 100%;
}

.career-beam {
  stroke-dasharray: 80 2000;
  stroke-dashoffset: 2080;
  animation: career-beam-flow 6s linear infinite;
}

@keyframes career-beam-flow {
  0%   { stroke-dashoffset: 2080; opacity: 0.2; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0.2; }
}

.career-node {
  opacity: 0;
  animation: career-node-in 600ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  cursor: pointer;
  outline: none;
}

@keyframes career-node-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.career-node:focus-visible .cn-ring {
  stroke-width: 2;
  opacity: 1;
}

.career-svg:hover .career-beam {
  animation-play-state: paused;
}

.cn-label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  fill: #8A8780;
  transition: fill 240ms ease;
}

.career-node.is-hovered .cn-ring { r: 16; stroke-width: 1.5; opacity: 1; }
.career-node.is-hovered .cn-dot  { r: 5; filter: url(#nodeGlow); }
.career-node.is-hovered .cn-label { fill: #F2EFE6; }

.career-card {
  position: absolute;
  width: 220px;
  padding: 16px 18px;
  background: #0F1A14;
  border: 1px solid rgba(126, 224, 184, 0.35);
  border-radius: 12px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.8), 0 0 0 1px rgba(126, 224, 184, 0.05);
  pointer-events: none;
  z-index: 10;
  animation: career-card-in 180ms ease-out;
}

@keyframes career-card-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.career-card[hidden] { display: none; }

.career-card-name {
  font-family: var(--serif);
  font-size: 18px;
  color: #F2EFE6;
  margin-bottom: 10px;
}

.career-card-row { margin-top: 10px; }

.career-card-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8A8780;
  margin-bottom: 3px;
}

.career-card-value {
  font-size: 13px;
  color: #F2EFE6;
  line-height: 1.4;
}

.career-card-metric {
  font-family: var(--serif);
  font-size: 20px;
  color: #7EE0B8;
}

@media (prefers-reduced-motion: reduce) {
  .career-beam { animation: none; opacity: 0.6; }
  .career-node { animation: none; opacity: 1; }
}

.metric-block { text-align: center; }

.metric-num {
  font-family: var(--serif);
  font-size: 38px;
  color: var(--fg);
  line-height: 1;
}

.metric-num-accent { color: var(--accent); }

.metric-label {
  font-size: 11px;
  color: var(--fg3);
  margin-top: 4px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--fg3);
  font-size: 12px;
  letter-spacing: .1em;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--fg3), transparent);
  animation: sline 2s ease-in-out infinite;
}

@keyframes sline {
  0%, 100% { opacity: .3; }
  50%       { opacity: 1; }
}

/* Logo Strip */
#logos {
  padding: 60px 48px;
  border-top: .5px solid rgba(240, 237, 232, .06);
  border-bottom: .5px solid rgba(240, 237, 232, .06);
  background-color: #100f0f;
}

.logos-label {
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--fg2);
  margin-bottom: 32px;
  text-align: center;
  opacity: .9;
}

.discipline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.discipline-item {
  padding: 24px;
  border: .5px solid rgba(240, 237, 232, .08);
  border-radius: 12px;
  background: rgba(240, 237, 232, .03);
}

.discipline-icon {
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}

.discipline-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 8px;
  letter-spacing: .01em;
}

.discipline-desc {
  font-size: 13px;
  color: var(--fg2);
  line-height: 1.6;
  margin: 0;
}

/* Home Work Teaser */
.home-work { padding: 140px 48px 100px; }

.home-work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Work Cards (shared between home teaser + work page) */
.work-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg2);
}

.work-card-lg { grid-column: 1 / 3; }

.work-card-img {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: var(--bg3);
  position: relative;
  overflow: hidden;
}

.work-card-lg .work-card-img { aspect-ratio: 16 / 9;}

.work-card-inner {
  width: 100%;
  height: 100%;
  transition: transform .6s var(--ease);
}

.work-card:hover .work-card-inner { transform: scale(1.04); }

.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 9, .85) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .35s var(--ease);
  display: flex;
  align-items: flex-end;
  padding: 0 24px 24px;
}

.work-card:hover .work-overlay { opacity: 1; }

.work-card-info { padding: 20px 24px; }

.work-card-title {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--fg);
  margin-bottom: 6px;
}

.work-card-lg .work-card-title { font-size: 26px; }

.work-card-cat {
  font-size: 12px;
  color: var(--fg3);
  letter-spacing: .05em;
}

.overlay-title {
  font-family: var(--serif);
  font-size: 18px;
  margin-bottom: 4px;
}

.overlay-link {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: .05em;
}

/* Project placeholder visuals */
.proj-bg-1 { background: linear-gradient(135deg, #0f2318 0%, #071510 100%); }
.proj-bg-2 { background: linear-gradient(135deg, #0d1a2e 0%, #060d1a 100%); }
.proj-bg-3 { background: linear-gradient(135deg, #1a1209 0%, #0d0903 100%); }
.proj-bg-4 { background: linear-gradient(135deg, #1a0d1a 0%, #0d060d 100%); }
.proj-bg-5 { background: linear-gradient(135deg, #0a1520 0%, #060e17 100%); }

.proj-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.proj-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(240, 237, 232, .07) 1px, transparent 1px);
  background-size: 20px 20px;
}

.proj-frame {
  width: 72%;
  padding: 20px;
  background: rgba(240, 237, 232, .04);
  border-radius: 10px;
  border: .5px solid rgba(240, 237, 232, .1);
  position: relative;
}

.prow {
  height: 3px;
  border-radius: 2px;
  background: rgba(240, 237, 232, .1);
  margin-bottom: 8px;
}

.prow.a { background: rgba(126, 203, 164, .4); width: 50%; }
.prow.b { width: 80%; }
.prow.c { width: 65%; }
.prow.d { width: 40%; }

/* Capabilities */
.caps-section { padding: 140px 48px; }

.caps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.caps-headline {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  max-width: 480px;
}

.caps-headline em {
  font-style: italic;
  color: var(--fg2);
}

/* ── Skills Ring ── */
.skills-ring-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  margin: 0 auto;
}

.skills-ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.skills-trace {
  stroke: #A8E6C1;
  stroke-width: 1.25;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 154;
  stroke-dashoffset: 154;
  transition: stroke-dashoffset .55s ease-out;
  pointer-events: none;
}

.skills-trace.active { stroke-dashoffset: 0; }

.skills-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: default;
}

.skills-node-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px solid rgba(168, 230, 193, .25);
  background: #0a0a09;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: transform .2s var(--ease);
}

.skills-node { z-index: 1; }
.skills-node:hover { z-index: 210; }
.skills-node:hover .skills-node-circle { transform: scale(1.05); }

.skills-num {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: rgba(255, 255, 255, .35);
}

.skills-label {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--fg);
  text-align: center;
  max-width: 9rem;
  line-height: 1.3;
}

.skills-tooltip {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  margin-top: 10px;
  width: 220px;
  background: #111;
  border: 1px solid rgba(168, 230, 193, .25);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 200;
  box-shadow: 0 10px 40px rgba(0,0,0,.6);
}

.skills-tooltip--up {
  top: auto;
  bottom: 100%;
  margin-top: 0;
  margin-bottom: 10px;
  transform: translateX(-50%) translateY(-4px);
}

.skills-node:hover .skills-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.skills-tooltip-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--accent);
  margin-bottom: 4px;
}

.skills-tooltip-body {
  font-size: 12px;
  color: rgba(255, 255, 255, .7);
  line-height: 1.5;
}

/* Metrics */
.metrics-wrap {
  background: var(--bg2);
  border-radius: 24px;
  margin: 0 48px;
  padding: 100px 80px;
}

.metrics-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
  align-items: end;
}

.metrics-headline {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -.02em;
}

.metrics-sub {
  font-size: 16px;
  color: var(--fg2);
  line-height: 1.7;
  max-width: 380px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(240, 237, 232, .06);
  border-radius: 12px;
  overflow: hidden;
}

.metric-cell { background: var(--bg2); padding: 44px 40px; }

.metric-value {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 4rem);
  color: var(--fg);
  line-height: 1;
  margin-bottom: 8px;
}

.metric-value span { color: var(--accent); }

.metric-desc {
  font-size: 14px;
  color: var(--fg2);
  line-height: 1.5;
}

/* Approach */
.approach-section { padding: 140px 48px; }

.approach-header {
  text-align: center;
  margin-bottom: 100px;
}

.approach-headline {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 4rem);
  letter-spacing: -.02em;
  margin-bottom: 16px;
}

.approach-sub {
  font-size: 16px;
  color: var(--fg2);
}

.approach-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(240, 237, 232, .06);
  border-radius: 16px;
  overflow: hidden;
}

.step {
  background: var(--bg);
  padding: 56px 48px;
  position: relative;
  transition: background .3s;
}

.step:hover { background: var(--bg2); }

.step-num {
  font-family: var(--serif);
  font-size: 72px;
  color: rgba(240, 237, 232, .05);
  line-height: 1;
  position: absolute;
  top: 24px;
  right: 32px;
}

.step-title {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--fg);
  margin-bottom: 16px;
}

.step-body {
  font-size: 15px;
  color: var(--fg2);
  line-height: 1.7;
}

/* CTA */
.cta-section {
  padding: 160px 48px;
  text-align: center;
}

.cta-headline {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 7rem);
  line-height: 1;
  letter-spacing: -.03em;
  margin-bottom: 32px;
}

.cta-headline em {
  font-style: italic;
  color: var(--fg2);
}

.cta-sub {
  font-size: 18px;
  color: var(--fg2);
  margin-bottom: 56px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

/* ============================================================
   WORK PAGE
   ============================================================ */

.work-hero { padding: 100px 48px 80px; }

.work-hero-text {
  max-width: var(--max);
  margin: 0 auto;
}

.work-page-headline {
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}

.work-page-sub {
  font-size: 18px;
  color: var(--fg2);
  max-width: 520px;
  line-height: 1.7;
}

/* Filter Tabs */
.filter-bar {
  padding: 0 48px 60px;
  max-width: var(--max);
  margin: 0 auto;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .02em;
  cursor: pointer;
  transition: all .2s;
  border: .5px solid rgba(240, 237, 232, .12);
  background: none;
  color: var(--fg2);
  font-family: var(--sans);
}

.filter-tab:hover {
  color: var(--fg);
  border-color: rgba(240, 237, 232, .3);
}

.filter-tab.active {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

/* Work Full Grid */
.work-full-grid {
  padding: 0 48px 120px;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.wc {
  cursor: pointer;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg2);
  transition: transform .3s var(--ease);
  display: flex;
  flex-direction: column;
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
}

.wc:hover { transform: translateY(-4px); }

.wc-span6  { grid-column: span 6; }
.wc-span4  { grid-column: span 4; }
.wc-span8  { grid-column: span 8; }
.wc-span12 { grid-column: span 12; }

.wc-img {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

.wc-img-inner {
  width: 100%;
  height: 100%;
  transition: transform .6s var(--ease);
}

.wc:hover .wc-img-inner { transform: scale(1.04); }

.wc-span6  .wc-img { aspect-ratio: 4 / 3; }
.wc-span4  .wc-img { aspect-ratio: 3 / 4; }
.wc-span8  .wc-img { aspect-ratio: 16 / 9; }
.wc-span12 .wc-img { aspect-ratio: 21 / 9; }

.wc-ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 9, .88) 20%, rgba(10, 10, 9, .5) 45%, transparent 70%);
  opacity: 0;
  transition: opacity .3s var(--ease);
  display: flex;
  align-items: flex-end;
  padding: 24px 24px 100px;
  z-index: 1;
  border-radius: 16px;
  pointer-events: none;
}

.wc:hover .wc-ov { opacity: 1; }

.wc-ov-title {
  font-family: var(--serif);
  font-size: 16px;
  margin-bottom: 3px;
}

.wc-ov-link {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: .06em;
}

.wc-body { padding: 18px 22px; }

.wc-title {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--fg);
  margin-bottom: 5px;
}

.wc-cat {
  font-size: 11px;
  color: var(--fg3);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.wc-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}

.wc-title-row .wc-title {
  margin-bottom: 0;
}

.wc-lock {
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
  font-size: 10px;
  line-height: 1;
  color: var(--fg3);
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ============================================================
   CASE STUDY
   ============================================================ */

.cs-hero {
  position: relative;
  height: 80vh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

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

.cs-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,9,1) 0%, rgba(10,10,9,.5) 40%, transparent 80%);
}

.cs-hero-content {
  position: relative;
  padding: 0 48px 80px;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg2);
  margin-bottom: 32px;
  cursor: pointer;
  transition: color .2s;
  background: none;
  border: none;
  font-family: var(--sans);
  letter-spacing: .02em;
  padding: 0;
}

.cs-back:hover { color: var(--fg); }

.cs-tag {
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.cs-headline {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  max-width: 800px;
  margin-bottom: 20px;
}

.cs-summary {
  font-size: 17px;
  color: var(--fg2);
  max-width: 560px;
  line-height: 1.7;
}

.cs-meta-bar {
  display: flex;
  border-top: .5px solid rgba(240, 237, 232, .08);
  margin-top: 48px;
}

.cs-meta-item { padding: 24px 40px 0 0; flex: 1; }

.cs-meta-label {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg3);
  margin-bottom: 6px;
}

.cs-meta-value {
  font-size: 15px;
  color: var(--fg);
  font-weight: 400;
}

/* Case Study Body */
.cs-body {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 48px;
}

.cs-section {
  padding: 100px 0;
  border-bottom: .5px solid rgba(240, 237, 232, .06);
}

.cs-section:last-child { border-bottom: none; }

.cs-section-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  align-items: start;
}

.cs-section-label {
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 4px;
  position: sticky;
  top: 100px;
}

.cs-section-content h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  letter-spacing: -.02em;
  margin-bottom: 24px;
  line-height: 1.1;
}

.cs-section-content p {
  font-size: 16px;
  color: var(--fg2);
  line-height: 1.8;
  margin-bottom: 20px;
}

.cs-section-content p:last-child { margin-bottom: 0; }

.cs-img-block {
  border-radius: 16px;
  overflow: hidden;
  margin: 48px 0;
}

.cs-img-block-inner {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cs-img-caption {
  font-size: 12px;
  color: #8a8a8a;
  margin-top: 12px;
  letter-spacing: .04em;
  padding: 0 1em;
}

.cs-two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 48px 0;
}

.cs-two-up .cs-img-block { margin: 0; }

.cs-three-up {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 48px 0;
}

.cs-three-up .cs-img-block { margin: 0; }

.cs-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 40px 0;
}

.cs-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px;
  background: var(--bg2);
  border-radius: 12px;
  border: .5px solid rgba(240, 237, 232, .06);
}

.cs-step-num {
  font-family: var(--serif);
  font-size: 32px;
  color: rgba(126, 203, 164, .3);
  line-height: 1;
  min-width: 48px;
}

.cs-step-text {
  min-width: 0;
  width: 100%;
}

@media (max-width: 600px) {
  .cs-step {
    flex-direction: column;
    gap: 12px;
    padding: 20px;
  }
}

.cs-step-text h4 {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 6px;
}

.cs-step-text p {
  font-size: 14px;
  color: var(--fg2);
  line-height: 1.6;
  margin: 0;
}

.cs-outcomes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(240, 237, 232, .06);
  border-radius: 16px;
  overflow: hidden;
  margin: 40px 0;
}

.cs-outcome { background: var(--bg2); padding: 40px 32px; }

.cs-outcome-val {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
}

.cs-outcome-label {
  font-size: 14px;
  color: var(--fg2);
  line-height: 1.5;
}

.cs-quote {
  border-left: 2px solid var(--accent);
  padding: 24px 32px;
  margin: 40px 0;
  background: var(--bg2);
  border-radius: 0 12px 12px 0;
}

.cs-quote p {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--fg);
  line-height: 1.5;
  font-style: italic;
  margin: 0 0 12px;
}

.cs-quote cite {
  font-size: 13px;
  color: var(--fg3);
  font-style: normal;
}

/* Case Study Nav */
.cs-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 80px 48px;
  border-top: .5px solid rgba(240, 237, 232, .06);
  max-width: var(--max);
  margin: 0 auto;
}

.cs-nav-label {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg3);
  margin-bottom: 8px;
}

.cs-nav-title {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--fg);
}

.cs-nav-btn {
  cursor: pointer;
  transition: opacity .2s;
  background: none;
  border: none;
  text-align: left;
}

.cs-nav-btn:hover { opacity: .7; }
.cs-nav-btn.right { text-align: right; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 80px);
}

.contact-left {
  padding: 100px 80px 80px 48px;
  border-right: .5px solid rgba(240, 237, 232, .06);
}

.contact-right { padding: 100px 48px 80px 80px; }

.contact-eyebrow {
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
}

.contact-headline {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin-bottom: 28px;
}

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

.contact-desc {
  font-size: 16px;
  color: var(--fg2);
  line-height: 1.8;
  max-width: 420px;
  margin-bottom: 60px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-detail-label {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg3);
  margin-bottom: 6px;
}

.contact-detail-value {
  font-size: 13px;
  color: var(--fg2);
  transition: color .2s;
}

.contact-detail-value a { color: inherit; text-decoration: none; }
.contact-detail-value a:hover { color: var(--accent); }
.contact-detail-value.accent { color: var(--accent); }

.contact-social {
  display: flex;
  gap: 20px;
  margin-top: 16px;
}

.social-link {
  font-size: 13px;
  color: var(--fg2);
  text-decoration: none;
  letter-spacing: .04em;
  transition: color .2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.social-link:hover { color: var(--fg); }

/* Contact Form */
.form-headline {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--fg);
  margin-bottom: 8px;
  letter-spacing: -.01em;
}

.form-sub {
  font-size: 14px;
  color: var(--fg2);
  margin-bottom: 48px;
}

.form-group { margin-bottom: 28px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-label {
  display: block;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg3);
  margin-bottom: 10px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--bg2);
  border: .5px solid rgba(240, 237, 232, .12);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 15px;
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  transition: border-color .2s, background .2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--fg3); }

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: rgba(126, 203, 164, .5);
  background: var(--bg3);
}

.form-input--error {
  border-color: rgba(226, 75, 74, .6) !important;
}

.form-field-error {
  font-size: 12px;
  color: #e24b4a;
  margin-top: 6px;
}

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

.form-select {
  cursor: pointer;
  color: var(--fg);
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a5854' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-select option { background: var(--bg2); color: var(--fg); }

.form-check-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.form-check input[type=checkbox] {
  width: 18px;
  height: 18px;
  border: .5px solid rgba(240, 237, 232, .2);
  border-radius: 4px;
  background: var(--bg2);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}

.form-check input[type=checkbox]:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.form-check input[type=checkbox]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: 2px solid var(--bg);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.form-check-label { font-size: 14px; color: var(--fg2); }

.form-submit {
  width: 100%;
  padding: 16px 28px;
  background: var(--fg);
  color: var(--bg);
  border: none;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--sans);
  letter-spacing: .02em;
  cursor: pointer;
  transition: opacity .2s, transform .25s var(--ease);
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.form-submit:hover {
  opacity: .88;
  transform: translateY(-2px);
}

.form-success {
  display: none;
  text-align: center;
  padding: 60px 0;
}

.form-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(126, 203, 164, .15);
  border: .5px solid rgba(126, 203, 164, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 22px;
  color: var(--accent);
}

.form-success h3 {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--fg);
  margin-bottom: 12px;
}

.form-success p { font-size: 15px; color: var(--fg2); }

.char-count {
  font-size: 12px;
  color: var(--fg3);
  text-align: right;
  margin-top: 6px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 960px) {
  nav { padding: 20px 24px; }
  nav.condensed { padding: 14px 24px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-drawer { display: flex; }

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

  .hero-visual { display: none; }
  .hero-grid,
  .caps-grid,
  .metrics-head,
  .contact-grid { grid-template-columns: 1fr; }

  .home-work-grid,
  .work-full-grid { grid-template-columns: 1fr; }

  .wc-span6,
  .wc-span4,
  .wc-span8,
  .wc-span12 { grid-column: auto; }
  .work-card-lg { grid-column: auto; }

  .metrics-grid,
  .cs-outcomes { grid-template-columns: 1fr; }

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

  .cs-section-grid { grid-template-columns: 1fr; }
  .cs-section-label { position: static; }
  .cs-two-up { grid-template-columns: 1fr; }
  .cs-three-up { grid-template-columns: 1fr; }

  .contact-left {
    border-right: none;
    border-bottom: .5px solid rgba(240, 237, 232, .06);
    padding: 80px 24px 60px;
  }

  .contact-right { padding: 60px 24px 80px; }

  .metrics-wrap { margin: 0 24px; padding: 60px 28px; }

  footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 40px 24px;
  }

  #hero,
  .home-work,
  .caps-section,
  .approach-section,
  .cta-section,
  .work-hero { padding-left: 24px; padding-right: 24px; }

  .filter-bar,
  .work-full-grid,
  .cs-body,
  .cs-nav { padding-left: 24px; padding-right: 24px; }

  .cs-hero-content { padding-left: 24px; padding-right: 24px; }

  .cs-nav { flex-direction: column; gap: 40px; }

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

  .step { padding: 40px 28px; }
}

/* ============================================================
   IMAGE SUPPORT — work cards + case study blocks
   ============================================================ */

/* Work card real image — drop-in replacement for .proj-inner placeholder */
.work-card-img picture,
.wc-img picture {
  display: block;
  position: absolute;
  inset: 0;
}

.work-card-img picture img,
.wc-img picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease);
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
}

.work-card:hover .work-card-img picture img,
.wc:hover .wc-img picture img {
  transform: scale(1.04);
}

/* Case study body image blocks */
.cs-img-block picture {
  display: block;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.cs-img-block picture img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* About page photo */
.about-headshot {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 50%;
  border: 2px solid rgba(240, 237, 232, .2);
}

.about-photo-frame picture {
  display: block;
  width: 100%;
}

.about-photo-frame picture img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
  display: block;
}
