/*
Theme Name: DKB. — Dalton Keith Brown
Theme URI: https://daltonkeithbrown.com
Author: Dalton Keith Brown
Author URI: https://daltonkeithbrown.com
Description: Single-page personal brand + marketing services theme for Dalton Keith Brown (DKB.). Light mode, red accent, Barlow Condensed / Inter / Space Mono.
Version: 1.2.6
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dkb
*/

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

:root {
  --white:   #FFFFFF;
  --off:     #F7F7F7;
  --light:   #EFEFEF;
  --border:  #E2E2E2;
  --text:    #111111;
  --muted:   #777777;
  --dark:    #0A0A0A;
  --red:     #CC1111;
  --red-bg:  rgba(204,17,17,0.07);
  --nav-h:   72px;
  --max:     1200px;
  --pad:     84px;
}

/* Offset anchor jumps so section tops clear the fixed nav (item 19) */
#hero, .section, .contact-section, .cta-section { scroll-margin-top: var(--nav-h); }
.section, .contact-section { scroll-margin-top: calc(var(--nav-h) + 28px); }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  background: var(--white);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}
/* Never let media push past the viewport (iOS Safari pinch / overflow safety) */
img, svg, video, iframe { max-width: 100%; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ── NAV ──
   Target the top bar by position (direct child of body) AND class, so the dark
   background still applies even if a cache serves older HTML without .site-nav.
   The portfolio jump-nav is nested inside a section, so it's never matched. */
body > nav, .site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--dark);
  z-index: 1000;
  border-bottom: 1px solid #1a1a1a;
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo img { height: 36px; display: block; }
.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-links a {
  font-family: 'Space Mono', monospace;
  font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase;
  color: #777; text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; }
.nav-cta {
  background: var(--red) !important; color: #fff !important;
  padding: 9px 20px; border-radius: 4px; font-weight: 700 !important;
}
.nav-cta:hover { opacity: 0.88; }
.nav-cta.active { color: #fff !important; }

/* Hamburger (hidden on desktop) */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: none; border: 0; cursor: pointer;
  padding: 9px; position: relative; z-index: 1002;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: #fff; border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu backdrop */
.nav-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 999;
}
.nav-backdrop.open { opacity: 1; visibility: visible; }

/* ── HERO ── */
#hero {
  padding-top: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
}

/* Left identity card */
.hero-card {
  background: var(--off);
  border-right: 1px solid var(--border);
  padding: 40px 36px 48px;
  display: flex; flex-direction: column;
  position: relative;
}
.hero-card-top { display: none; }
.hero-card-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 24px;
  width: fit-content;
}
.hero-card-logo img { height: 40px; width: auto; display: block; }
.hero-card-photo { margin-bottom: 22px; }
.hero-card-photo img {
  width: 116px; height: 116px; border-radius: 50%;
  object-fit: cover; display: block;
  border: 3px solid var(--white); box-shadow: 0 3px 16px rgba(0,0,0,0.12);
}
.hero-card-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 22px;
  text-transform: uppercase; letter-spacing: 0.03em;
  margin-bottom: 6px;
}
.hero-card-role {
  font-size: 13px; color: var(--muted);
  line-height: 1.5; margin-bottom: 20px;
}
.hero-card-loc {
  font-family: 'Space Mono', monospace;
  font-size: 10px; color: var(--muted);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-available {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: #1a9a1a;
  margin-bottom: 32px;
}
.hero-available::before {
  content: ''; width: 8px; height: 8px;
  background: #1a9a1a; border-radius: 50%;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; } 50% { opacity:0.4; }
}
.hero-card-links {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: auto;
}
.hero-card-link {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--muted);
  text-decoration: none; transition: color 0.2s;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.hero-card-link:hover { color: var(--red); }
.hero-card-link svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Right hero content */
.hero-content {
  padding: 52px 56px;
  display: flex; flex-direction: column; justify-content: center;
  min-width: 0; /* allow shrink so text wraps instead of overflowing on mobile */
}
.hero-hello {
  font-family: 'Space Mono', monospace;
  font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--red);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.hero-hello::before {
  content: ''; display: block;
  width: 32px; height: 2px; background: var(--red);
}
h1.hero-h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(52px, 6.5vw, 88px);
  line-height: 0.93; letter-spacing: -0.01em;
  text-transform: uppercase;
  max-width: 640px; margin-bottom: 28px;
}
h1.hero-h1 em { font-style: italic; color: var(--red); }
.hero-desc {
  font-size: 17px; color: var(--muted);
  max-width: 480px; line-height: 1.7; margin-bottom: 36px;
  overflow-wrap: break-word;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }

