/*
Theme Name: Michaela Portfolio
Theme URI: https://michaelahoffman.com
Author: Michaela Hoffman
Author URI: https://michaelahoffman.com
Description: Portfolio theme for Michaela Hoffman — Principal UX/UI Designer & Frontend Engineer
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: michaela-portfolio
*/

/* ── DESIGN TOKENS ─────────────────────────────────── */
:root {
  /* Backgrounds */
  --deep:      #111009;
  --surface:   #181610;
  --surface2:  #1f1d14;
  --surface3:  #252318;

  /* Text */
  --cream:     #f5f0e8;
  --sand:      #c8bda4;
  --warm-gray: #7a7060;
  --ink:       #0e0d0b;

  /* Brand */
  --gold:      #c9a84c;
  --gold-lt:   #e8d08a;
  --accent:    #b87333;

  /* Semantic */
  --red:       #c0433a;
  --rule:      rgba(212, 201, 176, 0.1);

  /* Alias for legacy inline styles */
  --warm-mid:  #c8bda4;   /* = --sand */
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--deep);
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  cursor: default;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { list-style: none; }

/* ── CUSTOM CURSOR ──────────────────────────────────── */
.cursor {
  width: 10px; height: 10px;
  background: var(--gold);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
  mix-blend-mode: difference;
}

.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(201, 168, 76, 0.5);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              width 0.3s ease, height 0.3s ease;
}

@media (hover: none) {
  .cursor, .cursor-ring { display: none; }
}

/* ── READING PROGRESS BAR ───────────────────────────── */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  z-index: 200;
  height: 2px;
  background: linear-gradient(to right, var(--gold), var(--accent));
  width: 0%;
  transition: width 0.1s linear;
}

/* ── TYPOGRAPHY ─────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.1;
  color: var(--cream);
}

em {
  font-style: italic;
  color: var(--gold);
}

p {
  color: var(--sand);
  line-height: 1.8;
}

/* ── NAVIGATION ─────────────────────────────────────── */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.6rem 4rem;
  background: rgba(17, 16, 9, 0.96);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.02em;
}

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

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

.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm-gray);
  text-decoration: none;
  transition: color 0.25s;
}

.nav-links a:hover,
.nav-links a.current-menu-item { color: var(--gold); }

.nav-cta {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink) !important;
  background: var(--gold);
  padding: 0.55rem 1.4rem;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.25s, transform 0.25s;
}

.nav-cta:hover {
  background: var(--gold-lt) !important;
  transform: translateY(-1px);
}

/* ── BUTTONS ────────────────────────────────────────── */
.btn-primary {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--ink);
  padding: 0.9rem 2rem;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s, transform 0.3s;
}

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

.btn-ghost {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: transparent;
  color: var(--sand);
  border: 1px solid var(--rule);
  padding: 0.9rem 2rem;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.3s, color 0.3s, transform 0.3s;
}

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

/* ── SECTION LABEL (EYEBROW) ────────────────────────── */
.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 1.8rem;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

/* ── CARDS (BASE) ───────────────────────────────────── */
.card-base {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s, border-color 0.3s;
}

/* Top accent line on hover */
.card-accent::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--gold), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.card-accent:hover::before { transform: scaleX(1); }

/* ── TAGS ───────────────────────────────────────────── */
.task-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.task-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm-gray);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.2rem 0.55rem;
}

.theme-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 2px;
  padding: 0.3rem 0.75rem;
}

/* ── CALLOUT BOX ────────────────────────────────────── */
.callout-box {
  background: rgba(212, 201, 176, 0.04);
  border: 1px solid rgba(212, 201, 176, 0.1);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 2rem 2.5rem;
  margin: 2rem 0;
}

.callout-box p {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--cream);
  line-height: 1.6;
}

/* ── SECTION DIVIDER ────────────────────────────────── */
.section-divider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 4.5rem;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.section-divider span {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-gray);
  white-space: nowrap;
}

