@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Instrument+Sans:wght@400;500;600;700&family=Vazirmatn:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;
  --ink: #152431;
  --paper: #fcfaf6;
  --navy: #102130;
  --gold: #846036;
  --light-gold: #e7c892;
  --rule: #d9cbb7;
  --edge: clamp(1.25rem, 5vw, 5.5rem);
  font-family: "Instrument Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a, button { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid #b17c38; outline-offset: 5px; }
.masthead {
  min-height: 6rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  max-width: 104rem;
  margin: auto;
  padding: .75rem var(--edge);
  border-bottom: 1px solid var(--rule);
}
.brand { justify-self: start; }
.brand img { display: block; width: 8rem; height: 3.5rem; object-fit: contain; }
.masthead nav { display: flex; align-items: center; gap: clamp(1rem, 3.3vw, 3rem); font-weight: 600; }
.masthead nav button { border: 0; padding: .25rem 0; color: inherit; background: transparent; }
.masthead nav :is(a,button):hover { text-decoration: underline; text-underline-offset: .3em; }
.header-cta { justify-self: end; border-bottom: 1px solid var(--gold); padding: .6rem 0; font-weight: 600; }
main { max-width: 104rem; margin: auto; }
.hero { display: grid; grid-template-columns: minmax(0, 1.64fr) minmax(19rem, 1fr); }
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: clamp(32rem, 53vw, 48rem);
  padding: clamp(3rem, 6vw, 6rem) clamp(1.25rem, 4vw, 4rem) clamp(3rem, 6vw, 6rem) var(--edge);
}
[dir=rtl] .hero-copy { padding-inline: var(--edge) clamp(1.25rem, 4vw, 4rem); }
.location { margin: 0 0 1.65rem; color: var(--gold); font-weight: 600; }
h1, h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; margin: 0; }
h1 { font-size: clamp(2.95rem, 6.5vw, 7.2rem); line-height: .94; letter-spacing: -.025em; }
#headline-lead { display: block; max-width: 12ch; }
.rotator { width: 100%; min-width: 0; }
.program-window {
  display: grid;
  align-items: start;
  overflow: hidden;
  min-height: 1.18em;
  padding-top: .13em;
  font-size: .69em;
  color: var(--gold);
  font-style: italic;
  line-height: 1.08;
}
.program-window span { display: block; }
#motion {
  color: #4b5157;
  border: 0;
  border-bottom: 1px solid #aaa094;
  padding: .2rem 0;
  background: transparent;
  font-size: .875rem;
}
.intro { max-width: 39ch; font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.65; margin: 1.5rem 0 1.65rem; }
.primary { display: inline-block; background: var(--navy); color: var(--paper); padding: .95rem 1.3rem; font-weight: 600; }
.primary:hover { background: #253e53; }
.pathways {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--navy);
  color: var(--paper);
  padding: clamp(2.5rem, 6vw, 5rem) var(--edge) clamp(2.5rem, 6vw, 5rem) clamp(1.4rem, 4vw, 4rem);
}
[dir=rtl] .pathways { padding-inline: clamp(1.4rem, 4vw, 4rem) var(--edge); }
.heading h2 { font-size: clamp(2.35rem, 3.8vw, 4rem); line-height: 1.04; }
.heading p { color: #c9d1d8; line-height: 1.55; margin: .7rem 0 1.5rem; }
.pathways ul { margin: 0; padding: 0; list-style: none; }
.pathways li { border-top: 1px solid #57616a; }
.pathways li:last-child { border-bottom: 1px solid #57616a; }
.pathways li a { display: grid; gap: .35rem; padding: .9rem 0; line-height: 1.4; }
.pathways li a:hover strong { text-decoration: underline; text-underline-offset: .18em; }
.pathways strong { color: var(--light-gold); font-size: 1.15rem; font-weight: 600; }
.pathways li span { color: #e0e4e8; }
footer { max-width: 104rem; margin: auto; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.6rem var(--edge); }
footer a { text-decoration: underline; text-underline-offset: .2em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
[lang=fa] { font-family: Vazirmatn, Tahoma, sans-serif; }
[dir=rtl] :is(h1,h2) { font-family: Vazirmatn, Tahoma, sans-serif; font-weight: 600; letter-spacing: 0; line-height: 1.35; }
[dir=rtl] h1 { font-size: clamp(2.5rem, 5vw, 5.6rem); }
[dir=rtl] .program-window { font-style: normal; }
@media (max-width: 760px) {
  .masthead { min-height: 4.4rem; grid-template-columns: auto 1fr; }
  .masthead nav { justify-self: end; }
  .brand img { width: 6rem; height: 2.8rem; }
  .header-cta { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-copy, [dir=rtl] .hero-copy, .pathways, [dir=rtl] .pathways { padding-inline: var(--edge); }
  .hero-copy { min-height: auto; }
  .program-window { font-size: .7em; min-height: 1.18em; }
}
@media (prefers-reduced-motion: reduce) { #motion { display: none; } }

/* The finder keeps each visitor's choice local to this page. */
.hero { align-items: stretch; }
.hero-copy { min-height: clamp(34rem, 50vw, 44rem); }
#headline-lead { max-width: 13ch; }
.pathways { justify-content: center; }
.goal-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.goal-list button {
  min-height: 3.25rem;
  padding: .7rem .85rem;
  text-align: start;
  background: #1a3040;
  border: 1px solid #627581;
  color: var(--paper);
  font-weight: 600;
  line-height: 1.25;
}
.goal-list button:hover { background: #294453; }
.goal-list button[aria-pressed=true] { background: var(--light-gold); border-color: var(--light-gold); color: var(--navy); }
.pathway-result { margin-top: 1.1rem; padding: 1rem 1.05rem; border-inline-start: 2px solid var(--light-gold); background: #182c3a; }
.pathway-result h3 { margin: 0; font-size: 1.12rem; }
.pathway-result p { color: #e0e4e8; margin: .45rem 0 .7rem; line-height: 1.5; }
.result-link { color: var(--light-gold); font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.next { padding: clamp(2rem, 4vw, 3.5rem) var(--edge); }
.next h2 { font-size: clamp(2rem, 4vw, 3rem); }
.next-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 2rem; margin-top: 1rem; }
.next-links a { display: grid; gap: .35rem; padding: .9rem 0; border-top: 1px solid var(--rule); }
.next-links a:hover strong { text-decoration: underline; text-underline-offset: .2em; }
.next-links span { color: #4b5157; }
@media (max-width: 760px) {
  .hero-copy { min-height: initial; }
  .next-links { grid-template-columns: 1fr; }
}

.hero {
  position: relative;
  isolation: isolate;
  color: var(--paper);
  background: #102130 url('vancouver-hero.webp') center 52% / cover no-repeat;
  padding-inline-end: var(--edge);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #0a1725f5 0%, #0a1725dc 28%, #0a172555 68%, #0a172576);
}
[dir=rtl] .hero::before {
  background: linear-gradient(270deg, #0a1725f5 0%, #0a1725dc 28%, #0a172555 68%, #0a172576);
}
.hero-copy { min-height: clamp(36rem, 51vw, 47rem); }
.location { color: #f0d7a8; }
.program-window {
  color: #f0d7a8;
}
@supports (background-clip: text) {
  #program {
    background: linear-gradient(105deg, #d6ac6f 12%, #fff2d1 31%, #e2bd81 48%, #e2bd81 100%) 0 0 / 200% 100%;
    background-clip: text;
    color: transparent;
  }
  @media (prefers-reduced-motion: no-preference) {
    #program { animation: gold-sheen 7s ease-in-out infinite alternate; }
  }
}
@keyframes gold-sheen {
  0%, 25% { background-position: 0 0; }
  75%, 100% { background-position: 100% 0; }
}
#motion { color: #f0e7d6; border-color: #ae9b7c; }
body[data-motion-paused] #program { animation-play-state: paused; }
.intro { color: #e7ebf0; }
.primary { border: 1px solid #f3d7a3; background: #e9ca94; color: #14232f; }
.primary:hover { background: #f4deb7; }
.pathways, [dir=rtl] .pathways {
  align-self: center;
  padding: clamp(1.4rem, 3vw, 3.25rem);
  border: 1px solid #d5bc8870;
  border-radius: 12px;
  background: #0b1b2ae9;
  box-shadow: 0 16px 60px #07121c55;
  backdrop-filter: blur(15px);
  margin-block: 2rem;
  min-width: 0;
}
.goal-list button { border-radius: 5px; }
@media (max-width: 760px) {
  .hero { padding-inline: var(--edge); background-position: 62% 28%; }
  .hero::before, [dir=rtl] .hero::before {
    background: linear-gradient(0deg, #0a1725 3%, #0a1725df 41%, #0a172570 72%, #0a1725b0);
  }
  .hero-copy, [dir=rtl] .hero-copy { padding: 3.25rem 0 1rem; min-height: initial; }
  .pathways, [dir=rtl] .pathways { margin-block: 1.2rem 2rem; }
}
.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand img { width: 3.25rem; height: 2.85rem; }
.brand span { font-family: "Instrument Serif", Georgia, serif; font-size: 1.35rem; line-height: 1; white-space: nowrap; }
.brand small { display: block; margin-top: .25rem; font: 600 .72rem "Instrument Sans", Arial, sans-serif; text-transform: uppercase; letter-spacing: .12em; }
.primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #ffe1a1;
  border-radius: 4px;
  background: linear-gradient(140deg,#c89948,#f9e4ae 39%,#e6be72 58%,#c89543);
  box-shadow: inset 0 1px 0 #fff9da, inset 0 -1px 0 #9b682b, 0 8px 24px #08131c60;
}
.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 32%, #fff8da99 49%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .75s ease;
}
.primary:is(:hover,:focus-visible) { background: linear-gradient(140deg,#dab066,#fff1c8 39%,#ecc982 58%,#d2a45b); }
.primary:is(:hover,:focus-visible)::after { transform: translateX(120%); }
.founder {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem clamp(2rem, 7vw, 7rem);
  padding: clamp(2.7rem, 6vw, 5.75rem) var(--edge);
  background: #f1ebdf;
  border-top: 1px solid var(--rule);
}
.founder-label { color: #73512d; font-weight: 700; margin: 0 0 .65rem; }
.founder h2 { font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: 1.08; }
.founder-credentials { margin: .8rem 0 0; }
.founder #founder-bio { margin: .35rem 0 1.2rem; max-width: 50ch; line-height: 1.7; }
.founder-link { display: inline-block; padding-block: .25rem; font-weight: 700; border-bottom: 1px solid var(--gold); }
@media (max-width: 760px) {
  .brand img { width: 2.3rem; height: 2.25rem; }
  .brand span { font-size: 1.1rem; }
  .brand small { font-size: .65rem; }
  .masthead nav { gap: .65rem; }
  .masthead nav a { font-size: .875rem; }
  .founder { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 390px) {
  .brand { gap: .35rem; }
  .brand span { font-size: .95rem; }
  .brand img { width: 1.8rem; }
}
@media (prefers-reduced-motion: reduce) { .primary::after { transition: none; } }
.masthead { background: #0c2036; color: #fff7e9; border-color: #ae8e5855; }
.header-cta { background: linear-gradient(140deg,#b68438,#f8e1a3 44%,#cf9f49); color: #14232f; border: 1px solid #f4d693; border-radius: 4px; padding: .55rem .9rem; }
.header-cta:hover { background: #f0d7a0; }
.hero { background-position: center 53%; }
.hero-copy { min-height: clamp(30rem, 49vw, 43rem); }
#headline-lead { max-width: 13ch; }
.goal-select, .finder-assessment { width: 100%; padding: .7rem .8rem; border: 1px solid #ceb480; border-radius: 4px; font: inherit; }
.goal-select { background: #13283a; color: #fff7e9; }
.finder-assessment { display: block; margin-top: .75rem; text-align: center; color: #f5dba5; font-weight: 600; }
.finder-assessment:hover { background: #f5dba5; color: #14232f; }
.next { background: #10243a; color: #fff7e9; }
.next-links a { border-color: #8c7961; }
.next-links span { color: #e2d8c9; }
.footer-social { display: flex; gap: .9rem; flex-wrap: wrap; }
.footer-credit { flex-basis: 100%; color: #524b45; font-size: .9rem; padding-top: .9rem; border-top: 1px solid var(--rule); }
.about-intro { padding: clamp(3rem,8vw,7rem) var(--edge); color: var(--paper); background: #10243a; }
.about-intro p { font-size: 1.1rem; color: #f2d8a6; }
.about-copy { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.1rem,5vw,5rem); padding: clamp(2.5rem,6vw,5rem) var(--edge); }
.about-copy h2 { font-size: clamp(2.5rem,5vw,4.6rem); line-height: 1.04; }
.about-copy p { margin: 0 0 1.15rem; font-size: 1.1rem; line-height: 1.7; max-width: 62ch; }
@media (max-width: 760px) {
  .masthead { grid-template-columns: 1fr auto; }
  .masthead nav { grid-area: 2 / 1 / 3 / -1; justify-self: stretch; justify-content: space-between; padding-bottom: .35rem; }
  .header-cta { display: inline-block; grid-area: 1 / 2; font-size: .87rem; }
  .about-copy { grid-template-columns: 1fr; }
}
.brand span { white-space: nowrap; font-size: clamp(1rem, 2vw, 1.58rem); }
.masthead { grid-template-columns: minmax(max-content, 1fr) auto 1fr; }
.founder { background: var(--paper); grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); }
.founder-identity { border-inline-start: 2px solid #b99055; padding-inline-start: clamp(.9rem,2vw,1.6rem); }
.founder .founder-label { margin-bottom: .4rem; }
.founder-note { align-self: center; }
.directory-nav { display:flex; flex-wrap:wrap; gap:.75rem 1.4rem; padding:1.2rem var(--edge); border-bottom:1px solid var(--rule); }
.directory-nav a, .service-actions a { font-weight:700; text-decoration:underline; text-underline-offset:.23em; }
.directory { padding: 0 var(--edge) clamp(2rem,5vw,5rem); }
.directory-section { display:grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 0 clamp(1rem,5vw,5rem); padding-block:2.3rem; border-bottom:1px solid var(--rule); }
.directory-section h2 { font-size:clamp(2rem,4vw,3.25rem); grid-row:1 / span 12; }
.service-detail { padding: 1rem 0 1.45rem; border-top:1px solid var(--rule); scroll-margin-top:1rem; }
.service-detail:target { border-inline-start:3px solid #a77c46; padding-inline-start:1rem; background:#f1ebdf; }
.service-detail h3 { margin:0; font-size:1.3rem; }
.service-detail p { line-height:1.6; margin:.55rem 0; }
.service-actions { display:flex; gap:1.2rem; flex-wrap:wrap; margin-top:.85rem; }
.services-page .about-intro h1 { max-width:16ch; }
@media(max-width:870px) {
 .masthead { grid-template-columns: 1fr auto; }
 .masthead nav { grid-area: 2 / 1 / 3 / -1; justify-self:stretch; justify-content:space-between; }
 .header-cta { display:inline-block; grid-area:1 / 2; }
}
@media(max-width:760px) {
 .directory-section,.founder { grid-template-columns:minmax(0,1fr); }
 .directory-section h2 { grid-row:auto; margin-bottom:1.1rem; }
}

.masthead {
  max-width: none;
  min-height: 5.35rem;
  grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
  column-gap: clamp(1.2rem, 3vw, 3rem);
  background: #fcfaf6;
  color: #10243a;
  border-bottom: 1px solid #ddd4c5;
}
.masthead .brand { gap: .8rem; }
.masthead .brand img { width: 2.95rem; height: 2.55rem; }
.masthead .brand span { font-size: clamp(1.3rem, 2.1vw, 1.8rem); }
.masthead nav { font-size: .96rem; gap: clamp(1.2rem, 2.75vw, 2.9rem); }
.masthead #language { border-inline-start: 1px solid #d6c8b1; padding-inline-start: 1rem; }
.masthead .header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 2.7rem;
  background: transparent;
  color: #10243a;
  border: 1px solid #a58251;
  border-radius: 4px;
  padding-inline: 1rem;
  font-size: .92rem;
}
.masthead .header-cta:hover { background: #f2e6d0; }
.home-page main { max-width: none; }
.home-page .hero {
  display: block;
  padding: 0;
  background-position: center 53%;
}
.home-page .hero::before {
  background: linear-gradient(90deg, #0a1829f2 1%, #0a1829d4 31%, #0a182960 60%, #0a182912 90%),
              linear-gradient(0deg, #08162560, transparent 50%);
}
[dir=rtl] .home-page .hero::before {
  background: linear-gradient(270deg, #0a1829f2 1%, #0a1829d4 31%, #0a182960 60%, #0a182912 90%),
              linear-gradient(0deg, #08162560, transparent 50%);
}
.home-page .hero-copy {
  max-width: 104rem;
  min-height: clamp(29rem, 39vw, 40rem);
  margin-inline: auto;
  padding: clamp(2.75rem, 5.25vw, 5rem) var(--edge);
}
.home-page .location { margin-bottom: 1.1rem; }
.home-page #headline { font-size: clamp(3.3rem, 6.4vw, 6.65rem); line-height: .98; }
.home-page #headline-lead { max-width: 13ch; }
[dir=rtl] .home-page #headline { font-size: clamp(2.35rem, 5vw, 5rem); line-height: 1.3; }
.home-page .program-window { min-height: 1.27em; padding-block: .1em; font-size: .59em; }
.home-page .intro { margin-block: .95rem 1.4rem; }
.home-page #motion { font-size: .85rem; }
.home-page .pathways {
  max-width: 104rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, .78fr);
  align-items: center;
  column-gap: clamp(1.5rem, 6vw, 6rem);
  row-gap: .85rem;
  margin: 0 auto;
  padding: 1.6rem var(--edge);
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  color: var(--ink);
  background: #f4eee2;
  box-shadow: none;
  backdrop-filter: none;
}
.home-page .pathways .heading h2 { font-size: clamp(2rem, 3vw, 3rem); }
.home-page .pathways .heading p { margin: .4rem 0 0; color: #465362; }
.home-page .goal-select { color: var(--ink); background: #fffdf9; min-height: 3rem; }
.home-page .pathway-result { grid-column: 2; color: var(--ink); background: #fffdf9; margin-top: 0; }
.home-page .pathway-result p { color: #465362; }
.home-page .result-link { color: #775326; }
@media (max-width: 860px) {
  .masthead { grid-template-columns: minmax(0,1fr) auto; min-height: 4.4rem; gap: .35rem .7rem; }
  .masthead nav { grid-area: 2 / 1 / 3 / -1; padding-block: .35rem; }
  .masthead .brand { gap: .45rem; }
  .masthead .brand img { width: 2.2rem; height: 2.05rem; }
  .masthead .brand span { font-size: clamp(1.05rem, 3.2vw, 1.45rem); }
  .masthead .header-cta { grid-area: 1 / 2; padding-inline: .6rem; font-size: .84rem; }
}
@media (max-width: 620px) {
  .home-page .hero { background-position: 60% center; }
  .home-page .hero::before, [dir=rtl] .home-page .hero::before {
    background: linear-gradient(0deg, #0a1829f5 3%, #0a1829d9 40%, #0a18296e 100%);
  }
  .home-page .hero-copy { min-height: 26rem; }
  .home-page .pathways { grid-template-columns: minmax(0,1fr); }
  .home-page .pathway-result { grid-column: 1; }
}
@media (max-width: 350px) {
  .masthead { padding-inline: .65rem; }
  .masthead .brand img { width: 1.65rem; }
  .masthead .brand span { font-size: 1rem; }
}

.masthead {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 5rem;
  gap: clamp(1rem, 3vw, 3rem);
  padding-block: .75rem;
  background: #0a1829;
  color: #fff7e9;
  border: 0;
}
.masthead nav {
  display: flex;
  align-items: center;
  gap: clamp(.95rem, 2.4vw, 2.4rem);
  padding: 0;
  font-size: .95rem;
}
.masthead nav > a:not(.header-cta), .masthead #language { color: #e6e9f0; }
.masthead nav > a:hover, .masthead #language:hover { color: #fff3d6; }
.masthead #language { border-color: #ffffff40; }
.masthead .header-cta {
  color: #f2d8a6;
  background: transparent;
  border-color: #c6a267;
  white-space: nowrap;
}
.masthead .header-cta:hover { color: #10243a; background: #f2d8a6; text-decoration: none; }
.menu-toggle {
  display: none;
  min-height: 2.6rem;
  padding: .45rem .8rem;
  color: #f2d8a6;
  background: transparent;
  border: 1px solid #a68a5b;
  border-radius: 3px;
}
.home-page .hero::before,
[dir=rtl] .home-page .hero::before {
  background: linear-gradient(180deg, #0a1829 0%, #0a182900 24%),
              linear-gradient(90deg, #0a1829f2 1%, #0a1829d4 31%, #0a182960 60%, #0a182912 90%);
}
[dir=rtl] .home-page .hero::before {
  background: linear-gradient(180deg, #0a1829 0%, #0a182900 24%),
              linear-gradient(270deg, #0a1829f2 1%, #0a1829d4 31%, #0a182960 60%, #0a182912 90%);
}
@media (max-width: 860px) {
  .masthead { min-height: 4.3rem; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .masthead nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    inset-block-start: 100%;
    padding: .25rem var(--edge) 1rem;
    background: #0a1829;
    box-shadow: 0 12px 22px #08132255;
    align-items: stretch;
    gap: 0;
  }
  .menu-toggle[aria-expanded=true] + nav { display: grid; }
  .masthead nav > :is(a,button) {
    padding: .65rem 0;
    min-height: 2.75rem;
    text-align: start;
  }
  .masthead #language { border: 0; padding-inline-start: 0; }
  .masthead .header-cta { grid-area: auto; padding-inline: .75rem; width: max-content; }
}
@media (max-width: 620px) {
  .home-page .hero::before, [dir=rtl] .home-page .hero::before {
    background: linear-gradient(180deg, #0a1829 0%, transparent 31%),
                linear-gradient(0deg, #0a1829f5 3%, #0a1829d9 40%, #0a18296e 100%);
  }
}

/* Shared editorial shell and interactive service showcase. */
.masthead { background: #101c29; }
.theatre {
  display: grid;
  grid-template-columns: minmax(15rem, .72fr) minmax(0, 2.1fr);
  max-width: 104rem;
  margin: auto;
  background: var(--paper);
}
.theatre-index { padding: clamp(1.6rem, 4vw, 3.4rem) clamp(1rem, 2.8vw, 3rem); }
.theatre-index h2 { font-size: clamp(1.7rem, 2.8vw, 2.8rem); margin-bottom: 1.1rem; }
.theatre-index button {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-inline-start: 2px solid transparent;
  background: transparent;
  color: var(--ink);
  padding: .65rem .65rem;
  text-align: start;
  font-weight: 600;
  min-height: 2.6rem;
}
.theatre-index button:hover { background: #f2eadc; }
.theatre-index button[aria-pressed=true] { border-inline-start-color: #a77a3d; color: #785421; background: #eee5d4; }
#all-services { display: inline-block; margin-top: 1.2rem; text-decoration: underline; text-underline-offset: .22em; }
.theatre-stage {
  --scene: url("gastown-hero.webp");
  position: relative;
  display:flex;
  align-items: center;
  min-height: 36rem;
  color: #fff7e9;
  background: #0e1926 var(--scene) center / cover no-repeat;
  isolation: isolate;
}
.theatre-stage[data-scene="0"] { --scene: url("vancouver-hero.webp"); }
.theatre-stage[data-scene="2"] { --scene: url("vancouver-hero.webp"); }
.theatre-stage::before {
  position:absolute; content:""; inset:0; z-index:-1;
  background:linear-gradient(90deg,#07121df5 0%,#07121ddc 34%,#07121d43 77%,#07121d12 100%);
}
[dir=rtl] .theatre-stage::before { background:linear-gradient(270deg,#07121df5 0%,#07121ddc 34%,#07121d43 77%,#07121d12 100%); }
.theatre-copy { width: min(100%, 38rem); padding: clamp(1.5rem,5vw,5rem); }
.theatre-copy h1 { font-size: clamp(3rem, 6vw, 6.3rem); }
.theatre-copy .program-window { font-family: "Instrument Serif", Georgia, serif; font-size: clamp(1.45rem, 3.5vw, 3rem); margin-top: .55rem; }
[dir=rtl] .theatre-copy .program-window { font-family: Vazirmatn, Tahoma, sans-serif; }
.theatre-result { margin-bottom: 1.4rem; }
.theatre-result h2 { font-size: clamp(2.1rem, 4.2vw, 4.3rem); }
.theatre-result p { line-height:1.65; }
.theatre-result a { color:#f2d8a6; font-weight:700; text-decoration:underline; text-underline-offset:.25em; }
[hidden] { display:none !important; }
.about-intro { background: #102130 url("gastown-hero.webp") 90% 52% / cover; position:relative; isolation:isolate; }
.about-intro::before { content:""; position:absolute; inset:0; z-index:-1; background:#091823cf; }
.service-search { display:grid; gap:.5rem; max-width:44rem; padding:1.45rem var(--edge) 0; }
.service-search label { font-weight:700; }
.service-search input { min-height:3rem; padding:.65rem .85rem; border:1px solid #a39173; background:#fffdf9; color:var(--ink); font:inherit; }
.services-empty { margin:1.5rem var(--edge); }
@media(max-width:760px) {
 .theatre { grid-template-columns:minmax(0, 1fr); }
 .theatre-stage { grid-row:1; min-height:29rem; }
 #theatre-menu { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:.5rem; }
}

/* Program gallery and the individual guides share the Service Theatre palette. */
.catalogue-section { padding-block: 2.4rem; border-bottom: 1px solid var(--rule); }
.catalogue-section > h2 { font-size: clamp(2.2rem, 4.4vw, 3.8rem); margin-bottom: 1.3rem; }
.program-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
.program-card { min-width: 0; background: #fffdf8; border: 1px solid #d8c9b1; }
.program-card:first-child .program-card-link { background: #10243a; color: #fff5e5; }
.program-card-link { display: grid; grid-template-rows: auto 1fr; height: 100%; }
.program-card-link > img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 2px solid #ab8752; }
.program-card-body { display: grid; grid-template-rows: auto 1fr auto; padding: clamp(.95rem,2vw,1.55rem); }
.program-card h3 { font-family: "Instrument Serif", Georgia, serif; font-size: clamp(1.55rem, 2.55vw, 2.15rem); font-weight: 400; line-height: 1.07; margin: 0; }
[dir=rtl] .program-card h3 { font-family: Vazirmatn, Tahoma, sans-serif; font-weight: 600; line-height: 1.4; font-size: clamp(1.3rem,2vw,1.7rem); }
.program-card p { line-height: 1.5; margin: .7rem 0 1rem; }
.program-guide-label { color: #785421; text-decoration: underline; text-underline-offset: .24em; font-weight: 700; }
.program-card:first-child .program-guide-label { color: #edce91; }
.program-card-link:hover .program-guide-label { text-decoration-thickness: 2px; }
.program-hero { position: relative; min-height: clamp(19rem, 36vw, 32rem); color: #fff7e9; background: #10243a; display: grid; align-items: end; isolation: isolate; }
.program-hero > img { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; z-index: -2; }
.program-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg,#0a192cf5,#0a192c68); }
.program-hero-copy { padding: clamp(2rem,5vw,4rem) var(--edge); }
.program-hero h1 { max-width: 20ch; font-size: clamp(2.6rem,6vw,5.6rem); line-height: 1.04; }
[dir=rtl] .program-hero h1 { font-size: clamp(2rem,5vw,4.4rem); line-height: 1.35; }
.program-category { color: #f5dba5; margin-block: 1.3rem .65rem; font-weight: 700; }
.program-back,.program-source,.program-assessment { text-decoration: underline; text-underline-offset: .25em; font-weight: 700; }
.program-body { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(16rem,1fr); gap: clamp(1.5rem,5vw,5rem); padding: clamp(2rem,5vw,4rem) var(--edge); }
.program-body h2 { font-size: clamp(1.8rem,3vw,2.8rem); }
.program-explanation > h2:not(:first-child) { margin-top: 2rem; }
.program-body p, .requirements { line-height: 1.65; }
.requirements { padding-inline-start: 1.3rem; margin-block: .7rem 1.2rem; }
.requirements li { padding-inline-start: .3rem; margin-block: .55rem; }
.program-note { color: #485565; }
.program-source { color: #785421; }
.program-inquiry { align-self: start; padding: clamp(1.2rem,3vw,2rem); background: #10243a; color: #fff7e9; border-top: 2px solid #bc9a5d; }
.program-assessment { display: block; margin-top: 1rem; color: #f1d59b; }
@media(max-width:950px) { .program-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:650px) { .program-grid, .program-body { grid-template-columns: minmax(0,1fr); } }

/* Align the programme gallery and download with the Service Theatre. */
.program-card { background: #fbf7ef; }
.program-card-link { background: #101c29; color: #fff7e9; }
.program-card .program-guide-label { color: #edce91; }
.program-card-link > img { object-position: center 44%; }
.program-hero { overflow: hidden; }
.program-hero > img { inset-inline-start: auto; width: 59%; object-position: center 43%; }
.program-hero::before { background: linear-gradient(90deg,#101c29 35%,#101c29e0 56%,#101c2930 100%),linear-gradient(0deg,#101c29b0,transparent 75%); }
[dir=rtl] .program-hero::before { background: linear-gradient(270deg,#101c29 35%,#101c29e0 56%,#101c2930 100%),linear-gradient(0deg,#101c29b0,transparent 75%); }
.program-download { margin-top: 1.65rem; padding: 1.15rem 1.35rem; border-inline-start: 2px solid #ad8649; background: #f1e8d6; }
.program-download-link { color: #11253c; font-weight: 700; text-decoration: underline; text-underline-offset: .23em; }
.program-download p { margin: .45rem 0 0; color: #4a515a; font-size: .9rem; }
@media(max-width:650px) {
  .program-hero > img { width: 100%; }
  .program-hero::before,[dir=rtl] .program-hero::before { background: linear-gradient(0deg,#101c29f3,#101c2940); }
}

.about-intro-with-portrait {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 18rem);
  align-items: center;
  gap: clamp(1.5rem, 6vw, 5rem);
}
.about-portrait {
  display: grid;
  place-items: center;
  width: min(100%, 18rem);
  aspect-ratio: 4 / 5;
  margin: 0;
  border: 1px solid var(--light-gold);
  background: #102130;
  color: var(--light-gold);
}
.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 640px) {
  .about-intro-with-portrait { grid-template-columns: minmax(0, 1fr); }
}

.home-consultant, .home-action { padding: clamp(3rem, 7vw, 6rem) var(--edge); }
.home-consultant h2, .home-action h2 { font-size: clamp(2.35rem, 5vw, 4.2rem); margin: 0; }
.home-text-link { display: inline-block; padding-block: .25rem; border-block-end: 1px solid currentColor; color: inherit; font-weight: 700; }
.home-consultant {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 1.4rem clamp(2rem, 7vw, 7rem);
  background: #eae2d4;
}
.home-consultant-identity {
  border-inline-start: 2px solid var(--gold);
  padding-inline-start: clamp(1rem, 2.5vw, 2rem);
}
.home-consultant p { max-width: 52ch; margin-block: .6rem; line-height: 1.7; }
.home-consultant #founder-label, .home-license { color: #694a2b; font-weight: 700; }
.home-action {
  background: var(--navy);
  color: var(--paper);
}
.home-action h2 { margin-block-end: 1.6rem; }
.home-action-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem 2.5rem; }
.home-action-options p { max-width: 42ch; line-height: 1.65; }
.home-secondary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .65rem 1rem;
  border: 1px solid var(--light-gold);
  background: transparent;
  font: inherit;
  cursor: pointer;
  color: var(--light-gold);
  text-decoration: none;
}
.home-secondary:hover, .home-secondary:focus-visible { background: #293c50; }
html[dir=rtl] { font-family: Vazirmatn, Tahoma, sans-serif; }
[dir=rtl] :is(.home-consultant, .home-action, .about-copy, #program-detail, .program-card) { text-align: start; }
[dir=rtl] :is(.home-consultant, .home-action, .about-copy, #program-detail, .program-card) p { line-height: 1.9; }
[dir=rtl] :is(.home-consultant, .home-action) h2 { font-size: clamp(1.75rem, 4vw, 3.35rem); }
[dir=rtl] .home-license { font-family: "Instrument Sans", Arial, sans-serif; }
@media (max-width: 700px) {
  .home-consultant, .home-action-options { grid-template-columns: minmax(0, 1fr); }
}

.program-assistant {
  position: fixed;
  inset-block-end: 1rem;
  inset-inline-end: 1rem;
  z-index: 20;
  width: min(25rem, calc(100% - 2rem));
  background: #102130;
  color: var(--paper);
  border: 1px solid var(--light-gold);
  border-radius: .65rem;
  box-shadow: 0 .6rem 2rem #07121d50;
}
.program-assistant:not([open]) { width: fit-content; }
.program-assistant summary { cursor: pointer; padding: .8rem 1rem; color: var(--light-gold); font-weight: 700; }
.assistant-panel { padding: 0 1rem 1rem; max-height: 60vh; overflow-y: auto; }
.assistant-panel p { margin-block: .4rem .75rem; line-height: 1.65; }
#assistant-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; }
#assistant-form label { grid-column: 1 / -1; }
#assistant-form :is(input,button) { min-width: 0; font: inherit; padding: .55rem; }
#assistant-form button { background: var(--light-gold); color: var(--navy); border: 0; cursor: pointer; }
#assistant-answer:not(:empty) { margin-block-start: 1rem; }
#assistant-answer a { display: block; padding-block: .2rem; color: var(--light-gold); text-decoration: underline; }

.theatre-program-controls { display: contents; }
[dir=rtl] .theatre-copy {
  width: min(100%, 46rem);
  padding: clamp(1.3rem, 3.5vw, 3.5rem);
  text-align: start;
}
[dir=rtl] .theatre-copy .location { margin-block-end: .7rem; }
[dir=rtl] .theatre-copy #headline {
  font-size: clamp(2rem, 4vw, 4.25rem);
  line-height: 1.2;
}
[dir=rtl] .theatre-copy #headline-lead { max-inline-size: none; }
[dir=rtl] .theatre-program-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .15rem .9rem;
  margin-block-start: .7rem;
}
[dir=rtl] .theatre-copy .program-window {
  min-height: 0;
  min-width: 0;
  margin: 0;
  padding-block: .1em;
  font-size: clamp(1.15rem, 2.35vw, 2.15rem);
  line-height: 1.4;
}
[dir=rtl] .theatre-copy #motion { font-family: inherit; font-size: .8rem; cursor: pointer; }
[dir=rtl] .theatre-copy .intro {
  max-width: 43ch;
  margin-block: .65rem 1rem;
  line-height: 1.65;
}
[dir=rtl] .theatre-result { margin-block-end: .85rem; }
[dir=rtl] .theatre-result h2 { font-size: clamp(1.65rem, 3.4vw, 3.1rem); }
[dir=rtl] .theatre-result p { margin-block: .55rem; }
[dir=rtl] .theatre-index h2 { margin-block-end: .65rem; font-size: clamp(1.45rem, 2.35vw, 2.1rem); }
[dir=rtl] .theatre-index button { padding-block: .46rem; }
@media (max-width: 760px) {
  [dir=rtl] .theatre-stage { min-height: 22rem; }
}

footer.pk-footer {
  display: block;
  background: #101e2c;
  color: #ede7de;
  border-block-start: 1px solid #a98149;
  padding: clamp(2rem, 5vw, 4.5rem) var(--edge) 1rem;
}
.pk-footer-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 2rem; }
.pk-footer-brand img { object-fit: contain; }
.pk-footer-brand h2 { text-align: match-parent; font: 400 clamp(1.65rem, 3vw, 2.5rem)/1.15 "Instrument Serif", Georgia, serif; margin-block-start: .65rem; }
.pk-footer-brand p { margin-block: .6rem; }
.pk-footer-section { display: grid; justify-items: start; align-content: start; gap: .65rem; }
.pk-footer-section h3 { color: var(--light-gold); margin: 0 0 .2rem; }
.pk-footer a { line-height: 1.5; }
.pk-footer a:hover { color: var(--light-gold); }
.pk-footer .footer-credit { margin-block-start: 2rem; border-color: #ffffff30; color: #ede7de; }
@media (max-width: 760px) { .pk-footer-grid { grid-template-columns: 1fr; } }
