/* ============================================================
   CREDOWORKS — homepage stylesheet
   editorial / contemplative / dark-leaning
   ============================================================ */

:root {
  /* core palette */
  --violet:        #5e548e;
  --violet-2:      #7a6fb0;
  --violet-soft:   #a89bd1;
  --parchment:     #c8a96a;
  --parchment-soft:#d9c290;

  --ink-0:  #050810;   /* deepest */
  --ink-1:  #0b1020;   /* page bg */
  --ink-2:  #0f172a;   /* panels */
  --ink-3:  #131c35;   /* raised */
  --ink-4:  #1e293b;   /* borders */

  --paper-0:#f8fafc;
  --paper-1:#e2e8f0;
  --paper-2:#b8c2d1;
  --paper-3:#8593a8;
  --paper-4:#5d6a82;

  /* type */
  --serif: "Cormorant Garamond", "Cormorant", "Iowan Old Style", "Apple Garamond", "Baskerville", "Times New Roman", serif;
  --sans:  "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  /* type scale */
  --fs-eyebrow: 11px;
  --fs-body:    16px;
  --fs-lede:    19px;
  --fs-display-sm: clamp(2.2rem, 4.2vw, 3.6rem);
  --fs-display-md: clamp(2.6rem, 5vw, 4.4rem);
  --fs-display-lg: clamp(3.4rem, 7.5vw, 7rem);

  /* layout */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);

  /* motion */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ============== reset + base ============== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  background-color: var(--ink-1);
  background-image:
    /* film grain — fixed, blends as a soft overlay */
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    /* upper-right violet wash */
    radial-gradient(70% 55% at 82% 12%, rgba(122, 111, 176, 0.16) 0%, transparent 60%),
    /* mid-left warm parchment */
    radial-gradient(55% 40% at 8% 48%, rgba(200, 169, 106, 0.06) 0%, transparent 70%),
    /* lower-right violet */
    radial-gradient(60% 45% at 88% 78%, rgba(94, 84, 142, 0.14) 0%, transparent 65%),
    /* deep contact glow at the bottom of viewport */
    radial-gradient(80% 55% at 50% 112%, rgba(94, 84, 142, 0.18) 0%, transparent 60%);
  background-attachment: fixed, fixed, fixed, fixed, fixed;
  background-size: 240px 240px, auto, auto, auto, auto;
  background-position: 0 0, 0 0, 0 0, 0 0, 0 0;
  background-blend-mode: overlay, normal, normal, normal, normal;
  color: var(--paper-1);
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.55;
  font-feature-settings: "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color .25s var(--ease-out), opacity .25s var(--ease-out);
}

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

::selection {
  background: rgba(94, 84, 142, 0.55);
  color: var(--paper-0);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ============== typography primitives ============== */

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.012em;
  line-height: 1.04;
  color: var(--paper-0);
  text-wrap: balance;
  font-size: var(--fs-display-lg);
  margin: 0;
}

.display em {
  font-style: italic;
  font-weight: 400;
  color: var(--paper-1);
}

.display--sm { font-size: var(--fs-display-sm); line-height: 1.1; }
.display--md { font-size: var(--fs-display-md); line-height: 1.08; }
.display--lg { font-size: var(--fs-display-lg); }

.lede {
  font-family: var(--sans);
  font-size: var(--fs-lede);
  line-height: 1.55;
  color: var(--paper-2);
  font-weight: 400;
  max-width: 56ch;
  text-wrap: pretty;
  margin: 0;
}

.prose p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--paper-2);
  margin: 0 0 1.1em;
  max-width: 60ch;
  text-wrap: pretty;
}
.prose p:last-child { margin-bottom: 0; }

.meta-label {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--sans);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-3);
}
.meta-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0;
  color: var(--parchment);
  text-transform: none;
}

.rule {
  display: inline-block;
  background: linear-gradient(90deg, rgba(168,155,209,0) 0%, rgba(168,155,209,0.55) 30%, rgba(168,155,209,0.55) 70%, rgba(168,155,209,0) 100%);
  height: 1px;
  vertical-align: middle;
}
.rule--short { width: 40px; }
.rule--long  { width: 100%; flex: 1; }
.rule--vert  { width: 1px; height: 56px; background: linear-gradient(180deg, rgba(168,155,209,0) 0%, rgba(168,155,209,0.55) 50%, rgba(168,155,209,0) 100%); }

