/* Reignwell — shared styles */

:root {
  --ink: #152238;
  --muted: #5d6878;
  --paper: #fbfaf6;
  --card: rgba(255, 255, 255, .72);
  --line: rgba(21, 34, 56, .10);
  --teal: #19b8b0;
  --teal-deep: #0f8a84;
  --mint: #86e4cf;
  --orange: #ff7c42;
  --violet: #8d72f4;
  --shadow: 0 24px 70px rgba(50, 59, 74, .10);
  --radius: 28px;

  --shell: 1160px;
  --gutter: 28px;
  /* applied top and bottom, so the gap between two sections is double this */
  --section-y: clamp(22px, 2.2vw, 32px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* keep anchored headings clear of the sticky header */
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 10%, rgba(134, 228, 207, .28), transparent 28%),
    radial-gradient(circle at 92% 18%, rgba(255, 124, 66, .16), transparent 24%),
    radial-gradient(circle at 72% 92%, rgba(141, 114, 244, .14), transparent 28%),
    var(--paper);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}
.skip-link:focus { left: 20px; }

.shell {
  width: min(var(--shell), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 246, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(21, 34, 56, .05);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
/* height:auto keeps the lockup on its true 1444:408 ratio — no dead space,
   so the wordmark baseline lines up with the nav links beside it */
.brand img {
  width: 168px;
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border-radius: 11px;
  color: var(--muted);
  transition: color .16s ease, background .16s ease;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); background: rgba(21, 34, 56, .05); }
.nav-links a[aria-current="page"] { color: var(--ink); background: rgba(25, 184, 176, .12); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  margin-left: 8px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform .16s ease, box-shadow .16s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(21, 34, 56, .18); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, .75);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(36px, 5vw, 64px);
  padding: clamp(28px, 3.5vw, 46px) 0 clamp(24px, 3vw, 38px);
}
.hero-copy { min-width: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .65);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .01em;
  color: #334054;
  backdrop-filter: blur(12px);
}
.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--mint));
  box-shadow: 0 0 0 5px rgba(25, 184, 176, .11);
}

h1 {
  margin: 22px 0 20px;
  /* sized off the column, not the viewport, so it can't outrun its grid track */
  font-size: clamp(44px, 6vw, 82px);
  line-height: .96;
  letter-spacing: -.045em;
  font-weight: 800;
}
h1 .accent {
  background: linear-gradient(100deg, var(--teal), var(--violet) 46%, var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 56ch;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 15px;
  font-weight: 800;
  font-size: 15px;
  border: 1px solid var(--line);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 28px rgba(21, 34, 56, .17);
}
.btn-primary:hover { box-shadow: 0 18px 36px rgba(21, 34, 56, .22); }
.btn-secondary { background: rgba(255, 255, 255, .72); }
.btn-secondary:hover { background: #fff; }

/* hero artwork */

.hero-art {
  position: relative;
  min-width: 0;
  /* room for the note that hangs off the bottom edge */
  padding-bottom: 34px;
}
.logo-stage {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  aspect-ratio: 1 / 1;
  border-radius: 40px;
  border: 1px solid rgba(21, 34, 56, .08);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .57)),
    radial-gradient(circle at 20% 20%, rgba(134, 228, 207, .32), transparent 38%);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.logo-stage::before,
.logo-stage::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  z-index: -1;
}
.logo-stage::before {
  width: 58%; aspect-ratio: 1;
  left: -22%; bottom: -20%;
  background: rgba(25, 184, 176, .16);
}
.logo-stage::after {
  width: 48%; aspect-ratio: 1;
  right: -17%; top: -15%;
  background: rgba(255, 124, 66, .13);
}
/* the mark is a square asset — sizing it as a share of the square stage keeps
   it optically centred at every breakpoint instead of bleeding past the frame */
.logo-stage img {
  width: 62%;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 34px rgba(21, 34, 56, .14));
}

.floating-note {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(290px, 78%);
  padding: 18px 20px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(21, 34, 56, .09);
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(21, 34, 56, .12);
  transform: rotate(2deg);
}
.floating-note strong { display: block; margin-bottom: 5px; font-size: 15px; }
.floating-note span { color: var(--muted); font-size: 13px; line-height: 1.5; }

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

section { padding: var(--section-y) 0; }

.section-kicker {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--teal-deep);
  margin-bottom: 12px;
}
h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.04;
  letter-spacing: -.04em;
  font-weight: 800;
}
h3 { font-weight: 800; }
.section-intro {
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.65;
  max-width: 68ch;
  margin: 0;
}

.grid-3 {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 16px 45px rgba(46, 55, 71, .06);
  backdrop-filter: blur(12px);
}
.card .num {
  width: 42px; height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 15px;
  margin-bottom: 22px;
  background: rgba(25, 184, 176, .11);
  color: #138f89;
}
.card:nth-child(2) .num { background: rgba(255, 124, 66, .12); color: #d85f2d; }
.card:nth-child(3) .num { background: rgba(141, 114, 244, .12); color: #7056d8; }
.card h3 { margin: 0 0 10px; font-size: 21px; letter-spacing: -.02em; }
.card p { margin: 0; color: var(--muted); line-height: 1.62; }

/* projects */

.projects {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.project {
  min-height: 268px;
  padding: 30px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .70);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.project::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 180px; height: 180px;
  border-radius: 50%;
  right: -70px; bottom: -80px;
  background: rgba(25, 184, 176, .10);
}
.project:nth-child(2)::after { background: rgba(255, 124, 66, .10); }
.project:nth-child(3)::after { background: rgba(141, 114, 244, .10); }
.project small {
  font-weight: 850;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 12px;
}
.project h3 { font-size: clamp(26px, 2.6vw, 32px); margin: 10px 0 10px; letter-spacing: -.035em; }
.project p { color: var(--muted); line-height: 1.58; max-width: 46ch; margin: 0; }

.status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: rgba(21, 34, 56, .06);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 850;
}
.status::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--orange);
}

