/* unignosis — site.css
   Components (header, footer, buttons, cards), section styles, animations. */

/* =========================================================================
   1. Top tagline strip — "Built by academics, for academics."
   ========================================================================= */
.tagline-strip {
  background: var(--ink);
  color: var(--paper);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
}
.tagline-strip__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--s-3);
  padding: 8px var(--gutter);
  text-align: center;
  flex-wrap: wrap;
}
.tagline-strip__dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--orange);
  display: inline-block;
}
.tagline-strip strong { color: var(--paper); font-weight: 600; }
.tagline-strip span { color: rgba(255, 255, 255, 0.7); }

/* =========================================================================
   2. Header / nav
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: var(--s-6);
}
.nav__brand {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em;
  color: var(--ink);
}
.nav__brand img, .nav__brand svg { height: 30px; width: auto; }
.nav__brand-text-orange { color: var(--orange); }

.nav__links {
  display: none;
  align-items: center; gap: var(--s-8);
  list-style: none;
}
.nav__links a {
  position: relative;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-2);
  padding: 8px 0;
  transition: color var(--t-fast) var(--ease-out);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--orange); border-radius: 2px;
}

.nav__cta { display: none; }
@media (min-width: 820px) {
  .nav__links, .nav__cta { display: flex; }
}

/* Mobile menu toggle */
.nav__toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--r-2);
  border: 1px solid var(--line);
  background: var(--paper);
}
.nav__toggle:hover { border-color: var(--ink-mute); }
@media (min-width: 820px) { .nav__toggle { display: none; } }
.nav__toggle svg { width: 20px; height: 20px; }

/* Mobile drawer */
.nav__drawer {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.nav__drawer.is-open { display: block; }
.nav__drawer ul {
  list-style: none;
  padding: var(--s-4) var(--gutter);
  display: flex; flex-direction: column; gap: var(--s-1);
}
.nav__drawer a {
  display: block;
  padding: 12px 0;
  font-weight: 500;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.nav__drawer a:last-child { border-bottom: 0; }
.nav__drawer .btn { margin-top: var(--s-3); }

/* =========================================================================
   3. Buttons
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s-2);
  padding: 12px 22px;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease-out),
              box-shadow var(--t-fast) var(--ease-out),
              background var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out),
              color var(--t-fast) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }

.btn-primary {
  background: var(--orange);
  color: var(--paper);
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover {
  background: var(--orange-2);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(245, 130, 32, 0.32);
}

.btn-ghost {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-dark {
  background: var(--ink);
  color: var(--paper);
}
.btn-dark:hover { background: var(--ink-2); transform: translateY(-1px); }

.btn-lg { padding: 16px 28px; font-size: var(--fs-md); }

/* =========================================================================
   4. Cards
   ========================================================================= */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: var(--s-6);
  transition: transform var(--t-med) var(--ease-out),
              box-shadow var(--t-med) var(--ease-out),
              border-color var(--t-med) var(--ease-out);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--ink-mute);
}
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: var(--orange-pale);
  color: var(--orange-2);
  border-radius: var(--r-2);
  margin-bottom: var(--s-4);
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--s-2);
  letter-spacing: -0.01em;
}
.card p { font-size: var(--fs-sm); color: var(--ink-3); }

/* =========================================================================
   5. Hero
   ========================================================================= */
