/* Light page in the CRM's palette; only the hero stays dark for the dusk photo. */
:root {
  --bg: #fbfcfe;
  --soft: #f1f6fb;
  --panel: #ffffff;
  --border: #d7e3ef;
  --text: #101826;
  --muted: #3d4e61;
  --blue: #1a539b;
  --blue-deep: #123c72;
  --red: #a00531;
  --gold: #b18459;
  --shadow: 0 1px 2px rgba(18, 36, 58, 0.05), 0 18px 40px -24px rgba(18, 36, 58, 0.28);
  --logo-gold-1: #f0c48f;
  --logo-gold-2: #c9925f;
  --logo-red: #ff3d5e;
  --logo-violet: #a64bd6;
  --logo-blue: #4f9bff;
  --hero-ink: #fff6ea;
  --hero-mute: rgba(255, 246, 234, 0.92);
  --night: #120c08;
  --sans: "Geist Variable", "Segoe UI", system-ui, sans-serif;
  --display: "Plus Jakarta Sans", "Geist Variable", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
}

.net-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
}
main,
footer {
  position: relative;
  z-index: 1;
}

a { color: var(--blue); }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  transition: background 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header);
  padding-top: 10px;
  padding-bottom: 10px;
}
.top img { height: 26px; width: auto; display: block; }
.top nav { display: flex; align-items: center; gap: 8px 26px; }
.top nav a:not(.btn) {
  position: relative;
  color: var(--hero-ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}
.top nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.45s var(--ease);
}
.top nav a:not(.btn):hover { color: var(--logo-gold-1); }
.top nav a:not(.btn):hover::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}

