/* ============================================================
   DASHIELL ROBB - All Clear Graphics LLC
   Portfolio Site CSS
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:           #F5F4F0;
  --surface:      #FFFFFF;
  --text:         #1C1C1E;
  --text-2:       #636366;
  --text-3:       #AEAEB2;
  --accent:       #E8632A;
  --accent-tint:  rgba(232, 99, 42, 0.08);
  --border:       #E5E5EA;
  --radius:       14px;
  --nav-h:        64px;
  --shadow-card:  0 2px 16px rgba(0,0,0,0.06);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.13);
  --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-head:    'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }

/* ── Custom Cursor ─────────────────────────────────────────── */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  will-change: left, top;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  transition: width .18s, height .18s, background .18s;
}
.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--accent);
  opacity: .45;
  transition: width .28s var(--ease), height .28s var(--ease), opacity .28s;
}
body.c-hover .cursor-dot  { width: 10px; height: 10px; }
body.c-hover .cursor-ring { width: 56px; height: 56px; opacity: .25; }
body.c-text  .cursor-dot  { width: 3px;  height: 24px; border-radius: 2px; background: var(--text); }
body.c-text  .cursor-ring { opacity: 0; }

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  height: var(--nav-h);
  z-index: 200;
  transform: translateZ(0);
  transition: background .3s, backdrop-filter .3s, box-shadow .3s;
}
.nav.scrolled {
  background: rgba(245, 244, 240, .88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .06em;
  transition: color .2s;
}
.nav-logo:hover { color: var(--accent); }

.nav-links { display: flex; gap: 36px; }
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: .02em;
  transition: color .2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width .25s var(--ease);
}
.nav-link:hover,
.nav-link.active { color: var(--text); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: none;
  padding: 6px;
}
.nav-burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s;
}

/* ── Mobile Menu ───────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(245, 244, 240, .97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 28px 28px;
  display: flex;
  flex-direction: column;
  z-index: 199;
  transform: translateY(-110%);
  transition: transform .35s var(--ease);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-link {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 600;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: color .2s, padding-left .2s;
}
.mobile-link:last-child { border: none; }
.mobile-link:hover { color: var(--accent); padding-left: 6px; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: var(--nav-h);
}
.hero-inner {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 28px 64px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: var(--accent);
}
.hero-name {
  font-family: var(--font-head);
  font-size: clamp(76px, 13vw, 172px);
  font-weight: 700;
  line-height: .88;
  letter-spacing: -.03em;
  margin-bottom: 32px;
}
.hero-title {
  font-size: clamp(17px, 2.4vw, 22px);
  font-weight: 400;
  color: var(--text-2);
  margin-bottom: 24px;
  letter-spacing: .01em;
}
.hero-bio {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-2);
  max-width: 500px;
  margin-bottom: 44px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 13px 26px;
  border: 1.5px solid var(--text);
  border-radius: 100px;
  transition: background .22s, color .22s, transform .22s, border-color .22s;
  width: fit-content;
}
.hero-cta:hover {
  background: var(--text);
  color: var(--bg);
  transform: translateY(-2px);
}

/* Ticker */
.ticker-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 15px 0;
}
.ticker-track {
  display: flex;
  gap: 28px;
  white-space: nowrap;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  animation: ticker 22s linear infinite;
}
.ticker-track .sep { color: var(--border); }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Container / Shared ────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.08;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 460px;
}

/* ── Reel Section ──────────────────────────────────────────── */
.reel { padding: 112px 0; }
.reel-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #1C1C1E;
  box-shadow: 0 24px 64px rgba(0,0,0,0.12);
}
.reel-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.reel-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: default;
}
.reel-ph-icon {
  font-size: 48px;
  color: rgba(255,255,255,0.15);
  line-height: 1;
}
.reel-ph-label {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}

/* ── Work Section ──────────────────────────────────────────── */
.work { padding: 112px 0; }
.section-header { margin-bottom: 52px; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 48px; }
.filter-btn {
  padding: 8px 20px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  cursor: none;
  transition: all .22s;
}
.filter-btn:hover { border-color: var(--text); color: var(--text); }
.filter-btn.active { background: var(--text); border-color: var(--text); color: #fff; }

/* Project Grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.project-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-hover);
}
.project-card.is-hidden { display: none; }

/* Media / Placeholder */
.project-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.project-media iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: none;
}
.project-placeholder {
  position: absolute;
  inset: 0;
  background: var(--ph-bg, #EDECEA);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .45s var(--ease);
}
.project-card:hover .project-placeholder { transform: scale(1.04); }
.ph-icon {
  font-size: 28px;
  color: rgba(0,0,0,.18);
  transition: color .2s, transform .2s;
}
.project-card:hover .ph-icon { color: rgba(0,0,0,.35); transform: scale(1.2); }

/* Overlay */
.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(28,28,30,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s;
}
.project-card:hover .card-overlay { background: rgba(28,28,30,.28); }
.card-overlay span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .28s, transform .28s;
}
.project-card:hover .card-overlay span { opacity: 1; transform: translateY(0); }

