/* Talosha portfolio — talosha.com
   World: the Order's night navy, one blue accent, Cinzel for names,
   Cormorant for the voice, Barlow for working text. */

:root {
  --ground: #0d1b2a;
  --ground-deep: #08121c;
  --ink: #f5f5f0;
  --body: #cdd7e2;
  --muted: #93a6ba;
  --accent: #4f9ce0;
  --accent-soft: rgba(79, 156, 224, 0.14);
  --line: rgba(205, 215, 226, 0.16);
  --line-strong: rgba(205, 215, 226, 0.42);
  --display: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Barlow", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(20px, 5vw, 88px);
  --header: var(--talosha-header-h, 84px);
}

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

html {
  background: var(--ground);
  overflow-x: clip;
  color-scheme: dark;
  scroll-behavior: smooth;
  scrollbar-color: rgba(147, 166, 186, 0.35) var(--ground-deep);
  scrollbar-width: thin;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  overflow-x: clip;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  background:
    radial-gradient(1100px 760px at 82% -8%, rgba(79, 156, 224, 0.13), transparent 62%),
    radial-gradient(900px 700px at -6% 62%, rgba(8, 18, 28, 0.9), transparent 70%),
    var(--ground);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--accent);
}

::selection { background: var(--accent-soft); color: var(--ink); }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }

.skip {
  position: fixed; left: 16px; top: -64px; z-index: 3000;
  padding: 10px 16px; background: var(--ink); color: var(--ground);
  font: 500 14px var(--sans); border-radius: 999px;
  transition: top .25s var(--ease);
}
.skip:focus { top: 12px; }

/* The header is fixed; keep the space it occupies before it hydrates. */
talosha-header { display: block; height: 0; }

/* ---- hero ---------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
  padding: calc(var(--header) + clamp(32px, 6vh, 72px)) var(--gutter) clamp(56px, 9vh, 104px);
  overflow: clip;
}

.hero__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.7rem, 6.2vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: balance;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero__title .line > span { display: inline-block; }
.hero__title em { font-style: italic; font-weight: 500; color: var(--ink); }

.hero__lede {
  margin: clamp(22px, 3.4vh, 36px) 0 0;
  max-width: 46ch;
  font-size: clamp(1.05rem, 1.2vw, 1.2rem);
  color: var(--body);
}

.hero__actions {
  margin-top: clamp(28px, 4.4vh, 44px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px;
}

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 26px 15px 28px;
  font: 500 13px/1 var(--sans);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink);
  background: rgba(79, 156, 224, 0.16);
  border: 1px solid rgba(79, 156, 224, 0.62);
  border-radius: 999px;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.btn:hover { background: rgba(79, 156, 224, 0.28); border-color: var(--accent); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }

.textlink {
  font: 500 13px/1 var(--sans);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--body);
  padding: 8px 0;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0% 1px no-repeat;
  transition: color .25s var(--ease), background-size .4s var(--ease);
}
.textlink:hover { color: var(--ink); background-size: 100% 1px; }

/* while the intro splash is held, the hero's entrance animations wait behind it */
.home-hold .hero__title .line > span, .home-hold .hero__lede, .home-hold .hero__actions, .home-hold .emblem,
.home-hold .geo .r, .home-hold .geo .ticks { animation-play-state: paused !important; }

/* ---- hero mark ------------------------------------------------------ */
.hero__mark {
  position: relative;
  justify-self: center;
  width: min(100%, 560px);
  aspect-ratio: 1;
}
.geo { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform-origin: 50% 50%; animation: turn 180s linear infinite; }
.geo .r { stroke: rgba(205, 215, 226, 0.34); stroke-width: 1; vector-effect: non-scaling-stroke; }
.geo .r1 { stroke: rgba(205, 215, 226, 0.20); }
.geo .r3 { stroke: rgba(79, 156, 224, 0.5); }
.geo .tri { stroke: rgba(205, 215, 226, 0.24); }
.geo .ticks line { stroke: rgba(205, 215, 226, 0.34); stroke-width: 1; vector-effect: non-scaling-stroke; }

.emblem {
  position: absolute; left: 50%; top: 50%;
  width: 38%; height: auto; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 38px rgba(79, 156, 224, 0.28));
}

@keyframes turn { to { transform: rotate(360deg); } }

/* one authored moment: the lines rise, the geometry draws itself */
.js .hero__title .line > span { transform: translateY(105%); animation: rise 1.05s var(--ease) forwards; }
.js .hero__title .line:nth-child(2) > span { animation-delay: .12s; }
.js .hero__lede, .js .hero__actions { opacity: 0; transform: translateY(14px); animation: fade .9s var(--ease) .5s forwards; }
.js .hero__actions { animation-delay: .62s; }
.js .geo .r, .js .geo .ticks { opacity: 0; animation: bloom 1.4s var(--ease) .15s forwards; }
.js .geo .r2 { animation-delay: .28s; }
.js .geo .r3 { animation-delay: .4s; }
.js .geo .tri { animation-delay: .52s; }
.js .emblem { opacity: 0; animation: emblem 1.2s var(--ease) .45s forwards; }

@keyframes rise { to { transform: translateY(0); } }
@keyframes fade { to { opacity: 1; transform: none; } }
@keyframes bloom { to { opacity: 1; } }

/* Safety net: app.js adds .settled shortly after load, so content can never
   stay hidden if a browser throttles or skips the entrance animations. */
