/* Kelvinch supplies Armenian glyphs after the Latin serif fonts. */
@font-face {
  font-family: 'Kelvinch';
  src: url("../fonts/kelvinch.de4fc76389ce.woff2") format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Kelvinch';
  src: url("../fonts/kelvinch-bold.2543490a82ca.woff2") format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Kelvinch';
  src: url("../fonts/kelvinch-italic.fab210dd7a09.woff2") format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Navy ink, warm cream, soft relief, and frosted surfaces. */
:root {
  color-scheme: light;
  --navy: #1a2744;
  --navy2: #304563;
  --cream: #f3efe5;
  --cream-light: #fcfaf4;
  --accent: #2e6173;
  --text: #26344b;
  --text-muted: #5d6875;
  --line: rgba(26, 39, 68, 0.13);
  --glass: rgba(252, 250, 244, 0.82);
  --radius: 26px;
  --shadow: 9px 9px 24px rgba(126, 115, 94, 0.15), -9px -9px 24px rgba(255, 255, 255, 0.85);
  --shadow-hover: 13px 17px 30px rgba(126, 115, 94, 0.19), -9px -9px 24px rgba(255, 255, 255, 0.95);
  --shadow-inset: inset 4px 4px 10px rgba(126, 115, 94, 0.12), inset -4px -4px 10px rgba(255, 255, 255, 0.9);
  --serif: 'Playfair Display', 'Kelvinch', Georgia, serif;
  --sans: 'Arial', 'Kelvinch', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body {
  font-family: var(--sans);
  background: radial-gradient(ellipse at 95% 5%, rgba(46, 97, 115, 0.07), transparent 32%), var(--cream);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
button { font: inherit; }
main { flex: 1; min-width: 0; }
h1, h2, h3 { text-wrap: balance; }
::selection { background: var(--navy); color: var(--cream-light); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.7rem 1.2rem;
  border-radius: 16px;
  background: var(--cream-light);
  color: var(--navy);
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform 250ms var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* Floating glass navigation. */
.navbar {
  position: sticky;
  top: 18px;
  z-index: 100;
  width: calc(100% - 48px);
  max-width: 1240px;
  margin: 18px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(26, 39, 68, 0.07), inset 0 1px 0 #fff;
}
.nav-inner {
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 86px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 330px;
  min-width: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}
.nav-brand-name { min-width: 0; }
.nav-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 3px 3px 8px rgba(126, 115, 94, 0.17), -3px -3px 8px #fff;
}
.nav-links { display: flex; align-items: center; gap: 0.15rem; list-style: none; }
.nav-links a {
  display: block;
  color: var(--text-muted);
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  font-size: 0.83rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 250ms ease, background 250ms ease, box-shadow 250ms ease;
}
.nav-links a:hover { color: var(--navy); background: rgba(255, 255, 255, 0.65); }
.nav-links a.active { color: var(--navy); background: var(--cream); box-shadow: var(--shadow-inset); }
.nav-lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  margin-left: 0.5rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--line);
}
.nav-links .lang-pill { padding: 0.55rem 0.45rem; font-size: 0.75rem; }
.nav-links .lang-pill--active { color: var(--navy); font-weight: 700; background: rgba(26, 39, 68, 0.07); }
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  cursor: pointer;
  background: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  box-shadow: 3px 3px 8px rgba(126, 115, 94, 0.14), -3px -3px 8px #fff;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 350ms var(--ease), opacity 200ms ease;
}
.nav-toggle[aria-expanded='true'] { box-shadow: var(--shadow-inset); }
.nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Home: editorial copy beside a sculpted logo and glass service panel. */
.hero { padding: 4.5rem 2rem 5rem; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  max-width: 1160px;
  margin: 0 auto;
}
.hero-copy { min-width: 0; }
.hero-ornament, .stream-ornament {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.hero-line { display: block; width: 42px; height: 1px; background: currentColor; opacity: 0.35; }
.hero-cross { font-size: 1.45rem; line-height: 1; color: var(--accent); }
.hero-tagline {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4.4vw, 3.85rem);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
}
.hero-sub { max-width: 420px; font-size: 1.05rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 2rem; }
.hero-actions { display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap; }
.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-underline-offset: 4px;
}
.hero-location:hover { color: var(--accent); text-decoration: underline; }
.hero-visual {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 510px;
  padding: 2.75rem 1.5rem 1.5rem;
  background: radial-gradient(ellipse at 25% 10%, rgba(125, 155, 170, 0.28), transparent 65%), linear-gradient(145deg, var(--navy2), var(--navy));
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 230px 230px 36px 36px;
  box-shadow: 16px 20px 40px rgba(26, 39, 68, 0.19), -10px -10px 28px #fff, inset 0 1px 1px rgba(255, 255, 255, 0.2);
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(243, 239, 229, 0.14);
  border-radius: 215px 215px 24px 24px;
  z-index: -1;
  pointer-events: none;
}
.hero-emblem { position: relative; display: grid; place-items: center; flex: 1; padding: 1rem 0 2rem; }
.emblem-ring {
  display: grid;
  place-items: center;
  width: min(100%, 310px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(145deg, #344965, #1a2744);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 13px 13px 28px rgba(7, 16, 34, 0.45), -10px -10px 24px rgba(100, 127, 155, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.hero-logo {
  width: 81%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(7, 16, 34, 0.2);
}
.emblem-spark { position: absolute; color: var(--cream); font-size: 1.3rem; }
.emblem-spark--one { right: 6%; top: 17%; }
.emblem-spark--two { left: 7%; bottom: 23%; font-size: 0.8rem; opacity: 0.65; }
.hero-schedule {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(252, 250, 244, 0.25);
  background: rgba(252, 250, 244, 0.1);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 20px rgba(7, 16, 34, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: var(--cream-light);
}
.hero-schedule div { display: flex; flex-direction: column; justify-content: center; gap: 0.45rem; padding: 1.1rem; }
.hero-schedule div + div { border-left: 1px solid rgba(252, 250, 244, 0.18); }
.hero-schedule span { color: #d7dce3; font-size: 0.7rem; line-height: 1.5; }
.hero-schedule strong { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; line-height: 1.4; }

/* Buttons press into the surface, rather than bouncing. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 50px;
  padding: 0.85rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  cursor: pointer;
  transition: transform 350ms var(--ease), box-shadow 350ms var(--ease), background 250ms ease;
}
.btn-youtube, .btn-primary {
  background: linear-gradient(145deg, var(--navy2), var(--navy));
  color: var(--cream-light);
  border-color: rgba(26, 39, 68, 0.12);
  box-shadow: 5px 5px 12px rgba(26, 39, 68, 0.19), -5px -5px 12px rgba(255, 255, 255, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.btn-outline { background: var(--cream); color: var(--navy); border-color: var(--line); box-shadow: var(--shadow); }
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.btn-youtube:hover, .btn-primary:hover { box-shadow: 0 10px 24px rgba(26, 39, 68, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.btn:active { transform: translateY(1px); box-shadow: var(--shadow-inset); }
.btn-youtube:active, .btn-primary:active { box-shadow: inset 4px 4px 10px rgba(7, 16, 34, 0.4), inset -3px -3px 8px rgba(100, 127, 155, 0.2); }
.btn svg { fill: currentColor; }

/* Shared headings and home sections. */
.section { max-width: 1160px; width: 100%; margin: 0 auto; padding: 4rem 2rem 5rem; }
.section-accent { width: 36px; height: 4px; border-radius: 4px; background: var(--accent); margin: 0 auto 1.25rem; box-shadow: 2px 2px 5px rgba(26, 39, 68, 0.12); }
.premium-heading, .section-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin-bottom: 1.15rem;
}
.section-title { text-align: center; margin-bottom: 2rem; }
.welcome-section { padding: 4rem 2rem 5rem; }
.welcome-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 4rem;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.welcome-inner .section-accent { margin-left: 0; grid-column: 1; }
.welcome-inner .premium-heading, .welcome-text { grid-column: 1; }
.welcome-text { color: var(--text-muted); line-height: 1.85; font-size: 0.96rem; }
.scripture {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: center;
  padding: 2rem;
  border-radius: 22px;
  background: var(--cream);
  box-shadow: var(--shadow-inset);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--navy);
  line-height: 1.65;
}
.scripture cite { display: block; margin-top: 1.25rem; font-family: var(--sans); font-style: normal; font-size: 0.7rem; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; }
.join-section, .ergaran-features-section, .ergaran-modes-section { padding: 2rem 2rem 5.5rem; }
.join-inner, .ergaran-features-inner, .ergaran-modes-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.join-subtitle, .ergaran-subtitle, .upcoming-events-subtitle { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 2.5rem; }
.join-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }

/* One soft-surface treatment across all pages. */
.join-card, .service-card, .address-card, .event-card, .video-card, .ergaran-feature-card, .ergaran-mode-card, .blog-card, .watch-unavailable {
  background: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}
.join-card, .video-card, .blog-card, .ergaran-feature-card {
  transition: transform 450ms var(--ease), box-shadow 450ms var(--ease), border-color 350ms ease;
}
.join-card:hover, .join-card:focus-visible, .video-card:hover, .video-card:focus-visible, .blog-card:hover, .blog-card:focus-visible, .ergaran-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(46, 97, 115, 0.22);
}
.join-card { display: block; padding: 1.75rem 1.4rem 2rem; position: relative; text-align: left; }
.join-card-icon, .ergaran-feature-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 17px;
  background: var(--cream);
  color: var(--accent);
  box-shadow: var(--shadow-inset);
  margin-bottom: 1.5rem;
}
.join-card-label { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--navy); margin-bottom: 0.75rem; line-height: 1.35; }
.join-card-value { font-size: 0.83rem; color: var(--text); margin-bottom: 0.35rem; }
.join-card-note { font-size: 0.75rem; color: var(--text-muted); }
.join-card-arrow {
  position: absolute;
  right: 1.4rem;
  top: 2rem;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  color: var(--accent);
  transition: transform 400ms var(--ease), background 250ms ease;
}
.join-card:hover .join-card-arrow, .join-card:focus-visible .join-card-arrow { transform: translateX(4px); background: var(--cream-light); }

