/* ============================================================
   assm — design tokens
   ============================================================ */
:root {
  --ink: #4a3833;
  --paper: #fbf3ee;
  --paper-dim: #f3e7e0;
  --paper-light: #fffaf7;
  --taupe-deep: #8f6f61;
  --clay: #b8756e;
  --clay-deep: #925955;
  --taupe: #b49a8c;
  --champagne-gold: #ead39f;
  --champagne-gold-rgb: 234, 211, 159;
  --clay-rgb: 184, 117, 110;
  --taupe-rgb: 180, 154, 140;
  --clay-deep-rgb: 146, 89, 85;
  --muted: #75635d;
  --line: #d6beb1;
  --dark: #2b211e;
  --dark-line: rgba(251, 246, 242, 0.16);
  --font-head: "Noto Serif SC", "Songti SC", "Times New Roman", serif;
  --font-display: "Noto Serif SC", "Songti SC", "Times New Roman", serif;
  --font-body:
    "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --wrap: 1160px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  max-width: 22ch;
}

p {
  margin: 0 0 1em;
  color: var(--muted);
  max-width: 62ch;
}

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}
.section-dark {
  background: var(--dark);
  color: var(--paper);
}
.section-dark p {
  color: rgba(251, 246, 242, 0.68);
}
.section-dim {
  background: var(--paper-dim);
}
#about {
  background: var(--paper);
}

.eyebrow {
  color: var(--clay-deep);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.section-head {
  margin-bottom: 2.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--taupe-deep);
  color: var(--paper);
  font-family: var(--font-body);
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border-radius: 2px;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.btn:hover {
  background: var(--taupe);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--dark-line);
  color: inherit;
}
.btn-outline:hover {
  border-color: var(--clay);
  color: var(--clay);
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(43, 33, 30, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  color: var(--paper);
  border-bottom: 1px solid var(--dark-line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.section-rail {
  position: fixed;
  top: 50%;
  right: clamp(0.5rem, 1.5vw, 1.25rem);
  z-index: 45;
  transform: translateY(-50%);
}
.section-rail-links {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
}
.section-rail-links::before {
  content: "";
  position: absolute;
  top: 1rem;
  right: 0.75rem;
  bottom: 1rem;
  width: 1px;
  background: var(--taupe);
}
.section-rail-links a {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  color: var(--ink);
}
.section-rail-label {
  position: absolute;
  right: calc(100% + 0.65rem);
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--line);
  background: var(--paper-light);
  color: var(--ink);
  font-size: 0.75rem;
  line-height: 1.3;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(4px);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0.16s;
  pointer-events: none;
}
.section-rail-links a:hover .section-rail-label {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
.section-rail-dot {
  width: 0.65rem;
  height: 0.65rem;
  flex: 0 0 auto;
  border: 1px solid var(--taupe-deep);
  border-radius: 50%;
  background: var(--paper);
  transition:
    background 0.18s ease,
    transform 0.18s ease;
}
.section-rail-links a:hover .section-rail-dot,
.section-rail-links a:focus-visible .section-rail-dot,
.section-rail-links a.is-active .section-rail-dot {
  background: var(--clay);
  transform: scale(1.2);
  box-shadow: 0 0 0 3px rgba(var(--clay-rgb), 0.18);
}
main section[id] {
  scroll-margin-top: 6rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 1.05rem;
}
.brand img {
  height: 34px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.8rem;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-size: 0.94rem;
  position: relative;
  padding: 0.2rem 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--clay);
  transition: right 0.25s ease;
}
.main-nav a:hover::after {
  right: 0;
}

.lang-switch {
  display: flex;
  flex-shrink: 0;
  border: 1px solid var(--dark-line);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 600;
}
.lang-switch a {
  flex-shrink: 0;
  padding: 0.4rem 0.85rem;
  color: rgba(251, 249, 244, 0.55);
  white-space: nowrap;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.lang-switch a.is-active {
  background: var(--clay);
  color: #fff;
}
.lang-switch a:not(.is-active):hover {
  color: var(--paper);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--paper);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .main-nav {
    display: none;
  }
  .nav-toggle {
    display: none;
  }
}
/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  overflow: hidden;
  background: #050505;
}
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.12) 0%,
    rgba(0, 0, 0, 0.9) 100%
  );
}
.hero .wrap {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.hero-eyebrow {
  font-family: var(--font-body);
  color: var(--champagne-gold);
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
  opacity: 0;
  animation: rise 0.7s ease 0.1s forwards;
}
.hero h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.6rem);
  max-width: 16ch;
  opacity: 0;
  animation: rise 0.8s ease 0.25s forwards;
}
.hero-note {
  color: rgba(251, 246, 242, 0.66);
  max-width: 40ch;
  margin-top: 0.85rem;
  opacity: 0;
  animation: rise 0.8s ease 0.35s forwards;
}
.hero .btn {
  margin-top: 1.5rem;
  opacity: 0;
  animation: rise 0.8s ease 0.45s forwards;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .venn-links path {
    animation: none;
    opacity: 0.5;
  }
  .venn-links .flight {
    display: none;
  }
}