/* ============== header ============== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 22px 0;
  transition: background .4s var(--ease-out), backdrop-filter .4s var(--ease-out), border-color .4s var(--ease-out), padding .4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header[data-elevated="true"] {
  background: rgba(11, 16, 32, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: rgba(168, 155, 209, 0.08);
  padding: 14px 0;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--paper-0);
}
.brand__logo {
  display: inline-block;
  width: 224px;
  height: 29px;
  background-color: currentColor;
  -webkit-mask-image: url("assets/wordmark-horizontal.svg");
          mask-image: url("assets/wordmark-horizontal.svg");
  -webkit-mask-mode: alpha;
          mask-mode: alpha;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: left center;
          mask-position: left center;
  -webkit-mask-size: contain;
          mask-size: contain;
}

.site-nav ul {
  display: flex;
  gap: 38px;
}
.site-nav a {
  font-size: 14px;
  font-weight: 400;
  color: var(--paper-2);
  position: relative;
  padding-block: 8px;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--violet-soft);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.site-nav a:hover { color: var(--paper-0); }
.site-nav a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 36px; height: 36px;
  padding: 0;
  cursor: pointer;
  color: var(--paper-1);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
  margin: 5px auto;
  transition: transform .3s var(--ease-out), opacity .3s var(--ease-out);
}

@media (max-width: 820px) {
  .site-nav { display: none; }
  .nav-toggle { display: block; }
  .site-header[data-menu="open"] + main .hero { filter: blur(2px) brightness(0.7); }
  .site-header[data-menu="open"] .site-nav {
    display: block;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(11, 16, 32, 0.95);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(168, 155, 209, 0.08);
    padding: 22px var(--gutter) 28px;
  }
  .site-header[data-menu="open"] .site-nav ul {
    flex-direction: column;
    gap: 18px;
  }
}

/* ============== hero ============== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 160px 0 72px;
  overflow: hidden;
  isolation: isolate;
}

.hero__sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, #1a1838 0%, transparent 55%),
    linear-gradient(180deg, #05070f 0%, #0a0e1d 25%, rgba(11, 16, 32, 0.6) 70%, rgba(11, 16, 32, 0) 92%);
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 50% 18%, rgba(168,155,209,0.18) 0%, transparent 60%),
    radial-gradient(40% 30% at 70% 35%, rgba(200,169,106,0.06) 0%, transparent 70%);
}

.hero__light {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.9;
  will-change: transform;
}
.hero__light--a {
  width: 60vw;
  height: 60vw;
  top: -22vw;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(122,111,176,0.42) 0%, rgba(94,84,142,0.18) 40%, rgba(94,84,142,0) 75%);
}
.hero__light--b {
  width: 36vw;
  height: 36vw;
  top: 18vh;
  right: -8vw;
  background: radial-gradient(closest-side, rgba(200,169,106,0.18) 0%, rgba(200,169,106,0.06) 50%, transparent 80%);
}
.hero__light--c {
  width: 32vw;
  height: 32vw;
  bottom: -10vw;
  left: -8vw;
  background: radial-gradient(closest-side, rgba(94,84,142,0.32) 0%, rgba(94,84,142,0.08) 50%, transparent 80%);
}

.hero__arch {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  opacity: 0.7;
}
.hero__arch svg {
  width: min(1200px, 110%);
  height: auto;
  margin-top: 6vh;
}

/* god rays — soft volumetric beams from above */
.hero__rays {
  position: absolute;
  top: -4%;
  left: 50%;
  transform: translateX(-50%);
  width: 130%;
  height: 105%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.85;
  will-change: opacity;
  animation: rays-breathe 11s ease-in-out infinite;
}
@keyframes rays-breathe {
  0%, 100% { opacity: 0.72; }
  50%      { opacity: 0.95; }
}

/* stained-glass wash — light filtered through colored glass, top third only */
.hero__glass {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.45;
  filter: blur(36px);
  background:
    radial-gradient(22% 28% at 28% 22%, rgba(91, 58, 74, 0.42) 0%, transparent 70%),    /* burgundy */
    radial-gradient(20% 26% at 42% 14%, rgba(46, 74, 116, 0.55) 0%, transparent 70%),   /* sapphire */
    radial-gradient(24% 30% at 58% 18%, rgba(200, 169, 106, 0.45) 0%, transparent 70%), /* parchment gold */
    radial-gradient(22% 28% at 70% 16%, rgba(176, 96, 60, 0.40) 0%, transparent 70%),   /* terracotta */
    radial-gradient(20% 26% at 80% 24%, rgba(74, 96, 62, 0.42) 0%, transparent 70%);    /* sage */
  animation: glass-drift 22s ease-in-out infinite;
}
@keyframes glass-drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(-1.4%, 0.6%, 0); }
}

