/* ==========================================================================
   Serve The King Ministries — home page in the studio's STATEMENT template.
   Type IS the design: colossal uppercase Sora at very tight tracking, paper
   bands alternating with one full-bleed accent (STK's gold), a white tab nav
   hanging into a framed hero, and a near-black footer to land on.
   ========================================================================== */

:root {
  --paper:  #fcfcfb;
  --pale:   #f3efe6;
  --night:  #0d1724;
  --ink:    #0f1823;
  --accent: #d4a84b;
  --accent-deep: #c69a3a;
  --rule:   rgba(13, 23, 36, .14);
  --font: 'Sora', system-ui, -apple-system, sans-serif;
  --max: 1152px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin: 0; }

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

/* ---------- display type ---------- */

.colossal {
  font-weight: 400;
  text-transform: uppercase;
  line-height: .92;
  letter-spacing: -.055em;
}
.big {
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: .95;
  letter-spacing: -.05em;
  color: var(--night);
  max-width: 16ch;
}
.mid {
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: .98;
  letter-spacing: -.045em;
  color: var(--night);
  max-width: 20ch;
  margin-top: 16px;
}
.tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: .45;
}
.tag-accent { color: var(--accent); opacity: 1; }
.sub { margin-top: 16px; font-size: 15px; color: var(--ink); opacity: .6; }
.sub-night { margin-top: 16px; font-size: 14px; color: var(--night); opacity: .7; }
.accent-ink { color: var(--accent); }

/* ---------- controls ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 16px 32px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .3s ease, background .3s ease;
}
.pill:hover { transform: translateY(-2px); }
.pill-accent { background: var(--accent); color: var(--night); }
.pill-night  { background: var(--night); color: #fff; }

/* SwapButton: two copies of the label in a one-line clip; hover slides the
   second up into view. Labels are nowrap so the clip never grows. */
.swap-clip {
  display: block;
  height: 1.3em;
  line-height: 1.3em;
  overflow: hidden;
}
.swap-clip span {
  display: block;
  white-space: nowrap;
  transition: transform .4s cubic-bezier(.2, .7, .3, 1);
}
.swap:hover .swap-clip span { transform: translateY(-100%); }

.disc {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 999px;
  transition: transform .3s ease;
}
.disc:hover { transform: rotate(45deg); }
.disc svg { width: 20px; height: 20px; }
.disc-glass  { background: rgba(255, 255, 255, .16); color: #fff; }
.disc-accent { background: var(--accent); color: var(--night); }
.disc-dark   { background: rgba(0, 0, 0, .12); color: var(--night); }
.disc-soft   { background: rgba(13, 23, 36, .08); color: var(--night); }

/* ==========================================================================
   Tab nav — a white tab hanging down into the hero frame
   ========================================================================== */

.tabnav {
  position: sticky;
  top: 0;
  z-index: 70;
}
.tab {
  position: relative;
  margin: 0 auto;
  width: calc(100% - 20px);
  max-width: 780px;
  background: #fff;
  border-radius: 0 0 30px 30px;
  padding: 8px 12px 4px;
}
.ear {
  position: absolute;
  top: 0;
  width: 30px;
  height: 30px;
  display: none;
}
.ear-l { left: -30px; background: radial-gradient(circle at 0 100%, transparent 29.5px, #fff 30px); }
.ear-r { right: -30px; background: radial-gradient(circle at 100% 100%, transparent 29.5px, #fff 30px); }

.tab-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--night);
}
.brand img {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--night);
  padding: 1px;
}
.tab-links {
  display: none;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: var(--night);
}
.tab-links a { opacity: .75; transition: opacity .2s ease; }
.tab-links a:hover { opacity: 1; }

/* RollText: each letter is a two-line stack in a one-line clip. */
.roll {
  display: inline-flex;
  overflow: hidden;
  height: 1.25em;
  vertical-align: middle;
}
.roll i {
  display: inline-block;
  font-style: normal;
  white-space: pre;
  transition: transform .3s ease-out;
}
.roll i b { display: block; font-weight: inherit; line-height: 1.25em; }
.roll:hover i { transform: translateY(-50%); }

.tab-cta {
  flex: none;
  border: 1px solid var(--night);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--night);
  transition: background .3s ease;
}
.tab-cta:hover { background: var(--accent); }

/* ==========================================================================
   Hero — framed photo, colossal headline rising in letter by letter
   ========================================================================== */

.hero {
  padding: 10px 10px 0;
  background: var(--paper);
  margin-top: var(--nav-h, -72px);
}
.hero-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 92vh;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.45) 60%, rgba(0,0,0,.75) 100%),
    url(assets/hero.jpg) center / cover;
}
.hero-inner {
  flex: 1;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: calc(var(--max) + 64px);
  margin: 0 auto;
  padding: calc(var(--nav-abs, 72px) + 30px) 16px 64px;
}
.hero-copy { width: 100%; min-width: 0; }
.hero-h1 {
  font-size: 15vw;
  color: #fff;
}
.hero-h1 .rise { white-space: nowrap; }
.hero-h1 .accent-ink { display: inline; }