/* Buttons */
.btn-red {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: #fff;
  font-family: 'Space Mono', monospace;
  font-size: 11px; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; padding: 13px 24px;
  border-radius: 4px; text-decoration: none;
  transition: opacity 0.2s;
  border: 0; cursor: pointer;
}
.btn-red:hover { opacity: 0.88; }
.btn-border {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text); border: 1.5px solid var(--border);
  font-family: 'Space Mono', monospace;
  font-size: 11px; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; padding: 12px 24px;
  border-radius: 4px; text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-border:hover { border-color: var(--text); }

/* Brand marquee in hero */
.hero-marquee { overflow: hidden; border-top: 1px solid var(--border); padding-top: 24px; }
.hero-marquee-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 16px;
}
.marquee-mask { overflow: hidden; width: 100%; }
.marquee-track {
  display: flex; gap: 0; align-items: center;
  animation: marquee 30s linear infinite;
  white-space: nowrap; width: max-content;
  will-change: transform;
}
.marquee-logo {
  height: 22px; width: auto; display: block; flex-shrink: 0;
  padding: 0 26px;
}
/* Logos whose artwork sits small in the file — sized up to match the row */
.marquee-logo--lg { height: 26px; }
.marquee-track span {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 15px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #BBBBBB; padding: 0 32px;
}
.marquee-track span.dot { color: var(--red); padding: 0 4px; font-size: 10px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── STATS COUNTER ROW ── */
.stats-row {
  background: var(--dark);
  padding: 36px var(--pad);
}
.stats-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}
.stat-item {
  padding: 24px 20px;
  border-right: 1px solid #1f1f1f;
  text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 36px;
  color: var(--red); line-height: 1; margin-bottom: 8px;
}
.stat-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px; letter-spacing: 0.1em;
  text-transform: uppercase; color: #555;
  line-height: 1.4;
}
.stat-feature .stat-num { font-size: 54px; }
.stat-feature .stat-label { color: #888; }

/* Press row */
.press-row {
  background: var(--off);
  border-bottom: 1px solid var(--border);
  padding: 20px var(--pad);
  display: flex; align-items: center; gap: 40px;
  flex-wrap: wrap;
}
.press-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
  white-space: nowrap; flex-shrink: 0;
}
.press-names { display: flex; gap: 28px; flex-wrap: wrap; }
.press-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 16px;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: #C8C8C8;
}

/* ── SECTION SHELL ── */
.section {
  padding: 72px var(--pad);
}
.section.bg-off { background: var(--off); }
.section.bg-dark { background: var(--dark); }
.section.border-top { border-top: 1px solid var(--border); }

.section-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--red);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 12px;
}
.section-eyebrow::after {
  content: ''; display: block;
  width: 32px; height: 1px; background: var(--red); opacity: 0.5;
}
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(38px, 5vw, 62px);
  text-transform: uppercase; line-height: 0.95;
  letter-spacing: -0.01em; margin-bottom: 16px;
}
.section-sub {
  font-size: 15px; color: var(--muted);
  max-width: 560px; line-height: 1.7; margin-bottom: 36px;
}
.section-header {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 32px; flex-wrap: wrap; gap: 20px;
}
.section-more {
  font-family: 'Space Mono', monospace;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--red); text-decoration: none;
  display: flex; align-items: center; gap: 6px;
}
.section-more:hover { opacity: 0.75; }

/* ── WORK / PORTFOLIO ── */
.filter-row {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 32px;
}
.filter-btn {
  font-family: 'Space Mono', monospace;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); background: none;
  border: 1px solid var(--border);
  padding: 8px 18px; border-radius: 100px;
  cursor: pointer; transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--text); color: var(--text); }
