:root {
  --pack-ice: #1E262B;
  --bridge-white: #F0F3F2;
  --hull-orange: #E56A3C;
  --ship-steel: #8A929E;
  --bridge-panel: #29323A;
  --chart-cream: #F5F2E7;
  --fathom-black: #12171B;
  --ice-pale: #8FA6AE;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: #1E262B;
  color: #F0F3F2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

.icebreaker-shell { width: 100%; }

/* ---------------- BRIDGE WING HEADER ---------------- */

.bridge-header {
  background-color: #29323A;
  border-bottom: 2px solid #8A929E;
  position: relative;
}

.bridge-rail {
  height: 6px;
  background-color: #8A929E;
  display: flex;
  align-items: center;
  padding: 0 18px;
}

.binnacle-glyph {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #8A929E;
  position: relative;
  border: 2px solid #E56A3C;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.binnacle-glyph::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #E56A3C;
}

.bridge-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.brand-plate {
  background-color: #E56A3C;
  color: #F0F3F2;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: bold;
  font-size: 22px;
  letter-spacing: 2px;
  padding: 8px 18px;
  text-decoration: none;
  border-radius: 2px;
}

.signal-lines {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.signal-lines::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 2px;
  background-color: #E56A3C;
}

.flag-link {
  color: #F0F3F2;
  text-decoration: none;
  font-size: 15px;
  background-color: #F5F2E7;
  color: #12171B;
  padding: 5px 12px;
  margin: 0 3px;
  clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 42%);
  border-radius: 0 0 3px 3px;
  position: relative;
}

.flag-link::after {
  content: "";
  position: absolute;
  right: 3px;
  top: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #E56A3C;
}

.flag-link:hover { background-color: #E56A3C; color: #12171B; }

.ice-cta {
  background-color: #E56A3C;
  color: #12171B;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
  padding: 10px 18px;
  letter-spacing: 1px;
  border-radius: 3px;
}

.ice-cta:hover { background-color: #F0F3F2; }

/* ---------------- HULL LINE LEG DIVIDER ---------------- */

.hull-line {
  width: 100%;
  padding: 10px 0 0;
  position: relative;
}

.hull-streak {
  height: 3px;
  background-color: #8A929E;
  position: relative;
  border-bottom: 6px solid #E56A3C;
  margin-bottom: 18px;
}

.hull-streak::before {
  content: "";
  position: absolute;
  left: 0;
  top: -9px;
  height: 22px;
  width: 100%;
  background-image:
    linear-gradient(90deg, transparent 0, #8FA6AE 3px, transparent 3px, transparent 60px, #8FA6AE 3px, transparent 3px, transparent 120px, #8FA6AE 3px, transparent 3px),
    linear-gradient(180deg, #8FA6AE 30px, transparent 30px);
  opacity: 1;
  z-index: 0;
}

.floe-chip {
  position: absolute;
  top: -6px;
  height: 26px;
  background-color: #8FA6AE;
  opacity: 1;
}

.floe-chip.one { left: 6%; width: 70px; clip-path: polygon(0 0, 100% 6%, 100% 100%, 0 74%); }
.floe-chip.two { left: 16%; width: 110px; top: -4px; clip-path: polygon(4% 0, 100% 0, 98% 100%, 0 82%); }
.floe-chip.three { left: 74%; width: 90px; top: -2px; clip-path: polygon(0 4%, 100% 0, 100% 100%, 6% 90%); }
.floe-chip.four { left: 86%; width: 60px; top: -8px; clip-path: polygon(0 0, 100% 8%, 94% 100%, 0 60%); }
.floe-chip.five { left: 30%; width: 60px; top: -8px; clip-path: polygon(1% 0, 100% 5%, 90% 100%, 0 70%); }

.leg-plaque {
  display: inline-block;
  background-color: #8A929E;
  color: #12171B;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 2px;
  padding: 4px 14px;
  border-radius: 2px 2px 3px 3px;
  border-top: 3px solid #E56A3C;
  margin-left: 24px;
}

/* ---------------- LEG LAYOUT ---------------- */

.voyage-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 34px 24px 40px;
}

.reading-column {
  max-width: 62ch;
}

/* ---------------- LEG I THE CHANNEL ---------------- */

.breaking-bow {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  flex-wrap: wrap;
}

.telegraph-glyph {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: #29323A;
  border: 3px solid #8A929E;
  position: relative;
  flex: 0 0 auto;
  margin-top: 8px;
}

.telegraph-glyph::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px solid #8FA6AE;
}

.telegraph-glyph::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 19px;
  width: 2px;
  height: 19px;
  background-color: #E56A3C;
  transform: rotate(38deg);
  transform-origin: center bottom;
}

.breaking-bow-title {
  flex: 1 1 300px;
}

.voyage-title {
  font-size: 40px;
  line-height: 1.18;
  font-weight: bold;
  color: #F0F3F2;
}

.voyage-title .orange-accent {
  color: #E56A3C;
}

.breaking-standfirst {
  margin-top: 18px;
  color: #CBD4D0;
  font-size: 17px;
  max-width: 58ch;
}

.wake-rule {
  margin-top: 24px;
  height: 3px;
  background-image: linear-gradient(90deg, #E56A3C 0 12px, transparent 12px 26px);
  background-size: 26px 3px;
  background-repeat: repeat-x;
  width: 100%;
  max-width: 640px;
}

.channel-passage {
  margin-top: 30px;
}

.channel-passage p {
  color: #CBD4D0;
  margin-bottom: 16px;
}

/* ---------------- LEG II THE FLOE FIELD ---------------- */

.floe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 26px;
}

@media (max-width: 860px) {
  .floe-grid { grid-template-columns: 1fr; }
}

.floe-card {
  background-color: #F5F2E7;
  color: #12171B;
  padding: 22px 24px 26px;
  position: relative;
  border-left: 4px solid #8A929E;
  clip-path: polygon(0 0, 100% 6%, 100% 100%, 6% 100%, 0 14%);
  border-radius: 3px;
}

.floe-card::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #E56A3C;
}