/* ── REVEAL ANIMATIONS ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ── HERO ───────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
  align-items: center;
}

/* Atmospheric background */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 75% 40%, rgba(201, 168, 76, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 20% 70%, rgba(184, 115, 51, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

/* Grain overlay */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.6;
}

.hero-left {
  position: relative; z-index: 2;
  padding: 9rem 3.5rem 6rem 4.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 2.5rem; height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.4s forwards;
}

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

.hero-sub {
  font-size: 1.05rem;
  color: var(--sand);
  max-width: 42ch;
  line-height: 1.85;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.6s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.9s 0.8s forwards;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 3rem; left: 4.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-gray);
  opacity: 0;
  animation: fadeUp 1s 1.2s forwards;
}

.scroll-line {
  width: 40px; height: 1px;
  background: var(--warm-gray);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.scroll-line::after {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--gold);
  animation: scanline 2s 1.5s infinite;
}

@keyframes scanline { to { left: 100%; } }

/* Hero right — portrait */
.hero-right {
  position: relative; z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9rem 4rem 6rem 2rem;
  opacity: 0;
  animation: fadeIn 1.2s 0.5s forwards;
}

.portrait-wrap {
  position: relative;
  width: min(380px, 85%);
}

/* Decorative corner frames */
.corner {
  position: absolute;
  width: 28px; height: 28px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.6;
}

.corner.tl { top: -10px; left: -10px; border-width: 1px 0 0 1px; }
.corner.tr { top: -10px; right: -10px; border-width: 1px 1px 0 0; }
.corner.bl { bottom: -10px; left: -10px; border-width: 0 0 1px 1px; }
.corner.br { bottom: -10px; right: -10px; border-width: 0 1px 1px 0; }

.portrait-wrap img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.portrait-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--surface2);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-gray);
}

/* Floating stat cards */
.stat-card {
  position: absolute;
  background: rgba(24, 22, 16, 0.92);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1rem 1.4rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.stat-val {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.stat-lbl {
  font-family: 'DM Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-top: 0.25rem;
}

.stat-card.s1 { top: 15%; right: -2.5rem; animation: floatA 5s ease-in-out infinite; }
.stat-card.s2 { bottom: 18%; left: -2.5rem; animation: floatB 5s ease-in-out infinite 1.5s; }
.stat-card.s3 { bottom: 36%; right: -2rem; animation: floatA 6s ease-in-out infinite 0.8s; }

@keyframes floatA {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes floatB {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* ── CLIENT BAR ─────────────────────────────────────── */
.client-bar {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 1.6rem 4.5rem;
  display: flex;
  align-items: center;
  gap: 3rem;
  overflow: hidden;
}

.client-bar-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-gray);
  white-space: nowrap;
  flex-shrink: 0;
}

.client-bar-rule {
  width: 1px; height: 1.5rem;
  background: var(--rule);
  flex-shrink: 0;
}

.clients-scroll {
  display: flex;
  gap: 3.5rem;
  align-items: center;
  animation: marquee 20s linear infinite;
  white-space: nowrap;
}

.clients-scroll:hover { animation-play-state: paused; }

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.client-name {
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  font-weight: 400;
  font-style: italic;
  color: var(--warm-gray);
  white-space: nowrap;
  transition: color 0.25s;
}

.client-name:hover { color: var(--sand); }

/* ── SECTION SHARED ─────────────────────────────────── */
section { padding: 7rem 4.5rem; position: relative; }

.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 1.25rem;
  color: var(--cream);
}

.section-heading em { font-style: italic; color: var(--gold); }

.section-intro {
  font-size: 1rem;
  color: var(--sand);
  max-width: 58ch;
  line-height: 1.85;
}

/* ── WORK / PROJECTS GRID ───────────────────────────── */
.work-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
}

.work-header a.view-all {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-gray);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.25s;
}

.work-header a.view-all:hover { color: var(--gold); }
.work-header a.view-all::after { content: '→'; }

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--rule);
  border-radius: 12px;
  overflow: hidden;
}

.project-card {
  background: var(--surface);
  padding: 3rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
  text-decoration: none;
  display: block;
  color: inherit;
}

.project-card:hover { background: var(--surface2); }

.project-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--gold), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.project-card:hover::before { transform: scaleX(1); }

.project-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-tag::before {
  content: '';
  display: block;
  width: 1.5rem; height: 1px;
  background: var(--gold);
}

.project-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: var(--cream);
  transition: color 0.25s;
}

.project-card:hover .project-title { color: var(--gold-lt); }