.hero {
  position: relative;
  padding-block: clamp(64px, 8vw, 120px) clamp(48px, 6vw, 96px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: -10% -10% auto -10%; height: 70%;
  background:
    radial-gradient(60% 60% at 80% 0%, rgba(245, 130, 32, 0.08) 0%, transparent 60%),
    radial-gradient(50% 50% at 10% 30%, rgba(13, 43, 74, 0.05) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero__layout {
  display: grid;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
@media (min-width: 1000px) {
  .hero__layout { grid-template-columns: 1.05fr 0.95fr; }
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--ink-2);
}
.hero__eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(245, 130, 32, 0.2);
  animation: pulse 2.4s infinite var(--ease-in-out);
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(245, 130, 32, 0.2); }
  50%      { box-shadow: 0 0 0 8px rgba(245, 130, 32, 0); }
}

.hero h1 {
  font-size: var(--fs-4xl);
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin-block: var(--s-5) var(--s-5);
  color: var(--ink);
}
.hero h1 .accent { color: var(--orange); }

/* Brand-mark H1: "unignosis" + "by academics for academics".
   Uses Fraunces (display serif) per design direction. */
.brand-h1,
.brand-h1 .brand-mark,
.brand-h1 .brand-tag {
  font-family: var(--font-disp);
}
.brand-h1 {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-block: var(--s-5) var(--s-5);
}
.brand-h1 .brand-mark {
  display: block;
  font-size: var(--fs-4xl);
  font-weight: 700;
  letter-spacing: -0.035em;
}
.brand-h1 .brand-uni    { color: var(--ink); }
.brand-h1 .brand-gnosis { color: var(--orange); }
.brand-h1 .brand-tag {
  display: block;
  margin-top: var(--s-3);
  color: var(--ink);
  font-weight: 600;
  font-size: var(--fs-xl);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.hero__lede {
  font-size: var(--fs-lg);
  color: var(--ink-3);
  max-width: 38ch;
  line-height: 1.55;
}
.hero__ctas {
  display: flex; flex-wrap: wrap; gap: var(--s-3);
  margin-top: var(--s-8);
}
.hero__proof {
  display: flex; flex-wrap: wrap;
  gap: var(--s-6) var(--s-8);
  margin-top: var(--s-10);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
}
.hero__proof div { font-size: var(--fs-xs); color: var(--ink-3); }
.hero__proof strong { display: block; color: var(--ink); font-size: var(--fs-xl); font-weight: 700; letter-spacing: -0.02em; }

/* =========================================================================
   6. Terminal mock (hero right side)
   ========================================================================= */
.terminal {
  background: var(--ink);
  color: #E8E9EE;
  border-radius: var(--r-4);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13px;
  border: 1px solid #25272F;
}
.terminal__bar {
  display: flex; align-items: center; gap: var(--s-2);
  padding: 10px 14px;
  background: #15161B;
  border-bottom: 1px solid #25272F;
}
.terminal__dots { display: inline-flex; gap: 6px; }
.terminal__dots span {
  width: 11px; height: 11px; border-radius: 50%;
  background: #3A3D45;
}
.terminal__dots span:nth-child(1) { background: #FF5F57; }
.terminal__dots span:nth-child(2) { background: #FEBC2E; }
.terminal__dots span:nth-child(3) { background: #28C840; }
.terminal__title {
  flex: 1; text-align: center;
  font-size: 11px; color: #767982;
  letter-spacing: 0.02em;
}
.terminal__tabs {
  display: flex; gap: 1px; background: #15161B;
  border-bottom: 1px solid #25272F;
  padding: 0 14px;
  overflow-x: auto;
}
.terminal__tab {
  padding: 10px 14px;
  font-size: 11px;
  color: #767982;
  border-bottom: 2px solid transparent;
  cursor: default;
  white-space: nowrap;
  transition: color var(--t-med) var(--ease-out), border-color var(--t-med) var(--ease-out);
}
.terminal__tab.is-active {
  color: var(--paper);
  border-bottom-color: var(--orange);
}
.terminal__body {
  padding: 18px 18px 22px;
  min-height: 240px;
  font-feature-settings: "ss02";
  line-height: 1.55;
}
.terminal__line { display: block; white-space: pre; }
.terminal__prompt { color: var(--orange); }
.terminal__path   { color: #6EC2FF; }
.terminal__comment{ color: #767982; }
.terminal__str    { color: #A8E08B; }
.terminal__kw     { color: #FFB672; }
.terminal__cursor {
  display: inline-block; width: 8px; height: 16px; vertical-align: -3px;
  background: var(--orange);
  margin-left: 2px;
  animation: blink 1.1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* =========================================================================
   7. Section header
   ========================================================================= */
.section-head {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head .eyebrow { display: inline-block; margin-bottom: var(--s-3); }
.section-head h2 {
  font-size: var(--fs-3xl);
  letter-spacing: -0.025em;
  margin-bottom: var(--s-3);
}
.section-head p {
  font-size: var(--fs-lg);
  color: var(--ink-3);
}

/* =========================================================================
   8. Differentiators (3-up)
   ========================================================================= */
.diffs {
  display: grid; gap: var(--s-4);
  grid-template-columns: 1fr;
}
@media (min-width: 800px) { .diffs { grid-template-columns: repeat(3, 1fr); } }
.diff {
  padding: var(--s-6);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
}
.diff__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: var(--ink); color: var(--paper);
  border-radius: 50%;
  font-family: var(--font-disp);
  font-size: 14px; font-weight: 600;
  margin-bottom: var(--s-4);
}
.diff h3 { font-size: var(--fs-lg); margin-bottom: var(--s-2); }
.diff p { font-size: var(--fs-sm); color: var(--ink-3); }
.diff--highlight { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.diff--highlight h3, .diff--highlight p { color: var(--paper); }
.diff--highlight p { color: rgba(255,255,255,0.75); }
.diff--highlight .diff__num { background: var(--orange); color: var(--paper); }

/* =========================================================================
   9. Domain pills (marquee-style strip)
   ========================================================================= */
.domains {
  display: flex; flex-wrap: wrap; gap: var(--s-2);
  justify-content: center;
}
.domain-pill {
  padding: 8px 16px;
  font-size: var(--fs-sm);
  font-weight: 500;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--ink-2);
  transition: all var(--t-fast) var(--ease-out);
}
.domain-pill:hover {
  border-color: var(--orange);
  color: var(--orange-2);
  background: var(--orange-pale);
}

/* =========================================================================
   10. How it works
   ========================================================================= */
.steps {
  display: grid; gap: var(--s-6);
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  position: relative;
  padding: var(--s-6);
  background: var(--paper-2);
  border-radius: var(--r-3);
  border: 1px solid var(--line);
}
.step__n {
  font-family: var(--font-disp);
  font-size: 2rem;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: var(--s-2);
  line-height: 1;
}
.step h3 { font-size: var(--fs-lg); margin-bottom: var(--s-2); }
.step p { font-size: var(--fs-sm); color: var(--ink-3); }

/* =========================================================================
   11. University banner (institutional credibility)
   ========================================================================= */
.uni-banner {
  background: var(--navy);
  color: var(--paper);
  border-radius: var(--r-4);
  padding: clamp(40px, 5vw, 64px);
  display: grid; gap: var(--s-8);
}
@media (min-width: 900px) { .uni-banner { grid-template-columns: 1.4fr 1fr; align-items: center; } }
.uni-banner h2 { font-size: var(--fs-2xl); color: var(--paper); margin-bottom: var(--s-3); }
.uni-banner p  { color: rgba(255,255,255,0.78); font-size: var(--fs-md); }
.uni-banner .crest {
  font-family: var(--font-disp); font-size: var(--fs-lg);
  color: var(--paper); display: block;
  border-left: 3px solid var(--orange);
  padding-left: var(--s-4);
}

/* =========================================================================
   12. CTA banner (closing CTA on every page)
   ========================================================================= */
.cta-banner {
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-banner__inner {
  text-align: center;
  max-width: 720px; margin-inline: auto;
}
.cta-banner h2 {
  font-family: var(--font-disp);
  font-weight: 600;
  font-size: var(--fs-3xl);
  letter-spacing: -0.025em;
  margin-bottom: var(--s-4);
}
.cta-banner p {
  font-size: var(--fs-lg);
  color: var(--ink-3);
  margin-bottom: var(--s-8);
}

/* =========================================================================
   13. About — team
   ========================================================================= */
.team {
  display: grid; gap: var(--s-6);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .team { grid-template-columns: repeat(4, 1fr); } }
.team-card {
  text-align: center;
  padding: var(--s-6);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  transition: all var(--t-med) var(--ease-out);
}
.team-card:hover {
  border-color: var(--ink-mute);
  box-shadow: var(--shadow-2);
}
.team-card__avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-2) 100%);
  color: var(--paper);
  font-family: var(--font-disp);
  font-weight: 600;
  font-size: 1.5rem;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--s-4);
  letter-spacing: 0.02em;
}
.team-card h3 { font-size: var(--fs-md); margin-bottom: 2px; }
.team-card .role {
  display: block;
  font-size: var(--fs-xs);
  color: var(--orange-2);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--s-3);
}
.team-card p { font-size: var(--fs-sm); color: var(--ink-3); }

/* Affiliation block (about) */
.affiliation {
  display: grid; gap: var(--s-4);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 800px) { .affiliation { grid-template-columns: repeat(4, 1fr); } }
.affiliation__item {
  padding: var(--s-5);
  background: var(--paper-2);
  border-radius: var(--r-3);
  border: 1px solid var(--line);
}
.affiliation__item h4 { font-size: var(--fs-md); margin-bottom: var(--s-1); }
.affiliation__item p  { font-size: var(--fs-sm); color: var(--ink-3); }

/* =========================================================================
   14. Services — domain detail cards
   ========================================================================= */
.service {
  display: grid; gap: var(--s-8);
  padding: clamp(28px, 4vw, 48px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  transition: all var(--t-med) var(--ease-out);
}
@media (min-width: 800px) {
  .service { grid-template-columns: 1fr 1.2fr; align-items: center; }
  .service:nth-child(even) > .service__media { order: 2; }
}
.service:hover { box-shadow: var(--shadow-2); border-color: var(--ink-mute); }
.service__media {
  background: var(--paper-3);
  border-radius: var(--r-3);
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-3);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.service__icon {
  width: 56px; height: 56px;
  background: var(--orange);
  color: var(--paper);
  border-radius: var(--r-3);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--s-4);
}
.service__icon svg { width: 28px; height: 28px; }
.service h3 {
  font-size: var(--fs-2xl);
  letter-spacing: -0.02em;
  margin-bottom: var(--s-3);
}
.service p { font-size: var(--fs-md); color: var(--ink-3); margin-bottom: var(--s-4); }
.service ul {
  list-style: none;
  display: grid; gap: var(--s-2);
  font-size: var(--fs-sm);
}
.service ul li {
  display: flex; align-items: flex-start; gap: var(--s-2);
  color: var(--ink-2);
}
.service ul li::before {
  content: ""; flex: none;
  width: 6px; height: 6px; margin-top: 9px;
  background: var(--orange); border-radius: 50%;
}

/* =========================================================================
   15. FAQ accordion (also seeds FAQPage schema)
   ========================================================================= */
.faq {
  display: grid; gap: var(--s-2);
  max-width: 820px; margin-inline: auto;
}
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: var(--s-5) var(--s-6);
  transition: border-color var(--t-fast) var(--ease-out);
}
.faq details[open] { border-color: var(--ink-mute); box-shadow: var(--shadow-1); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: var(--fs-md);
  color: var(--ink);
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-3);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-disp);
  font-size: 1.5rem;
  color: var(--orange);
  transition: transform var(--t-med) var(--ease-out);
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div {
  padding-top: var(--s-3);
  font-size: var(--fs-sm);
  color: var(--ink-3);
  line-height: 1.65;
}

/* =========================================================================
   16. Contact page
   ========================================================================= */
.contact-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-4);
  padding: clamp(40px, 5vw, 72px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(50% 50% at 80% 100%, rgba(245, 130, 32, 0.18) 0%, transparent 60%),
    radial-gradient(40% 40% at 10% 0%, rgba(245, 130, 32, 0.1) 0%, transparent 60%);
  pointer-events: none;
}
.contact-card > * { position: relative; }
.contact-card h1 {
  font-size: var(--fs-3xl);
  color: var(--paper);
  margin-bottom: var(--s-4);
  letter-spacing: -0.025em;
}
.contact-card p {
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--fs-lg);
  max-width: 540px; margin-inline: auto;
  margin-bottom: var(--s-8);
}
.contact-card .btn-primary { font-size: var(--fs-md); padding: 18px 32px; }
.contact-meta {
  display: grid; gap: var(--s-6);
  margin-top: clamp(32px, 4vw, 56px);
}
@media (min-width: 700px) { .contact-meta { grid-template-columns: repeat(3, 1fr); } }
.contact-meta__item {
  text-align: center; padding: var(--s-5);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-3);
}
.contact-meta__label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange-2);
  font-weight: 600;
  margin-bottom: var(--s-2);
}
.contact-meta__value {
  font-size: var(--fs-md); color: var(--ink); font-weight: 500;
}

