/* Starblind Studios — public site styles. Minimalist / futuristic, dark + neutral gray accent. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); overscroll-behavior: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overscroll-behavior: none;   /* no rubber-band / bounce when the scroll hits the top or bottom */
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; font-weight: 700; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
/* text fields show focus via border-color only — no double focus ring/box */
input:focus, select:focus, textarea:focus, [contenteditable="true"]:focus,
input:focus-visible, select:focus-visible, textarea:focus-visible, [contenteditable="true"]:focus-visible { box-shadow: none; }
/* Terminal-style text caret in every input: tinted block cursor, native blink.
   caret-shape is progressive — a real block where supported, a tinted line elsewhere. */
input, textarea, [contenteditable="true"], .rte { caret-color: var(--accent-bright); caret-shape: block; }
.tw-caret { display: inline-block; color: var(--accent-bright); margin-left: 1px; animation: twblink 1s steps(1) infinite; }
@keyframes twblink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: var(--wrap-narrow); }
.site-main { flex: 1 0 auto; position: relative; z-index: 1; }

/* ── Page transitions ──────────────────────────────────────
   Handled by reveal.js: cards build IN left-to-right as a plexus-style graph mesh (matching the
   background), and dissolve OUT the same way on navigation. The critical inline <style> in <head>
   paints the page black before any CSS loads, and the plexus is seeded (identical every load), so
   navigations never flash white and the background never jumps. */
.site-leaving { pointer-events: none; }
/* content sections sit on gray cards over the plexus (all pages) */
/* width:min keeps a 24px side gutter (matching the header/footer .wrap) at every width below
   1040 — fixes the edge-to-edge cards in the 761–1040px band. */
.section { width: min(1040px, 100% - 48px); margin: 30px auto; border-radius: var(--radius-lg); background: var(--card-bg); border: 1px solid rgba(255, 255, 255, 0.07); padding: 46px 40px; }
.section.wrap-narrow { max-width: var(--wrap-narrow); }
.contact-form { max-width: 660px; margin: 0 auto; }
/* All section titles (About + each studio) share one large, all-caps, gray square-font style. */
/* The home section-title look is applied to every page heading (.page-title too).
   Weight 400 to match the newsletter label (the owner prefers the lighter, not-bold square caps). */
.section-title, .studio-title, .page-title { font-family: var(--font-tech); font-weight: 400; font-size: clamp(22px, 3.4vw, 30px); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; }
/* Defensive: never let a long owner-entered word overflow its card on a phone. */
.section-title, .studio-title, .page-title, .pf-title, .team-name, .media-name { overflow-wrap: anywhere; }
/* Fixed style: EVERY all-caps square-font (Chakra Petch) title/label is weight 400 — never bold.
   One rule so headings can't drift bold (h3-based ones like .linklist-title default to 700). */
.section-title, .studio-title, .page-title, .linklist-title, .nl-label, .field label, .spec-cell dt { font-weight: 400; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #0c0c0c; padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark { filter: invert(1); }
.brand-word { font-family: var(--display); font-weight: 300; letter-spacing: 0.04em; font-size: 17px; }
.brand-word b { font-weight: 700; color: var(--text); }
.brand-word-thin { font-weight: 300; color: var(--muted); margin-left: 0; }  /* thin, like the home hero center */

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
  font-family: var(--font-tech); color: var(--muted); padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase;
  transition: color .12s, background .12s;
}
.nav-link:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }
.nav-link.is-active { color: var(--accent); }
.nav-lang { display: none; }

