/* =========================================================
   irithys · apps — static showcase
   ========================================================= */

:root {
  --bg: #080b10;
  --surface: #0f141c;
  --surface-2: #131a24;
  --text: #e9eff7;
  --text-2: #a3afbe;
  --text-3: #737f8e;
  --line: rgba(198, 216, 237, 0.12);
  --line-strong: rgba(198, 216, 237, 0.22);
  --accent: #a9c6e6;
  --accent-bright: #d6e6f7;
  --accent-deep: #5b7fa6;
  --green: #7bd88f;
  --serif: "Noto Serif SC", "Songti SC", "Source Han Serif SC", Georgia, serif;
  --sans: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  --latin: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --shell: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius-card: 30px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  margin: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background:
    radial-gradient(820px 820px at 84% -10%, rgba(91, 127, 166, 0.36), transparent 68%),
    radial-gradient(680px 560px at -12% 34%, rgba(255, 183, 124, 0.07), transparent 70%),
    radial-gradient(700px 700px at 50% 120%, rgba(91, 127, 166, 0.08), transparent 70%);
}

body::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
  opacity: 0.55;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
blockquote,
figure {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--accent-bright);
  color: #0a0e14;
}

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

.shell {
  width: 100%;
  max-width: calc(var(--shell) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent-bright);
  color: #0a0e14;
  font-size: 13px;
  font-weight: 500;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus-visible {
  transform: none;
}

.sprite {
  position: absolute;
  overflow: hidden;
}

/* ---------- shared type ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
}

.eyebrow__rule {
  width: 26px;
  height: 1px;
  background: var(--accent-deep);
}

.eyebrow__num {
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.accent {
  color: var(--accent-bright);
}

.muted {
  color: var(--text-2);
}

.face {
  flex: none;
  border-radius: 50%;
}

.face--20 { width: 20px; height: 20px; }
.face--22 { width: 22px; height: 22px; }
.face--28 { width: 28px; height: 28px; }
.face--40 { width: 40px; height: 40px; }
.face--44 { width: 44px; height: 44px; }

.mood-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pulse {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(123, 216, 143, 0.45);
  animation: pulse 2.8s ease-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(123, 216, 143, 0.4); }
  50% { box-shadow: 0 0 0 5px rgba(123, 216, 143, 0); }
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(8, 11, 16, 0.72);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px) saturate(140%);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 36px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
  color: var(--text);
}

.brand__mark {
  width: 15px;
  height: 15px;
  color: var(--accent-bright);
}

.brand__word {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.site-nav a {
  position: relative;
  font-size: 12.5px;
  color: var(--text-2);
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--text-2);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.header-link span {
  color: var(--accent);
  font-size: 12px;
  transition: transform 0.2s ease;
}

.header-link:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.header-link:hover span {
  transform: translateY(2px);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: clamp(30px, 4vw, 54px);
  min-height: min(880px, calc(100svh - 72px));
  padding-block: clamp(48px, 8vh, 92px);
}

.hero__copy {
  position: relative;
  z-index: 2;
}

.hero h1 {
  margin-top: 24px;
  font-family: var(--serif);
  font-size: clamp(2.55rem, 4.7vw, 4.3rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.005em;
}

.hero__lede {
  margin-top: 28px;
  max-width: 470px;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--text-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), background 0.2s ease, border-color 0.2s ease,
    color 0.2s ease, box-shadow 0.25s ease;
}

.btn--primary {
  background: var(--accent-bright);
  color: #0a0e14;
  box-shadow: 0 12px 34px rgba(120, 162, 205, 0.16);
}

.btn--primary:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 16px 40px rgba(120, 162, 205, 0.24);
}

.btn__arrow {
  font-size: 14px;
  transition: transform 0.25s var(--ease);
}

.btn--primary:hover .btn__arrow {
  transform: translateY(2px);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--text-2);
}

.btn--ghost:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 32px;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--text-3);
}

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

.hero__art {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(380px, 42vw, 480px);
  isolation: isolate;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.orbit--outer {
  width: min(94%, 440px);
  aspect-ratio: 1;
  border: 1px dashed rgba(198, 216, 237, 0.16);
  animation: spin 80s linear infinite;
}

.orbit--outer::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(169, 198, 230, 0.9);
}

.orbit--inner {
  width: min(69%, 322px);
  aspect-ratio: 1;
  border: 1px solid rgba(198, 216, 237, 0.1);
}

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

.hero__halo {
  position: absolute;
  width: min(66%, 300px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(160, 196, 232, 0.32), rgba(91, 127, 166, 0.08) 55%, transparent 72%);
  filter: blur(34px);
}

.icon-tile {
  position: relative;
  z-index: 2;
  width: clamp(150px, 15.5vw, 186px);
  aspect-ratio: 1;
  border-radius: 22.2%;
  overflow: hidden;
  box-shadow:
    0 34px 70px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(255, 255, 255, 0.16) inset;
  animation: float 8s ease-in-out infinite;
}

.icon-tile img {
  width: 100%;
  height: 100%;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-11px) rotate(-1.5deg); }
}

.chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid rgba(198, 216, 237, 0.16);
  border-radius: 15px;
  background: rgba(13, 18, 26, 0.72);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px) saturate(150%);
}

.chip--mood {
  top: 13%;
  left: 0;
}

.chip--streak {
  right: 0;
  bottom: 16%;
  flex-wrap: wrap;
  width: 156px;
  padding: 12px 14px;
}

.chip--moods {
  bottom: 2%;
  left: 4%;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 10px 13px;
}

.chip__text {
  display: flex;
  flex-direction: column;
  line-height: 1.45;
}

.chip__text strong {
  font-size: 12.5px;
  font-weight: 500;
}

.chip__text span {
  font-size: 9.5px;
  color: var(--text-3);
}

.chip__label {
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--text-3);
}

.chip__value {
  margin-left: auto;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.chip__value small {
  margin-left: 3px;
  font-size: 9.5px;
  font-weight: 400;
  color: var(--text-3);
}

.chip--streak .spark {
  flex-basis: 100%;
  margin-top: 2px;
}

.spark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
}

.spark i {
  width: 4px;
  height: var(--h);
  min-height: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(169, 198, 230, 0.25));
}

/* ---------- reveal ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--d, 0ms);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

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

.section {
  padding-block: clamp(84px, 10vw, 132px);
}

.section-head .eyebrow,
.notes .eyebrow,
.about .eyebrow {
  margin-bottom: 22px;
}

.section-head__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.section-head h2,
.about__head h2 {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 3.8vw, 3.5rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0.01em;
}

.section-head__note {
  max-width: 280px;
  padding-bottom: 6px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--text-3);
  text-align: right;
}

/* ---------- app card ---------- */

.app-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 4vw, 54px);
  margin-top: clamp(36px, 5vw, 56px);
  padding: clamp(24px, 3.4vw, 46px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012) 52%, rgba(91, 127, 166, 0.055)),
    rgba(10, 14, 20, 0.55);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.36);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.app-card::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -10%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 127, 166, 0.16), transparent 66%);
  pointer-events: none;
}