.settled .hero__title .line > span,
.settled .hero__lede,
.settled .hero__actions,
.settled .emblem,
.settled .geo .r,
.settled .geo .ticks { animation: none; opacity: 1; transform: none; }
.settled .emblem { transform: translate(-50%, -50%); }
@keyframes emblem { from { opacity: 0; transform: translate(-50%, -50%) scale(.94); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

/* ---- introduction video player (the same one as the partnership / Commerce page) ------ */
.hero-video { padding: clamp(8px, 2vh, 24px) var(--gutter) clamp(24px, 5vh, 56px); }
.hero-video[hidden] { display: none; }
.hero-video-frame {
  position: relative; width: min(100%, 1040px); aspect-ratio: 16 / 9; margin: 0 auto; overflow: hidden;
  border: 1px solid var(--line-strong); border-radius: 18px; background: #05070a;
  box-shadow: 0 50px 100px -60px rgba(79, 156, 224, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.hero-video-frame video { display: block; width: 100%; height: 100%; object-fit: contain; background: #05070a; }
.hero-video-play {
  position: absolute; top: 50%; left: 50%; display: grid; place-items: center;
  width: 68px; height: 68px; padding: 0;
  border: 1.5px solid rgba(245, 245, 240, 0.85); border-radius: 50%;
  background: rgba(8, 18, 28, 0.55); color: var(--ink); cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transform: translate(-50%, -50%);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), opacity 0.25s ease, transform 0.25s var(--ease);
}
.hero-video-play svg { width: 26px; height: 26px; margin-left: 4px; fill: currentColor; }
.hero-video-play:active { transform: translate(-50%, -50%) scale(0.96); }
.hero-video-play:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.hero-video-frame.is-playing .hero-video-play { opacity: 0; pointer-events: none; }
.hero-video-status { position: absolute; left: 0; right: 0; bottom: 18px; margin: 0; color: var(--body); text-align: center; font: 500 13px/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; }
@media (hover: hover) and (pointer: fine) {
  .hero-video-play:hover { background: rgba(79, 156, 224, 0.28); border-color: var(--accent); }
}
@media (max-width: 740px) {
  .hero-video { padding-left: 0; padding-right: 0; }
  .hero-video-frame { border-radius: 0; border-left: 0; border-right: 0; }
  .hero-video-play { width: 58px; height: 58px; }
}

/* ---- projects ------------------------------------------------------- */
.projects { padding: clamp(56px, 10vh, 120px) var(--gutter) clamp(40px, 7vh, 88px); }

.projects__head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end; gap: 12px 48px;
  padding-bottom: clamp(20px, 3vh, 32px);
}
.projects__head h2,
.writings h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.projects__head p { margin: 0; color: var(--muted); font-size: 1rem; max-width: 44ch; justify-self: end; }

.register { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }

.entry { border-top: 1px solid var(--line); position: relative; }
.entry__link {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) max-content;
  align-items: baseline;
  gap: 8px clamp(20px, 3vw, 56px);
  padding: clamp(26px, 4.4vh, 44px) 0;
  color: inherit;
}
.entry__id {
  display: flex; align-items: center; gap: clamp(14px, 1.6vw, 22px);
  min-width: 0;
  transition: transform .5s var(--ease);
}
.entry__mark {
  flex: none;
  width: 44px; height: 44px;
  object-fit: contain;
  transition: opacity .3s var(--ease), filter .3s var(--ease);
}
/* The house emblem stands in until a project has its own mark. */
.entry__mark.is-fallback { opacity: .42; }
.entry.is-live:hover .entry__mark.is-fallback { opacity: .7; }
.entry__name {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.1vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  text-wrap: balance;
  transition: color .3s var(--ease);
}
.entry__line {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  line-height: 1.4;
  color: var(--body);
  max-width: 46ch;
  text-wrap: pretty;
}
.entry__meta {
  display: flex; align-items: center; justify-content: flex-end; gap: 14px;
  font: 500 12.5px/1.3 var(--sans);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.entry__host { font-variant-numeric: tabular-nums; }
.entry__state {
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--body);
}
.entry__arrow { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease), color .3s var(--ease); }

/* hover rule draws across the row */
.entry::after {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .7s var(--ease);
  pointer-events: none;
}

.entry.is-live .entry__link { cursor: pointer; }
.entry.is-live:hover::after, .entry.is-live:focus-within::after { transform: scaleX(1); }
.entry.is-live:hover .entry__id, .entry.is-live:focus-within .entry__id { transform: translateX(14px); }
.entry.is-live:hover .entry__arrow, .entry.is-live:focus-within .entry__arrow { transform: translateX(6px); color: var(--accent); }
.entry.is-live .entry__state { border-color: rgba(79, 156, 224, 0.62); color: var(--ink); background: rgba(79, 156, 224, 0.12); }

.entry.is-soon .entry__name { color: rgba(245, 245, 240, 0.64); }
.entry.is-soon .entry__line { color: var(--muted); }
.entry.is-soon .entry__state { color: var(--muted); border-color: var(--line); }

.js .entry[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease) calc(var(--i, 0) * 70ms), transform .9s var(--ease) calc(var(--i, 0) * 70ms); }
.js .entry[data-reveal].in { opacity: 1; transform: none; }

/* ---- writings: a reading desk ------------------------------------------ */
.writings {
  padding: clamp(32px, 6vh, 72px) var(--gutter) clamp(64px, 11vh, 132px);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px;
}
.writings__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 12px 48px; }
.writings__head p { margin: 0; color: var(--muted); font-size: 1rem; max-width: 44ch; justify-self: end; }

.desk { list-style: none; margin: 0; padding: 18px 0 30px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.2vw, 32px); }
.sheet {
  --r: -2.2deg; --y: 0px;
  position: relative; transform-origin: 50% 100%;
  transform: translateY(var(--y)) rotate(var(--r));
  transition: transform 0.55s var(--ease), opacity 0.4s var(--ease);
}
.sheet:nth-child(2) { --r: 0.8deg; --y: -12px; }
.sheet:nth-child(3) { --r: 2.4deg; --y: 6px; }

.sheet a {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  min-height: clamp(290px, 31vw, 380px); padding: 26px 24px 22px 40px;
  border: 1px solid var(--line-strong); border-radius: 8px 8px 16px 16px;
  background:
    linear-gradient(90deg, transparent 31px, rgba(79, 156, 224, 0.4) 31px, rgba(79, 156, 224, 0.4) 32px, transparent 32px),
    repeating-linear-gradient(180deg, transparent 0 33px, rgba(205, 215, 226, 0.085) 33px 34px) 0 12px / 100% 100%,
    linear-gradient(170deg, rgba(245, 245, 240, 0.075), rgba(245, 245, 240, 0.02) 60%, rgba(8, 18, 28, 0.5));
  box-shadow: 0 30px 50px -34px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  animation: sheetFloat 7.5s ease-in-out infinite; animation-delay: calc(var(--i) * -2.4s);
}
.sheet__ink {
  position: absolute; left: 40px; top: 22px; width: 58%; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(79, 156, 224, 0));
  transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease) calc(0.5s + var(--i) * 120ms);
}
.sheet__no {
  position: absolute; right: 18px; top: 8px;
  font: 500 clamp(3.4rem, 6vw, 5.2rem)/1 var(--display); letter-spacing: 0.02em; color: rgba(205, 215, 226, 0.07);
  transition: color 0.4s var(--ease), transform 0.6s var(--ease);
}
.sheet__kind {
  align-self: flex-start; margin-bottom: auto; padding: 6px 12px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font: 500 11px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--body);
  margin-top: 26px;
}
.sheet .w-title { font-family: var(--serif); font-size: clamp(1.4rem, 2.1vw, 1.9rem); color: var(--ink); line-height: 1.2; text-wrap: balance; transition: none; }
.sheet .w-note { padding-right: 34px; font: 500 12px/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); text-align: left; }
.sheet__arrow { position: absolute; right: 20px; bottom: 20px; width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); transition: transform 0.45s var(--ease), color 0.3s var(--ease); }
@keyframes sheetFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

