/* CurseStudio — public site */

:root {
  --bg: #08080a;
  --bg-1: #0e0e11;
  --bg-2: #141418;
  --bg-3: #1b1b20;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --line-3: rgba(255, 255, 255, 0.2);
  --text: #f2f2f4;
  --text-2: #a8a8b3;
  --text-3: #70707b;
  /* Accent palette. Overridden by /theme.css (derived from the live logo). */
  --a1: 255 45 53;
  --a2: 229 9 20;
  --a3: 255 120 125;
  --on-accent: #fff;
  --red: rgb(var(--a1));
  --red-2: rgb(var(--a2));
  --red-soft: rgb(var(--a1) / 0.12);
  --green: #3ddc84;
  --amber: #f5a524;

  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(88px, 11vw, 144px);
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
em { font-style: normal; }

::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.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;
}
.skip {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  padding: 8px 14px; background: var(--text); color: var(--bg);
  border-radius: 6px; font-size: 14px; font-weight: 600;
  transition: top 0.15s;
}
.skip:focus { top: 12px; }

.container {
  position: relative;
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.mono { font-family: var(--mono); }
.icon { width: 1em; height: 1em; flex: none; transition: transform 0.25s var(--ease); }

/* The original logo is red on pure black: "lighten" makes the black disappear
   on any dark background. */
.logo { mix-blend-mode: lighten; }

/* ---------- buttons, links, pills ---------- */

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 42px; padding: 0 18px;
  border-radius: 10px; border: 1px solid transparent;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn:hover .icon:last-child { transform: translate(2px, -2px); }
.btn--sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.btn--lg { height: 50px; padding: 0 22px; font-size: 16px; border-radius: 12px; }

.btn--primary {
  background: linear-gradient(180deg, rgb(var(--a1)) 0%, var(--red-2) 100%);
  color: var(--on-accent);
  box-shadow: 0 0 0 1px rgb(var(--a3) / 0.6) inset, 0 10px 30px -10px rgb(var(--a2) / 0.7);
}
.btn--primary:hover {
  background: linear-gradient(180deg, rgb(var(--a3)) 0%, rgb(var(--a2)) 100%);
  box-shadow: 0 0 0 1px rgb(var(--a3) / 0.7) inset, 0 14px 40px -10px rgb(var(--a2) / 0.85);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-2);
  color: var(--text);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: var(--line-3); }
.btn--ghost .icon:first-child { width: 18px; height: 18px; }
.btn--primary .icon:first-child:not(:last-child) { width: 18px; height: 18px; }