.app-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 44px 110px rgba(0, 0, 0, 0.46);
}

.app-card__info {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-card__top {
  display: flex;
  align-items: center;
  gap: 15px;
}

.app-icon {
  width: 60px;
  height: 60px;
  flex: none;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
  transition: transform 0.35s var(--ease);
}

.app-card:hover .app-icon {
  transform: rotate(-4deg) scale(1.04);
}

.app-card h3 {
  font-size: 29px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.app-kicker {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-3);
}

.app-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 5px 10px;
  border: 1px solid rgba(123, 216, 143, 0.22);
  border-radius: 999px;
  background: rgba(123, 216, 143, 0.07);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: #9fdaad;
  white-space: nowrap;
}

.app-state .pulse {
  width: 5px;
  height: 5px;
}

.app-tagline {
  margin-top: clamp(26px, 4vw, 42px);
  font-family: var(--serif);
  font-size: clamp(1.75rem, 2.6vw, 2.35rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.app-desc {
  margin-top: 18px;
  max-width: 450px;
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--text-2);
}

.app-feats {
  display: grid;
  gap: 9px;
  margin-top: 24px;
}

.app-feats li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 12.5px;
  color: var(--text-2);
}

.feat__dot {
  width: 4px;
  height: 4px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(169, 198, 230, 0.6);
}

.app-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 34px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tags li {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--text-3);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--accent-bright);
}

.text-link__arrow {
  font-size: 13px;
  transition: transform 0.25s var(--ease);
}

