/* richiegriffin.com — Instagram-1:1 mimic.
   Pure black, IG blue accent, system sans, mobile-first phone column. */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:root {
  --bg: #000;
  --surface: #121212;
  --surface-2: #1a1a1a;
  --border: #262626;
  --text: #fafafa;
  --muted: #a8a8a8;
  --link: #e0f1ff;
  --ig-blue: #0095f6;
  --ig-blue-hover: #1877f2;
  --ig-red: #ed4956;
  --ig-gradient: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  --col-w: 480px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { color: #fff; }

/* Phone-width column on every page */
.col {
  width: 100%;
  max-width: var(--col-w);
  margin-inline: auto;
  padding: 0;
}

/* ======== Top nav (sticky) ======== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  --menu-left: 12px;
  --menu-top: 48px;
}
.nav-inner {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 90px;
  align-items: center;
  padding-block: 9px;
  padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right));
  max-width: var(--col-w);
  margin-inline: auto;
}
.nav-toggle { justify-self: start; }
.nav-utility {
  justify-self: end;
  white-space: nowrap;
  font-size: 9.5px;
  letter-spacing: 0.035em;
}
.client-login-wrap {
  position: relative;
  justify-self: end;
}
.client-login-btn {
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ig-blue);
  white-space: nowrap;
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.client-login-btn .caret { font-size: 8px; }
.client-login-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.5);
  display: none;
  z-index: 60;
}
.client-login-menu.open { display: block; }
.client-login-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.client-login-menu a .dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
}
.client-login-menu a:hover { background: var(--surface-2); }
.client-login-menu .footnote {
  padding: 8px 12px 6px;
  color: var(--muted);
  font-size: 11px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.client-login-menu .login-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}
.brand {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  font-weight: 800;
  letter-spacing: -0.025em;
  font-size: 15px;
  color: var(--text);
  text-align: center;
  text-decoration: none;
  font-feature-settings: 'ss01' on, 'cv11' on;
  text-transform: none;
}
.nav-utility {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: var(--ig-blue);
  text-align: right;
  text-decoration: none;
}
.nav-toggle {
  background: none;
  border: 0;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}
.nav-links {
  display: none;
  position: fixed;
  left: var(--menu-left);
  top: var(--menu-top);
  width: min(230px, calc(100vw - 24px));
  flex-direction: column;
  border: 1px solid var(--border);
  background: rgba(18,18,18,0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.58);
  z-index: 1000;
}
.nav-links.open { display: flex; }
.nav-links a {
  padding: 12px 14px;
  color: var(--text);
  border-bottom: 0;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
}
.nav-links a.utility {
  color: var(--ig-blue);
  font-weight: 700;
}
.nav-links a:hover { background: var(--surface); }

/* ======== IG profile header ======== */
.profile {
  padding: 24px 16px 12px;
}
.profile-top {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
}
.avatar-wrap {
  flex-shrink: 0;
  padding: 3px;
  background: var(--ig-gradient);
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  transition: transform 120ms ease;
  display: block;
}
.avatar-wrap:hover { transform: scale(1.03); }
.avatar-wrap:active { transform: scale(0.97); }
.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 32px;
  color: var(--text);
  letter-spacing: -0.02em;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-stats {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
}
.profile-stats .num {
  display: block;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.1;
}
.profile-stats .label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.profile-meta {
  margin-bottom: 12px;
}
.profile-meta .display-name {
  font-weight: 700;
  font-size: 14px;
}
.profile-meta .pronoun {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  margin-left: 6px;
}
.profile-meta .bio {
  font-size: 14px;
  line-height: 1.55;
  margin: 6px 0 0;
}
.profile-meta .bio strong {
  font-weight: 800;
  color: var(--text);
}
.profile-meta .bio .bio-headline {
  display: block;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}
.profile-meta .bio .bio-accent-word {
  color: var(--text);
  font-style: italic;
}
.profile-meta .bio .bio-detail {
  display: block;
  font-size: 13.5px;
  line-height: 1.5;
}
.profile-meta .bio .tag {
  color: var(--ig-blue);
  font-weight: 700;
}
.profile-meta .bio .nowrap {
  white-space: nowrap;
}
.profile-meta .link {
  display: block;
  font-weight: 600;
  color: var(--link);
  margin-top: 6px;
  font-size: 14px;
}

/* IG-style action button row — three primary actions */
.profile-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 8px 0 4px;
}
.profile-actions .pa-btn {
  background: var(--ig-blue);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 9px 10px;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.profile-actions .pa-btn.secondary {
  background: var(--surface-2);
  color: var(--text);
}
.profile-actions .pa-btn:hover { filter: brightness(1.1); }
/* Single follow-up button row (Instagram only) */
.profile-channels {
  display: flex;
  padding: 4px 0 12px;
}
.profile-channels a {
  flex: 1;
  background: var(--surface-2);
  color: var(--text);
  padding: 9px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--border);
}
.profile-channels a:hover { background: var(--surface); color: #fff; }

/* ======== FYP / Reel feed (TikTok / IG Reels mimic) ======== */
.fyp {
  margin: 4px 0 0;
  background: #000;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.fyp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.fyp-header .hint {
  color: #555;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 500;
}
.fyp-track {
  height: 80vh;
  max-height: 720px;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.fyp-track::-webkit-scrollbar { display: none; }
.fyp-item {
  position: relative;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.fyp-item video,
.fyp-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.fyp-item .fyp-meta {
  position: absolute;
  left: 12px;
  right: 76px;
  bottom: 16px;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.85);
  pointer-events: none;
}
.fyp-item .fyp-meta .handle {
  font-weight: 800;
  font-size: 14px;
  display: block;
  margin-bottom: 4px;
}
.fyp-item .fyp-meta .title {
  font-weight: 700;
  font-size: 14px;
  display: block;
}
.fyp-item .fyp-meta .sub {
  font-size: 12px;
  opacity: 0.82;
  display: block;
}
.fyp-item .fyp-actions {
  position: absolute;
  right: 10px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.fyp-item .fyp-actions a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 80ms ease, background 200ms ease;
}
.fyp-item .fyp-actions a:hover { background: var(--ig-blue); transform: scale(1.05); }
.fyp-item .fyp-actions .label {
  font-size: 10px;
  margin-top: -8px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.fyp-item .fyp-progress {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
}
.fyp-item .fyp-progress .bar {
  height: 100%;
  width: 0;
  background: var(--ig-blue);
  transition: width 80ms linear;
}
.fyp-item .fyp-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ======== Story highlights row ======== */
.highlights {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 16px 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-bottom: 1px solid var(--border);
}
.highlights::-webkit-scrollbar { display: none; }
.highlight {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  width: 76px;
  text-decoration: none;
  color: var(--text);
}
.highlight-ring {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  padding: 2px;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.highlight-ring.featured {
  background: var(--ig-gradient);
  padding: 3px;
}
.highlight-ring .inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  overflow: hidden;
}
.highlight-ring .inner img,
.highlight-ring .inner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.highlight .name {
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  max-width: 70px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ======== Tabs ======== */
.tabs {
  display: flex;
  border-top: 1px solid var(--border);
}
.tabs .tab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border-top: 1px solid transparent;
  margin-top: -1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.tabs .tab .icon { font-size: 16px; }
.tabs .tab.active {
  color: var(--text);
  border-top-color: var(--text);
}

/* ======== Grid (Instagram 3-col, no gap) ======== */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 0;
}
.tile {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
}
.tile video,
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tile .badge {
  position: absolute;
  top: 6px; left: 6px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  pointer-events: none;
  max-width: calc(100% - 12px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tile .meta { display: none; }    /* IG grid is image-only, meta lives in modal */
.tile .ctas { display: none; }    /* CTAs only in modal — IG-faithful */
.tile .video-icon {
  position: absolute;
  top: 6px;
  right: 6px;
  color: #fff;
  font-size: 14px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.8));
  pointer-events: none;
}

/* ======== Brand strip ======== */
.brands {
  margin: 24px 0 0;
  padding: 24px 10px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.brands h2 {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  text-align: left;
}
.brand-list .brand-item {
  background: var(--surface);
  padding: 11px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 102px;
}
.brand-list .brand-item .name {
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: -0.015em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-list .brand-item .flex {
  font-size: 10.5px;
  line-height: 1.34;
  color: var(--muted);
  margin-top: 5px;
}
.brand-list .brand-item .flex strong {
  color: var(--text);
  font-weight: 800;
}
.brand-list .brand-item .flex em {
  font-style: italic;
  color: var(--ig-red);
  font-size: 10px;
  letter-spacing: 0.04em;
}
/* Inline audio "Hear it" button on a brand card — intentionally quiet */
.audio-sample {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  padding: 4px 0 0;
  background: transparent;
  color: var(--muted);
  border: 0;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  opacity: .72;
}
.audio-sample:hover { color: var(--text); opacity: 1; }
.audio-sample.playing { color: var(--ig-red); opacity: 1; }
.audio-sample .icon { font-size: 9px; line-height: 1; }

/* ======== Search/AI services FAQ — compact, human, not spammy ======== */
.seo-faq {
  margin: 0;
  padding: 24px 10px 30px;
  border-top: 1px solid var(--border);
}
.seo-faq .section-kicker {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}
.seo-faq h2 {
  margin: 0 0 16px;
  text-align: center;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.faq-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 12px;
}
.faq-card summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding-right: 22px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.faq-card summary::-webkit-details-marker { display: none; }
.faq-card summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  color: var(--muted);
  font-weight: 900;
}
.faq-card[open] summary::after { content: '–'; }
.faq-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
}

/* ======== Article pages (about, ROW, contact) ======== */
.article-hero {
  width: 100%;
  max-width: var(--col-w);
  margin: 0 auto;
  aspect-ratio: 4/5;
  background: #000;
  position: relative;
  overflow: hidden;
}
.article-hero video,
.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-hero .article-hero-title {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 16px 24px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85));
  color: #fff;
}
.article-hero .article-hero-title h1 {
  margin: 0 0 6px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.article-hero .article-hero-title p {
  margin: 0;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}
.image-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin: 16px 0;
}
.image-strip img,
.image-strip video {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  background: var(--surface);
}
.image-strip-2 {
  grid-template-columns: repeat(2, 1fr);
}
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 16px 0 24px;
}
.spec-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}
.spec-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-bottom: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.spec-card .label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.spec-card .value {
  font-weight: 700;
  font-size: 13px;
  margin-top: 2px;
}
.article {
  padding: 24px 16px 64px;
  max-width: var(--col-w);
  margin-inline: auto;
}
.article h1 {
  margin: 8px 0 20px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.article h2 {
  margin: 28px 0 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.article h3 {
  margin: 20px 0 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.article p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.55;
  color: #d6d8dc;
}
.article ul {
  margin: 0 0 18px;
  padding-left: 18px;
  color: #d6d8dc;
  line-height: 1.55;
}
.article li { margin-bottom: 4px; }
.service-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 12px 0 22px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 12px;
}
.service-card h3 {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
}
.article .cta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.article .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ig-blue);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border: 0;
}
.article .btn.secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}
.article .btn:hover { filter: brightness(1.1); }

