/* Buttons */
.btn{
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  padding: 12px 22px;
  border: 1px solid transparent;
  transition: color var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease), background var(--duration-fast) var(--ease);
}
.btn--primary{ color: var(--turquoise); border-color: var(--turquoise); }
.btn--primary:hover{ color: var(--ink); border-color: var(--micro); background: var(--micro); }
.btn--secondary{ color: var(--text); border-color: var(--line-dark); }
.btn--secondary:hover{ border-color: var(--turquoise); color: var(--turquoise); }
.btn--secondary-onlight{ color: var(--text); border-color: var(--line); }
.btn--secondary-onlight:hover{ border-color: var(--turquoise); color: var(--turquoise); }
.btn--block{ width: 100%; min-height: 44px; }
.btn-row{ display: flex; gap: 16px; flex-wrap: wrap; }

/* Scroll reveal — classes are added by assets/js/reveal.js, never hardcoded
   in markup, so content stays fully visible with JS disabled or on reduced
   motion (the script skips entirely in both cases). */
.reveal{
  opacity: 0;
  transform: translateY(var(--reveal-distance));
  transition: opacity var(--duration-slow) var(--ease), transform var(--duration-slow) var(--ease);
}
.reveal.is-visible{ opacity: 1; transform: none; }

/* Image entrance — short slide-in from the right + fade, for images that
   don't already have their own entrance (the hero images have their own,
   coordinated one in layout.css — this is for everything else, e.g. the
   homepage Insights preview thumbnails). Same JS/observer as .reveal, just a
   different resting transform, so it stays a single mechanism. */
.reveal-image{
  opacity: 0;
  transform: translateX(var(--reveal-distance-x));
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.reveal-image.is-visible{ opacity: 1; transform: none; }

/* Arrow glyph — the trailing "→" on buttons and card links, isolated into
   its own inline element (by assets/js/button-arrow.js) purely so it can
   shift on hover/focus without moving the rest of the label. Falls back to
   plain static text with no JS. */
.arrow-glyph{ display: inline-block; transition: transform var(--duration-hover) var(--ease); }
.btn:hover .arrow-glyph, .btn:focus-visible .arrow-glyph,
.card-link:hover .arrow-glyph, .card-link:focus-visible .arrow-glyph{
  transform: translateX(3px);
}

/* Accent word — highlight a single meaningful word inside a heading.
   Use sparingly: one per headline, never a whole sentence. Default state is
   always the final turquoise color, so it looks correct with no JS or with
   reduced motion; assets/js/text-reveal.js opts a heading into a
   white-to-accent transition only once it takes over animating it. */
.accent-word{ color: var(--turquoise); }
.split-heading .accent-word{ color: var(--text); transition: color var(--duration-slow) var(--ease); }
.split-heading.is-visible .accent-word{ color: var(--turquoise); }

/* Masked line reveal — built by assets/js/text-reveal.js only when motion is
   allowed; a heading never carries this markup with JS disabled, so it just
   renders as plain, fully visible text in that case. */
.split-line{ display: block; overflow: hidden; }
.split-unit, .split-line .accent-word{ display: inline-block; }
.split-line__inner{
  display: inline-block;
  transform: translateY(115%);
  transition: transform var(--duration-slow) var(--ease);
  will-change: transform;
}
.split-heading.is-visible .split-line__inner{ transform: none; }

/* Back to top — fixed, appears once the page has scrolled a bit. Fades via
   opacity/transform only (never display/hidden) so it can transition, and
   sits above page content but below the sticky nav's own stacking. */
.back-to-top{
  position: fixed;
  right: 24px; bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line-dark);
  color: var(--ink-soft);
  cursor: pointer;
  z-index: 40;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity var(--duration-fast) var(--ease), transform var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease), color var(--duration-fast) var(--ease);
}
.back-to-top.is-visible{ opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover{ border-color: var(--turquoise); color: var(--turquoise); }
.back-to-top svg{ width: 18px; height: 18px; }
@media (max-width: 640px){
  .back-to-top{ right: 16px; bottom: 16px; width: 42px; height: 42px; }
}

/* Language switch */
.lang-switch{
  display: flex; align-items: center; gap: 2px;
  border: 1px solid var(--line-dark); border-radius: 999px; padding: 3px; flex: none;
}
.lang-btn{
  display: flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  padding: 6px 10px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-soft);
  line-height: 1;
}
.lang-btn span{ font-size: 11px; letter-spacing: 0.02em; }
.lang-btn[aria-pressed="true"]{ background: var(--surface); color: var(--text); }
.lang-btn:hover{ color: var(--text); }
.lang-flag{ display: block; flex: none; border-radius: 2px; }

/* Eyebrow / section kicker */
.eyebrow{
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
}
.eyebrow--onlight{ color: var(--paper-soft); }
.eyebrow--line::after{ content: ""; flex: none; width: 64px; height: 1px; background: var(--line-dark); }
.dot{ width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex: none; background: var(--turquoise); }
.dot--turquoise{ background: var(--turquoise); }
.dot--violet{ background: var(--violet); }