/* faith strip */

.faith {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 52px);
  padding: clamp(30px, 4vw, 46px);
  border-radius: 34px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .62)),
    radial-gradient(circle at 88% 12%, rgba(141, 114, 244, .16), transparent 42%);
  box-shadow: 0 16px 45px rgba(46, 55, 71, .06);
}
.faith h2 { font-size: clamp(28px, 3.2vw, 40px); }
.faith p { color: var(--muted); line-height: 1.65; margin: 0 0 22px; }
.pledge-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.pledge-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}
.pledge-list li::before {
  content: "";
  flex: 0 0 auto;
  margin-top: 6px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--violet));
}
.pledge-list strong { color: var(--ink); font-weight: 800; }

/* banner */

.build-banner {
  margin-top: clamp(26px, 3vw, 38px);
  padding: clamp(30px, 4vw, 48px);
  border-radius: 34px;
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
/* soft glows rather than hard discs — the banner clips them, and a crisp
   quarter-circle edge reads as a rendering bug rather than decoration */
.build-banner::before,
.build-banner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
}
.build-banner::before {
  width: 300px; height: 300px;
  background: rgba(25, 184, 176, .40);
  right: -80px; top: -120px;
}
.build-banner::after {
  width: 260px; height: 260px;
  background: rgba(255, 124, 66, .30);
  right: 90px; bottom: -150px;
}
.build-banner > * { position: relative; z-index: 1; }
.build-banner h2 { max-width: 20ch; margin-bottom: 14px; }
.build-banner p {
  color: rgba(255, 255, 255, .74);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.65;
  max-width: 64ch;
  margin: 0;
}
.build-banner .btn-secondary {
  margin-top: 26px;
  background: rgba(255, 255, 255, .96);
  border-color: transparent;
  color: var(--ink);
}

/* ---------------------------------------------------------------- article */

.page-head {
  padding: clamp(28px, 3.5vw, 46px) 0 clamp(18px, 2.2vw, 28px);
  max-width: 74ch;
}
.page-head h1 {
  font-size: clamp(38px, 5.2vw, 66px);
  margin: 20px 0 18px;
}
.page-head .lede {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.prose { max-width: 72ch; padding-bottom: clamp(22px, 2.6vw, 32px); }
.prose h2 {
  font-size: clamp(26px, 2.8vw, 34px);
  margin: 38px 0 12px;
  letter-spacing: -.03em;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 19px;
  margin: 24px 0 8px;
  letter-spacing: -.02em;
}
.prose p, .prose li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}
.prose p { margin: 0 0 18px; }
.prose ul { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 10px; }
.prose strong { color: var(--ink); font-weight: 750; }
.prose a {
  color: var(--teal-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

blockquote {
  margin: 24px 0;
  padding: 22px 26px;
  border-radius: 22px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  background: rgba(255, 255, 255, .68);
}
blockquote p { margin: 0 0 8px; color: var(--ink); font-size: 18px; line-height: 1.62; }
blockquote cite {
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

.callout {
  margin: 28px 0;
  padding: 26px 28px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(134, 228, 207, .20), rgba(141, 114, 244, .12));
}
.callout h3 { margin: 0 0 10px; font-size: 20px; }
.callout p:last-child { margin-bottom: 0; }

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(40px, 5vw, 60px) 0 44px;
  margin-top: var(--section-y);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
  gap: clamp(28px, 4vw, 60px);
  padding-bottom: 36px;
}
.footer-brand img { width: 158px; height: auto; display: block; }
.footer-brand p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 34ch;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 28px;
}
.footer-cols h4 {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink);
}
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-cols a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color .16s ease;
}
.footer-cols a:hover { color: var(--ink); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}
.footer-bottom strong { color: var(--ink); }

/* ------------------------------------------------------------------- misc */

.center-page {
  min-height: 68vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 0;
}
.center-page .mark { width: 92px; height: auto; margin: 0 auto 26px; display: block; }
.center-page h1 { font-size: clamp(34px, 5vw, 58px); margin: 0 0 16px; }
.center-page p { color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 52ch; margin: 0 auto; }
.center-page .hero-actions { justify-content: center; }

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

@media (max-width: 940px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  /* copy leads on small screens — the headline should not sit below a
     full-width logo card that the visitor has to scroll past */
  .hero-art { padding-bottom: 0; }
  .logo-stage { max-width: 400px; }

  /* stacked, the note has nowhere to hang without covering the mark,
     so it becomes a normal block underneath instead */
  .floating-note {
    position: static;
    width: min(400px, 100%);
    margin: 20px auto 0;
    transform: none;
  }
  .faith { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }

  .nav-links {
    display: none;
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    top: calc(100% + 8px);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(251, 250, 246, .97);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 60px rgba(21, 34, 56, .14);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 13px 14px; font-size: 15px; }
  .nav-cta { margin: 4px 0 0; justify-content: center; min-height: 48px; }
  .nav-toggle { display: inline-flex; }
  .site-header .shell { position: relative; }
}

@media (max-width: 560px) {
  :root { --gutter: 18px; }
  .nav { min-height: 66px; }
  .brand img { width: 146px; }
  .logo-stage { border-radius: 30px; max-width: 340px; }
  .build-banner { border-radius: 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  .site-header, .site-footer, .hero-actions, .nav-toggle { display: none !important; }
  body { background: #fff; }
}
