:root {
  --ink: #1f2526;
  --muted: #66706d;
  --paper: #f4eee5;
  --surface: #ffffff;
  --line: #d9d2c5;
  --forest: #2d2823;
  --teal: #7c6a56;
  --brass: #b7833a;
  --clay: #b45f48;
  --sky: #dde9ee;
  --shadow: 0 20px 50px rgba(31, 37, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

.access-screen {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: clamp(28px, 6vw, 90px);
  align-items: center;
  min-height: 100vh;
  padding: clamp(28px, 6vw, 76px);
  background: #ded6cb;
  animation: accessBackdrop 4.8s ease-out both;
  overflow: hidden;
}

.access-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.access-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(247, 243, 236, 0.96), rgba(247, 243, 236, 0.76) 54%, rgba(247, 243, 236, 0.34));
}

.access-screen.hidden,
.site-shell.locked {
  display: none;
}

.site-shell:not(.locked) .hero-visual {
  animation: pageRise 980ms ease 360ms both;
}

.site-shell:not(.locked) .status-grid,
.site-shell:not(.locked) .promise-strip {
  animation: pageRise 780ms ease 720ms both;
}

.site-shell:not(.locked) .hero-copy > * {
  opacity: 0;
  transform: translateY(22px);
  animation: heroTextIn 860ms cubic-bezier(0.2, 0.72, 0.2, 1) both;
}

.site-shell:not(.locked) .hero-copy .project-label {
  animation-delay: 120ms;
}

.site-shell:not(.locked) .hero-copy .eyebrow {
  animation-delay: 260ms;
}

.site-shell:not(.locked) .hero-copy h1 {
  animation-delay: 420ms;
}

.site-shell:not(.locked) .hero-copy p:not(.eyebrow) {
  animation-delay: 660ms;
}

.site-shell:not(.locked) .hero-copy .project-note {
  animation-delay: 880ms;
}

.access-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.18) 45%, transparent 72%);
  opacity: 0;
  transform: translateX(-28%);
  animation: introLight 3.2s ease-out 0.25s both;
}

.access-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.access-copy .brand {
  margin-bottom: clamp(48px, 9vw, 110px);
}

.access-card {
  position: relative;
  z-index: 2;
  padding: clamp(24px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(31, 37, 38, 0.1);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 700ms ease, transform 700ms ease;
}

.access-screen.intro-complete .access-card {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.skip-intro {
  position: absolute;
  right: clamp(16px, 4vw, 46px);
  bottom: clamp(16px, 4vw, 34px);
  z-index: 3;
  min-height: 34px;
  padding: 0 12px;
  color: rgba(31, 37, 38, 0.72);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(31, 37, 38, 0.12);
  border-radius: 999px;
  cursor: pointer;
}

.skip-intro span {
  margin-left: 6px;
  color: var(--muted);
  font-size: 11px;
}

.card-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--brass);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

label {
  display: block;
  margin: 18px 0 8px;
  color: var(--muted);
  font-size: 14px;
}

label span,
h1 span,
h2 span,
strong small,
p small,
.muted small,
.nav span {
  display: block;
}

h1 span {
  margin-top: 12px;
  color: var(--muted);
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.25;
  font-weight: 400;
}

.intro-title {
  overflow: hidden;
}

.intro-title .intro-line {
  display: block;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 7.8vw, 92px);
  line-height: 0.98;
  font-weight: 500;
  opacity: 0;
  transform: translateY(38px);
  animation: introLine 820ms cubic-bezier(0.2, 0.75, 0.2, 1) forwards;
}

.intro-title .intro-line:nth-child(1) {
  animation-delay: 0.25s;
}

.intro-title .intro-line:nth-child(2) {
  animation-delay: 0.92s;
}

.intro-title .intro-line:nth-child(3) {
  animation-delay: 1.56s;
}

.intro-title small {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.35;
  opacity: 0;
  transform: translateY(14px);
  animation: introLine 700ms ease forwards;
  animation-delay: 2.28s;
}

.intro-copy {
  opacity: 0;
  transform: translateY(14px);
  animation: introLine 700ms ease forwards;
  animation-delay: 2.72s;
}

h2 span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
}

strong small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

p small,
.muted small,
span small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

label span {
  margin-top: 3px;
  font-size: 12px;
}