/* =========================================================================
   17. Privacy / prose page
   ========================================================================= */
.prose {
  max-width: 720px;
  margin-inline: auto;
}
.prose h1 {
  font-family: var(--font-disp);
  font-size: var(--fs-3xl);
  letter-spacing: -0.02em;
  margin-bottom: var(--s-3);
}
.prose .meta {
  font-size: var(--fs-sm);
  color: var(--ink-3);
  margin-bottom: var(--s-12);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--line);
}
.prose h2 {
  font-size: var(--fs-xl);
  margin-top: var(--s-12);
  margin-bottom: var(--s-3);
  letter-spacing: -0.015em;
}
.prose p, .prose li {
  font-size: var(--fs-md);
  color: var(--ink-2);
  line-height: 1.7;
}
.prose ul, .prose ol {
  padding-left: var(--s-5);
  margin-block: var(--s-3);
}
.prose ul li, .prose ol li { margin-bottom: var(--s-2); }
.prose a { color: var(--orange-2); text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================================
   18. Footer
   ========================================================================= */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--fs-sm);
  padding: clamp(56px, 6vw, 88px) 0 var(--s-8);
}
.site-footer__brand-strip {
  background: var(--orange);
  color: var(--paper);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px var(--gutter);
  text-align: center;
}
.site-footer__top {
  display: grid;
  gap: clamp(40px, 5vw, 64px);
  grid-template-columns: 1fr;
  padding-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
@media (min-width: 800px) {
  .site-footer__top { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}
.footer-brand img, .footer-brand svg { height: 32px; margin-bottom: var(--s-4); filter: brightness(0) invert(1); }
.footer-brand p { color: rgba(255, 255, 255, 0.72); font-size: var(--fs-sm); max-width: 36ch; margin-bottom: var(--s-4); }
.footer-brand .footer-tagline { color: var(--orange); font-family: var(--font-disp); font-size: var(--fs-md); }

.footer-col h4 {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--paper);
  margin-bottom: var(--s-4);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--s-2); }
