/* ============================================================
   Safe Harbours Australia - Design System
   Plain CSS. HubSpot-portable.
   Display: Playfair Display (serif). Body: Arial.
   Palette: navy + white + gold (#B8960C).
   ============================================================ */

:root {
  --navy: #0a2a43;
  --navy-deep: #061c30;
  --navy-mid: #123a5a;
  --ink: #16202b;
  --accent: #b8960c;
  --accent-hover: #d0aa2b;
  --accent-ink: #8a7208;
  --accent-light: #cdb15e;
  --paper: #f7f5f0;
  --paper-warm: #efece4;
  --line: #dcd8cf;
  --muted: #5c6b78;
  --muted-light: #8a97a2;
  --white: #ffffff;

  --wrap: 1240px;
  --wrap-narrow: 900px;
  --gutter: clamp(20px, 5vw, 64px);

  --ff: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3.1rem);
  --step-4: clamp(2.6rem, 1.9rem + 3.4vw, 4.6rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--ff);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--navy);
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.005em;
}

p {
  margin: 0 0 1.1em;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow {
  max-width: var(--wrap-narrow);
}

/* ---------- Utility labels ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 1.4rem;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

.eyebrow--light {
  color: var(--accent-light);
}
.eyebrow--light::before {
  background: var(--accent-light);
}

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.7em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--btn-bg);
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
    color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
}

.btn .arw {
  transition: transform 0.3s var(--ease);
}
.btn:hover .arw {
  transform: translateX(4px);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--navy);
  border-color: var(--navy);
}
.btn--ghost:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.btn--light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn--light:hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 3px;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.textlink:hover {
  gap: 0.85em;
  color: var(--accent);
}
.textlink .arw {
  color: var(--accent);
}

/* ============================================================
   Top bar + Header
   ============================================================ */

.topbar {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--step--1);
}
.topbar .wrap {
  display: flex;
  justify-content: flex-end;
  gap: 1.8rem;
  padding-block: 0.55rem;
}
.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  letter-spacing: 0.02em;
  transition: color 0.25s var(--ease);
}
.topbar a:hover {
  color: #fff;
}
.topbar svg {
  width: 15px;
  height: 15px;
  opacity: 0.8;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease), padding 0.3s var(--ease);
}
.site-header.scrolled {
  box-shadow: 0 8px 30px rgba(6, 28, 48, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.1rem;
  transition: padding 0.3s var(--ease);
}
.site-header.scrolled .nav {
  padding-block: 0.7rem;
}

/* Brand mark */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.brand__mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  object-fit: contain;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand__name {
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  color: var(--navy);
}
.brand__tag {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-ink);
  font-weight: 700;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--navy);
  padding-block: 0.4rem;
  transition: color 0.25s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--accent);
}
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after {
  width: 100%;
}

.nav__cta {
  display: inline-flex;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
}
.nav__toggle span {
  width: 26px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav__toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav__toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  background: var(--navy-deep);
  color: #fff;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transform: scale(1.05);
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      100deg,
      var(--navy-deep) 8%,
      rgba(6, 28, 48, 0.72) 48%,
      rgba(6, 28, 48, 0.3) 100%
    );
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(5rem, 10vw, 9.5rem);
  max-width: 900px;
}
.hero h1 {
  color: #fff;
  font-size: var(--step-4);
  margin-bottom: 1.6rem;
}
.hero__lead {
  font-size: var(--step-1);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  max-width: 40em;
  margin-bottom: 2rem;
}
.hero__list {
  list-style: none;
  margin: 0 0 2.6rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  max-width: 44em;
}
.hero__list li {
  position: relative;
  padding-left: 2rem;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  font-size: var(--step-0);
}
.hero__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  align-items: center;
}

/* Compact hero for interior pages */
.hero--page .hero__inner {
  padding-block: clamp(4rem, 8vw, 7rem);
}
.hero--page h1 {
  font-size: var(--step-3);
}

/* ============================================================
   Sections
   ============================================================ */

.section {
  padding-block: clamp(4rem, 8vw, 7.5rem);
}
.section--tight {
  padding-block: clamp(3rem, 6vw, 5rem);
}
.section--paper {
  background: var(--paper);
}
.section--warm {
  background: var(--paper-warm);
}
.section--navy {
  background: var(--navy);
  color: #fff;
}
.section--navy h1,
.section--navy h2,
.section--navy h3 {
  color: #fff;
}
.section--navy p {
  color: rgba(255, 255, 255, 0.82);
}

