/*
 * main.css — rythmos.ge umbrella site
 *
 * Built from `Rythmos მთავარი.dc.html`. Two rules govern this file:
 *
 * 1. NO WIDTH MEDIA QUERIES. The design is fluid by construction — clamp() for
 *    every type and spacing step, min() for every decorative size, and
 *    repeat(auto-fit, minmax(min(100%, Npx), 1fr)) for every grid. That idiom
 *    cannot overflow a narrow screen, which is why there is no 320px special
 *    case anywhere below. Adding a breakpoint here undoes that.
 *    (The two @media blocks at the end are prefers-reduced-motion and print —
 *    neither is a width breakpoint.)
 *
 * 2. NO WEBFONTS. Owner's call: standard/system fonts only, so the page needs
 *    no font download and renders everywhere. Font fallback is per-glyph, so
 *    Latin runs ("Rythmos") take the Latin face while Georgian runs fall
 *    through to whichever Georgian face the device ships.
 *
 * Tap targets: every interactive element is >= 44px tall. The design draws the
 * 11 footer links at min-height:26px because they are static spans in the
 * drawing — in the build they are real links, so --tap governs instead.
 */

/* -------------------------------------------------------------------------- */
/* Tokens                                                                     */
/* -------------------------------------------------------------------------- */

:root {
  /* Type — standard faces only, Georgian-capable fallbacks listed after the
     Latin face so mixed runs render with both. */
  --font-sans:  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
                "Noto Sans Georgian", Sylfaen, Arial, sans-serif;
  --font-serif: Georgia, "Noto Serif Georgian", "Times New Roman", Sylfaen,
                serif;
  --font-mono:  ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
                "Liberation Mono", monospace;

  /* Surfaces */
  --bg:           #03051A;
  --bg-footer:    #05071F;
  --surface:      #0E1433;
  --surface-deep: #070B24;
  --surface-alt:  #0B1030;
  --surface-hi:   #101745;
  --band:         rgba(9, 13, 40, .42);
  --band-strong:  rgba(9, 13, 40, .5);

  /* Text */
  --text:       #F4F6FF;
  --text-soft:  #E2E6FA;
  --text-mut:   #A7B0DA;
  --text-faint: #7C86B8;
  --text-dim:   #8D97C4;
  --text-idle:  #3B4677;

  /* Hairlines */
  --line:        rgba(140, 160, 255, .12);
  --line-soft:   rgba(140, 160, 255, .10);
  --line-card:   rgba(140, 160, 255, .14);
  --line-strong: rgba(140, 160, 255, .16);
  --line-field:  rgba(140, 160, 255, .22);
  --line-btn:    rgba(140, 160, 255, .24);
  --line-dash:   rgba(140, 160, 255, .34);
  --line-btn-hi: rgba(140, 160, 255, .55);

  /* Umbrella accent — the design's emerald, used for the project section's
     own eyebrow and step badges. NOT for anything that represents Rythmos. */
  --teal:       #34D399;
  --teal-soft:  #6EE7B7;
  --teal-pale:  #A7F3D0;
  --teal-deep:  #059669;

  /* ── Rythmos product brand ──────────────────────────────────────────────
     Copied from the live site's css/theme.css so the Rythmos card on this
     page matches rythmos.ge exactly. The design drew this card in emerald
     green, which is not the product's colour. Teal -> violet is.
     Keep in step with `--brand-*` and `--gradient-brand` in that file. */
  --ry-teal:        #14B8A6;
  --ry-teal-light:  #2DD4BF;
  --ry-teal-deep:   #0F766E;
  --ry-violet:      #8B5CF6;
  --ry-violet-light:#A78BFA;
  --ry-blue-glow:   #60A5FA;
  --grad-rythmos:   linear-gradient(135deg, #14B8A6 0%, #8B5CF6 100%);
  --glow-rythmos:    0 10px 26px rgba(20, 184, 166, .30);
  --glow-rythmos-lg: 0 14px 34px rgba(139, 92, 246, .45);

  /* Shared — cyan */
  --cyan:       #22D3EE;
  --cyan-soft:  #67E8F9;
  --cyan-pale:  #A5F3FC;
  --cyan-deep:  #0891B2;

  /* RITMI — violet/blue */
  --violet:      #A855F7;
  --violet-soft: #C4B5FD;
  --violet-pale: #DDD1FE;
  --violet-lit:  #C084FC;
  --violet-deep: #7C3AED;
  --blue:        #2563EB;

  /* Accent */
  --amber: #FBBF24;

  /* Gradients */
  --grad-brand:  linear-gradient(90deg, var(--blue), var(--violet-deep));
  --grad-teal:   linear-gradient(90deg, var(--teal-deep), var(--cyan-deep));
  --grad-title:  linear-gradient(100deg, var(--teal), var(--cyan) 42%, var(--violet));

  /* Shadows */
  --glow-brand:    0 10px 26px rgba(59, 130, 246, .30);
  --glow-brand-lg: 0 14px 34px rgba(59, 130, 246, .50);
  --glow-hero:     0 14px 34px rgba(59, 130, 246, .30);
  --glow-hero-lg:  0 18px 44px rgba(59, 130, 246, .50);
  --glow-teal:     0 10px 26px rgba(5, 150, 105, .28);
  --glow-teal-lg:  0 14px 34px rgba(5, 150, 105, .45);

  /* Radii */
  --r-pill: 999px;
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   16px;
  --r-xl:   22px;
  --r-2xl:  26px;
  --r-3xl:  28px;

  /* Layout */
  --shell:      1200px;
  --shell-mid:  1000px;
  --gutter:     clamp(16px, 5vw, 28px);
  --section-y:  clamp(44px, 7vw, 88px);

  /* Minimum tap target. Not negotiable — see the header note. */
  --tap: 44px;
}

/* -------------------------------------------------------------------------- */
/* Base                                                                       */
/* -------------------------------------------------------------------------- */

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

html {
  /* Set on <html>, not on a wrapper div: overflow on the root element is
     propagated to the viewport, so this does NOT create a scroll container and
     position:sticky on the header keeps working. overflow-x on a wrapper would
     silently break the sticky header. */
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Sticky header is 64px tall; keep anchored sections clear of it. */
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;

/* Georgian compounds are long and offer no break opportunities. At 320px the
   RITMI privacy page's h1 measured 324px inside a
   288px column and pushed the whole document 20px wider — a real horizontal
   scrollbar from one word. overflow-wrap only acts when a word genuinely
   cannot fit, so it costs nothing elsewhere. It inherits, so setting it once
   here covers every heading, paragraph and link. */
  overflow-wrap: break-word;
}

a { color: var(--cyan-soft); text-decoration: none; }
a:hover { color: var(--cyan-pale); }

img { max-width: 100%; height: auto; }

/* display:contents makes the <img> itself the flex/grid item, so wrapping an
   image in <picture> for a WebP source changes no layout. */
picture { display: contents; }

::selection { background: rgba(124, 58, 237, .45); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 8px;
  z-index: 300;
  transform: translateY(-160%);
  min-height: var(--tap);
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line-btn);
  color: var(--text);
  font-weight: 700;
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Shared shell — every full-width band centres its content through this. */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--mid { max-width: var(--shell-mid); }

.band {
  position: relative;
  overflow: hidden;
  background: var(--band);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.section-y { padding-block: var(--section-y); }

/* -------------------------------------------------------------------------- */
/* Type scale                                                                 */
/* -------------------------------------------------------------------------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(11.5px, 2.9vw, 13px);
  font-weight: 800;
  letter-spacing: .14em;
}
.eyebrow--cyan  { color: var(--cyan-soft); }
.eyebrow--teal  { color: var(--teal-soft); }
.eyebrow--amber { color: var(--amber); }

.h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(26px, 6.2vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.lede {
  margin: 0;
  color: var(--text-mut);
  font-size: clamp(14.5px, 3.6vw, 16.5px);
  line-height: 1.65;
  /* Georgian has no capitals to break up a line, so an over-wide measure reads
     worse than it does in Latin text. Keep the measure short. */
  max-width: 640px;
  text-wrap: pretty;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* -------------------------------------------------------------------------- */
/* Buttons                                                                    */
/* -------------------------------------------------------------------------- */

.btn {
  min-height: 54px;
  padding-inline: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--r-lg);
  font-family: inherit;
  font-size: clamp(15px, 3.8vw, 16.5px);
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: box-shadow .3s ease, transform .3s ease,
              border-color .3s ease, background .3s ease;
}

.btn--primary {
  background: var(--grad-brand);
  box-shadow: var(--glow-hero);
  color: #FFFFFF;
}
.btn--primary:hover {
  box-shadow: var(--glow-hero-lg);
  transform: translateY(-2px);
  color: #FFFFFF;
}

.btn--ghost {
  background: var(--surface-alt);
  border: 1px solid var(--line-btn);
  color: var(--text-soft);
}
.btn--ghost:hover {
  border-color: var(--line-btn-hi);
  background: var(--surface-hi);
  color: var(--text-soft);
}

/* Card-level actions sit a touch smaller than the hero pair. */
.btn--card {
  min-height: 50px;
  padding-inline: 20px;
  border-radius: var(--r-md);
  font-size: 15.5px;
}

.btn--teal {
  background: var(--grad-rythmos);
  box-shadow: var(--glow-rythmos);
  color: #FFFFFF;
}
.btn--teal:hover { box-shadow: var(--glow-rythmos-lg); color: #FFFFFF; }

.btn--ritmi {
  background: var(--grad-brand);
  box-shadow: var(--glow-brand);
  color: #FFFFFF;
}
.btn--ritmi:hover { box-shadow: var(--glow-brand-lg); color: #FFFFFF; }

.btn--outline-teal {
  background: rgba(11, 16, 48, .8);
  border: 1px solid rgba(20, 184, 166, .32);
  color: var(--ry-teal-light);
  font-size: 15px;
  padding-inline: 18px;
}
.btn--outline-teal:hover {
  border-color: rgba(45, 212, 191, .68);
  color: #99F6E4;
}

.btn--outline-violet {
  background: rgba(11, 16, 48, .8);
  border: 1px solid rgba(168, 85, 247, .30);
  color: var(--violet-soft);
  font-size: 15px;
  padding-inline: 18px;
}
.btn--outline-violet:hover {
  border-color: rgba(192, 132, 252, .70);
  color: var(--violet-pale);
}

/* Full-width action pinned to the bottom of a price card. */
.btn--block {
  width: 100%;
  min-height: 52px;
  padding-inline: 16px;
  border-radius: var(--r-lg);
  font-size: 16px;
  font-weight: 800;
  margin-top: auto;
}

.btn__arrow { flex: none; }

/* -------------------------------------------------------------------------- */
/* Header                                                                     */
/* -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(3, 5, 26, .9);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(6px, 2vw, 20px);
  min-height: 64px;
  padding-block: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  min-height: var(--tap);
  color: var(--text);
}
.brand:hover { color: var(--text); }

.brand__mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex: none;
}

.brand__name {
  font-family: var(--font-serif);
  font-size: clamp(17px, 4.2vw, 20px);
  font-weight: 800;
  letter-spacing: -.01em;
}

/* The nav scrolls sideways rather than wrapping or collapsing into a burger —
   at 320px five Georgian labels cannot fit, and a scrollable rail keeps every
   destination one gesture away without any JS. */
.site-nav {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }

.site-nav__link {
  padding: 9px 12px;
  min-height: var(--tap);
  display: flex;
  align-items: center;
  border-radius: var(--r-pill);
  color: var(--text-mut);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .25s ease, color .25s ease;
}
.site-nav__link:hover {
  background: var(--grad-brand);
  color: #FFFFFF;
}

/* -------------------------------------------------------------------------- */
/* Hero                                                                       */
/* -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
}

/* The cover is 16:9 and the hero is taller than that on a phone, so it is
   pinned to the top and cropped rather than stretched. The mark sits on its
   left; `object-position` keeps it there instead of drifting out of frame. */
.hero__bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: min(620px, 105vw);
  object-fit: cover;
  object-position: 28% 45%;
  opacity: .55;
  pointer-events: none;
}

/* Without this the lede sits on a starfield and drops under 4.5:1. The scrim
   pulls the area behind the copy back to the page background, keeping the
   image visible at the edges. */
.hero__scrim {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: min(720px, 115vw);
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 42%, rgba(3, 5, 26, .93), rgba(3, 5, 26, .55) 60%, transparent 100%),
    linear-gradient(180deg, rgba(3, 5, 26, .55) 0%, rgba(3, 5, 26, .2) 35%, rgba(3, 5, 26, .95) 88%, var(--bg) 100%);
}

.hero__wash {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: min(720px, 110vw);
  border-bottom: 1px dashed rgba(140, 160, 255, .14);
  background:
    radial-gradient(ellipse at 20% 100%, rgba(52, 211, 153, .10), transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(168, 85, 247, .12), transparent 55%);
  pointer-events: none;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: orbPulse 10s ease-in-out infinite;
}
.hero__orb--teal {
  left: -10%;
  top: 8%;
  width: min(520px, 80vw);
  height: min(520px, 80vw);
  background: radial-gradient(circle, rgba(52, 211, 153, .10), transparent 66%);
}
.hero__orb--violet {
  right: -12%;
  top: 22%;
  width: min(560px, 88vw);
  height: min(560px, 88vw);
  background: radial-gradient(circle, rgba(168, 85, 247, .12), transparent 66%);
  animation-duration: 12s;
  animation-delay: 1.5s;
}

.hero__inner {
  position: relative;
  padding-block: clamp(40px, 9vw, 88px) clamp(34px, 6vw, 58px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(20px, 4vw, 28px);
}

.pill {
  padding: 7px 16px;
  border-radius: var(--r-pill);
  background: rgba(34, 211, 238, .10);
  border: 1px solid rgba(103, 232, 249, .30);
  color: var(--cyan-pale);
  font-size: clamp(11.5px, 3vw, 13px);
  font-weight: 700;
}

.hero__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(34px, 8.4vw, 60px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.025em;
  text-wrap: balance;
  padding-bottom: 6px;
  background: var(--grad-title);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero__lede {
  margin: 0;
  color: var(--text-mut);
  font-size: clamp(15px, 3.9vw, 18px);
  line-height: 1.65;
  max-width: 620px;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Marquee ----------------------------------------------------------------- */

.marquee {
  position: relative;
  overflow: hidden;
  padding-block: 13px;
  background: var(--band-strong);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marqueeSlide 44s linear infinite;
}

.marquee__run {
  display: flex;
  gap: 30px;
  padding-right: 30px;
  align-items: center;
}

.marquee__item {
  color: var(--text-faint);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}
.marquee__dot { color: var(--text-idle); }

/* -------------------------------------------------------------------------- */
/* Apps — the two product cards                                               */
/* -------------------------------------------------------------------------- */

/* min(100%, Npx) inside minmax() is the whole trick: the track can never be
   wider than the container, so the grid drops to one column on a phone instead
   of forcing a horizontal scrollbar. Every grid on this page uses it. */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: clamp(16px, 3vw, 24px);
  align-items: stretch;
}
.grid--steps  { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
                gap: clamp(12px, 2.4vw, 18px); }
.grid--buy    { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
                gap: clamp(14px, 2.6vw, 20px); }
.grid--posts  { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
                gap: clamp(12px, 2.4vw, 18px); }

.apps__head { margin-bottom: clamp(24px, 4.6vw, 40px); }

.product {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-3xl);
  display: flex;
  flex-direction: column;
  transition: transform .4s ease, border-color .4s ease;
}
.product--rythmos {
  background: linear-gradient(165deg, rgba(20, 184, 166, .14), var(--surface) 58%);
  border: 1px solid rgba(20, 184, 166, .34);
}
.product--rythmos:hover {
  transform: translateY(-6px);
  border-color: rgba(45, 212, 191, .62);
}
.product--ritmi {
  background: linear-gradient(165deg, rgba(124, 58, 237, .14), var(--surface) 58%);
  border: 1px solid rgba(168, 85, 247, .34);
}
.product--ritmi:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, .62);
}

