/* tera-web: tera.lumbridgecorp.com, a sub-site of lumbridgecorp.com in its v5/v6 system
   (lumbridgecorp.com design/tokens.css + src/v5/styles/system.css): Inter, one lime accent,
   hairlines and numbered sections, a dark header and hero band, light or dark body. */
@font-face {
  font-family: Inter;
  src: url("/_/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  /* metric-matched stand-in while Inter swaps in, so the swap shifts nothing */
  font-family: "Inter Fallback";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans");
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22.4%;
  line-gap-override: 0%;
}

/* ---------- tokens (lumbridgecorp.com design/tokens.css) ---------- */
:root, [data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f6f7f3;
  --ink: #111310;
  --muted: #5c6059;
  --rule: #daddd5;
  --rule-strong: #8a8f84;
  --accent: #d4e65a;
  --accent-ink: #111310;
  --accent-soft: #f1f5d6;
  --focus: #596500;
  --primary: var(--ink);
  --primary-ink: #ffffff;
  --shot: #e9e6df; /* behind a town still while it loads: the render's own sky */
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111310;
  --surface: #1b1e18;
  --ink: #ffffff;
  --muted: #b9beb2;
  --rule: rgba(255, 255, 255, 0.1);
  --rule-strong: #6b7264;
  --accent-soft: #31381c;
  --focus: #d4e65a;
  --primary: var(--accent);
  --primary-ink: var(--accent-ink);
  --shot: #2a2c27;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #111310; --surface: #1b1e18; --ink: #ffffff; --muted: #b9beb2; --rule: rgba(255, 255, 255, 0.1);
    --rule-strong: #6b7264; --accent-soft: #31381c; --focus: #d4e65a; --primary: var(--accent); --primary-ink: var(--accent-ink); --shot: #2a2c27;
  }
}
:root {
  --font: Inter, "Inter Fallback", Arial, sans-serif;
  --fs-display: clamp(40px, 5vw + 20px, 72px);
  --fs-display-2: clamp(36px, 3.2vw + 18px, 56px);
  --fs-h2: clamp(30px, 2.6vw + 12px, 44px);
  --fs-h3: 22px; --lh-h3: 28px;
  --fs-body: 18px; --lh-body: 28px;
  --fs-label: 12px; --lh-label: 16px;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --section-space: clamp(72px, 9vw, 144px);
  --content: 1272px;
  --gutter: clamp(16px, 5vw, 72px);
  --header-h: 72px;
  --r-control: 6px;
  --r-frame: 8px;
  --dur-1: 120ms; --dur-2: 200ms; --dur-3: 320ms;
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
}
@media (max-width: 639px) {
  :root { --header-h: 64px; --fs-h3: 20px; --lh-h3: 26px; --fs-body: 17px; --lh-body: 26px; --fs-label: 11px; --lh-label: 14px; }
}
@media (prefers-reduced-motion: reduce) { :root { --dur-1: 0.01ms; --dur-2: 0.01ms; --dur-3: 0.01ms; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--s-4)); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font: 400 16px/1.5 var(--font); font-feature-settings: "cv11"; font-synthesis: none;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: fixed; top: var(--s-3); left: var(--s-3); z-index: 40; display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 var(--s-4); border-radius: var(--r-control); background: var(--accent); color: var(--accent-ink);
  font-size: 15px; font-weight: 560; text-decoration: none; transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