/* ============================================================
   Highlights — three overlapping circles (a subset relationship)
   ============================================================ */
.highlights {
  background: var(--paper-dim);
  color: var(--ink);
  padding: clamp(3rem, 7vw, 5rem) 0;
}
@keyframes flow {
  to {
    stroke-dashoffset: -160;
  }
}
.highlights-head {
  margin: 0 auto 2rem;
  text-align: center;
}
.highlights-head h2 {
  max-width: none;
  color: var(--ink);
}
.venn {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  max-width: 960px;
  margin: 0 auto;
}
.venn-links {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: visible;
}
.venn-links path {
  fill: none;
  stroke: rgba(var(--clay-deep-rgb), 0.52);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-dasharray: 1.6 2.4;
  animation: flow 3.5s linear infinite;
}
.venn-links .flight {
  fill: var(--clay);
  filter: drop-shadow(0 0 3px rgba(var(--clay-rgb), 0.8));
}
.venn-circle {
  position: relative;
  z-index: 1;
  width: min(100%, 260px);
  aspect-ratio: 1;
  height: auto;
  justify-self: center;
  border: 2px solid var(--taupe-deep);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-head);
  mix-blend-mode: normal;
  box-shadow: 0 0.4rem 1.2rem rgba(74, 56, 51, 0.1);
  transition: transform 0.3s ease;
}
.venn-1 {
  transform: translateY(-16px);
}
.venn-2 {
  transform: translateY(16px);
}
.venn-3 {
  transform: translateY(-16px);
}
.venn-1 {
  background: radial-gradient(
    circle at 40% 40%,
    rgba(var(--champagne-gold-rgb), 0.52),
    rgba(var(--champagne-gold-rgb), 0.22) 70%
  );
}
.venn-2 {
  background: radial-gradient(
    circle at 60% 40%,
    rgba(var(--clay-rgb), 0.32),
    rgba(var(--clay-rgb), 0.12) 70%
  );
}
.venn-3 {
  background: radial-gradient(
    circle at 50% 60%,
    rgba(var(--taupe-rgb), 0.4),
    rgba(var(--taupe-rgb), 0.16) 70%
  );
}
.venn-circle .l1 {
  font-size: 1.35rem;
}
.venn-circle .l2 {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.3rem;
  font-family: var(--font-body);
}

@media (max-width: 700px) {
  .venn {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 560px;
  }
  .venn-links {
    display: none;
  }
  .venn-1,
  .venn-2,
  .venn-3 {
    transform: none;
    background: none;
  }
  .venn-circle {
    width: 100%;
    aspect-ratio: auto;
    min-height: 0;
    padding: 1.2rem 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    text-align: center;
  }
  .venn-circle .l1 {
    border-right: 1px solid var(--line);
    padding-right: 0.65rem;
  }
  .venn-circle .l1,
  .venn-circle .l2 {
    font-size: 1.25rem;
    line-height: 1.3;
    margin: 0;
  }
  .venn-circle .l2 {
    padding-left: 0.65rem;
  }
}

/* ============================================================
   Mission
   ============================================================ */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}
.mission-row {
  display: block;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}
.mission-row:last-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 68ch);
}
.mission-text {
  max-width: 68ch;
}
.mission-text h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}
@media (max-width: 760px) {
  .mission-grid {
    grid-template-columns: 1fr;
  }
}

/* reveal-on-scroll (single subtle pass, not per-card noise) */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Core values
   ============================================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  gap: 1rem;
}
.values-grid.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}
.value-card {
  background: var(--paper);
  border: 1px solid var(--line);
}
.value-content {
  padding: 1.75rem 1.5rem;
}
.value-content h3 {
  font-size: 1.15rem;
  margin-bottom: 0.9rem;
}
.value-content ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.value-content li {
  padding: 0.3rem 0;
  border-top: 1px solid var(--line);
}
.value-content li:first-child {
  border-top: 0;
}

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

