/*
Theme Name: Swivel Marketing
Theme URI: https://swivel-marketing.com
Author: Swivel Marketing
Description: Custom theme for Swivel Marketing — experiential/BTL agency site with AI chat assistant and a Job Center.
Version: 1.0.0
Requires PHP: 8.0
Text Domain: swivel
*/

:root {
  /* Light mode is the default — dark mode overrides below */
  --swivel-bg: #FAF7F1;
  --swivel-bg-2: #F1ECE2;
  --swivel-surface: #FFFFFFee;
  --swivel-surface-2: #FBF8F2;
  --swivel-text: #120F0B;
  --swivel-text-soft: #4A4339;
  --swivel-text-faint: #A89E8F;
  --swivel-accent: #FCB92D;
  --swivel-accent-deep: #EA9A0E;
  --swivel-accent-2: #FFE6A8;
  --swivel-muted: #4A4339;
  --swivel-border: rgba(27,24,20,0.12);
  --swivel-tint-weak: rgba(27,24,20,0.04);
  --swivel-tint-med: rgba(27,24,20,0.08);
  --swivel-tint-strong: rgba(27,24,20,0.18);
  --swivel-serif: "Poppins", "Montserrat", system-ui, sans-serif;
  --swivel-sans: "Montserrat", "Poppins", system-ui, sans-serif;
  --swivel-mono: "Montserrat", "Poppins", system-ui, sans-serif;
}

html[data-theme="dark"] {
  --swivel-bg: #0F0D0B;
  --swivel-bg-2: #1A1713;
  --swivel-surface: #1C1813;
  --swivel-surface-2: #221E18;
  --swivel-text: #F6F1E8;
  --swivel-text-soft: #C2B9AB;
  --swivel-text-faint: #8B8273;
  --swivel-accent: #FFC44D;
  --swivel-accent-deep: #FFB22E;
  --swivel-accent-2: #ffb703;
  --swivel-muted: #C2B9AB;
  --swivel-border: rgba(246,241,232,0.14);
  --swivel-tint-weak: rgba(255,255,255,0.04);
  --swivel-tint-med: rgba(255,255,255,0.07);
  --swivel-tint-strong: rgba(246,241,232,0.25);
}

* { box-sizing: border-box; }

.mono { font-family: var(--swivel-mono); }

body {
  margin: 0;
  font-size: 16px;
  background-color: var(--swivel-bg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  color: var(--swivel-text);
  font-family: var(--swivel-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* Dark mode: remove photo, use flat background like the original */
html[data-theme="dark"] body {
  background-image: none;
}

/* Light mode: contrast wash over the fixed background so text reads clearly */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(rgba(250,247,241,0.42), rgba(250,247,241,0.30));
}
html[data-theme="dark"] body::before {
  background: none;
}

/* Ensure all content sits above the fixed body::before overlay */
body > * { position: relative; z-index: 1; }

a { color: inherit; }

.container {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 48px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
}

.section { padding: 96px 0; }

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--swivel-accent-deep);
  font-weight: 600;
}

h1, h2, h3 { font-family: var(--swivel-serif); margin: 0 0 16px; }

.btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--swivel-accent);
  color: #14120f;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid color-mix(in srgb, var(--swivel-text) 40%, transparent);
  color: var(--swivel-text);
  font-weight: 600;
}
.btn-outline:hover {
  border-color: var(--swivel-accent);
  color: var(--swivel-accent);
}

/* Nav */
.swivel-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--swivel-bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--swivel-border);
}
.swivel-nav .container { display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(12px, 1.8vw, 26px); gap: 24px; }
.swivel-nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; flex: 1; justify-content: center; flex-wrap: wrap; }
.swivel-nav-links a { text-decoration: none; font-size: 15px; color: var(--swivel-text-soft); font-weight: 600; letter-spacing: 0.04em; }
.swivel-nav-links a:hover { color: var(--swivel-text); }

.swivel-logo {
  display: flex;
  align-items: center;
  gap: 13px;
  font-family: var(--swivel-serif);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.5px;
  text-decoration: none;
  color: var(--swivel-text);
  white-space: nowrap;
}
.swivel-logo .accent { color: var(--swivel-accent-deep); }
.swivel-orb {
  width: 50px;
  height: 50px;
  object-fit: contain;
  display: inline-block;
  animation: swivel-spin 26s linear infinite;
}

@keyframes swivel-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.swivel-nav-actions { display: flex; align-items: center; gap: 16px; }