.code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  text-transform: uppercase;
}

input:focus {
  outline: 2px solid rgba(15, 107, 107, 0.18);
  border-color: var(--teal);
}

button {
  font: inherit;
}

.code-row button {
  min-height: 48px;
  padding: 0 18px;
  color: #fff;
  background: var(--forest);
  border: 0;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}

.error-message {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--clay);
  font-size: 14px;
}

.helper-text {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(247, 243, 236, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--forest);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 16px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: #ece6dd;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: inset 0 1px 2px rgba(31, 37, 38, 0.08);
}

.nav a {
  display: grid;
  place-content: center;
  min-height: 48px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid transparent;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(31, 37, 38, 0.08);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  white-space: nowrap;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.nav span {
  margin-top: 2px;
  font-size: 11px;
}

.nav a:hover {
  color: var(--ink);
  background: #fff;
  border-color: rgba(31, 37, 38, 0.12);
  transform: translateY(-1px);
}

.nav a:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(31, 37, 38, 0.16);
}

.nav a[aria-current="location"] {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.22);
  transform: translateY(1px);
}

.nav a[aria-current="location"] span {
  color: rgba(255, 255, 255, 0.68);
}

main {
  overflow: hidden;
}

.portal-shell {
  padding: clamp(28px, 5vw, 72px) clamp(18px, 5vw, 72px);
}

.portal-hero {
  display: grid;
  grid-template-columns: minmax(420px, 0.72fr) minmax(580px, 1.28fr);
  gap: clamp(28px, 3vw, 54px);
  align-items: center;
  min-height: calc(100vh - 78px);
}

.hero-copy {
  max-width: 640px;
}

.hero-copy h1 {
  font-size: 72px;
}

.project-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  margin-bottom: 22px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.project-label span {
  color: var(--brass);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-label strong {
  font-size: 13px;
}

.project-note {
  display: grid;
  gap: 4px;
  width: fit-content;
  margin-top: 22px;
  padding-left: 16px;
  border-left: 2px solid var(--brass);
}

.project-note span {
  color: var(--brass);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-note strong {
  font-size: 17px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brass);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.02;
  font-weight: 500;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  font-weight: 650;
}

.access-card h2 {
  margin-bottom: 8px;
  font-size: 30px;
}

.hero-copy p:not(.eyebrow),
.access-copy p:not(.eyebrow),
.muted {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  font-weight: 700;
}

.primary-action span,
.secondary-action span {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 500;
}

.primary-action {
  color: #fff;
  background: var(--forest);
}

.secondary-action {
  color: var(--forest);
  border: 1px solid var(--forest);
}

.hero-visual,
.feature-image {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(31, 37, 38, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-visual {
  position: relative;
  width: 100%;
  height: clamp(500px, 38vw, 620px);
  justify-self: end;
  background: #ded6cb;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center;
}

.access-slide {
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center;
}

.visual-slide {
  opacity: 0;
  transform: scale(1.08);
  animation: heroGallery 15s ease-in-out infinite;
}

.slide-one {
  animation-delay: 0s;
}

.slide-two {
  animation-delay: 5s;
}

.slide-three {
  animation-delay: 10s;
}

.hero-caption {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 96px clamp(18px, 3vw, 30px) clamp(18px, 3vw, 30px);
  color: #fff;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.hero-caption span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-caption strong {
  font-size: 34px;
  font-weight: 500;
  line-height: 1.1;
  white-space: nowrap;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 auto 56px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.status-grid article {
  padding: 22px;
  background: var(--surface);
}

.status-grid span,
.update-list span,
.approval-list span,
.story-list span,
.room-list small {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.status-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

.status-grid strong small {
  font-size: 13px;
}

.promise-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 56px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.promise-strip article {
  min-height: 210px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.72);
}

.promise-strip span {
  display: block;
  margin-bottom: 34px;
  color: var(--brass);
  font-family: Georgia, serif;
  font-size: 22px;
}

.promise-strip strong {
  display: block;
  margin-bottom: 12px;
  font-size: 20px;
}

.delivery-grid > article > small {
  display: block;
  margin-bottom: 16px;
  color: var(--brass);
  font-family: Georgia, serif;
  font-size: 16px;
}

.delivery-grid strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.3;
}

.promise-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.section-band {
  padding: clamp(32px, 5vw, 64px) 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.update-list,
.approval-list,
.delivery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.update-list article,
.approval-list article,
.story-list article,
.delivery-grid article,
.room-list button {
  background: var(--surface);
  border: 1px solid rgba(31, 37, 38, 0.1);
  border-radius: 8px;
}

.update-list article,
.approval-list article,
.story-list article,
.delivery-grid article {
  padding: 20px;
}

.inline-gallery-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 32px;
  margin-top: 14px;
  padding: 0 10px;
  color: var(--teal);
  background: transparent;
  border: 1px solid rgba(30, 83, 69, 0.25);
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.inline-gallery-btn small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.inline-gallery-btn:hover {
  border-color: var(--teal);
  background: rgba(30, 83, 69, 0.06);
}

.update-list strong,
.approval-list strong,
.story-list strong {
  display: block;
  margin: 8px 0;
  font-size: 18px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  padding: clamp(36px, 5vw, 70px) 0;
  border-top: 1px solid var(--line);
}

.story-section {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
  padding: clamp(32px, 4vw, 48px) 0;
  border-top: 1px solid var(--line);
}

#stories {
  scroll-margin-top: 96px;
}

.manager-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, minmax(210px, 0.46fr));
  gap: 16px;
  align-items: stretch;
  padding: clamp(36px, 5vw, 64px) 0;
  border-top: 1px solid var(--line);
}

.manager-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(31, 37, 38, 0.1);
  border-radius: 8px;
}