.wrap { width: min(var(--content), 100% - 2 * var(--gutter)); margin-inline: auto; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- type roles ---------- */
.display, .display-2 { margin: 0; font-weight: 520; text-wrap: balance; }
.display { font-size: var(--fs-display); line-height: 1.05; letter-spacing: -0.04em; }
.display-2 { font-size: var(--fs-display-2); line-height: 1.06; letter-spacing: -0.035em; }
.grey { color: var(--muted); }
h2 { margin: 0; font-size: var(--fs-h2); line-height: 1.1; font-weight: 520; letter-spacing: -0.03em; text-wrap: balance; }
h3 { margin: 0; font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 560; letter-spacing: -0.01em; }
.lede { margin: 0; max-width: 62ch; color: var(--muted); font-size: var(--fs-body); line-height: var(--lh-body); text-wrap: pretty; }
.label, .eyebrow {
  margin: 0; color: var(--muted); font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 560;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.label a { color: inherit; text-underline-offset: 3px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.eyebrow .sq { width: 8px; height: 8px; background: var(--accent); flex: none; }
.fine { margin: var(--s-5) 0 0; color: var(--muted); font-size: 14px; line-height: 22px; }
.fine a { color: var(--ink); text-underline-offset: 3px; }

/* ---------- controls ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; min-width: 112px; padding: 0 var(--s-5); border: 1px solid var(--rule-strong); border-radius: var(--r-control);
  background: transparent; color: var(--ink); font: 560 15px/1 var(--font); letter-spacing: -0.005em; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
}
.button:hover { background: var(--surface); }
.button.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.button.primary:hover { background: color-mix(in srgb, var(--primary) 86%, var(--bg)); }
.button.small { min-height: 36px; min-width: 0; padding: 0 var(--s-4); font-size: 14px; }
.button:disabled { opacity: 0.55; cursor: wait; }
[data-theme="dark"] .button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.text-link { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.text-link:hover { color: var(--ink); }
.text-link-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 15px; font-weight: 560; text-decoration: none; }
.text-link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
.icon-button {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; flex: none;
  border: 1px solid var(--rule-strong); border-radius: var(--r-control); background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color var(--dur-2) var(--ease-out);
}
.icon-button:hover { background: var(--surface); }
.theme-toggle[aria-pressed="true"] .rays { opacity: 0.35; }
@media (max-width: 639px) { .social-link { display: none; } }

/* ---------- header: follows the site theme, like lumbridgecorp.com's ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top);
  background: color-mix(in srgb, var(--bg) 92%, transparent); color: var(--ink); border-bottom: 1px solid var(--rule);
  -webkit-backdrop-filter: saturate(140%) blur(16px); backdrop-filter: saturate(140%) blur(16px);
}
.header-inner { display: flex; align-items: center; gap: var(--s-5); width: min(var(--content), 100% - 2 * var(--gutter)); height: var(--header-h); margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; flex: none; color: var(--ink); font-size: 18px; font-weight: 640; letter-spacing: -0.035em; text-decoration: none; }
.brand-mark { width: 26px; height: 26px; }
.brand-sub { display: inline-flex; align-items: center; height: 24px; padding: 0 0 0 10px; margin-left: 2px; border-left: 1px solid var(--rule-strong); color: var(--muted); font-weight: 520; letter-spacing: -0.02em; }
.main-nav { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; font-size: 14px; }
.nav-list { display: flex; align-items: center; gap: clamp(4px, 0.8vw, 12px); margin: 0 var(--s-3) 0 0; padding: 0; list-style: none; }
.nav-link { display: inline-block; min-width: 44px; padding: 0 var(--s-2); line-height: 44px; color: var(--ink); font-size: 14px; font-weight: 480; text-decoration: none; white-space: nowrap; }
.nav-link:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.nav-rule { width: 1px; height: 20px; margin: 0 var(--s-2); background: var(--rule-strong); }
.main-nav .button { min-height: 44px; min-width: 88px; padding: 0 var(--s-4); margin-left: var(--s-1); font-size: 14px; }
.main-nav .who { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 14px; margin-right: var(--s-2); }
.main-nav form { margin: 0; }
.header-actions { display: flex; align-items: center; gap: var(--s-2); }
.header-cta, .menu-toggle { display: none; }
@media (max-width: 1279px) {
  .main-nav { display: none; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
}
@media (min-width: 640px) and (max-width: 1279px) {
  .header-cta { display: inline-flex; min-height: 44px; min-width: 88px; padding: 0 var(--s-4); font-size: 14px; }
}
@media (max-width: 639px) {
  .brand { font-size: 17px; gap: 8px; }
  .brand-mark { width: 24px; height: 24px; }
  .header-actions { gap: var(--s-1); }
}
@media (max-width: 380px) { .brand > span:not(.brand-sub) { display: none; } .brand-sub { border-left: 0; padding-left: 0; margin-left: 0; color: var(--ink); } }

/* menu sheet */
.menu-sheet { display: none; }
.menu-sheet[open] {
  display: flex; flex-direction: column; position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none;
  margin: 0; padding: env(safe-area-inset-top) 0 max(var(--s-5), env(safe-area-inset-bottom)); border: 0;
  background: var(--bg); color: var(--ink); overflow-y: auto; overscroll-behavior: contain;
}
.menu-sheet::backdrop { background: #111310; }
.menu-head { display: flex; align-items: center; justify-content: space-between; width: min(var(--content), 100% - 2 * var(--gutter)); height: calc(var(--header-h) + 1px); margin-inline: auto; border-bottom: 1px solid var(--rule); }
.menu-sheet nav { width: min(var(--content), 100% - 2 * var(--gutter)); margin: 0 auto; }
.sheet-list { margin: 0; padding: 0; list-style: none; }
.sheet-list li { border-bottom: 1px solid var(--rule); }
.sheet-link { display: flex; align-items: baseline; gap: var(--s-4); min-height: 64px; padding: var(--s-4) 0; color: var(--ink); font-size: clamp(24px, 4vw, 32px); line-height: 1.15; font-weight: 520; letter-spacing: -0.03em; text-decoration: none; }
.sheet-n { min-width: 2.5em; color: var(--muted); font-size: var(--fs-label); letter-spacing: 0.06em; font-weight: 560; transform: translateY(-0.35em); font-variant-numeric: tabular-nums; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin-top: var(--s-6); }
.sheet-actions form { margin: 0; display: contents; }
.sheet-actions .button { width: 100%; min-height: 52px; font-size: 16px; }
@media (prefers-reduced-motion: no-preference) { .menu-sheet[open] nav { animation: sheet-in var(--dur-3) var(--ease-out); } }
@keyframes sheet-in { from { transform: translateY(12px); } }

/* ---------- the opening band (hero, portal head, 404): follows the site theme, like lumbridgecorp.com's heroes ---------- */
.band { position: relative; background: var(--bg); color: var(--ink); isolation: isolate; border-bottom: 1px solid var(--rule); }

/* hero */
.hero { padding: clamp(48px, 7vw, 104px) 0 0; }
.hero-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); align-items: end; }
.hero-copy { grid-column: 1 / span 7; display: grid; gap: var(--s-5); }
.hero-side { grid-column: 8 / -1; display: grid; gap: var(--s-6); padding-bottom: 6px; }
.hero-side .lede { color: var(--muted); }
@media (max-width: 1023px) { .hero-copy, .hero-side { grid-column: 1 / -1; } .hero-side { padding-bottom: 0; } }
.hero-figure { margin-top: clamp(40px, 5vw, 72px); margin-bottom: 0; }
.frame { border: 1px solid var(--rule); border-radius: var(--r-frame); overflow: hidden; background: var(--surface); }
.frame-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 44px; padding: 0 var(--s-4); border-bottom: 1px solid var(--rule); }
.frame-bar .label { color: var(--ink); }
.frame-meta { display: inline-flex; align-items: center; gap: 8px; color: var(--muted) !important; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.frame-media { position: relative; aspect-ratio: 16 / 9; background: #e9e6df url("/public/hero.jpg") center / cover no-repeat; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.play-toggle {
  position: absolute; right: var(--s-4); bottom: var(--s-4); display: inline-flex; align-items: center; gap: 8px;
  min-height: 36px; padding: 0 14px; border: 1px solid rgba(17, 19, 16, 0.18); border-radius: var(--r-control);
  background: rgba(255, 255, 255, 0.86); color: #111310; font: 560 12px/1 var(--font); letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.play-toggle:hover { background: #ffffff; }
.play-toggle:focus-visible { outline: 2px solid #111310; outline-offset: 2px; }
.play-toggle .i-play { display: none; }
.play-toggle[data-playing="false"] .i-play { display: block; }
.play-toggle[data-playing="false"] .i-pause { display: none; }
.caption { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2) var(--s-4); margin: 0; padding: var(--s-3) 0 0; color: var(--muted); font-size: 14px; line-height: 20px; }
.caption a { color: var(--ink); text-underline-offset: 3px; }
.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(40px, 5vw, 64px); margin-bottom: 0; padding-bottom: clamp(48px, 6vw, 88px); }
.specs > div { padding: var(--s-4) var(--s-5) 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.specs > div:first-child { border-left: 0; padding-left: 0; }
.specs dt { color: var(--muted); font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 560; letter-spacing: 0.06em; text-transform: uppercase; }
.specs dd { margin: var(--s-2) 0 0; font-size: clamp(20px, 1.4vw + 10px, 28px); line-height: 1.2; font-weight: 520; letter-spacing: -0.02em; }
@media (max-width: 639px) {
  .specs { grid-template-columns: 1fr 1fr; row-gap: var(--s-5); }
  .specs > div:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* ---------- sections ---------- */
.section { width: min(var(--content), 100% - 2 * var(--gutter)); margin-inline: auto; padding-block: var(--section-space) 0; }
.section-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); row-gap: var(--s-4); column-gap: var(--s-5); align-items: start;
  margin-bottom: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--rule);
}
.section-head > .label { grid-column: 1 / span 3; padding-top: 0.75em; }
.section-head > h2, .section-head > .lede, .section-head > .motion-toggle { grid-column: 4 / -1; }
.section-head > h2 { max-width: 18em; }
@media (max-width: 1023px) {
  .section-head > .label, .section-head > h2, .section-head > .lede, .section-head > .motion-toggle { grid-column: 1 / -1; padding-top: 0; }
  .section-head { margin-bottom: var(--s-7); }
}

/* the town: ten buildings in a hairline grid */
.buildings { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 232px), 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
@media (min-width: 1180px) { .buildings { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 639px) {
  .buildings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-body { padding: var(--s-3) var(--s-3) var(--s-4); }
  .b-body h3 { font-size: 16px; line-height: 22px; }
  .b-body p { font-size: 13px; line-height: 19px; }
  .part { font-size: 11px; padding: 2px 6px; }
}
.building { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); min-width: 0; }
.building a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; transition: background-color var(--dur-2) var(--ease-out); }
.building a:hover { background: var(--surface); }
.building a:focus-visible { outline-offset: -3px; }
.shot { position: relative; overflow: hidden; background: var(--shot); aspect-ratio: 3 / 2; }
.shot img, .shot video { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out), filter 700ms var(--ease-out); }
a:hover .shot img { transform: scale(1.03); }
/* motion loops: fixed 16:9 boxes (the poster holds the layout), a touch brighter on hover */
.building .shot { aspect-ratio: 16 / 9; }
video.loop { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--shot); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  a:hover .shot video.loop { transform: scale(1.03); filter: brightness(1.04) saturate(1.06); }
}
.motion-toggle {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 32px; margin-top: var(--s-2); padding: 0 12px;
  border: 1px solid var(--rule-strong); border-radius: var(--r-control); background: transparent; color: var(--ink);
  font: 560 12px/1 var(--font); letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
}
.motion-toggle:hover { background: var(--surface); }
.motion-toggle .i-play { display: none; }
.motion-toggle[data-playing="false"] .i-play { display: block; }
.motion-toggle[data-playing="false"] .i-pause { display: none; }
.b-body { display: grid; gap: 6px; padding: var(--s-4) var(--s-4) var(--s-5); align-content: start; flex: 1; }
.b-body h3 { font-size: 18px; line-height: 24px; margin-top: 2px; }
.b-body p { margin: 0; color: var(--muted); font-size: 14px; line-height: 21px; }
.part { justify-self: start; margin-top: 8px; padding: 3px 8px; border: 1px solid var(--rule-strong); border-radius: 4px; font-size: 12px; line-height: 16px; font-weight: 560; letter-spacing: 0.02em; }
.building:first-child .part { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* what you see */
.see { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); }
.figure { margin: 0; }
.figure img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--shot); border: 1px solid var(--rule); }
.figure video.loop { border: 1px solid var(--rule); }
.see-a { grid-column: 1 / span 7; }
.see-b { grid-column: 8 / -1; align-self: end; }
.points { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: var(--s-4) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.points li, .xr-list li { display: grid; gap: var(--s-2); align-content: start; padding: var(--s-5) var(--s-5) 0 0; }
.points li + li { padding-left: var(--s-5); border-left: 1px solid var(--rule); }
.points p, .xr-list p { margin: 0; color: var(--muted); font-size: 16px; line-height: 25px; max-width: 40ch; }
@media (max-width: 1023px) {
  .see-a, .see-b { grid-column: 1 / -1; }
  .points { grid-template-columns: 1fr; }
  .points li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); margin-top: var(--s-5); }
}