/* SplitRise letters */
.rise .ch {
  display: inline-block;
  animation: sl-rise .7s cubic-bezier(.2, .7, .3, 1) both;
}
.rise .w { display: inline-block; white-space: nowrap; }

.hero-row {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.hero-ctas { display: flex; align-items: center; gap: 16px; }
.hero-mission {
  max-width: 24rem;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .8);
}
.sl-in { animation: sl-rise .9s cubic-bezier(.2, .7, .3, 1) both; }

@keyframes sl-rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   Statement strip
   ========================================================================== */

.strip { padding: 96px 16px; }
.facts {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 40px;
}
.fact {
  margin-top: 12px;
  font-size: 24px;
  letter-spacing: -.02em;
  color: var(--night);
}

/* ==========================================================================
   Accent band — ticker + pinned card deck
   ========================================================================== */

.band-accent { background: var(--accent); }

.ticker-wrap {
  border-bottom: 1px solid rgba(0, 0, 0, .14);
  padding: 20px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker {
  display: flex;
  width: max-content;
  gap: 32px;
  animation: sl-marquee 38s linear infinite;
}
.ticker:hover { animation-play-state: paused; }
.ticker-set { display: flex; flex: none; gap: 32px; }
.ticker span {
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: -.02em;
  color: var(--night);
}
.star {
  width: 14px;
  height: 14px;
  flex: none;
  background: var(--night);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
@keyframes sl-marquee { to { transform: translateX(calc(-50% - 16px)); } }

.ways-body { padding: 80px 16px 0; }
#ways { padding-bottom: 96px; scroll-margin-top: 64px; }

.deck { margin-top: 56px; }
.card {
  position: sticky;
  top: calc(88px + var(--i) * 36px);
  margin-bottom: 24px;
  display: grid;
  overflow: hidden;
  border-radius: 28px;
  background: var(--night);
}
.card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.card-media > div {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform .7s ease-out;
}
.card:hover .card-media > div { transform: scale(1.05); }
.card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 32px;
}
.card h3 {
  margin-top: 16px;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: .95;
  letter-spacing: -.04em;
  color: #fff;
}
.card-body p:not(.tag) {
  margin-top: 20px;
  max-width: 28rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .7);
}
.card-foot { display: flex; align-items: center; gap: 16px; }
.card-icon { width: 24px; height: 24px; color: var(--accent); }

/* ==========================================================================
   Teaching
   ========================================================================== */

.teaching { padding: 96px 16px; scroll-margin-top: 64px; }
.embed {
  margin-top: 40px;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 60px -40px rgba(13, 23, 36, .5);
}
.embed iframe { display: block; width: 100%; }
.teach-links { margin-top: 28px; display: flex; align-items: center; gap: 16px; }

/* ==========================================================================
   Conference — accent band, the date as the headline
   ========================================================================== */

.conf { padding: 96px 16px; scroll-margin-top: 64px; }
.conf .tag { color: var(--night); opacity: .55; }
.conf-grid { display: grid; gap: 48px; align-items: end; }
.number {
  margin-top: 16px;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(64px, 16vw, 150px);
  line-height: .85;
  letter-spacing: -.06em;
  color: var(--night);
  white-space: nowrap;
}
.number .nums em { font-style: normal; opacity: .45; }
.conf-bar {
  margin-top: 24px;
  height: 6px;
  width: 100%;
  max-width: 24rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, .18);
  overflow: hidden;
}
.conf-bar div { height: 100%; width: 100%; border-radius: 999px; background: var(--night); }
.conf-copy {
  max-width: 28rem;
  font-size: 18px;
  line-height: 1.6;
  color: var(--night);
  opacity: .82;
}
.conf-ctas { margin-top: 32px; display: flex; align-items: center; gap: 16px; }

