/* style.css — the look of the whole Influensah site.
   Phone first: the base rules are for phones; the @media blocks further down adjust for bigger screens. */

/* ---------- Brand colours, as variables (change them here, they update everywhere) ---------- */
:root {
  --aubergine: #67356e;
  --teal: #469187;
  --golden: #cdbc51;
  --ink: #1a1220;
  --ink-soft: #5c5566;
  --paper: #f7f5f2;
  --line: #ece8f0;        /* thin borders */
  --tint: #f3eff6;        /* hover background */
  --nav-phone-height: 64px;
  --nav-narrow: 76px;     /* sidebar width on tablets */
  --nav-wide: 244px;      /* sidebar width on desktops */
}

* { box-sizing: border-box; }   /* widths include padding and borders: much easier to reason about */

body {
  margin: 0;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  color: var(--ink);
  background: #ffffff;
}

/* ---------- Phone: slim header at the top ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header img { height: 28px; display: block; }

/* ---------- Phone: menu as a bar along the bottom ---------- */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  height: calc(var(--nav-phone-height) + env(safe-area-inset-bottom));   /* room for the iPhone home bar */
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  background: #ffffff;
  border-top: 1px solid var(--line);
}
.nav a {
  flex: 1;                                   /* five equal slots */
  display: flex; align-items: center; justify-content: center;
  min-height: 44px;                          /* comfortable for thumbs */
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 12px;
  transition: background-color 150ms, color 150ms;
}
.nav a:hover { color: var(--ink); background: var(--tint); }
.nav a:focus-visible { outline: 2px solid var(--aubergine); outline-offset: 2px; }
.nav a[aria-current="page"] { color: var(--aubergine); }               /* the page you're on */
.nav a[aria-current="page"] .icon { stroke-width: 2.5; }
.nav .icon { flex: none; }