/* Card Info */
.project-info { padding: 20px 22px 24px; }
.project-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.project-year { font-size: 12px; font-weight: 500; color: var(--text-3); }
.project-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-tint);
  padding: 2px 9px;
  border-radius: 100px;
}
.project-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
}
.project-desc {
  font-size: 13px;
  line-height: 1.68;
  color: var(--text-2);
}

/* ── About Section ─────────────────────────────────────────── */
.about {
  padding: 112px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 80px;
  align-items: start;
}
.about-tagline {
  font-family: var(--font-head);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 400;
  color: var(--text-2);
  line-height: 1.5;
  margin-top: 18px;
}
.about-body {
  font-size: 16px;
  line-height: 1.78;
  color: var(--text-2);
  margin-bottom: 22px;
}
.about-body:last-of-type { margin-bottom: 34px; }
.about-body strong { color: var(--text); font-weight: 600; }
.skill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-chip {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  border: 1.5px solid var(--border);
  padding: 6px 15px;
  border-radius: 100px;
  background: var(--bg);
  transition: border-color .2s, color .2s, background .2s;
}
.skill-chip:hover { border-color: var(--text); color: var(--text); background: var(--surface); }

/* ── Contact Section ───────────────────────────────────────── */
.contact { padding: 148px 0; }
.contact-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.contact-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.contact-heading {
  font-family: var(--font-head);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.05;
  margin-bottom: 22px;
}
.contact-sub {
  font-size: 17px;
  line-height: 1.72;
  color: var(--text-2);
  margin-bottom: 48px;
}
.contact-email {
  display: inline-block;
  font-family: var(--font-head);
  font-size: clamp(20px, 3.5vw, 34px);
  font-weight: 600;
  color: var(--text);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  transition: color .2s;
  margin-bottom: 48px;
}
.contact-email:hover { color: var(--accent); }
.contact-socials { display: flex; justify-content: center; gap: 32px; }
.contact-social {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: .02em;
  transition: color .2s;
  position: relative;
}
.contact-social::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--text);
  transition: width .25s var(--ease);
}
.contact-social:hover { color: var(--text); }
.contact-social:hover::after { width: 100%; }

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-name { font-family: var(--font-head); font-size: 14px; font-weight: 600; }
.footer-loc,
.footer-copy { font-size: 13px; color: var(--text-3); }

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

/* Stagger grid children */
.project-grid .project-card:nth-child(3n+2).reveal { transition-delay: .07s; }
.project-grid .project-card:nth-child(3n+3).reveal { transition-delay: .14s; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .project-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 60px 24px 40px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .contact-heading { font-size: 36px; }
}

/* ── Real images in cards & galleries ─────────────────────── */
.card-thumb {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s var(--ease);
}
.project-card:hover .card-thumb { transform: scale(1.04); }

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

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

/* ── Case Study Pages ──────────────────────────────────────── */
a.project-card { display: block; color: inherit; }

.case-study { padding-top: var(--nav-h); }

/* Hero */
.cs-hero {
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--border);
}
.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: .02em;
  margin-bottom: 40px;
  transition: color .2s;
}
.cs-back:hover { color: var(--accent); }
.cs-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.cs-year {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
}
.cs-title {
  font-family: var(--font-head);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.08;
  margin-bottom: 22px;
  max-width: 800px;
}
.cs-lede {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 620px;
}

/* Body layout */
.cs-body { padding: 72px 0 48px; }
.cs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: start;
}

/* Sidebar */
.cs-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 28px);
}
.cs-detail { margin-bottom: 28px; }
.cs-detail h4 {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}
.cs-detail p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

/* Content */
.cs-text {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-2);
  margin-bottom: 36px;
  max-width: 680px;
}
.cs-text strong { color: var(--text); font-weight: 600; }
.cs-text em { font-style: italic; }

/* Media placeholder (hero video) */
.cs-media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 48px;
  background: var(--border);
}
.cs-media iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: none;
}
.cs-media-placeholder {
  position: absolute;
  inset: 0;
  background: #EDECEA;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Gallery grid */
.cs-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}
.cs-gallery-item {
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.cs-img-placeholder {
  width: 100%; height: 100%;
  background: #F0EFEB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  text-align: center;
  padding: 16px;
}

/* Section subheading in case study */
.cs-subhead {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: 16px;
  color: var(--text);
}

/* Pagination */
.cs-pagination {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}
.cs-pagination-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.cs-pag-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: color .2s;
  max-width: 45%;
}
.cs-pag-link:hover { color: var(--accent); }
.cs-prev { align-items: flex-start; }
.cs-next { align-items: flex-end; margin-left: auto; }
.cs-pag-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.cs-pag-name {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}
.cs-pag-link:hover .cs-pag-label { color: var(--accent); }

/* Responsive case study */
@media (max-width: 768px) {
  .cs-layout { grid-template-columns: 1fr; gap: 40px; }
  .cs-sidebar { position: static; display: flex; flex-wrap: wrap; gap: 24px; }
  .cs-detail { margin-bottom: 0; min-width: 120px; }
  .cs-pagination-inner { flex-direction: column; }
  .cs-next { align-items: flex-start; margin-left: 0; }
}

/* ── Print / reduced motion ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .cursor-dot, .cursor-ring { display: none; }
  body { cursor: auto; }
}