/* a quiet picture behind each sheet: screen-blended so its dark ground disappears, faded away from the title */
.sheet__img { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(205deg, #000 18%, rgba(0, 0, 0, 0.55) 48%, transparent 82%);
  mask-image: linear-gradient(205deg, #000 18%, rgba(0, 0, 0, 0.55) 48%, transparent 82%); }
.sheet__img img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 20%; mix-blend-mode: screen; opacity: 0.4;
  transform: scale(1.06); transition: transform 1.2s var(--ease), opacity 0.6s var(--ease); }
.sheet:nth-child(1) .sheet__img img { opacity: 0.3; }
.sheet:nth-child(2) .sheet__img img { opacity: 0.55; }
.sheet:nth-child(3) .sheet__img img { opacity: 0.38; }
.sheet__kind, .sheet .w-title, .sheet .w-note, .sheet__no { position: relative; z-index: 1; }
.sheet__no { position: absolute; }
.sheet__ink { z-index: 1; }

/* the sheets fan out from one pile when the section arrives */
.js .writings:not(.in) .sheet { opacity: 0; transform: translate(calc((1 - var(--i)) * 104%), 36px) rotate(calc((var(--i) - 1) * -11deg)); }
.js .writings.in .sheet { transition: transform 1.05s var(--ease) calc(var(--i) * 110ms), opacity 0.5s var(--ease) calc(var(--i) * 110ms); }
.writings.in .sheet__ink { transform: scaleX(1); }

.sheet a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .writings.in .sheet:hover { transform: translateY(-16px) rotate(0deg) scale(1.025); transition: transform 0.5s var(--ease); z-index: 2; }
  .sheet:hover a { animation-play-state: paused; border-color: rgba(79, 156, 224, 0.55); }
  .sheet:hover .sheet__ink { transform: scaleX(1.5); width: 70%; }
  .sheet:hover .sheet__no { color: rgba(79, 156, 224, 0.22); transform: translateY(6px); }
  .sheet:hover .sheet__img img { transform: scale(1.14) translate(-6px, 4px); opacity: 0.52; }
  .sheet:hover .sheet__arrow { transform: translateX(6px); color: var(--accent); }
  @supports selector(:has(*)) {
    .desk:has(.sheet:hover) .sheet:not(:hover) { opacity: 0.62; }
  }
}

@media (max-width: 860px) {
  .writings__head { grid-template-columns: 1fr; }
  .writings__head p { justify-self: start; }
  .desk { grid-template-columns: 1fr; gap: 14px; padding-top: 6px; }
  .sheet a { min-height: 150px; justify-content: flex-end; }
  .sheet, .sheet:nth-child(2), .sheet:nth-child(3) { --r: 0deg; --y: 0px; }
  .sheet:nth-child(2) { --r: 0.6deg; }
  .sheet:nth-child(3) { --r: -0.6deg; }
  .js .writings:not(.in) .sheet { transform: translate(calc((1 - var(--i)) * 18%), 26px) rotate(calc((var(--i) - 1) * -4deg)); }
}
@media (prefers-reduced-motion: reduce) {
  .sheet a { animation: none; }
  .js .writings:not(.in) .sheet { opacity: 1; transform: translateY(var(--y)) rotate(var(--r)); }
  .sheet__ink { transform: scaleX(1); transition: none; }
}

/* The footer is shared/talosha-footer.js (the Order's footer, as a custom element). */

/* ---- the Order: one video panel with the text, the emblem and the degrees inside it ------------ */
.order { padding: clamp(40px, 8vh, 96px) var(--gutter) clamp(56px, 10vh, 120px); }
.order[hidden] { display: none; }
.order__frame {
  aspect-ratio: 16 / 9; min-height: 600px; max-height: none;
  background:
    radial-gradient(50% 60% at 82% 18%, rgba(207, 216, 232, 0.1), transparent 70%),
    radial-gradient(60% 70% at 15% 90%, rgba(79, 156, 224, 0.1), transparent 70%),
    linear-gradient(160deg, #0f2236 0%, #070f18 100%);
}
.order__veil { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 13, 21, 0.72) 0%, rgba(6, 13, 21, 0.2) 38%, rgba(6, 13, 21, 0.1) 55%, rgba(6, 13, 21, 0.62) 100%),
              linear-gradient(90deg, rgba(6, 13, 21, 0.55) 0%, transparent 55%); }
.order__head { position: absolute; z-index: 2; top: clamp(20px, 3.2vw, 44px); left: clamp(20px, 3.4vw, 48px); max-width: min(640px, 62%); display: grid; gap: 10px; }
.order__kicker { margin: 0; font: 500 11px/1 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent); }
.order__head h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 2.9vw, 2.6rem); line-height: 1.12; color: var(--ink); text-wrap: balance; }
.order__sub { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(1rem, 1.45vw, 1.3rem); color: var(--body); }
.order__emblem { position: absolute; z-index: 2; top: clamp(16px, 2.6vw, 36px); right: clamp(16px, 3vw, 44px); width: clamp(64px, 8vw, 118px); height: auto;
  filter: drop-shadow(0 0 22px rgba(207, 216, 232, 0.45)); opacity: 0; transform: translateY(8px) scale(0.94); transition: opacity 1.2s var(--ease) 0.4s, transform 1.2s var(--ease) 0.4s; }
.order.in .order__emblem { opacity: 1; transform: none; }
.order__frame .afilm__toggle { top: auto; }