.filter-btn.active { background: var(--red); border-color: var(--red); color: #fff; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.work-item { display: block; }
.work-item.hidden { display: none; }

/* video cards */
.work-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #111;
  border-radius: 6px;
}
.work-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.35s, opacity 0.3s;
  opacity: 0.82;
}
.work-item:hover .work-thumb img { transform: scale(1.05); opacity: 1; }
.work-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, transparent 55%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 16px;
}
.work-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 44px; height: 44px; background: var(--red);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s;
}
.work-item:hover .work-play { opacity: 1; }
.work-play svg { width: 14px; height: 14px; margin-left: 3px; }
.work-ov-title {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 15px; text-transform: uppercase; color: #fff; letter-spacing: 0.04em;
  line-height: 1.1;
}
.work-ov-sub {
  font-family: 'Space Mono', monospace; font-size: 9px;
  color: rgba(255,255,255,0.6); margin-top: 3px;
}
.work-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--red);
  font-family: 'Space Mono', monospace;
  font-size: 9px; color: #fff; letter-spacing: 0.06em;
  padding: 3px 8px; border-radius: 3px;
}
.work-caption { padding: 12px 4px; }
.work-caption-tag {
  font-family: 'Space Mono', monospace;
  font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--red); margin-bottom: 5px;
}
.work-caption-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 17px; text-transform: uppercase;
  letter-spacing: 0.02em; color: var(--text);
}

/* Design card (no video thumb) */
.design-card-thumb {
  border-radius: 6px; overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}
.work-item:hover .design-card-thumb {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.design-card-thumb img { width: 100%; display: block; }

/* Masonry design grid — cards pack upward, no big row gaps */
.work-grid--masonry { column-count: 3; column-gap: 16px; }
.work-grid--masonry .work-item {
  break-inside: avoid; -webkit-column-break-inside: avoid;
  margin: 0 0 16px; display: inline-block; width: 100%;
}

/* ── SERVICES ── */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 6px; overflow: hidden;
}
.service-card {
  background: var(--white); padding: 36px 28px;
  transition: background 0.2s;
}
.service-card:hover { background: var(--off); }
.svc-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.svc-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 10px;
  background: var(--red-bg); color: var(--red);
}
.svc-icon svg { width: 24px; height: 24px; }
.svc-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 60px;
  color: var(--light); line-height: 1;
  letter-spacing: -0.02em;
}
.svc-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 22px;
  text-transform: uppercase; margin-bottom: 12px; letter-spacing: 0.02em;
}
.svc-desc { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ── CASE STUDIES ── */
.cases-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.case-card {
  border: 1px solid var(--border); border-radius: 6px;
  padding: 32px 28px; transition: border-color 0.2s, box-shadow 0.2s;
}
.case-card:hover {
  border-color: var(--red);
  box-shadow: 0 8px 32px rgba(204,17,17,0.07);
}
.case-pill {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--red); background: var(--red-bg);
  padding: 4px 10px; border-radius: 100px; margin-bottom: 20px;
}
.case-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 26px; text-transform: uppercase;
  margin-bottom: 4px;
}
.case-client { font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.case-big-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: clamp(44px,5vw,60px);
  color: var(--red); line-height: 1;
}
.case-num-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-top: 6px; margin-bottom: 22px;
}
.case-body {
  font-size: 13px; color: var(--muted); line-height: 1.65;
  border-top: 1px solid var(--border); padding-top: 18px;
}
.case-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.case-link {
  font-family: 'Space Mono', monospace; font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--red); text-decoration: none;
  border-bottom: 1px solid rgba(204,17,17,0.3);
  padding-bottom: 1px; transition: border-color 0.2s;
}
.case-link:hover { border-color: var(--red); }