/* Dark inset glass callouts. */
.stream-section, .ergaran-cta-section {
  position: relative;
  isolation: isolate;
  width: calc(100% - 64px);
  max-width: 1160px;
  margin: 0 auto 5rem;
  padding: 4rem 2rem;
  background: radial-gradient(ellipse at 15% 0%, rgba(118, 149, 168, 0.25), transparent 65%), linear-gradient(140deg, var(--navy2), var(--navy));
  color: var(--cream-light);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 32px;
  text-align: center;
  box-shadow: 12px 12px 30px rgba(26, 39, 68, 0.16), -8px -8px 24px #fff;
}
.stream-section::before, .ergaran-cta-section::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(252, 250, 244, 0.13);
  border-radius: 22px;
  pointer-events: none;
  z-index: -1;
}
.stream-inner, .ergaran-cta-inner { max-width: 580px; margin: 0 auto; }
.stream-ornament, .ergaran-cta-section .hero-ornament { justify-content: center; color: var(--cream); }
.stream-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cream); box-shadow: 0 0 0 6px rgba(252, 250, 244, 0.08); }
.stream-section h2, .ergaran-cta-section h2 { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 500; line-height: 1.3; margin-bottom: 1rem; }
.stream-section p, .ergaran-cta-section p { font-size: 0.95rem; color: #d4dbe4; margin-bottom: 2rem; line-height: 1.8; }
:is(.stream-section, .ergaran-hero, .ergaran-cta-section) :is(.btn-youtube, .btn-primary) {
  background: linear-gradient(145deg, var(--cream-light), #e9e4d8);
  color: var(--navy);
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: 6px 6px 16px rgba(7, 16, 34, 0.26), -4px -4px 12px rgba(100, 127, 155, 0.18);
}
:is(.stream-section, .ergaran-hero, .ergaran-cta-section) .btn:hover { box-shadow: 0 12px 26px rgba(7, 16, 34, 0.35), inset 0 1px 0 #fff; }
:is(.stream-section, .ergaran-hero, .ergaran-cta-section) .btn:active { box-shadow: var(--shadow-inset); }
.ergaran-cta-section .hero-cross { color: var(--cream); }
.ergaran-cta-section .ergaran-cta-note { font-size: 0.75rem; color: #d4dbe4; margin-top: 1.5rem; margin-bottom: 0; }

/* Inner-page glass title panels. */
.page-hero {
  position: relative;
  max-width: 1160px;
  width: calc(100% - 64px);
  margin: 3rem auto 0;
  padding: 3.5rem 2rem;
  text-align: center;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: radial-gradient(ellipse at 95% 0%, rgba(46, 97, 115, 0.08), transparent 65%), var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.page-hero::before { content: ''; display: block; width: 30px; height: 4px; background: var(--accent); border-radius: 4px; margin: 0 auto 1.25rem; }
.page-hero h1 { font-family: var(--serif); font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 500; color: var(--navy); line-height: 1.2; letter-spacing: -0.025em; max-width: 850px; margin: 0 auto 1rem; overflow-wrap: anywhere; }
.page-hero p { color: var(--text-muted); font-size: 0.95rem; max-width: 640px; margin: 0 auto; line-height: 1.75; }

/* Services and upcoming events. */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
.service-card { padding: 2.25rem 1.75rem; }
.service-card h2 { font-family: var(--serif); font-size: 1.65rem; font-weight: 500; color: var(--navy); margin-bottom: 0.5rem; }
.service-time { display: inline-block; padding: 0.5rem 0.85rem; border-radius: 10px; background: var(--cream); box-shadow: var(--shadow-inset); font-size: 0.88rem; font-weight: 600; color: var(--accent); margin-bottom: 1.75rem; }
.service-details { list-style: none; display: flex; flex-direction: column; gap: 0.9rem; }
.service-details li { position: relative; padding-left: 1rem; font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; }
.service-details li::before { content: ''; position: absolute; left: 0; top: 0.65em; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.note-box { border: 1px solid rgba(255, 255, 255, 0.8); border-radius: 22px; padding: 1.75rem 2rem; margin-top: 2.5rem; background: var(--glass); color: var(--text-muted); font-size: 0.9rem; line-height: 1.85; box-shadow: var(--shadow-inset); }
.note-box strong { color: var(--navy); }
.upcoming-events { margin-top: 4rem; text-align: center; }
.event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; text-align: left; }
.event-card { display: flex; flex-direction: column; align-items: flex-start; padding: 1.75rem; background: var(--glass); }
.event-date { color: var(--accent); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.event-card h3 { font-family: var(--serif); color: var(--navy); font-size: 1.3rem; font-weight: 500; margin: 0.7rem 0; }
.event-card p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.7; }
.event-time { color: var(--navy); font-size: 0.8rem; font-weight: 600; margin-top: 0.75rem; }
.event-calendar { color: var(--accent); font-size: 0.78rem; font-weight: 600; margin-top: 1.5rem; text-decoration: underline; text-underline-offset: 4px; }
.event-calendar:hover { color: var(--navy); }

/* Location. */
.location-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem; align-items: start; }
.address-card { padding: 2.5rem; }
.address-card .section-accent { margin-left: 0; }
.address-card h2 { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--navy); margin-bottom: 1.25rem; }
.address-text { font-family: var(--serif); font-size: 1.2rem; color: var(--text); line-height: 1.65; margin-bottom: 1.75rem; }
.address-schedule { margin-bottom: 2rem; padding: 0.4rem 1rem; background: var(--cream); border-radius: 16px; box-shadow: var(--shadow-inset); }
.address-schedule-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.35rem 1rem; align-items: center; padding: 0.8rem 0; font-size: 0.83rem; }
.address-schedule-row + .address-schedule-row { border-top: 1px solid var(--line); }
.address-day { font-weight: 600; color: var(--navy); }
.address-time { color: var(--text-muted); }
.address-buttons { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.map-card { border-radius: var(--radius); overflow: hidden; padding: 10px; border: 1px solid rgba(255, 255, 255, 0.8); background: var(--glass); box-shadow: var(--shadow); }
.map-card iframe { width: 100%; height: 460px; border: none; border-radius: 18px; display: block; }

/* Watch and video cards. */
.watch-embed { border-radius: var(--radius); padding: 10px; border: 1px solid rgba(255, 255, 255, 0.8); background: var(--glass); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 2.5rem; }
.watch-embed-wrapper { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--navy); }
.watch-embed-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.watch-unavailable { padding: 3rem 1.5rem; margin-bottom: 2.5rem; text-align: center; }
.watch-unavailable h2 { color: var(--navy); font-family: var(--serif); font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 500; line-height: 1.4; margin-bottom: 1rem; }
.watch-unavailable p { color: var(--text-muted); font-size: 0.9rem; margin: 0 auto 1.75rem; max-width: 520px; }
.watch-cta { text-align: center; padding: 1rem 0; }
.watch-cta p { max-width: 620px; margin: 0 auto 1.75rem; font-size: 0.9rem; color: var(--text-muted); line-height: 1.8; }
.live-badge { display: inline-flex; align-items: center; gap: 0.7rem; background: var(--cream); color: var(--accent); border: 1px solid rgba(255, 255, 255, 0.85); border-radius: 50px; padding: 0.65rem 1.1rem; box-shadow: var(--shadow-inset); font-size: 0.78rem; font-weight: 600; margin-bottom: 1.25rem; }
.live-dot { width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(46, 97, 115, 0.12); }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
.video-card { display: block; padding: 8px; overflow: hidden; }
.video-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; }
.video-title { font-family: var(--serif); font-size: 1rem; font-weight: 500; color: var(--navy); padding: 1rem 0.75rem 0.75rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Ergaran. */
.ergaran-hero {
  width: calc(100% - 64px);
  max-width: 1160px;
  margin: 3rem auto 4rem;
  padding: 4rem 2rem;
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: radial-gradient(ellipse at 50% 0%, rgba(125, 155, 170, 0.28), transparent 65%), linear-gradient(145deg, var(--navy2), var(--navy));
  color: var(--cream-light);
  text-align: center;
  box-shadow: 12px 15px 32px rgba(26, 39, 68, 0.17), -9px -9px 24px #fff;
}
.ergaran-hero-inner { max-width: 650px; margin: 0 auto; }
.ergaran-hero .hero-ornament { justify-content: center; }
.ergaran-hero .hero-cross { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 20px; color: var(--cream); background: rgba(252, 250, 244, 0.06); border: 1px solid rgba(252, 250, 244, 0.14); box-shadow: inset 4px 4px 10px rgba(7, 16, 34, 0.2), inset -4px -4px 10px rgba(100, 127, 155, 0.12); }
.ergaran-hero h1 { font-family: var(--serif); font-size: clamp(3rem, 7vw, 4.5rem); font-weight: 500; line-height: 1.2; letter-spacing: -0.035em; margin-bottom: 1rem; }
.ergaran-tagline { font-family: var(--serif); font-size: 1.3rem; color: var(--cream); margin-bottom: 1.5rem; }
.ergaran-rating-badge { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 0.7rem; background: rgba(252, 250, 244, 0.1); border: 1px solid rgba(252, 250, 244, 0.22); border-radius: 50px; padding: 0.55rem 1.1rem; margin-bottom: 2rem; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.ergaran-stars { color: var(--cream); font-size: 0.85rem; letter-spacing: 2px; }
.ergaran-rating-text { color: #d4dbe4; font-size: 0.8rem; }
.ergaran-hero-cta { margin-bottom: 1.25rem; }
.ergaran-platforms { color: #d4dbe4; font-size: 0.8rem; }
.ergaran-features-grid, .ergaran-modes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
.ergaran-feature-card, .ergaran-mode-card { padding: 2rem; text-align: left; }
.ergaran-feature-card h3, .ergaran-mode-card h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; color: var(--navy); line-height: 1.4; margin-bottom: 0.75rem; }
.ergaran-feature-card p, .ergaran-mode-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.8; }
.ergaran-highlights { padding: 0 2rem 4.5rem; }
.ergaran-highlights-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: center; padding: 2rem; border-radius: 26px; background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.8); box-shadow: var(--shadow-inset); }
.ergaran-highlight { flex: 1; text-align: center; padding: 0.5rem 1rem; }
.ergaran-highlight-value { display: block; font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--navy); margin-bottom: 0.4rem; }
.ergaran-highlight-label { display: block; font-size: 0.78rem; color: var(--text-muted); }
.ergaran-highlight-divider { width: 1px; height: 48px; background: var(--line); flex-shrink: 0; }
.ergaran-mode-number { display: inline-block; font-family: var(--serif); font-size: 2.5rem; color: var(--accent); margin-bottom: 1.25rem; line-height: 1; }