/* suspended dust motes */
.hero__dust {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.dust-mote {
  position: absolute;
  width: var(--s, 2px);
  height: var(--s, 2px);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(244, 236, 217, 0.9) 0%, rgba(244, 236, 217, 0) 70%);
  opacity: 0;
  filter: blur(0.3px);
  animation: mote-drift var(--dur, 24s) linear infinite;
  animation-delay: var(--delay, 0s);
  will-change: transform, opacity;
}
@keyframes mote-drift {
  0%   { transform: translate3d(0, 0, 0);    opacity: 0; }
  10%  { opacity: var(--o, 0.5); }
  50%  { transform: translate3d(var(--sx, 18px), -45vh, 0); opacity: var(--o, 0.5); }
  90%  { opacity: 0; }
  100% { transform: translate3d(calc(var(--sx, 18px) * 1.6), -95vh, 0); opacity: 0; }
}

/* floor — disabled; the sky now fades to transparent on its own so the body backdrop bleeds through naturally */
.hero__floor {
  display: none;
}

.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.15;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 44px;
}

.hero #hero-title {
  font-size: var(--fs-display-lg);
  line-height: 1.02;
  letter-spacing: -0.014em;
  margin-bottom: 36px;
  max-width: 18ch;
}
/* lit-from-above emboss applied per word so it composes with the stagger */
.hero #hero-title .hero-word {
  background: linear-gradient(180deg, #ffffff 0%, #ecedf3 50%, #c9cad6 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}
.hero #hero-title em .hero-word {
  background: linear-gradient(180deg, var(--violet-soft) 0%, #8b7eb6 55%, #6b609a 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}
.hero #hero-title em {
  display: inline-block;
  color: var(--violet-soft);
  font-style: italic;
  font-weight: 400;
}

.hero .lede {
  margin-bottom: 56px;
  max-width: 52ch;
}

.hero__cta {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 14px 22px;
  border-radius: 0;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .4s var(--ease-out), background .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out);
  text-decoration: none;
}

.btn--primary {
  position: relative;
  background: linear-gradient(180deg, #6e63a0 0%, #524777 100%);
  color: var(--paper-0);
  border: 1px solid rgba(168, 155, 209, 0.55);
  letter-spacing: 0.04em;
  font-weight: 500;
  padding: 16px 28px;
  font-size: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(15, 10, 35, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 1px 2px rgba(0, 0, 0, 0.55),
    0 14px 26px -10px rgba(94, 84, 142, 0.55),
    0 22px 44px -12px rgba(0, 0, 0, 0.6);
  transition:
    transform .4s var(--ease-out),
    background .35s var(--ease-out),
    color .35s var(--ease-out),
    border-color .35s var(--ease-out),
    box-shadow .4s var(--ease-out);
  will-change: transform;
}
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(70% 90% at 50% 0%, rgba(168, 155, 209, 0.35) 0%, transparent 65%);
  transition: opacity .35s var(--ease-out);
}
.btn--primary > * {
  position: relative;
  z-index: 1;
}
.btn--primary svg {
  transition: transform .35s var(--ease-out);
}
.btn--primary:hover {
  background: transparent;
  color: var(--paper-0);
  border-color: var(--violet-soft);
  box-shadow:
    inset 0 1px 0 rgba(168, 155, 209, 0.18),
    0 0 0 1px rgba(168, 155, 209, 0.28),
    0 22px 52px -12px rgba(94, 84, 142, 0.6);
}
.btn--primary:hover::before { opacity: 0; }
.btn--primary:hover svg {
  transform: translateX(3px);
}

.btn--ghost {
  background: transparent;
  color: var(--paper-1);
  border: 0;
  padding: 14px 4px;
  position: relative;
}
.btn--ghost::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 6px;
  height: 1px;
  background: var(--violet-soft);
  opacity: 0.55;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
  transform-origin: left;
}
.btn--ghost:hover::after {
  opacity: 1;
  background: var(--paper-0);
}

.hero__footer {
  position: absolute;
  right: var(--gutter);
  bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--paper-4);
  z-index: 1;
}

