/* Dunham House /vt: virtual tour page. Layers on top of the theme's style.css (tokens: --night, --steel, --mist, --brass, --serif, --sans). */
.vd {
  --flag-blue: #0a3161;
  --tan-light: #f1e6d0;
  --tan-mid: #e6d6b6;
  --gold: #d9a81e;
  --gold-deep: #b98a0c;
  --army-ink: #1d2612;
  --vt-gap: clamp(1rem, 2.4vw, 1.75rem);
}
.vt-wrap { max-width: 78rem; margin: 0 auto; padding: 0 var(--gutter, 1.5rem); }
.vt-eyebrow { font: 600 0.8rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel); margin: 0 0 0.7rem; }
.vt-h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); line-height: 1.08; margin: 0 0 0.5rem; color: var(--night); }
.vt-lede { max-width: 62ch; color: #35444f; font-size: 1.08rem; line-height: 1.55; margin: 0 0 1.5rem; }

/* ---------- Stats band (gold, army stencil; fonts 30% smaller, 12px top/bottom, 10px between rows) ---------- */
.vt-stats { background: var(--gold); background-image: linear-gradient(180deg, rgba(255,255,255,.14), rgba(0,0,0,.08)); border-bottom: 4px solid var(--gold-deep); color: var(--army-ink); }
.vt-stats__grid { max-width: 78rem; margin: 0 auto; padding: 12px var(--gutter, 1.5rem); display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: clamp(.4rem, 2vw, 2rem); text-align: center; }
.vt-stat { display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: clamp(1.33rem, .7rem + 3.08vw, 3.08rem); }
.vt-stat__big { font-family: "Black Ops One", "Stardos Stencil", Impact, sans-serif; font-size: 1em; line-height: 1; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.vt-stat__small { font-family: "Black Ops One", "Stardos Stencil", Impact, sans-serif; font-size: .48em; line-height: 1; text-transform: lowercase; letter-spacing: .08em; margin-top: 10px; white-space: nowrap; text-align: center; }
.vt-star { width: clamp(2.2rem, 1rem + 4.6vw, 4.6rem); height: clamp(2.2rem, 1rem + 4.6vw, 4.6rem); fill: #0b0b0b; flex: none; }

/* ---------- Welcome video (full viewport width, same height as before on desktop) ---------- */
.vt-video { background: #000; position: relative; width: 100%; }
.vt-video__frame { position: relative; width: 100%; height: min(56.25vw, 78vh); min-height: 240px; overflow: hidden; background: #0a2434; }
.vt-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s linear; filter: saturate(.9) contrast(1.05) brightness(.98); }
.vt-video video.is-on { opacity: 1; }
.vt-video__grade { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, rgba(0,0,0,0) 55%, rgba(0,0,0,.32) 100%); }
.vt-video__grade::after { content: ""; position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); animation: vt-grain 1s steps(4) infinite; }
@keyframes vt-grain { 0% { transform: translate(0,0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(0,0); } }
.vt-video__welcome { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity 1.6s ease; background: radial-gradient(ellipse at center, rgba(8,30,43,.5), rgba(8,30,43,0) 62%); }
.vt-video__welcome.is-on { opacity: 1; }
.vt-video__welcome p { margin: 0; font-family: "Montserrat", "Segoe UI", Arial, sans-serif; font-weight: 800; font-size: clamp(2rem, 1rem + 4.6vw, 4.8rem); letter-spacing: -.005em; color: #fff; text-shadow: 0 3px 24px rgba(0,0,0,.6); text-align: center; padding: 0 1rem; }
/* robust controls */
.vt-vc { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 2.2rem clamp(.6rem, 2vw, 1.4rem) .7rem; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.72)); color: #fff; opacity: 1; transition: opacity .25s; }
.vt-vc__bar { position: relative; display: flex; gap: 4px; height: 22px; align-items: center; cursor: pointer; outline-offset: 2px; }
.vt-vc__seg { position: relative; flex: 1 1 0; height: 6px; background: rgba(255,255,255,.28); border-radius: 3px; overflow: hidden; transition: height .15s; }
.vt-vc__bar:hover .vt-vc__seg, .vt-vc__bar:focus-visible .vt-vc__seg { height: 10px; }
.vt-vc__seg i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--brass, #ffd64f); border-radius: 3px; }
.vt-vc__tip { position: absolute; bottom: 26px; transform: translateX(-50%); font: 600 .72rem var(--sans); background: rgba(8,30,43,.92); border: 1px solid rgba(255,255,255,.3); padding: .2rem .5rem; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s; }
.vt-vc__row { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.vt-vc button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 1px; width: 2.4rem; height: 2.4rem; padding: 0; color: #fff; background: rgba(8,30,43,.55); border: 1px solid rgba(255,255,255,.28); border-radius: 10px; cursor: pointer; transition: background .15s, border-color .15s, transform .1s; }
.vt-vc button:hover { background: rgba(8,30,43,.9); border-color: var(--brass, #ffd64f); }
.vt-vc button:active { transform: translateY(1px); }
.vt-vc button svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }
.vt-vc button b { position: absolute; font: 800 .55rem var(--sans); left: 50%; top: 50%; transform: translate(-50%, -42%); }
.vt-vc button[aria-pressed="false"] { opacity: .55; }
.vt-vc__time { font: 600 .8rem var(--sans); font-variant-numeric: tabular-nums; margin-left: .4rem; opacity: .92; }
.vt-vc__sp { flex: 1 1 auto; }
.vt-vc__speed select { font: 600 .8rem var(--sans); color: #fff; background: rgba(8,30,43,.55); border: 1px solid rgba(255,255,255,.28); border-radius: 10px; height: 2.4rem; padding: 0 .5rem; cursor: pointer; }
.vt-vc__speed select option { color: #081e2b; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.vt-video__frame.is-idle .vt-vc { opacity: 0; }
.vt-video__frame.is-idle { cursor: none; }

/* ---------- Virtual tour (light tan, full width) ---------- */
.vt-tour { background: var(--tan-light); background-image: linear-gradient(180deg, #f6ecd9 0%, #eadcc0 100%); padding: clamp(2.4rem, 6vw, 4.5rem) 0; border-top: 1px solid #dac9a5; border-bottom: 1px solid #dac9a5; }
.vt-tabs { display: flex; gap: .5rem; margin: 0 0 -1px; position: relative; z-index: 1; flex-wrap: wrap; }
.vt-tab { font: 600 .98rem var(--sans); color: #4d3d22; background: #e4d3b0; border: 1px solid #cdb98f; border-bottom: 0; border-radius: 12px 12px 0 0; padding: .8rem 1.4rem; cursor: pointer; transition: background .2s, color .2s; }
.vt-tab:hover { background: #ecdebb; }
.vt-tab[aria-selected="true"] { background: #fff; color: var(--night); box-shadow: 0 -3px 0 var(--flag-blue) inset; }
.vt-stage { position: relative; background: #1a1a1a; border: 1px solid #cdb98f; border-radius: 0 12px 12px 12px; overflow: hidden; aspect-ratio: 16 / 9; box-shadow: 0 18px 40px -24px rgba(60,40,10,.6); touch-action: none; }
.vt-stage canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.vt-stage canvas:active { cursor: grabbing; }
.vt-hud { position: absolute; left: .8rem; top: .8rem; display: flex; gap: .5rem; align-items: center; pointer-events: none; }
.vt-room { font: 600 .82rem var(--sans); color: #fff; background: rgba(8,30,43,.72); padding: .4rem .8rem; border-radius: 999px; letter-spacing: .03em; }
.vt-hint { position: absolute; right: .8rem; top: .8rem; font: 500 .78rem var(--sans); color: #fff; background: rgba(8,30,43,.6); padding: .4rem .8rem; border-radius: 999px; pointer-events: none; }
.vt-loading { position: absolute; inset: 0; display: grid; place-items: center; background: #231c10; color: #f1e6d0; font: 500 1rem var(--sans); transition: opacity .4s; }
.vt-loading.is-done { opacity: 0; pointer-events: none; }
.vt-fallback { padding: 2rem; color: #fff; }

/* controls row: left to right = form | card | look buttons | d-pad (the d-pad sits at the right) */
.vt-controls { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto auto; gap: var(--vt-gap); align-items: stretch; margin-top: var(--vt-gap); }
.vt-panel { background: #fbf5e8; border: 2px solid #cdb98f; border-radius: 12px; padding: 1.1rem 1.15rem; box-shadow: 0 10px 24px -18px rgba(60,40,10,.55); }
.vt-panel h3 { font: 600 1.05rem var(--sans); letter-spacing: 0; margin: 0 0 .65rem; color: var(--night); }
.vt-form { display: grid; gap: .55rem; }
.vt-form label { font: 600 .72rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: #5b4a2c; display: grid; gap: .22rem; }
.vt-form input { font: 400 .95rem var(--sans); padding: .55rem .7rem; border: 2px solid #cdbd9b; border-radius: 8px; background: #fffdf8; color: var(--ink, #081e2b); min-width: 0; }
.vt-form input:focus { outline: 2px solid var(--flag-blue); outline-offset: 1px; }
.vt-form .cf-turnstile { min-height: 65px; }
.vt-form button { font: 700 .95rem var(--sans); color: #fff; background: var(--flag-blue); border: 0; border-radius: 8px; padding: .7rem 1rem; cursor: pointer; transition: transform .15s, background .15s; }
.vt-form button:hover { background: #07244a; transform: translateY(-1px); }
.vt-form__msg { font: 500 .85rem var(--sans); margin: 0; min-height: 1.1em; color: #35444f; }
.vt-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.vt-card__pic { flex: 0 0 auto; height: var(--pic-h, 9rem); min-height: 84px; background: #fff url(assets/floorplan-card.jpg) 40% 42% / cover no-repeat; border-bottom: 1px solid #e3d6b8; }
.vt-card__body { padding: .9rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.vt-card__body h3 { margin: 0; }
.vt-card__body p { margin: 0; font-size: .92rem; line-height: 1.45; color: #35444f; }
.vt-card__body p + p { margin-top: .1rem; }
.vt-dl { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: .5rem; font: 700 .88rem var(--sans); text-decoration: none; color: #fff; background: var(--night); border-radius: 8px; padding: .62rem 1rem; transition: background .2s, transform .15s; }
.vt-dl:hover { background: var(--steel); transform: translateY(-1px); }
.vt-look { display: flex; flex-direction: column; justify-content: center; gap: .7rem; }
.vt-pad { display: grid; align-content: center; justify-items: center; }
.vt-look .vt-btn { width: 6.6rem; }
.vt-btn { font: 700 .82rem var(--sans); letter-spacing: .03em; color: #fff; background: linear-gradient(180deg, #1b4a72 0%, #0c2c4a 100%); border: 1px solid #0a2238; border-radius: 12px; padding: .7rem .6rem; cursor: pointer; box-shadow: 0 5px 0 #06182a, 0 10px 16px -8px rgba(0,0,0,.5); display: flex; flex-direction: column; align-items: center; gap: .2rem; user-select: none; -webkit-user-select: none; touch-action: none; transition: transform .08s, box-shadow .08s; }
.vt-btn:hover { background: linear-gradient(180deg, #23608f 0%, #0f3659 100%); }
.vt-btn.is-down, .vt-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #06182a, 0 4px 8px -4px rgba(0,0,0,.5); }
.vt-btn svg { width: 1.3rem; height: 1.3rem; fill: currentColor; }
.vt-btn small { font: 500 .66rem var(--sans); opacity: .8; letter-spacing: .06em; }
.vt-dpad { display: grid; grid-template-columns: repeat(3, 3.4rem); grid-template-rows: repeat(3, 3.4rem); gap: .25rem; padding: .55rem; background: radial-gradient(circle at 50% 50%, #243b50 0%, #101c28 100%); border-radius: 50%; width: 12.4rem; height: 12.4rem; box-shadow: inset 0 0 0 3px #0a1219, 0 12px 24px -14px rgba(0,0,0,.6); place-content: center; }
.vt-dpad button { border: 0; border-radius: 12px; background: linear-gradient(180deg, #3b5670 0%, #22364a 100%); color: #f3f7fa; cursor: pointer; display: grid; place-items: center; box-shadow: 0 3px 0 #0a1219; transition: transform .08s, box-shadow .08s, background .15s; touch-action: none; user-select: none; -webkit-user-select: none; }
.vt-dpad button:hover { background: linear-gradient(180deg, #4a6a88 0%, #2b455d 100%); }
.vt-dpad button.is-down, .vt-dpad button:active { transform: translateY(3px); box-shadow: 0 0 0 #0a1219; background: #ffd64f; color: #081e2b; }
.vt-dpad svg { width: 1.7rem; height: 1.7rem; fill: currentColor; }
.vt-dpad .u { grid-area: 1 / 2; } .vt-dpad .l { grid-area: 2 / 1; } .vt-dpad .r { grid-area: 2 / 3; } .vt-dpad .d { grid-area: 3 / 2; }
.vt-dpad .c { grid-area: 2 / 2; background: #0e1822; box-shadow: none; border-radius: 50%; pointer-events: none; }

/* ---------- Amenities (white page, 2px inset rounded blue border, flag only inside the border) ---------- */
.vt-amen-wrap { background: #fff; padding: 2px; }
.vt-amen { position: relative; isolation: isolate; overflow: hidden; background: #fff; border: 2px solid var(--flag-blue); border-radius: 12px; padding: clamp(2.4rem, 6vw, 4.5rem) 0; }
.vt-flag { position: absolute; left: -10%; top: -20%; width: 120%; height: 140%; z-index: -1; opacity: .05; transform: rotate(7deg); transform-origin: center; pointer-events: none; }
.vt-amen__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.2rem, 2.6vw, 2.4rem) clamp(1rem, 2vw, 2rem); margin-top: 1.8rem; }
.vt-amen__item h3 { font: 700 1.08rem var(--sans); color: var(--flag-blue); margin: 0 0 .6rem; letter-spacing: 0; }
.vt-stars { list-style: none; margin: 0 0 .7rem; padding: 0; display: grid; gap: .38rem; }
.vt-stars li { position: relative; padding-left: 1.55rem; font-size: .95rem; line-height: 1.4; color: #2b3a44; }
.vt-stars li::before { content: "\2605"; position: absolute; left: 0; top: -.04em; color: var(--flag-blue); font-size: 1.05rem; }
.vt-link { position: relative; display: inline-block; font: 700 .9rem var(--sans); color: var(--flag-blue); text-decoration: none; padding: .15rem 0 .35rem; }
.vt-link::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--flag-blue) 0 50%, #b22234 50% 100%); transform-origin: left; animation: vt-underline 3.2s ease-in-out infinite; }
.vt-link span { display: inline-block; transition: transform .25s; animation: vt-nudge 2.6s ease-in-out infinite; }
.vt-link:hover span { transform: translateX(6px); animation: none; }
@keyframes vt-underline { 0%, 100% { transform: scaleX(.35); } 50% { transform: scaleX(1); } }
@keyframes vt-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }

/* ---------- WWFS ---------- */
.vt-wwfs { background: var(--night); color: #fff; padding: clamp(2.4rem, 6vw, 4.5rem) 0; }
.vt-wwfs .vt-h2 { color: #fff; margin: 0; }
.vt-wwfs .vt-eyebrow { color: var(--brass); }
.vt-wwfs .vt-lede { color: #cfe0ec; }
.vt-wwfs__head { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; flex-wrap: wrap; margin-bottom: .9rem; }
.vt-wwfs__logo { display: block; background: #fff; border-radius: 12px; padding: .65rem 1.1rem; line-height: 0; box-shadow: 0 10px 26px -14px rgba(0,0,0,.7); transition: transform .2s; }
.vt-wwfs__logo:hover { transform: translateY(-2px); }
.vt-wwfs__logo img { display: block; width: clamp(150px, 22vw, 240px); height: auto; border-radius: 6px; }
.vt-wwfs__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem; margin-top: 1.6rem; }
.vt-wwfs__col { border-top: 3px solid var(--brass); padding-top: 1rem; }
.vt-wwfs__col h3 { color: #fff; font: 700 1.05rem var(--sans); margin: 0 0 .8rem; }
.vt-wwfs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.vt-wwfs li { position: relative; padding-left: 1.3rem; font-size: .95rem; line-height: 1.42; color: #e7f1f8; }
.vt-wwfs li::before { content: ""; position: absolute; left: 0; top: .5em; width: .5rem; height: .5rem; background: var(--brass); border-radius: 50%; }
.vt-wwfs__src { margin: 1.6rem 0 0; font-size: .82rem; color: #9db6c8; }
.vt-wwfs__src a { color: var(--brass); }

@media (max-width: 1100px) {
  .vt-controls { grid-template-columns: 1fr 1fr; }
  .vt-look, .vt-pad { grid-row: 1; }
  .vt-look { justify-self: end; flex-direction: row; }
  .vt-pad { justify-self: start; }
  .vt-amen__grid, .vt-wwfs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .vt-controls { grid-template-columns: 1fr 1fr; }
  .vt-pad { order: 1; grid-row: auto; justify-self: center; }
  .vt-look { order: 2; grid-row: auto; justify-self: center; flex-direction: column; }
  .vt-form { order: 3; grid-column: 1 / -1; }
  .vt-card { order: 4; grid-column: 1 / -1; }
  .vt-dpad { width: 10.2rem; height: 10.2rem; grid-template-columns: repeat(3, 2.8rem); grid-template-rows: repeat(3, 2.8rem); padding: .4rem; }
  .vt-look .vt-btn { width: 6rem; }
  .vt-amen__grid, .vt-wwfs__grid { grid-template-columns: 1fr; }
  .vt-hint { display: none; }
  .vt-stats__grid { grid-template-columns: 1fr; gap: .5rem; }
  .vt-star { display: none; }
  .vt-stat { font-size: clamp(1.5rem, 8vw, 2.1rem); }
  .vt-vc__time, .vt-vc button#vtLoop { display: none; }
}
@media (prefers-reduced-motion: reduce) { .vt-link::after, .vt-link span { animation: none; } }

/* ---------- Sticky header + menu ---------- */
.dh-header { position: sticky; top: 0; z-index: 60; }

/* ---------- "Who We Are" flyout (desktop) ---------- */
@media (min-width: 961px) {
  .dh-nav li.menu-item-has-children { position: static; }
  .dh-nav li.menu-item-has-children > .sub-menu { display: none; }
  .vt-mega { position: absolute; left: 0; right: 0; top: 100%; z-index: 70; background: #fff; border-top: 3px solid #c09000; box-shadow: 0 30px 60px -26px rgba(8,30,43,.6); padding: 1.4rem var(--gutter, 1.5rem) 2.1rem; visibility: hidden; opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); transition: opacity .25s ease .22s, visibility 0s linear .5s, clip-path .01s linear .5s; overflow: hidden; }
  .dh-nav li:hover > .vt-mega, .dh-nav li:focus-within > .vt-mega { visibility: visible; opacity: 1; pointer-events: auto; clip-path: inset(0 0 0 0); transition-delay: 0s; animation: vt-wavein .75s cubic-bezier(.22,.9,.3,1) both; }
  .vt-mega__grid { max-width: 74rem; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
  .vt-mcard { position: relative; display: flex; flex-direction: column; background: #fff; border: 2px solid #d9e3ec; border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--night); opacity: 0; transform: translateY(34px) scale(.96); transition: border-color .2s, box-shadow .25s, transform .25s; }
  .dh-nav li:hover .vt-mcard, .dh-nav li:focus-within .vt-mcard { animation: vt-cardwave .7s cubic-bezier(.2,.9,.3,1.15) both; animation-delay: calc(var(--i) * 90ms + 120ms); }
  .vt-mcard::after { display: none !important; }
  .vt-mcard:hover, .vt-mcard:focus-visible { border-color: var(--flag-blue); box-shadow: 0 0 0 3px rgba(10,49,97,.18), 0 18px 30px -18px rgba(8,30,43,.65); transform: translateY(-4px); }
  .vt-mcard__vid { display: block; position: relative; aspect-ratio: 4 / 3; background: #0a2434; overflow: hidden; }
  .vt-mcard__vid video { width: 100%; height: 100%; object-fit: cover; display: block; }
  .vt-mcard__body { display: block; padding: .8rem .95rem 1rem; }
  .vt-mcard h4 { margin: 0 0 .35rem; font: 800 1.1rem/1.15 var(--sans); color: var(--flag-blue); white-space: nowrap; letter-spacing: -.005em; }
  .vt-mcard p { margin: 0; font: 400 .86rem/1.4 var(--sans); color: #35444f; }
  .vt-mega__wave { position: absolute; left: 0; bottom: -1px; width: 200%; height: 22px; fill: #eaf4fb; animation: vt-waveslide 9s linear infinite; pointer-events: none; }
}
@keyframes vt-wavein { 0% { clip-path: inset(0 0 100% 0 round 0 0 40% 40%); } 70% { clip-path: inset(0 0 -4% 0 round 0 0 18% 18%); } 100% { clip-path: inset(0 0 0 0 round 0); } }
@keyframes vt-cardwave { 0% { opacity: 0; transform: translateY(40px) scale(.95); } 60% { opacity: 1; transform: translateY(-7px) scale(1.01); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes vt-waveslide { to { transform: translateX(-50%); } }
@media (max-width: 960px) { .vt-mega { display: none; } }
@media (prefers-reduced-motion: reduce) { .vt-mega, .vt-mcard, .vt-mega__wave { animation: none !important; } .dh-nav li:hover .vt-mcard, .dh-nav li:focus-within .vt-mcard { opacity: 1; transform: none; } }

/* ---------- Banner as video (clips cut quickly; colour washed toward the navy overlay) ---------- */
.dh-hero .vt-herovids { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: transparent; }
.dh-hero .vt-herovids video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: saturate(.5) contrast(.95) brightness(.9); }
.dh-hero .vt-herovids video.is-on { opacity: 1; }
.dh-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: #0a2434; mix-blend-mode: color; opacity: .6; pointer-events: none; }

/* ---------- "Apply now" call to action on the tour screen ---------- */
.vt-apply { position: absolute; left: .8rem; bottom: .8rem; z-index: 4; font: 800 .82rem/1 var(--sans); letter-spacing: .02em; color: var(--night); background: var(--brass, #ffd64f); border: 2px solid #c09000; border-radius: 6px; padding: .6rem .95rem; text-decoration: none; box-shadow: 0 6px 14px -8px rgba(0,0,0,.7); transition: transform .15s, background .15s; }
.vt-apply:hover { background: #fff; transform: translateY(-2px); }

/* ---------- Placeholders: every video sits on a still image, so a video that cannot render still looks finished ---------- */
.vt-video__frame { background: #0a2434 url(assets/video-poster.jpg) center / cover no-repeat; }
.dh-hero .vt-herovids { background: url(assets/hero-poster.jpg) center / cover no-repeat; }
.dh-hero.vt-hero-still .vt-herovids video { display: none; }       /* set by page.js on slow / data-saver / reduced-motion phones or when playback stalls */
.vt-video__frame.vt-still video { opacity: 0 !important; }
.vt-video__big { position: absolute; left: 50%; top: 50%; z-index: 4; width: 4.4rem; height: 4.4rem; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid rgba(255,255,255,.85); background: rgba(8,30,43,.62); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 10px 30px -10px rgba(0,0,0,.7); }
.vt-video__big[hidden] { display: none; }
.vt-video__big svg { width: 2rem; height: 2rem; fill: currentColor; margin-left: .2rem; }
.vt-dlm { display: none; }

/* ---------- WWFS: four equal columns with equal gaps ---------- */
.vt-wwfs__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2.2vw, 1.8rem); }
.vt-wwfs__col { min-width: 0; }
@media (max-width: 1100px) { .vt-wwfs__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) { .vt-wwfs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 1.2rem; } }

/* ---------- Phones: tour first, then look up/down side by side, then the game pad, card, form, download ---------- */
@media (max-width: 640px) {
  .vt-controls { display: flex; flex-direction: column; align-items: stretch; gap: 1rem; }
  .vt-look { order: 1; flex-direction: row; justify-content: center; align-self: center; gap: .8rem; }
  .vt-pad { order: 2; align-self: center; }
  .vt-card { order: 3; }
  .vt-form { order: 4; }
  .vt-controls a.vt-dlm { order: 5; display: flex !important; align-items: center; justify-content: center; width: 100%; min-height: 3rem; box-sizing: border-box; padding: .9rem 1rem; font-size: .95rem; align-self: stretch; flex: 0 0 auto; visibility: visible; opacity: 1; }
  .vt-card .vt-dld { display: none; }
  .vt-look .vt-btn { width: 7.4rem; }
  .vt-dpad { width: 11rem; height: 11rem; grid-template-columns: repeat(3, 3.1rem); grid-template-rows: repeat(3, 3.1rem); padding: .45rem; }
  .vt-wwfs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem .9rem; }
  .vt-wwfs li { font-size: .84rem; }
  .vt-wwfs__col h3 { font-size: .95rem; }
  .vt-video__frame { height: 78vw; max-height: 70vh; min-height: 260px; }
  .vt-video__welcome p { font-size: clamp(1.6rem, 8vw, 2.4rem); }
  .vt-vc { padding: 1.6rem .5rem .4rem; }
  .vt-vc button, .vt-vc__speed select { width: 2.1rem; height: 2.1rem; }
  .vt-vc__speed select { width: auto; }
  .vt-vc__row { gap: .25rem; }
}

/* ---------- No-WebGL fallback: photo walkthrough ---------- */
.vt-photo { position: absolute; inset: 0; background: #1a1a1a; display: none; }
.vt-stage.is-photo .vt-photo { display: block; }
.vt-stage.is-photo #vtCanvas { display: none; }
.vt-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vt-photo__note { position: absolute; left: .8rem; right: .8rem; top: 3.2rem; font: 500 .78rem var(--sans); color: #fff; background: rgba(8,30,43,.72); padding: .45rem .8rem; border-radius: 8px; width: fit-content; max-width: calc(100% - 1.6rem); }

/* ---------- Phones: heavier, higher-contrast type (the light serif looked weak on small screens) ---------- */
@media (max-width: 720px) {
  .dh-hero h1, .vt-h2, .vt-wwfs .vt-h2 { font-weight: 700; letter-spacing: -.01em; -webkit-font-smoothing: antialiased; }
  .dh-hero h1 { text-shadow: 0 2px 14px rgba(0,0,0,.55); }
  .dh-hero p { font-weight: 500; text-shadow: 0 1px 8px rgba(0,0,0,.55); }
  .vt-lede, .vt-stars li, .vt-card__body p, .vt-wwfs li { font-weight: 500; }
  .vt-lede { color: #1f2d38; }
  .vt-wwfs .vt-lede { color: #e6f0f7; }
  .vt-wwfs li { color: #f1f7fb; }
  .vt-stat { font-size: clamp(1.9rem, 10.5vw, 2.8rem); }
  .vt-stat__small { font-size: .5em; letter-spacing: .06em; }
  .vt-video__welcome p { font-weight: 800; font-size: clamp(1.9rem, 9vw, 2.6rem); line-height: 1.1; -webkit-text-stroke: .5px rgba(0,0,0,.35); text-shadow: 0 2px 4px rgba(0,0,0,.5), 0 4px 22px rgba(0,0,0,.65); }
  .vt-tab { font-weight: 700; }
  .vt-form label { font-weight: 700; color: #4a3b20; }
  .vt-eyebrow { font-weight: 700; }
}

/* ---------- Panorama (phone) tour: ChatGPT rewrite ---------- */
.vt-photo {
  overflow: hidden;
}

.vt-pano {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #111;
  touch-action: none;
  cursor: grab;
  contain: strict;
}

.vt-pano__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #111;
}

.vt-pano__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  object-fit: cover;
  background: #111;
  transition: opacity .18s ease;
}

.vt-cube,
.vt-face {
  display: none !important;
}

.vt-hots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.vt-hot {
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  pointer-events: auto;
}

.vt-hot__ring {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(8, 30, 43, .55);
  border: 3px solid #fff;
  box-shadow: 0 8px 18px -6px rgba(0, 0, 0, .7);
  animation: vt-pulse 2.2s ease-in-out infinite;
}

.vt-hot__ring svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}

.vt-hot__tip {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  margin-top: 4px;
  font: 700 .72rem var(--sans);
  color: #fff;
  background: rgba(8, 30, 43, .82);
  padding: .2rem .5rem;
  border-radius: 6px;
  white-space: nowrap;
}

.is-down {
  transform: translateY(1px);
}

.is-done {
  opacity: 0;
  pointer-events: none;
}

.vt-photo__note {
  z-index: 3;
  pointer-events: auto;
}

.vt-photo__note a {
  color: #ffd64f;
  font-weight: 700;
}

.is-gone {
  opacity: 0;
  pointer-events: none;
}

@keyframes vt-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 214, 79, .55), 0 8px 18px -6px rgba(0, 0, 0, .7);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(255, 214, 79, 0), 0 8px 18px -6px rgba(0, 0, 0, .7);
  }
}


@media (max-width: 640px) {
  .vt-stage { aspect-ratio: 4 / 3; }
  .vt-hot, .vt-hot__ring { width: 46px; height: 46px; }
  .vt-hot__ring svg { width: 22px; height: 22px; }
  .vt-hot__tip { font-size: .66rem; }
  .vt-photo__note { top: auto; bottom: 3.4rem; left: .5rem; font-size: .7rem; padding: .35rem .6rem; transition: opacity .6s; }
  .vt-photo__note.is-gone { opacity: 0; pointer-events: none; }
}

/* Phone / coarse-pointer memory relief. Keeps layout; removes animation/layer pressure. */
@media (pointer: coarse), (max-width: 720px) {
  /* Grain: no animated SVG turbulence/composited overlay on phones. */
  .grain,
  .vt-grain,
  .dh-grain,
  [class*="grain"] {
    animation: none !important;
    background-image: none !important;
    opacity: 0 !important;
  }

  /* Hero/welcome stay poster-first until explicit play. */
  #vtHeroVids video,
  #vtVideo video,
  .vt-mcard video {
    preload: none;
  }

  /* Remove speculative compositor allocations. */
  #vtHeroVids,
  #vtVideo,
  .vt-face,
  .vt-cube,
  .vt-stage,
  .vt-pano,
  .dh-hero,
  .vt-card,
  .vt-mcard {
    will-change: auto !important;
  }

  /* Large blur/backdrop filters are expensive on iOS tile memory. */
  .dh-hero::before,
  .dh-hero::after,
  .vt-card,
  .vt-panel,
  .vt-glass,
  .vt-vc,
  .vt-menu,
  .vt-modal,
  [class*="blur"],
  [class*="glass"] {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    filter: none !important;
  }

  /* Keep the pano functional, but avoid promoting every face indefinitely. */
  .vt-face {
    backface-visibility: hidden;
    contain: paint;
  }

  /* Canvas flag is drawn once by JS on phones. */
  #vtFlag {
    transform: rotate(7deg);
  }
}

/* (added by us) the welcome-video grain overlay is named "grade", not "grain": stop its animation and drop it on phones */
@media (pointer: coarse), (max-width: 720px) {
  .vt-video__grade::after { display: none !important; animation: none !important; }
  .vt-video video, .dh-hero .vt-herovids video { filter: none !important; }
}

/* phones: the welcome text sits on the poster from the start, big and high-contrast */
@media (pointer: coarse), (max-width: 720px) {
  .vt-video__welcome { background: linear-gradient(180deg, rgba(8,30,43,.62) 0%, rgba(8,30,43,.45) 55%, rgba(8,30,43,.2) 100%); transition: opacity .8s ease; }
  .vt-video__welcome p { color: #fff; font-weight: 800; font-size: clamp(2rem, 10vw, 2.9rem); line-height: 1.12; text-shadow: 0 2px 3px rgba(0,0,0,.75), 0 4px 18px rgba(0,0,0,.8); -webkit-text-stroke: 0; max-width: 11ch; margin: 0 auto; }
}
@media (pointer: coarse), (max-width: 720px) {
  .vt-video__welcome { place-items: start center; padding-top: 9%; }
  .vt-video__welcome p { font-size: clamp(1.8rem, 8.6vw, 2.6rem); max-width: 14ch; }
  .vt-video__big { top: 66%; width: 3.6rem; height: 3.6rem; }
}

/* ---------- Phone-lite (class set by the inline loader): nothing that animates, blends or sticks ---------- */
.vt-phone *, .vt-phone *::before, .vt-phone *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
.vt-phone .dh-header { position: relative !important; top: auto !important; box-shadow: none !important; }
.vt-phone .dh-hero::after { display: none !important; }
.vt-phone .dh-hero::before { background: linear-gradient(180deg, rgba(8,30,43,.9), rgba(8,30,43,.82)) !important; }
.vt-phone #vtHeroVids, .vt-phone .vt-herovids, .vt-phone .vt-video__grade, .vt-phone .vt-mega { display: none !important; }
.vt-phone .dh-hero { background-size: cover; background-position: center; }
.vt-phone #vtFlag, .vt-phone .vt-flag { display: none !important; }
.vt-phone .vt-video video { display: none !important; }
.vt-phone .vt-stage, .vt-phone .vt-panel, .vt-phone .vt-btn, .vt-phone .vt-dpad, .vt-phone .vt-card, .vt-phone .vt-apply { box-shadow: none !important; }
.vt-phone .vt-hot__ring { box-shadow: none !important; }
.vt-build { opacity: .75; font-weight: 600; margin-left: .3em; }
.vt-pano__ghost { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; opacity: 0; background: #111; }

/* VT demo (websnoogie.com sales copy of the dunhamhouse.org/vt engine). Brand: navy #0B1F3A, yellow #F5B800, green #17703d. Loaded after vt.css. */
.vd { --night: #0B1F3A; --steel: #1b4a72; --brass: #F5B800; --ink: #0B1F3A; --sans: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif; --serif: Georgia, serif; --gutter: 0; --vt-gap: 10px; }
.vd { height: 100%; display: flex; flex-direction: column; }
.vd .vt-tabs { margin: 0; padding: 8px 10px 0; background: #0B1F3A; gap: 6px; flex: 0 0 auto; }
.vd .vt-tab { font: 700 .9rem var(--sans); color: #cfd9e6; background: #16335a; border: 1px solid #27497a; border-bottom: 0; border-radius: 12px 12px 0 0; padding: .6rem 1.2rem; min-height: 44px; }
.vd .vt-tab[aria-selected="true"] { background: #F5B800; color: #0B1F3A; border-color: #F5B800; }
.vd .vt-tab:focus-visible, .vd .vt-btn:focus-visible, .vd .vt-dpad button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.vd .vt-stage { flex: 1 1 auto; min-height: 0; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; }
.vd .vt-bar { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 8px 10px 10px; background: #0B1F3A; }
.vd .vt-look { display: flex; gap: 8px; margin: 0; }
.vd .vt-look .vt-btn { width: 6.2rem; min-height: 44px; }
.vd .vt-pad { margin: 0; }
.vd .vt-dpad { grid-template-columns: repeat(3, 2.6rem); grid-template-rows: repeat(2, 2.6rem); padding: .35rem; gap: .2rem; }
.vd .vt-dpad .u { grid-column: 2; grid-row: 1; } .vd .vt-dpad .l { grid-column: 1; grid-row: 2; } .vd .vt-dpad .d { grid-column: 2; grid-row: 2; } .vd .vt-dpad .r { grid-column: 3; grid-row: 2; } .vd .vt-dpad .c { display: none; }
.vd .vt-hint { font-size: .78rem; }
.vd .vt-photo__note .vt-build, .vd .vt-3dlink { display: none; }
@media (max-width: 520px) { .vd .vt-bar { gap: 8px; } .vd .vt-look .vt-btn { width: 5rem; font-size: .74rem; } .vd .vt-look .vt-btn small { display: none; } }
@media (prefers-reduced-motion: reduce) { .vd * { animation-duration: .001s !important; transition-duration: .001s !important; } }
.vd.vt-tour { padding: 0; margin: 0; background: #0B1F3A; min-height: 0; }
.vd .vt-pad { display: block; background: none; padding: 0; border: 0; }
.vd .vt-dpad { border-radius: 16px; background: #16335a; box-shadow: none; border: 1px solid #27497a; width: auto; height: auto; }
.vd .vt-look { display: flex !important; flex-direction: row !important; flex-wrap: nowrap; }
.vd .vt-bar { padding: 8px 10px 12px; }