.text-link:hover .text-link__arrow {
  transform: translate(3px, -3px);
}

/* ---------- app preview ---------- */

.app-card__visual {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.preview {
  position: relative;
  padding: 0 0 26px 16px;
}

.preview__frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: #16171a;
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(255, 255, 255, 0.025) inset;
  transform: perspective(1500px) rotateY(-1.6deg) rotateX(0.4deg);
  transition: transform 0.6s var(--ease);
}

.app-card:hover .preview__frame {
  transform: perspective(1500px) rotateY(0deg) rotateX(0deg);
}

.preview__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 33px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: #202024;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.window-dots i:nth-child(1) { background: rgba(255, 95, 87, 0.72); }
.window-dots i:nth-child(2) { background: rgba(254, 188, 46, 0.72); }
.window-dots i:nth-child(3) { background: rgba(40, 200, 64, 0.66); }

.preview__title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  font-size: 9.5px;
  letter-spacing: 0.02em;
  color: #9c9ca3;
}

.preview__mark {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: linear-gradient(140deg, #e7eff9, #c7d8ea);
}

.preview__date {
  margin-left: auto;
  font-size: 8.5px;
  letter-spacing: 0.08em;
  color: #5f5f66;
  font-variant-numeric: tabular-nums;
}

.preview__app {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  min-height: 356px;
  background: #1a1a1c;
  color: #f2f2f7;
}

.preview__side {
  display: flex;
  flex-direction: column;
  padding: 13px 8px 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.065);
  background: #171719;
}

.pv-nav {
  display: grid;
  gap: 2px;
}

.pv-nav__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 7px;
  font-size: 10px;
  color: #8e8e95;
}

.pv-nav__item svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pv-nav__item.is-active {
  background: rgba(169, 198, 230, 0.13);
  color: #dceaf8;
}

.pv-user {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding: 9px 8px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 8.5px;
  color: #78787f;
}

.pv-avatar {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(145deg, #c9a389, #8d6b58);
  font-size: 8px;
  color: #241a14;
}

.pv-sync {
  width: 4px;
  height: 4px;
  margin-left: auto;
  border-radius: 50%;
  background: #7bd88f;
}

.preview__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 15px 18px 12px;
}

.pv-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.pv-eyebrow {
  display: block;
  margin-bottom: 2px;
  font-size: 8px;
  letter-spacing: 0.14em;
  color: #6c6c73;
}

.pv-head strong {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.pv-plus {
  flex: none;
  padding: 5px 9px;
  border-radius: 999px;
  background: #d6e6f6;
  font-size: 8.5px;
  font-weight: 500;
  color: #16171a;
  white-space: nowrap;
}

.pv-day {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 0 6px;
  font-size: 8.5px;
  color: #6c6c73;
}

.pv-day span {
  font-size: 10px;
  font-weight: 500;
  color: #aab9c4;
}

.pv-entry {
  display: flex;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.pv-entry__body {
  min-width: 0;
}

.pv-entry__head {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.pv-entry__head strong {
  font-size: 10.5px;
  font-weight: 500;
}

.pv-entry__head time {
  font-size: 8px;
  color: #6c6c73;
  font-variant-numeric: tabular-nums;
}

.pv-entry__body p {
  margin-top: 2px;
  overflow: hidden;
  font-size: 9.5px;
  line-height: 1.55;
  color: #a9a9b0;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pv-tags {
  display: flex;
  gap: 4px;
  margin-top: 5px;
}

.pv-tags span {
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  font-size: 7.5px;
  color: #aab9c4;
}

.pv-compose {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 8.5px;
  color: #78787f;
}

.pv-compose .mood-row {
  gap: 4px;
}

.preview__float {
  position: absolute;
  left: -2px;
  bottom: 2px;
  z-index: 3;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 1px 12px;
  padding: 10px 14px;
  border: 1px solid rgba(198, 216, 237, 0.18);
  border-radius: 14px;
  background: rgba(17, 22, 30, 0.86);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(16px);
}

.preview__float-label {
  font-size: 8.5px;
  letter-spacing: 0.05em;
  color: var(--text-3);
}

.preview__float-value {
  grid-row: span 2;
  font-size: 21px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.preview__float-value small {
  margin-left: 2px;
  font-size: 8.5px;
  font-weight: 400;
  color: var(--text-3);
}

.preview__float .spark {
  height: 16px;
}

.preview__float .spark i {
  width: 3px;
}

.visual-caption {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-right: 6px;
  font-size: 9.5px;
  letter-spacing: 0.05em;
  color: var(--text-3);
}

.visual-caption span {
  color: var(--accent);
}

.visual-caption span::after {
  content: "·";
  margin-left: 8px;
  color: var(--text-3);
}

/* ---------- design notes ---------- */

.notes {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(40px, 6vw, 86px);
  border-top: 1px solid var(--line);
}

.notes__head {
  position: sticky;
  top: 112px;
  align-self: start;
}

.notes__head h2 {
  font-family: var(--serif);
  font-size: clamp(2.45rem, 4vw, 3.7rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: 0.01em;
}

.notes__lede {
  max-width: 310px;
  margin-top: 24px;
  font-size: 13px;
  line-height: 1.95;
  color: var(--text-3);
}

.notes__body {
  display: grid;
  gap: 42px;
  min-width: 0;
}

.notes__copy p {
  font-size: 14.5px;
  line-height: 2;
  color: var(--text-2);
}

.notes__copy p + p {
  margin-top: 18px;
}

.spectrum {
  position: relative;
  padding: 26px 24px 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.018);
}

.spectrum::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 180px at 50% 0%, rgba(169, 198, 230, 0.08), transparent 70%);
  pointer-events: none;
}

.spectrum__line {
  position: absolute;
  top: 48px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, rgba(239, 154, 147, 0.25), rgba(255, 214, 102, 0.4));
}

.spectrum__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: start;
}