.floe-card-num {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2px;
  color: #8A929E;
  font-weight: bold;
  margin-bottom: 8px;
}

.floe-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.floe-card h3 a {
  color: #12171B;
  text-decoration: none;
  border-bottom: 2px solid #E56A3C;
}

.floe-card h3 a:hover { color: #E56A3C; border-color: #12171B; }

.floe-card p {
  font-size: 15px;
  color: #2A3237;
  line-height: 1.62;
}

/* ---------------- LEG III THE ENGINE ORDER ---------------- */

.engine-order-row {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .engine-order-row { flex-direction: column; }
}

.engine-text-col {
  flex: 1 1 380px;
}

.engine-telegraph-col {
  flex: 0 0 auto;
  max-width: 190px;
}

.telegraph-station {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.order-dial {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 4px solid #8A929E;
  background-color: #29323A;
  position: relative;
  margin: 0 auto 10px;
}

.order-dial .dial-rule {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 3px;
  height: 46px;
  background-color: #E56A3C;
  transform: translateX(-50%) rotate(-20deg);
  transform-origin: 50% 100%;
}

.order-dial .dial-rule.alt {
  transform: translateX(-50%) rotate(30deg);
}

.order-dial .dial-rule.high {
  transform: translateX(-50%) rotate(75deg);
}

.order-dial .dial-rule.astern-rule {
  transform: translateX(-50%) rotate(-85deg);
}

.dial-nub {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #E56A3C;
}

.dial-nub-label {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  font-size: 11px;
  color: #E56A3C;
  letter-spacing: 1px;
}

.dial-title {
  text-align: center;
  font-size: 13px;
  color: #F0F3F2;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 26px;
}

/* ---------------- LEG IV THE CHART TABLE ---------------- */

.chart-row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-start;
}

@media (max-width: 780px) {
  .chart-row { flex-direction: column; }
}

.chart-form-col { flex: 1 1 460px; }

.port-registry-col { flex: 1 1 280px; }

.course-sheet {
  background-color: #F5F2E7;
  color: #12171B;
  padding: 28px 30px 34px;
  position: relative;
  border-radius: 3px;
  box-shadow: 0 0 0 1px #8A929E;
}

.course-sheet::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 30%;
  width: 30px;
  height: 2px;
  background-color: #E56A3C;
  transform: rotate(-55deg);
}

.course-rule {
  height: 2px;
  background-color: #E56A3C;
  width: 60%;
  margin-bottom: 18px;
}

.contact-form-label {
  display: block;
  font-size: 13px;
  letter-spacing: 1px;
  font-weight: bold;
  color: #2A3237;
  margin: 14px 0 5px;
  text-transform: uppercase;
}

.contact-field {
  width: 100%;
  background-color: #FFFFFF;
  color: #12171B;
  border: 1px solid #8A929E;
  padding: 10px 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  border-radius: 2px;
}