/* ============================================================
   Leadership
   ============================================================ */
.leaders-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}
.leader img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 2px;
  margin-bottom: 0.9rem;
}
.leader h3 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}
.leader p {
  font-size: 0.85rem;
  margin: 0;
}
@media (max-width: 900px) {
  .leaders-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   Schedule — tabbed days (a real sequence, numbering earns its place)
   ============================================================ */
.schedule-fees-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.schedule-column,
.fees-column {
  min-width: 0;
}
.fees-column .section-head {
  margin-bottom: 2rem;
}
.day-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.day-tab {
  padding: 0.6rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
  background: transparent;
  font-family: var(--font-body);
}
.day-tab.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.day-panel {
  display: none;
}
.day-panel.is-active {
  display: block;
  animation: rise 0.4s ease;
}
.day-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  max-width: 520px;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.day-panel-head h3 {
  font-size: 1.3rem;
}
.day-span {
  font-size: 0.85rem;
  color: var(--clay-deep);
  font-weight: 600;
}

.fees-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.fee-card {
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: var(--paper-light);
}
.fee-label {
  margin-bottom: 0.75rem;
  color: var(--clay-deep);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.fee-amount {
  margin-bottom: 0.6rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
}
.fee-options {
  display: grid;
  gap: 1rem;
}
.fee-option + .fee-option {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.fee-option h3 {
  margin-bottom: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
}
.fee-option-amount {
  margin-bottom: 0.25rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}
.fee-option p:last-child {
  margin: 0;
  font-size: 0.9rem;
}
.fee-card p:last-child,
.fees-note {
  margin: 0;
  font-size: 0.9rem;
}
.fees-note {
  margin-top: 1.25rem;
  color: var(--clay-deep);
}
@media (max-width: 900px) {
  .schedule-fees-layout {
    grid-template-columns: 1fr;
  }
  .fees-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .fees-grid {
    grid-template-columns: 1fr;
  }
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 520px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0 0.85rem 1.9rem;
}
.timeline-dot {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--muted);
}
.timeline-item.type-session .timeline-dot {
  border-color: var(--taupe-deep);
  background: var(--taupe-deep);
}
.timeline-item.type-worship .timeline-dot {
  border-color: var(--ink);
  background: var(--ink);
}
.timeline-item.type-prayer .timeline-dot {
  border-color: var(--clay);
}
.timeline-item.type-break .timeline-dot {
  border-color: var(--line);
  background: var(--paper-dim);
}
.timeline-item.type-group .timeline-dot {
  border-color: var(--clay);
  background: var(--clay);
}
.timeline-time {
  font-family: var(--font-head);
  color: var(--clay-deep);
  font-size: 0.95rem;
}
.timeline-label {
  font-size: 0.95rem;
}
.timeline-item.type-session .timeline-label {
  font-weight: 600;
}
.timeline-item.type-break .timeline-label,
.timeline-item.type-end .timeline-label {
  color: var(--muted);
}

/* ============================================================
   Registration steps
   ============================================================ */
.stepper {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 1.5rem;
}
.stepper-item {
  position: relative;
}
.stepper-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--clay);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.05rem;
  position: relative;
  z-index: 2;
}
.stepper-item:not(:nth-child(4n))::after {
  content: "";
  position: absolute;
  top: 1.3rem;
  left: calc(50% + 1.3rem);
  width: calc(100% - 2.6rem);
  height: 1px;
  background: var(--line);
}
.stepper-item h4 {
  font-family: var(--font-head);
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 500;
  margin: 1rem 0 0.4rem;
}
.stepper-item p {
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 22ch;
}
.registration-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}
.registration-actions .btn-outline {
  border-color: var(--line);
}
.registration-actions .btn-outline:hover {
  border-color: var(--clay);
}

@media (max-width: 860px) {
  .stepper {
    grid-template-columns: repeat(2, 1fr);
  }
  .stepper-item:not(:nth-child(4n))::after {
    display: none;
  }
}
@media (max-width: 520px) {
  .stepper {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Contact form
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}
.contact-form-column {
  min-width: 0;
}
.contact-form-column .section-head {
  margin-bottom: 2.75rem;
}
.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 620px;
}
.form-status {
  margin: 0;
  color: var(--clay-deep);
  font-size: 0.9rem;
}
.contact-captcha {
  min-height: 78px;
  overflow: hidden;
}
.contact-form button[disabled] {
  cursor: wait;
  opacity: 0.65;
}
.contact-map {
  min-width: 0;
}
.contact-map-heading {
  margin-bottom: 1.5rem;
}
.contact-map-heading .eyebrow {
  margin-bottom: 0.35rem;
}
.contact-map-heading h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.contact-map-frame {
  min-height: 440px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-dim);
}
.contact-map-frame iframe {
  display: block;
  width: 100%;
  height: 440px;
  border: 0;
  filter: sepia(0.15) saturate(0.8);
}
.contact-map-link {
  display: inline-flex;
  gap: 0.45rem;
  margin-top: 1rem;
  color: var(--clay-deep);
  font-size: 0.9rem;
  font-weight: 600;
}
.contact-map-link:hover {
  color: var(--taupe-deep);
}