.theme-switch { position: relative; display: inline-block; cursor: pointer; }
.theme-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track {
  display: block;
  width: 52px;
  height: 28px;
  border-radius: 999px;
  background: var(--swivel-surface);
  border: 1px solid var(--swivel-border);
  position: relative;
  transition: background 0.2s ease;
}
.switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--swivel-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #14120f;
  transition: transform 0.25s ease;
}
.theme-switch input:checked + .switch-track .switch-thumb { transform: translateX(24px); }
.switch-icon { width: 13px; height: 13px; position: absolute; transition: opacity 0.15s ease; }
.icon-moon { opacity: 1; }
.icon-sun { opacity: 0; }
.theme-switch input:checked + .switch-track .icon-moon { opacity: 0; }
.theme-switch input:checked + .switch-track .icon-sun { opacity: 1; }

.btn-sm { padding: 8px 18px; font-size: 13px; white-space: nowrap; }

/* Hero */
.hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: visible;
}
/* In dark mode: hero needs its own dark overlay since body::before is removed */
html[data-theme="dark"] .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,13,11,0.55), rgba(15,13,11,0.82));
  z-index: 0;
}
/* The dot-grid texture stays in both modes */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--swivel-text) 12%, transparent) 1px, transparent 0);
  background-size: 28px 28px;
  z-index: 0;
  pointer-events: none;
}
.hero-inner, .hero-chip { position: relative; z-index: 1; }
.hero-inner { position: relative; text-align: center; max-width: 780px; margin: 0 auto; }
.hero-headline { font-size: clamp(46px, 11vw, 150px); line-height: 1.02; letter-spacing: -0.02em; margin-bottom: 20px; color: var(--swivel-text); font-weight: 900; }
.hero-headline .italic { font-style: italic; color: var(--swivel-accent-deep); }
.hero-sub { color: var(--swivel-text-soft); font-size: clamp(16px, 1.5vw, 18px); max-width: 600px; margin: 0 auto 32px; }
.hero .btn-outline { color: var(--swivel-text); border-color: var(--swivel-border); }
.hero .btn-outline:hover { color: var(--swivel-accent); border-color: var(--swivel-accent); }
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-chip {
  position: absolute;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--swivel-muted);
  background: var(--swivel-surface);
  border: 1px solid var(--swivel-border);
  border-radius: 999px;
  padding: 8px 16px;
  white-space: nowrap;
  z-index: 2;
  backdrop-filter: blur(4px);
}
.hero-chip b { color: var(--swivel-accent); font-family: var(--swivel-serif); font-weight: 800; font-size: 13px; margin-right: 5px; }
.hero-chip span { color: var(--swivel-muted); font-size: 10px; letter-spacing: 0.12em; }
.hero-chip-left  { top: 8%; left: 4%; }
.hero-chip-right { top: 8%; right: 4%; }
.hero-chip-bl    { bottom: 12%; left: 4%; }
.hero-chip-br    { bottom: 12%; right: 4%; }
@media (max-width: 1280px) { .hero-chip { display: none; } }

/* Data strips */
.data-strip { position: absolute; z-index: 1; font-size: 9px; color: var(--swivel-muted); letter-spacing: 0.1em; pointer-events: none; opacity: 0.6; }
.data-strip.s1 { left: -1%; top: 18%; transform: rotate(-90deg); transform-origin: left; }
.data-strip.s2 { left: 4%; bottom: 8%; }

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--swivel-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.scroll-hint i { display: block; width: 1px; height: 34px; background: linear-gradient(var(--swivel-muted), transparent); animation: hintPulse 2s ease-in-out infinite; }
@keyframes hintPulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
@media (max-width: 900px) {
  .hero-chip { position: static; display: inline-block; margin: 8px; }
}