.section__head {
  max-width: 42em;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section__head h1,
.section__head h2,
.section__head h3 {
  margin-bottom: 1.1rem;
}
.section__head--center {
  margin-inline: auto;
  text-align: center;
}
.section__head--center .eyebrow {
  justify-content: center;
}
.section h2 {
  font-size: var(--step-3);
}
.section__lead {
  font-size: var(--step-1);
  color: var(--muted);
  line-height: 1.5;
}
.section--navy .section__lead {
  color: rgba(255, 255, 255, 0.82);
}

/* Split intro (two-column) */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split--media {
  grid-template-columns: 1.1fr 0.9fr;
}
.split__media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}
.split__figure {
  position: relative;
  overflow: hidden;
}
.split__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

/* ============================================================
   Service cards grid
   ============================================================ */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.card {
  background: var(--white);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  display: flex;
  flex-direction: column;
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
  position: relative;
}
.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.card:hover {
  background: var(--paper);
  transform: translateY(-4px);
}
.card:hover::before {
  transform: scaleX(1);
}
.card__num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--accent-ink);
  margin-bottom: 1.2rem;
}
.card h3 {
  font-size: var(--step-1);
  margin-bottom: 0.7rem;
}
.card__sub {
  font-weight: 700;
  color: var(--navy-mid);
  margin-bottom: 0.7rem;
}
.card p {
  color: var(--muted);
  font-size: 0.98rem;
  flex-grow: 1;
}
.card .textlink {
  margin-top: 1.2rem;
  align-self: flex-start;
}
.card--image {
  background-color: var(--white);
  background-image: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.86)), var(--card-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.card--image:hover {
  background-color: var(--paper);
  background-image: linear-gradient(rgba(247, 245, 240, 0.74), rgba(247, 245, 240, 0.8)), var(--card-img);
}

/* Reading progress bar (article pages) */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--accent);
  z-index: 200;
  transition: width 0.08s linear;
}

/* Related insights (article pages) */
.related-insights .section__head {
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

/* ============================================================
   Stats band
   ============================================================ */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  font-weight: 600;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.01em;
}
.stat__num .plus {
  color: var(--accent);
}
.stat__label {
  margin-top: 0.9rem;
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================================
   Feature / value lists
   ============================================================ */

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}
.checklist li {
  position: relative;
  padding-left: 2rem;
  line-height: 1.5;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
}
.checklist--cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 2.5rem;
}
.section--navy .checklist li {
  color: rgba(255, 255, 255, 0.9);
}

/* Numbered process steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  counter-reset: step;
}
.step {
  border-top: 2px solid var(--accent);
  padding-top: 1.5rem;
}
.step__n {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 0.8rem;
}
.step h3 {
  font-size: var(--step-1);
  margin-bottom: 0.5rem;
}
.step p {
  color: var(--muted);
  margin: 0;
}
.section--navy .step p {
  color: rgba(255, 255, 255, 0.75);
}

/* ============================================================
   Interior content blocks (service pages)
   ============================================================ */