.header-lang { margin-left: 4px; }
.lang-toggle { display: inline-flex; align-items: center; gap: 2px; background: var(--panel); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.lang-opt { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 700; }
.lang-opt:hover { color: var(--text); text-decoration: none; }
.lang-opt.is-active { background: rgba(var(--accent-rgb), 0.16); color: var(--accent-bright); }
.flag { width: 18px; height: 13px; border-radius: 2px; display: block; }

.nav-toggle { display: none; margin-left: auto; background: transparent; border: 1px solid var(--border); color: var(--text); border-radius: var(--radius-sm); padding: 7px; cursor: pointer; }

/* Portfolio dropdown */
.nav-dd { position: relative; display: inline-flex; align-items: center; }
.nav-dd-toggle { display: inline-flex; align-items: center; gap: 4px; }
.nav-dd-caret { display: inline-flex; transition: transform .15s ease; }
.nav-dd:hover .nav-dd-caret, .nav-dd:focus-within .nav-dd-caret { transform: rotate(180deg); }
.nav-dd-menu {
  position: absolute; top: 100%; left: 0; min-width: 184px; display: none;
  background: rgba(0, 0, 0, 0.97); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-2); padding: 6px; z-index: 60;
}
.nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu { display: block; }
.nav-dd-item { display: block; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--muted); font-family: var(--font-tech); font-size: 13px; font-weight: 400; letter-spacing: 0.06em; }
.nav-dd-item:hover { background: var(--panel-2); color: var(--text); text-decoration: none; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
  letter-spacing: 0.02em; border: 1px solid var(--border); background: var(--panel-2); color: var(--text);
  cursor: pointer; transition: background .12s, border-color .12s, filter .12s; white-space: nowrap;
}
.btn:hover { background: #232325; border-color: #3a3a40; text-decoration: none; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #0c0c0c; font-weight: 700; box-shadow: var(--glow); }
.btn-accent:hover { filter: brightness(1.08); background: var(--accent); }
.btn-sm { padding: 8px 13px; font-size: 13px; }
.btn svg { width: 16px; height: 16px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── "Coming soon" placeholder buttons ───────────────────────
   A link not live yet renders as a greyed, non-clickable button/icon with a balloon that
   shows on hover (desktop) and on tap (mobile, via .show-soon toggled in site.js). Works on
   any base class (.btn, .social-link, .hero-social-link, .media-plat-link, .link-chip, .team-link). */
.is-soon { position: relative; cursor: default; }
/* Fade ONLY the button's own content (icon + label) — NOT the .soon-tip. (Putting opacity on
   .is-soon itself would force the nested balloon translucent too, since a child can't exceed its
   parent's opacity.) */
.is-soon > :not(.soon-tip) { opacity: 0.5; filter: grayscale(1); }
.is-soon.is-soon:hover { transform: none; background: var(--panel-2); border-color: var(--border); color: var(--muted); }   /* doubled class beats base .link-chip/.social-link/etc :hover regardless of source order */
.soon-tip {
  position: absolute; left: 50%; bottom: calc(100% + 9px); transform: translateX(-50%) translateY(4px);
  white-space: nowrap; background: var(--panel-2); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 5px 10px; font-family: var(--font-tech); font-size: 12px; font-weight: 400;
  letter-spacing: 0.02em; box-shadow: var(--shadow-2); opacity: 0; pointer-events: none;
  transition: opacity .15s ease, transform .15s ease; z-index: 6;
}
.soon-tip::after { content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--panel-2); }
.is-soon:hover .soon-tip, .is-soon:focus .soon-tip, .is-soon:focus-visible .soon-tip, .is-soon.show-soon .soon-tip { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Hero ────────────────────────────────────────────────── */
.hero { position: relative; padding: 96px 0 64px; text-align: center; overflow: hidden; }
.hero-glow { position: absolute; inset: -40% 0 auto 0; height: 600px; pointer-events: none;
  background: radial-gradient(680px 320px at 50% 0, rgba(var(--accent-rgb), 0.22), transparent 70%); }
.hero-inner { position: relative; }
.hero-mark { filter: invert(1); margin: 0 auto 20px; opacity: 0.96; }
.hero-title { font-size: clamp(40px, 7vw, 76px); margin: 0; letter-spacing: -0.02em; font-weight: 800; }
.hero-tagline { color: var(--muted); font-size: clamp(16px, 2.4vw, 21px); max-width: 640px; margin: 18px auto 0; }
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }

.prose p { margin: 0 0 14px; } .prose p:last-child { margin-bottom: 0; }
/* Uniform across every section: body/intro text is white, only the title is gray. */
.prose-lead { font-size: 18px; color: var(--text); }
.rich a { color: var(--accent); } .rich ul, .rich ol { padding-left: 22px; }

/* ── Studio blocks ───────────────────────────────────────── */
/* Home studio sections are gray cards over the plexus, IDENTICAL to the global .section card
   (same width + padding at every breakpoint) so About and the three studios share one uniform
   look. Defined HERE — before the responsive @media block — so the mobile padding overrides
   (same selector, equal specificity) come later in the file and actually win. All studios use
   the same translucent --card-bg (no per-studio gradient) so none reads heavier than the rest. */
.home .studio.pane { width: min(1040px, 100% - 48px); margin: 30px auto; border-radius: var(--radius-lg); background: var(--card-bg); border: 1px solid rgba(255, 255, 255, 0.07); padding: 46px 0; }
.home .studio.pane .wrap { padding: 0 40px; max-width: none; }
/* .studio-title styling is shared with .section-title above. */
/* No width cap: the studio body fills the card exactly like the About section, so every home
   section shares one uniform inset (card padding only). */
.studio-body { max-width: none; }

.linklist { margin-top: 38px; }
.linklist-title { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); margin: 0 0 14px; }
.link-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.link-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--panel); color: var(--text); font-family: var(--font-tech);
  font-size: 14px; font-weight: 400; letter-spacing: 0.02em;
  transition: border-color .12s, background .12s, transform .12s;
}
.link-chip:hover { border-color: var(--accent); background: var(--panel-2); text-decoration: none; transform: translateY(-1px); }
.link-chip-ic { display: inline-flex; width: 18px; height: 18px; color: var(--accent); }
.link-chip-ic svg { width: 18px; height: 18px; }