/* ============== generic section ============== */
.section {
  padding: 48px 0;
  position: relative;
}
.section__head {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 36px;
}
.section__head--row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 80px;
  align-items: end;
  margin-bottom: 40px;
}
.section__head--row .meta-label { margin-bottom: 22px; }
.section__head--row h2 { margin: 0; max-width: 18ch; }
.section__lede {
  margin: 0;
  color: var(--paper-3);
  font-size: 16px;
  line-height: 1.7;
  max-width: 38ch;
  text-wrap: pretty;
}

/* ============== about ============== */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}
.about h2 {
  max-width: 16ch;
}

/* ============== applications ============== */
.apps__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 64px 56px;
}

.appcard {
  display: block;
  cursor: pointer;
}
.appcard article,
.appcard__link {
  display: flex;
  flex-direction: column;
  gap: 22px;
  color: inherit;
  text-decoration: none;
}
.appcard__link {
  position: relative;
  isolation: isolate;
}
.appcard__link::after {
  content: "→";
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--paper-0);
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(248, 250, 252, 0.12);
  border-radius: 50%;
  font-size: 13px;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.appcard__link:hover::after,
.appcard__link:focus-visible::after {
  opacity: 1;
  transform: translate(0, 0);
}
.appcard--placeholder { cursor: default; }
.appcard--placeholder .appcard__glyph { color: var(--paper-4); opacity: 0.6; }
.appcard--placeholder .appcard__name { color: var(--paper-2); }

.appcard__plate {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  display: grid;
  place-items: center;
  transition: transform .8s var(--ease-out);
}

.appcard__plate[data-tone="violet"] {
  background:
    radial-gradient(80% 70% at 40% 30%, #6e63a0 0%, #3b3566 60%, #1d1a36 100%);
}
.appcard__plate[data-tone="slate"] {
  background:
    radial-gradient(80% 70% at 60% 35%, #2a3753 0%, #16223b 60%, #0a1124 100%);
}
.appcard__plate[data-tone="parchment"] {
  background:
    radial-gradient(80% 70% at 50% 30%, #2a2438 0%, #1a1628 60%, #0d0a1a 100%);
}
.appcard__plate[data-tone="deep"] {
  background:
    radial-gradient(80% 70% at 30% 40%, #14223d 0%, #0b1429 60%, #050a18 100%);
}
.appcard__plate[data-tone="violet-soft"] {
  background:
    radial-gradient(80% 70% at 50% 25%, #4a4373 0%, #2a2548 60%, #14112a 100%);
}
.appcard__plate[data-tone="slate-soft"] {
  background:
    radial-gradient(80% 70% at 50% 40%, #1f2a44 0%, #131c33 60%, #07091a 100%);
}
.appcard__plate[data-tone="navy-gold"] {
  background:
    radial-gradient(80% 70% at 50% 30%, #1c2a5a 0%, #0e1838 55%, #060c20 100%);
}
.appcard__plate[data-tone="navy-gold"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 45% at 50% 50%, rgba(200,169,106,0.22) 0%, transparent 70%);
  pointer-events: none;
}
.appcard__plate[data-tone="navy-gold"] .appcard__glyph {
  color: #d9c290;
  text-shadow: 0 8px 30px rgba(0,0,0,0.45);
}

/* vellum / parchment plate for branded image content */
.appcard__plate[data-tone="vellum"] {
  background:
    radial-gradient(80% 80% at 50% 30%, #f4ecd9 0%, #ece1c5 60%, #d9c8a3 100%);
}
.appcard__plate[data-tone="vellum"] .appcard__frame {
  border-color: rgba(40, 30, 18, 0.18);
}
.appcard__plate[data-tone="vellum"] .appcard__frame::after {
  border-color: rgba(40, 30, 18, 0.08);
}
.appcard__plate[data-tone="vellum"]::after {
  /* override the white grain — use a warmer/darker grain on vellum */
  opacity: 0.22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.22  0 0 0 0 0.18  0 0 0 0 0.12  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* image plate: artwork inside breathes with margin */
.appcard__plate--image {
  display: block;
  padding: 0;
  position: relative;
}
.appcard__art {
  position: absolute;
  inset: 14%;
  width: 72%;
  height: 72%;
  object-fit: contain;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
}

.appcard__glyph {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(80px, 9vw, 132px);
  color: var(--paper-0);
  letter-spacing: -0.01em;
  text-shadow: 0 8px 30px rgba(0,0,0,0.35);
  user-select: none;
}
.appcard__plate[data-tone="parchment"] .appcard__glyph { color: var(--parchment-soft); }
.appcard__plate[data-tone="violet"] .appcard__glyph,
.appcard__plate[data-tone="violet-soft"] .appcard__glyph { color: var(--paper-0); }

/* double-frame gallery plate */
.appcard__frame {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(248, 250, 252, 0.16);
  pointer-events: none;
}
.appcard__frame::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(248, 250, 252, 0.05);
}

/* grain inside plate */
.appcard__plate::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.appcard:hover .appcard__plate {
  transform: translateY(-4px);
}

.appcard__body {
  padding-top: 4px;
}
.appcard__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
}
.appcard__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: 0.005em;
  color: var(--paper-0);
  margin: 0;
}
.appcard__desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--paper-3);
  margin: 0;
  max-width: 34ch;
}
.appcard__where {
  display: block;
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-4);
  transition: color .25s var(--ease-out);
}
.appcard__link:hover .appcard__where {
  color: var(--violet-soft);
}

.status {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-3);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.status::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--paper-4);
}
.status--soon::before { background: var(--violet-soft); box-shadow: 0 0 8px rgba(168,155,209,0.6); }
.status--dev::before  { background: var(--parchment); }
.status--live {
  color: var(--paper-0);
}
.status--live::before {
  background: #5ac28a;
  box-shadow: 0 0 8px rgba(90, 194, 138, 0.7);
  width: 5px;
  height: 5px;
}