.card-flagship { border-color: var(--swivel-accent); box-shadow: 0 0 0 1px var(--swivel-accent) inset; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* Hero headline transition */
#hero-headline { transition: opacity 0.2s ease; }

/* Orbit / node wheel */
.stage {
  position: relative;
  width: min(82vw, 560px);
  aspect-ratio: 1;
  margin: 24px auto 0;
  display: grid;
  place-items: center;
  overflow: visible;
}
.spokes { position: absolute; inset: 0; width: 100%; height: 100%; }
.spoke-line, .spoke-ring, .spoke-ring-dashed { stroke: var(--swivel-border); }

.orb-wrap {
  position: relative;
  z-index: 4;
  width: 44%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  filter: drop-shadow(0 18px 40px rgba(234,154,14,0.35));
}
.orb-core {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: swivel-spin 40s linear infinite;
  will-change: transform;
}
.orb-wrap.orb-active { filter: drop-shadow(0 18px 60px rgba(234,154,14,0.55)); }
.core-label {
  position: absolute;
  font-family: var(--swivel-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: transparent;
  bottom: -8%;
  white-space: nowrap;
  transition: color 0.3s ease;
}
.orb-wrap:hover .core-label,
.orb-wrap.orb-active .core-label {
  color: var(--swivel-text-faint);
}

.node {
  position: absolute;
  z-index: 4;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--swivel-text);
  width: 90px;
  text-align: center;
}
.node-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(20,18,15,0.6);
  backdrop-filter: blur(3px);
  border: 1px solid var(--swivel-tint-strong);
  color: #f5f4f0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.node-dot svg { width: 18px; height: 18px; }
.node:hover .node-dot { border-color: var(--swivel-accent); color: var(--swivel-accent); }
.node-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(20,18,15,0.6);
  backdrop-filter: blur(3px);
  padding: 3px 10px;
  border-radius: 8px;
}
.node-num { font-size: 9px; color: var(--swivel-muted); letter-spacing: 0.1em; }
.node-label {
  font-family: var(--swivel-sans);
  font-weight: 700;
  font-size: 15px;
  color: var(--swivel-text);
  margin-top: 2px;
  transition: color 0.25s;
}
.node:hover .node-label,
.node.on .node-label { color: var(--swivel-accent-deep); }
.node-sub {
  font-family: var(--swivel-mono);
  font-size: 8px;
  color: var(--swivel-text-faint);
  letter-spacing: 0.08em;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: 0.3s;
  margin-top: 3px;
}
.node:hover .node-sub,
.node.on .node-sub { max-height: 20px; opacity: 1; }

@media (max-width: 900px) {
  .stage { display: none; } /* wheel geometry doesn't degrade gracefully on narrow screens */
}

/* Tilted vertical project-feed window — positioned inside the stage,
   spilling out to the right of the orb, matching the original design. */
.feed-window {
  position: absolute;
  z-index: 1;
  width: clamp(220px, 44%, 340px);
  aspect-ratio: 3 / 4;
  right: -30%;
  top: 10%;
  border: 1.5px solid rgba(0,0,0,0.15);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #f6f1e7);
  overflow: hidden;
  box-shadow: 0 34px 70px -30px rgba(20,18,15,0.55);
  transform: rotate(4deg);
}
.feed-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 13px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(20,18,15,0.6);
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.feed-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--swivel-accent);
  box-shadow: 9px 0 0 rgba(20,18,15,0.15), 18px 0 0 rgba(20,18,15,0.15);
  margin-left: auto;
}
.feed-track {
  display: flex;
  flex-direction: column;
  animation: feed-scroll-vertical 19.2s linear infinite;
}
.feed-window:hover .feed-track { animation-play-state: paused; }
.feed-card {
  height: 140px;
  margin: 9px;
  border-radius: 9px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 11px;
  color: #fff;
  flex: 0 0 auto;
  background-size: cover;
  background-position: center;
  background-color: #ddd;
  text-decoration: none;
}
.feed-card span {
  font-size: 11px;
  letter-spacing: 0.06em;
  position: relative;
  z-index: 2;
  line-height: 1.35;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.feed-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.55));
}
@keyframes feed-scroll-vertical {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
@media (max-width: 760px) {
  .feed-window { display: none; }
}

/* Vertical edge rail text */
.hero-rail {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: 10.5px;
  letter-spacing: 0.3em;
  color: var(--swivel-muted);
  writing-mode: vertical-rl;
  z-index: 1;
}
.hero-rail i { width: 1px; height: 80px; background: linear-gradient(var(--swivel-border), transparent); font-style: normal; }
.hero-rail.left { left: 20px; transform: translateY(-50%) rotate(180deg); }
.hero-rail.right { right: 20px; }
@media (max-width: 1100px) {
  .hero-rail { display: none; }
}

/* Single Case Study page — matches original pp-* classes exactly */
.pp-back {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--swivel-muted);
  text-decoration: none;
  margin-bottom: 24px;
}
.pp-back:hover { color: var(--swivel-accent); }
.pp-hero-eyebrow {
  font-family: var(--swivel-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--swivel-accent);
  text-transform: uppercase;
}
.pp-title {
  font-family: var(--swivel-serif);
  font-weight: 900;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 12px 0 14px;
  max-width: 18ch;
}
.pp-summary { color: var(--swivel-muted); font-size: 19px; line-height: 1.6; max-width: 62ch; }

