:root {
  --left-width: clamp(320px, 29vw, 520px);
  --color-navy: #002f5f;
  --color-navy-deep: #001f3f;
  --color-text: #00284f;
  --color-muted: #666666;
  --color-panel: rgba(255, 255, 255, 0.94);
  --color-panel-soft: rgba(255, 255, 255, 0.76);
  --color-shadow: rgba(0, 31, 63, 0.16);
  --color-flag-green: #279e64;
  --color-flag-orange: #facf31;
  --color-flag-blue: #3f77c1;
  --story-bg: #f0f0f0;
  --story-text: #24363a;
  --story-muted: #6f7d80;
  --story-gold: #d0a913;
  --story-green: #0d7956;
  --font-main: "Segoe UI", Arial, Helvetica, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; margin: 0; }
body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: #ffffff;
}
img { display: block; max-width: 100%; }
.construction-page { min-height: 100vh; }

/* Fixed left-hand identity panel */
.construction-panel {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: var(--left-width);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(48px, 6vw, 96px) clamp(32px, 4vw, 72px);
  background:
    linear-gradient(90deg, var(--color-panel) 0%, var(--color-panel-soft) 100%),
    radial-gradient(circle at 35% 35%, rgba(255,255,255,.9), rgba(255,255,255,0) 42%);
  box-shadow: 18px 0 36px var(--color-shadow);
  overflow: hidden;
}
.construction-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("images/vessel.jpg");
  background-size: cover;
  background-position: center;
  opacity: .045;
  filter: grayscale(1);
  pointer-events: none;
}
.construction-content { position: relative; width: 100%; max-width: 360px; }
.flag-line { display: flex; margin-bottom: 10px; }
.flag-line span { display: block; width: 30px; height: 5px; }
.green-line { background: var(--color-flag-green); }
.orange-line { background: var(--color-flag-orange); }
.blue-line { background: var(--color-flag-blue); }
h1 {
  margin: 0;
  color: var(--color-navy);
  font-size: clamp(2rem, 4vw, 3.75rem);
  line-height: 1.05;
  font-weight: 800;
}
h2 {
  margin: 0;
  color: var(--color-navy);
  font-size: 1.8rem;
  line-height: 1.05;
  font-weight: 400;
}
p.email {
  margin: 0;
  text-align: left;
  font-size: 1.4rem;
  font-weight: 700;
  color: #3f77c1;
}
p.uc {
  margin: 30px 0 0;
  text-align: left;
  font-size: 1.8rem;
  font-weight: 300;
  color: #333;
}

/* Right-hand scrolling stage. The ship stays behind the content. */
.story-stage {
  position: relative;
  margin-left: var(--left-width);
  background: #ffffff;
}
.ship-background {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100vh;
  height: calc(var(--app-vh, 1vh) * 100);
  background-image:
    linear-gradient(180deg, rgba(0,31,63,.03), rgba(0,31,63,.20)),
    url("images/vessel.jpg");
  background-size: cover;
  background-position: center;
}
.story-sheet {
  position: relative;
  z-index: 3;
  margin-top: -100vh;
  color: var(--story-text);
}
.story-block {
  position: relative;
  background: var(--story-bg);
  box-shadow: 0 18px 70px rgba(0,0,0,.24);
  /* IMPORTANT: no overflow here; sticky portraits must remain sticky. */
}

.registry-intro {
  min-height: 52vh;
  padding: clamp(42px, 6vw, 88px) clamp(28px, 5.5vw, 88px);
  border-bottom: 1px solid rgba(0,47,95,.10);
  background-image:
    linear-gradient(rgba(0,47,95,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,47,95,.045) 1px, transparent 1px);
  background-size: 100% 66px, 66px 100%;
}
.coordinates {
  margin: 0 0 26px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .78rem;
  letter-spacing: .1em;
  color: #0e272b;
}
.registry-intro h3 {
  margin: 0 0 22px;
  max-width: 880px;
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5.3vw, 5.4rem);
  line-height: .98;
  font-weight: 400;
  letter-spacing: -.025em;
  color: #0b2f3b;
}
.registry-intro h3 em { color: var(--story-green); font-weight: 700; }
.registry-intro > p:last-child {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  line-height: 1.75;
  color: #4f5e62;
}