.manager-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background: var(--forest);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 14px;
}

.delivery-section {
  padding: clamp(36px, 5vw, 66px) 0;
  border-top: 1px solid var(--line);
}

.delivery-grid article {
  min-height: 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.delivery-grid span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.feature-image {
  min-height: 360px;
  max-height: 520px;
}

.room-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.story-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #262b29;
  border-radius: 8px;
  isolation: isolate;
}

.story-stage::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 13, 12, 0.08) 20%, rgba(10, 13, 12, 0.86) 100%);
  content: "";
  pointer-events: none;
}

.story-stage.has-embedded-copy::after,
.story-stage.has-embedded-copy .story-overlay {
  display: none;
}

.story-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transform: scale(1.015);
  transition: opacity 360ms ease, transform 5s ease;
}

.story-image.is-changing {
  opacity: 0;
  transform: scale(1.035);
}

.story-overlay {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 3vw, 38px);
  color: #fff;
}

.story-stage-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.story-stage-meta span {
  color: rgba(255, 255, 255, 0.86);
}

.story-stage-copy {
  max-width: 78%;
}

.story-stage-copy h3 {
  margin: 0 0 14px;
  font-family: "Noto Serif SC", "Songti SC", Georgia, serif;
  font-size: clamp(28px, 3.1vw, 48px);
  font-weight: 500;
  line-height: 1.12;
}

.story-stage-copy h3 span,
.story-stage-copy h3 small,
.story-stage-copy > small {
  display: block;
}

.story-stage-copy h3 small {
  margin-top: 7px;
  font-family: Inter, "PingFang SC", sans-serif;
  font-size: 13px;
  font-weight: 600;
}

.story-stage-copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

.story-stage-copy > small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  line-height: 1.5;
}

.story-controls {
  min-width: 0;
}

.story-controls .muted {
  margin-bottom: 0;
}