.spectrum__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
}

.spectrum__step .face {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.spectrum__step em {
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--text-3);
}

.spectrum__caption {
  margin-top: 18px;
  font-size: 11px;
  text-align: center;
  color: var(--text-3);
}

.principles {
  border-top: 1px solid var(--line);
}

.principles li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}

.principles__num {
  padding-top: 3px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.principles h3 {
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.principles p {
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--text-3);
}

/* ---------- about ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(40px, 6vw, 86px);
  border-top: 1px solid var(--line);
}

.about__head {
  align-self: start;
}

.about__body {
  max-width: 590px;
}

.about__body p {
  font-size: 14.5px;
  line-height: 2;
  color: var(--text-2);
}

.about__body p + p {
  margin-top: 18px;
}

.about__lead {
  font-size: 19px !important;
  line-height: 1.9 !important;
  color: var(--text) !important;
}

.about__sign {
  font-family: var(--serif);
  font-size: 15px !important;
  letter-spacing: 0.04em;
  color: var(--text-3) !important;
}

.quote {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  grid-column: 1 / -1;
  margin-top: clamp(36px, 6vw, 76px);
  padding-top: clamp(30px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

.quote p {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.2vw, 2.9rem);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--text);
}

.quote cite {
  flex: none;
  padding-bottom: 8px;
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-3);
  text-transform: uppercase;
}

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

.site-footer {
  position: relative;
  margin-top: clamp(40px, 6vw, 70px);
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -30%;
  width: min(1000px, 120%);
  aspect-ratio: 2 / 1;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(91, 127, 166, 0.16), transparent 65%);
  pointer-events: none;
}

.site-footer__top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: clamp(36px, 5vw, 56px);
  font-size: 11.5px;
  color: var(--text-3);
}

.site-footer__top a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.site-footer__top a:hover {
  color: var(--text);
}

.site-footer__word {
  position: relative;
  margin: 26px 0 18px;
  font-family: var(--latin);
  font-size: clamp(6rem, 18vw, 15.5rem);
  font-style: italic;
  font-weight: 400;
  line-height: 0.76;
  letter-spacing: -0.045em;
  text-align: center;
  color: transparent;
  background: linear-gradient(180deg, rgba(233, 241, 250, 0.9), rgba(233, 241, 250, 0.04));
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
}

.site-footer__bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 16px 0 26px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  color: var(--text-3);
}

.site-footer__domain {
  letter-spacing: 0.06em;
}

.site-footer__bottom nav {
  display: flex;
  gap: 18px;
}

.site-footer__bottom nav a {
  transition: color 0.2s ease;
}

.site-footer__bottom nav a:hover {
  color: var(--text);
}

/* ---------- responsive ---------- */

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 0;
    gap: 24px;
    padding-block: clamp(48px, 8vh, 72px) clamp(64px, 9vh, 96px);
  }

  .hero__copy {
    width: 100%;
    max-width: 680px;
  }

  .hero__art {
    width: min(100%, 560px);
    height: 440px;
    margin-top: 8px;
  }

  .app-card,
  .notes,
  .about {
    grid-template-columns: 1fr;
  }

  .app-card__info {
    width: 100%;
    max-width: 720px;
    margin-inline: auto;
    padding-bottom: 6px;
  }

  .app-card__visual {
    align-items: center;
  }

  .preview {
    width: 100%;
    max-width: 720px;
  }

  .visual-caption {
    width: 100%;
    max-width: 720px;
    margin-inline: auto;
  }

  .app-card__foot {
    margin-top: 6px;
  }

  .notes__head,
  .about__head {
    position: static;
  }

  .notes__lede {
    max-width: 560px;
  }

  .notes__body {
    gap: 36px;
  }

  .about__body {
    max-width: 680px;
  }

  .quote {
    margin-top: 44px;
    padding-top: 32px;
  }
}