/* Clean reveal between the two messages: only the vessel is visible. */
.story-gap {
  min-height: clamp(280px, 56vh, 720px);
  background: transparent;
}

/* Both leadership sections share the original sticky-photo behaviour. */
.message-section {
  display: grid;
  grid-template-columns: minmax(260px, 36%) minmax(0, 1fr);
  align-items: stretch;
  background: var(--story-bg);
}
.message-section.media-right {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 36%);
}
.portrait-column {
  position: relative;
  min-height: 100%;
  background: #e7e7e7;
}
.portrait-wrap {
  position: sticky;
  top: 0;
  height: 100vh;
  height: calc(var(--app-vh, 1vh) * 100);
  overflow: hidden;
}
.portrait-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.02) 55%, rgba(0,31,63,.12) 100%);
  pointer-events: none;
}
.portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}
.portrait-wrap-director img { object-position: 52% 16%; }

.message-copy {
  padding: clamp(38px, 5vw, 72px) clamp(28px, 5vw, 74px) clamp(70px, 8vw, 120px);
  font-size: clamp(.98rem, 1.22vw, 1.08rem);
  line-height: 1.58;
  color: var(--story-text);
}
.message-header { margin-bottom: 42px; }
.message-name-block {
  display: grid;
  grid-template-columns: minmax(240px, auto) minmax(220px, 1fr);
  gap: 24px;
  align-items: center;
}
.message-name-block h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.14rem, 1.55vw, 1.48rem);
  line-height: 1.2;
  color: #0b2f3b;
}
.message-name-block p {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .73rem;
  line-height: 1.55;
  letter-spacing: .08em;
  color: #222;
}
.message-kicker {
  margin: 0 0 24px !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .78rem;
  font-weight: bold;
  letter-spacing: .2em;
  color: var(--story-green);
}
.message-copy > p { margin: 0 0 22px; }
.closing-emphasis {
  margin-top: 30px !important;
  font-family: var(--font-serif);
  font-style: italic;
  color: #0b2f3b;
}
.closing-line {
  margin-top: 26px !important;
  margin-bottom: 0 !important;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.9vw, 1.7rem);
  font-weight: bold;
  color: var(--story-green);
}

@media (max-width: 1180px) {
  :root { --left-width: clamp(300px, 31vw, 400px); }
  .message-section { grid-template-columns: minmax(220px, 34%) minmax(0, 1fr); }
  .message-section.media-right { grid-template-columns: minmax(0, 1fr) minmax(220px, 34%); }
  .message-name-block { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 900px) {
  .construction-panel {
    position: relative;
    width: 100%;
    min-height: 42vh;
    padding: 56px 32px;
    box-shadow: 0 16px 32px var(--color-shadow);
  }
  .story-stage { margin-left: 0; }
  .ship-background { height: 72vh; background-position: 58% center; }
  .story-sheet { margin-top: -72vh; }
  .registry-intro {
    min-height: 72vh;
    padding-top: max(44px, 8vh);
    background-color: rgba(240,240,240,.97);
  }
  .message-section,
  .message-section.media-right { grid-template-columns: 1fr; }
  .message-section.media-right .message-copy { order: 2; }
  .message-section.media-right .portrait-column { order: 1; }
  .portrait-wrap {
    position: relative;
    height: min(82vh, 860px);
  }
  .portrait-wrap img { object-position: 50% 14%; }
  .story-gap { min-height: 24vh; }
}

@media (max-width: 620px) {
  .construction-panel { min-height: 38vh; padding: 44px 24px; }
  p.email { font-size: 1.1rem; }
  p.uc { margin-top: 22px; font-size: 1.55rem; }
  .registry-intro,
  .message-copy { padding-left: 22px; padding-right: 22px; }
  .registry-intro h3 { font-size: clamp(2.35rem, 13vw, 4rem); }
  .coordinates { font-size: .65rem; line-height: 1.6; }
  .message-name-block h4 { font-size: 1.06rem; }
  .message-name-block p { font-size: .65rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


@media (max-width: 768px){
.story-gap
{
  display:none;
}

}