.field {
  position: relative;
}
.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 1.15rem 1rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--paper);
  color: var(--ink);
}
.field textarea {
  min-height: 120px;
  resize: vertical;
  padding-top: 1.4rem;
}

/* Floating label: sits over the input at rest, rises above it on focus/fill */
.field label {
  position: absolute;
  left: 1rem;
  top: 1.15rem;
  font-size: 0.95rem;
  color: var(--muted);
  pointer-events: none;
  transition:
    top 0.15s ease,
    font-size 0.15s ease,
    color 0.15s ease;
}
.field textarea + label {
  top: 1.35rem;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--taupe);
  outline-offset: 1px;
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  top: 0.4rem;
  font-size: 0.72rem;
  color: var(--taupe-deep);
}

@media (max-width: 820px) {
  #contact .wrap {
    padding-inline: clamp(1rem, 5vw, 1.75rem);
  }
  .contact-layout {
    min-width: 0;
    grid-template-columns: 1fr;
    gap: clamp(2.5rem, 9vw, 4rem);
  }
  .contact-form {
    width: 100%;
  }
  .field input,
  .field textarea {
    padding: 0.95rem 0.9rem 0.45rem;
    font-size: 16px;
  }
  .field textarea {
    min-height: 110px;
    padding-top: 1.3rem;
  }
  .field label {
    left: 0.9rem;
    top: 0.95rem;
  }
  .field textarea + label {
    top: 1.25rem;
  }
  .field input:focus + label,
  .field input:not(:placeholder-shown) + label,
  .field textarea:focus + label,
  .field textarea:not(:placeholder-shown) + label {
    top: 0.3rem;
  }
  .contact-map-frame,
  .contact-map-frame iframe {
    min-height: 360px;
    height: 360px;
  }
}

.announcement-dialog {
  width: min(calc(100% - 2rem), 34rem);
  max-height: min(80vh, 38rem);
  overflow: auto;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--paper-light);
  color: var(--ink);
  box-shadow: 0 1rem 4rem rgba(0, 0, 0, 0.28);
}
.announcement-dialog::backdrop {
  background: rgba(20, 15, 13, 0.68);
  backdrop-filter: blur(3px);
}
.announcement-dialog-inner {
  position: relative;
  padding: clamp(1.5rem, 6vw, 2.5rem);
}
.announcement-dialog-inner h2 {
  margin-bottom: 1rem;
}
.announcement-dialog-inner p:not(.eyebrow) {
  white-space: pre-line;
}
.announcement-image {
  display: block;
  width: 100%;
  max-height: min(72vh, 42rem);
  object-fit: contain;
}
.announcement-dialog-inner > form:last-child {
  margin-top: 1.5rem;
}
.announcement-dialog-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
}
.announcement-close {
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
}
.resource-dialog {
  width: min(calc(100% - 2rem), 46rem);
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.resource-option {
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: var(--paper);
}
.resource-option h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.resource-option .btn {
  font-size: 0.85rem;
  padding: 0.65rem 0.9rem;
}
.resource-unavailable {
  display: inline-block;
  color: var(--muted);
  font-size: 0.85rem;
}
.resource-dialog-footer {
  margin-top: 1.5rem;
}
@media (max-width: 560px) {
  .resource-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--dark);
  color: rgba(251, 246, 242, 0.72);
  padding: 2rem 0 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--dark-line);
}
.footer-grid h4 {
  font-family: var(--font-head);
  color: var(--paper);
  font-size: 1rem;
  margin: 0 0 0.55rem;
  font-weight: 500;
}
.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  font-size: 0.82rem;
}
.footer-grid p {
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0;
}
.footer-grid a:hover {
  color: var(--clay);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.9rem;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1.5rem;
  }
  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
  .footer-grid ul {
    display: grid;
    gap: 0.25rem;
  }
}

/* focus visibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--taupe);
  outline-offset: 2px;
}