/* ── EXPERIENCE (numbered like Isti) ── */
.exp-list { display: flex; flex-direction: column; }
.exp-item {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 40px; padding: 40px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.exp-item:first-child { border-top: 1px solid var(--border); }
.exp-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 66px;
  color: #C2C2C2; line-height: 1;
  align-self: start; padding-top: 2px;
}
.exp-body {}
.exp-desc + .exp-desc { margin-top: 10px; }
.exp-meta {
  display: flex; gap: 16px; align-items: center;
  flex-wrap: wrap; margin-bottom: 8px;
}
.exp-dates {
  font-family: 'Space Mono', monospace; font-size: 10px;
  color: var(--muted); letter-spacing: 0.08em;
}
.exp-co-tag {
  font-family: 'Space Mono', monospace; font-size: 10px;
  color: var(--red); letter-spacing: 0.08em;
  background: var(--red-bg); padding: 2px 8px; border-radius: 3px;
}
.exp-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 24px;
  text-transform: uppercase; margin-bottom: 4px;
}
.exp-company { font-size: 14px; color: var(--red); font-weight: 600; margin-bottom: 12px; }
.exp-desc { font-size: 14px; color: var(--muted); line-height: 1.65; max-width: 620px; }
.exp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.exp-tag {
  font-family: 'Space Mono', monospace; font-size: 9px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 3px; background: var(--white);
}

/* ── CONTACT FORM ── */
.contact-section {
  background: var(--off);
  border-top: 1px solid var(--border);
  padding: 76px var(--pad);
}
.contact-wrap {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 56px; align-items: start;
}
.contact-intro .section-title { margin-bottom: 18px; }
.contact-intro-text { font-size: 15px; color: var(--muted); line-height: 1.7; max-width: 360px; }
.contact-direct {
  margin-top: 32px; display: flex; flex-direction: column; gap: 12px;
}
.contact-direct a {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text); text-decoration: none;
  transition: color 0.2s;
}
.contact-direct a:hover { color: var(--red); }
.contact-direct svg { width: 16px; height: 16px; color: var(--red); flex-shrink: 0; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-family: 'Space Mono', monospace;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea {
  font-family: 'Inter', sans-serif; font-size: 15px;
  color: var(--text); background: var(--white);
  border: 1px solid var(--border); border-radius: 5px;
  padding: 13px 14px; width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-bg);
}
.field textarea { resize: vertical; min-height: 130px; }
/* Honeypot — hidden from humans, catches bots */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn-red { align-self: flex-start; padding: 15px 30px; }
.form-note {
  font-family: 'Space Mono', monospace; font-size: 10px;
  letter-spacing: 0.04em; color: var(--muted); line-height: 1.6;
}
.form-alert {
  font-family: 'Space Mono', monospace; font-size: 12px;
  letter-spacing: 0.03em; padding: 14px 16px; border-radius: 5px;
  line-height: 1.5;
}
.form-alert.ok { background: rgba(26,154,26,0.08); color: #157a15; border: 1px solid rgba(26,154,26,0.3); }
.form-alert.err { background: var(--red-bg); color: var(--red); border: 1px solid rgba(204,17,17,0.3); }

/* ── SOCIAL CAMPAIGNS SLIDER ── */
.slider { position: relative; }
.slider-viewport { overflow: hidden; border-radius: 8px; border: 1px solid var(--border); background: var(--white); }
.slider-track { display: flex; transition: transform 0.45s cubic-bezier(.22,.61,.36,1); }
.slide {
  min-width: 100%; margin: 0;
  display: flex; flex-direction: column; align-items: center;
}
.slide img { width: 100%; height: auto; display: block; }
.slide figcaption {
  font-family: 'Space Mono', monospace; font-size: 11px;
  letter-spacing: 0.06em; color: var(--muted);
  padding: 14px 16px; text-align: center; width: 100%;
  border-top: 1px solid var(--border); background: var(--off);
}
.slider-btn {
  position: absolute; top: 42%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--border); background: rgba(255,255,255,0.92);
  color: var(--text); font-size: 24px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1); transition: background 0.2s, color 0.2s, border-color 0.2s;
  z-index: 2;
}
.slider-btn:hover { background: var(--red); color: #fff; border-color: var(--red); }
.slider-btn.prev { left: 14px; }
.slider-btn.next { right: 14px; }
.slider-dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.slider-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); border: 0; padding: 0; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.slider-dot.active { background: var(--red); transform: scale(1.25); }