.top.is-stuck {
  background: rgba(251, 252, 254, 0.94);
  border-bottom: 1px solid rgba(213, 226, 240, 0.95);
  box-shadow: 0 10px 30px -18px rgba(18, 36, 58, 0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.top.is-stuck nav a:not(.btn) { color: var(--text); }
.top.is-stuck nav a:not(.btn):hover { color: var(--blue); }

.plain .top {
  position: sticky;
  background: rgba(251, 252, 254, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}
.plain .top nav a:not(.btn) { color: var(--text); }
.plain .top nav a:not(.btn):hover { color: var(--blue); }

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

.btn {
  --mx: 0px;
  --my: 0px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transform: translate(var(--mx), var(--my));
  transition:
    transform 0.45s var(--ease),
    background 0.45s var(--ease),
    color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.45s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.5s var(--ease);
}
.btn:hover { transform: translate(var(--mx), calc(var(--my) - 1px)); }
.btn:hover::before { transform: scaleY(1); }
.btn:focus-visible {
  outline: 2px solid var(--logo-blue);
  outline-offset: 3px;
}
.btn.is-pressed {
  animation: btnPress 0.42s var(--ease);
}
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 70%);
  transform: scale(0);
  animation: ripple 0.62s var(--ease) forwards;
}

.btn-solid {
  background: var(--blue);
  color: #fff !important;
  box-shadow: 0 10px 22px -12px rgba(26, 83, 155, 0.9);
}
.btn-solid::before { background: var(--blue-deep); }
.btn-solid:hover { box-shadow: 0 16px 28px -14px rgba(26, 83, 155, 0.95); }

.btn-ghost {
  border-color: var(--border);
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
}
.btn-ghost::before { background: var(--text); }
.btn-ghost:hover { color: #fff !important; border-color: var(--text); }

.hero .btn-ghost {
  border-color: rgba(255, 220, 180, 0.34);
  color: var(--hero-ink) !important;
  background: rgba(24, 16, 10, 0.38);
}
.hero .btn-ghost::before { background: rgba(255, 246, 234, 0.16); }
.hero .btn-ghost:hover {
  color: var(--hero-ink) !important;
  border-color: rgba(255, 246, 234, 0.7);
}

.top .btn-solid { padding: 10px 18px; font-size: 13.5px; }

@keyframes btnPress {
  0% { transform: translate(var(--mx), var(--my)) scale(1); }
  35% { transform: translate(var(--mx), var(--my)) scale(0.95); }
  100% { transform: translate(var(--mx), var(--my)) scale(1); }
}
@keyframes ripple {
  to { transform: scale(1); opacity: 0; }
}

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

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: var(--night);
  color: var(--hero-ink);
}
.hero-bg {
  position: absolute;
  inset: -4%;
  z-index: -3;
  background: url("assets/grace-bg.webp") center / cover no-repeat;
  animation: drift 32s ease-in-out infinite alternate;
  will-change: transform;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(18, 12, 8, 0.4) 0%, rgba(18, 12, 8, 0.12) 42%, rgba(18, 12, 8, 0.9) 100%),
    linear-gradient(90deg, rgba(18, 12, 8, 0.88) 0%, rgba(18, 12, 8, 0.28) 55%, rgba(18, 12, 8, 0.08) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(ellipse 45% 40% at 62% 62%, rgba(255, 140, 40, 0.28), transparent 70%);
  mix-blend-mode: screen;
  animation: glow 7s ease-in-out infinite alternate;
}
.hero .wrap {
  padding-top: 140px;
  padding-bottom: 88px;
  animation: heroIn 1.1s var(--ease) both;
}
.hero .lead {
  color: var(--hero-mute);
  font-size: clamp(16.5px, 1.7vw, 18.5px);
  line-height: 1.7;
  max-width: 36rem;
  margin: 0 0 32px;
  text-shadow: 0 2px 18px rgba(12, 8, 4, 0.45);
}

.embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.embers span {
  position: absolute;
  bottom: -10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffb547;
  box-shadow: 0 0 8px 2px rgba(255, 150, 50, 0.7);
  opacity: 0;
  animation: rise 14s linear infinite;
}
.embers span:nth-child(1)  { left: 8%;  animation-delay: 0s;  animation-duration: 15s; }
.embers span:nth-child(2)  { left: 19%; animation-delay: 4s;  animation-duration: 12s; width: 3px; height: 3px; }
.embers span:nth-child(3)  { left: 31%; animation-delay: 8s;  animation-duration: 17s; }
.embers span:nth-child(4)  { left: 44%; animation-delay: 2s;  animation-duration: 13s; width: 2px; height: 2px; }
.embers span:nth-child(5)  { left: 53%; animation-delay: 10s; animation-duration: 16s; }
.embers span:nth-child(6)  { left: 61%; animation-delay: 6s;  animation-duration: 11s; width: 3px; height: 3px; }
.embers span:nth-child(7)  { left: 70%; animation-delay: 1s;  animation-duration: 18s; }
.embers span:nth-child(8)  { left: 79%; animation-delay: 9s;  animation-duration: 14s; width: 2px; height: 2px; }
.embers span:nth-child(9)  { left: 88%; animation-delay: 3s;  animation-duration: 16s; }
.embers span:nth-child(10) { left: 95%; animation-delay: 12s; animation-duration: 13s; width: 3px; height: 3px; }

@keyframes drift {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.08) translate(-1.5%, -1%); }
}
@keyframes glow {
  from { opacity: 0.55; }
  to   { opacity: 1; }
}
@keyframes rise {
  0%   { transform: translate(0, 0); opacity: 0; }
  10%  { opacity: 0.9; }
  100% { transform: translate(40px, -85vh); opacity: 0; }
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(28px); filter: blur(8px); }
  to   { opacity: 1; transform: none; filter: none; }
}

.brand { margin: 0 0 16px; }
.brand img { display: block; width: min(440px, 82vw); height: auto; }
.tagline {
  font-family: var(--display);
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.028em;
  margin: 0 0 18px;
  text-shadow: 0 2px 20px rgba(12, 8, 4, 0.35);
}
.t-art { color: var(--logo-red); }
.t-grace,
.t-ndt {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-weight: 700;
}
.t-grace { background-image: linear-gradient(180deg, var(--logo-gold-1), var(--logo-gold-2)); }
.t-ndt { background-image: linear-gradient(90deg, var(--logo-red), var(--logo-violet), var(--logo-blue)); }
.t-work { color: var(--logo-blue); }

/* ---------- Sections ---------- */