@media (max-width: 720px) {
  .site-header__inner {
    height: 64px;
    gap: 20px;
  }

  .site-nav {
    gap: 18px;
  }

  .header-link {
    display: none;
  }

  .hero {
    padding-top: 46px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 9.2vw, 3rem);
  }

  .hero__lede {
    margin-top: 22px;
    font-size: 14.5px;
  }

  .br-wide {
    display: none;
  }

  .hero__actions {
    margin-top: 28px;
  }

  .hero__meta {
    margin-top: 24px;
  }

  .hero__art {
    height: 360px;
  }

  .orbit--outer {
    width: 88%;
  }

  .orbit--inner {
    width: 64%;
  }

  .icon-tile {
    width: 146px;
  }

  .chip {
    padding: 9px 12px;
  }

  .chip--mood {
    top: 4%;
    left: 0;
  }

  .chip--streak {
    right: 0;
    bottom: 12%;
    width: 142px;
  }

  .chip--moods {
    display: none;
  }

  .section {
    padding-block: 74px;
  }

  .section-head__note {
    max-width: 100%;
    padding-bottom: 0;
    text-align: left;
  }

  .app-card {
    gap: 30px;
    padding: 22px;
    border-radius: 24px;
  }

  .app-card h3 {
    font-size: 25px;
  }

  .app-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .app-state {
    padding: 4px 8px;
    font-size: 9px;
  }

  .app-tagline {
    margin-top: 26px;
  }

  .app-card__foot {
    align-items: flex-start;
    padding-top: 26px;
  }

  .preview {
    padding-left: 10px;
  }

  .preview__app {
    grid-template-columns: 1fr;
    min-height: 330px;
  }

  .preview__side {
    display: none;
  }

  .preview__main {
    padding: 14px 14px 10px;
  }

  .preview__date {
    display: none;
  }

  .preview__float {
    display: none;
  }

  .visual-caption {
    justify-content: flex-start;
    padding-left: 4px;
  }

  .notes__head h2 {
    font-size: clamp(2.2rem, 8.6vw, 3rem);
  }

  .spectrum {
    padding: 24px 14px 18px;
  }

  .spectrum__line {
    top: 42px;
  }

  .spectrum__step .face {
    width: 36px;
    height: 36px;
  }

  .spectrum__step em {
    font-size: 9.5px;
  }

  .quote {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .quote cite {
    padding-bottom: 0;
  }

  .site-footer__top {
    font-size: 10.5px;
  }

  .site-footer__word {
    margin: 22px 0 14px;
    font-size: 26vw;
  }

  .site-footer__bottom {
    font-size: 9.5px;
  }
}

@media (max-width: 420px) {
  .site-nav {
    gap: 14px;
  }

  .site-nav a {
    font-size: 11.5px;
  }

  .brand__word {
    font-size: 15px;
  }

  .hero__actions .btn {
    flex: 1;
    padding: 0 16px;
  }

  .app-card__top {
    flex-wrap: wrap;
  }

  .app-state {
    margin-left: 0;
    order: 3;
  }

  .preview__main {
    padding: 12px 12px 9px;
  }

  .pv-entry__body p {
    max-width: 190px;
  }

  .site-footer__bottom {
    gap: 10px;
  }

  .site-footer__domain {
    order: 3;
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