/* Spec grid (R&D supercomputer) */
.spec { margin-top: 38px; }
/* Columns = a divisor of the card count (set inline as --spec-cols) so both rows hold the same
   number of cards (symmetric, no orphan last row). Mobile drops to 2-up (also even). */
.spec-grid { display: grid; grid-template-columns: repeat(var(--spec-cols, 4), 1fr); gap: 12px; margin: 0; }
/* min-width:0 lets a grid cell shrink below its content's intrinsic width (grid items default to
   min-width:auto, which would otherwise push a long value past the card edge on a narrow phone). */
.spec-cell { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); padding: 14px 16px; }
.spec-cell dt { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); overflow-wrap: anywhere; }
.spec-cell dd { margin: 6px 0 0; font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--text); overflow-wrap: anywhere; }
.spec-pending { margin-top: 12px; font-size: 13px; color: var(--warn); }

/* Newsletter inline form */
.nl-item { width: 100%; margin-top: 16px; }
.nl-form { width: 100%; max-width: 460px; }
.nl-label { display: block; font-family: var(--font-tech); font-size: 13px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); margin-bottom: 10px; }
.nl-row { display: flex; gap: 8px; }
.nl-input { flex: 1; min-width: 0; background: var(--panel); border: 1px solid var(--border); color: var(--text); border-radius: var(--radius-sm); padding: 7px 12px; font: inherit; font-size: 14px; }
.nl-input:focus { border-color: var(--accent); outline: none; }
.nl-msg { font-size: 13px; margin: 8px 0 0; color: var(--good); }
.nl-msg.is-error { color: var(--bad); }

/* ── Page heads ──────────────────────────────────────────── */
.page-head { margin-bottom: 40px; }
.page-title { margin: 0 0 16px; }  /* font/size/color from the shared section-title rule above */

/* ── Team ────────────────────────────────────────────────── */
.team-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px; }
/* min-width:0 lets the 1fr columns shrink below the photo's intrinsic size on very narrow phones
   (grid items default to min-width:auto), so the right column never spills past the card edge. */
.team-card { text-align: center; min-width: 0; }
.team-photo { width: 160px; height: 160px; margin: 0 auto 16px; border-radius: 50%; overflow: hidden; border: 2px solid var(--border); background: var(--panel); display: grid; place-items: center; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo.is-fallback { background: radial-gradient(circle at 50% 30%, rgba(var(--accent-rgb), 0.25), var(--panel)); }
.team-initials { font-family: var(--display); font-weight: 800; font-size: 44px; color: var(--accent); }
.team-name { font-size: 19px; margin: 0 0 4px; }
.team-pos { color: var(--muted); margin: 0 0 12px; font-size: 14px; }
.team-links { display: flex; gap: 10px; justify-content: center; }
.team-link { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); }
.team-link:hover { color: var(--accent); text-decoration: none; }
.team-link svg { width: 16px; height: 16px; }