.pp-cs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--swivel-border); border: 1px solid var(--swivel-border); border-radius: 16px; overflow: hidden; margin: 46px 0; }
.pp-cs-block { background: var(--swivel-surface); padding: 28px 24px; }
.pp-cs-h { font-family: var(--swivel-mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--swivel-text); display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 700; }
.pp-cs-n { font-family: var(--swivel-serif); font-weight: 900; font-size: 18px; color: var(--swivel-accent); }
.pp-cs-block p { color: var(--swivel-muted); font-size: 16px; line-height: 1.7; }

.pp-impact-h { margin: 42px 0 0; font-size: 13px; }
.pp-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--swivel-border); border: 1px solid var(--swivel-border); border-radius: 16px; overflow: hidden; margin: 20px 0 46px; }
.pp-metric { background: var(--swivel-bg); padding: 26px 22px; }
.pp-metric .num { font-family: var(--swivel-serif); font-weight: 900; font-size: clamp(30px, 4vw, 46px); line-height: 1; color: var(--swivel-text); }
.pp-metric .num .unit { color: var(--swivel-accent); }
.pp-metric .pp-metric-l { font-family: var(--swivel-mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--swivel-muted); text-transform: uppercase; margin-top: 10px; line-height: 1.5; }

.pp-album-h {
  font-family: var(--swivel-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--swivel-muted);
  text-transform: uppercase;
  margin: 10px 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pp-album-h::before { content: ""; width: 24px; height: 1px; background: var(--swivel-accent); }
.pp-album { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.pp-shot { margin: 0; position: relative; border-radius: 10px; overflow: hidden; }
.pp-shot.big { grid-column: span 2; }
.pp-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-shot figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 20px 10px 8px;
}
/* WP Gallery block images added via the content editor render inline —
   give them the same treatment as pp-shot so they blend into the album grid. */
/* WP Gallery block overrides removed — album now renders via our own
   controlled markup (see swivel_project_album()), not core Gallery blocks. */

.pp-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding: 32px;
  background: var(--swivel-surface);
  border: 1px solid var(--swivel-border);
  border-radius: 16px;
}
.pp-cta h4 { margin: 0 0 6px; }
.pp-cta p { margin: 0; color: var(--swivel-muted); }
@media (max-width: 760px) {
  .pp-cs { grid-template-columns: 1fr; }
  .pp-shot.big { grid-column: span 1; }
}

/* Brief Builder */
.config { background: linear-gradient(180deg, var(--swivel-bg), color-mix(in srgb, var(--swivel-bg) 85%, black)); border-top: 1px solid var(--swivel-border); border-bottom: 1px solid var(--swivel-border); }
.config-wrap { display: grid; grid-template-columns: 1.5fr 0.9fr; gap: 38px; margin-top: 48px; }
@media (max-width: 920px) { .config-wrap { grid-template-columns: 1fr; } }

.config-form { display: flex; flex-direction: column; gap: 10px; }
.cfg-step { font-size: 12px; letter-spacing: 0.1em; color: var(--swivel-accent); margin: 18px 0 6px; text-transform: uppercase; }