/* Labels: hidden visually on phones (screen readers still read them), shown on desktop */
.nav .label {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.nav-logo { display: none !important; }   /* the logo lives in the top header on phones */

main {
  padding: 24px 16px calc(var(--nav-phone-height) + 32px);   /* keep content clear of the bottom bar */
  max-width: 720px;
  margin: 0 auto;
}
h1 { font-size: 26px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; margin: 8px 0 12px; text-align: center; }
p  { font-size: 18px; line-height: 1.55; color: var(--ink-soft); text-align: center; }
/* Titles and descriptions are only as wide as their text, so selecting them highlights just the words */
main > h1, main > p { width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; }

/* ---------- Feed (Home): full-screen posts that snap one at a time, like Reels ---------- */
/* Snapping is switched on only on the Home page (its <html> tag has class="snap"). */
html.snap {
  scroll-snap-type: y mandatory;                          /* phones: every swipe lands on exactly one post */
  scroll-padding-top: 56px;                               /* leave room for the top header... */
  scroll-padding-bottom: calc(var(--nav-phone-height) + env(safe-area-inset-bottom));   /* ...and the bottom menu */
}
html.snap main > h1 { scroll-snap-align: start; }
html.snap main { max-width: 1320px; }                   /* Home needs room for the video and both side panels */
:root { --reel-h: calc(100svh - 56px - var(--nav-phone-height) - env(safe-area-inset-bottom) - 24px); }

.feed { margin: 12px auto 0; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.post {
  position: relative;
  height: var(--reel-h);
  width: min(100%, calc(var(--reel-h) * 9 / 16));         /* vertical 9:16, never wider than the screen */
  border-radius: 16px; overflow: hidden; background: var(--ink);
  flex: none;
}
/* A "reel" row = left panel + video + right panel. The row is what the page snaps to. */
.reel {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 48px;
  scroll-snap-align: center;
  scroll-snap-stop: always;                               /* a fast flick still stops at the next post, not three later */
}

/* Side panels: the breakdown next to each video. Hidden until the screen is wide enough. */
.insight { display: none; }
@media (min-width: 1280px) {
  .insight { display: flex; flex-direction: column; flex: 1 1 0; max-width: 300px; min-width: 0; }
  .insight-left { text-align: right; }                    /* mirrors the right panel around the video */
  .insight section { padding: 22px 0; border-top: 1px solid rgba(26, 18, 32, 0.12); }   /* the faint dividing lines */
  .insight section:first-child { border-top: none; }
  .insight h2 { margin: 0 0 8px; font-size: 24px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; color: var(--ink); text-align: inherit; }
  .insight p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-soft); text-align: inherit; width: auto; }
  .stat h3 { margin: 0 0 4px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
  .stat .stat-num { white-space: nowrap; display: flex; align-items: center; gap: 6px; font-size: 36px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; color: var(--aubergine); margin-bottom: 4px; }
  .stat .stat-num .icon { color: var(--teal); flex: none; }
  .stat .stat-note { font-size: 14px; }
  .todo { color: var(--ink-soft); border-bottom: 2px dashed rgba(26, 18, 32, 0.25); }   /* placeholder: fill in the real figure */
}
.post-media { position: absolute; inset: 0; }
.post-media video { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }

/* Name, caption and buttons sit on top of the video, over a soft dark fade so white text stays readable */
.post-head {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 12px; padding: 14px 64px 28px 14px;
  background: linear-gradient(rgba(26, 18, 32, 0.55), rgba(26, 18, 32, 0));
  color: #ffffff; pointer-events: none;                  /* taps go through to the video */
}
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #ffffff; flex: none; }
.post-who { display: flex; flex-direction: column; line-height: 1.25; }
.post-who strong { font-size: 15px; font-weight: 600; }
.post-who span { font-size: 13px; opacity: 0.85; }
.sound {
  position: absolute; top: 12px; right: 12px;
  width: 44px; height: 44px; border-radius: 50%; border: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(26, 18, 32, 0.55); color: #ffffff; cursor: pointer;
}
.sound:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
.sound .icon-on { display: none; }
.sound[aria-pressed="true"] .icon-on { display: block; }
.sound[aria-pressed="true"] .icon-muted { display: none; }
.post-body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 56px 16px 18px;
  background: linear-gradient(rgba(26, 18, 32, 0), rgba(26, 18, 32, 0.75));
  color: #ffffff; pointer-events: none;
}
.post-body p { text-align: left; margin: 0; font-size: 15px; color: #ffffff; }
.post-stats { display: flex; align-items: center; gap: 6px; margin-bottom: 6px !important; }
.post-caption { line-height: 1.45; }

/* ---------- Phones and tablets: the breakdown opens on top of the video when you tap it ---------- */
.post-insights {
  position: absolute; inset: 0; z-index: 2;
  overflow-y: auto; overscroll-behavior: contain;           /* long text scrolls inside the video, not the page */
  padding: 66px 20px 20px;                                  /* top padding leaves room for the sound button */
  background: rgba(26, 18, 32, 0.82);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #ffffff; cursor: pointer;
  animation: fade-in .2s ease-out;
}
@keyframes fade-in { from { opacity: 0; } }
.post-insights section { padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.18); }   /* faint dividing lines */
.post-insights section:first-child { border-top: none; padding-top: 0; }
.post-insights h2 { margin: 0 0 4px; font-size: 19px; font-weight: 600; line-height: 1.2; text-align: left; }
.post-insights p { margin: 0; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, 0.8); text-align: left; width: auto; }
.post-insights .stat h3 { margin: 0 0 2px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.post-insights .stat-num { display: flex; align-items: center; gap: 6px; font-size: 24px; font-weight: 600; line-height: 1.15; color: #ffffff; margin-bottom: 2px; white-space: nowrap; }
.post-insights .stat-num .icon { color: #7fd1c4; flex: none; }   /* a lighter teal, readable on the dark background */
.post-insights .todo { color: rgba(255, 255, 255, 0.75); border-bottom: 2px dashed rgba(255, 255, 255, 0.4); }
.post-insights .insights-close { margin-top: 8px; font-size: 13px; color: rgba(255, 255, 255, 0.55); text-align: center; }
.sound { z-index: 3; }                                      /* the sound button stays on top of the breakdown */

.insights-toggle {
  position: absolute; right: 12px; bottom: 18px; z-index: 1;
  display: flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(26, 18, 32, 0.45);
  font: inherit; font-size: 13px; font-weight: 500; color: #ffffff; cursor: pointer;
}
.post.insights-open .insights-toggle { display: none; }
.post-body { padding-right: 120px; }                        /* the caption doesn't run under the Insights button */
@media (min-width: 1280px) {                                /* big screens show the side panels instead */
  .post-insights, .insights-toggle { display: none !important; }
  .post-body { padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) { .post-insights { animation: none; } }

/* ---------- Message us: chat (left) + booking (right) ---------- */
[hidden] { display: none !important; }                  /* makes sure hidden things stay hidden, even with display rules */
main.wide { max-width: 1100px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.contact { display: grid; gap: 24px; margin-top: 20px; align-items: start; }
@media (min-width: 1000px) { .contact { grid-template-columns: 1fr 1fr; } }

.chat, .booking { border: 1px solid var(--line); border-radius: 20px; background: #ffffff; }
.chat { display: flex; flex-direction: column; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat-avatar { width: 40px; height: 40px; padding: 6px; border-radius: 50%; border: 1px solid var(--line); box-sizing: border-box; }
.chat-head div { display: flex; flex-direction: column; line-height: 1.3; }
.chat-head strong { font-size: 16px; font-weight: 600; }
.chat-head span { font-size: 13px; color: var(--ink-soft); }

.chat-thread { display: flex; flex-direction: column; gap: 6px; padding: 20px 18px 0; }
.chat-thread:empty { display: none; }
.bubble {
  margin: 0; max-width: 80%; width: fit-content;
  padding: 10px 14px; border-radius: 20px;
  font-size: 16px; line-height: 1.45; text-align: left; white-space: pre-wrap; overflow-wrap: anywhere;
  animation: pop .25s ease-out;
}
.bubble.out { align-self: flex-end; color: #ffffff; border-bottom-right-radius: 6px;
              background: linear-gradient(135deg, var(--aubergine), var(--teal)); }   /* your messages get the brand gradient, like sent DMs on Instagram */
.bubble-meta { align-self: flex-end; font-size: 12px; color: var(--ink-soft); margin: 0 4px 6px; text-align: right; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.97); } }


.composer { display: flex; flex-direction: column; gap: 10px; padding: 18px; }
.composer textarea, .composer input[type="email"] {
  font: inherit; font-size: 16px; color: var(--ink);       /* 16px stops iPhones zooming in when you tap the box */
  border: 1px solid var(--line); border-radius: 22px; background: var(--paper);
  padding: 11px 16px; box-sizing: border-box; width: 100%;
}
.composer textarea { resize: vertical; min-height: 200px; line-height: 1.5; border-radius: 16px; }   /* a big box, and you can drag its corner to make it bigger */
.composer :is(textarea, input):focus { outline: none; border-color: var(--aubergine); background: #ffffff; }
.composer [aria-invalid="true"] { border-color: #c0392b; }
.composer-row { display: flex; gap: 8px; align-items: center; }
.send {
  flex: none; width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  display: grid; place-items: center; color: #ffffff;
  background: linear-gradient(135deg, var(--aubergine), var(--teal));
}
.send:disabled { opacity: .5; cursor: default; }
.composer-error { margin: 0; font-size: 14px; color: #c0392b; text-align: left; min-height: 0; }
.composer-error:empty { display: none; }
.composer-note { margin: 0; font-size: 13px; color: var(--ink-soft); text-align: left; }
.trap { position: absolute; left: -9999px; }
.again {
  align-self: center; margin: 12px 0 18px;
  font: inherit; font-size: 14px; color: var(--aubergine); background: #ffffff;
  border: 1px solid rgba(103, 53, 110, .35); border-radius: 999px; padding: 8px 14px; min-height: 40px; cursor: pointer;
}
.again:hover { background: var(--tint); }

.booking { padding: 28px 24px; text-align: center; }
.booking h2 { margin: 0 0 6px; font-size: 22px; font-weight: 600; }
.booking p { margin: 0 0 20px; font-size: 16px; }
.booking-slot {
  display: grid; place-items: center; min-height: 320px; border-radius: 14px;
  border: 2px dashed var(--line); color: var(--ink-soft); font-size: 15px;
}
.contact-direct { margin: 32px auto 0; font-size: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; }
.contact-direct a { color: var(--aubergine); font-weight: 500; text-decoration: none; }
.contact-direct a:hover { text-decoration: underline; }
@media (max-width: 599px) { .contact-direct { flex-direction: column; align-items: center; } .contact-direct span { display: none; } }   /* phones: one item per line */
@media (prefers-reduced-motion: reduce) { .bubble { animation: none; } }

/* ---------- Our projects: a grid like Instagram's Explore page ---------- */
.grid { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
@media (min-width: 768px) { .grid { gap: 8px; } }
.tile {
  position: relative; aspect-ratio: 3 / 4;                /* the same shape as Instagram's grid boxes */
  overflow: hidden; background: var(--ink);
  display: grid; place-items: center;
}
.tile-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: blur(3px) brightness(.75);                       /* "obscured": softly blurred and darkened (bigger blur number = more blurred) */
  transform: scale(1.05);                                  /* zoomed in a little so the blur has no soft edges */
  transition: filter .3s, transform .3s;
}
.tile-logo {
  position: relative; width: 44%; aspect-ratio: 1; object-fit: contain;
  padding: 7%; box-sizing: border-box;                    /* breathing room so the logo isn't cut by the circle */
  border-radius: 50%; background: #ffffff;                 /* the logos have white backgrounds, so they sit in a white circle like a profile picture */
  box-shadow: 0 4px 20px rgba(0, 0, 0, .25);
}
.tile:hover .tile-bg { filter: blur(0) brightness(.85); transform: scale(1.08); }

/* ---------- Dashboard ("Explore your metrics") ---------- */
.dash-sample { margin: 0 auto 20px; font-size: 14px; color: var(--ink-soft); background: var(--tint); padding: 6px 14px; border-radius: 999px; }
.dash-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; }
.dash-search {
  flex: 1 1 260px; display: flex; align-items: center; gap: 4px;
  border: 1px solid var(--line); border-radius: 999px; background: #ffffff; padding: 0 6px 0 16px; min-height: 48px;
}
.dash-search:focus-within { border-color: var(--aubergine); }
.dash-search#search-a { border-left: 4px solid #8a4a93; }   /* the colour of this account in the charts */
.dash-search#search-b { border-left: 4px solid #1b9a8b; }
.dash-search .at { color: var(--ink-soft); font-size: 16px; }
.dash-search input { flex: 1; min-width: 0; border: none; outline: none; background: none; font: inherit; font-size: 16px; color: var(--ink); padding: 12px 0; }
.dash-search input::-webkit-search-cancel-button { display: none; }
.dash-search button { width: 40px; height: 40px; border: none; border-radius: 50%; background: none; color: var(--ink-soft); cursor: pointer; display: grid; place-items: center; }
.dash-search button:hover { background: var(--tint); color: var(--ink); }
.dash-pill, .dash-switch {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px; background: #ffffff;
  font: inherit; font-size: 15px; font-weight: 500; color: var(--ink); cursor: pointer;
}
.dash-pill:hover, .dash-switch:hover { background: var(--tint); }
.dash-switch .track { width: 36px; height: 22px; border-radius: 999px; background: #d6d0dc; position: relative; transition: background .2s; flex: none; }
.dash-switch .thumb { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #ffffff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.dash-switch[aria-checked="true"] .track { background: #a88c12; }
.dash-switch[aria-checked="true"] .thumb { transform: translateX(14px); }

#dash { transition: opacity .2s; }
#dash.loading { opacity: .5; }
.dash-empty { margin: 40px auto; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.swatch.line { width: 16px; height: 3px; border-radius: 2px; }

.dash-profiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 12px; }
.dash-profile { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: #ffffff; }
.dash-profile > .swatch { position: absolute; top: 12px; left: 12px; width: 8px; height: 8px; }
.dash-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: contain; border: 1px solid var(--line); background: #ffffff; flex: none; box-sizing: border-box; padding: 3px; }
.dash-avatar.letter { display: grid; place-items: center; color: #ffffff; font-weight: 600; font-size: 20px; border: none; }
.dash-avatar-pair { display: flex; flex: none; } .dash-avatar-pair .dash-avatar + .dash-avatar { margin-left: -16px; }
.dash-profile .who { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.dash-profile .who strong { font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-profile .who span { font-size: 13px; color: var(--ink-soft); }
.dash-profile dl { display: flex; gap: 16px; margin: 0; }
.dash-profile dl div { display: flex; flex-direction: column-reverse; align-items: center; }
.dash-profile dt { font-size: 12px; color: var(--ink-soft); }
.dash-profile dd { margin: 0; font-size: 17px; font-weight: 600; }
.dash-profile .remove { position: absolute; top: 4px; right: 6px; width: 28px; height: 28px; border: none; background: none; font-size: 20px; color: var(--ink-soft); cursor: pointer; border-radius: 50%; }
.dash-profile .remove:hover { background: var(--tint); color: var(--ink); }

.dash-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.dash-tiles.compare { grid-template-columns: minmax(0, 1fr); }                        /* phones: comparisons need the full width */
@media (min-width: 600px) { .dash-tiles.compare { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .dash-tiles, .dash-tiles.compare { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dash-tile, .dash-card { border: 1px solid var(--line); border-radius: 16px; background: #ffffff; padding: 16px; }
.dash-tile h2 { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); }
.dash-tile .hero { margin: 0; font-size: 34px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink); text-align: left; }
.dash-tile ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dash-tile li { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.dash-tile li .name { color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.dash-tile li strong { font-size: 17px; font-weight: 600; }
.dash-tile .tile-note { margin: 8px 0 0; font-size: 12px; line-height: 1.4; text-align: left; }

.dash-card { margin-bottom: 12px; padding: 20px; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.card-head h2 { margin: 0; font-size: 18px; font-weight: 600; }
.card-note { margin: 4px 0 14px; font-size: 14px; text-align: left; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--ink-soft); }
.legend li { display: flex; align-items: center; gap: 6px; }

.line-chart { position: relative; margin-top: 12px; touch-action: pan-y; }
.line-chart svg { display: block; overflow: visible; }
.line-chart .grid { stroke: var(--line); stroke-width: 1; }
.line-chart .tick { font-size: 11px; fill: var(--ink-soft); }
.line-chart .series-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.line-chart .end-label { font-size: 12px; font-weight: 600; fill: var(--ink); }
.line-chart .crosshair { stroke: var(--ink-soft); stroke-width: 1; stroke-dasharray: 3 3; }
.line-chart .tooltip {
  position: absolute; top: -8px; pointer-events: none; z-index: 2;
  display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; border-radius: 10px;
  background: #ffffff; border: 1px solid var(--line); box-shadow: 0 4px 16px rgba(26,18,32,.12);
  font-size: 13px; color: var(--ink); white-space: nowrap;
}
.line-chart .tooltip span { display: flex; align-items: center; gap: 6px; color: var(--ink-soft); }
.line-chart .tooltip b { color: var(--ink); margin-left: auto; padding-left: 8px; }
.line-chart .tooltip i { width: 8px; height: 8px; border-radius: 50%; }

.mix { display: grid; gap: 18px; }
@media (min-width: 900px) { .mix { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.mix-group h3 { margin: 0 0 8px; font-size: 15px; font-weight: 600; }
.mix-row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "bar val" "share share"; gap: 2px 10px; align-items: center; margin-bottom: 8px; }
.mix-bar-wrap { grid-area: bar; height: 10px; background: var(--tint); border-radius: 0 4px 4px 0; }
.mix-bar { display: block; height: 100%; border-radius: 0 4px 4px 0; min-width: 2px; }
.mix-val { grid-area: val; font-size: 14px; font-weight: 600; min-width: 44px; text-align: right; }
.mix-share { grid-area: share; font-size: 12px; color: var(--ink-soft); }

.top-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px 24px; }
.top-rows .top-grid { max-width: 460px; }
.top-who { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--ink); text-align: left; }
.top-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.top-post {
  position: relative; aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden; color: #ffffff;
  background: linear-gradient(160deg, color-mix(in oklab, var(--c) 55%, white), var(--c));   /* SAMPLE: real post thumbnails go here */
}
.top-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }   /* the real post image */
.top-link { position: absolute; inset: 0; z-index: 2; }                                         /* the whole tile opens the post */
.top-link:focus-visible { outline: 3px solid #ffffff; outline-offset: -5px; }
.dash-tile .na { color: var(--ink-soft); }
.top-type { position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 600; background: rgba(26,18,32,.4); padding: 2px 8px; border-radius: 999px; }
.top-rank { position: absolute; top: 6px; right: 10px; font-size: 18px; font-weight: 600; }
.top-stats { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; gap: 2px 10px; padding: 20px 8px 8px; font-size: 12px; font-weight: 500; background: linear-gradient(transparent, rgba(26,18,32,.6)); }

.dash-cta { margin: 28px 0 8px; padding: 32px 24px; border-radius: 20px; text-align: center; color: #ffffff; background: linear-gradient(135deg, var(--aubergine), var(--teal)); }
.dash-cta h2 { margin: 0 auto 8px; max-width: 560px; font-size: 22px; font-weight: 600; line-height: 1.3; }
.dash-cta p { margin: 0 auto 20px; max-width: 520px; font-size: 15px; color: rgba(255,255,255,.85); }
.cta-button { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 999px; background: #ffffff; color: var(--aubergine); font-weight: 600; text-decoration: none; }
.cta-button:hover { background: var(--tint); }

/* ---------- About us ---------- */
.about { text-align: center; }
.about-title {
  font-size: clamp(40px, 9vw, 76px); letter-spacing: -0.035em; line-height: 1.02; margin: 16px auto 36px;
  background: linear-gradient(100deg, var(--teal), var(--aubergine)); -webkit-background-clip: text; background-clip: text; color: transparent;   /* the wordmark's teal → purple */
}
.founders { display: flex; justify-content: center; gap: 16px; margin: 0 auto 8px; }
.founders-hint { margin: 28px auto 56px; font-size: 14px; color: var(--ink-soft); }
.founder { margin: 0; width: min(42vw, 260px); }
/* The flip card: a front (photo) and a back (bio) glued back to back; clicking turns it 180° */
.founder-card {
  position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; padding: 0; border: none; background: none;
  font: inherit; color: inherit; cursor: pointer; perspective: 1200px; border-radius: 20px;
}
.founder-card:focus-visible { outline: 3px solid var(--aubergine); outline-offset: 4px; }
.face {
  position: absolute; inset: 0; border-radius: 20px; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;     /* hide whichever side faces away */
  transition: transform .6s cubic-bezier(.3, .7, .2, 1);
  box-shadow: 0 10px 30px rgba(26, 18, 32, .14);
}
.face.back { transform: rotateY(180deg); }
.founder-card[aria-expanded="true"] .front { transform: rotateY(-180deg); }
.founder-card[aria-expanded="true"] .back  { transform: rotateY(0deg); }
.founder-photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.face.back {
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  padding: clamp(14px, 4vw, 26px); color: #ffffff; text-align: left;
}
.face.back.a { background: linear-gradient(160deg, #8a4a93, var(--aubergine)); }
.face.back.b { background: linear-gradient(160deg, #3fa596, #2f6f66); }
.bio-name { font-size: clamp(20px, 4vw, 26px); font-weight: 600; }
.bio-text { font-size: clamp(12.5px, 2.6vw, 15px); line-height: 1.5; color: rgba(255, 255, 255, .92); }
@media (max-width: 599px) {                               /* phones: small cards, so the name hides (it's in the caption) and the text shrinks */
  .founders { gap: 12px; }
  .founder { width: 46vw; }
  .bio-name { display: none; }
  .face.back { padding: 12px; }
  .bio-text { font-size: 12px; line-height: 1.4; }
}
@media (prefers-reduced-motion: reduce) { .face { transition: opacity .2s; } }
.founder:first-child { transform: rotate(-2deg); } .founder:last-child { transform: rotate(2deg) translateY(16px); }   /* a slightly casual, photo-on-a-table feel */
.founder figcaption { display: flex; flex-direction: column; margin-top: 12px; line-height: 1.3; }
.founder figcaption strong { font-size: 18px; font-weight: 600; }
.founder figcaption span { font-size: 14px; color: var(--ink-soft); }

.why { max-width: 820px; margin: 0 auto 56px; }
.why h2, .how h2 { margin: 0 0 10px; font-size: clamp(28px, 5vw, 40px); font-weight: 600; letter-spacing: -0.02em; }
.why-lead { margin: 0 auto 28px; max-width: 600px; font-size: 19px; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; text-align: left; }
@media (min-width: 700px) { .why-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.why-list li { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #ffffff; display: flex; flex-direction: column; gap: 6px; }
.why-list strong { font-size: 20px; font-weight: 600; color: var(--aubergine); }
.why-list span { font-size: 15px; line-height: 1.5; color: var(--ink-soft); }

.belief { margin: 0 auto 56px; max-width: 860px; padding: 40px 24px; border-radius: 24px; background: var(--tint); }
.belief p { margin: 0; font-size: clamp(24px, 4.4vw, 38px); font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; color: var(--ink); }
.belief em { font-style: normal; color: var(--teal); }
.belief em + em {                                          /* "quantity" is crossed out */
  color: var(--ink-soft); text-decoration: line-through; text-decoration-thickness: 2px; }

.how { max-width: 620px; margin: 0 auto 24px; }
.how p { margin: 0 0 24px; font-size: 17px; }
.how-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cta-button.solid { background: linear-gradient(135deg, var(--aubergine), var(--teal)); color: #ffffff; }
.cta-button.solid:hover { opacity: .92; background: linear-gradient(135deg, var(--aubergine), var(--teal)); }
.cta-button.outline { background: #ffffff; border: 1px solid rgba(103, 53, 110, .35); }

/* ---------- Tablet (768px and wider): narrow sidebar, icons only ---------- */
@media (min-width: 768px) {
  .site-header { display: none; }
  .nav {
    top: 0; right: auto; bottom: 0;
    width: var(--nav-narrow); height: auto;
    padding: 20px 12px;
    flex-direction: column; align-items: center; gap: 6px;
    justify-content: center;                 /* menu icons sit in the vertical middle */
    border-top: none; border-right: 1px solid var(--line);
  }
  .nav a { flex: none; width: 52px; height: 52px; }
  .nav-logo { display: flex !important; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); }   /* logo pinned to the top */
  .nav-logo .logo-symbol { width: 40px; height: 40px; display: block; }
  .nav-logo .logo-full { display: none; }
  body { padding-left: var(--nav-narrow); }
  html.snap { scroll-snap-type: none; }   /* computers: free scrolling; js/feed.js adds the gentle "magnetic" pull */
  :root { --reel-h: calc(100svh - 48px); }
  .post { scroll-snap-stop: normal; }
  main { padding: 48px 40px; }
}

/* ---------- Desktop (1200px and wider): wide sidebar, icons + labels ---------- */
@media (min-width: 1200px) {
  .nav { width: var(--nav-wide); align-items: stretch; padding: 28px 14px; }
  .nav a { width: auto; height: 52px; justify-content: flex-start; gap: 16px; padding: 0 14px; }
  .nav .label { position: static; width: auto; height: auto; overflow: visible; clip: auto; font-size: 16px; font-weight: 500; }
  .nav a[aria-current="page"] .label { font-weight: 600; }
  .nav-logo { top: 28px; left: 14px; right: 14px; transform: none; padding: 0 10px; height: 64px !important; }
  .nav-logo .logo-symbol { display: none; }
  .nav-logo .logo-full { display: block; height: 34px; }
  body { padding-left: var(--nav-wide); }
}

/* ---------- The intro animation (Home page): a white curtain on top of everything ---------- */
#intro { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 100; background: #ffffff; cursor: pointer; }

/* People who switched on "reduce motion" in their device settings get no transitions */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