.blocks {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}
.block {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: clamp(1.2rem, 3vw, 3rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}
.block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.block h2 {
  font-size: var(--step-2);
  position: relative;
}
.block__body p:last-child {
  margin-bottom: 0;
}

/* method sub-blocks (h3 groups) */
.method {
  display: grid;
  gap: 1.6rem;
}
.method__item h3 {
  font-size: var(--step-1);
  margin-bottom: 0.35rem;
}
.method__item p {
  color: var(--muted);
  margin: 0;
}

/* ============================================================
   Leadership
   ============================================================ */

.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.4rem);
}
.member {
  background: #fff;
  border: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.member:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(6, 28, 48, 0.14);
}
.member__photo {
  aspect-ratio: 4 / 4.2;
  overflow: hidden;
  background: var(--paper-warm);
}
.member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s var(--ease);
}
.member:hover .member__photo img {
  transform: scale(1.05);
}
.member__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem 1.6rem 1.7rem;
}
.member__name {
  font-size: var(--step-1);
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.member__role {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.92rem;
}
.member__creds {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.35rem;
}
.member__more {
  margin-top: 1.1rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.member__more .arw {
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}
.member:hover .member__more .arw {
  transform: translateX(4px);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
}
.modal.open {
  display: flex;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 28, 48, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.modal.open .modal__backdrop {
  opacity: 1;
}
.modal__panel {
  position: relative;
  background: #fff;
  max-width: 760px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.modal.open .modal__panel {
  transform: translateY(0);
  opacity: 1;
}
.modal__photo {
  background: var(--paper-warm);
  aspect-ratio: 4 / 4.2;
  align-self: start;
}
.modal__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.modal__content {
  padding: clamp(1.8rem, 4vw, 2.8rem);
}
.modal__content h3 {
  font-size: var(--step-2);
  margin-bottom: 0.2rem;
}
.modal__role {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.15rem;
}
.modal__creds {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 1.4rem;
}
.modal__content p {
  font-size: 0.98rem;
  color: var(--ink);
}
.modal__linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 3px;
}
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  font-size: 1.4rem;
  cursor: pointer;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.modal__close:hover {
  background: var(--accent);
  color: #fff;
  transform: rotate(90deg);
}

/* ============================================================
   Insights
   ============================================================ */

.topics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.topic {
  background: #fff;
  padding: clamp(1.8rem, 3vw, 2.8rem);
  transition: background 0.35s var(--ease);
}
.topic:hover {
  background: var(--paper);
}
.topic h3 {
  font-size: var(--step-1);
  margin-bottom: 1rem;
}
.topic__tags {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.topic__tags li {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy-mid);
  background: var(--paper-warm);
  padding: 0.35em 0.8em;
}

/* ============================================================
   CTA band
   ============================================================ */

.cta {
  background: var(--navy);
  color: #fff;
  text-align: center;
}
.cta__inner {
  padding-block: clamp(4rem, 8vw, 6.5rem);
  max-width: 46em;
  margin-inline: auto;
}
.cta h2 {
  color: #fff;
  font-size: var(--step-3);
  margin-bottom: 1rem;
}
.cta p {
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--step-1);
  margin-bottom: 2rem;
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  justify-content: center;
  align-items: center;
}
.cta__contact {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
}
.cta__contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.cta__contact svg {
  width: 17px;
  height: 17px;
  color: var(--accent);
}

/* ============================================================
   Contact page
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.contact-card {
  border: 1px solid var(--line);
  background: #fff;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  margin-bottom: 1.2rem;
}
.contact-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
}
.contact-card__icon svg {
  width: 22px;
  height: 22px;
}
.contact-card h3 {
  font-size: var(--step-1);
  margin-bottom: 0.3rem;
}
.contact-card a {
  color: var(--accent);
  font-weight: 700;
  word-break: break-word;
}
.contact-card p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.form {
  display: grid;
  gap: 1.2rem;
}
.field {
  display: grid;
  gap: 0.5rem;
}
.field label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.85em 1em;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(10, 42, 67, 0.1);
}
.field textarea {
  resize: vertical;
  min-height: 130px;
}
.form__note {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Contact page - info + form layout */
.hero--short {
  min-height: 56vh;
}
.contact-info h2 {
  font-size: var(--step-3);
}
.contact-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.4rem;
}
.contact-list li {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}
.contact-list__ico {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
}
.contact-list__ico svg {
  width: 21px;
  height: 21px;
}
.contact-list li > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-top: 0.2rem;
}
.contact-list__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-list li a {
  color: var(--accent);
  font-weight: 700;
  word-break: break-word;
}
.contact-form-wrap {
  background: #fff;
  border: 1px solid var(--line);
  padding: clamp(1.6rem, 3.5vw, 2.6rem);
}
.contact-form-wrap form {
  display: grid;
  gap: 1.2rem;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.field-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}