/* ── DECKS & ONE-SHEETS (bento / masonry — cards size to their own content) ── */
.decks-grid {
  column-count: 2; column-gap: 24px;
}
.deck-card {
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  break-inside: avoid; -webkit-column-break-inside: avoid;
  margin: 0 0 24px; display: inline-block; width: 100%;
}
.deck-card:hover { border-color: var(--red); box-shadow: 0 8px 32px rgba(204,17,17,0.07); }
.deck-head { padding: 18px 20px 8px; }
.deck-top-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 8px;
}
.deck-top-row .work-caption-tag { margin: 0; white-space: nowrap; }
.deck-title {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: clamp(16px, 3.4vw, 22px); text-transform: uppercase; letter-spacing: 0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.deck-top-btn {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Space Mono', monospace; font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--red); text-decoration: none;
  border: 1px solid rgba(204,17,17,0.35); border-radius: 5px;
  padding: 7px 11px; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.deck-top-btn svg { width: 13px; height: 13px; }
.deck-top-btn:hover { background: var(--red); color: #fff; border-color: var(--red); }
.deck-embed { padding: 14px 18px; }
.deck-embed .pdfemb-viewer { margin: 0 auto; max-width: 100%; }
/* Obvious, always-visible deck navigation button (item 7) */
.deck-link {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: #fff; background: var(--red); text-decoration: none;
  padding: 14px 22px; transition: opacity 0.2s;
}
.deck-link svg { width: 15px; height: 15px; }
.deck-link:hover { opacity: 0.88; }

/* ── SUBHEAD (e.g. "Pitch & Print" inside a section) ── */
.subhead {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: 26px; text-transform: uppercase; letter-spacing: 0.02em;
  margin: 8px 0 24px; padding-top: 8px;
  display: flex; align-items: center; gap: 14px;
}
.subhead::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── PORTFOLIO JUMP NAV (item 13) ── */
.portfolio-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.pnav-btn {
  font-family: 'Space Mono', monospace;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); background: none; text-decoration: none;
  border: 1px solid var(--border);
  padding: 9px 20px; border-radius: 100px;
  transition: all 0.2s;
}
.pnav-btn:hover { border-color: var(--text); color: var(--text); }
.pnav-btn.active { background: var(--red); border-color: var(--red); color: #fff; }

/* ── SHORT-FORM (vertical) GRID ── */
.work-grid--short { grid-template-columns: repeat(4, 1fr); max-width: 920px; }
.work-item--short .work-thumb { aspect-ratio: 9 / 16; }
.work-item--short .work-thumb img { object-position: center; }

/* ── CAMPAIGN CREATIVE
   Desktop: slider showing 2 samples stacked per view, with arrows/dots + autoplay.
   Mobile: vertical stack, each wide strip scrolls horizontally inside its card. ── */
.camp-slider { position: relative; }
.camp-viewport { overflow: hidden; }
.camp-track { display: flex; transition: transform 0.5s cubic-bezier(.22,.61,.36,1); }
.camp-slide { min-width: 100%; display: flex; flex-direction: column; gap: 20px; padding: 2px; }
.camp-item {
  margin: 0; background: var(--white); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.camp-item:hover { border-color: var(--red); box-shadow: 0 10px 34px rgba(0,0,0,0.08); }
.camp-media { display: block; }
.camp-media img { width: 100%; height: auto; display: block; cursor: zoom-in; }
.camp-item figcaption {
  font-family: 'Space Mono', monospace; font-size: 10px;
  letter-spacing: 0.06em; color: var(--muted);
  padding: 12px 14px; border-top: 1px solid var(--border); background: var(--off);
}
.camp-hint { display: none; color: var(--red); }
.camp-drag { display: none; }
.camp-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--border); background: rgba(255,255,255,0.94);
  color: var(--text); font-size: 24px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12); transition: background 0.2s, color 0.2s, border-color 0.2s; z-index: 2;
}
.camp-arrow:hover { background: var(--red); color: #fff; border-color: var(--red); }
.camp-arrow.prev { left: -20px; }
.camp-arrow.next { right: -20px; }
.camp-dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.camp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); border: 0; padding: 0; cursor: pointer; transition: background 0.2s, transform 0.2s; }
.camp-dot.active { background: var(--red); transform: scale(1.25); }