.ostairs { position: absolute; z-index: 2; left: clamp(16px, 3vw, 44px); right: clamp(16px, 3vw, 44px); bottom: 0; height: 250px; }
.ostairs__list { list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; height: 100%; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(6px, 1vw, 14px); align-items: end; }
.ostep { --h: calc(66px + var(--n) * 26px); position: relative; height: 100%; display: flex; align-items: flex-end; }
.ostep::after { content: ""; position: absolute; left: 50%; bottom: calc(var(--h) - 5px); width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; z-index: 3; background: #8fc1f0; box-shadow: 0 0 12px rgba(143, 193, 240, 0.95); opacity: 0; transform: scale(0.3); }
.ostep__block {
  width: 100%; height: var(--h); padding: 11px 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; overflow: hidden;
  border: 1px solid rgba(205, 215, 226, 0.34); border-bottom: 0; border-radius: 9px 9px 0 0;
  background: linear-gradient(180deg, rgba(79, 156, 224, calc(0.1 + var(--n) * 0.03)) 0%, rgba(8, 18, 28, 0.6) 100%);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transform-origin: 50% 100%;
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease);
}
.ostep__no { font: 500 0.74rem/1 var(--display); letter-spacing: 0.14em; color: var(--accent); }
.ostep__name { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(0.7rem, 0.98vw, 0.94rem); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); line-height: 1.2; }
.ostep__line { margin: 0; font-family: var(--serif); font-size: clamp(0.74rem, 0.86vw, 0.9rem); line-height: 1.28; color: var(--body); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ostairs__path { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 250px; z-index: 2; pointer-events: none; overflow: visible; }
.ostairs__line { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 100; stroke-dashoffset: 100; filter: drop-shadow(0 0 6px rgba(79, 156, 224, 0.8)); }

/* the steps rise one after another, the line follows them up and the nodes light */
.js .order:not(.in) .ostep__block { transform: scaleY(0.05); opacity: 0; }
.js .order.in .ostep__block { transform: none; opacity: 1; transition: transform 1s var(--ease) calc(var(--n) * 140ms), opacity 0.6s var(--ease) calc(var(--n) * 140ms), border-color 0.4s var(--ease), background-color 0.4s var(--ease); }
.order.in .ostairs__line { animation: oDraw 1.8s var(--ease) 0.9s forwards; }
.order.in .ostep::after { animation: oDot 0.7s var(--ease) calc(0.9s + var(--n) * 0.3s) forwards; }
@keyframes oDraw { to { stroke-dashoffset: 0; } }
@keyframes oDot { from { opacity: 0; transform: scale(0.3); } to { opacity: 1; transform: scale(1); } }
@media (hover: hover) and (pointer: fine) {
  .ostep:hover .ostep__block { border-color: rgba(79, 156, 224, 0.75); background-color: rgba(79, 156, 224, 0.14); }
}

@media (max-width: 860px) {
  .order { padding-left: 0; padding-right: 0; }
  .order__frame { aspect-ratio: auto; min-height: 0; border-radius: 0; border-left: 0; border-right: 0; display: flex; flex-direction: column; gap: 22px; padding: 76px 18px 22px; }
  .order__head { position: relative; top: auto; left: auto; max-width: none; z-index: 2; }
  .order__emblem { top: 16px; right: 16px; width: 56px; }
  .ostairs { position: relative; left: auto; right: auto; height: auto; }
  .ostairs__path, .ostep::after { display: none; }
  .ostairs__list { grid-template-columns: 1fr; height: auto; gap: 8px; }
  .ostep { height: auto; }
  .ostep__block { height: auto; width: calc(56% + var(--n) * 8.8%); border-bottom: 1px solid rgba(205, 215, 226, 0.34); border-radius: 9px; }
  .ostep__line { -webkit-line-clamp: unset; display: block; }
  .js .order:not(.in) .ostep__block { transform: translateX(-16px); }
}
@media (prefers-reduced-motion: reduce) {
  .js .order:not(.in) .ostep__block { transform: none; opacity: 1; }
  .order .ostairs__line { stroke-dashoffset: 0; animation: none; }
  .order .ostep::after { opacity: 1; transform: none; animation: none; }
  .order .order__emblem { opacity: 1; transform: none; transition: none; }
}

/* ---- the Atelier film: a silent looping advertisement ------------------------------- */
.afilm { padding: clamp(24px, 5vh, 56px) var(--gutter) clamp(48px, 9vh, 104px); }
.afilm[hidden] { display: none; }
.afilm__frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 78vh; overflow: hidden; isolation: isolate;
  border: 1px solid var(--line-strong); border-radius: 22px; background: #060d15;
  box-shadow: 0 60px 120px -70px rgba(217, 194, 143, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.afilm__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.9s var(--ease), filter 0.9s var(--ease); z-index: 0; }
.afilm__frame.is-playing video { opacity: 1; }
.afilm__still {
  position: absolute; inset: 0; z-index: 0; display: grid; place-items: center;
  background:
    radial-gradient(50% 60% at 68% 50%, rgba(217, 194, 143, 0.14), transparent 70%),
    radial-gradient(60% 70% at 20% 80%, rgba(79, 156, 224, 0.1), transparent 70%),
    linear-gradient(160deg, #0f2236 0%, #07101a 100%);
}
.afilm__still img { width: min(46%, 380px); height: auto; margin-left: 30%; opacity: 0.55; filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.6)); animation: afilmBreath 9s ease-in-out infinite; }
@keyframes afilmBreath { 0%, 100% { transform: scale(1) translateY(0); } 50% { transform: scale(1.03) translateY(-6px); } }
.afilm__frame.is-playing .afilm__still { opacity: 0; transition: opacity 0.9s var(--ease); }
.afilm__veil { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(6, 13, 21, 0.78) 0%, rgba(6, 13, 21, 0.4) 38%, transparent 66%),
              linear-gradient(0deg, rgba(6, 13, 21, 0.55) 0%, transparent 38%); }