/* films */
.films-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: var(--s-6) var(--s-5); margin: 0; padding: 0; list-style: none; }
.film-card a { display: grid; gap: var(--s-4); color: inherit; text-decoration: none; }
.film-card .shot { aspect-ratio: 16 / 9; border: 1px solid var(--rule); }
.film-card .dur { position: absolute; right: var(--s-3); bottom: var(--s-3); padding: 3px 7px; border-radius: 4px; background: rgba(17, 19, 16, 0.78); color: #fff; font-size: 12px; font-weight: 560; }
.film-card .dur:empty { display: none; }
.f-body { display: grid; gap: 6px; }
.f-body p { margin: 0; color: var(--muted); font-size: 15px; line-height: 23px; }
.go { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 14px; font-weight: 600; }
.go svg { transition: transform var(--dur-2) var(--ease-out); }
a:hover .go svg { transform: translateX(3px); }
.more { margin: var(--s-5) 0 0; }
/* one film so far: image and text side by side, not a lonely third of a row */
@media (min-width: 900px) {
  .films-grid:has(> .film-card:only-child) { grid-template-columns: 1fr; }
  .film-card:only-child a { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-5); align-items: end; }
  .film-card:only-child .shot { grid-column: 1 / span 7; }
  .film-card:only-child .f-body { grid-column: 8 / -1; padding-bottom: var(--s-2); }
  .film-card:only-child .f-body h3 { font-size: 28px; line-height: 34px; letter-spacing: -0.02em; font-weight: 520; }
}