.story-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.story-tab {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
  min-height: 78px;
  padding: 12px;
  color: var(--ink);
  text-align: left;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(31, 37, 38, 0.12);
  border-radius: 6px;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.story-tab:hover {
  border-color: rgba(31, 76, 64, 0.48);
  transform: translateY(-1px);
}

.story-tab[aria-pressed="true"] {
  color: #fff;
  background: var(--forest);
  border-color: var(--forest);
}

.story-tab:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.story-tab-index {
  color: var(--amber);
  font-family: Georgia, serif;
  font-size: 12px;
  line-height: 1.35;
}

.story-tab[aria-pressed="true"] .story-tab-index {
  color: #e8bd79;
}

.story-tab-label,
.story-tab-label strong,
.story-tab-label small {
  display: block;
  min-width: 0;
}

.story-tab-label strong {
  margin: 0;
  color: inherit;
  font-size: 14px;
  line-height: 1.35;
}

.story-tab-label small {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.story-tab[aria-pressed="true"] .story-tab-label small {
  color: rgba(255, 255, 255, 0.72);
}

.room-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 66px;
  padding: 12px 18px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.room-thumb {
  flex: 0 0 74px;
  width: 74px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
}

.room-list button:hover {
  border-color: var(--teal);
}

.room-list em {
  flex: 0 0 auto;
  color: var(--teal);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.flow-section {
  align-items: stretch;
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.flow-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(31, 37, 38, 0.1);
  border-radius: 8px;
  font-weight: 700;
}

.flow-list em {
  color: var(--brass);
  font-family: Georgia, serif;
  font-style: normal;
  font-weight: 400;
}

.flow-list strong {
  display: block;
}

.timeline {
  display: grid;
  gap: 22px;
}

.journey-group {
  display: grid;
  gap: 12px;
}

.journey-group-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.journey-group-title strong {
  font-size: 22px;
}

.journey-group-title span {
  color: var(--muted);
  font-size: 13px;
}

.journey-node-grid {
  display: grid;
  grid-template-columns: repeat(var(--journey-columns), minmax(0, 1fr));
  gap: 8px;
}

.journey-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: 104px;
  padding: 11px 12px;
  color: var(--ink);
  text-align: left;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(31, 37, 38, 0.1);
  border-top: 3px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.journey-node:hover {
  border-color: rgba(31, 76, 64, 0.45);
  transform: translateY(-1px);
}

.journey-node:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

.journey-node.done {
  border-top-color: #658074;
}

.journey-node.current {
  border-top-color: var(--brass);
}

.journey-node.not-started {
  border-top-color: #cfc8bc;
}

.journey-node[aria-selected="true"] {
  color: #fff;
  background: var(--forest);
  border-color: var(--forest);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(31, 37, 38, 0.14);
}

.journey-node-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 8px;
}

.journey-node-top em {
  color: var(--brass);
  font-family: Georgia, serif;
  font-size: 12px;
  font-style: normal;
}

.journey-node-top i {
  width: 7px;
  height: 7px;
  background: #aaa399;
  border-radius: 50%;
}

.journey-node.done .journey-node-top i {
  background: #658074;
}

.journey-node.current .journey-node-top i {
  background: var(--brass);
}

.journey-node[aria-selected="true"] .journey-node-top em,
.journey-node[aria-selected="true"] strong small,
.journey-node[aria-selected="true"] .journey-node-status,
.journey-node[aria-selected="true"] .journey-node-status small {
  color: rgba(255, 255, 255, 0.76);
}

.journey-node strong {
  display: block;
  min-width: 0;
  font-size: 14px;
  line-height: 1.3;
}

.journey-node strong small {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.journey-node-status {
  display: block;
  margin-top: auto;
  padding-top: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
}

.journey-node-status small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
}

.journey-detail {
  display: grid;
  grid-template-columns: minmax(130px, 0.25fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  margin-top: 6px;
  padding: clamp(20px, 3vw, 30px);
  background: rgba(255, 255, 255, 0.72);
  border-left: 3px solid var(--line);
}

.journey-detail.done {
  border-left-color: #658074;
}

.journey-detail.current {
  border-left-color: var(--brass);
}

.journey-detail-meta span,
.journey-detail-meta strong,
.journey-detail-meta small,
.journey-detail-body-en {
  display: block;
}

.journey-detail-meta span {
  color: var(--brass);
  font-family: Georgia, serif;
  font-size: 28px;
}

.journey-detail-meta strong {
  margin-top: 10px;
  font-size: 15px;
}

.journey-detail-meta small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.journey-detail-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.journey-detail-heading h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.journey-detail-heading h3 small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.journey-detail-status {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  text-align: right;
}

.journey-detail-status.done {
  color: #365f50;
}

.journey-detail-status.current {
  color: #8b5e1b;
}

.journey-detail-body {
  margin: 16px 0 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-line;
}

.journey-detail-body-en {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-line;
}

.card-list {
  display: grid;
  gap: 7px;
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.attachment-notice {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  width: min(520px, calc(100vw - 32px));
  padding: 12px 16px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  background: #20352d;
  color: #fff;
  box-shadow: 0 12px 32px rgba(32, 27, 22, 0.2);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.attachment-notice.loading {
  background: #5d554a;
}

.attachment-notice.error {
  background: #7b332f;
}

[data-attachment-url][aria-busy="true"] {
  cursor: progress;
  opacity: 0.68;
}

.attachment-notice[hidden] {
  display: none;
}

.image-dialog {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.image-dialog.open {
  display: flex;
}

.attachment-dialog {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.attachment-dialog.open {
  display: flex;
}

.attachment-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 22, 22, 0.68);
  border: 0;
}

.attachment-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(320px, 1fr);
  width: min(1080px, 100%);
  height: min(860px, calc(100vh - 48px));
  overflow: hidden;
  background: var(--surface);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.attachment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
}

.attachment-header {
  border-bottom: 1px solid var(--line);
}

.attachment-header small,
.attachment-header strong {
  display: block;
}

.attachment-header small {
  margin-bottom: 3px;
  color: var(--brass);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.attachment-header strong {
  font-size: 16px;
}

.attachment-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.attachment-pages {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 0;
  padding: 18px;
  overflow: auto;
  background: #e9e3da;
}

.attachment-page {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(31, 37, 38, 0.08);
  box-shadow: 0 8px 24px rgba(31, 37, 38, 0.1);
}

.attachment-empty {
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 28px;
  color: var(--muted);
  background: #f4f0ea;
  text-align: center;
  line-height: 1.7;
}

.dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 22, 22, 0.62);
  border: 0;
}

.dialog-panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.dialog-media {
  position: relative;
  background: #f4f0ea;
}

.dialog-media img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  background: #f4f0ea;
}

.dialog-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  padding: 0;
  transform: translateY(-50%);
  color: #fff;
  background: rgba(20, 22, 22, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.dialog-nav:hover {
  background: rgba(20, 22, 22, 0.86);
}

.dialog-prev {
  left: 14px;
}

.dialog-next {
  right: 14px;
}

.dialog-counter {
  position: absolute;
  right: 14px;
  bottom: 12px;
  padding: 5px 9px;
  color: #fff;
  background: rgba(20, 22, 22, 0.68);
  border-radius: 999px;
  font-size: 12px;
}

.dialog-panel figcaption {
  padding: 18px 22px 22px;
}

.dialog-panel strong small,
.dialog-panel p small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.dialog-panel p {
  margin: 10px 0 0;
  color: var(--muted);
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(31, 37, 38, 0.12);
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.approval-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.3fr) 1fr;
  gap: 28px;
  padding: clamp(36px, 5vw, 64px) 0;
  border-top: 1px solid var(--line);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.pill.pending {
  color: #6f4611;
  background: #f5dec2;
}

.pill.done {
  color: #174638;
  background: #d9eee4;
}

.pill.overdue {
  color: #7a2d25;
  background: #f2d3cd;
}

@media (max-width: 1180px) {
  .portal-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-copy h1 {
    font-size: 64px;
  }

  .hero-visual {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 920px) {
  #weekly,
  #homeSpaces,
  #journey,
  #approval,
  #delivery,
  #stories {
    scroll-margin-top: 144px;
  }

  .access-screen,
  .portal-hero,
  .split-section,
  .approval-panel,
  .manager-panel {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav a {
    flex: 0 0 auto;
    min-width: 92px;
  }

  .status-grid,
  .update-list,
  .approval-list,
  .promise-strip,
  .delivery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey-node-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .story-section {
    grid-template-columns: 1fr;
  }

  .story-stage-copy {
    max-width: 88%;
  }

  .story-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .access-screen,
  .portal-shell {
    padding-inline: 16px;
  }

  .topbar {
    gap: 12px;
    padding: 12px 16px;
  }

  .hero-caption {
    left: 0;
    right: 0;
    bottom: 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-caption strong {
    font-size: 26px;
    white-space: normal;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand small,
  .nav span {
    font-size: 11px;
  }

  .nav {
    gap: 6px;
    margin-inline: -4px;
  }

  .nav a {
    padding: 8px 10px;
    font-size: 12px;
  }

  h1,
  .hero-copy h1 {
    font-size: 40px;
    line-height: 1.06;
  }

  h1 span {
    font-size: 21px;
  }

  h2 {
    font-size: 30px;
    line-height: 1.12;
  }

  .intro-title .intro-line {
    font-size: 46px;
  }

  .portal-hero {
    gap: 24px;
    padding-top: 34px;
  }

  .hero-copy p:not(.eyebrow),
  .access-copy p:not(.eyebrow),
  .muted {
    font-size: 15px;
    line-height: 1.75;
  }

  .code-row {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    height: auto;
    min-height: 0;
  }

  .feature-image {
    height: 280px;
    min-height: 280px;
  }

  .attachment-dialog {
    padding: 10px;
  }

  .attachment-panel {
    grid-template-rows: auto minmax(260px, 1fr);
    height: calc(100vh - 20px);
  }

  .hero-caption {
    padding: 72px 16px 16px;
  }

  .hero-caption strong {
    font-size: 24px;
  }

  .status-grid,
  .update-list,
  .approval-list,
  .promise-strip,
  .delivery-grid,
  .journey-node-grid {
    grid-template-columns: 1fr;
  }

  .flow-list {
    grid-template-columns: 1fr;
  }

  .update-list,
  .approval-list,
  .delivery-grid,
  .story-list,
  .timeline {
    gap: 12px;
  }

  .update-list article,
  .approval-list article,
  .delivery-grid article {
    padding: 16px;
  }

  .update-list strong,
  .approval-list strong {
    font-size: 17px;
    line-height: 1.35;
  }

  .story-overlay {
    padding: 16px;
  }

  .story-stage-copy {
    max-width: 100%;
  }

  .story-stage-copy h3 {
    margin-bottom: 8px;
    font-size: 25px;
  }

  .story-stage-copy h3 small {
    margin-top: 4px;
    font-size: 11px;
  }

  .story-stage-copy p {
    font-size: 12px;
    line-height: 1.45;
  }

  .story-stage-copy > small {
    font-size: 10px;
    line-height: 1.35;
  }

  .story-tab {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 7px;
    min-height: 80px;
    padding: 10px 8px;
  }

  .story-tab-label strong {
    font-size: 13px;
  }

  .inline-gallery-btn {
    width: 100%;
    min-height: 38px;
  }

  .journey-node {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 68px;
    padding: 10px 12px;
    border-top-width: 1px;
    border-left: 3px solid var(--line);
  }

  .journey-node.done {
    border-left-color: #658074;
  }

  .journey-node.current {
    border-left-color: var(--brass);
  }

  .journey-node-top {
    justify-content: flex-start;
    margin: 0;
  }

  .journey-node-top i {
    display: none;
  }

  .journey-node-status {
    margin: 0;
    padding: 0;
    text-align: right;
  }

  .journey-node-status small {
    display: none;
  }

  .journey-detail {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }

  .journey-detail-heading {
    flex-direction: column;
    gap: 8px;
  }

  .journey-detail-status {
    text-align: left;
  }

  .journey-detail-body {
    font-size: 13px;
    line-height: 1.65;
  }

  .room-list button {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-label {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    height: auto;
    padding: 10px 14px;
    border-radius: 8px;
  }

  .manager-card {
    padding: 16px;
  }

  .image-dialog {
    padding: 12px;
  }

  .dialog-panel {
    max-height: calc(100vh - 24px);
  }

  .dialog-panel img {
    max-height: 58vh;
  }

  .dialog-panel figcaption {
    padding: 14px 16px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-image,
  .story-tab {
    transition: none;
  }
}

@keyframes introLine {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes introLight {
  0% {
    opacity: 0;
    transform: translateX(-35%);
  }
  35% {
    opacity: 0.48;
  }
  100% {
    opacity: 0;
    transform: translateX(35%);
  }
}

@keyframes accessBackdrop {
  from {
    background-position: 48% center;
  }
  to {
    background-position: 52% center;
  }
}

@keyframes heroGallery {
  0% {
    opacity: 0;
    transform: scale(1.08);
  }
  3% {
    opacity: 1;
  }
  25% {
    opacity: 1;
  }
  30% {
    opacity: 1;
    transform: scale(1);
  }
  36% {
    opacity: 0;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@keyframes pageRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroTextIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .access-card {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .visual-slide {
    animation: none !important;
    opacity: 0;
    transform: none;
  }

  .visual-slide:first-child {
    opacity: 1;
  }
}