/* ── Forms (shared) ──────────────────────────────────────── */
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-tech); font-size: 12px; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 7px; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--panel); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-sm); padding: 8px 12px; font: inherit; font-size: 15px;
}
.field input::placeholder, .field textarea::placeholder { color: #6d6e73; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d8e93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 14px;
  padding-right: 38px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { margin-top: 20px; }
.form-note { color: var(--muted); font-size: 13px; }
/* Inline per-field validation messages + invalid state (contact + signup forms). */
.field-msg { display: block; margin-top: 6px; font-size: 12px; color: var(--bad); }
.field input.is-invalid, .field select.is-invalid, .field textarea.is-invalid,
.pf-signup-input.is-invalid { border-color: var(--bad); }

/* ── Custom dropdown (shared: contact form + admin) ──────────
   Replaces the native <select> popup (which never matched the field width). The native
   <select> stays in the DOM as the value source + no-JS fallback; enhanceSelect (select.js)
   hides it and mirrors it into this themed, full-width listbox. */
.cstm-native-hidden { display: none; }
.cstm-select { position: relative; }
.cstm-select-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--panel); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-sm); padding: 8px 12px; font: inherit; font-size: 15px;
  text-align: left; cursor: pointer; transition: border-color .12s;
}
.cstm-select-btn:hover { border-color: #3a3a40; }
.cstm-select.is-open .cstm-select-btn { border-color: var(--accent); }
.cstm-select-btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.cstm-select-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cstm-select-label.is-placeholder { color: #6d6e73; }
.cstm-select-caret { flex: 0 0 auto; display: inline-flex; color: var(--muted); transition: transform .15s ease; }
.cstm-select.is-open .cstm-select-caret { transform: rotate(180deg); }
.cstm-select-list {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40; margin: 0; padding: 6px;
  list-style: none; background: rgba(0, 0, 0, 0.97); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-2); max-height: 280px; overflow-y: auto;
}
.cstm-select-list[hidden] { display: none; }
.cstm-select-list:focus { outline: none; }
.cstm-select-opt { padding: 9px 12px; border-radius: 5px; color: var(--text); font-size: 15px; cursor: pointer; }
/* Exactly ONE option is highlighted at a time (the active one) — matches a native <select>.
   Hover sets active (select.js), so the mouse and keyboard never produce two highlights, and the
   previously-chosen value is NOT separately marked while you browse. >=3:1 indicator (WCAG 1.4.11). */
.cstm-select-opt:hover, .cstm-select-opt.is-active { background: var(--panel-2); color: var(--accent-bright); box-shadow: inset 2px 0 0 var(--accent-bright); }

/* Honeypot — visually hidden + off-screen, not display:none (bots skip display:none). */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.hp-field input { width: 1px; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { flex-shrink: 0; border-top: 1px solid var(--border); background: var(--bg-soft); margin-top: 40px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; padding: 32px 24px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; }
.footer-brand .brand-mark { filter: invert(1); }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); font-family: var(--font-tech); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; } .footer-nav a:hover { color: var(--text); }
.footer-social { display: flex; gap: 12px; }
.social-link { color: var(--muted); } .social-link:hover { color: var(--accent); }
.social-link svg { width: 20px; height: 20px; }
.footer-legal { width: 100%; color: var(--muted); font-size: 13px; border-top: 1px solid var(--border); padding-top: 16px; }
.footer-legal p { margin: 2px 0; }

/* ── Responsive ──────────────────────────────────────────── */
/* Cards stay clearly semi-transparent on phones so the (denser) plexus reads through them —
   a touch more see-through than desktop, never near-solid. */
@media (max-width: 900px) { :root { --card-bg: rgba(18, 18, 18, 0.60); } }
@media (max-width: 560px) { :root { --card-bg: rgba(18, 18, 18, 0.54); } }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .header-lang { display: none; }
  .site-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px;
    background: rgba(0, 0, 0, 0.96); border-bottom: 1px solid var(--border);
  }
  .site-nav.is-open { display: flex; }
  .nav-link { padding: 12px; }
  .nav-lang { display: block; margin-top: 8px; }
  .nav-dd { display: block; }
  .nav-dd-menu { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 6px 14px; background: transparent; min-width: 0; }
  .nav-dd-caret { display: none; }
  .nav-dd-item { padding: 10px 0; }
  .field-row { grid-template-columns: 1fr; }
  .section { margin: 16px auto; padding: 30px 18px; }
  .home .studio.pane { margin: 16px auto; padding: 30px 0; }
  .home .studio.pane .wrap { padding: 0 18px; }
  /* Keep list views as a compact 2-up grid (no wasted single-column width). */
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 14px; }
  /* Photo shrinks WITH its column (min of 104px or the column width) so it can never force the
     grid wider than the card on a very narrow phone; aspect-ratio keeps it a perfect circle. */
  .team-photo { width: min(104px, 100%); height: auto; aspect-ratio: 1 / 1; }
  .team-initials { font-size: 32px; }
  .team-name { font-size: 16px; }
  .team-pos { font-size: 13px; }
  /* Spec cells 2-up so you don't scroll through a column of specs. */
  .spec-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .spec-cell { padding: 11px 12px; }
  .spec-cell dd { font-size: 16px; }
  /* Newsletter: stack the button below the email field instead of cramping it. */
  .nl-form { max-width: none; }
  .nl-row { flex-direction: column; }
  .nl-btn { width: 100%; }
}