.project-desc {
  font-size: 0.9rem;
  color: var(--sand);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.project-metrics {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.metric { display: flex; flex-direction: column; gap: 0.15rem; }

.metric-val {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.metric-lbl {
  font-family: 'DM Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm-gray);
}

.project-visual {
  background: var(--surface2);
  border-radius: 8px;
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-gray);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  margin-top: 1.5rem;
  transition: gap 0.25s;
}

.project-link:hover { gap: 0.8rem; }
.project-link::after { content: '→'; }

/* ── PULL QUOTE ─────────────────────────────────────── */
.quote-section {
  text-align: center;
  padding: 8rem 4.5rem;
  position: relative;
  overflow: hidden;
}

.quote-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(201, 168, 76, 0.05) 0%, transparent 65%);
  pointer-events: none;
}

.quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 8rem;
  line-height: 0.5;
  color: rgba(201, 168, 76, 0.12);
  margin-bottom: 1.5rem;
  font-style: italic;
  display: block;
}

.quote-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-style: italic;
  color: var(--cream);
  line-height: 1.5;
  max-width: 58ch;
  margin: 0 auto 2rem;
  position: relative; z-index: 1;
}

.quote-credit {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-gray);
}

/* ── ABOUT STRIP ────────────────────────────────────── */
.about-strip {
  background: var(--surface);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.about-left {
  padding: 6rem 4.5rem;
  border-right: 1px solid var(--rule);
}

.about-right {
  padding: 6rem 4.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Capability bars */
.capability-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 2.5rem;
}

.capability {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.cap-name { font-size: 0.95rem; color: var(--cream); }

.cap-bar-wrap {
  width: 35%; height: 2px;
  background: rgba(212, 201, 176, 0.08);
  border-radius: 1px;
  overflow: hidden;
}

.cap-bar {
  height: 100%;
  background: linear-gradient(to right, var(--gold), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.cap-bar.visible { transform: scaleX(1); }

/* Research / Design / Code triad */
.triad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.triad-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem;
  background: rgba(212, 201, 176, 0.03);
  border: 1px solid var(--rule);
  border-radius: 8px;
  transition: border-color 0.3s;
}

.triad-item:hover { border-color: rgba(201, 168, 76, 0.3); }

.triad-icon {
  font-family: 'DM Mono', monospace;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.triad-label {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.4rem;
}

.triad-detail {
  font-size: 0.78rem;
  color: var(--warm-gray);
  line-height: 1.6;
}

/* ── CONTACT / CTA ──────────────────────────────────── */
.cta-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--rule);
  min-height: 400px;
  padding: 0;
}

.cta-left {
  padding: 6rem 4.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--rule);
}

.cta-right {
  padding: 6rem 4.5rem;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cta-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  color: var(--cream);
}

.cta-heading em { font-style: italic; color: var(--gold); }

.cta-sub {
  font-size: 0.95rem;
  color: var(--sand);
  max-width: 40ch;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  transition: transform 0.25s;
}

.contact-item:hover { transform: translateX(4px); }

.contact-item-icon {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--gold);
  width: 2rem;
  flex-shrink: 0;
}

.contact-item-text { font-size: 0.9rem; color: var(--cream); }

.contact-item-sub {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm-gray);
}

/* ── FOOTER ─────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 4.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  color: var(--warm-gray);
}

.footer-nav { display: flex; gap: 1.5rem; }

.footer-nav a {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm-gray);
  text-decoration: none;
  transition: color 0.25s;
}

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

.footer-copy {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--warm-gray);
}

/* ── CASE STUDY: HERO ───────────────────────────────── */
.cs-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.cs-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(201, 168, 76, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(184, 115, 51, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.cs-hero-left {
  position: relative; z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 4rem 6rem 5rem;
}

.cs-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--cream);
}

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

.cs-hero-subtitle {
  font-size: 1rem;
  color: var(--sand);
  max-width: 38ch;
  line-height: 1.8;
  margin-bottom: 3rem;
}

.cs-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 3rem;
  border-top: 1px solid rgba(212, 201, 176, 0.15);
  padding-top: 2rem;
}

.cs-meta-item label {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-gray);
  display: block;
  margin-bottom: 0.3rem;
}

.cs-meta-item span { font-size: 0.9rem; color: var(--cream); }

.cs-hero-right {
  position: relative; z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6rem 4rem;
}