/* ============== applications — editorial index ============== */
.apps__list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(168, 155, 209, 0.16);
}
.approw {
  border-bottom: 1px solid rgba(168, 155, 209, 0.10);
  position: relative;
}
.approw__link {
  color: inherit;
  text-decoration: none;
  display: grid;
  align-items: center;
  grid-template-columns: 56px 104px minmax(0, 1fr) auto;
  gap: 40px;
  padding: 32px 8px 32px 4px;
  position: relative;
  transition: background-color .35s var(--ease-out);
}
.approw--upcoming {
  display: grid;
  align-items: center;
  grid-template-columns: 56px 104px minmax(0, 1fr) auto;
  gap: 40px;
  padding: 32px 8px 32px 4px;
  opacity: 0.85;
}
/* Non-link row (multiple store links can't live inside one anchor) */
.approw__row {
  display: grid;
  align-items: center;
  grid-template-columns: 56px 104px minmax(0, 1fr) auto;
  gap: 40px;
  padding: 32px 8px 32px 4px;
}
.approw__link::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--violet-soft);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .55s var(--ease-out);
}
.approw__link:hover::before,
.approw__link:focus-visible::before { transform: scaleX(1); }
.approw__link:hover,
.approw__link:focus-visible {
  background-color: rgba(168, 155, 209, 0.04);
}

.approw__num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: var(--parchment);
  letter-spacing: 0;
  display: inline-block;
  text-align: left;
}

.approw__mark {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(168, 155, 209, 0.12);
  flex-shrink: 0;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 14px 30px -18px rgba(0, 0, 0, 0.6);
}
.approw__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
}

/* Reconcile — official app icon fills the rounded square */
.approw__mark--reconcile {
  background: #02060f;
  border-color: rgba(200, 169, 106, 0.22);
}
.approw__mark--reconcile img {
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: cover;
}

/* OCIA Companion — parchment matching the arch's interior */
.approw__mark--ocia {
  background:
    radial-gradient(85% 95% at 50% 20%, #f4ecd9 0%, #ece1c5 60%, #d9c8a3 100%);
  border-color: rgba(40, 30, 18, 0.18);
}
.approw__mark--ocia img {
  padding: 6%;
}

/* placeholder — empty rounded square */
.approw__mark--blank {
  background: transparent;
  border-style: dashed;
  border-color: rgba(168, 155, 209, 0.14);
  box-shadow: none;
}

/* Upcoming app — dashed plate, muted italic glyph */
.approw__mark--upcoming {
  background:
    radial-gradient(80% 80% at 50% 25%, rgba(122, 111, 176, 0.18) 0%, rgba(15, 23, 42, 0.4) 70%, transparent 100%);
  border-style: dashed;
  border-color: rgba(168, 155, 209, 0.28);
  box-shadow: none;
}
.approw__mark--upcoming .approw__glyph {
  color: var(--violet-soft);
  opacity: 0.7;
  text-shadow: none;
  font-size: 48px;
}
.approw--upcoming .approw__name { color: var(--paper-1); }
.approw--upcoming .approw__desc { color: var(--paper-3); }
.approw__glyph {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 52px;
  line-height: 1;
  color: var(--paper-0);
  letter-spacing: -0.01em;
  text-shadow: 0 6px 22px rgba(0,0,0,0.35);
  position: relative;
  z-index: 1;
}

.approw__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.approw__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.1;
  letter-spacing: 0.002em;
  color: var(--paper-0);
}
.approw__desc {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--paper-3);
  max-width: 56ch;
  text-wrap: pretty;
}