/* step inside */
.xr { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-5); align-items: start; }
.xr-shot { grid-column: 1 / span 7; overflow: hidden; border: 1px solid var(--rule); background: var(--shot); }
.xr-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.xr-list { grid-column: 8 / -1; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.xr-list li { padding: var(--s-5) 0; border-bottom: 1px solid var(--rule); }
.xr-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
@media (max-width: 1023px) { .xr-shot, .xr-list { grid-column: 1 / -1; } }

/* interactive */
.demo-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--rule); border-radius: var(--r-frame); background: var(--shot); }
.demo-frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9); }
.demo-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.demo-start { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--accent) !important; border-color: var(--accent) !important; color: var(--accent-ink) !important; }

/* CTA band */
.cta-band {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  width: min(var(--content), 100% - 2 * var(--gutter)); margin: var(--section-space) auto; border: 1px solid var(--rule); background: var(--bg);
}
.cta-band::before {
  content: ""; grid-column: 1 / -1; height: 88px; margin-right: -1px; border-bottom: 1px solid var(--rule);
  background: linear-gradient(to right, transparent calc(100% - 1px), var(--rule) calc(100% - 1px)) 0 0 / calc(100% / 12) 100%;
}
.cta-copy { grid-column: 1 / span 8; padding: var(--s-7) var(--s-6); }
.cta-copy p { margin: var(--s-4) 0 0; max-width: 52ch; color: var(--muted); font-size: var(--fs-body); line-height: var(--lh-body); }
.cta-action { grid-column: span 4 / -1; display: flex; flex-wrap: wrap; align-items: flex-end; align-content: flex-end; gap: var(--s-3); padding: var(--s-7) var(--s-6); border-left: 1px solid var(--rule); background: var(--surface); }
.cta-action .button { min-width: 140px; }
@media (max-width: 1023px) { .cta-copy { grid-column: 1 / span 7; } .cta-action { grid-column: span 5 / -1; } }
@media (max-width: 639px) {
  .cta-band::before { background-size: 25% 100%; height: 64px; }
  .cta-copy, .cta-action { grid-column: 1 / -1; }
  .cta-copy { padding: var(--s-6) var(--s-5); }
  .cta-action { padding: var(--s-5); border-left: 0; border-top: 1px solid var(--rule); }
  .cta-action .button { flex: 1; }
}