/* Blog filtering, raised date stamps, and a frosted reading surface. */
.blog-category-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem; max-width: 850px; margin: 0 auto 2rem; }
.blog-category-filter-label { font-size: 0.8rem; font-weight: 600; color: var(--navy); margin-right: 0.35rem; }
.blog-category-link, .blog-category-tag, .blog-detail-category { display: inline-block; border: 1px solid var(--line); border-radius: 999px; font-size: 0.72rem; font-weight: 600; line-height: 1.4; padding: 0.4rem 0.8rem; color: var(--accent); }
.blog-category-link { padding: 0.65rem 1rem; background: var(--cream); box-shadow: 3px 3px 8px rgba(126, 115, 94, 0.12), -3px -3px 8px #fff; transition: color 250ms ease, background 250ms ease, box-shadow 250ms ease; }
.blog-category-link:hover, .blog-category-link.is-active { background: var(--navy); color: var(--cream-light); border-color: var(--navy); box-shadow: inset 2px 2px 6px rgba(7, 16, 34, 0.3); }
.blog-list { display: flex; flex-direction: column; gap: 1.75rem; max-width: 850px; margin: 0 auto; }
.blog-card { display: flex; align-items: center; gap: 1.75rem; padding: 2rem; }
.blog-card-date { display: flex; flex-direction: column; justify-content: center; flex-shrink: 0; text-align: center; width: 80px; min-height: 100px; padding: 0.65rem; background: var(--cream); border-radius: 18px; box-shadow: var(--shadow-inset); }
.blog-card-day { font-family: var(--serif); font-size: 2rem; color: var(--navy); line-height: 1.2; }
.blog-card-month { font-size: 0.7rem; color: var(--accent); text-transform: uppercase; font-weight: 700; letter-spacing: 0.06em; }
.blog-card-year { font-size: 0.7rem; color: var(--text-muted); }
.blog-card-body { min-width: 0; }
.blog-card-body h2 { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; color: var(--navy); line-height: 1.35; overflow-wrap: anywhere; }
.blog-card-categories { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }
.blog-category-tag { background: rgba(46, 97, 115, 0.04); font-size: 0.65rem; }
.blog-card-excerpt { font-size: 0.88rem; color: var(--text-muted); margin-top: 0.75rem; line-height: 1.75; overflow-wrap: anywhere; }
.blog-empty { text-align: center; color: var(--text-muted); padding: 3rem 0; }
.blog-author { font-size: 0.75rem; color: var(--text-muted); }
.blog-author strong { color: var(--accent); font-weight: 600; }
.blog-card .blog-author { display: block; margin-top: 0.75rem; }
.page-hero .blog-detail-byline { margin-top: 0.4rem; }
.blog-detail-categories { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 1.25rem; }
.blog-detail-category { background: rgba(255, 255, 255, 0.55); transition: background 250ms ease, color 250ms ease; }
.blog-detail-category:hover { background: var(--navy); color: var(--cream-light); }
.blog-yt-link { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.25rem; padding: 0.65rem 1rem; border-radius: 12px; background: var(--cream); border: 1px solid var(--line); box-shadow: var(--shadow-inset); color: var(--navy); font-size: 0.8rem; font-weight: 600; transition: transform 350ms var(--ease); }
.blog-yt-link:hover { transform: translateY(-2px); }
.blog-yt-link svg path { fill: currentColor; }
.blog-yt-link svg path[fill='white'] { fill: var(--cream-light); }
.blog-post-content { max-width: 850px; margin: 0 auto; padding: clamp(1.5rem, 5vw, 4rem); border-radius: 28px; border: 1px solid rgba(255, 255, 255, 0.85); background: var(--glass); box-shadow: var(--shadow); font-family: 'Georgia', 'Kelvinch', serif; font-size: 1.08rem; line-height: 1.9; overflow-wrap: anywhere; }
.blog-post-content h1, .blog-post-content h2, .blog-post-content h3 { font-family: var(--serif); color: var(--navy); margin: 2rem 0 0.85rem; line-height: 1.35; }
.blog-post-content h1 { font-size: 1.9rem; }
.blog-post-content h2 { font-size: 1.6rem; }
.blog-post-content h3 { font-size: 1.3rem; }
.blog-post-content p { margin-bottom: 1.4rem; }
.blog-post-content ul, .blog-post-content ol { margin-bottom: 1.4rem; padding-left: 1.5rem; }
.blog-post-content li { margin-bottom: 0.45rem; }
.blog-post-content blockquote { padding: 1.5rem; margin: 1.75rem 0; background: var(--cream); box-shadow: var(--shadow-inset); border-radius: 18px; font-style: italic; }
.blog-post-content blockquote p:last-child { margin-bottom: 0; }
.blog-post-content img { border-radius: 18px; margin: 1.75rem 0; box-shadow: var(--shadow); }
.blog-post-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.blog-post-content a:hover { color: var(--navy); }
.blog-post-content pre { background: var(--navy); color: var(--cream-light); padding: 1.5rem; border-radius: 18px; overflow-x: auto; margin: 1.75rem 0; font-size: 0.9rem; line-height: 1.7; }
.blog-post-content code { font-family: monospace; font-size: 0.9em; }
.blog-post-content :not(pre) > code { background: rgba(26, 39, 68, 0.07); padding: 0.2rem 0.4rem; border-radius: 6px; }
.blog-post-content hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.blog-post-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.5rem 0; }
.blog-post-content th, .blog-post-content td { padding: 0.65rem; border: 1px solid var(--line); }
.blog-back-link { display: block; width: fit-content; max-width: 850px; margin: 2rem auto 0; color: var(--accent); font-size: 0.85rem; font-weight: 600; }
.blog-back-link:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }

/* Footer and utility states. */
.site-footer { background: rgba(252, 250, 244, 0.58); border-top: 1px solid rgba(255, 255, 255, 0.9); color: var(--text-muted); padding: 3rem 2rem 1.5rem; font-size: 0.8rem; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 0.8fr 1fr; gap: 3rem; max-width: 1100px; margin: 0 auto 2.5rem; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 1rem; max-width: 360px; }
.footer-logo { width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; box-shadow: 4px 4px 10px rgba(126, 115, 94, 0.13), -4px -4px 10px #fff; }
.footer-brand strong { font-family: var(--serif); font-size: 1rem; font-weight: 500; color: var(--navy); line-height: 1.45; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.footer-links a:hover, .footer-address:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.footer-address { line-height: 1.9; }
.footer-address span { display: block; margin-top: 0.5rem; color: var(--accent); font-weight: 600; }
.footer-copyright { max-width: 1100px; margin: 0 auto; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.7rem; text-align: center; }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.pt-0 { padding-top: 0; }
.divider { border: none; border-top: 1px solid var(--line); }
.not-found-note { max-width: 520px; margin: 0 auto 2rem; color: var(--text-muted); }
.text-center .hero-actions { justify-content: center; }
.ts-overlay { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(26, 39, 68, 0.88); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); align-items: center; justify-content: center; flex-direction: column; gap: 1.25rem; padding: 1.5rem; }
.ts-overlay-logo { width: 72px; height: 72px; border-radius: 50%; box-shadow: 0 8px 28px rgba(7, 16, 34, 0.25); }
.ts-overlay-text { color: var(--cream-light); font-size: 0.9rem; text-align: center; }

/* Soft settling on arrival; native scroll reveals enhance supporting browsers. */
@keyframes settle-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes emblem-settle {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes surface-reveal {
  from { opacity: 0.65; translate: 0 24px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes soft-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(46, 97, 115, 0.12); }
  50% { box-shadow: 0 0 0 7px rgba(46, 97, 115, 0.04); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: settle-in 850ms var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 60ms; }
  .hero-copy > :nth-child(3) { animation-delay: 120ms; }
  .hero-copy > :nth-child(4) { animation-delay: 180ms; }
  .hero-copy > :nth-child(5) { animation-delay: 240ms; }
  .hero-copy > :nth-child(6) { animation-delay: 300ms; }
  .hero-visual, .page-hero, .ergaran-hero { animation: settle-in 1000ms var(--ease) both; }
  .emblem-ring { animation: emblem-settle 1400ms var(--ease) 150ms both; }
  .hero-schedule { animation: settle-in 1000ms var(--ease) 400ms both; }
  .live-dot { animation: soft-pulse 2800ms ease-in-out infinite; }
  @supports (animation-timeline: view()) {
    .welcome-inner, .join-card, .service-card, .event-card, .video-card, .ergaran-feature-card, .ergaran-mode-card, .blog-card, .stream-inner, .ergaran-cta-inner {
      animation: surface-reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
}

/* Responsive glass menu and layouts. */
@media (max-width: 1100px) {
  .nav-inner { min-height: 76px; }
  .nav-brand { max-width: 460px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    padding: 1rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: rgba(252, 250, 244, 0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 16px 40px rgba(26, 39, 68, 0.15);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 250ms ease, transform 350ms var(--ease), visibility 250ms;
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
  }
  .nav-links.open { visibility: visible; opacity: 1; transform: translateY(0); }
  .nav-links a { padding: 0.8rem 1rem; font-size: 0.95rem; }
  .nav-lang-toggle { margin: 0.5rem 0 0; padding: 0.75rem 0 0; border-left: none; border-top: 1px solid var(--line); }
  .nav-links .lang-pill { padding: 0.65rem 1rem; }
  .hero-inner { gap: 2.5rem; }
  .hero-visual { min-height: 470px; padding-left: 1rem; padding-right: 1rem; }
  .hero-schedule div { padding: 1rem 0.8rem; }
  .hero-schedule strong { font-size: 1.05rem; }
  .join-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .welcome-inner { padding: 2.5rem; column-gap: 2.5rem; }
  .services-grid { gap: 1.25rem; }
  .service-card { padding: 1.75rem 1.25rem; }
}
@media (max-width: 800px) {
  .hero { padding-top: 3.5rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; max-width: 600px; }
  .hero-copy { text-align: center; }
  .hero-copy .hero-ornament, .hero-actions { justify-content: center; }
  .hero h1 { font-size: clamp(2.5rem, 7vw, 3.5rem); }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-visual { width: 100%; max-width: 440px; margin: 0 auto; min-height: 480px; }
  .hero-schedule strong { font-size: 1.2rem; }
  .welcome-inner { grid-template-columns: 1fr; gap: 0; max-width: 600px; }
  .scripture { grid-column: 1; grid-row: auto; margin-top: 2rem; }
  .services-grid, .event-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .service-card { padding: 2rem; }
  .location-layout { grid-template-columns: 1fr; }
  .video-grid, .ergaran-features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ergaran-modes-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; max-width: 440px; }
}
@media (max-width: 480px) {
  html { scroll-padding-top: 105px; }
  .navbar { top: 10px; width: calc(100% - 24px); margin-top: 10px; border-radius: 20px; }
  .nav-inner { min-height: 72px; padding: 0.65rem 0.8rem; gap: 0.65rem; }
  .nav-brand { font-size: 0.78rem; gap: 0.65rem; }
  .nav-logo { width: 42px; height: 42px; }
  .nav-toggle { width: 42px; height: 42px; }
  .hero { padding: 2.75rem 1.25rem 3rem; }
  .hero h1 { font-size: clamp(2rem, 8.5vw, 2.7rem); }
  .hero-tagline { font-size: 0.65rem; letter-spacing: 0.12em; }
  .hero-sub { font-size: 0.95rem; }
  .hero-actions { gap: 0.75rem; }
  .hero-actions .btn { width: 100%; }
  .hero-location { align-items: flex-start; text-align: left; font-size: 0.7rem; }
  .hero-location svg { margin-top: 3px; }
  .hero-visual { min-height: 420px; padding-top: 2rem; border-radius: 180px 180px 28px 28px; }
  .hero-visual::before { inset: 14px; border-radius: 170px 170px 20px 20px; }
  .emblem-ring { width: 250px; max-width: 90%; }
  .hero-emblem { padding-bottom: 1.5rem; }
  .hero-schedule { grid-template-columns: 1fr; border-radius: 18px; }
  .hero-schedule div { flex-direction: row; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.8rem; }
  .hero-schedule div + div { border-left: none; border-top: 1px solid rgba(252, 250, 244, 0.18); }
  .hero-schedule span { max-width: 48%; font-size: 0.65rem; }
  .hero-schedule strong { font-size: 1rem; }
  .section { padding: 2.5rem 1.25rem 3.5rem; }
  .welcome-section { padding: 1.5rem 1.25rem 3.5rem; }
  .welcome-inner { padding: 1.75rem; border-radius: 24px; }
  .scripture { padding: 1.5rem; font-size: 1.15rem; }
  .join-section, .ergaran-features-section, .ergaran-modes-section { padding: 1rem 1.25rem 3.5rem; }
  .join-grid, .video-grid, .ergaran-features-grid { grid-template-columns: 1fr; }
  .join-card { padding: 1.75rem; }
  .join-card-arrow { right: 1.75rem; }
  .page-hero, .ergaran-hero, .stream-section, .ergaran-cta-section { width: calc(100% - 40px); border-radius: 26px; padding: 2.75rem 1.5rem; }
  .page-hero, .ergaran-hero { margin-top: 2rem; }
  .stream-section, .ergaran-cta-section { margin-bottom: 3.5rem; }
  .page-hero p { font-size: 0.85rem; }
  .note-box, .address-card, .ergaran-feature-card, .ergaran-mode-card { padding: 1.75rem; }
  .address-buttons .btn { width: 100%; }
  .map-card iframe { height: 340px; }
  .ergaran-highlights { padding: 0 1.25rem 3.5rem; }
  .ergaran-highlights-inner { flex-direction: column; gap: 1.25rem; padding: 1.5rem; }
  .ergaran-highlight-divider { width: 40px; height: 1px; }
  .blog-card { align-items: flex-start; gap: 1rem; padding: 1.25rem; }
  .blog-card-date { width: 54px; min-height: 82px; border-radius: 12px; padding: 0.5rem; }
  .blog-card-day { font-size: 1.6rem; }
  .blog-card-body h2 { font-size: 1.15rem; }
  .blog-card-excerpt { font-size: 0.8rem; }
  .blog-post-content { font-size: 1rem; }
  .site-footer { padding: 2.5rem 1.25rem 1.5rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-brand { grid-column: auto; }
  .pt-0 { padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .btn:hover, .join-card:hover, .video-card:hover, .blog-card:hover, .ergaran-feature-card:hover { transform: none; }
}