.approw__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  min-width: 200px;
}
.approw__where {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--paper-2);
  transition: color .25s var(--ease-out);
}
.approw__where svg {
  opacity: 0.7;
  transition: opacity .25s var(--ease-out), transform .35s var(--ease-out);
}
.approw__link:hover .approw__where { color: var(--paper-0); }
.approw__link:hover .approw__where svg {
  opacity: 1;
  transform: translate(2px, -2px);
}

/* Official store badges — App Store + Google Play */
.approw__stores {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.store-badge {
  display: inline-flex;
  border-radius: 9px;
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out);
  outline: none;
}
.store-badge img {
  display: block;
  height: 44px;
  width: auto;
  user-select: none;
  -webkit-user-drag: none;
}
.store-badge:hover { opacity: 0.82; transform: translateY(-1px); }
.store-badge:focus-visible {
  box-shadow: 0 0 0 2px var(--ink-0, #0b0f1a), 0 0 0 4px var(--violet-soft);
}

@media (max-width: 820px) {
  .approw__link,
  .approw__row,
  .approw--upcoming {
    grid-template-columns: auto 76px 1fr;
    grid-template-rows: auto auto;
    gap: 14px 20px;
    padding: 32px 0;
  }
  .approw__mark { width: 76px; height: 76px; border-radius: 17px; }
  .approw__glyph { font-size: 40px; }
  .approw__num   { grid-column: 1; grid-row: 1; align-self: start; padding-top: 6px; font-size: 18px; }
  .approw__mark  { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
  .approw__body  { grid-column: 3; grid-row: 1; }
  .approw__meta  {
    grid-column: 3;
    grid-row: 2;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    min-width: 0;
    flex-wrap: wrap;
  }
}

/* ============== approach / values ============== */
.approach__title {
  max-width: 14ch;
  margin: 0 0 44px;
}
.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  border-top: 1px solid rgba(168, 155, 209, 0.18);
  padding-top: 36px;
}
.value {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.value__num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  color: var(--parchment);
}
.value__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 34px;
  letter-spacing: 0;
  color: var(--paper-0);
  margin: 0;
}
.value__body {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--paper-2);
  margin: 0;
  max-width: 38ch;
  text-wrap: pretty;
}

/* ============== contact ============== */
.contact {
  padding: 64px 0 88px;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 60% at 50% 100%, rgba(94,84,142,0.18) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}
.contact__inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  z-index: 1;
}
.contact__lede {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--paper-3);
  max-width: 50ch;
  margin: 0 auto;
  text-wrap: pretty;
}
.contact__mail {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--paper-0);
  font-style: italic;
}
.contact__rule {
  width: 220px;
  max-width: 60vw;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(168,155,209,0.55) 50%, transparent 100%);
  transition: width .5s var(--ease-out);
}
.contact__mail:hover .contact__rule { width: 280px; }

/* ============== footer ============== */
.site-footer {
  padding: 88px 0 56px;
  background: var(--ink-0);
  border-top: 1px solid rgba(168, 155, 209, 0.1);
}
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.brand--footer .brand__logo { width: 208px; height: 27px; color: var(--paper-1); }
.footer__nav ul { display: flex; gap: 32px; flex-wrap: wrap; }
.footer__nav a {
  font-size: 13.5px;
  color: var(--paper-3);
  letter-spacing: 0.02em;
}
.footer__nav a:hover { color: var(--paper-0); }

.footer__hr {
  border: 0;
  height: 1px;
  background: rgba(168, 155, 209, 0.1);
  margin: 56px 0 40px;
}

.footer__legal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 56px;
  align-items: start;
}
.footer__copy {
  font-size: 12.5px;
  color: var(--paper-4);
  margin: 0;
  letter-spacing: 0.02em;
}
.footer__legal-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.footer__legal-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__legal-label {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-4);
  margin-bottom: 4px;
}
.footer__legal-group a {
  font-size: 13px;
  color: var(--paper-2);
  text-decoration: none;
  width: fit-content;
}
.footer__legal-group a:hover { color: var(--violet-soft); }

/* ============== tweak variants ============== */