/* ======== Modal — fullscreen reel-style ======== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 100;
}
.modal.open { display: flex; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0,0,0,0.5);
  border: 0;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  z-index: 101;
}
.modal-content {
  width: 100%;
  max-width: 480px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 16px;
  gap: 12px;
}
.modal-content video,
.modal-content img {
  max-width: 100%;
  max-height: 70vh;
  width: 100%;
  object-fit: contain;
  background: #000;
  border-radius: 8px;
}
.modal-content .modal-meta {
  text-align: center;
  font-size: 14px;
}
.modal-content .modal-meta .title {
  font-weight: 700;
  font-size: 16px;
}
.modal-content .modal-meta .sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}
.modal-content .actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.modal-content .actions a {
  background: var(--ig-blue);
  color: #fff;
  font-weight: 700;
  padding: 10px 8px;
  border-radius: 8px;
  text-align: center;
  font-size: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.modal-content .actions a.secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}
.modal-content .actions a:hover { filter: brightness(1.15); }

/* ======== Story viewer (IG / Snapchat style) ======== */
.story-modal {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 200;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.story-modal.open {
  display: flex;
}
.story-progress {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
  z-index: 5;
}
.story-progress .seg {
  flex: 1;
  height: 2.5px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  overflow: hidden;
}
.story-progress .seg .fill {
  height: 100%;
  width: 0;
  background: #fff;
  transition: width 60ms linear;
}
.story-progress .seg.done .fill { width: 100%; }
.story-header {
  position: absolute;
  top: 22px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 5;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.75);
}
.story-header .story-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.story-header .story-handle {
  font-weight: 700;
  font-size: 14px;
  flex: 1;
}
.story-header .story-audio,
.story-header .story-close {
  background: rgba(0,0,0,0.4);
  border: 0;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 18px;
  line-height: 1;
}
.story-header .story-close { font-size: 24px; }
.story-header .story-audio:hover,
.story-header .story-close:hover { background: rgba(0,0,0,0.65); }
.story-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}
.story-content video,
.story-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.story-caption {
  position: absolute;
  bottom: 24px;
  left: 16px;
  right: 16px;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0,0,0,0.85);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  z-index: 5;
  pointer-events: none;
}
.story-caption .sub {
  display: block;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.85;
  margin-top: 4px;
  letter-spacing: 0;
}
.story-tap-prev,
.story-tap-next {
  position: absolute;
  top: 60px;
  bottom: 60px;
  width: 30%;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 4;
}
.story-tap-prev { left: 0; }
.story-tap-next { right: 0; width: 70%; }
@media (min-width: 600px) {
  .story-content video,
  .story-content img {
    max-width: 480px;
    margin: 0 auto;
  }
}