/* ==========================================================================
   What's on — pale band, rows
   ========================================================================== */

.whatson { padding: 96px 16px; background: var(--pale); }
.rows { margin-top: 48px; border-top: 1px solid var(--rule); }
.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}
.row-date {
  width: 112px;
  flex: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: .5;
}
.row-name {
  flex: 1;
  min-width: 0;
  font-size: 24px;
  letter-spacing: -.02em;
  color: var(--night);
  transition: transform .3s ease;
}
.row:hover .row-name { transform: translateX(6px); }
.row-meta { font-size: 14px; color: var(--ink); opacity: .6; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq { padding: 96px 16px; scroll-margin-top: 64px; }
.faq-grid { display: grid; gap: 48px; }
.faq .big { max-width: 10ch; }
details { border-bottom: 1px solid var(--rule); padding: 20px 0; }
summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 20px;
  letter-spacing: -.02em;
  color: var(--night);
  transition: opacity .2s ease;
}
summary::-webkit-details-marker { display: none; }
summary:hover { opacity: .6; }
.chev { flex: none; display: grid; transition: transform .3s ease; }
.chev svg { width: 16px; height: 16px; }
details[open] .chev { transform: rotate(180deg); }
details p {
  margin-top: 16px;
  max-width: 65ch;
  line-height: 1.6;
  color: var(--ink);
  opacity: .72;
}

/* ==========================================================================
   Closing CTA over a photo
   ========================================================================== */

.closing {
  padding: 112px 16px;
  text-align: center;
  background:
    linear-gradient(0deg, rgba(0,0,0,.72), rgba(0,0,0,.72)),
    url(assets/dinner.jpg) center / cover;
}
.closing-h2 {
  margin: 0 auto;
  max-width: 14ch;
  font-size: clamp(44px, 11vw, 96px);
  color: #fff;
}
.closing-ctas {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer { padding: 64px 16px; background: var(--night); color: rgba(255, 255, 255, .65); }
.footer-name {
  font-size: 13vw;
  line-height: .88;
  color: #fff;
}
.footer-grid {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  font-size: 14px;
}
.footer-grid p + p { margin-top: 4px; }
.footer .white { color: #fff; }
.footer-links, .footer-social { display: flex; gap: 20px; margin-top: 12px !important; }
.footer-links a, .footer-social a {
  font-weight: 600;
  color: rgba(255, 255, 255, .9);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.footer-links a:hover, .footer-social a:hover { color: #fff; }
.copy { margin-top: 40px; font-size: 13px; color: rgba(255, 255, 255, .4); }

/* ==========================================================================
   Reveal (48px rise)
   ========================================================================== */

.reveal.hidden {
  opacity: 0;
  transform: translateY(48px);
}
.reveal.shown {
  opacity: 1;
  transform: none;
  transition: opacity .8s cubic-bezier(.2, .7, .3, 1), transform .8s cubic-bezier(.2, .7, .3, 1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .rise .ch, .sl-in, .ticker { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (min-width: 640px) {
  .ear { display: block; }
  .hero { padding: 10px 10px 0; }
  .hero-inner { padding-left: 32px; padding-right: 32px; }
  .hero-h1 { font-size: 11vw; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .strip, .teaching, .conf, .whatson, .faq { padding-left: 32px; padding-right: 32px; }
  .ways-body { padding-left: 32px; padding-right: 32px; }
  .number { font-size: clamp(72px, 8vw, 150px); }
  .footer { padding-left: 32px; padding-right: 32px; }
  .footer-name { font-size: 6.5vw; }
  .footer .right { text-align: right; }
  .footer-links, .footer-social { justify-content: flex-end; }
  .closing-h2 { font-size: clamp(44px, 6vw, 96px); }
}

@media (min-width: 768px) {
  .tab-links { display: flex; }
  .card { grid-template-columns: 1.1fr .9fr; }
  .card-media { aspect-ratio: auto; min-height: 380px; }
  .card-body { padding: 40px; }
}

@media (min-width: 1024px) {
  .conf-grid { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: .9fr 1.1fr; }
}

@media (max-width: 639px) {
  .hero-frame { min-height: 86vh; }
  .hero-h1 .rise + .rise { display: block; }
  .card { top: calc(72px + var(--i) * 28px); }
}