@media (max-width: 860px) {
  /* Disable the slider — stack everything; each wide strip scrolls horizontally */
  .camp-track { display: block; transform: none !important; }
  .camp-slide { min-width: 0; display: block; }
  .camp-item { margin-bottom: 18px; }
  .camp-arrow, .camp-dots { display: none; }
  .camp-media { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .camp-media img { width: auto; height: 300px; max-width: none; }
  .camp-hint { display: inline; }
  .camp-drag {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    font-family: 'Space Mono', monospace; font-size: 10px;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--red); background: var(--red-bg); padding: 9px 8px;
  }
}

/* Design cards now open in the lightbox */
.work-item--zoom .design-card-thumb,
.work-item--zoom .design-card-thumb img { cursor: zoom-in; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.9);
  display: flex; align-items: center; justify-content: center;
  padding: 32px; opacity: 0; visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  width: 44px; height: 44px; border: 0; cursor: pointer;
  background: rgba(255,255,255,0.1); color: #fff; border-radius: 50%;
  font-size: 28px; line-height: 1;
}
.lightbox-close:hover { background: var(--red); }

/* ── WEB / WEBSITES GRID ── */
.web-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.web-card {
  text-decoration: none; color: inherit;
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  background: var(--white); display: flex; flex-direction: column;
  transition: transform 0.25s, border-color 0.2s, box-shadow 0.25s;
}
.web-card:hover { transform: translateY(-4px); border-color: var(--red); box-shadow: 0 16px 44px rgba(0,0,0,0.1); }
.web-bar {
  display: flex; align-items: center; gap: 6px;
  background: #1a1a1a; padding: 9px 12px;
}
.web-bar span { width: 9px; height: 9px; border-radius: 50%; background: #444; }
.web-bar span:nth-child(1) { background: #ff5f57; }
.web-bar span:nth-child(2) { background: #febc2e; }
.web-bar span:nth-child(3) { background: #28c840; }
.web-bar em {
  font-family: 'Space Mono', monospace; font-style: normal;
  font-size: 10px; color: #888; margin-left: 10px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.web-shot { height: 220px; overflow: hidden; background: var(--off); }
.web-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: object-position 2.5s ease; }
.web-card:hover .web-shot img { object-position: bottom center; }
.web-meta { padding: 20px 22px 22px; }
.web-name {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: 22px; text-transform: uppercase; letter-spacing: 0.01em; margin-bottom: 4px;
}
.web-desc { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }
.web-link {
  font-family: 'Space Mono', monospace; font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--red);
}

/* ── CTA / CONTACT ── */
.cta-section {
  background: var(--dark); padding: 80px var(--pad); text-align: center;
}
.cta-hello {
  font-family: 'Space Mono', monospace;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: #555; margin-bottom: 20px;
}
.cta-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(44px, 7vw, 80px);
  text-transform: uppercase; line-height: 0.93;
  color: #fff; max-width: 760px; margin: 0 auto 16px;
}
.cta-title em { font-style: italic; color: var(--red); }
.cta-sub { font-size: 15px; color: #555; max-width: 440px; margin: 0 auto 40px; }
.cta-email {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: clamp(22px, 4vw, 44px);
  color: var(--red); text-decoration: none; margin-bottom: 8px;
  letter-spacing: 0.01em; transition: opacity 0.2s;
}
.cta-email:hover { opacity: 0.75; }
.cta-phone {
  display: block;
  font-family: 'Space Mono', monospace; font-size: 13px;
  color: #444; text-decoration: none; letter-spacing: 0.1em; margin-bottom: 40px;
}
.cta-phone:hover { color: #888; }
.cta-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-white {
  display: inline-block;
  border: 1px solid #333; color: #888;
  font-family: 'Space Mono', monospace; font-size: 11px;
  font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  padding: 12px 22px; border-radius: 4px; text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-white:hover { border-color: #666; color: #ccc; }

/* ── FOOTER ── */
footer {
  background: #000; border-top: 1px solid #111;
  padding: 24px var(--pad);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
footer img { height: 26px; }
footer p {
  font-family: 'Space Mono', monospace; font-size: 10px;
  color: #333; letter-spacing: 0.06em;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  font-family: 'Space Mono', monospace; font-size: 10px;
  letter-spacing: 0.08em; color: #333; text-decoration: none;
  text-transform: uppercase; transition: color 0.2s;
}
.footer-links a:hover { color: #888; }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  :root { --pad: 48px; }
  .stats-inner { grid-template-columns: repeat(3, 1fr); }
  .stat-item:nth-child(3) { border-right: none; }
  .stat-item:nth-child(4) { border-top: 1px solid #1f1f1f; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: 1fr 1fr; }
  .web-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-inner { padding: 0 20px; }
  /* Hamburger + slide-in drawer */
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 0; right: 0;
    height: 100vh; height: 100svh; width: min(78vw, 320px);
    background: var(--dark);
    flex-direction: column; align-items: flex-start;
    justify-content: center; gap: 8px;
    padding: 80px 36px 36px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 1px solid #1a1a1a;
    z-index: 1001;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 14px; padding: 10px 0; width: 100%; }
  .nav-links a.nav-cta { margin-top: 12px; padding: 12px 20px; width: 100%; text-align: center; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { padding: 32px 24px; flex-direction: row; flex-wrap: wrap; gap: 16px; align-items: center; border-right: none; border-bottom: 1px solid var(--border); }
  .hero-card-top { display: none; }
  .hero-card-links { display: none; }
  .hero-content { padding: 40px 24px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  /* Clean 2-column divider grid (overrides the desktop border rules) */
  .stats-inner .stat-item {
    border-right: 1px solid #1f1f1f;
    border-bottom: 1px solid #1f1f1f;
    border-top: none;
  }
  .stats-inner .stat-item:nth-child(2n) { border-right: none; }
  .stats-inner .stat-item:nth-last-child(-n+2) { border-bottom: none; }
  .section { padding: 60px 24px; }
  .stats-row { padding: 28px 24px; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .decks-grid { column-count: 1; }
  .work-grid--masonry { column-count: 2; }
  .web-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid--short { max-width: none; }
  .exp-item { grid-template-columns: 1fr; gap: 8px; padding: 28px 0; }
  .exp-num { font-size: 40px; padding-top: 0; }
  .contact-section { padding: 60px 24px; }
  .contact-wrap { grid-template-columns: 1fr; gap: 32px; }
  .cta-section { padding: 64px 24px; }
  footer { padding: 20px 24px; flex-direction: column; text-align: center; }
}
/* Phone — iPhone-first refinements */
@media (max-width: 600px) {
  :root { --pad: 20px; }
  .marquee-track { animation-duration: 16s; } /* scroll the logos faster on mobile */
  .hero-card { flex-direction: column; align-items: flex-start; gap: 4px; padding: 28px 20px; }
  .hero-card-photo { margin: 16px 0; }
  .hero-card-photo img { width: 96px; height: 96px; border-width: 2px; }
  .hero-available { margin-bottom: 4px; }
  h1.hero-h1 { font-size: clamp(40px, 12vw, 54px); line-height: 0.95; margin-bottom: 22px; max-width: 100%; }
  .hero-desc { font-size: 16px; max-width: 100%; }
  .hero-content { padding: 32px 20px; }
  .section { padding: 52px 20px; }
  .section-sub { margin-bottom: 28px; }
  .work-grid { grid-template-columns: 1fr; gap: 14px; }
  .work-grid--masonry { column-count: 1; }
  .work-grid--short { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .hero-card-name { font-size: 20px; }
  .svc-num { font-size: 52px; }
  .web-grid { grid-template-columns: 1fr; }
  .camp-slide { flex-direction: column; gap: 12px; }
  .slider-btn { width: 38px; height: 38px; font-size: 20px; top: 32%; }
  .slider-btn.prev { left: 8px; }
  .slider-btn.next { right: 8px; }
  .camp-item figcaption, .slide figcaption { font-size: 10px; padding: 11px 12px; }
  .portfolio-nav { gap: 6px; }
  .pnav-btn { padding: 8px 14px; }
  .cta-links { gap: 8px; }
  .cta-links a { width: 100%; }
}
@media (max-width: 380px) {
  .stats-inner { gap: 0; }
  .stat-num { font-size: 30px; }
  h1.hero-h1 { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; }
  .hero-available::before { animation: none; }
  /* Marquee intentionally kept animating (brand request). */
}
