/* ============================================================
   ROB HILL · PORTFOLIO V3 REBUILD
   Paleta oscura · Playfair Display + Syne + Inter
   ============================================================ */

/* ── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; }
a { text-decoration: none; }

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --bg:        #080808;
  --bg-soft:   #101010;
  --bg-card:   #141414;
  --border:    rgba(255,255,255,0.08);
  --text:      #f0ede8;
  --text-muted: rgba(240,237,232,0.55);
  --accent:    #d4c5a9;
  --accent-warm: #c8a97e;
  --white:     #ffffff;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-sans:    'Syne', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
}

/* ── BASE ────────────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── AUTH OVERLAY ────────────────────────────────────────── */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s var(--ease-out);
}

.auth-box {
  width: min(520px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.auth-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.auth-label {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 400;
  color: var(--text);
  line-height: 1.3;
}

.auth-field {
  width: 100%;
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.auth-field:focus-within {
  border-color: rgba(255,255,255,0.25);
}

.auth-field input {
  flex: 1;
  background: var(--bg-soft);
  border: none;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s;
}

.auth-field input::placeholder { color: var(--text-muted); }

.auth-field button {
  background: var(--accent-warm);
  border: none;
  padding: 0 20px;
  color: var(--bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.2s;
}

.auth-field button:hover { background: #d4b48a; }

.auth-error {
  font-size: 12px;
  color: #ff6b6b;
  font-family: var(--font-body);
  min-height: 18px;
}

.auth-view {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.auth-field-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field-error {
  font-family: var(--font-body);
  font-size: 12px;
  color: #ff6b6b;
  min-height: 16px;
  text-align: left;
}

.auth-request-link {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
}

.auth-request-link a {
  color: var(--accent-warm);
  transition: color 0.2s;
}

.auth-request-link a:hover { color: var(--text); }

.auth-textarea-wrap {
  width: 100%;
  position: relative;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg-soft);
  transition: border-color 0.2s;
}

.auth-textarea-wrap:focus-within { border-color: rgba(255,255,255,0.25); }

.auth-textarea {
  width: 100%;
  background: transparent;
  border: none;
  padding: 14px 18px 32px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  outline: none;
  resize: none;
  display: block;
}

.auth-textarea::placeholder { color: var(--text-muted); }

.auth-char-count {
  position: absolute;
  bottom: 10px;
  right: 14px;
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-muted);
  pointer-events: none;
}

.auth-submit-btn {
  width: 100%;
  background: var(--accent-warm);
  border: none;
  padding: 14px 20px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--bg);
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s;
}

.auth-submit-btn:hover { background: #d4b48a; }
.auth-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.auth-success-text {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── SITE (hidden until auth) ────────────────────────────── */
.site {
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

/* ── NAV ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  /* subtle gradient so it doesn't float on content */
  background: linear-gradient(to bottom, rgba(8,8,8,0.9) 0%, transparent 100%);
}

.nav-logo {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text);
  text-decoration: none;
}

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

.nav-links a {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-links .nav-cta {
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 20px;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}

.nav-links .nav-cta:hover {
  background: var(--text);
  color: var(--bg);
}

/* ── HERO SECTION ────────────────────────────────────────── */
.hero-section {
  height: 600vh;
  position: relative;
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

/* ── CASES SECTION ───────────────────────────────────────── */
.cases-section {
  height: 400vh;
  position: relative;
}

.cases-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.cases-track {
  display: flex;
  height: 100%;
  width: max-content;
  will-change: transform;
  transform: translateZ(0);
}

/* ── PROGRESS BAR ────────────────────────────────────────── */
.progress-bar-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
  z-index: 10;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent-warm);
  transition: width 0.05s linear;
}

/* ── PANEL COUNTER ───────────────────────────────────────── */
.panel-counter {
  position: absolute;
  bottom: 28px;
  right: 48px;
  z-index: 10;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.panel-counter-sep { margin: 0 4px; }

/* ── PANEL BASE ──────────────────────────────────────────── */
.panel {
  width: 100vw;
  height: 100vh;
  flex-shrink: 0;
  display: flex;
  overflow: hidden;
}

/* ── DISPLAY HEADING UTILITY ────────────────────────────── */
/* Shared letter-spacing for all Playfair Display headlines */
.display-heading { letter-spacing: 0.06em; }

/* ── PANEL · HERO ────────────────────────────────────────── */
.panel-hero {
  align-items: center;
  justify-content: flex-start;
  padding: 0 8vw;
  position: relative;
}

/* faint large number watermark */
.panel-hero::before {
  content: '';
  position: absolute;
  right: 6vw;
  top: 50%;
  transform: translateY(-50%);
  width: 40vw;
  height: 40vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,165,127,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.avail-bar { display:flex; align-items:center; gap:24px; margin:32px 0 24px; width:100%; max-width:100%; }
.avail-dot { width:8px; height:8px; border-radius:50%; background:#4CAF50; flex-shrink:0; }
.avail-line { flex:1; height:1px; background:#FFFFFF; opacity:0.4; }
.avail-text { font-size:11px; letter-spacing:0.1em; text-transform:uppercase; color:#FFFFFF; opacity:0.9; white-space:nowrap; }

.hero-headline,
.avail-bar,
.hero-body {
  max-width: 900px;
}

.hero-content {
  width: 100%;
}

.hero-body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-muted);
}

.hero-tag {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-warm);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(52px, 7.5vw, 110px);
  font-weight: 700;
  line-height: 1.02;
  color: var(--text);
}

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

.hero-bottom {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-value {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.hero-desc {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 380px;
}

.hero-scroll-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: pulse-hint 2.5s ease-in-out infinite;
}

@keyframes pulse-hint {
  0%, 100% { opacity: 0.45; }
  50%       { opacity: 0.9; }
}

/* ── PANEL · CASE ────────────────────────────────────────── */
.case-panel {
  width: 100vw;
  height: 100vh;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

.panel-case {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.case-image {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1.2s var(--ease-out);
}

.case-image:hover img { transform: scale(1.03); }

/* subtle dark vignette on image */
.case-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8,8,8,0.3) 0%, transparent 60%);
  pointer-events: none;
}

.case-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 72px;
  background: var(--bg-card);
  position: relative;
  border-left: 1px solid var(--border);
}

.panel-case--flip .case-content {
  border-left: none;
  border-right: 1px solid var(--border);
}

.case-index {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 20px;
}

.case-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.case-tag {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-warm);
  background: rgba(200,169,126,0.1);
  padding: 5px 12px;
  border-radius: 2px;
}

.case-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 62px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 28px;
}

.case-desc {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 380px;
  margin-bottom: 44px;
}

.case-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
  transition: color 0.2s, border-color 0.2s, gap 0.2s;
}

.case-link:hover {
  color: var(--accent-warm);
  border-color: var(--accent-warm);
  gap: 12px;
}

/* ── ZONE 2 · CLIENTS ────────────────────────────────────── */
.clients-section {
  padding: 80px 0 60px;
  border-top: 1px solid var(--border);
  overflow: hidden;
  background: #f0ede8;
}

.clients-label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.4);
  text-align: center;
  margin-bottom: 36px;
}