.product__glow {
  position: absolute;
  right: -50px;
  top: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  pointer-events: none;
}
.product--rythmos .product__glow {
  background: radial-gradient(circle, rgba(20, 184, 166, .22), transparent 68%);
}
.product--ritmi .product__glow {
  background: radial-gradient(circle, rgba(168, 85, 247, .22), transparent 68%);
}

.product__body {
  position: relative;
  flex: 1;
  padding: clamp(22px, 4.6vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product__id {
  display: flex;
  align-items: center;
  gap: 14px;
}

.product__icon { flex: none; object-fit: contain; }
.product__icon--rythmos { width: 64px; height: 64px; }
.product__icon--ritmi   { width: 74px; height: 60px; }

.product__names {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.product__name {
  font-family: var(--font-serif);
  font-size: clamp(22px, 5.2vw, 27px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
}

.product__role { font-size: 13.5px; font-weight: 600; }
.product--rythmos .product__role { color: var(--ry-teal-light); }
.product--ritmi   .product__role { color: var(--violet-soft); }

.product__copy {
  margin: 0;
  color: var(--text-mut);
  font-size: clamp(14.5px, 3.6vw, 16px);
  line-height: 1.65;
  text-wrap: pretty;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag {
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 600;
}
.tag--teal {
  background: rgba(20, 184, 166, .12);
  border: 1px solid rgba(20, 184, 166, .28);
  color: var(--ry-teal-light);
}
.tag--violet {
  background: rgba(168, 85, 247, .10);
  border: 1px solid rgba(168, 85, 247, .26);
  color: var(--violet-soft);
}

/* margin-top:auto pins this line + the actions to the card bottom so both
   cards' buttons align however unevenly the copy wraps. */
.product__when {
  margin-top: auto;
  color: var(--text-faint);
  font-size: 13.5px;
  line-height: 1.55;
}

.product__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}

/* -------------------------------------------------------------------------- */
/* Project                                                                    */
/* -------------------------------------------------------------------------- */

.project__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4.6vw, 38px);
}

.project__lede {
  margin: 0;
  color: var(--text-mut);
  font-size: clamp(15px, 3.7vw, 17px);
  line-height: 1.7;
  max-width: 680px;
  text-wrap: pretty;
}

.step {
  padding: clamp(18px, 4vw, 24px);
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line-card);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.step__n {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
}
.step__n--teal   { background: rgba(52, 211, 153, .14); color: var(--teal-soft); }
.step__n--violet { background: rgba(168, 85, 247, .14); color: var(--violet-soft); }
.step__n--cyan   { background: rgba(34, 211, 238, .14); color: var(--cyan-soft); }

.step__title {
  font-family: var(--font-serif);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text-soft);
}

.step__copy {
  color: var(--text-mut);
  font-size: 14.5px;
  line-height: 1.6;
  text-wrap: pretty;
}

.link-note {
  padding: clamp(20px, 4.4vw, 30px);
  border-radius: var(--r-2xl);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  display: flex;
  gap: clamp(18px, 4vw, 30px);
  flex-wrap: wrap;
  align-items: center;
}

/* flex:1 1 300px + min-width:0 — the basis is a wish, not a floor, so the two
   halves stack instead of overflowing once the row is narrower than 300px. */
.link-note__text {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.link-note__title {
  font-family: var(--font-serif);
  font-size: clamp(18px, 4.4vw, 22px);
  font-weight: 700;
  color: var(--text);
}

.link-note__copy {
  color: var(--text-mut);
  font-size: clamp(14.5px, 3.6vw, 15.5px);
  line-height: 1.65;
  text-wrap: pretty;
}

.link-note__slot { flex: 0 1 280px; min-width: 0; height: 160px; }

.link-note__art {
  flex: 0 1 280px;
  min-width: 0;
  width: 100%;
  height: 160px;
  object-fit: contain;
}

/* -------------------------------------------------------------------------- */
/* Asset slots — the 47 manifest assets that do not exist yet                  */
/* -------------------------------------------------------------------------- */

.slot {
  border-radius: 18px;
  border: 1px dashed var(--line-dash);
  background: rgba(140, 160, 255, .05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  padding: 8px;
}
.slot__ratio { opacity: .8; }

/* -------------------------------------------------------------------------- */
/* Buy                                                                        */
/* -------------------------------------------------------------------------- */

.buy__head { margin-bottom: clamp(24px, 4.6vw, 38px); }

.price {
  padding: clamp(20px, 4.4vw, 30px);
  border-radius: var(--r-2xl);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.price--rythmos {
  background: linear-gradient(165deg, rgba(20, 184, 166, .12), var(--surface) 58%);
  border: 1px solid rgba(20, 184, 166, .32);
}
.price--ritmi {
  background: linear-gradient(165deg, rgba(124, 58, 237, .14), var(--surface) 58%);
  border: 1px solid rgba(168, 85, 247, .36);
}

.price__id {
  display: flex;
  align-items: center;
  gap: 11px;
}

.price__mark { width: 40px; height: 40px; object-fit: contain; flex: none; }

.price__slot {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  flex: none;
  font-size: 9px;
  border-color: rgba(20, 184, 166, .45);
  background: rgba(20, 184, 166, .07);
  color: var(--ry-teal-light);
}

.price__name {
  font-family: var(--font-serif);
  font-size: clamp(18px, 4.4vw, 21px);
  font-weight: 700;
  color: var(--text);
}

.price__copy {
  color: var(--text-mut);
  font-size: 14.5px;
  line-height: 1.6;
  text-wrap: pretty;
}

.price__row {
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--surface-deep);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.price__label { color: var(--text-faint); font-size: 13.5px; }

.price__value {
  color: var(--violet-soft);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}

.price__value-slot {
  padding: 3px 12px;
  border-radius: var(--r-sm);
  border: 1px dashed rgba(20, 184, 166, .45);
  color: var(--ry-teal-light);
  font-family: var(--font-mono);
  font-size: 13px;
}

/* -------------------------------------------------------------------------- */
/* Blog — two streams, kept apart                                             */
/* -------------------------------------------------------------------------- */

.blog__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 5vw, 44px);
}

.stream {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stream__head {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
}

.stream__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}
.stream__dot--teal   { background: var(--ry-teal); }
.stream__dot--violet { background: var(--violet); }

.stream__title {
  font-family: var(--font-serif);
  font-size: clamp(18px, 4.4vw, 21px);
  font-weight: 700;
  color: var(--text);
}

/* The design draws this at min-height:30px as a static span. It is a real link
   in the build, so it takes the tap floor like every other one. */
.stream__all {
  margin-left: auto;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
}
.stream__all--teal   { color: var(--ry-teal-light); }
.stream__all--teal:hover { color: #99F6E4; }
.stream__all--violet { color: var(--violet-soft); }
.stream__all--violet:hover { color: var(--violet-pale); }

.post {
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: inherit;
  transition: transform .35s ease, border-color .35s ease;
}
.post:hover { transform: translateY(-5px); color: inherit; }
.stream--rythmos .post:hover { border-color: rgba(20, 184, 166, .45); }
.stream--ritmi   .post:hover { border-color: rgba(168, 85, 247, .40); }

.post__cover {
  height: clamp(120px, 26vw, 150px);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.post__cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.stream__empty {
  margin: 0;
  padding: clamp(18px, 4vw, 26px);
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px dashed var(--line-dash);
  color: var(--text-mut);
  font-size: 14.5px;
}
.post__cover--amber  { background: linear-gradient(140deg, rgba(251, 191, 36, .14), rgba(3, 5, 26, .2)); }
.post__cover--violet { background: linear-gradient(140deg, rgba(168, 85, 247, .14), rgba(3, 5, 26, .2)); }
.post__cover--cyan   { background: linear-gradient(140deg, rgba(34, 211, 238, .14), rgba(3, 5, 26, .2)); }

.post__art { object-fit: contain; }

.post__body {
  padding: clamp(16px, 3.6vw, 22px);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.post__date {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 12px;
}

.post__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(16px, 4vw, 18px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}
/* Each stream's card titles wear its own colour: Rythmos teal, RITMI violet. */
#blog-rythmos .post__title { color: var(--ry-teal-light); }
#blog-ritmi .post__title { color: var(--violet-soft); }

.post__excerpt {
  margin: 0;
  color: var(--text-mut);
  font-size: 14px;
  line-height: 1.55;
}

/* A card that is not a link yet — the Rythmos stream has no posts. */
.post--placeholder { cursor: default; }

/* -------------------------------------------------------------------------- */
/* Contact                                                                    */
/* -------------------------------------------------------------------------- */

.contact {
  display: flex;
  gap: clamp(20px, 4vw, 34px);
  flex-wrap: wrap;
  align-items: flex-start;
}

.contact__intro {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(25px, 6vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.contact__copy {
  margin: 0;
  color: var(--text-mut);
  font-size: clamp(14.5px, 3.6vw, 16px);
  line-height: 1.65;
  text-wrap: pretty;
}

.contact__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.contact__mail {
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  color: var(--cyan-pale);
  font-size: 15px;
  font-weight: 700;
}

.contact__legal {
  color: var(--text-faint);
  font-size: 14px;
  line-height: 1.55;
}

.contact__form {
  flex: 1 1 320px;
  min-width: 0;
  padding: clamp(20px, 4.4vw, 28px);
  border-radius: var(--r-2xl);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field__label {
  color: var(--text-soft);
  font-size: 14.5px;
  font-weight: 700;
}

.field__input,
.field__textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border-radius: var(--r-md);
  background: var(--surface-deep);
  border: 1px solid var(--line-field);
  color: var(--text);
  font-family: inherit;
  /* 16px floor: anything smaller makes iOS Safari zoom the page on focus, which
     is how a fluid layout ends up with a horizontal scrollbar on a phone. */
  font-size: 16px;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.field__textarea {
  min-height: 104px;
  padding: 13px 16px;
  line-height: 1.5;
  resize: vertical;
}
.field__input:focus,
.field__textarea:focus {
  outline: none;
  border-color: rgba(103, 232, 249, .70);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .10);
}
.field__input::placeholder,
.field__textarea::placeholder { color: var(--text-faint); }

.field__hint {
  color: var(--text-faint);
  font-size: 12.5px;
  font-family: var(--font-mono);
}

.form__note {
  margin: 0;
  color: var(--text-faint);
  font-size: 12.5px;
  line-height: 1.55;
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                     */
/* -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-footer);
}

.site-footer__cols {
  padding-block: clamp(34px, 6vw, 54px) clamp(26px, 5vw, 38px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 158px), 1fr));
  gap: clamp(20px, 3vw, 34px);
  align-items: start;
}

.footer-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col__title {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

/* ⚠️ The design draws these 11 links at min-height:26px. They are static spans
   in the drawing, so the designer never sized them as links. Here they ARE
   links, so they take --tap. Do not copy the 26px back. */
.footer-col__link {
  min-height: var(--tap);
  display: flex;
  align-items: center;
  color: var(--text-faint);
  font-size: 14px;
}
.footer-col__link:hover { color: var(--text-soft); }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.footer-brand__mark { width: 28px; height: 28px; object-fit: contain; flex: none; }

.footer-brand__name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 800;
}

.footer-col__copy {
  margin: 0;
  color: var(--text-faint);
  font-size: 14px;
  line-height: 1.6;
  max-width: 300px;
  text-wrap: pretty;
}

.footer-col__domain {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.footer-col__place {
  color: var(--text-faint);
  font-size: 13px;
  line-height: 1.55;
}

.site-footer__base {
  padding-bottom: clamp(26px, 5vw, 36px);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.site-footer__base span { color: var(--text-faint); font-size: 12.5px; }

/* An inline link inside a sentence cannot be a 44px-tall block without
   wrecking the line. Symmetric padding/negative margin grows the hit area to
   44px while the line box stays exactly where it was. */
.inline-link {
  font-weight: 700;
  /* 16px, not 14px: the line box of a 12.5px font is ~14.5px, so 14px each
     side lands at 42.5px and fails the 44px floor. Measured, not guessed. */
  padding-block: 16px;
  margin-block: -16px;
}

/* -------------------------------------------------------------------------- */
/* Motion + print                                                             */
/* -------------------------------------------------------------------------- */

@keyframes orbPulse {
  0%, 100% { opacity: .28; transform: scale(1); }
  50%      { opacity: .60; transform: scale(1.1); }
}

@keyframes marqueeSlide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .marquee__track { animation: none; }
  .product:hover, .post:hover, .btn--primary:hover { transform: none; }
}

@media print {
  .site-header, .marquee, .hero__orb, .hero__wash, .contact__form { display: none; }
  body { background: #fff; color: #000; }
}

/* -------------------------------------------------------------------------- */
/* Icons — ASSET-MANIFEST.md §2                                               */
/*                                                                            */
/* Every icon is a 1:1 transparent render, sized here and never stretched.    */
/* All of them sit inside text, so they take `flex: none` and an explicit box: */
/* an icon that can shrink is an icon that reflows the line it is in.         */
/* -------------------------------------------------------------------------- */

.apps__banner {
  margin-bottom: clamp(20px, 3.6vw, 32px);
  border-radius: var(--r-3xl);
  overflow: hidden;
  border: 1px solid var(--line-card);
  background: linear-gradient(140deg, rgba(20, 184, 166, .10), rgba(124, 58, 237, .12));
}
.apps__banner-img {
  display: block;
  width: 100%;
  /* Capped: at full 16:9 the banner is taller than the two product cards it
     introduces and reads as a second hero. The art is centred, so cropping
     top and bottom costs nothing. */
  height: clamp(180px, 26vw, 300px);
  object-fit: cover;
}

/* Four things the questionnaire reads — the card's own sentence names them. */
.dims {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 8px;
}
.dims li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--r-md);
  background: rgba(20, 184, 166, .06);
  border: 1px solid rgba(20, 184, 166, .18);
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.3;
  min-width: 0;
}
.dims__icon { width: 26px; height: 26px; flex: none; object-fit: contain; }

.tag { display: inline-flex; align-items: center; gap: 6px; }
.tag__icon { width: 18px; height: 18px; flex: none; object-fit: contain; }

/* Sits beside the step number, not instead of it: the design's numbering is
   what carries the order. */
.step__icon { width: 30px; height: 30px; flex: none; object-fit: contain; }
.step { position: relative; }
.step .step__icon {
  position: absolute;
  top: clamp(18px, 4vw, 24px);
  right: clamp(18px, 4vw, 24px);
  opacity: .9;
}

.eyebrow { display: inline-flex; align-items: center; gap: 7px; }
.eyebrow__icon { width: 20px; height: 20px; flex: none; object-fit: contain; }

.buy__note {
  margin: clamp(16px, 3vw, 24px) 0 0;
  padding: clamp(14px, 3vw, 18px);
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line-card);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-mut);
  font-size: 14px;
  line-height: 1.55;
  text-wrap: pretty;
}
.buy__note-icon { width: 34px; height: 34px; flex: none; object-fit: contain; }

.contact__icon { width: 24px; height: 24px; flex: none; object-fit: contain; margin-right: 8px; }