/* ======== Footer ======== */
.footer {
  padding: 24px 16px 40px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--border);
}
.footer .brand-mini {
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.footer .made {
  margin-top: 8px;
  font-size: 11px;
  color: #555;
}

/* Empty state for grid before clips load */
.empty {
  grid-column: 1 / -1;
  padding: 48px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.empty .big { font-size: 40px; margin-bottom: 12px; }

/* Larger viewports — keep phone-format column. Hamburger stays. */
@media (min-width: 600px) {
  .nav-links a {
    padding: 14px 20px;
  }
  .tile,
  .brand-list .brand-item,
  .highlight-ring {
    transition: transform 160ms ease, border-color 160ms ease, filter 160ms ease;
  }
  .tile:hover,
  .brand-list .brand-item:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
  }
  .brand-list .brand-item:hover {
    border-color: rgba(255,255,255,.18);
  }
  .highlight:hover .highlight-ring {
    transform: translateY(-1px) scale(1.02);
  }
}
@media (prefers-reduced-motion: reduce) {
  .tile,
  .brand-list .brand-item,
  .highlight-ring {
    transition: none !important;
  }
  .tile:hover,
  .brand-list .brand-item:hover,
  .highlight:hover .highlight-ring {
    transform: none !important;
  }
}
@media (min-width: 900px) {
  :root { --col-w: 540px; }
  .profile-top { gap: 32px; }
  .avatar { width: 110px; height: 110px; font-size: 40px; }
}