.link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text); font-size: 15px; font-weight: 500;
  transition: color 0.2s;
}
.link .icon { color: var(--red); }
.link:hover { color: #fff; }
.link:hover .icon { transform: translateX(3px); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  height: 34px; padding: 0 14px 0 12px;
  border: 1px solid var(--line-2); border-radius: 99px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2); font-size: 13.5px; font-weight: 500;
  transition: border-color 0.2s, background-color 0.2s;
}
a.pill:hover { border-color: var(--line-3); background: rgba(255, 255, 255, 0.06); }
.pill__dot {
  position: relative;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.18);
}
.pill__dot--warn { background: var(--amber); box-shadow: 0 0 0 3px rgba(245, 165, 36, 0.2); }
.pill__sep { width: 1px; height: 14px; background: var(--line-2); }
.pill__cta { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
a.pill:hover .pill__cta .icon { transform: translateX(2px); }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.kicker::before { content: ''; width: 20px; height: 1px; background: currentColor; opacity: 0.7; }

.tag {
  display: inline-flex; align-items: center;
  height: 22px; padding: 0 8px;
  border: 1px solid var(--line-2); border-radius: 6px;
  color: var(--text-2); font-size: 11.5px;
}

/* ---------- header ---------- */

.header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.header.is-scrolled,
.no-js .header {
  background: rgba(8, 8, 10, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 17px; letter-spacing: -0.02em;
}
.brand__logo {
  width: 34px; height: 34px; padding: 1px;
  border-radius: 9px;
  background: #000;
  box-shadow: 0 0 0 1px rgb(var(--a1) / 0.25), 0 4px 16px -4px rgb(var(--a2) / 0.45);
  mix-blend-mode: normal;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) {
  position: relative;
  color: var(--text-2); font-size: 14.5px; font-weight: 500;
  transition: color 0.2s;
}
.nav a:not(.btn):hover { color: var(--text); }
.nav__lang { padding-left: 30px; border-left: 1px solid var(--line-2); }

.menu-btn {
  display: none;
  width: 42px; height: 42px; margin-right: -10px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.menu-btn__bar { width: 20px; height: 1.5px; background: var(--text); transition: transform 0.25s var(--ease); }
.menu-btn[aria-expanded="true"] .menu-btn__bar:nth-child(2) { transform: translateY(3.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bar:nth-child(3) { transform: translateY(-3.75px) rotate(-45deg); }

@media (min-width: 901px) {
  .nav__links { display: flex; gap: 30px; }
  .nav__socials { display: none; }
}

@media (max-width: 900px) {
  .menu-btn { display: flex; position: relative; z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    padding: calc(84px + env(safe-area-inset-top)) var(--gutter) calc(28px + env(safe-area-inset-bottom));
    background:
      radial-gradient(80% 50% at 100% 0%, rgb(var(--a2) / 0.18), transparent 70%),
      rgba(8, 8, 10, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow-y: auto;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transition: opacity 0.3s var(--ease); }
  .nav__links { display: flex; flex-direction: column; }
  .nav__links a, .nav a.nav__lang {
    padding: 18px 0;
    font-size: 28px !important; font-weight: 600 !important; letter-spacing: -0.03em;
    color: var(--text) !important;
    border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateY(12px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  }
  .nav a.nav__lang { font-size: 17px !important; color: var(--text-2) !important; padding-left: 0; border-left: 0; }
  .nav.is-open .nav__links a, .nav.is-open a.nav__lang { opacity: 1; transform: none; }
  .nav.is-open .nav__links a:nth-child(1) { transition-delay: 0.05s; }
  .nav.is-open .nav__links a:nth-child(2) { transition-delay: 0.1s; }
  .nav.is-open .nav__links a:nth-child(3) { transition-delay: 0.15s; }
  .nav.is-open .nav__links a:nth-child(4) { transition-delay: 0.2s; }
  .nav.is-open a.nav__lang { transition-delay: 0.25s; }
  .nav__cta { margin-top: 28px; height: 54px; font-size: 16px; }
  .nav__socials {
    display: flex; flex-wrap: wrap; gap: 10px 22px;
    margin-top: auto; padding-top: 32px;
    color: var(--text-2); font-size: 15px;
  }
  .nav__socials a { color: var(--text-2) !important; padding: 6px 0 !important; border: 0 !important; font-size: 15px !important; }
  body.nav-open { overflow: hidden; }
  body.nav-open .header { background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
}

/* ---------- shared backgrounds ---------- */

.hero__bg {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(55% 50% at 80% 40%, rgb(var(--a2) / 0.10), transparent 70%),
    radial-gradient(40% 40% at 10% 0%, rgba(255, 255, 255, 0.04), transparent 70%);
}
.hero__bg::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 20%, transparent 75%);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  margin-top: -72px;
  padding: calc(72px + clamp(64px, 9vw, 112px)) 0 clamp(64px, 8vw, 104px);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}
.hero__copy { position: relative; z-index: 2; }
.hero__title {
  margin-top: 28px;
  font-size: clamp(44px, 6.6vw, 84px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.hero__title em {
  background: linear-gradient(180deg, rgb(var(--a3)) 10%, var(--red-2) 90%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero__lead {
  max-width: 54ch;
  margin-top: 26px;
  color: var(--text-2);
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.6;
  text-wrap: pretty;
}
.hero .actions { margin-top: 38px; }

.stats {
  display: flex; flex-wrap: wrap;
  margin-top: 56px;
  border-top: 1px solid var(--line);
}
.stats > div {
  display: flex; flex-direction: column-reverse;
  padding: 22px 36px 0 0; margin-right: 36px;
  border-right: 1px solid var(--line);
}
.stats > div:last-child { border-right: 0; margin-right: 0; }
.stats dd {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stats dt { margin-top: 4px; color: var(--text-3); font-size: 14px; }

.hero__visual {
  position: relative;
  order: 2; /* after the copy on desktop; first on phones (see below) */
  aspect-ratio: 1;
  display: grid; place-items: center;
}
.hero__logo {
  position: relative; z-index: 2;
  width: 88%;
  filter: saturate(1.25) brightness(1.2);
  animation: float 9s ease-in-out infinite;
}
.hero__glow {
  position: absolute; inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 30%, rgb(var(--a2) / 0.22) 55%, transparent 72%);
  filter: blur(24px);
}
.orbit {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.orbit--1 { inset: 0; }
.orbit--2 { inset: 9%; border-color: rgb(var(--a1) / 0.14); border-style: dashed; animation: spin 80s linear infinite; }
.orbit--3 { inset: 20%; border-color: rgba(255, 255, 255, 0.05); }
.orbit--1::after {
  content: ''; position: absolute; top: 50%; left: -4px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 12px var(--red);
}

@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual {
    position: absolute; top: 40px; right: -28%;
    width: 85%; max-width: 520px;
    z-index: auto; /* no stacking context (opacity/z-index): the logo must blend with the page */
  }
  .hero__visual > * { opacity: 0.28; }
}
@media (max-width: 600px) {
  .stats > div { padding-right: 22px; margin-right: 22px; }
  .hero__visual { right: -45%; top: 60px; width: 120%; }
}

/* ---------- ticker ---------- */

.ticker {
  position: relative;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker__track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker ul { display: flex; gap: 12px; padding-right: 12px; }
.ticker li a {
  display: flex; align-items: center; gap: 12px;
  height: 48px; padding: 0 18px 0 10px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg-2);
  color: var(--text-2); font-size: 15px; font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.ticker li a:hover { color: var(--text); border-color: var(--line-3); }
.ticker img, .ticker__ph {
  width: 30px; height: 30px; border-radius: 8px; object-fit: cover; background: var(--bg-3);
}
.ticker__ph { display: grid; place-items: center; font-size: 13px; color: var(--text-2); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */

.section { position: relative; padding: var(--section-y) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section--alt { background: linear-gradient(180deg, var(--bg-1), var(--bg) 70%); }

.section h2 {
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.section h2 em { color: var(--red); }

.shead {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 28px 72px;
  align-items: end;
  margin-bottom: 56px;
}
.shead__aside { display: grid; gap: 18px; justify-items: start; }
.shead__aside p { color: var(--text-2); font-size: 17px; max-width: 48ch; }

@media (max-width: 800px) { .shead { grid-template-columns: 1fr; margin-bottom: 40px; } }

/* ---------- project grid ---------- */

.pgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.pcard > a {
  position: relative;
  display: flex; flex-direction: column;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-1);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.pcard > a::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(80% 60% at 50% 0%, rgb(var(--a2) / 0.12), transparent 70%);
  opacity: 0; transition: opacity 0.4s;
}
.pcard > a:hover {
  border-color: rgb(var(--a1) / 0.35);
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgb(var(--a1) / 0.08);
}
.pcard > a:hover::after { opacity: 1; }

.pcard__media {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid; place-items: center;
  background: var(--bg-2);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.pcard__blur {
  position: absolute; inset: -20%;
  width: 140%; height: 140%; max-width: none;
  object-fit: cover;
  filter: blur(40px) saturate(1.4);
  opacity: 0.45;
  transform: scale(1.1);
}
.pcard__img {
  position: relative;
  width: auto; height: 62%;
  max-width: 70%;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.7);
  transition: transform 0.6s var(--ease);
}
.pcard__media--cover .pcard__img {
  width: 100%; height: 100%; max-width: none;
  object-fit: cover; border-radius: 0; box-shadow: none;
}
.pcard__media--cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(14, 14, 17, 0.6));
}
.pcard__media--empty span {
  font-size: 56px; font-weight: 600; color: var(--text-3); letter-spacing: -0.04em;
}
.pcard > a:hover .pcard__img { transform: scale(1.05); }

.pcard__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; flex: 1; }
.pcard__meta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  color: var(--text-3); font-size: 13px; font-weight: 500;
}
.pcard__title {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 21px; font-weight: 600; letter-spacing: -0.025em;
}
.pcard__go {
  display: grid; place-items: center; flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line-2);
  color: var(--text-2); font-size: 13px;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}
.pcard > a:hover .pcard__go { background: var(--red-2); border-color: var(--red-2); color: var(--on-accent); }
.pcard > a:hover .pcard__go .icon { transform: translate(1px, -1px); }
.pcard__desc { color: var(--text-2); font-size: 15px; line-height: 1.55; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.chips li {
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-2);
  font-family: var(--mono); font-size: 11.5px;
}

.pcard--lead { grid-column: span 2; grid-row: span 2; }
.pcard--lead .pcard__media { aspect-ratio: auto; flex: 1; min-height: 300px; }
.pcard--lead .pcard__img { height: 50%; max-height: 240px; }
.pcard--lead .pcard__body { padding: 28px 30px 30px; flex: none; }
.pcard--lead .pcard__title { font-size: 30px; letter-spacing: -0.035em; }
.pcard--lead .pcard__desc { font-size: 16.5px; max-width: 56ch; }

@media (max-width: 1000px) {
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pcard--lead { grid-row: auto; }
  .pcard--lead .pcard__media { aspect-ratio: 16 / 8; min-height: 0; }
}
@media (max-width: 640px) {
  .pgrid { grid-template-columns: 1fr; }
  .pcard--lead { grid-column: auto; }
  .pcard--lead .pcard__media { aspect-ratio: 16 / 10; }
  .pcard--lead .pcard__title { font-size: 24px; }
}

/* ---------- studio: features + history ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.feature {
  position: relative;
  padding: 32px 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--bg-1), transparent);
  overflow: hidden;
}
.feature::before {
  content: ''; position: absolute; top: 0; left: 28px; right: 28px; height: 1px;
  background: linear-gradient(90deg, transparent, rgb(var(--a1) / 0.6), transparent);
}
.feature__icon {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  border: 1px solid rgb(var(--a1) / 0.25);
  background: var(--red-soft);
  color: rgb(var(--a1));
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { margin-top: 26px; font-size: 20px; font-weight: 600; letter-spacing: -0.025em; }
.feature p { margin-top: 10px; color: var(--text-2); font-size: 15.5px; }

@media (max-width: 900px) { .features { grid-template-columns: 1fr; } }

.history {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 48px 72px;
  margin-top: clamp(80px, 10vw, 128px);
}
.history__head h3 {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600; letter-spacing: -0.04em; line-height: 1.1;
}
.tl { position: relative; }
.tl::before {
  content: ''; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 1px;
  background: linear-gradient(180deg, var(--red), var(--line-2) 30%, var(--line));
}
.tl__item {
  position: relative;
  display: grid; grid-template-columns: 88px 1fr; gap: 16px;
  padding: 0 0 36px 40px;
}
.tl__item:last-child { padding-bottom: 0; }
.tl__item::before {
  content: ''; position: absolute; left: 2px; top: 6px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--red);
}
.tl__item:last-child::before { background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.tl__year { color: var(--text-3); font-size: 15px; padding-top: 1px; }
.tl__item h4 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.tl__item p { margin-top: 4px; color: var(--text-2); font-size: 15.5px; }

@media (max-width: 860px) {
  .history { grid-template-columns: 1fr; }
  .tl__item { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- infrastructure ---------- */

.svcs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.svc > a {
  display: flex; flex-direction: column; gap: 6px;
  height: 100%;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(14, 14, 17, 0.7);
  transition: border-color 0.3s, background-color 0.3s;
}
.svc > a:hover { border-color: var(--line-3); background: var(--bg-2); }
.svc__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.svc__name { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.svc__host { color: var(--text-3); font-size: 13px; }
.svc p { margin-top: 8px; color: var(--text-2); font-size: 15px; }

.status {
  display: inline-flex; align-items: center; gap: 8px;
  height: 26px; padding: 0 10px;
  border-radius: 99px;
  font-size: 12.5px; font-weight: 500;
  background: rgba(255, 255, 255, 0.05); color: var(--text-2);
  white-space: nowrap;
}
.status__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.status.is-up { background: rgba(61, 220, 132, 0.1); color: #7debb0; }
.status.is-up .status__dot { background: var(--green); animation: beat 2.4s ease-out infinite; }
.status.is-down { background: rgb(var(--a1) / 0.1); color: rgb(var(--a3)); }
.status.is-down .status__dot { background: var(--red); }
@keyframes beat {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.55); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(61, 220, 132, 0); }
}

@media (max-width: 760px) { .svcs { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */

.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px 72px; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0;
  font-size: 18px; font-weight: 500; letter-spacing: -0.015em;
  cursor: pointer; list-style: none;
  transition: color 0.2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: #fff; }
.faq__icon {
  position: relative; flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line-2);
  transition: background-color 0.2s, border-color 0.2s;
}
.faq__icon::before, .faq__icon::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 10px; height: 1.5px; margin: -0.75px 0 0 -5px;
  background: var(--text-2);
  transition: transform 0.3s var(--ease);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--red-2); border-color: var(--red-2); }
.faq__item[open] .faq__icon::before, .faq__item[open] .faq__icon::after { background: #fff; }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__item p { max-width: 62ch; padding: 0 48px 26px 0; color: var(--text-2); font-size: 16px; }

@media (max-width: 860px) { .faq { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- community cta ---------- */

.section--cta { padding-top: clamp(40px, 6vw, 72px); }
.cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: clamp(36px, 6vw, 72px);
  border: 1px solid rgb(var(--a1) / 0.22);
  border-radius: 28px;
  background:
    radial-gradient(70% 120% at 100% 0%, rgb(var(--a2) / 0.28), transparent 60%),
    radial-gradient(50% 80% at 0% 100%, rgb(var(--a2) / 0.1), transparent 60%),
    var(--bg-1);
  overflow: hidden;
}
.cta::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 100% 0%, #000, transparent 70%);
          mask-image: radial-gradient(ellipse 60% 80% at 100% 0%, #000, transparent 70%);
}
.cta > * { position: relative; }
.cta h2 { font-size: clamp(32px, 4vw, 50px); }
.cta__copy p { margin-top: 18px; max-width: 46ch; color: var(--text-2); font-size: 18px; }
.cta__side { display: grid; gap: 22px; justify-items: start; }

.guild {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px 14px 14px;
  border: 1px solid var(--line-2); border-radius: 16px;
  background: rgba(8, 8, 10, 0.6);
  backdrop-filter: blur(6px);
}
.guild img { width: 48px; height: 48px; border-radius: 14px; }
.guild strong { display: block; font-size: 16px; font-weight: 600; }
.guild span { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 14px; }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.cta__socials { display: flex; flex-wrap: wrap; gap: 22px; }

@media (max-width: 860px) { .cta { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- footer ---------- */

.footer {
  position: relative;
  padding: 72px 0 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  overflow: hidden;
}
.footer__top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer__brand { max-width: 320px; }
.footer__brand p { margin-top: 16px; color: var(--text-2); }
.footer__cols { display: flex; gap: clamp(40px, 6vw, 88px); flex-wrap: wrap; }
.footer h3 { margin-bottom: 16px; color: var(--text); font-size: 14px; font-weight: 600; }
.footer li + li { margin-top: 11px; }
.footer li a { color: var(--text-2); transition: color 0.2s; }
.footer li a:hover { color: var(--text); }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 64px; padding: 24px 0;
  border-top: 1px solid var(--line);
  color: var(--text-3);
}
.footer__bottom a:hover { color: var(--text); }
.footer__word {
  margin: 0 0 -0.22em;
  text-align: center;
  font-size: clamp(64px, 17vw, 260px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  user-select: none;
}

/* ---------- message pages (404, maintenance) ---------- */

.message {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex; align-items: center;
  margin-top: -72px;
  padding: calc(72px + 80px) 0 80px;
  overflow: hidden;
}
.message h1 {
  max-width: 18ch;
  margin-top: 4px;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.message h1 em { color: var(--red); }
.message h1 + p { margin-top: 22px; max-width: 48ch; color: var(--text-2); font-size: 18px; }
.message .actions { margin-top: 40px; }
.message--center { text-align: center; }
.message--center .container { display: flex; flex-direction: column; align-items: center; }
.message--center h1 { margin-top: 26px; }
.message--center .actions { justify-content: center; }
.message__logo { width: 120px; height: 120px; margin-bottom: 28px; }

/* ---------- reveal on scroll (only when JS is running) ---------- */

:root { --ease-out: cubic-bezier(0.16, 1, 0.3, 1); }

.js .reveal {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(8px);
  transition:
    opacity 1s var(--ease-out),
    transform 1.2s var(--ease-out),
    filter 1s var(--ease-out);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.js .reveal--left { transform: translateX(-36px); }
.js .reveal--scale { transform: translateY(30px) scale(0.94); }
.js .reveal--rise { transform: translateY(48px) scale(0.97); }
.js .reveal--fade { transform: none; filter: none; transition-duration: 1.4s; }
/* Finished state: no transform/filter left behind (they create stacking contexts). */
.js .reveal.is-in { opacity: 1; transform: none; filter: none; will-change: auto; }

/* Headings appear word by word */
.js .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.js .split .w > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1s var(--ease-out);
  transition-delay: calc(var(--d, 0s) + var(--wi, 0) * 0.045s);
}
.js .is-in .split .w > span, .js .split.is-in .w > span { transform: none; }

/* Kicker line draws in */
.js .kicker::before { transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease-out) 0.15s; }
.js .is-in .kicker::before, .js .is-in.kicker::before { transform: scaleX(1); }

/* Feature icons pop in after their card */
.js .feature .feature__icon { transform: scale(0.6) rotate(-12deg); opacity: 0; transition: transform 0.8s var(--ease-out), opacity 0.6s; transition-delay: calc(var(--d, 0s) + 0.25s); }
.js .feature.is-in .feature__icon { transform: none; opacity: 1; }

/* Timeline line draws as you scroll through it */
.js .tl::before { transform: scaleY(var(--p, 0)); transform-origin: top; transition: transform 0.15s linear; }
.js .tl__item::before { transform: scale(0); transition: transform 0.6s var(--ease-out) calc(var(--d, 0s) + 0.2s); }
.js .tl__item.is-in::before { transform: none; }

/* Project images settle in */
.js .pcard .pcard__media { clip-path: inset(0 0 100% 0 round 0); transition: clip-path 1.1s var(--ease-out); transition-delay: calc(var(--d, 0s) + 0.1s); }
.js .pcard.is-in .pcard__media { clip-path: inset(0 0 0 0 round 0); }

/* CTA glow breathes in */
.js .cta::after {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 1px rgb(var(--a1) / 0.5), 0 0 80px -10px rgb(var(--a2) / 0.5);
  opacity: 0; transition: opacity 1.6s var(--ease-out) 0.4s;
}
.js .cta.is-in::after { opacity: 0.6; }

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90; height: 2px;
  background: linear-gradient(90deg, rgb(var(--a2)), rgb(var(--a1)), rgb(var(--a3)));
  transform-origin: left; transform: scaleX(0);
  pointer-events: none;
  box-shadow: 0 0 10px rgb(var(--a1) / 0.6);
}

/* Parallax (values set from JS; `translate` composes with existing transforms) */
/* On the children, not .hero__visual itself: a translate there would create a
   stacking context and break the logo's blend with the page (black square). */
.hero__visual > * { translate: 0 var(--py, 0px); }
.hero__copy { translate: 0 var(--cy, 0px); }
.footer__word { translate: 0 var(--fy, 0px); transition: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .ticker__track { width: auto; overflow-x: auto; }
}

/* =========================================================================
   v3.1 additions: loader, notice bars, special days, mobile, skeletons
   ========================================================================= */

html { -webkit-tap-highlight-color: transparent; }
body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
@media (max-width: 900px) { .brand { position: relative; z-index: 2; } }

/* ---------- loader (first paint) ---------- */

.loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; align-content: center; gap: 28px;
  background: var(--bg);
  /* Without JS, the loader still fades out on its own. */
  animation: loader-out 0.5s var(--ease) 1.4s forwards;
}
.js .loader { animation: none; }
.js .loader.is-done { opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0s linear 0.5s; }
.js .loader.is-skip { display: none; }
.loader__mark { position: relative; width: 88px; height: 88px; }
.loader__mark::before {
  content: ''; position: absolute; inset: -18px; border-radius: 50%;
  border: 1px solid rgb(var(--a1) / 0.35);
  border-top-color: rgb(var(--a1));
  animation: spin 0.9s linear infinite;
}
.loader__mark img { width: 88px; height: 88px; animation: loader-pulse 1.6s ease-in-out infinite; }
.loader__bar { width: 120px; height: 2px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.loader__bar span {
  display: block; width: 40%; height: 100%; border-radius: inherit;
  background: rgb(var(--a1));
  animation: loader-bar 1.1s var(--ease) infinite;
}
@keyframes loader-out { to { opacity: 0; visibility: hidden; } }
@keyframes loader-pulse { 50% { transform: scale(0.94); opacity: 0.75; } }
@keyframes loader-bar { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }

/* ---------- notice bars (special days, maintenance notice, announcements) ---------- */

.bars { position: relative; z-index: 51; }
.bar {
  position: relative;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  transition: max-height 0.35s var(--ease), opacity 0.3s;
  max-height: 200px;
}
.bar.is-hidden { max-height: 0; opacity: 0; border-bottom-width: 0; }
.bar__inner {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 44px; padding: 9px calc(var(--gutter) + 36px) 9px var(--gutter);
  text-align: center;
}
.bar__link { display: inline-flex; align-items: center; gap: 10px; color: inherit; }
a.bar__link:hover .bar__text { text-decoration: underline; text-underline-offset: 3px; }
a.bar__link:hover .bar__go .icon { transform: translateX(3px); }
.bar__icon { display: inline-grid; place-items: center; flex: none; font-size: 15px; color: rgb(var(--a1)); }
.bar__text em { color: #fff; font-weight: 600; }
.bar__meta { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); white-space: nowrap; }
.bar__close {
  position: absolute; right: calc(var(--gutter) - 8px); top: 50%; transform: translateY(-50%);
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 8px;
  border: 0; background: none; color: var(--text-2); cursor: pointer;
}
.bar__close:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.no-js .bar__close { display: none; }

.bar--info { background: linear-gradient(90deg, rgb(var(--a2) / 0.18), rgb(var(--a2) / 0.06) 50%, rgb(var(--a2) / 0.18)); border-bottom-color: rgb(var(--a1) / 0.25); }
.bar--promo { background: linear-gradient(90deg, rgb(var(--a2) / 0.35), rgb(var(--a2) / 0.12) 50%, rgb(var(--a2) / 0.35)); border-bottom-color: rgb(var(--a1) / 0.35); }
.bar--success { background: rgba(61, 220, 132, 0.1); border-bottom-color: rgba(61, 220, 132, 0.25); }
.bar--success .bar__icon { color: var(--green); }
.bar--warning { background: rgba(245, 165, 36, 0.12); border-bottom-color: rgba(245, 165, 36, 0.3); }
.bar--warning .bar__icon { color: var(--amber); }

.bar--occ .bar__inner { padding-right: var(--gutter); }
.bar--celebration {
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent) 0 0 / 200% 100%,
    linear-gradient(90deg, rgb(var(--a2) / 0.4), rgb(var(--a2) / 0.18) 50%, rgb(var(--a2) / 0.4));
  border-bottom-color: rgb(var(--a1) / 0.4);
  animation: bar-shine 6s linear infinite;
}
.bar--countdown { background: linear-gradient(90deg, rgb(var(--a2) / 0.22), rgba(255, 255, 255, 0.03) 50%, rgb(var(--a2) / 0.22)); border-bottom-color: rgb(var(--a1) / 0.3); }
.bar--memorial { background: #0c0c0d; border-bottom-color: rgba(255, 255, 255, 0.1); color: #d6d6dc; }
.bar--memorial .bar__icon { color: #d6d6dc; }
.bar--memorial .bar__text em { color: #fff; }
@keyframes bar-shine { to { background-position: -200% 0, 0 0; } }

.cd {
  display: inline-flex; gap: 6px;
  padding: 3px 10px; border-radius: 99px;
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line-2);
  font-size: 12.5px; color: #fff; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.cd:empty { display: none; }

@media (max-width: 640px) {
  .bar { font-size: 13px; }
  .bar__inner { flex-wrap: wrap; gap: 6px 10px; padding-top: 10px; padding-bottom: 10px; text-align: left; justify-content: flex-start; }
  .bar__icon { display: none; }
  .bar__link { display: block; }
}

/* ---------- special days: memorial mode ---------- */

/* The logo is red on black: plain greyscale would turn it almost black, so lift it. */
.occ-memorial .logo,
.occ-memorial .brand__logo { filter: grayscale(1) brightness(3.2) contrast(1.05) !important; }
.occ-memorial .pcard__img,
.occ-memorial .pcard__blur,
.occ-memorial .ticker img { filter: grayscale(1) !important; }
.occ-memorial .hero__glow { opacity: 0.35; }
.occ-memorial .orbit--1::after { background: #c9c9cf; box-shadow: none; }

/* Effects canvas (snow / confetti) */
.fx {
  position: fixed; inset: 0; z-index: 60;
  width: 100%; height: 100%;
  pointer-events: none;
}

/* ---------- image skeletons ---------- */

.js .pcard__media::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.05) 40%, transparent 60%) 0 0 / 200% 100%;
  animation: shimmer 1.4s linear infinite;
  transition: opacity 0.4s;
}
.js .pcard__media.is-loaded::before { opacity: 0; animation: none; }
.js .pcard__img, .js .pcard__blur { opacity: 0; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .pcard__media.is-loaded .pcard__img { opacity: 1; }
.js .pcard__media.is-loaded .pcard__blur { opacity: 0.45; }
.js .ticker img { opacity: 0; transition: opacity 0.4s; }
.js .ticker img.is-loaded { opacity: 1; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Hero entrance */
.js .hero__visual { opacity: 0; transform: scale(0.94); transition: opacity 1.2s var(--ease) 0.2s, transform 1.2s var(--ease) 0.2s; }
.js .is-ready .hero__visual, .js body.is-ready .hero__visual { opacity: 1; transform: none; }

/* ---------- FAQ smooth open ---------- */

.faq__body { overflow: hidden; }
.js .faq__item .faq__body { transition: height 0.35s var(--ease); }

/* ---------- message pages extras ---------- */

.message__code {
  font-size: clamp(96px, 18vw, 200px);
  font-weight: 600; letter-spacing: -0.06em; line-height: 0.9;
  background: linear-gradient(180deg, rgb(var(--a1)), rgb(var(--a2) / 0.1));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.message__mark { position: relative; width: 180px; height: 180px; display: grid; place-items: center; margin-bottom: 28px; }
.message__mark .orbit--2 { inset: 0; }
.message__mark img { width: 140px; height: 140px; animation: float 6s ease-in-out infinite; }
.message__note { margin-top: 28px; color: var(--text-3); font-size: 14px; }
.eta {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px;
  margin-top: 26px; padding: 12px 18px;
  border: 1px solid var(--line-2); border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2); font-size: 15px;
}
.eta strong { color: var(--text); font-weight: 600; }

/* ---------- carousel UI (mobile projects) ---------- */

.carousel-ui { display: none; }

/* ---------- touch devices: no sticky hover lifts ---------- */

@media (hover: none) {
  .pcard > a:hover { transform: none; box-shadow: none; border-color: var(--line); }
  .pcard > a:hover::after { opacity: 0; }
  .pcard > a:hover .pcard__img { transform: none; }
  .pcard > a:active { transform: scale(0.985); }
  .btn:hover .icon:last-child { transform: none; }
}

/* ---------- phones ---------- */

@media (max-width: 640px) {
  :root { --section-y: 76px; }
  .header__inner { height: 64px; }
  .hero { margin-top: -64px; padding-top: calc(64px + 32px); }
  .message { margin-top: -64px; }
  html { scroll-padding-top: 76px; }

  .hero__grid { gap: 8px; }
  .hero__visual {
    position: relative; top: auto; right: auto;
    width: 64%; max-width: 260px; margin: 0 auto -8px;
    order: -1;
  }
  .hero__visual > * { opacity: 1; }
  .hero__title { margin-top: 22px; font-size: clamp(38px, 11.5vw, 52px); }
  .hero__lead { margin-top: 18px; font-size: 16.5px; }
  .hero .actions { margin-top: 28px; }
  .hero .actions .btn { flex: 1 1 100%; }
  .pill { height: auto; min-height: 34px; padding: 6px 12px; flex-wrap: wrap; row-gap: 4px; }

  .stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 36px; }
  .stats > div { padding: 18px 10px 0 0; margin-right: 0; border-right: 0; }
  .stats > div + div { padding-left: 14px; border-left: 1px solid var(--line); }
  .stats dd { font-size: 26px; }
  .stats dt { font-size: 12.5px; line-height: 1.35; }

  .ticker { padding: 14px 0; }
  .ticker li a { height: 42px; font-size: 14px; }

  .section h2 { font-size: clamp(30px, 9vw, 40px); }
  .shead { margin-bottom: 28px; }
  .shead__aside p { font-size: 16px; }

  /* Projects become a swipeable carousel */
  .pgrid {
    display: flex; gap: 12px;
    margin: 0 calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 8px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .pgrid::-webkit-scrollbar { display: none; }
  .pgrid > li { flex: 0 0 84%; scroll-snap-align: start; }
  .pcard--lead { grid-column: auto; }
  .pcard--lead .pcard__media { aspect-ratio: 16 / 10; }
  .pcard--lead .pcard__img { height: 62%; }
  .pcard--lead .pcard__title { font-size: 21px; }
  .pcard--lead .pcard__desc { font-size: 15px; }
  .pcard--lead .pcard__body { padding: 22px 24px 24px; }
  .js .pgrid > .reveal { opacity: 1; transform: none; }
  .carousel-ui {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 14px; color: var(--text-3); font-size: 13px;
  }
  .carousel-ui__dots { display: flex; gap: 6px; }
  .carousel-ui__dots i {
    width: 6px; height: 6px; border-radius: 99px; background: var(--line-3);
    transition: width 0.3s var(--ease), background-color 0.3s;
  }
  .carousel-ui__dots i.is-on { width: 18px; background: rgb(var(--a1)); }

  .feature { padding: 24px 22px; }
  .feature h3 { margin-top: 18px; }
  .history { gap: 28px; }
  .tl__item { padding-left: 34px; padding-bottom: 28px; }

  .svc > a { padding: 22px; }
  .svc__top { flex-wrap: wrap; gap: 8px; }

  .faq__item summary { font-size: 16.5px; padding: 20px 0; }
  .faq__item p { padding-right: 0; font-size: 15.5px; }

  .cta { padding: 28px 22px; border-radius: 22px; }
  .cta__copy p { font-size: 16px; }
  .cta .actions, .cta .actions .btn { width: 100%; }
  .guild { width: 100%; }

  .footer { padding-top: 52px; }
  .footer__cols { gap: 32px 40px; }
  .footer__cols > div { min-width: 120px; }
  .footer__bottom { margin-top: 40px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }

  .message .actions .btn { flex: 1 1 100%; }
  .message__mark { width: 140px; height: 140px; }
  .message__mark img { width: 110px; height: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  .loader { display: none !important; }
  .js .hero__visual, .js .pcard__img, .js .pcard__blur, .js .ticker img { opacity: 1 !important; transform: none !important; }
  .js .pcard__media.is-loaded .pcard__blur { opacity: 0.45 !important; }
  .bar--celebration { animation: none; }
}

/* Admin live preview: no entrance animations, everything visible at once. */
.is-preview .reveal, .is-preview .hero__visual { opacity: 1 !important; transform: none !important; }
.is-preview .loader { display: none !important; }

/* Preview and reduced motion: show everything in its final state. */
.is-preview .reveal, .is-preview .split .w > span, .is-preview .feature__icon, .is-preview .tl__item::before {
  opacity: 1 !important; transform: none !important; filter: none !important;
}
.is-preview .pcard__media { clip-path: none !important; }
.is-preview .tl::before { transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .split .w > span, .js .feature__icon, .js .tl__item::before, .js .kicker::before {
    opacity: 1 !important; transform: none !important; filter: none !important;
  }
  .js .pcard .pcard__media { clip-path: none !important; }
  .js .tl::before { transform: none !important; }
  .hero__visual > *, .hero__copy, .footer__word { translate: none !important; }
}

/* =========================================================================
   Hero visual v3 — no rings, dots or glow: just the logo, large, bleeding
   off the right edge and fading out softly. Hidden on phones (the header
   already shows the logo).
   ========================================================================= */
.hero__grid { display: block; }
.hero__copy { max-width: 700px; }
.hero__visual {
  position: absolute; z-index: auto; /* no stacking context: the logo blends with the page */
  top: 50%; right: -8%;
  width: min(54vw, 700px); aspect-ratio: 1;
  margin-top: calc(min(54vw, 700px) / -2);
  pointer-events: none;
  order: 0;
}
.hero__logo {
  width: 100%;
  animation: none;
  opacity: 0.85;
  filter: saturate(1.15);
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
}
.hero__visual > * { opacity: 1; }

@media (max-width: 1100px) {
  .hero__visual { right: -24%; width: 80vw; margin-top: -40vw; }
  .hero__logo { opacity: 0.3; }
}
@media (max-width: 640px) {
  .hero__visual { display: none; }
  .hero { padding-top: calc(64px + 48px); }
}