.afilm__copy { position: absolute; z-index: 2; left: clamp(22px, 4.5vw, 64px); bottom: clamp(22px, 5vw, 60px); max-width: min(520px, 78%); display: grid; gap: 14px; justify-items: start; }
.afilm__kicker { margin: 0; font: 500 12px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.afilm__copy h2 span { display: block; white-space: nowrap; }
.afilm__copy h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 3.2vw, 2.7rem); line-height: 1.12; color: var(--ink); text-wrap: balance; }
.afilm__toggle {
  position: absolute; z-index: 3; right: 18px; bottom: 18px; display: grid; place-items: center; width: 46px; height: 46px; padding: 0;
  border: 1px solid rgba(245, 245, 240, 0.5); border-radius: 50%; background: rgba(8, 18, 28, 0.55); color: var(--ink); cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.afilm__toggle[hidden] { display: none; }
.afilm__toggle svg { width: 18px; height: 18px; fill: currentColor; }
.afilm__toggle .i-pause { display: none; }
.afilm__toggle[aria-pressed="true"] .i-play { display: none; }
.afilm__toggle[aria-pressed="true"] .i-pause { display: block; }
.afilm__toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .afilm__toggle:hover { border-color: var(--accent); background: rgba(79, 156, 224, 0.25); }
}
@media (max-width: 740px) {
  .afilm { padding-left: 0; padding-right: 0; }
  .afilm__frame { aspect-ratio: 4 / 5; border-radius: 0; border-left: 0; border-right: 0; max-height: none; }
  .afilm__still img { width: 62%; margin-left: 0; }
  .afilm__veil { background: linear-gradient(0deg, rgba(6, 13, 21, 0.85) 0%, rgba(6, 13, 21, 0.35) 48%, transparent 75%); }
  .afilm__copy { right: 22px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .afilm__still img { animation: none; } .afilm__frame video { transition: none; } }

/* ---- Talosha Connect: a living field of members --------------------------------- */
.connect { padding: clamp(24px, 5vh, 56px) var(--gutter) clamp(48px, 9vh, 104px); }
.cfield {
  position: relative; width: 100%; min-height: clamp(500px, 66vh, 640px); overflow: hidden; isolation: isolate;
  border: 1px solid var(--line-strong); border-radius: 22px; touch-action: pan-y; cursor: crosshair;
  background:
    radial-gradient(60% 80% at 22% 40%, rgba(79, 156, 224, 0.16), transparent 70%),
    radial-gradient(50% 70% at 90% 100%, rgba(207, 216, 232, 0.07), transparent 70%),
    linear-gradient(165deg, #0f2236 0%, #060d15 100%);
  box-shadow: 0 60px 120px -70px rgba(79, 156, 224, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.cfield canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
.cfield__veil { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(270deg, rgba(6, 13, 21, 0.78) 0%, rgba(6, 13, 21, 0.45) 38%, transparent 64%); }
.cfield__copy { position: absolute; z-index: 2; right: clamp(22px, 4.5vw, 64px); top: 50%; transform: translateY(-50%); width: min(520px, 44%); display: grid; gap: 16px; justify-items: start; pointer-events: none; }
.cfield__copy a { pointer-events: auto; }
.cfield__kicker { margin: 0; font: 500 12px/1 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent); }
.cfield__copy h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 3.8vw, 3.3rem); line-height: 1.1; color: var(--ink); text-wrap: balance; }
.cfield__lede { margin: 0; font-family: var(--serif); font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.45; color: var(--body); max-width: 40ch; }
.cfield__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 6px; }
.cfield__stat { position: absolute; z-index: 2; left: 25%; top: 50%; transform: translate(-50%, -50%) scale(1.15); width: max-content; max-width: 40%; text-align: center; display: grid; gap: 6px; justify-items: center; pointer-events: none; }
.corbit { width: clamp(220px, 27vw, 330px); height: auto; margin-top: 4px; overflow: visible; opacity: 0.62; }
.corbit__ring { fill: none; stroke: rgba(205, 215, 226, 0.16); stroke-width: 1; }
.corbit__ring--m { stroke: rgba(143, 193, 240, 0.2); stroke-dasharray: 2 6; }
.corbit__ring--o { transform-origin: 0 0; animation: corbitSpin 120s linear infinite; stroke-dasharray: 1 9; }
.corbit__line { fill: none; stroke: rgba(143, 193, 240, 0.4); stroke-width: 1; stroke-dasharray: 100; stroke-dashoffset: 100; }
.corbit__spoke { stroke: rgba(205, 215, 226, 0.1); stroke-width: 1; }
.corbit__core { fill: rgba(79, 156, 224, 0.12); stroke: rgba(143, 193, 240, 0.5); stroke-width: 1; }
.corbit__dot { fill: #cfe3fa; filter: drop-shadow(0 0 6px rgba(143, 193, 240, 0.9)); }
.corbit__hex { transform-box: fill-box; transform-origin: center; }
.corbit__hexbg { fill: rgba(40, 84, 150, 0.7); }
.corbit__hexline { fill: none; stroke: rgba(160, 200, 245, 0.55); stroke-width: 1; }
.corbit__photo { opacity: 0.8; }
.corbit__photo[hidden] { display: none; }
.corbit__letter { font: 600 22px var(--serif); fill: #f2f7fd; paint-order: stroke; stroke: rgba(8, 18, 28, 0.55); stroke-width: 3px; }
.js .cfield:not(.is-seen) .corbit__hex { opacity: 0; transform: scale(0.6); }
.cfield.is-seen .corbit__line { animation: oDraw 1.6s var(--ease) calc(0.3s + var(--i) * 0.18s) forwards; }
.cfield.is-seen .corbit__hex { animation: cpIn 0.8s var(--ease) calc(0.2s + var(--i) * 0.15s) backwards; }
.cfield.is-seen .corbit__dot { animation: corbitPulse 4s ease-in-out 1.4s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes corbitSpin { to { transform: rotate(360deg); } }
@keyframes corbitPulse { 0%, 100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.5); opacity: 1; } }
@keyframes cpIn { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
.cfield__label { margin: 0; font: 500 12px/1 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent); }
.cfield__note { margin: 0; font: 500 11px/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.cfield__hint { position: absolute; z-index: 2; left: 20px; bottom: 16px; margin: 0; font: 500 11px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: rgba(147, 166, 186, 0.7); pointer-events: none; }
.cfield__chips { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.cfield__chip {
  position: absolute; transform: translate(-50%, -50%); padding: 7px 13px; border-radius: 999px;
  border: 1px solid rgba(143, 193, 240, 0.6); background: rgba(8, 18, 28, 0.78); color: #dcebfb;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font: 500 11px/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap;
  animation: chipRise 2.6s var(--ease) forwards;
}
@keyframes chipRise { 0% { opacity: 0; transform: translate(-50%, -30%) scale(0.9); } 14% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 76% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -140%); } }
@media (max-width: 760px) {
  .connect { padding-left: 0; padding-right: 0; }
  /* phones: the copy and the members caption stack in normal flow (both used to be pinned inside a fixed-height box and overlapped) */
  .cfield { border-radius: 0; border-left: 0; border-right: 0; min-height: 520px; display: grid; align-content: start; gap: 28px; padding: 28px 20px 64px; }
  .cfield__veil { background: linear-gradient(180deg, rgba(6, 13, 21, 0.8) 0%, rgba(6, 13, 21, 0.45) 60%, rgba(6, 13, 21, 0.2) 100%); }
  .cfield__copy { position: relative; top: auto; transform: none; left: auto; right: auto; width: auto; max-width: none; }
  .cfield__stat { position: relative; top: auto; transform: none; bottom: auto; left: auto; right: auto; width: auto; max-width: none; text-align: right; justify-items: end; justify-self: end; }
  .corbit { width: 180px; }
  .cfield__hint { left: 20px; right: auto; }
}
@media (prefers-reduced-motion: reduce) { .cfield__chip { animation: none; opacity: 1; } .corbit__ring--o, .cfield.is-seen .corbit__dot { animation: none; } .corbit__line { stroke-dashoffset: 0; animation: none; } .js .cfield:not(.is-seen) .corbit__hex { opacity: 1; transform: none; } }

/* ---- affiliates: the partner constellation ------------------------------ */
.partners { padding: clamp(24px, 5vh, 56px) var(--gutter) clamp(72px, 12vh, 144px); display: grid; gap: 28px; }
.partners__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 12px 48px; }
.partners__head h2 {
  margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink);
}
.partners__head p { margin: 0; color: var(--muted); font-size: 1rem; max-width: 44ch; justify-self: end; }