.contact-field:focus { outline: 2px solid #E56A3C; border-color: #E56A3C; }

textarea.contact-field { min-height: 130px; resize: vertical; }

.course-submit {
  margin-top: 18px;
  background-color: #E56A3C;
  color: #12171B;
  border: none;
  padding: 12px 26px;
  font-size: 16px;
  font-weight: bold;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 3px;
}

.course-submit:hover { background-color: #12171B; color: #F0F3F2; }

.port-registry-plate {
  background-color: #29323A;
  border: 2px solid #8A929E;
  border-top: 6px solid #E56A3C;
  padding: 24px 26px;
  border-radius: 4px;
  position: relative;
}

.port-registry-plate h3 {
  font-size: 17px;
  margin-bottom: 4px;
  color: #F0F3F2;
}

.port-registry-plate .reg-addr {
  color: #CBD4D0;
  font-size: 14px;
  margin-top: 12px;
  line-height: 1.6;
}

.registry-row {
  display: block;
  color: #E56A3C;
  font-size: 14px;
  margin: 8px 0 0;
  word-break: break-word;
}

.registry-row strong { color: #F0F3F2; font-weight: bold; }

.registry-row a { color: #E56A3C; text-decoration: none; }
.registry-row a:hover { text-decoration: underline; }

.registry-note {
  margin-top: 16px;
  font-size: 13px;
  color: #CBD4D0;
  line-height: 1.6;
}

/* ---------------- SECTION HEADINGS ---------------- */

.leg-title-row {
  margin-bottom: 10px;
}

.leg-heading {
  font-size: 28px;
  color: #F0F3F2;
  font-weight: bold;
}

.leg-heading .num {
  color: #E56A3C;
  margin-right: 10px;
}

.leg-lede {
  color: #CBD4D0;
  margin-top: 10px;
  font-size: 16px;
}

/* ---------------- HULL BASE FOOTER ---------------- */

.hull-base {
  background-color: #12171B;
  border-top: 4px solid #8A929E;
  margin-top: 10px;
  padding: 34px 20px 40px;
  position: relative;
  z-index: 1;
}

.hull-base .fathom-band {
  display: block;
  text-align: center;
}

.hull-base-nav {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
}

.hull-base-nav li a {
  color: #F0F3F2;
  text-decoration: none;
  font-size: 15px;
}

.hull-base-nav li a::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #E56A3C;
  margin-right: 8px;
}

.hull-base-nav li a:hover { color: #E56A3C; }

.hull-base-ident {
  text-align: center;
  color: #8A929E;
  font-size: 14px;
  line-height: 1.8;
  margin-top: 6px;
}

.hull-base-ident .company-line { color: #F0F3F2; font-weight: bold; }

.hull-base-ident a { color: #E56A3C; text-decoration: none; }
.hull-base-ident a:hover { text-decoration: underline; }

/* ---------------- GO TO TOP ---------------- */

.top-porthole {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: #8A929E;
  border: 3px solid #E56A3C;
  color: #12171B;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 50;
  opacity: 1;
}

.top-porthole:hover { background-color: #E56A3C; }

/* ---------------- SCROLL REVEAL ---------------- */

.js-animate .reveal-entry {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.js-animate .reveal-entry.is-visible {
  opacity: 1;
  transform: none;
}

.no-js .reveal-entry,
.no-js-anim .reveal-entry {
  opacity: 1;
  transform: none;
}

/* ---------------- RESPONSIVE ---------------- */

@media (max-width: 640px) {
  .voyage-title { font-size: 30px; }
  .bridge-content { flex-direction: column; align-items: flex-start; }
  .voyage-section { padding: 26px 18px 34px; }
}

/* ---------------- LEG CONTENT LONGFORM (shared with subpages) ---------------- */

.leg-longform {
  max-width: 760px;
}

.leg-longform p {
  margin-bottom: 16px;
}

.leg-longform h3 {
  font-size: 22px;
  color: #E56A3C;
  margin: 26px 0 10px;
}

.leg-service-item {
  margin-bottom: 30px;
}

.leg-service-title {
  font-size: 24px;
  color: #F0F3F2;
  margin-bottom: 8px;
}

.leg-service-title .ser {
  color: #E56A3C;
  margin-right: 8px;
  font-size: 20px;
}

/* ---------------- LOCATION / INFO BITS ---------------- */

.loc-outreach {
  background-color: #29323A;
  border-left: 4px solid #E56A3C;
  padding: 18px 22px;
  margin-top: 20px;
}

.loc-outreach p { color: #CBD4D0; font-size: 15px; }
.loc-outreach strong { color: #F0F3F2; }

.beacon-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #E56A3C;
  margin-right: 6px;
}

/* ---------------- WATERMARK (decorative, hidden off-screen) ---------------- */

.hull-watermark {
  position: absolute;
  width: 1px;
  height: 1px;
  visibility: hidden;
}

.mail-wake {
  color: #E56A3C;
  text-decoration: none;
}

.mail-wake:hover { text-decoration: underline; }

.bend-into-contact {
  margin-top: 18px;
  color: #CBD4D0;
}

.chart-closing-note {
  margin-top: 26px;
}

.chart-closing-note p {
  color: #CBD4D0;
}
