@font-face {
  font-family: "Open Sans";
  src: url("assets/open-sans-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
:root {
  --primary: hsl(178 100% 26%);
  --foreground: hsl(180 15% 15%);
  --background: hsl(160 10% 97%);
  --border: hsl(174 20% 88%);
  --muted-text: hsl(180 8% 37%);
  --hero-overlay: hsl(178 100% 8% / 85%);
  --content-max: 1280px;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--foreground); background: var(--background); font: 400 16px/1.5 "Open Sans", Arial, sans-serif; }
[hidden] { display: none !important; }
a { color: inherit; }
svg { flex-shrink: 0; width: 24px; height: 24px; stroke-linecap: round; stroke-linejoin: round; }
.shell { width: 100%; max-width: var(--content-max); margin-inline: auto; padding-inline: 32px; }
.hero { color: white; background: linear-gradient(var(--hero-overlay), var(--hero-overlay)), url("assets/sembcorp-hero-banner.webp") center 48% / cover; }
.portal-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; border-bottom: 1px solid rgb(255 255 255 / 22%); }
.eyebrow { margin: 0; color: rgb(255 255 255 / 85%); font: 700 20px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .16em; text-transform: uppercase; }
.close-tab-button { display: inline-flex; gap: 10px; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px; border: 1px solid rgb(255 255 255 / 45%); background: transparent; color: white; font: 600 14px/1.4 "Open Sans", Arial, sans-serif; border-radius: 3px; cursor: pointer; }
.close-tab-button svg { width: 18px; height: 18px; }
.close-tab-button:hover { background: rgb(255 255 255 / 12%); }
.close-control { display: flex; flex-direction: column; align-items: flex-end; padding-block: 12px; }
.close-button-hint { margin: 6px 0 0; max-width: 280px; color: rgb(255 255 255 / 85%); font-size: 12px; line-height: 1.5; text-align: right; }
.hero-content { padding-block: 30px 40px; }
h1 { margin: 20px 0 6px; font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; line-height: 1.15; letter-spacing: -.04em; }
.intro { margin: 0; color: rgb(255 255 255 / 85%); font-size: 18px; }
.visit-meta { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 19px; color: rgb(255 255 255 / 90%); font-size: 16px; }
.visit-meta > span { display: inline-flex; align-items: center; gap: 9px; }
.visit-meta svg { width: 22px; height: 22px; }
.gallery-main { padding-top: 34px; padding-bottom: 24px; }
.return-notice { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; margin-bottom: 28px; background: hsl(174 30% 92%); border: 1px solid var(--border); border-left: 3px solid var(--primary); border-radius: 4px; }
.return-notice > svg { width: 23px; height: 23px; color: var(--primary); margin-top: 2px; }
.return-notice h2 { font-size: 16px; font-weight: 600; letter-spacing: 0; line-height: 1.5; }
.return-notice p { margin: 4px 0 0; font-size: 14px; line-height: 1.6; }
.return-notice .close-tab-status:empty { display: none; }
.return-notice .close-tab-status { margin-top: 12px; font-weight: 600; }
.gallery-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
h2 { margin: 0; font-size: 28px; line-height: 1.25; font-weight: 700; letter-spacing: -.025em; }
.photo-count { color: var(--muted-text); font-size: 14px; white-space: nowrap; }
.photo-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.photo-card { min-width: 0; padding: 12px; background: white; border: 1px solid var(--border); border-radius: 8px; }
.photo-image { display: block; width: 100%; height: auto; border-radius: 3px; background: hsl(174 20% 92%); }
.download-link { display: flex; justify-content: center; align-items: center; gap: 12px; width: 100%; min-height: 52px; margin-top: 12px; padding: 12px 16px; background: var(--primary); color: white; text-decoration: none; font-weight: 600; border-radius: 2px; transition: background-color .15s ease; }
.download-link:hover { background: hsl(178 100% 21%); }
.download-link svg { width: 23px; height: 23px; }
.photo-error { font-size: 14px; color: hsl(0 70% 35%); margin: 8px 0 0; }
.empty-state { margin: 0; padding: 28px; border: 1px solid var(--border); border-radius: 8px; background: white; }
.gallery-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); }
.help { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.help svg { color: var(--muted-text); }
.help p { margin: 0; }
.help a { color: hsl(178 100% 21%); text-underline-offset: 3px; }
.demo-note { margin: 0; color: var(--muted-text); font: 11px/1.6 ui-monospace, monospace; letter-spacing: .04em; }
.photo-privacy { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.photo-privacy h2 { margin: 0 0 8px; color: var(--foreground); font-size: 16px; line-height: 1.5; font-weight: 600; letter-spacing: 0; }
.photo-privacy p { margin: 0; color: var(--muted-text); font-size: 14px; line-height: 1.7; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
.hero button:focus-visible, .download-link:focus-visible { outline-color: hsl(178 80% 65%); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; z-index: 2; left: 12px; top: -80px; padding: 12px 20px; background: white; color: var(--foreground); }
.skip-link:focus { top: 12px; }
@media (max-width: 767px) {
  .shell { padding-inline: 20px; }
  .portal-bar { align-items: flex-start; flex-direction: column; gap: 6px; padding-top: 18px; padding-bottom: 4px; border: 0; }
  .eyebrow { font-size: 15px; letter-spacing: .12em; }
  .close-tab-button { margin-top: 4px; font-size: 14px; }
  .close-control { align-items: flex-start; padding-block: 0; }
  .close-button-hint { max-width: 100%; text-align: left; }
  .hero-content { padding-top: 16px; padding-bottom: 26px; }
  h1 { margin-top: 18px; font-size: 32px; }
  .intro { margin-top: 8px; font-size: 16px; }
  .visit-meta { gap: 12px 22px; font-size: 14px; margin-top: 18px; }
  .visit-meta svg { width: 21px; height: 21px; }
  .gallery-main { padding-top: 25px; }
  .return-notice { padding: 16px; gap: 10px; margin-bottom: 24px; }
  .gallery-heading { margin-bottom: 18px; }
  h2 { font-size: 25px; }
  .photo-list { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .photo-card { padding: 0; background: transparent; border: 0; }
  .photo-image { border-radius: 8px; }
  .download-link { margin-top: 9px; min-height: 50px; border-radius: 3px; }
  .gallery-footer { flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 30px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---- VEC additions: staging banner, code entry fallback, notices ---- */
.env-banner { margin: 0; padding: 8px 16px; background: hsl(40 95% 45%); color: hsl(30 60% 10%); font-weight: 700; font-size: 14px; text-align: center; }
.notice-card { margin: 0 0 28px; padding: 28px; border: 1px solid var(--border); border-radius: 8px; background: white; }
.notice-card h2 { font-size: 22px; margin-bottom: 8px; }
.notice-card p { margin: 0 0 12px; color: var(--muted-text); }
.code-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-top: 16px; }
.code-form label { display: block; width: 100%; font-weight: 600; font-size: 14px; }
.code-form input { flex: 1 1 220px; min-height: 48px; padding: 10px 14px; border: 1px solid hsl(174 15% 70%); border-radius: 3px; font: 600 18px/1.2 ui-monospace, Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; }
.code-form button { min-height: 48px; padding: 10px 22px; border: 0; border-radius: 2px; background: var(--primary); color: white; font: 600 16px/1.2 "Open Sans", Arial, sans-serif; cursor: pointer; }
.code-form button:hover { background: hsl(178 100% 21%); }
.code-form input:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

/* Phones: heading and a compact "Close photo tab" button share one row; the
   browser hint stays available to screen readers only. */
@media (max-width: 767px) {
  .portal-bar { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px;
    padding-top: 14px; padding-bottom: 12px; border-bottom: 1px solid rgb(255 255 255 / 22%); }
  .portal-bar .eyebrow { min-width: 0; letter-spacing: .06em; }
  .close-control { align-items: flex-end; flex-shrink: 0; }
  .close-tab-button { margin-top: 0; min-height: 38px; padding: 6px 12px; gap: 8px; font-size: 13px; }
  .close-tab-button svg { width: 16px; height: 16px; }
  .close-button-hint { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .hero-content { padding-top: 22px; }
}