/* Chips / tags */
.chip{
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  border: 1px solid color-mix(in srgb, var(--text) 22%, transparent);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  color: var(--ink-soft);
  white-space: nowrap;
  flex: none;
}

/* Status pills — 4-state system (dim bg + tint text on dark surfaces) */
.pill{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  display: inline-block;
}
.pill--in-development{ background: var(--violet-dim); color: var(--violet-tint); }
.pill--private-beta{ background: var(--turquoise-dim); color: var(--turquoise-tint); }
.pill--early-access{ background: transparent; color: var(--ink-soft); border: 1px solid var(--line); }
.pill--available{ background: var(--turquoise); color: var(--ink); }

/* Grid systems — plain gapped grid; each child is its own surface card */
.grid-lines{ display: grid; gap: 24px; }
.grid-lines--3{ grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-lines--2{ grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-lines--4{ grid-template-columns: repeat(4, minmax(0,1fr)); }

.card{
  background: color-mix(in srgb, var(--surface) var(--veil-card), transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
}
/* Hover lift is reserved for cards that actually lead somewhere (contain a
   real link/CTA) — .pillar-card, .path-card, .article-card and .featured-card
   all qualify. Plain informational .card grids (assessment areas, learning
   areas, "how we think", etc.) stay static: nothing to click, so no
   button-like affordance. */
.pillar-card, .path-card, .article-card, .featured-card, .product-card{
  transition: transform var(--duration-hover) var(--ease), border-color var(--duration-hover) var(--ease), box-shadow var(--duration-hover) var(--ease);
}
.pillar-card:hover, .path-card:hover, .article-card:hover, .featured-card:hover, .product-card:hover{
  transform: translateY(-4px);
  border-color: var(--turquoise);
  box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--turquoise) 40%, transparent);
}
.card h3{ font-size: 19px; }
.card p{ font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }
.icon{
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--ink);
}
.icon--turquoise{ background: var(--turquoise-tint); }
.icon--violet{ background: var(--violet-tint); }

/* Numbered question / reason row */
.numbered-item{
  background: color-mix(in srgb, var(--surface) var(--veil-card), transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.numbered-item__num{ font-family: var(--font-mono); font-size: 13px; color: var(--turquoise); }
.numbered-item__num--turquoise{ color: var(--turquoise); }
.numbered-item__num--violet{ color: var(--violet); }
.numbered-item h3{ font-size: 17px; }
.numbered-item p{ font-size: 15px; line-height: 1.5; color: var(--ink-soft); }

/* Product card */
.product-card{ justify-content: space-between; min-height: 320px; }
.product-card__top{ display: flex; justify-content: space-between; align-items: flex-start; }
.product-card h3{ font-size: 24px; }
.product-card p{ font-size: 15px; }
.product-card__focus{ border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.product-card__focus-label{ font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.product-card__focus-text{ font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.product-card__link{ font-family: var(--font-mono); font-size: 13px; border-top: 1px solid var(--line); padding-top: 16px; display: block; color: var(--text); }
.product-card__link:hover{ color: var(--turquoise); }

/* Article card */
.article-card{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.imgph{
  aspect-ratio: 16/10;
  background: color-mix(in srgb, var(--turquoise-dim) 45%, transparent);
  border-bottom: 1px dashed var(--line-dark);
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 16px;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.article-card > .eyebrow, .article-card > h3, .article-card > span{ padding-left: 22px; padding-right: 22px; }
.article-card > .eyebrow:first-of-type{ margin-top: 20px; }
.article-card > span:last-child{ padding-bottom: 22px; }
.article-card__title{ font-size: 18px; line-height: 1.4; }

/* Editorial hero image — real photograph/artwork with a scrim so any text
   overlapping it (caption, credit) stays legible. Never place body copy on
   the bright side of the image without this scrim. */
.hero-image{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.hero-image img{
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-image::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, var(--ink) 0%, color-mix(in srgb, var(--ink) 55%, transparent) 30%, transparent 62%);
  pointer-events: none;
}
.hero-image__credit{
  position: absolute; left: 16px; bottom: 14px; z-index: 1;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em;
  color: var(--paper-soft); opacity: 0.75;
}

/* Screenshot frame — real product UI shown as evidence, not a gallery photo.
   A minimal browser-chrome bar keeps it legible on any section background.
   Shared across pages (home teaser, /minos landing) rather than redefined
   per page. */
.screenshot-frame{
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 30px 70px -32px rgba(0,0,0,0.55);
}
.screenshot-frame__bar{
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
}
.screenshot-frame__dot{ width: 9px; height: 9px; border-radius: 50%; background: var(--line-dark); display: block; }
.screenshot-frame img{ width: 100%; height: auto; display: block; }