.svc-select { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.svc-opt {
  display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 14px 16px; border: 1px solid var(--swivel-border); border-radius: 12px;
  background: var(--swivel-surface); cursor: pointer; transition: 0.2s; flex-wrap: wrap;
  font-family: inherit; color: var(--swivel-text); width: 100%;
}
.svc-opt:hover { border-color: var(--swivel-accent); }
.svc-opt.sel { border-color: var(--swivel-accent); background: linear-gradient(160deg, color-mix(in srgb, var(--swivel-accent) 12%, transparent), var(--swivel-surface)); }
.svc-opt-check { width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--swivel-tint-strong); flex-shrink: 0; transition: 0.2s; position: relative; }
.svc-opt.sel .svc-opt-check { background: var(--swivel-accent); border-color: var(--swivel-accent); }
.svc-opt.sel .svc-opt-check::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #14120f; font-size: 12px; font-weight: 900; }
.svc-opt-t { font-weight: 600; font-size: 15px; flex: 1; }
.svc-opt-tag { font-size: 9px; letter-spacing: 0.1em; color: var(--swivel-muted); width: 100%; padding-left: 28px; }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  padding: 10px 18px; border-radius: 30px; border: 1px solid var(--swivel-tint-strong);
  background: transparent; color: var(--swivel-text); font-family: var(--swivel-sans);
  font-size: 13px; cursor: pointer; transition: 0.2s;
}
.pill:hover { border-color: var(--swivel-accent); }
.pill.on { background: var(--swivel-accent); border-color: var(--swivel-accent); color: #14120f; font-weight: 600; }

.summary {
  position: sticky; top: 96px; align-self: start;
  background: #1B1813; color: #f3ede1; border-radius: 18px; padding: 28px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 40px 70px -40px rgba(0,0,0,0.6);
}
html[data-theme="light"] .summary { background: #26211A; border-color: rgba(255,255,255,0.1); }
.sm-label { font-family: var(--swivel-mono); font-size: 12px; letter-spacing: 0.18em; color: var(--swivel-accent); text-transform: uppercase; margin-bottom: 6px; }
.sm-title { font-family: var(--swivel-serif); font-weight: 800; font-size: 24px; margin-bottom: 16px; color: #f3ede1; }
.sm-count { font-family: var(--swivel-serif); font-weight: 900; font-size: 52px; color: var(--swivel-accent); line-height: 1; }
.sm-count-l { font-size: 10px; letter-spacing: 0.14em; color: #9b9284; margin: 4px 0 20px; }
.sm-row { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 0.08em; color: #c9bfae; padding: 12px 0; border-top: 1px dashed rgba(255,255,255,0.14); }
.sm-hint { font-size: 10px; letter-spacing: 0.06em; color: #9b9284; text-align: center; margin-top: 12px; }
.sm-err { font-size: 11px; color: #ff9b8a; text-align: center; margin-top: 10px; }

.submit-btn {
  width: 100%; margin-top: 22px; padding: 15px; border: 0; border-radius: 40px; cursor: pointer;
  background: var(--swivel-accent); color: #1B1813; font-family: var(--swivel-mono); font-weight: 700; font-size: 13px;
  letter-spacing: 0.08em; transition: 0.25s; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.submit-btn:hover { background: #fff; transform: translateY(-2px); }
.submit-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.brief-out { animation: brief-in 0.4s ease; }
@keyframes brief-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.brief-summary { color: #c9bfae; font-size: 13.5px; line-height: 1.6; margin-bottom: 18px; }
.brief-block { margin-bottom: 16px; }
.brief-h { font-size: 10px; letter-spacing: 0.12em; color: var(--swivel-accent); margin-bottom: 6px; }
.brief-block p, .brief-block li { color: #d9d2c6; font-size: 13px; line-height: 1.6; }
.brief-block ul { padding-left: 18px; margin: 0; }
.brief-reset { display: block; width: 100%; text-align: center; margin-top: 12px; background: none; border: 0; color: #9b9284; font-size: 11px; letter-spacing: 0.08em; cursor: pointer; }
.brief-reset:hover { color: #fff; }

.lead-capture { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.lead-input {
  width: 100%; padding: 10px 14px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.07); color: #f3ede1;
  font-size: 13px; font-family: inherit;
  transition: border-color 0.2s ease;
}
.lead-input::placeholder { color: rgba(243,237,225,0.45); }
.lead-input:focus { outline: none; border-color: var(--swivel-accent); }

/* Phydigital demo */
.phy-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .phy-wrap { grid-template-columns: 1fr; }
}

.phy-demo {
  background: var(--swivel-surface);
  border: 1px solid var(--swivel-border);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 260px;
}

.phy-screen {
  width: 160px;
  height: 120px;
  background: #0b0b0c;
  border: 1px solid var(--swivel-tint-strong);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phy-screen-head {
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--swivel-accent);
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.phy-screen-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.phy-orb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: conic-gradient(var(--swivel-accent) 0deg, var(--swivel-accent-2) 100deg, #7a4a05 200deg, var(--swivel-accent) 360deg);
  animation: swivel-spin 4s linear infinite;
}
.phy-screen-label { font-size: 10px; color: #fff; letter-spacing: 0.08em; }

.phy-beam {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--swivel-accent), transparent);
  position: relative;
}
.phy-beam::after {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--swivel-accent);
  transform: translateY(-50%);
}

.phy-phone {
  width: 70px;
  height: 130px;
  background: #0b0b0c;
  border: 2px solid var(--swivel-tint-strong);
  border-radius: 14px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.phy-phone-notch { width: 20px; height: 4px; border-radius: 2px; background: var(--swivel-tint-strong); }
.phy-phone-screen {
  flex: 1;
  width: 100%;
  background: rgba(245,166,35,0.08);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.phy-phone-game { width: 22px; height: 22px; border-radius: 6px; background: var(--swivel-accent); }
.phy-phone-cta { font-size: 7px; color: var(--swivel-text); letter-spacing: 0.06em; }

.phy-steps { display: flex; flex-direction: column; gap: 4px; }
.phy-step {
  display: flex;
  gap: 14px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.phy-step:hover { background: var(--swivel-tint-weak); }
.phy-step.on { background: var(--swivel-tint-med); border-color: var(--swivel-accent); }
.phy-step-n { font-size: 11px; color: var(--swivel-accent); font-weight: 700; }
.phy-step-k { font-weight: 700; font-size: 16px; margin-bottom: 2px; }
.phy-step-d { font-size: 14px; color: var(--swivel-muted); }
.phy-cta {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--swivel-accent);
  text-decoration: none;
}
.phy-cta:hover { text-decoration: underline; }

/* Services — dense single-row layout matching original, wraps on narrower screens */
.services-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--swivel-border);
  border: 1px solid var(--swivel-border);
  border-radius: 12px;
  overflow: hidden;
}
.service-card {
  position: relative;
  background: var(--swivel-surface);
  border: none;
  border-radius: 0;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-card h3 { font-size: 16px; margin: 0; line-height: 1.3; }
.service-card p { font-size: 12px; color: var(--swivel-text-soft); margin: 0; flex: 1; }
.service-tag { text-transform: uppercase; letter-spacing: 0.06em; font-size: 10px; color: var(--swivel-accent-deep); font-weight: 700; }
.card-flagship.service-card { background: color-mix(in srgb, var(--swivel-accent) 8%, var(--swivel-surface)); }
.flagship-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--swivel-accent);
  color: #14120f;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 999px;
}
@media (max-width: 1200px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 760px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* Client logo grid */
.client-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.client {
  position: relative;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  min-height: 90px;
  transition: transform 0.15s ease;
}
.client:hover { transform: translateY(-2px); }
.client img { max-width: 85%; max-height: 56px; width: auto; height: auto; object-fit: contain; }
.client-badge { position: absolute; top: 6px; left: 8px; font-size: 9px; color: rgba(0,0,0,0.35); }
@media (max-width: 900px) {
  .client-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1600px) {
  .client-grid { grid-template-columns: repeat(8, 1fr); }
}

/* Unified section heading typography — matches original's .sec-tag/.sec-title/.sec-lead */
.sec-tag {
  font-family: var(--swivel-mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--swivel-accent-deep);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}
.sec-tag::before, .sec-tag::after { content: ""; width: 28px; height: 1px; background: var(--swivel-accent-deep); }
.sec-title {
  font-family: var(--swivel-serif);
  font-weight: 900;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin: 0 auto;
  text-align: center;
}
.sec-title .italic, .sec-title i { font-style: italic; color: var(--swivel-accent-deep); }
.sec-lead {
  color: var(--swivel-text-soft);
  max-width: 58ch;
  margin: 18px auto 0;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.65;
  text-align: center;
}

.card h3 { font-family: var(--swivel-serif); font-weight: 800; font-size: 26px; letter-spacing: -0.01em; margin-bottom: 12px; color: var(--swivel-text); }
.card p { color: var(--swivel-text-soft); font-size: 16px; line-height: 1.6; }

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--swivel-border);
  border: 1px solid var(--swivel-border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 40px;
}
.metric-card { position: relative; background: var(--swivel-bg); padding: 30px 26px; border: none; border-radius: 0; }
.metric-badge { position: absolute; top: 14px; right: 16px; font-size: 10px; color: var(--swivel-text-faint); font-family: var(--swivel-mono); }
.metric-num { font-family: var(--swivel-serif); font-weight: 900; font-size: clamp(38px, 5vw, 56px); line-height: 1; color: var(--swivel-text); margin: 0; }
.metric-num .accent { color: var(--swivel-accent-deep); }
.metric-label { font-family: var(--swivel-mono); font-size: 13px; letter-spacing: 0.08em; color: var(--swivel-text-soft); margin: 12px 0 0; text-transform: uppercase; line-height: 1.5; }
.metric-note { margin: 10px 0 0; font-size: 12px; letter-spacing: 0.04em; color: var(--swivel-text-faint); font-family: var(--swivel-mono); line-height: 1.4; }
.metric-note { margin: 10px 0 0; font-size: 12px; letter-spacing: 0.04em; color: var(--swivel-muted); line-height: 1.4; opacity: 0.8; }
@media (max-width: 900px) {
  .metrics-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .metrics-strip { grid-template-columns: 1fr; }
}

/* Grid helpers */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Footer */
/* Footer — matches original exactly */
footer { background: #16130F; color: #d9d2c6; padding: 70px clamp(18px, 5vw, 80px) 40px; position: relative; z-index: 1; overflow: hidden; }
html[data-theme="dark"] footer { background: #0B0907; border-top: 1px solid rgba(255,255,255,0.06); }
.foot-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 780px) { .foot-grid { grid-template-columns: 1fr; } }

.foot-brand .wm { font-family: var(--swivel-serif); font-style: normal; font-weight: 800; font-size: 34px; color: #fff; display: block; }
.foot-brand .wm b { color: var(--swivel-accent-deep); }
.foot-brand p { margin-top: 14px; font-size: 14px; color: #9b9284; max-width: 34ch; line-height: 1.6; }
.foot-orb { position: absolute; right: -60px; bottom: -60px; width: 240px; opacity: 0.07; animation: swivel-spin 50s linear infinite; }

.socials { display: flex; gap: 12px; margin-top: 20px; }
.soc { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); transition: 0.25s; text-decoration: none; }
.soc svg { width: 18px; height: 18px; fill: #c9bfae; transition: 0.25s; }
.soc:hover { background: var(--swivel-accent); border-color: var(--swivel-accent); transform: translateY(-3px); }
.soc:hover svg { fill: #14120f; }

.foot-col h5 { font-family: var(--swivel-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--swivel-accent); text-transform: uppercase; margin-bottom: 16px; margin-top: 0; }
.foot-col a { display: block; color: #c9bfae; font-size: 15px; padding: 5px 0; transition: 0.2s; text-decoration: none; }
.foot-col a:hover { color: #fff; padding-left: 6px; }

.city-list { margin-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.city-label { font-size: 9.5px; letter-spacing: 0.12em; color: #7d7466; margin-bottom: 6px; display: block; }
.city { display: flex; flex-direction: column; gap: 2px; padding: 7px 0; }
.city .city-name { color: #c9bfae; font-family: var(--swivel-sans); font-size: 14px; }
.city .city-num { color: var(--swivel-accent); font-family: var(--swivel-mono); font-size: 12px; letter-spacing: 0.04em; transition: 0.2s; }
.city .city-num:hover { color: #fff; }

.foot-bottom { max-width: 1240px; margin: 50px auto 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: var(--swivel-mono); font-size: 11px; color: #7d7466; letter-spacing: 0.05em; }

/* Cards */
.card {
  background: var(--swivel-surface);
  border: 1px solid var(--swivel-border);
  border-radius: 16px;
  padding: 28px;
}

/* Job Center */
.job-filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.job-filters select {
  background: var(--swivel-surface);
  color: var(--swivel-text);
  border: 1px solid var(--swivel-tint-strong);
  border-radius: 8px;
  padding: 10px 14px;
}
.job-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.job-meta { color: var(--swivel-text-faint); font-size: 14px; }
.job-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--swivel-tint-strong);
  margin-right: 8px;
}

/* Swivel Bot */
#swivel-bot-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--swivel-accent);
  color: #14120f;
  border: none;
  cursor: pointer;
  font-size: 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

#swivel-bot-panel {
  position: fixed;
  bottom: 92px;
  right: 24px;
  z-index: 100;
  width: 340px;
  max-width: calc(100vw - 48px);
  height: 460px;
  max-height: calc(100vh - 140px);
  background: var(--swivel-surface);
  border: 1px solid var(--swivel-border);
  border-radius: 16px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
#swivel-bot-panel.open { display: flex; }
#swivel-bot-header {
  padding: 14px 16px;
  background: var(--swivel-tint-weak);
  font-weight: 600;
  border-bottom: 1px solid var(--swivel-tint-med);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#swivel-bot-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.bot-msg { padding: 10px 12px; border-radius: 12px; font-size: 14px; max-width: 85%; }
.bot-msg.user { align-self: flex-end; background: var(--swivel-accent); color: #14120f; }
.bot-msg.assistant { align-self: flex-start; background: var(--swivel-tint-med); }
.bot-msg.typing { opacity: 0.6; font-style: italic; }
#swivel-bot-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--swivel-tint-med); }
#swivel-bot-input {
  flex: 1;
  background: var(--swivel-tint-med);
  border: 1px solid var(--swivel-border);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--swivel-text);
}
#swivel-bot-form button {
  background: var(--swivel-accent);
  color: #14120f;
  border: none;
  border-radius: 999px;
  padding: 0 18px;
  cursor: pointer;
}

/* ============================================================
   RESPONSIVE — comprehensive mobile pass
   ============================================================ */

/* --- Nav: hide links + actions at 860px, show hamburger --- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--swivel-text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .swivel-nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--swivel-bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 100;
  }
  .swivel-nav-links.open { display: flex; }
  .swivel-nav-links a { font-size: 22px; font-weight: 700; }
  .swivel-nav-actions .btn-sm { display: none; }
  .nav-hamburger { display: flex; }
  .swivel-nav .container { padding: 14px 20px; }
}

/* --- Hero chips: hide at 1280px like original (now handled in main chip rules above) --- */

/* --- Stage (node wheel): hide at 860px --- */
@media (max-width: 860px) {
  .stage { display: none; }
}

/* --- Hero: tighter padding on small screens --- */
@media (max-width: 860px) {
  .hero { padding: 100px 0 60px; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn, .hero-ctas .btn-outline { width: 100%; max-width: 300px; text-align: center; }
}

/* --- Section headings: tighter on mobile --- */
@media (max-width: 640px) {
  .sec-title { font-size: clamp(26px, 7vw, 42px); }
  .sec-lead { font-size: 15px; }
  .section { padding: 60px 0; }
}

/* --- WhyUs grid (grid-2) --- */
@media (max-width: 760px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* --- Phydigital beam: vertical on mobile --- */
@media (max-width: 900px) {
  .phy-beam {
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, transparent, var(--swivel-accent), transparent);
    margin: 0 auto;
  }
  .phy-beam::after { display: none; }
  .phy-demo { flex-direction: column; min-height: auto; }
}

/* --- Container: tighter padding on phones --- */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
}

/* --- Swivel Bot: full-width on very small screens --- */
@media (max-width: 420px) {
  #swivel-bot-panel {
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
    bottom: 80px;
  }
  #swivel-bot-launcher { right: 16px; bottom: 16px; }
}

/* --- Brief Builder: single column on mobile --- */
@media (max-width: 640px) {
  .svc-select { grid-template-columns: 1fr; }
  .pill-row { gap: 8px; }
  .pill { padding: 8px 14px; font-size: 12px; }
  .summary { position: static; }
}

/* --- Footer: smaller padding on mobile --- */
@media (max-width: 480px) {
  footer { padding: 48px 20px 32px; }
  .foot-bottom { font-size: 10px; flex-direction: column; gap: 6px; }
}

/* --- Case study detail: single col on mobile --- */
@media (max-width: 560px) {
  .pp-shot.big { grid-column: span 1; }
  .pp-album { grid-template-columns: 1fr 1fr; }
  .pp-title { font-size: clamp(28px, 8vw, 48px); }
  .pp-cta { flex-direction: column; }
  .pp-cta .btn { width: 100%; text-align: center; }
}

/* --- Job Center: full-width cards on mobile --- */
@media (max-width: 600px) {
  .job-card { flex-direction: column; align-items: flex-start; }
  .job-card .btn { width: 100%; text-align: center; }
}

/* --- Metrics strip: already has its breakpoints, add phone single-col --- */
@media (max-width: 400px) {
  .metrics-strip { grid-template-columns: 1fr; }
}

/* --- Respect reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dark mode: alternate section backgrounds for depth, matching original */
html[data-theme="dark"] #services,
html[data-theme="dark"] #whyus,
html[data-theme="dark"] #clients,
html[data-theme="dark"] #flexigig,
html[data-theme="dark"] #brief {
  background: var(--swivel-bg-2);
}
html[data-theme="dark"] .metrics-strip { background: var(--swivel-border); }
html[data-theme="dark"] .metric-card { background: var(--swivel-surface); }
html[data-theme="dark"] .services-grid { background: var(--swivel-border); }
html[data-theme="dark"] .service-card { background: var(--swivel-surface); }
html[data-theme="dark"] .card { background: var(--swivel-surface); }
html[data-theme="dark"] .summary { background: var(--swivel-surface-2); }
html[data-theme="dark"] footer { background: #0B0907; }
html[data-theme="dark"] #swivel-bot-panel { background: var(--swivel-surface); }