section {
  padding: 104px 0;
  scroll-margin-top: var(--header);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
section h2 {
  font-family: var(--display);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  max-width: 22rem;
}
.section-lead {
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 40px;
  font-size: 17px;
  line-height: 1.7;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 24px;
  box-shadow: var(--shadow);
  transition:
    transform 0.5s var(--ease),
    border-color 0.4s var(--ease),
    box-shadow 0.5s var(--ease);
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent 38%);
  opacity: 0.55;
}
.card:hover {
  transform: translateY(-4px);
  border-color: #b9cfe4;
  box-shadow: 0 18px 40px -24px rgba(18, 36, 58, 0.45);
}
.card h3 {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  margin: 0 0 8px;
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.card > .ico {
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}
.ico {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #e8f0fa;
  color: var(--blue);
  flex-shrink: 0;
}
.ico svg { width: 20px; height: 20px; display: block; }
.card .num {
  font-family: var(--display);
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.band {
  background: color-mix(in srgb, var(--soft) 82%, transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.regions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.region { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.region h3 { margin-top: 2px; }
.region .status {
  font-size: 13px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.region:not(.soon) .status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1f9d5a;
  box-shadow: 0 0 0 0 rgba(31, 157, 90, 0.55);
  animation: live 1.8s ease-out infinite;
}
.region.soon { opacity: 0.65; }

.maker {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.maker img {
  width: 104px;
  height: 104px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 6px;
  box-shadow: var(--shadow);
  transition: transform 0.5s var(--ease);
}
.maker:hover img { transform: rotate(-3deg) scale(1.03); }
.maker div { flex: 1 1 320px; }
.maker p { color: var(--muted); margin: 0 0 22px; max-width: 40rem; line-height: 1.7; }
.maker h2 { max-width: 22ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Reveal / open ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}
[data-stagger] .card {
  opacity: 0;
  transform: translateY(22px);
}
[data-reveal].is-in [data-stagger] .card,
[data-stagger].is-in .card {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease),
    border-color 0.4s var(--ease),
    box-shadow 0.5s var(--ease);
}
[data-reveal].is-in [data-stagger] .card:nth-child(1),
[data-stagger].is-in .card:nth-child(1) { transition-delay: 0.04s; }
[data-reveal].is-in [data-stagger] .card:nth-child(2),
[data-stagger].is-in .card:nth-child(2) { transition-delay: 0.12s; }
[data-reveal].is-in [data-stagger] .card:nth-child(3),
[data-stagger].is-in .card:nth-child(3) { transition-delay: 0.2s; }
[data-reveal].is-in [data-stagger] .card:nth-child(4),
[data-stagger].is-in .card:nth-child(4) { transition-delay: 0.28s; }
[data-reveal].is-in [data-stagger] .card:nth-child(5),
[data-stagger].is-in .card:nth-child(5) { transition-delay: 0.36s; }
[data-reveal].is-in [data-stagger] .card:nth-child(6),
[data-stagger].is-in .card:nth-child(6) { transition-delay: 0.44s; }

.is-opening {
  animation: sectionOpen 0.85s var(--ease) both;
}
@keyframes sectionOpen {
  from {
    opacity: 0.4;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes live {
  0% { box-shadow: 0 0 0 0 rgba(31, 157, 90, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(31, 157, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 157, 90, 0); }
}

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

footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 32px;
  color: var(--muted);
  font-size: 14px;
  background:
    linear-gradient(180deg, color-mix(in srgb, #f4f8fd 78%, transparent) 0%, color-mix(in srgb, #ffffff 86%, transparent) 48%);
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: min(100%, 280px);
}
.foot-brand img {
  height: 22px;
  width: auto;
  display: block;
  opacity: 0.92;
}
footer a {
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
footer a svg { width: 15px; height: 15px; flex-shrink: 0; }
footer a:hover {
  color: var(--text);
  background: #fff;
  border-color: var(--border);
}
footer nav { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Plain document pages ---------- */

.doc { padding: 56px 0 72px; }
.doc .wrap { max-width: 760px; }
.doc h1 {
  font-family: var(--display);
  font-size: clamp(32px, 4.4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}
.doc h2 { font-size: 20px; margin: 36px 0 8px; font-family: var(--sans); }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--text); }
.doc .updated { font-size: 14px; }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .top nav a:not(.btn) { display: none; }
  .top img { height: 22px; }
  section { padding: 72px 0; }
  .hero .wrap { padding-bottom: 64px; }
  .tagline { max-width: none; }
  .wrap { padding: 0 16px; }
  .grid,
  .regions { grid-template-columns: 1fr; }
  .foot-brand { gap: 10px; }
}

@media (max-height: 760px) {
  .hero { min-height: 100svh; }
  .hero .wrap { padding-top: 108px; padding-bottom: 48px; }
  .hero .lead { margin-bottom: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg, .hero::after, .embers span, .hero .wrap, .region:not(.soon) .status::before { animation: none; }
  .embers,
  .net-bg { display: none; }
  [data-reveal],
  [data-stagger] .card,
  .btn,
  .card,
  .maker img {
    transition: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
  .is-opening { animation: none; }
}