@media (max-width: 640px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

/* Insights subscribe form (navy section) */
.subscribe-form {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.8rem;
  max-width: 520px;
}
.subscribe-form .field label {
  color: rgba(255, 255, 255, 0.88);
}
.subscribe-form .btn {
  justify-self: start;
}
.subscribe-form .field-note {
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding-block: clamp(3.5rem, 6vw, 5rem) 2rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand .brand__name {
  color: #fff;
}
.footer-brand .brand__tag {
  color: var(--accent-light);
}
.footer-brand .brand__mark {
  background: #fff;
  border-radius: 50%;
  padding: 4px;
}
.footer-brand p {
  margin-top: 1.2rem;
  max-width: 30ch;
  color: rgba(255, 255, 255, 0.6);
}
.footer-col h4 {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}
.footer-col a:hover {
  color: #fff;
  padding-left: 4px;
}
.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.footer-contact svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-bottom a:hover {
  color: #fff;
}

/* ============================================================
   Reveal animation
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] {
  transition-delay: 0.08s;
}
.reveal[data-delay="2"] {
  transition-delay: 0.16s;
}
.reveal[data-delay="3"] {
  transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 960px) {
  .cards,
  .team,
  .steps,
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .split,
  .split--media,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .split__media {
    order: -1;
  }
  .block {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .modal__panel {
    grid-template-columns: 1fr;
  }
  .modal__photo {
    max-height: 260px;
  }
}

@media (max-width: 760px) {
  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(82vw, 340px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.4rem;
    padding: 6rem 2rem 2rem;
    background: var(--navy);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    z-index: 90;
  }
  .nav__links.open {
    transform: translateX(0);
  }
  .nav__links a {
    color: #fff;
    font-size: 1.15rem;
    width: 100%;
    padding-block: 0.7rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .nav__links a::after {
    display: none;
  }
  .nav__cta {
    display: none;
  }
  .nav__toggle {
    display: flex;
    z-index: 95;
  }
  .cards,
  .team,
  .steps,
  .stats,
  .topics,
  .checklist--cols {
    grid-template-columns: 1fr;
  }
  .topbar .wrap {
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
  }
  .brand__tag {
    display: none;
  }
}

/* scrim behind open mobile menu */
.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(6, 28, 48, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  z-index: 80;
}
.nav-scrim.open {
  opacity: 1;
  visibility: visible;
}

/* ============================================================
   Insight articles - listing cards + detail pages
   ============================================================ */

.card .card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.9rem;
  flex-grow: 0;
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.card__meta .topic {
  color: var(--accent-ink);
}
.card h3 a {
  transition: color 0.3s var(--ease);
}
.card:hover h3 a {
  color: var(--accent-ink);
}

.article {
  padding-block: clamp(3rem, 6vw, 5.5rem);
  background: var(--white);
}
.article__wrap {
  max-width: 760px;
  margin-inline: auto;
}
.article__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.6rem;
  transition: color 0.3s var(--ease);
}
.article__back:hover {
  color: var(--navy);
}
.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  margin-top: 1.5rem;
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}
.article__meta .topic {
  color: var(--accent-ink);
}
.article__meta .sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line);
}
.article__figure {
  margin: clamp(2rem, 4vw, 3rem) 0;
}
.article__figure img {
  width: 100%;
  height: auto;
  display: block;
}
.article__figure--sm {
  max-width: 50%;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 640px) {
  .article__figure--sm {
    max-width: 80%;
  }
}
.article__figure figcaption {
  margin-top: 0.7rem;
  font-size: var(--step--1);
  color: var(--muted-light);
}
.article__lead {
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--navy);
  margin-bottom: 1.8rem;
}
.article__body {
  font-size: 1.075rem;
  line-height: 1.75;
  color: var(--ink);
}
.article__body h2 {
  font-size: var(--step-2);
  margin: 2.6rem 0 1rem;
}
.article__body h3 {
  font-size: var(--step-1);
  margin: 2rem 0 0.8rem;
}
.article__body p {
  margin-bottom: 1.3em;
}
.article__body ul,
.article__body ol {
  margin: 0 0 1.5em 1.2em;
  display: grid;
  gap: 0.55em;
}
.article__body li {
  padding-left: 0.3rem;
}
.article__body blockquote {
  margin: 2.2rem 0;
  padding: 0.3rem 0 0.3rem 1.6rem;
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--navy);
}
.article__body a {
  color: var(--accent-ink);
  border-bottom: 1px solid currentColor;
  transition: color 0.3s var(--ease);
}
.article__body a:hover {
  color: var(--navy);
}
.article__body strong {
  color: var(--navy);
}
.article__download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.6rem;
  margin-top: clamp(2.4rem, 5vw, 3.4rem);
  padding: 1.6rem 1.8rem;
  background: var(--paper);
  border: 1px solid var(--line);
}
.article__download-text strong {
  display: block;
  color: var(--navy);
  font-size: 1.05rem;
}
.article__download-text span {
  font-size: var(--step--1);
  color: var(--muted);
}
.article__nav {
  margin-top: clamp(2.4rem, 5vw, 3.4rem);
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}
.article__nav .article__back {
  margin-bottom: 0;
}

/* Author block */
.article__author {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: clamp(2.4rem, 5vw, 3.4rem);
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}
.article__author-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--accent);
}
.article__author-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.article__author-label {
  font-size: var(--step--2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.article__author-namerow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.article__author-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
}
.article__author-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #0a66c2;
  transition: color 0.2s ease;
}
.article__author-linkedin svg {
  width: 18px;
  height: 18px;
}
.article__author-linkedin:hover {
  color: #004182;
}
.article__author-role {
  font-size: var(--step--1);
  color: var(--muted);
}