.partners__panel {
  position: relative; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(20px, 3vw, 48px);
  padding: clamp(26px, 4vw, 56px);
  border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  background:
    radial-gradient(60% 80% at 82% 50%, rgba(79, 156, 224, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(19, 38, 58, 0.5), rgba(8, 18, 28, 0.88));
  box-shadow: 0 50px 100px -60px rgba(79, 156, 224, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.partners__lede { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(1.21rem, 2.035vw, 1.76rem); line-height: 1.38; color: var(--ink); text-wrap: pretty; }
.partners__second { margin: clamp(14px, 2.4vh, 22px) 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 1.8vw, 1.6rem); line-height: 1.35; color: var(--accent); }
.partners__steps { list-style: none; margin: clamp(22px, 4vh, 34px) 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.partners__steps li {
  display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); align-items: baseline; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: clamp(1.1rem, 1.35vw, 1.28rem); line-height: 1.35; color: var(--body);
}
.partners__steps li span { font: 500 0.95rem/1 var(--display); letter-spacing: 0.1em; color: var(--accent); }
.partners__actions { margin-top: clamp(22px, 3.5vh, 32px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; }

.constellation { width: 100%; max-width: 640px; justify-self: center; }
.constellation svg { display: block; width: 100%; height: auto; overflow: visible; }
.c-ring { fill: none; stroke: rgba(205, 215, 226, 0.16); stroke-width: 1; }
.c-ring--mid { stroke-dasharray: 2 7; stroke: rgba(205, 215, 226, 0.22); }
.c-ring--inner { stroke: rgba(79, 156, 224, 0.28); }
.c-ring--outer { transform-origin: 260px 260px; animation: cSpin 140s linear infinite; }
.c-ring--outer circle { fill: none; stroke: rgba(205, 215, 226, 0.14); }
.c-ticks line { stroke: rgba(205, 215, 226, 0.3); stroke-width: 1; }
.c-line { fill: none; stroke: rgba(205, 215, 226, 0.3); stroke-width: 1.2; stroke-dasharray: 100; stroke-dashoffset: 100; }
.c-pulse { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 7 93; stroke-dashoffset: 7; opacity: 0; filter: drop-shadow(0 0 5px rgba(79, 156, 224, 0.9)); }
.c-line--ghost { stroke: rgba(205, 215, 226, 0.15); stroke-width: 1; }
.c-pulse--ghost { stroke: rgba(79, 156, 224, 0.75); stroke-width: 1.6; filter: drop-shadow(0 0 4px rgba(79, 156, 224, 0.7)); }
.c-ghost__ring { fill: rgba(12, 26, 42, 0.7); stroke: rgba(205, 215, 226, 0.26); stroke-width: 1; stroke-dasharray: 2 4; }
.c-ghost__dot { fill: rgba(79, 156, 224, 0.55); }
.c-core__glow { fill: rgba(79, 156, 224, 0.16); filter: blur(10px); }
.c-core__bg { fill: #0c1a2a; stroke: rgba(205, 215, 226, 0.5); stroke-width: 1.2; }
.c-node__ring { fill: none; stroke: rgba(79, 156, 224, 0.4); stroke-width: 1; }
.c-node__bg { fill: #0c1a2a; stroke: rgba(205, 215, 226, 0.34); stroke-width: 1; }
.c-label { font: 500 15px var(--display); letter-spacing: 0.14em; text-transform: uppercase; fill: var(--body); }
@keyframes cSpin { to { transform: rotate(360deg); } }
@keyframes cDraw { to { stroke-dashoffset: 0; } }
/* One 5.6 s cycle: every source sends light in to the Talosha emblem (0-50%), then the emblem sends it on to Commerce (50-100%). */
@keyframes cPulseIn { 0% { stroke-dashoffset: 7; opacity: 0; } 5% { opacity: 1; } 44% { opacity: 1; } 50% { stroke-dashoffset: -93; opacity: 0; } 100% { stroke-dashoffset: -93; opacity: 0; } }
@keyframes cPulseOut { 0%, 50% { stroke-dashoffset: 7; opacity: 0; } 55% { opacity: 1; } 94% { opacity: 1; } 100% { stroke-dashoffset: -93; opacity: 0; } }
@keyframes cGlow { 0%, 40% { opacity: 0.16; } 52% { opacity: 0.62; } 70%, 100% { opacity: 0.16; } }
@keyframes cArrive { 0%, 88% { transform: scale(1); stroke: rgba(79, 156, 224, 0.4); } 96% { transform: scale(1.25); stroke: rgba(232, 214, 160, 0.95); } 100% { transform: scale(1); stroke: rgba(79, 156, 224, 0.4); } }
@keyframes cPop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }
@keyframes cBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

.c-node, .c-core, .c-label { transform-box: fill-box; transform-origin: center; }
.js .partners:not(.in) .c-node, .js .partners:not(.in) .c-core { opacity: 0; }
.js .partners:not(.in) .c-label { opacity: 0; }
.partners.in .c-line { animation: cDraw 1.3s var(--ease) calc(0.5s + var(--i) * 140ms) forwards; }
.partners.in .c-node { animation: cPop 0.8s var(--ease) calc(0.3s + var(--i) * 140ms) backwards; }
.partners.in .c-core { animation: cPop 0.9s var(--ease) 0.1s backwards; }
.partners.in .c-core__bg { animation: cBreathe 6s ease-in-out 1.2s infinite; transform-box: fill-box; transform-origin: center; }
.partners.in .c-label { animation: cPop 0.7s var(--ease) calc(0.7s + var(--i) * 140ms) backwards; }
.partners.in .c-pulse { animation: cPulseIn 5.6s ease-in-out calc(1.9s + var(--i) * 0.08s) infinite; }
.partners.in .c-pulse--out { animation: cPulseOut 5.6s ease-in-out 1.9s infinite; stroke: #e8d6a0; filter: drop-shadow(0 0 6px rgba(232, 214, 160, 0.9)); }
.partners.in .c-core__glow { animation: cGlow 5.6s ease-in-out 1.9s infinite; }
.partners.in .c-node--commerce .c-node__ring { animation: cArrive 5.6s ease-in-out 1.9s infinite; transform-box: fill-box; transform-origin: center; }

@media (hover: hover) and (pointer: fine) {
  .constellation:hover .c-line { stroke: rgba(79, 156, 224, 0.55); transition: stroke 0.5s; }
}

/* the headline is exactly two lines on every screen wide enough to hold them */
.partners__lede span { display: block; }
@media (min-width: 420px) { .partners__lede span { white-space: nowrap; } }

/* ---- the house line: a quiet divider after the projects ---------------------------- */
.oath { padding: clamp(44px, 8vh, 96px) var(--gutter); display: grid; justify-items: center; gap: clamp(16px, 3vh, 28px); text-align: center; position: relative; }
.oath::before, .oath::after { content: ""; position: absolute; left: 50%; width: min(70%, 960px); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(205, 215, 226, 0.18) 25%, rgba(205, 215, 226, 0.18) 75%, transparent); }
.oath::before { top: 0; } .oath::after { bottom: 0; }
.oath__orn { width: min(150px, 38vw); height: auto; overflow: visible; opacity: 0.7; }
.oath__orn path:not(.oath__star) { fill: none; stroke: rgba(205, 215, 226, 0.26); stroke-width: 1; }
.oath__star { fill: rgba(79, 156, 224, 0.75); transform-box: fill-box; transform-origin: center; }
.oath__line { margin: 0; max-width: 30ch; font-family: var(--serif); font-weight: 400; font-size: clamp(1.45rem, 3.1vw, 2.45rem); line-height: 1.22; letter-spacing: 0; color: rgba(205, 215, 226, 0.86); text-wrap: balance; }
.oath__line .w { display: inline-block; }
.oath__line .w--accent { font-style: italic; color: rgba(143, 193, 240, 0.82); }
.oath__sign { margin: 0; font: 500 11px/1 var(--display); letter-spacing: 0.4em; text-transform: uppercase; color: rgba(147, 166, 186, 0.7); padding-left: 0.4em; }
/* arrives as a slow fade, nothing moves */
.js .oath:not(.in) .oath__line .w, .js .oath:not(.in) .oath__orn, .js .oath:not(.in) .oath__sign { opacity: 0; }
.js .oath.in .oath__line .w { opacity: 1; transition: opacity 1.6s ease calc(var(--w) * 70ms + 150ms); }
.js .oath.in .oath__orn { opacity: 0.7; transition: opacity 1.6s ease 0.1s; }
.js .oath.in .oath__sign { opacity: 1; transition: opacity 1.6s ease 1.2s; }

/* ---- FAQ ------------------------------------------------------------------------ */
.faq { padding: clamp(56px, 10vh, 120px) var(--gutter) clamp(72px, 12vh, 144px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px clamp(28px, 5vw, 80px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--header) + 24px); display: grid; gap: 14px; }
.faq__head h2 { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2.2rem); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.faq__head p { margin: 0; color: var(--muted); max-width: 30ch; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) 22px; align-items: baseline; gap: 12px;
  padding: clamp(18px, 2.8vh, 26px) 0; -webkit-tap-highlight-color: transparent;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__no { font: 500 0.9rem/1 var(--display); letter-spacing: 0.1em; color: var(--accent); }
.faq__q { font-family: var(--serif); font-weight: 500; font-size: clamp(1.2rem, 1.7vw, 1.5rem); line-height: 1.3; color: var(--ink); text-wrap: pretty; transition: color 0.3s var(--ease); }
.faq__icon { position: relative; width: 14px; height: 14px; justify-self: end; align-self: center; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -0.75px; background: var(--body); border-radius: 2px; transition: transform 0.45s var(--ease), background-color 0.3s; }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0); }
.faq__item[open] .faq__icon::before, .faq__item[open] .faq__icon::after { background: var(--accent); }
.faq__a { padding: 0 0 clamp(20px, 3vh, 30px) calc(2.6rem + 12px); }
.faq__a p { margin: 0; max-width: 62ch; font-family: var(--serif); font-size: clamp(1.1rem, 1.35vw, 1.28rem); line-height: 1.55; color: var(--body); text-wrap: pretty; }
.faq__a p + p { margin-top: 0.85em; }
.faq__item[open] .faq__a { animation: faqIn 0.55s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.faq__item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .faq__item summary:hover .faq__q { color: #fff; }
  .faq__item summary:hover .faq__icon::before, .faq__item summary:hover .faq__icon::after { background: var(--accent); }
}
@media (max-width: 860px) {
  .faq { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .faq__a { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .js .oath:not(.in) .oath__line .w, .js .oath:not(.in) .oath__sign { opacity: 1; }
  .js .oath:not(.in) .oath__orn { opacity: 0.7; }
  .faq__item[open] .faq__a { animation: none; }
}

/* ---- responsive ----------------------------------------------------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-bottom: 64px; }
  .hero__mark { grid-row: 1; width: min(78%, 380px); margin-bottom: 8px; }
  .projects__head { grid-template-columns: 1fr; }
  .projects__head p { justify-self: start; }
  .entry__link { grid-template-columns: 1fr; gap: 10px; }
  .entry__meta { justify-content: flex-start; flex-wrap: wrap; }
  .partners__head { grid-template-columns: 1fr; }
  .partners__head p { justify-self: start; }
  .partners__panel { grid-template-columns: 1fr; }
  .constellation { order: -1; max-width: 460px; }
  .entry.is-live:hover .entry__id, .entry.is-live:focus-within .entry__id { transform: none; }
  .entry__mark { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .c-ring--outer, .partners.in .c-core__bg, .partners.in .c-pulse, .partners.in .c-core__glow, .partners.in .c-node--commerce .c-node__ring { animation: none !important; }
  .c-line { stroke-dashoffset: 0 !important; animation: none !important; }
  .js .partners:not(.in) .c-node, .js .partners:not(.in) .c-core, .js .partners:not(.in) .c-label { opacity: 1; }
  .geo { animation: none; }
  .js .hero__title .line > span,
  .js .hero__lede, .js .hero__actions, .js .emblem,
  .js .geo .r, .js .geo .ticks, .js .entry[data-reveal] { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
  .js .emblem { transform: translate(-50%, -50%) !important; }
}

/* ---- projects arena: loose cards on a stage ---------------------------- */
.arena {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(19, 38, 58, 0.55) 0%, rgba(8, 18, 28, 0.9) 100%);
  box-shadow: 0 50px 100px -60px rgba(79, 156, 224, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.arena__bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  height: 52px; padding: 0 20px;
  border-bottom: 1px solid var(--line);
  font: 500 11.5px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.arena__dots { display: flex; gap: 8px; }
.arena__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(205, 215, 226, 0.26); }
.arena__dots i:nth-child(2) { background: rgba(79, 156, 224, 0.5); }
.arena__dots i:nth-child(3) { background: var(--accent); }
.arena__addr {
  padding: 9px 22px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(8, 18, 28, 0.6); color: var(--body); letter-spacing: 0.16em; white-space: nowrap;
}
.arena__hint { justify-self: end; text-align: right; }

.arena__stage {
  position: relative; height: clamp(540px, 66vh, 680px);
  overflow: hidden; contain: layout paint;
  background:
    radial-gradient(60% 55% at 50% 45%, rgba(79, 156, 224, 0.07), transparent 70%),
    radial-gradient(rgba(205, 215, 226, 0.07) 1px, transparent 1.4px) 0 0 / 28px 28px;
}
.arena__plain { list-style: none; margin: 0; padding: 28px; display: grid; gap: 14px; }
.arena__plain a { color: var(--ink); font-family: var(--serif); font-size: 1.3rem; }

.pcard {
  position: absolute; left: 0; top: 0;
  width: var(--cw, 200px); height: var(--ch, 148px);
  display: grid; place-items: center;
  margin: 0; padding: 0;
  border: 1px solid rgba(205, 215, 226, 0.2); border-radius: 16px;
  background:
    radial-gradient(120% 90% at 50% 28%, rgba(var(--glow, 147, 166, 186), 0.2), transparent 68%),
    linear-gradient(160deg, #14283d 0%, #0a1522 100%);
  box-shadow: 0 18px 38px -22px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: var(--ink); font: inherit; text-align: left;
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}
.pcard::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.07), transparent 38%); }
.pcard__halo {
  position: absolute; left: 50%; top: 44%; width: 62%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(circle, rgba(var(--glow, 147, 166, 186), 0.28), transparent 68%);
  filter: blur(6px); pointer-events: none;
}
.pcard__mark { position: relative; height: 66%; width: auto; max-width: 72%; object-fit: contain; margin-top: 5%; pointer-events: none;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45)); }
.pcard__host {
  position: absolute; left: 14px; top: 12px;
  font: 500 10px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.pcard__name {
  position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px);
  padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgba(8, 18, 28, 0.78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 500 11px/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pcard.is-held {
  cursor: grabbing; border-color: rgba(79, 156, 224, 0.7);
  box-shadow: 0 34px 60px -26px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(79, 156, 224, 0.3), 0 0 46px -10px rgba(79, 156, 224, 0.5);
}
@media (hover: hover) and (pointer: fine) {
  .pcard:hover { border-color: rgba(79, 156, 224, 0.55); }
}
.pcard:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* the cards arrive one after another; only opacity is transitioned (position belongs to the physics) */
.js .arena__stage .pcard { opacity: 0; }
.js .arena__stage.is-in .pcard { opacity: 1; transition: opacity 0.7s var(--ease); }
.arena__stage.is-in .pcard:nth-child(2) { transition-delay: 90ms; }
.arena__stage.is-in .pcard:nth-child(3) { transition-delay: 180ms; }
.arena__stage.is-in .pcard:nth-child(4) { transition-delay: 270ms; }
.arena__stage.is-in .pcard:nth-child(5) { transition-delay: 360ms; }
.arena__stage.is-in .pcard:nth-child(6) { transition-delay: 450ms; }

/* ---- project dialog ---------------------------------------------------- */
.pmodal { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; padding: 20px; }
.pmodal[hidden] { display: none; }
.pmodal__scrim {
  position: absolute; inset: 0; background: rgba(5, 10, 17, 0.7);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity 0.28s ease;
}
.pmodal.is-open .pmodal__scrim { opacity: 1; }
.pmodal__panel {
  position: relative; width: min(560px, 100%); max-height: calc(100dvh - 40px); overflow: auto;
  border: 1px solid var(--line-strong); border-radius: 24px;
  background: linear-gradient(170deg, #15293f 0%, #0a1522 70%);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.8), 0 0 80px -30px rgba(79, 156, 224, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  outline: none;
}
.pmodal__stage {
  position: relative; display: grid; place-items: center; height: 230px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(70% 90% at 50% 45%, rgba(var(--glow, 147, 166, 186), 0.2), transparent 72%);
}
.pmodal__halo { position: absolute; width: 220px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--glow, 147, 166, 186), 0.32), transparent 68%); filter: blur(10px); }
.pmodal__mark { position: relative; width: 176px; height: 176px; object-fit: contain; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.5)); }
.pmodal__body { padding: 26px clamp(22px, 5vw, 36px) 30px; }
.pmodal__host { margin: 0 0 10px; font: 500 12px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.pmodal__name { margin: 0 0 14px; font-family: var(--display); font-weight: 500; font-size: clamp(1.3rem, 3.4vw, 1.75rem); letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.2; color: var(--ink); text-wrap: balance; }
.pmodal__line { margin: 0; font-family: var(--serif); font-size: clamp(1.15rem, 2.6vw, 1.35rem); line-height: 1.45; color: var(--body); text-wrap: pretty; }
.pmodal__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 26px; }
.pmodal__open {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px;
  border: 1px solid var(--accent); border-radius: 999px; background: rgba(79, 156, 224, 0.18);
  font: 500 13px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink);
  transition: background-color 0.25s var(--ease), transform 0.2s var(--ease);
}
.pmodal__open[hidden] { display: none; }
.pmodal__open svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pmodal__open:active { transform: scale(0.97); }
.pmodal__back { background: none; border: 0; padding: 8px 0; font: 500 13px/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.pmodal__x {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 50%; background: rgba(8, 18, 28, 0.6); color: var(--body); cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
}
.pmodal__x svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; }
@media (hover: hover) and (pointer: fine) {
  .pmodal__open:hover { background: rgba(79, 156, 224, 0.3); }
  .pmodal__back:hover, .pmodal__x:hover { color: var(--ink); border-color: var(--accent); }
}
html.pmodal-open { overflow: hidden; }

@media (max-width: 720px) {
  .arena__bar { grid-template-columns: auto 1fr; padding: 0 14px; }
  .arena__addr { justify-self: end; padding: 8px 14px; font-size: 10.5px; }
  .arena__hint { display: none; }
  .arena__stage { height: 700px; }
  .pcard__name { font-size: 10px; padding: 6px 10px; }
  /* the longest address (community.talosha.com) has to fit inside the narrow phone card: size it from the card's width */
  .pcard__host { left: 12px; max-width: calc(100% - 24px); white-space: nowrap; letter-spacing: 0.06em;
    font-size: min(10px, calc((var(--cw, 140px) - 24px) / 14.4)); }
}
@media (prefers-reduced-motion: reduce) {
  .js .arena__stage .pcard, .js .arena__stage.is-in .pcard { opacity: 1; transition: none; }
  .pmodal__scrim { transition: none; }
}