.clients-mask {
  overflow: hidden;
  height: 80px;
  display: flex;
  align-items: center;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.clients-track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  will-change: transform;
}

.client-logo {
  height: 28px;
  width: auto;
  flex-shrink: 0;
  padding: 0 36px;
  opacity: 0.5;
  filter: none;
  transition: opacity 0.2s;
  object-fit: contain;
}

.client-logo:hover { opacity: 0.7; }

/* ── ABOUT ───────────────────────────────────────────────── */
.about-section {
  padding: 120px 8vw 100px;
  border-top: 1px solid var(--border);
}

.about-inner {
  display: flex;
  flex-direction: column;
  gap: 64px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.about-intro-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-lead {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 27px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text);
}

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

.about-sub {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(240, 237, 232, 0.6);
}

.about-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
}

.about-meta-item {
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.meta-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(240, 237, 232, 0.55);
}

.meta-value {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--text);
}

.section-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 24px;
}

.about-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 62px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  position: sticky;
  top: 120px;
}

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

.about-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-text {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-muted);
}

.about-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.skill-pill {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.skill-pill:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.2);
}

/* ── ABOUT · ACCORDIONS ──────────────────────────────────── */
.about-accordions {
  border-top: 1px solid var(--border);
  width: 100%;
}

.accordion {
  border-bottom: 1px solid var(--border);
}

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: var(--text);
  transition: color 0.2s;
}