/* Elements that only appear in the branded PDF export */
.pdf-only,
.brand__tag--pdf {
  display: none;
}

/* ==========================================================================
   Print / branded PDF export
   Renders each insight article as a clean, branded document (chrome removed,
   scroll-reveal forced visible, navy footer with contact retained).
   ========================================================================== */
@media print {
  @page {
    size: A4;
    margin: 16mm 15mm 14mm;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  html,
  body {
    background: #fff !important;
    font-size: 11pt;
  }

  /* Hide interactive site chrome */
  .topbar,
  .nav-scrim,
  .nav__links,
  .nav__cta,
  .nav__toggle,
  .reading-progress,
  .related-insights,
  .cta,
  .article__download,
  .article__nav,
  .article__back {
    display: none !important;
  }

  /* Branded print header (brand lockup only) */
  .site-header {
    position: static !important;
    box-shadow: none !important;
    background: #fff !important;
    border-bottom: 2.5px solid var(--accent);
  }
  .site-header .nav {
    padding: 0 0 12px !important;
    display: block;
  }
  .site-header .brand__mark {
    width: 64px !important;
    height: 64px !important;
  }
  .site-header .brand__name {
    color: var(--navy) !important;
    font-size: 22pt !important;
    line-height: 1.05;
  }
  .brand__name {
    color: var(--navy) !important;
  }
  /* Footer sits on navy, so render the company name in gold for the PDF */
  .footer-brand .brand__name {
    color: var(--accent) !important;
  }
  /* Swap the on-screen "Marine Advice" tag for the gold PDF tagline */
  .brand__tag:not(.brand__tag--pdf) {
    display: none !important;
  }
  .site-header .brand__tag--pdf {
    display: block !important;
    color: var(--accent) !important;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 12pt;
    letter-spacing: 0.01em;
    text-transform: none;
    margin-top: 2px;
  }

  /* Show PDF-only elements (e.g. website in footer) */
  .pdf-only {
    display: list-item !important;
  }

  /* Full-bleed article body within the page margins */
  main {
    display: block;
  }
  .article {
    padding: 14px 0 0 !important;
  }
  .wrap,
  .article__wrap {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Force scroll-reveal content to be visible in print */
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .eyebrow {
    color: var(--accent-ink) !important;
    margin-top: 6px;
  }
  .article h1 {
    font-size: 25pt;
    line-height: 1.12;
    color: var(--navy) !important;
  }
  .article__meta {
    color: var(--muted) !important;
  }

  .article__figure {
    margin: 12px 0 16px !important;
    page-break-inside: avoid;
  }
  .article__figure img {
    width: 100% !important;
    max-height: 95mm;
    object-fit: cover;
  }
  .article__figure figcaption {
    font-size: 8.5pt;
  }

  .article__body {
    font-size: 11pt;
    line-height: 1.5;
    color: var(--ink) !important;
  }
  .article__body .article__lead {
    font-size: 12.5pt;
  }
  .article__body h2 {
    font-size: 15pt;
    color: var(--navy) !important;
    page-break-after: avoid;
    margin-top: 16px;
  }
  .article__body blockquote {
    page-break-inside: avoid;
  }
  .article__body a {
    color: var(--accent-ink) !important;
    text-decoration: none;
  }

  /* Simplified branded footer: keep brand + contact + copyright */
  .site-footer {
    margin-top: 16px;
    page-break-inside: avoid;
  }
  .site-footer .footer-grid {
    grid-template-columns: 1.4fr 1fr !important;
    gap: 24px !important;
  }
  .site-footer .footer-col:not(.footer-contact) {
    display: none !important;
  }

  /* Author block */
  .article__author {
    margin-top: 18px;
    padding-top: 14px;
    page-break-inside: avoid;
  }
  .article__author-photo {
    width: 64px !important;
    height: 64px !important;
  }
  .article__author-name {
    color: var(--navy) !important;
  }
  .article__author-label {
    color: var(--accent-ink) !important;
  }
}

/* ---------- Form status message + spam honeypot ---------- */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.form-status--ok {
  background: #e7f4ee !important;
  color: #1a5c43 !important;
  border: 1px solid #bfe0cf;
}
.form-status--err {
  background: #fbeaec !important;
  color: #8a2231 !important;
  border: 1px solid #eccace;
}