/* Browser mockup */
.browser-frame {
  background: #1a1814;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(212, 201, 176, 0.1);
  transform: perspective(1000px) rotateY(-6deg) rotateX(3deg);
  transform-origin: center center;
  transition: transform 0.6s ease;
  width: min(90%, 500px);
}

.browser-frame:hover {
  transform: perspective(1000px) rotateY(-2deg) rotateX(1deg);
}

.browser-bar {
  background: #252320;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.r { background: #ff5f57; }
.dot.y { background: #febc2e; }
.dot.g { background: #28c840; }

.url-bar {
  flex: 1;
  background: #1a1814;
  border-radius: 4px;
  padding: 0.3rem 0.75rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: var(--warm-gray);
  margin: 0 0.5rem;
}

.mockup-content {
  aspect-ratio: 4/3;
  background: linear-gradient(160deg, #0d1117 0%, #141a22 100%);
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
}

.mockup-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(to top, rgba(13, 17, 23, 1) 0%, transparent 100%);
}

.mockup-city-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

.mockup-tagline {
  font-size: 0.55rem;
  color: var(--sand);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.mockup-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.mockup-tag {
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.3);
  color: var(--gold-lt);
  border-radius: 2px;
  padding: 0.15rem 0.5rem;
  font-size: 0.45rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'DM Mono', monospace;
}

/* Revenue badge */
.revenue-badge {
  position: absolute;
  bottom: -1rem;
  left: -2rem;
  background: var(--gold);
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  box-shadow: 0 20px 40px rgba(201, 168, 76, 0.3);
  animation: floatB 4s ease-in-out infinite 2s;
}

.revenue-badge .amount {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
}

.revenue-badge .label {
  font-family: 'DM Mono', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(14, 13, 11, 0.6);
  margin-top: 0.2rem;
}

/* ── CASE STUDY: CHALLENGE ──────────────────────────── */
.challenge-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.comparison-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comp-card {
  background: rgba(212, 201, 176, 0.04);
  border: 1px solid rgba(212, 201, 176, 0.1);
  border-radius: 10px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.comp-card.before { border-color: rgba(192, 67, 58, 0.2); }
.comp-card.after  { border-color: rgba(201, 168, 76, 0.25); }

.comp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}

.comp-card.before::before { background: linear-gradient(to right, var(--red), transparent); }
.comp-card.after::before  { background: linear-gradient(to right, var(--gold), transparent); }

.comp-card-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.comp-card.before .comp-card-label { color: var(--red); }
.comp-card.after  .comp-card-label { color: var(--gold); }

.comp-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--cream);
}

.comp-card p { font-size: 0.85rem; color: var(--sand); line-height: 1.6; }

/* ── CASE STUDY: PROCESS ────────────────────────────── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.process-step {
  position: relative;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(212, 201, 176, 0.15);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.process-step.visible { opacity: 1; transform: translateY(0); }

.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(201, 168, 76, 0.15);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.process-step h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--cream);
}

.process-step p { font-size: 0.85rem; color: var(--sand); line-height: 1.7; }

.step-tag {
  display: inline-block;
  margin-top: 1rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201, 168, 76, 0.1);
  border-radius: 2px;
  padding: 0.2rem 0.6rem;
}

/* ── CASE STUDY: IMPACT ─────────────────────────────── */
.impact-section {
  text-align: center;
  padding: 8rem 5rem;
  position: relative;
  overflow: hidden;
}

.impact-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(201, 168, 76, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.impact-headline {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.big-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 900;
  line-height: 0.95;
  background: linear-gradient(135deg, var(--gold-lt) 0%, var(--gold) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.big-number-label {
  font-size: 1rem;
  color: var(--sand);
  margin-bottom: 4rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  max-width: 800px;
  margin: 0 auto;
  background: rgba(212, 201, 176, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.metric-item {
  background: rgba(14, 13, 11, 0.8);
  padding: 2.5rem 2rem;
}

.metric-value {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.metric-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-gray);
}

/* ── CASE STUDY: SKILLS ─────────────────────────────── */
.skills-section {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  align-items: start;
}

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

.skill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(212, 201, 176, 0.08);
}

.skill-name { font-size: 0.9rem; color: var(--cream); }

.skill-bar-wrap {
  width: 40%; height: 2px;
  background: rgba(212, 201, 176, 0.1);
  border-radius: 1px;
  overflow: hidden;
}

.skill-bar {
  height: 100%;
  background: linear-gradient(to right, var(--gold), var(--accent));
  border-radius: 1px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.resume-bullet-box {
  background: rgba(212, 201, 176, 0.04);
  border: 1px solid rgba(212, 201, 176, 0.12);
  border-radius: 12px;
  padding: 2.5rem;
}

.resume-bullet-box .label {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  display: block;
}

.resume-bullet-box blockquote {
  font-size: 1rem;
  color: var(--cream);
  line-height: 1.8;
  border: none;
  position: relative;
  padding-left: 1.5rem;
}

.resume-bullet-box blockquote::before {
  content: '▸';
  position: absolute; left: 0;
  color: var(--gold);
}

.theme-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }

/* ── CASE STUDY: FOOTER CTA ─────────────────────────── */
.cs-footer-cta {
  text-align: center;
  padding: 6rem 5rem;
  border-top: 1px solid var(--rule);
}

.cs-footer-cta p {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-style: italic;
  color: var(--sand);
  margin-bottom: 2.5rem;
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}

.btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── CASE STUDIES ARCHIVE LIST ──────────────────────── */
.cs-list-item {
  border-top: 1px solid var(--rule);
  padding: 7rem 4.5rem;
}

.cs-list-item:nth-child(even) { background: var(--surface); }

.cs-list-item-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
}

.cs-list-left { display: flex; flex-direction: column; }

.cs-list-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.cs-list-number {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  flex-shrink: 0;
}

.cs-list-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--cream);
}

.cs-list-title a {
  text-decoration: none;
  color: var(--cream);
  transition: color 0.25s;
}

.cs-list-title a:hover { color: var(--gold-lt); }

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

.cs-list-desc {
  font-size: 0.95rem;
  color: var(--sand);
  line-height: 1.85;
  max-width: 52ch;
  margin-bottom: 0;
}

.cs-list-metrics {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--rule);
}

.cs-list-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 100px;
}

.cs-list-client {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm-gray);
}

/* ── PAGE TEMPLATE ──────────────────────────────────── */
.page-content {
  padding: 12rem 4.5rem 7rem;
}

.page-content .entry-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--cream);
}

.page-content .entry-content p {
  color: var(--sand);
  margin-bottom: 1.5rem;
}

/* ── ANIMATIONS ─────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 960px) {
  #site-nav { padding: 1.2rem 2rem; }
  .nav-links { display: none; }

  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 8rem 2rem 3rem; }
  .hero-right { display: none; }

  section { padding: 5rem 2rem; }
  .client-bar { padding: 1.4rem 2rem; }

  .work-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-template-columns: 1fr; gap: 2rem; }

  .about-strip { grid-template-columns: 1fr; }
  .about-left { border-right: none; border-bottom: 1px solid var(--rule); padding: 4rem 2rem; }
  .about-right { padding: 4rem 2rem; }

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

  .cta-section { grid-template-columns: 1fr; }
  .cta-left { border-right: none; border-bottom: 1px solid var(--rule); padding: 4rem 2rem; }
  .cta-right { padding: 4rem 2rem; }

  .cs-hero { grid-template-columns: 1fr; min-height: auto; }
  .cs-hero-left { padding: 7rem 2rem 3rem; }
  .cs-hero-right { padding: 2rem; min-height: 50vw; }
  .revenue-badge { display: none; }

  .challenge-section { grid-template-columns: 1fr; gap: 3rem; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .impact-section { padding: 5rem 2rem; }
  .metrics-grid { grid-template-columns: 1fr; max-width: 360px; }
  .skills-section { grid-template-columns: 1fr; gap: 3rem; }
  .cs-meta-grid { grid-template-columns: 1fr; gap: 1rem; }

  .cs-list-item { padding: 4rem 2rem; }
  .cs-list-item-inner { grid-template-columns: 1fr; gap: 2rem; }
  .cs-list-right { position: static; }

  .quote-section { padding: 5rem 2rem; }
  .stat-card { display: none; }
  .section-divider { padding: 0 2rem; }
  footer { padding: 1.5rem 2rem; }

  .cs-footer-cta { padding: 4rem 2rem; }
  .page-content { padding: 8rem 2rem 4rem; }
}