.accordion-header:hover { color: var(--accent-warm); }

.accordion-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.accordion-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.35s var(--ease-out);
}

.accordion.is-open .accordion-chevron { transform: rotate(180deg); }
.accordion.is-open .accordion-header { color: var(--accent-warm); }

.accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease-out);
}

.accordion.is-open .accordion-body { grid-template-rows: 1fr; }

.accordion-body-inner { overflow: hidden; }

.accordion-pad { padding-bottom: 32px; }

/* ── Shared text styles inside accordions ── */
.acc-intro {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(240, 237, 232, 0.6);
}

.acc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.acc-list li {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(240, 237, 232, 0.6);
  padding-left: 20px;
  position: relative;
}

.acc-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-warm);
}

/* ── Outside Work ── */
.outside-cols {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 28px;
  align-items: start;
}

.outside-photo img {
  width: 100%;
  border-radius: 4px;
  object-fit: cover;
  display: block;
}

/* ── Experience Timeline ── */
.exp-timeline { display: flex; flex-direction: column; }

.exp-entry {
  display: grid;
  grid-template-columns: 76px 24px 1fr;
  column-gap: 14px;
}

.exp-meta { padding-top: 2px; }

.exp-year {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(240, 237, 232, 0.6);
  text-align: right;
  white-space: nowrap;
}

.exp-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.exp-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-warm);
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  z-index: 1;
}

.exp-line {
  flex: 1;
  width: 1px;
  background: var(--border);
  margin-top: 6px;
}

.exp-entry:last-child .exp-line { display: none; }

.exp-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-bottom: 32px;
}

.exp-entry:last-child .exp-content { padding-bottom: 0; }

.exp-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.exp-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

.exp-badge {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--bg);
  background: var(--accent-warm);
  padding: 3px 8px;
  border-radius: 2px;
}

.exp-company {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--accent-warm);
}

.exp-location {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(240, 237, 232, 0.55);
  margin-bottom: 2px;
}

.exp-desc {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(240, 237, 232, 0.6);
  margin-bottom: 8px;
}

.exp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.exp-chip {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(240, 237, 232, 0.6);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 2px;
}

.exp-via {
  font-family: var(--font-body);
  font-size: 13px;
  font-style: italic;
  color: rgba(240, 237, 232, 0.55);
  margin-top: 6px;
}

/* ── Tools Grid ── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px 12px;
}

.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.tool-item img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.tool-item span {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.4;
  color: rgba(240, 237, 232, 0.6);
}

/* ── CTA SECTION ─────────────────────────────────────────── */
.cta-section {
  padding: 120px 8vw;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.cta-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 86px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text);
}

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

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--bg);
  background: var(--text);
  padding: 16px 32px;
  border-radius: 2px;
  align-self: flex-start;
  transition: background 0.2s, gap 0.2s;
}

.cta-btn:hover {
  background: var(--accent-warm);
  gap: 16px;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 48px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-center {
  display: flex;
  justify-content: center;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-link {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

/* ── BACK TO TOP ─────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 56px;
  right: 32px;
  z-index: 200;
  width: 44px;
  height: 44px;
  border-radius: 2px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out), background 0.2s, color 0.2s, border-color 0.2s;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* ── SCROLLBAR ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }
