/* Dominion v2: the page takes on the conference brand (the flyer Unveil made):
   near-black charcoal, Dominion green, bone type, grain. New Life's nav and footer
   frame it so it still reads as part of the church site. */
@font-face { font-family: "Neue Haas Display"; src: url("/assets/fonts/neue-haas-display-black.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Neue Haas Display"; src: url("/assets/fonts/neue-haas-display-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Neue Haas Display"; src: url("/assets/fonts/neue-haas-display-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

.dom2 {
  --d-bg: #151714;
  --d-panel: #1d201b;
  --d-panel-2: #232720;
  --d-green: #6cc832;
  --d-green-hi: #86da4c;
  --d-green-deep: #2f7d1d;
  --d-bone: #eee8da;
  --d-muted: #b8bfb0;
  --d-line: rgba(238, 232, 218, 0.14);
  --d-display: "Neue Haas Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --d-space: clamp(80px, 10vw, 152px);
  background: var(--d-bg);
  color: var(--d-bone);
}
.dom2 main { position: relative; overflow-x: clip; }
.dom2 ::selection { background: var(--d-green); color: var(--d-bg); }
.dom2 a:focus-visible, .dom2 button:focus-visible, .dom2 input:focus-visible, .dom2 summary:focus-visible, .dom2 [role="tab"]:focus-visible {
  outline: 2px solid var(--d-green-hi); outline-offset: 3px; border-radius: 4px;
}

/* Grain over every dark surface, from the flyer's paper texture. */
.dom2 main::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.09; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.dom2 main > * { position: relative; z-index: 2; }

/* Nav on the dark page */
.dom2 .nav.solid { background: rgba(21, 23, 20, 0.86); border-bottom-color: var(--d-line); }
.dom2 .nav.solid .nav-mark img { filter: none; }
.dom2 .nav.solid .nav-links a { color: var(--d-bone); }

.d-wrap { width: min(100%, 1360px); margin-inline: auto; padding-inline: var(--pad); }
.d-h2 { font-family: var(--d-display); font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; line-height: 0.92; font-size: clamp(44px, 7vw, 104px); }
.d-lead { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.45; color: var(--d-muted); max-width: 46ch; font-weight: 300; }

/* Buttons */
.d-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 30px; border-radius: 999px; font-family: var(--d-display); font-weight: 700; font-size: 17px; letter-spacing: 0.01em; text-decoration: none; transition: background 0.25s ease, color 0.25s ease, transform 0.25s cubic-bezier(.2,.7,.2,1); touch-action: manipulation; }
.d-btn-primary { background: var(--d-green); color: #0f130c; }
.d-btn-primary:hover { background: var(--d-green-hi); transform: translateY(-2px); }
.d-btn-ghost { color: var(--d-bone); box-shadow: inset 0 0 0 1.5px var(--d-line); }
.d-btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--d-bone); }

/* 1. Opening */
.d-hero { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-top: 128px; padding-bottom: 72px; }
/* The title is sized to its own column, so CONFERENCE (6.52 em wide in this face) always fits. */
.d-hero-copy { display: flex; flex-direction: column; container-type: inline-size; min-width: 0; }
.d-when { font-family: var(--d-display); font-weight: 700; font-size: clamp(17px, 1.3vw, 20px); letter-spacing: 0.02em; color: var(--d-green); }
.d-title { margin-top: 22px; font-family: var(--d-display); font-weight: 900; text-transform: uppercase; line-height: 0.86; letter-spacing: -0.035em; font-size: clamp(44px, 6vw, 96px); font-size: min(14.8cqi, 150px); }
.d-title span { display: block; }
.d-tag { margin-top: 26px; font-size: clamp(22px, 2vw, 30px); font-weight: 300; line-height: 1.25; }
.d-count { margin-top: 44px; display: grid; grid-template-columns: repeat(4, minmax(0, auto)); justify-content: start; gap: clamp(18px, 2.6vw, 40px); }
.d-count div { display: flex; flex-direction: column; }
.d-count b { font-family: var(--d-display); font-weight: 900; font-size: clamp(44px, 5.4vw, 84px); line-height: 0.9; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.d-count span { margin-top: 10px; font-family: var(--d-display); font-weight: 500; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--d-muted); }
.d-count-note { margin-top: 18px; color: var(--d-muted); font-size: 17px; }
.d-hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.d-hero-art { position: relative; justify-self: end; width: min(100%, 500px); }
.d-hero-art img { width: 100%; height: auto; display: block; border-radius: 6px; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--d-line); }
.d-hero-art::after { content: ""; position: absolute; inset: -12% -18% -8% -18%; z-index: -1; background: radial-gradient(closest-side, rgba(108, 200, 50, 0.22), transparent 70%); filter: blur(10px); }

/* 2. Speakers: a lineup, like the names across the top of the flyer */
.d-speakers { padding-block: var(--d-space); border-top: 1px solid var(--d-line); }
.d-speakers-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.d-lineup { margin-top: clamp(40px, 5vw, 72px); list-style: none; padding: 0; }
.d-lineup li { border-top: 1px solid var(--d-line); }
.d-lineup li:last-child { border-bottom: 1px solid var(--d-line); }
.d-person { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 24px; padding: clamp(18px, 2.4vw, 30px) 0; }
.d-person h3 { font-family: var(--d-display); font-weight: 900; text-transform: uppercase; letter-spacing: -0.025em; line-height: 0.95; font-size: clamp(36px, 6.2vw, 96px); transition: color 0.3s ease, transform 0.45s cubic-bezier(.2,.7,.2,1); }
.d-person p { font-family: var(--d-display); font-weight: 500; font-size: clamp(15px, 1.2vw, 18px); letter-spacing: 0.06em; text-transform: uppercase; color: var(--d-muted); white-space: nowrap; }
.d-lineup li:hover h3 { color: var(--d-green); transform: translateX(10px); }

/* 3. Schedule */
.d-schedule { padding-block: var(--d-space); background: var(--d-panel); }
.d-tabs { margin-top: clamp(36px, 4vw, 56px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--d-line); border-radius: 14px; overflow: hidden; }
.d-tab { min-height: 88px; padding: 18px 22px; text-align: left; background: transparent; color: var(--d-bone); border: 0; border-right: 1px solid var(--d-line); cursor: pointer; display: flex; flex-direction: column; justify-content: center; gap: 4px; transition: background 0.25s ease, color 0.25s ease; font: inherit; }
.d-tab:last-child { border-right: 0; }
.d-tab b { font-family: var(--d-display); font-weight: 900; font-size: clamp(22px, 2.4vw, 34px); text-transform: uppercase; letter-spacing: -0.01em; line-height: 1; }
.d-tab span { font-size: 15px; color: var(--d-muted); }
.d-tab[aria-selected="true"] { background: var(--d-green); color: #0f130c; }
.d-tab[aria-selected="true"] span { color: #1f3013; }
.d-tab:not([aria-selected="true"]):hover { background: var(--d-panel-2); }
.d-day { margin-top: 28px; }
.d-day[hidden] { display: none; }
.d-session { display: grid; grid-template-columns: minmax(120px, 0.32fr) minmax(0, 1fr); gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--d-line); align-items: baseline; }
.d-session time, .d-session .d-tba { font-family: var(--d-display); font-weight: 900; font-size: clamp(26px, 2.6vw, 40px); letter-spacing: -0.01em; }
.d-session .d-tba { font-weight: 500; font-size: clamp(18px, 1.6vw, 22px); color: var(--d-muted); }
.d-session h3 { font-family: var(--d-display); font-weight: 700; font-size: clamp(22px, 2vw, 30px); }
.d-session p { margin-top: 6px; color: var(--d-muted); font-size: 17px; }
.d-schedule-note { margin-top: 26px; color: var(--d-muted); font-size: 16px; }

/* 4. Register */
.d-register { padding-block: var(--d-space); scroll-margin-top: 72px; }
.d-register-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 104px); align-items: start; }
.d-register-copy .d-lead { margin-top: 26px; }
.d-register-facts { margin-top: 34px; display: grid; gap: 14px; }
.d-register-facts p { font-size: 17px; color: var(--d-bone); }
.d-register-facts b { font-family: var(--d-display); font-weight: 700; color: var(--d-green); margin-right: 6px; }
.d-form { background: var(--d-panel); border: 1px solid var(--d-line); border-radius: 20px; padding: clamp(24px, 3.4vw, 44px); display: grid; gap: 22px; }
.d-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.d-field { display: grid; gap: 8px; min-width: 0; }
.d-field input { width: 100%; box-sizing: border-box; }
.d-field label, .d-legend { font-family: var(--d-display); font-weight: 500; font-size: 15px; letter-spacing: 0.02em; color: var(--d-bone); }
.d-field label small { color: var(--d-muted); font-weight: 500; }
.d-field input { min-height: 52px; padding: 0 16px; border-radius: 10px; border: 1px solid rgba(238, 232, 218, 0.22); background: var(--d-bg); color: var(--d-bone); font: inherit; font-size: 17px; transition: border-color 0.2s ease; }
.d-field input::placeholder { color: #8b9184; }
.d-field input:hover { border-color: rgba(238, 232, 218, 0.4); }
.d-field input:focus { border-color: var(--d-green); outline: none; box-shadow: 0 0 0 3px rgba(108, 200, 50, 0.25); }
.d-field input[aria-invalid="true"] { border-color: #ff8a73; }
.d-err { color: #ffb4a3; font-size: 14px; min-height: 0; }
.d-group { display: flex; align-items: center; gap: 0; width: max-content; border: 1px solid rgba(238, 232, 218, 0.22); border-radius: 999px; overflow: hidden; }
.d-group button { width: 52px; height: 52px; border: 0; background: transparent; color: var(--d-bone); font-size: 24px; cursor: pointer; }
.d-group button:hover { background: var(--d-panel-2); }
.d-group output { min-width: 56px; text-align: center; font-family: var(--d-display); font-weight: 900; font-size: 24px; font-variant-numeric: tabular-nums; }
.d-nights { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.d-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.d-chip { position: relative; }
.d-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.d-chip span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(238, 232, 218, 0.24); font-family: var(--d-display); font-weight: 700; font-size: 16px; transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; }
.d-chip input:checked + span { background: var(--d-green); color: #0f130c; box-shadow: none; }
.d-chip input:focus-visible + span { outline: 2px solid var(--d-green-hi); outline-offset: 3px; }
.d-form .d-btn { width: 100%; margin-top: 4px; border: 0; cursor: pointer; }
.d-fine { font-size: 14px; color: var(--d-muted); line-height: 1.5; }
.d-done { text-align: left; display: grid; gap: 14px; }
.d-done h3 { font-family: var(--d-display); font-weight: 900; text-transform: uppercase; font-size: clamp(34px, 3.6vw, 52px); line-height: 0.95; letter-spacing: -0.02em; color: var(--d-green); }
.d-done p { font-size: 18px; line-height: 1.5; color: var(--d-bone); }

/* 5. Hotels */
.d-hotels { padding-block: var(--d-space); background: var(--d-panel); }
.d-hotel-grid { margin-top: clamp(36px, 4vw, 56px); display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.d-hotel { background: var(--d-bg); border: 1px solid var(--d-line); border-radius: 18px; padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px; align-content: start; }
.d-hotel h3 { font-family: var(--d-display); font-weight: 900; font-size: clamp(26px, 2.4vw, 36px); text-transform: uppercase; letter-spacing: -0.01em; line-height: 1; }
.d-hotel address { font-style: normal; color: var(--d-muted); font-size: 16px; }
.d-rate { font-family: var(--d-display); font-weight: 900; font-size: clamp(48px, 5vw, 72px); line-height: 0.9; }
.d-rate small { font-family: var(--font); font-weight: 400; font-size: 16px; color: var(--d-muted); margin-left: 8px; }
.d-hotel dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 16px; }
.d-hotel dt { color: var(--d-muted); }
.d-hotel-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.d-hotel-actions a.d-tel { color: var(--d-bone); font-size: 16px; min-height: 44px; display: inline-flex; align-items: center; }
.d-hotels-note { margin-top: 24px; color: var(--d-muted); font-size: 16px; }
.d-hotels-note a, .d-faq a, .d-place a.d-link { color: var(--d-bone); text-decoration-color: var(--d-green); text-underline-offset: 4px; }

/* 6. Good to know */
.d-faq { padding-block: var(--d-space); }
.d-faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.d-faq-list { border-top: 1px solid var(--d-line); }
.d-faq details { border-bottom: 1px solid var(--d-line); }
.d-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 76px; font-family: var(--d-display); font-weight: 700; font-size: clamp(20px, 1.8vw, 26px); }
.d-faq summary::-webkit-details-marker { display: none; }
.d-faq summary i { flex: none; width: 18px; height: 18px; position: relative; }
.d-faq summary i::before, .d-faq summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--d-green); transition: transform 0.3s ease; }
.d-faq summary i::after { transform: rotate(90deg); }
.d-faq details[open] summary i::after { transform: rotate(0deg); }
.d-faq details p { padding: 0 0 26px; color: var(--d-muted); font-size: 18px; line-height: 1.55; max-width: 56ch; }
.d-faq-side .d-lead { margin-top: 22px; }
.d-faq-side .d-btn { margin-top: 30px; }

/* 7. Where */
.d-place { padding-block: clamp(72px, 8vw, 120px); border-top: 1px solid var(--d-line); }
.d-place-grid { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.d-place address { font-style: normal; font-family: var(--d-display); font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; line-height: 0.95; font-size: clamp(34px, 4.6vw, 68px); }
.d-place-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Phones keep a Register button in reach until the form is on screen. */
.d-sticky { display: none; }
@media (max-width: 760px) {
  .d-sticky { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; transition: transform 0.35s cubic-bezier(.2,.7,.2,1), opacity 0.35s ease; }
  .d-sticky .d-btn { width: 100%; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); }
  .d-sticky.is-away { transform: translateY(140%); opacity: 0; pointer-events: none; }
}

@media (max-width: 960px) {
  .d-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 112px; }
  .d-hero-art { justify-self: start; width: min(100%, 460px); }
  .d-register-grid, .d-faq-grid { grid-template-columns: 1fr; }
  .d-hotel-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .d-count { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .d-count span { font-size: 12px; letter-spacing: 0.06em; }
  .d-person { grid-template-columns: 1fr; gap: 6px; }
  .d-tabs { grid-template-columns: 1fr; }
  .d-tab { border-right: 0; border-bottom: 1px solid var(--d-line); min-height: 72px; }
  .d-tab:last-child { border-bottom: 0; }
  .d-session { grid-template-columns: 1fr; gap: 8px; }
  .d-row { grid-template-columns: 1fr; }
  .d-hero-actions .d-btn { width: 100%; }
}

/* Motion: things arrive as you reach them. */
.d-in { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d-delay, 0s); }
.d-in.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .d-in { opacity: 1; transform: none; transition: none; }
  .d-lineup li:hover h3 { transform: none; }
  .d-btn-primary:hover { transform: none; }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.d-problem { color: #ffb4a3; font-size: 16px; line-height: 1.5; }
.d-form button[disabled] { opacity: 0.6; cursor: progress; }

/* Speakers, from Jared's Dominion flyer PSD (Oct 29): each cutout at the flyer's own scale on the flyer's own ground, black and white the way
   the flyer prints them; a speaker comes into color when you point at them. Names in Degular, the flyer's face. */
@font-face { font-family: "Degular"; src: url("/assets/fonts/degular-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Degular"; src: url("/assets/fonts/degular-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
.d-speakers { position: relative; isolation: isolate; border-top: 0; }
.d-speakers::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; background: radial-gradient(ellipse 70% 60% at 50% 62%, rgba(108, 200, 50, 0.16), rgba(21, 23, 20, 0) 70%), url("/assets/photos/speakers/ground-2160.webp") center / cover no-repeat; opacity: 0.9; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 78%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 78%, transparent); }
@media (max-width: 760px) { .d-speakers::before { background-image: radial-gradient(ellipse 90% 50% at 50% 50%, rgba(108, 200, 50, 0.14), rgba(21, 23, 20, 0) 70%), url("/assets/photos/speakers/ground-1280.webp"); } }
.d-lineup { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 clamp(10px, 1.4vw, 22px); }
.d-lineup li, .d-lineup li:last-child { border: 0; }
.d-sp { position: relative; }
.d-sp-fig { position: relative; margin: 0; height: clamp(250px, 29vw, 440px); display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
.d-sp-fig img { height: calc(var(--k) * 100%); width: auto; max-width: none; filter: grayscale(1) contrast(1.12) brightness(0.92); transform-origin: 50% 100%; transition: filter 0.6s ease, transform 0.7s cubic-bezier(.2,.7,.2,1); }
.d-sp-fig img { -webkit-mask-image: linear-gradient(to top, transparent 2%, #000 26%); mask-image: linear-gradient(to top, transparent 2%, #000 26%); }
.d-sp:hover .d-sp-fig img, .d-sp:focus-within .d-sp-fig img { filter: none; transform: scale(1.035); }
.d-sp .d-person { display: block; position: relative; z-index: 1; padding: 16px 0 0; border-top: 1px solid var(--d-line); }
.d-sp .d-person h3 { font-family: "Degular", var(--d-display); font-weight: 700; font-size: clamp(20px, 1.75vw, 30px); letter-spacing: 0; line-height: 1; transform: none; }
.d-sp .d-person p { font-family: "Degular", var(--d-display); margin-top: 6px; font-size: clamp(13px, 0.95vw, 15px); letter-spacing: 0.08em; }
.d-lineup .d-sp:hover h3 { transform: none; }
@media (max-width: 980px) { .d-lineup { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; } .d-sp-fig { height: clamp(240px, 46vw, 400px); } }
@media (max-width: 560px) { .d-lineup { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; } .d-sp-fig { height: 68vw; } }
@media (prefers-reduced-motion: reduce) { .d-sp-fig img { transition: none; } .d-sp:hover .d-sp-fig img { transform: none; } }