/* ---------- footer (lumbridgecorp.com's) ---------- */
.site-footer { padding: 0 0 max(var(--s-6), env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); background: var(--bg); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); width: min(var(--content), 100% - 2 * var(--gutter)); margin-inline: auto; }
.footer-brand { grid-column: 1 / span 3; display: flex; flex-direction: column; align-items: flex-start; padding: var(--s-7) var(--s-6) var(--s-7) 0; }
.footer-home { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); font-size: 18px; font-weight: 640; letter-spacing: -0.035em; text-decoration: none; }
.footer-line { margin: var(--s-4) 0 0; max-width: 28ch; color: var(--muted); font-size: 15px; line-height: 24px; text-wrap: pretty; }
.footer-social { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.follow { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--rule-strong); border-radius: var(--r-control); color: var(--ink); font-size: 14px; font-weight: 560; text-decoration: none; }
.follow:hover { background: var(--surface); }
.footer-nav { display: contents; }
.footer-group { grid-column: span 3; min-width: 0; padding: var(--s-7) 0 var(--s-6) var(--s-5); border-left: 1px solid var(--rule); }
.footer-group ul { margin: var(--s-3) 0 0; padding: 0; list-style: none; }
.footer-group a { display: inline-flex; align-items: baseline; min-height: 44px; padding-block: 10px; color: var(--ink); font-size: 15px; line-height: 24px; text-decoration: none; overflow-wrap: anywhere; }
.footer-logout { margin: 0; }
.footer-logout button { display: inline-flex; align-items: baseline; min-height: 44px; padding: 10px 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 15px; line-height: 24px; cursor: pointer; }
.footer-logout button:hover, .footer-group a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.footer-address { display: flex; flex-direction: column; margin: var(--s-4) 0 var(--s-2); font-style: normal; font-size: 15px; line-height: 24px; }
.footer-address-label { color: var(--muted); font-size: 13px; line-height: 20px; margin-bottom: 2px; }
.footer-contact ul { margin-top: var(--s-2); padding-top: var(--s-2); border-top: 1px solid var(--rule); }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-2) var(--s-5);
  padding: var(--s-4) max(var(--gutter), (100% - var(--content)) / 2) 0; border-top: 1px solid var(--rule); color: var(--muted); font-size: 13px; line-height: 20px;
}
.footer-base a:not(.footer-top) { color: inherit; text-underline-offset: 3px; }
.footer-top { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--muted); text-decoration: none; }
.footer-top:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 1023px) {
  .footer-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); padding-right: 0; padding-bottom: var(--s-6); border-bottom: 1px solid var(--rule); }
  .footer-line { margin: 0; flex: 0 1 40ch; }
  .footer-social { margin: 0 0 0 auto; }
  .footer-group { grid-column: span 2; padding-top: var(--s-6); }
  .footer-group:nth-of-type(1) { border-left: 0; padding-left: 0; }
}
@media (max-width: 639px) {
  .footer-brand { flex-direction: column; align-items: flex-start; }
  .footer-line { flex: none; }
  .footer-social { margin: 0; }
  .footer-group:nth-of-type(1), .footer-group:nth-of-type(2) { grid-column: span 3; }
  .footer-group:nth-of-type(3) { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); }
  .footer-group { padding-block: var(--s-5); }
}