.footer-col a {
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--fs-sm);
  transition: color var(--t-fast) var(--ease-out);
}
.footer-col a:hover { color: var(--paper); }

.site-footer__bottom {
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center;
  gap: var(--s-4);
  padding-top: var(--s-6);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.56);
}
.site-footer__bottom a { color: rgba(255, 255, 255, 0.72); }
.site-footer__bottom a:hover { color: var(--paper); }
.site-footer__bottom .built-by { color: var(--orange); font-family: var(--font-disp); font-size: var(--fs-sm); }

/* =========================================================================
   19. Scroll-reveal animations (controlled by site.js)
   ========================================================================= */
:root {
  --reveal-ease: cubic-bezier(0.16, 1, 0.3, 1);    /* Apple-style out-quint */
  --reveal-dur: 800ms;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.985);
  transition: opacity var(--reveal-dur) var(--reveal-ease),
              transform var(--reveal-dur) var(--reveal-ease);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
.reveal[data-delay="1"] { transition-delay:  80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }
.reveal[data-delay="5"] { transition-delay: 400ms; }
.reveal[data-delay="6"] { transition-delay: 480ms; }

/* Reveal group — children of any container marked .reveal-group cascade in
   when the parent enters the viewport. 70 ms stagger between siblings. */
.reveal-group > * {
  opacity: 0;
  transform: translate3d(0, 24px, 0) scale(0.985);
  transition: opacity 700ms var(--reveal-ease),
              transform 700ms var(--reveal-ease);
  will-change: opacity, transform;
}
.reveal-group.is-in > * {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
.reveal-group.is-in > *:nth-child(1) { transition-delay:  60ms; }
.reveal-group.is-in > *:nth-child(2) { transition-delay: 130ms; }
.reveal-group.is-in > *:nth-child(3) { transition-delay: 200ms; }
.reveal-group.is-in > *:nth-child(4) { transition-delay: 270ms; }
.reveal-group.is-in > *:nth-child(5) { transition-delay: 340ms; }
.reveal-group.is-in > *:nth-child(6) { transition-delay: 410ms; }
.reveal-group.is-in > *:nth-child(7) { transition-delay: 480ms; }
.reveal-group.is-in > *:nth-child(8) { transition-delay: 550ms; }

/* Header scroll state — intensifies frosted glass + adds a soft hairline shadow
   when the page has scrolled down. Toggled by site.js via .is-scrolled. */
.site-header {
  transition: background var(--t-med) var(--ease-out),
              border-color var(--t-med) var(--ease-out),
              box-shadow var(--t-med) var(--ease-out),
              backdrop-filter var(--t-med) var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 3px rgba(15, 17, 21, 0.04);
}

/* Subtle interactive lift on cards, steps, team-cards, diffs, domain pills */
.card, .step, .team-card, .diff, .affiliation__item, .contact-meta__item, .service {
  transition: transform var(--t-med) var(--ease-out),
              box-shadow var(--t-med) var(--ease-out),
              border-color var(--t-med) var(--ease-out);
}

.domain-pill {
  transition: transform var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out),
              color var(--t-fast) var(--ease-out),
              background var(--t-fast) var(--ease-out);
}
.domain-pill:hover { transform: translateY(-2px); }