/* ── Tech-font treatment for technical labels / subtitles ── */
/* (.section-title/.studio-title get the tech font from their shared rule above.) */
.linklist-title, .spec-cell dt, .pf-tab, .lang-opt,
.btn, .pf-price, .media-plat, .pf-filter-label, .nl-label,
.team-pos, .pub-cite, .prose-lead, .rd-tab, .pf-soon { font-family: var(--font-tech); }

/* ── Plexus background (home only) ── */
/* inset:0 (not 100vw — avoids scrollbar overflow); own compositor layer = no scroll jitter */
.plexus-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; display: block; transform: translateZ(0); will-change: transform; }
.home { position: relative; z-index: 1; }
.site-footer { position: relative; z-index: 1; }
/* semi-transparent gray panels over the plexus (the hero stays clear) */
/* (home studio card rules live up in the "Studio blocks" section so the mobile overrides win) */

/* ── Hero pane ── */
/* Extra bottom padding lifts the centered content up so the scroll chevron never overlaps the social row. */
/* Subtract the sticky header so the content centers in the VISIBLE area (not pushed below center). */
.hero-pane { min-height: calc(100vh - var(--header-h)); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; position: relative; padding: 56px 24px 120px; }
.hero-pane .hero-inner { will-change: transform, opacity; }
.hero-mark { filter: invert(1); width: clamp(180px, 22vw, 252px); height: auto; margin: 0 auto 28px; opacity: 0.96; }
.brand-hero { font-family: var(--display); font-size: clamp(44px, 9vw, 104px); line-height: 1; margin: 0; letter-spacing: -0.01em; }
.brand-hero .bw-bold { font-weight: 700; color: var(--text); }
.brand-hero .bw-thin { font-weight: 300; color: var(--muted); }
.hero-tagline { font-family: var(--font-tech); font-weight: 300; color: var(--muted); font-size: clamp(14px, 2.1vw, 19px); letter-spacing: 0.16em; text-transform: uppercase; margin: 22px auto 0; max-width: 700px; }
.hero-social { display: flex; gap: 14px; justify-content: center; margin: 32px 0 4px; }
.hero-social-link { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.4); color: var(--text); transition: border-color .15s, color .15s, transform .15s; }
.hero-social-link:hover { border-color: var(--accent-bright); color: var(--accent-bright); transform: translateY(-2px); text-decoration: none; }
.hero-social-link svg { width: 22px; height: 22px; }
.hero-cta { display: flex; gap: 28px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.hero-cta a { font-family: var(--font-tech); color: var(--text); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; padding-bottom: 3px; border-bottom: 1px solid transparent; }
.hero-cta a:hover { border-bottom-color: var(--accent-bright); color: var(--accent-bright); text-decoration: none; }
.hero-chevron { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: var(--muted); animation: chev 2s ease-in-out infinite; }
.hero-chevron:hover { color: var(--text); }
@keyframes chev { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ── Reveal on scroll ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
/* Staged reveal: a card's inner content (set by reveal.js holdInner) stays hidden until the
   title finishes typing, then fades in — so nothing appears before the title. */
.rv-hold { opacity: 0; visibility: hidden; }                                  /* visibility:hidden keeps held form fields out of tab/click order while invisible */
.rv-hold.rv-in { opacity: 1; visibility: visible; transition: opacity .55s ease; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .rv-hold { opacity: 1; visibility: visible; }
  .hero-chevron { animation: none; }
  .site-main { animation: none; }
}

/* Hero must fit the visible viewport on phones (logo + title + tagline + social + CTA all show).
   Placed last + scoped under .hero-pane so it wins over the base hero sizing above. */
@media (max-width: 600px) {
  .hero-pane { min-height: calc(100svh - var(--header-h)); padding: 28px 20px 64px; }
  .hero-pane .hero-mark { width: clamp(92px, 28vw, 142px); margin-bottom: 12px; }
  .hero-pane .hero-tagline { margin-top: 14px; }
  .hero-pane .hero-social { margin: 16px 0 4px; }
  .hero-pane .hero-social-link { width: 44px; height: 44px; }
  .hero-pane .hero-cta { margin-top: 14px; gap: 20px; }
  .hero-pane .hero-chevron { bottom: 16px; }
}