/* ---------- films page ---------- */
.page-head { padding: clamp(40px, 6vw, 88px) 0 clamp(28px, 3vw, 44px); display: grid; gap: var(--s-4); }
.films { display: grid; gap: var(--s-6) var(--s-6); padding: 0 0 var(--section-space); }
@media (min-width: 1000px) { .films { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); } }
.player-frame { border: 1px solid var(--rule); border-radius: var(--r-frame); overflow: hidden; background: #000; }
.player { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.now-text { padding-top: var(--s-5); display: grid; gap: var(--s-2); }
.now-text h2 { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 560; letter-spacing: -0.01em; }
.now-text p { margin: 0; color: var(--muted); max-width: 62ch; }
.playlist .label { margin-bottom: var(--s-3); }
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.list li { border-bottom: 1px solid var(--rule); }
.list button { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: center; width: 100%; padding: 12px 4px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.list button:hover { background: var(--surface); }
.list button[aria-current="true"] { box-shadow: inset 3px 0 0 var(--accent); background: var(--surface); }
.list img { width: 112px; aspect-ratio: 16 / 9; object-fit: cover; background: var(--shot); }
.list .t { font-weight: 560; font-size: 15px; }
.list .m { color: var(--muted); font-size: 13px; }

/* ---------- login ---------- */
.login { display: grid; grid-template-columns: minmax(0, 1fr); min-height: calc(100vh - var(--header-h)); }
@media (min-width: 960px) { .login { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.login .panel { width: 100%; max-width: 600px; padding: clamp(40px, 7vw, 104px) var(--gutter); justify-self: end; display: grid; align-content: start; gap: var(--s-4); }
.login .panel .lede { margin-top: var(--s-1); }
.login-side { display: none; position: relative; background: #111310; border-left: 1px solid var(--rule); overflow: hidden; }
.login-side img { width: 100%; height: 100%; object-fit: cover; }
.login-side .label { position: absolute; left: var(--s-6); bottom: var(--s-6); padding: 6px 10px; background: rgba(17, 19, 16, 0.78); color: #fff; border-radius: 4px; }
@media (min-width: 960px) { .login-side { display: block; } }
form.auth { display: grid; gap: 20px; margin-top: var(--s-5); }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; line-height: 20px; font-weight: 560; }
.field input { width: 100%; min-height: 48px; padding: 0 16px; border: 1px solid var(--rule-strong); border-radius: var(--r-control); background: var(--bg); color: var(--ink); font: 400 16px/1.4 var(--font); }
.field input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--ink); }
.field input[aria-invalid="true"] { border-color: var(--ink); border-width: 2px; }
.field .error { margin: 0; font-size: 14px; }
.status { margin: 0; font-size: 14px; line-height: 20px; min-height: 20px; }
.status.bad { padding: 12px 14px; border-left: 3px solid var(--ink); background: var(--surface); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }

/* ---------- portal ---------- */
.portal-head { padding: clamp(40px, 6vw, 88px) 0 clamp(32px, 4vw, 56px); }
.portal-head .wrap { display: grid; gap: var(--s-5); }
ul.status { display: flex; flex-wrap: wrap; gap: 0; margin: var(--s-3) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); min-height: 0; }
ul.status li { display: inline-flex; align-items: center; gap: 8px; padding: var(--s-3) var(--s-5) 0 0; margin-right: var(--s-5); font-size: 14px; line-height: 20px; }
ul.status li[hidden] { display: none; }
ul.status li + li { padding-left: var(--s-5); border-left: 1px solid var(--rule); }
.st-label { color: var(--muted); }
.st-value { font-weight: 560; }
.dot[data-state="wait"] { background: var(--rule-strong); }
.dot[data-state="down"] { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
@media (max-width: 639px) { ul.status li + li { padding-left: 0; border-left: 0; } ul.status li { width: 50%; margin: 0; } ul.status li:last-child { width: 100%; } }
.portal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); margin-block: var(--s-7) var(--section-space); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.card { position: relative; display: flex; flex-direction: column; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--bg); color: inherit; text-decoration: none; transition: background-color var(--dur-2) var(--ease-out); }
.card:hover { background: var(--surface); }
/* the island switcher (sessions with more than one island): its eyebrow above its own row of cards */
.islands { padding-top: var(--s-7); }
.islands .portal-grid { margin-block: var(--s-4) 0; }
.card:focus-visible { outline-offset: -3px; }
.card .shot { aspect-ratio: 16 / 9; border-bottom: 1px solid var(--rule); }
.card-body { display: grid; gap: var(--s-2); padding: var(--s-5) var(--s-5) var(--s-6); align-content: start; }
.card-body h2 { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 560; letter-spacing: -0.01em; }
.card-body p { margin: 0; color: var(--muted); font-size: 15px; line-height: 23px; max-width: 52ch; }
@media (min-width: 1100px) {
  .card.lead { grid-column: span 2; grid-row: span 2; }
  .card.lead .shot { aspect-ratio: auto; flex: 1; min-height: 360px; }
  /* the tall lead frame: the loop fills it (a % height doesn't resolve inside a flex item) */
  .card.lead .shot video, .card.lead .shot img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  .card.lead .card-body h2 { font-size: 30px; line-height: 36px; letter-spacing: -0.02em; }
}

/* ---------- 404 ---------- */
.nf { padding: clamp(56px, 8vw, 120px) 0 clamp(56px, 6vw, 96px); }
.nf-top { display: grid; gap: var(--s-5); max-width: 760px; margin-left: max(var(--gutter), (100% - var(--content)) / 2); }
.nf-links ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin: var(--s-8) 0 var(--section-space); padding: 0; list-style: none; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.nf-links li { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.nf-links a { display: grid; gap: var(--s-2); height: 100%; padding: var(--s-5); color: inherit; text-decoration: none; }
.nf-links a:hover { background: var(--surface); }
.nf-title { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 560; }
.nf-body { color: var(--muted); font-size: 15px; line-height: 23px; }

@media (forced-colors: active) { .eyebrow .sq, .dot { forced-color-adjust: none; } }

/* ---------- access (owners) ---------- */
.access { padding-block: var(--s-6) var(--section-space); display: grid; gap: var(--s-8); }
.access > .status:empty { display: none; }
.access-block { display: grid; gap: var(--s-4); }
.access-head { display: flex; align-items: baseline; gap: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--rule); }
.access-head h2 { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 560; letter-spacing: -0.01em; margin: 0; }
.access .fine { margin: 0; max-width: 72ch; }
.access code { font-size: 13px; }
.table-scroll { overflow-x: auto; }
.access-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.access-table th { text-align: left; color: var(--muted); font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 560; letter-spacing: 0.06em; text-transform: uppercase; padding: 0 var(--s-3) var(--s-2) 0; border-bottom: 1px solid var(--rule); }
.access-table td { padding: var(--s-3) var(--s-3) var(--s-3) 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.access-table .acct { overflow-wrap: anywhere; min-width: 12em; }
.access input, .access select { min-height: 40px; padding: 0 12px; border: 1px solid var(--rule-strong); border-radius: var(--r-control); background: var(--bg); color: var(--ink); font: 400 15px/1.4 var(--font); max-width: 100%; }
.access input:focus-visible, .access select:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--ink); }
.row-actions { display: flex; align-items: center; gap: var(--s-3); white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 10px; border: 1px solid var(--rule-strong); border-radius: 4px; font-size: 13px; line-height: 20px; font-weight: 520; }
.chip-x { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 3px; background: none; color: var(--muted); font-size: 16px; cursor: pointer; }
.chip-x:hover { background: var(--surface); color: var(--ink); }
.role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: var(--s-4); }
.role-card { display: grid; gap: var(--s-3); padding: var(--s-4); border: 1px solid var(--rule); border-radius: var(--r-frame); }
.role-card h3 { margin: 0; font-size: 18px; line-height: 24px; font-weight: 560; }
.inline-add { display: flex; gap: var(--s-2); }
.inline-add input { flex: 1; min-width: 0; }
.access-form { display: flex; flex-wrap: wrap; align-items: end; gap: var(--s-4); }
.access-form .field { min-width: min(100%, 220px); flex: 1; }
.access-form .button { min-height: 40px; }
.access-list { display: grid; gap: var(--s-2); margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 22px; }
.access-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s-2); }
.access-list.audit { font-size: 14px; line-height: 21px; }
.access > *, .access-block { min-width: 0; }
@media (max-width: 719px) {
  .access-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .access-table, .access-table tbody, .access-table tr, .access-table td { display: block; width: 100%; }
  .access-table tr { padding: var(--s-3) 0; border-bottom: 1px solid var(--rule); }
  .access-table td { border: 0; padding: 4px 0; }
  .access-table .acct { min-width: 0; font-weight: 560; }
  .access-table input, .access-table select { width: 100%; }
}