/* Card icon micro-interaction */
.card__icon {
  transition: transform var(--t-med) var(--ease-out),
              background var(--t-med) var(--ease-out);
}
.card:hover .card__icon { transform: scale(1.08) rotate(-3deg); }

/* Hero gradient parallax — JS sets --hero-parallax in px on scroll */
.hero::before {
  will-change: transform;
  transform: translate3d(0, var(--hero-parallax, 0), 0);
}

/* Word-by-word reveal — for any element with [data-word-stagger].
   Each .word fades up + translates 20 px with a 70 ms cadence per index.
   Inline-block keeps words flowing as text but allows transform per word. */
[data-word-stagger] .word {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity 700ms var(--reveal-ease, cubic-bezier(0.16, 1, 0.3, 1)),
              transform 700ms var(--reveal-ease, cubic-bezier(0.16, 1, 0.3, 1));
  transition-delay: calc(var(--word-i, 0) * 70ms + 100ms);
  will-change: opacity, transform;
}
[data-word-stagger].is-in .word {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* =========================================================================
   20. Utilities
   ========================================================================= */
.text-center { text-align: center; }
.bg-paper-2 { background: var(--paper-2); }
.bg-ink { background: var(--ink); color: var(--paper); }
.muted { color: var(--ink-3); }