/* hero treatments */
body[data-hero-treatment="mesh"] .hero__sky {
  background:
    radial-gradient(40% 30% at 22% 20%, rgba(122,111,176,0.55) 0%, transparent 70%),
    radial-gradient(35% 28% at 78% 30%, rgba(200,169,106,0.18) 0%, transparent 75%),
    radial-gradient(50% 40% at 50% 90%, rgba(94,84,142,0.5) 0%, transparent 70%),
    linear-gradient(180deg, #06091a 0%, #0a0f24 50%, #060a18 100%);
}
body[data-hero-treatment="mesh"] .hero__veil { display: none; }
body[data-hero-treatment="mesh"] .hero__arch { opacity: 0.35; }

body[data-hero-treatment="bare"] .hero__sky {
  background: linear-gradient(180deg, #050810 0%, #0a0f1d 60%, #070a16 100%);
}
body[data-hero-treatment="bare"] .hero__veil,
body[data-hero-treatment="bare"] .hero__light,
body[data-hero-treatment="bare"] .hero__arch { display: none; }

/* italic toggle */
body[data-italic="off"] .display em,
body[data-italic="off"] .contact__mail,
body[data-italic="off"] .appcard__glyph,
body[data-italic="off"] .value__num,
body[data-italic="off"] .meta-num {
  font-style: normal;
}
body[data-italic="off"] .display em { color: var(--violet-soft); }

/* app layout — stack variant */
body[data-app-layout="stack"] .apps__grid {
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid rgba(168, 155, 209, 0.18);
}
body[data-app-layout="stack"] .appcard {
  border-bottom: 1px solid rgba(168, 155, 209, 0.12);
  padding: 40px 0;
}
body[data-app-layout="stack"] .appcard article,
body[data-app-layout="stack"] .appcard__link {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
  align-items: center;
}
body[data-app-layout="stack"] .appcard__plate {
  aspect-ratio: 1 / 1;
  width: 200px;
}
body[data-app-layout="stack"] .appcard__row {
  margin-bottom: 14px;
}
body[data-app-layout="stack"] .appcard__name { font-size: 28px; }
body[data-app-layout="stack"] .appcard__desc { font-size: 16px; max-width: 50ch; }

@media (max-width: 720px) {
  body[data-app-layout="stack"] .appcard article,
  body[data-app-layout="stack"] .appcard__link {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  body[data-app-layout="stack"] .appcard__plate { width: 100%; aspect-ratio: 16/10; }
}

/* ============== document pages (privacy / support) ============== */
.doc {
  padding: 0;
  position: relative;
}
.doc__atmos {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 620px;
  pointer-events: none;
  background:
    radial-gradient(70% 80% at 50% -20%, rgba(122, 111, 176, 0.22) 0%, rgba(122, 111, 176, 0.06) 50%, transparent 80%);
  z-index: 0;
}

.doc__article {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding-top: 160px;
  padding-bottom: 120px;
}

.doc__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-3);
  margin-bottom: 56px;
  transition: color .25s var(--ease-out);
}
.doc__back:hover { color: var(--paper-0); }
.doc__back::before {
  content: "←";
  font-size: 14px;
  letter-spacing: 0;
}

.doc__head {
  margin-bottom: 56px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(168, 155, 209, 0.18);
}
.doc__appline {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 28px;
}
.doc__icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(168, 155, 209, 0.18);
  flex-shrink: 0;
}
.doc__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.doc__icon--vellum {
  background:
    radial-gradient(80% 80% at 50% 30%, #f4ecd9 0%, #ece1c5 60%, #d9c8a3 100%);
  border-color: rgba(40, 30, 18, 0.18);
}
.doc__icon--vellum img {
  object-fit: contain;
  padding: 6%;
}
.doc__appline-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.doc__appname {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-3);
}
.doc__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.005em;
  line-height: 1.1;
  color: var(--paper-0);
  margin: 0;
}
.doc__meta {
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--paper-3);
}
.doc__meta span + span::before {
  content: " · ";
  margin: 0 6px;
  color: var(--paper-4);
}

.doc__lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.55;
  color: var(--paper-1);
  margin: 0 0 56px;
  text-wrap: pretty;
}

.doc__section {
  margin-bottom: 44px;
}
.doc__section h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: 0;
  color: var(--paper-0);
  margin: 0 0 16px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.doc__section h2 .doc__num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  color: var(--parchment);
  min-width: 1.6em;
}
.doc__section p,
.doc__section li {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--paper-2);
  margin: 0 0 14px;
  max-width: 64ch;
  text-wrap: pretty;
}
.doc__section p:last-child { margin-bottom: 0; }
.doc__section ul {
  padding-left: 24px;
  margin: 0 0 14px;
}
.doc__section ul li {
  list-style: disc;
  margin-bottom: 8px;
}
.doc__section a {
  color: var(--violet-soft);
  border-bottom: 1px solid rgba(168, 155, 209, 0.35);
  padding-bottom: 1px;
  transition: color .25s var(--ease-out), border-color .25s var(--ease-out);
}
.doc__section a:hover {
  color: var(--paper-0);
  border-bottom-color: var(--paper-0);
}

.doc__faq {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 8px;
}
.doc__faq-item {
  border-left: 1px solid rgba(168, 155, 209, 0.25);
  padding-left: 22px;
}
.doc__faq-q {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: 18px;
  color: var(--paper-0);
  margin: 0 0 8px;
}
.doc__faq-a {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--paper-2);
  margin: 0;
  max-width: 60ch;
}

.doc__contact-card {
  margin-top: 56px;
  padding: 36px 40px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(168, 155, 209, 0.14);
  border-radius: 4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.doc__contact-card .meta-label {
  margin-bottom: 16px;
}
.doc__contact-card h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  color: var(--paper-0);
  margin: 0 0 8px;
}
.doc__contact-card p {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--paper-3);
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .doc__article { padding-top: 120px; padding-bottom: 80px; }
  .doc__appline { flex-wrap: wrap; gap: 16px; }
  .doc__icon { width: 56px; height: 56px; }
  .doc__lede { font-size: 19px; }
  .doc__contact-card { padding: 28px 24px; }
}

/* ============== reveal animation ============== */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal][data-delay="1"].is-in { transition-delay: 80ms; }
[data-reveal][data-delay="2"].is-in { transition-delay: 160ms; }
[data-reveal][data-delay="3"].is-in { transition-delay: 240ms; }
[data-reveal][data-delay="4"].is-in { transition-delay: 320ms; }
[data-reveal][data-delay="5"].is-in { transition-delay: 400ms; }

/* ============== premium motion ============== */

/* hero title word stagger */
.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em);
  filter: blur(6px);
  transition:
    opacity 1s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 1.1s cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 1s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform, filter;
}
.is-loaded .hero-word {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* live status pip — slow ambient pulse */
@keyframes pip-breathe {
  0%, 100% { transform: scale(1);   box-shadow: 0 0 8px rgba(90, 194, 138, 0.6); }
  50%      { transform: scale(1.35); box-shadow: 0 0 14px rgba(90, 194, 138, 0.9); }
}
.status--live::before {
  animation: pip-breathe 2.6s ease-in-out infinite;
}

/* app row mark — lift + soft outer glow on row hover */
.approw__mark {
  transition:
    transform .5s var(--ease-out),
    box-shadow .5s var(--ease-out),
    border-color .5s var(--ease-out);
}
.approw__link:hover .approw__mark,
.approw__link:focus-visible .approw__mark {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 22px 40px -22px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(168, 155, 209, 0.18),
    0 0 28px -6px rgba(168, 155, 209, 0.28);
  border-color: rgba(168, 155, 209, 0.32);
}

/* reading-progress hairline at the very top */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(94, 84, 142, 0) 0%, rgba(168, 155, 209, 0.9) 30%, rgba(200, 169, 106, 0.9) 70%, rgba(94, 84, 142, 0) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 100;
  pointer-events: none;
  will-change: transform;
}

/* stale magnetic-CTA transition removed — .btn--primary defines its own */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__light { transform: none !important; }
  .hero-word { opacity: 1; transform: none; filter: none; }
  .reading-progress { display: none; }
}

/* ============== responsive ============== */
@media (max-width: 1040px) {
  .apps__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 44px; }
  .values     { grid-template-columns: 1fr; gap: 44px; }
  .footer__legal-list { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .section__head--row { grid-template-columns: 1fr; gap: 32px; }
  .about__grid { grid-template-columns: 1fr; gap: 44px; }
  .footer__legal { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .section { padding: 40px 0; }
  .hero { padding: 132px 0 80px; min-height: 88vh; }
  .apps__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__footer { display: none; }
  .footer__top { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer__nav ul { gap: 22px; }
  .brand__logo { width: 184px; height: 24px; }
  .brand--footer .brand__logo { width: 172px; height: 22px; }
}
