@import url("../fonts/fonts.css");

/* ==========================================================================
   SUMLII LLP — maritime editorial design system
   ========================================================================== */

:root {
  --ink: #17272b;
  --ink-soft: #43565b;
  --ink-faint: #6d8085;
  --ocean: #0a2a30;
  --ocean-deep: #061d22;
  --teal: #1b5761;
  --brass: #b98a45;
  --brass-bright: #d3a45f;
  --brass-pale: #e7d3ad;
  --cream: #f8f3ea;
  --cream-warm: #f2eadd;
  --sand: #e8ddcb;
  --line: rgba(23, 39, 43, 0.14);
  --line-soft: rgba(23, 39, 43, 0.08);
  --line-light: rgba(248, 243, 234, 0.22);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --measure: 34rem;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --max: 1280px;

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

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.97rem + 0.14vw, 1.075rem);
  font-weight: 400;
  line-height: 1.72;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* subtle paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.32;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.16'/%3E%3C/svg%3E");
}

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

a {
  color: inherit;
  text-decoration-color: var(--brass);
  text-underline-offset: 0.24em;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  line-height: 1.06;
  letter-spacing: -0.014em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0 0 1.15em;
}

p:last-child {
  margin-bottom: 0;
}

::selection {
  background: var(--brass-pale);
  color: var(--ocean);
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ocean);
  color: var(--cream);
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 2;
}

.wrap--narrow {
  max-width: 940px;
}

.section {
  padding-block: clamp(3.5rem, 8vw, 7.5rem);
  position: relative;
}

.section--tight {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.section--ocean {
  background: var(--ocean);
  color: var(--cream);
}

.section--ocean .lede,
.section--ocean .body-copy,
.section--ocean p {
  color: rgba(248, 243, 234, 0.82);
}

.section--sand {
  background: var(--cream-warm);
}

.section--hairline {
  border-top: 1px solid var(--line-soft);
}

/* Two-column editorial split: numbered aside + prose */
.split {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(8rem, 15rem) minmax(0, 1fr);
    gap: clamp(2rem, 6vw, 6rem);
  }

  .split--wide {
    grid-template-columns: minmax(8rem, 15rem) minmax(0, 1fr) minmax(0, 0.7fr);
  }
}

.split__aside {
  align-self: start;
  position: sticky;
  top: 6.5rem;
}

@media (max-width: 899px) {
  .split__aside {
    position: static;
  }
}

.numeral {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  line-height: 1;
  color: var(--brass);
  display: block;
  margin-bottom: 0.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1.1rem;
}

.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.eyebrow--plain::before {
  display: none;
}

.aside-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.55rem;
}

.section--ocean .aside-label,
.section--ocean .eyebrow {
  color: var(--brass-bright);
}

/* ==========================================================================
   Type scale
   ========================================================================== */

.display {
  font-size: clamp(2.6rem, 1.5rem + 5.1vw, 5.4rem);
  letter-spacing: -0.028em;
  line-height: 0.98;
}

.h2 {
  font-size: clamp(1.85rem, 1.15rem + 2.5vw, 3.1rem);
  letter-spacing: -0.02em;
}

.h3 {
  font-size: clamp(1.3rem, 1.05rem + 0.85vw, 1.72rem);
  line-height: 1.16;
}

.h4 {
  font-size: 1.06rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.lede {
  font-family: var(--font-display);
  font-size: clamp(1.16rem, 1rem + 0.72vw, 1.45rem);
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 46ch;
}

.body-copy {
  max-width: var(--measure);
}

.body-copy > p + h3,
.body-copy > p + h4 {
  margin-top: 2rem;
}

.body-copy h3 {
  margin-bottom: 0.6rem;
}

.body-copy--wide {
  max-width: 52rem;
}

.dropcap::first-letter {
  font-family: var(--font-display);
  float: left;
  font-size: 3.9em;
  line-height: 0.78;
  padding: 0.06em 0.1em 0 0;
  color: var(--teal);
}

.small {
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--ink-faint);
}

.section--ocean .small {
  color: rgba(248, 243, 234, 0.6);
}

.hairline {
  height: 1px;
  border: 0;
  background: var(--line);
  margin: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 1.1rem;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease),
    padding 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-header--solid {
  background: rgba(248, 243, 234, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-soft);
  padding-block: 0.7rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand__mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  color: var(--brass);
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.32rem;
  letter-spacing: 0.16em;
  line-height: 1;
  font-weight: 500;
}

.brand__suffix {
  font-family: var(--font-body);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  display: block;
  margin-top: 0.34rem;
  color: var(--ink-faint);
  font-weight: 500;
}

/* Light variant over hero imagery */
.site-header--over-hero:not(.site-header--solid) .brand,
.site-header--over-hero:not(.site-header--solid) .nav__link,
.site-header--over-hero:not(.site-header--solid) .nav-toggle {
  color: var(--cream);
}

.site-header--over-hero:not(.site-header--solid) .brand__mark {
  color: var(--brass-bright);
}

.site-header--over-hero:not(.site-header--solid) .brand__suffix {
  color: rgba(248, 243, 234, 0.62);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}

.nav__link {
  position: relative;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding-block: 0.35rem;
  transition: color 0.3s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.42s var(--ease);
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--ink);
}

.site-header--over-hero:not(.site-header--solid) .nav__link:hover,
.site-header--over-hero:not(.site-header--solid) .nav__link[aria-current="page"] {
  color: #fff;
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav__cta {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.72rem 1.3rem;
  border: 1px solid currentColor;
  color: var(--ink);
  transition: background-color 0.34s var(--ease), color 0.34s var(--ease),
    border-color 0.34s var(--ease);
}

.nav__cta:hover {
  background: var(--ocean);
  border-color: var(--ocean);
  color: var(--cream);
}

.site-header--over-hero:not(.site-header--solid) .nav__cta {
  color: var(--cream);
  border-color: rgba(248, 243, 234, 0.5);
}

.site-header--over-hero:not(.site-header--solid) .nav__cta:hover {
  background: var(--cream);
  color: var(--ocean);
  border-color: var(--cream);
}

.nav-desktop {
  display: none;
}

@media (min-width: 1080px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: none;
  border: 0;
  padding: 0.4rem 0;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}

@media (min-width: 1080px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle__bars {
  width: 20px;
  display: grid;
  gap: 4px;
}

.nav-toggle__bars span {
  height: 1px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--ocean);
  color: var(--cream);
  padding: 6rem var(--gutter) 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transform: translateY(-100%);
  transition: transform 0.55s var(--ease);
  overflow-y: auto;
}

.drawer[data-open="true"] {
  transform: translateY(0);
}

.drawer__link {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  text-decoration: none;
  padding-block: 0.55rem;
  border-bottom: 1px solid var(--line-light);
  color: var(--cream);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.drawer__link span {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--brass-bright);
}

.drawer__foot {
  margin-top: auto;
  padding-top: 2rem;
  font-size: 0.82rem;
  color: rgba(248, 243, 234, 0.6);
}

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

.hero {
  position: relative;
  min-height: min(94vh, 900px);
  display: flex;
  align-items: flex-end;
  padding-top: 9rem;
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--cream);
  overflow: hidden;
  background: var(--ocean-deep);
}

.hero--page {
  min-height: min(66vh, 620px);
  padding-top: 8.5rem;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  animation: heroDrift 26s var(--ease) forwards;
}

@keyframes heroDrift {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to top,
      rgba(6, 29, 34, 0.92) 0%,
      rgba(6, 29, 34, 0.55) 38%,
      rgba(6, 29, 34, 0.18) 68%,
      rgba(6, 29, 34, 0.42) 100%
    ),
    linear-gradient(to right, rgba(6, 29, 34, 0.55) 0%, rgba(6, 29, 34, 0) 62%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__grid {
  display: grid;
  gap: 1.6rem;
  align-items: end;
}

@media (min-width: 1000px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr);
    gap: clamp(2rem, 6vw, 5rem);
  }
}

.hero .eyebrow {
  color: var(--brass-bright);
}

.hero__title {
  font-size: clamp(2.7rem, 1.4rem + 5.4vw, 5.9rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  max-width: 19ch;
}

.hero__title em {
  font-style: italic;
  color: var(--brass-pale);
}

.hero__aside {
  padding-bottom: 0.4rem;
  max-width: 26rem;
}

.hero__aside p {
  color: rgba(248, 243, 234, 0.86);
  font-size: 1.02rem;
  line-height: 1.68;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-light);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(248, 243, 234, 0.62);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.6rem;
  border: 1px solid var(--brass);
  background: var(--brass);
  color: #1b1408;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background-color 0.34s var(--ease), color 0.34s var(--ease),
    border-color 0.34s var(--ease), transform 0.34s var(--ease);
}

.btn:hover {
  background: var(--brass-bright);
  border-color: var(--brass-bright);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(248, 243, 234, 0.44);
}

.btn--ghost:hover {
  background: rgba(248, 243, 234, 0.1);
  border-color: var(--cream);
  color: #fff;
}

.btn--ink {
  background: var(--ocean);
  border-color: var(--ocean);
  color: var(--cream);
}

.btn--ink:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.btn__arrow {
  transition: transform 0.34s var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--teal);
  border-bottom: 1px solid var(--brass);
  padding-bottom: 0.35rem;
}

.link-arrow span {
  transition: transform 0.34s var(--ease);
}

.link-arrow:hover span {
  transform: translateX(4px);
}

/* ==========================================================================
   Voyage / chart line
   ========================================================================== */

.chart-rule {
  position: relative;
  height: 1px;
  background: var(--line);
  margin-block: 2.4rem;
}

.chart-rule::before,
.chart-rule::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 1px;
  height: 7px;
  background: var(--line);
}

.chart-rule::before {
  left: 0;
}

.chart-rule::after {
  right: 0;
}

.voyage {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.voyage__leg {
  display: grid;
  gap: 0.5rem 2rem;
  padding-block: clamp(1.5rem, 3vw, 2.2rem);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.4s var(--ease), padding 0.4s var(--ease);
}

@media (min-width: 820px) {
  .voyage__leg {
    grid-template-columns: 6rem 13rem minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 2rem;
  }
}

.voyage__leg:hover {
  background: rgba(185, 138, 69, 0.06);
  padding-inline: 0.5rem;
}

.voyage__date {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--brass);
  line-height: 1;
}

.voyage__place {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 0.7vw, 1.55rem);
  line-height: 1.15;
}

.voyage__note {
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.6;
  max-width: 44ch;
}

.voyage__arrow {
  font-size: 1rem;
  color: var(--brass);
  transition: transform 0.34s var(--ease);
}

.voyage__leg:hover .voyage__arrow {
  transform: translateX(5px);
}

/* ==========================================================================
   Cards
   ========================================================================== */

.grid {
  display: grid;
  gap: clamp(1.2rem, 2.5vw, 2rem);
}

.grid--2 {
  grid-template-columns: minmax(0, 1fr);
}

.grid--3 {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 760px) {
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.34);
  padding: clamp(1.4rem, 2.4vw, 2rem);
  position: relative;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease),
    background-color 0.4s var(--ease);
}

.card:hover {
  border-color: rgba(185, 138, 69, 0.6);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.62);
}

.card__num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--brass);
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}

.card__title {
  font-size: 1.24rem;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.card__text {
  font-size: 0.94rem;
  line-height: 1.68;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
}

.card__foot {
  margin-top: auto;
}

.section--ocean .card {
  background: rgba(248, 243, 234, 0.04);
  border-color: var(--line-light);
}

.section--ocean .card__text {
  color: rgba(248, 243, 234, 0.72);
}

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

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
}

@media (min-width: 900px) {
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.stat {
  background: var(--ocean);
  padding: clamp(1.3rem, 2.4vw, 2rem);
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 1.7vw, 2.9rem);
  line-height: 1;
  color: var(--brass-pale);
  display: block;
  margin-bottom: 0.55rem;
  letter-spacing: -0.02em;
}

.stat__label {
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(248, 243, 234, 0.72);
  letter-spacing: 0.01em;
}

/* ==========================================================================
   Figures
   ========================================================================== */

.figure {
  margin: 0;
}

.figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.figure--tall img {
  aspect-ratio: 4 / 5;
}

.figure--wide img {
  aspect-ratio: 16 / 9;
}

.figure--bleed {
  margin-inline: calc(var(--gutter) * -1);
}

@media (min-width: 1100px) {
  .figure--bleed {
    margin-inline: 0;
    margin-right: calc((100vw - min(100vw, var(--max))) / -2 - var(--gutter));
  }
}

.figure figcaption {
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--ink-faint);
  padding-top: 0.8rem;
  border-top: 1px solid var(--line-soft);
  margin-top: 0.9rem;
  max-width: 40ch;
}

.image-pair {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 700px) {
  .image-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.image-pair .figure img {
  aspect-ratio: 4 / 5;
}

/* ==========================================================================
   Quote
   ========================================================================== */

.quote {
  border-left: 1px solid var(--brass);
  padding-left: clamp(1.2rem, 3vw, 2.2rem);
  max-width: 52rem;
}

.quote__text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.35rem);
  line-height: 1.24;
  letter-spacing: -0.015em;
  font-weight: 300;
}

.quote__cite {
  display: block;
  margin-top: 1.3rem;
  font-family: var(--font-body);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--brass);
}

/* ==========================================================================
   Definition block (dhow)
   ========================================================================== */

.definition {
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  padding: clamp(1.3rem, 2.6vw, 2rem);
  background: rgba(255, 255, 255, 0.42);
  max-width: 46rem;
}

.definition__term {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  margin-bottom: 0.5rem;
}

.definition__pron {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin-left: 0.5rem;
}

/* ==========================================================================
   Group structure diagram
   ========================================================================== */

.structure {
  display: grid;
  gap: 1rem;
  margin-top: clamp(1.5rem, 3vw, 2.4rem);
}

.structure__node {
  border: 1px solid var(--line-light);
  padding: 1.3rem 1.5rem;
  background: rgba(248, 243, 234, 0.05);
}

.structure__node--root {
  border-color: var(--brass);
  text-align: center;
}

.structure__node--muted {
  opacity: 0.72;
}

.structure__kicker {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-bright);
  margin-bottom: 0.4rem;
  display: block;
}

.structure__name {
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.25;
  margin-bottom: 0.3rem;
}

.structure__desc {
  font-size: 0.84rem;
  line-height: 1.6;
  color: rgba(248, 243, 234, 0.7);
}

.structure__branch {
  display: grid;
  gap: 1rem;
}

@media (min-width: 820px) {
  .structure__branch {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.structure__stem {
  width: 1px;
  height: 1.6rem;
  background: var(--line-light);
  margin-inline: auto;
}

/* ==========================================================================
   Timeline (heritage page)
   ========================================================================== */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line);
}

.timeline li {
  position: relative;
  padding: 0 0 clamp(1.6rem, 3vw, 2.4rem) clamp(1.4rem, 3vw, 2.2rem);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -3.5px;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  background: var(--brass);
  border-radius: 50%;
}

.timeline__year {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.22rem;
  color: var(--brass);
  display: block;
  margin-bottom: 0.3rem;
  line-height: 1.1;
}

.timeline__body {
  max-width: 44rem;
  font-size: 0.97rem;
  color: var(--ink-soft);
}

.timeline__body strong {
  color: var(--ink);
  font-weight: 600;
}

/* ==========================================================================
   Tables
   ========================================================================== */

.facts {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.facts th,
.facts td {
  text-align: left;
  padding: 0.9rem 0.8rem 0.9rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.facts th {
  font-weight: 500;
  color: var(--ink-faint);
  width: 38%;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.facts td {
  color: var(--ink);
}

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

.cta-band {
  position: relative;
  background: var(--ocean);
  color: var(--cream);
  overflow: hidden;
}

.cta-band__sail {
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-50%);
  width: min(46vw, 460px);
  color: rgba(211, 164, 95, 0.1);
  pointer-events: none;
}

.cta-band__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1.6rem;
  align-items: center;
}

@media (min-width: 900px) {
  .cta-band__inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form {
  display: grid;
  gap: 1.1rem;
  max-width: 40rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 0.95rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  border-radius: 0;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brass);
  background: #fff;
  outline: none;
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
}

.form__note {
  font-size: 0.78rem;
  color: var(--ink-faint);
  line-height: 1.6;
}

.row-2 {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 620px) {
  .row-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.1rem;
}

.contact-list dt {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.2rem;
}

.contact-list dd {
  margin: 0;
  font-size: 1rem;
}

.contact-list a {
  color: var(--ink);
  text-decoration-color: var(--brass);
}

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

.site-footer {
  background: var(--ocean-deep);
  color: rgba(248, 243, 234, 0.74);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  position: relative;
}

.site-footer__top {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line-light);
}

@media (min-width: 900px) {
  .site-footer__top {
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.85fr));
  }
}

.site-footer .brand {
  color: var(--cream);
}

.site-footer .brand__mark {
  color: var(--brass-bright);
}

.site-footer .brand__suffix {
  color: rgba(248, 243, 234, 0.5);
}

.footer-blurb {
  margin-top: 1.2rem;
  max-width: 26rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(248, 243, 234, 0.66);
}

.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-bright);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-col a {
  font-size: 0.88rem;
  color: rgba(248, 243, 234, 0.74);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--brass);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  justify-content: space-between;
  padding-top: 1.6rem;
  font-size: 0.74rem;
  color: rgba(248, 243, 234, 0.45);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Page furniture
   ========================================================================== */

.page-intro {
  background: var(--cream-warm);
  border-bottom: 1px solid var(--line-soft);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.4rem;
}

.breadcrumb a {
  text-decoration: none;
  color: var(--ink-faint);
}

.breadcrumb a:hover {
  color: var(--brass);
}

.breadcrumb span[aria-hidden] {
  opacity: 0.5;
}

.next-page {
  display: grid;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}

@media (min-width: 800px) {
  .next-page {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

.download-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.download-list li {
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 0.9rem;
  font-size: 0.92rem;
}

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

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0ms);
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__media img {
    animation: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.mt-1 { margin-top: 0.6rem; }
.mt-2 { margin-top: 1.2rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: clamp(2rem, 4vw, 3rem); }
.mb-3 { margin-bottom: 2rem; }
.center { text-align: center; }
.no-wrap { white-space: nowrap; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.prose-intro {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.85rem);
  line-height: 1.42;
  font-weight: 300;
  color: var(--ink);
  max-width: 34ch;
}

.two-col-text {
  display: grid;
  gap: clamp(1.2rem, 3vw, 3rem);
}

@media (min-width: 820px) {
  .two-col-text {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.note {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--ink-faint);
  max-width: 42rem;
}

/* Progressive-enhancement guards */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.drawer { visibility: hidden; pointer-events: none; }
.drawer[data-open="true"] { visibility: visible; pointer-events: auto; }
.nav-toggle { display: none; }
.js .nav-toggle { display: inline-flex; }
.section--ocean .link-arrow { color: var(--brass-pale); }
.section--ocean .note { color: rgba(248,243,234,.75); border-color: var(--line-light); }
.section--ocean .body-copy a { text-decoration-color: var(--brass-bright); }
.site-header--menu-open,
.site-header--menu-open.site-header--solid { background: var(--ocean); }
.site-header--menu-open .brand,
.site-header--menu-open .nav-toggle { color: var(--cream); }
.site-header--menu-open .brand__suffix { color: var(--brass-pale); }
.hero__title { overflow-wrap: break-word; }
.figure--tall { max-width: 35rem; }
@media (min-width: 1080px) { .js .nav-toggle { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Films, galleries and editorial credits */
.films { display: grid; gap: 2rem; }
.film { display: grid; gap: 1rem; }
.film__frame { position: relative; aspect-ratio: 16 / 9; background: var(--ocean-deep); border-radius: 2px; overflow: hidden; }
.film__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film__title { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.35; margin: 0 0 .25rem; }
.film__meta { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 .5rem; }
.film__text { margin: 0; color: var(--ink-soft); max-width: 48rem; }
@media (min-width: 820px) {
  .film { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 1.75rem; }
}
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.gallery__item { margin: 0; }
.gallery__item img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.gallery__item figcaption { font-size: .8rem; color: var(--ink-soft); margin-top: .55rem; }
.credit { letter-spacing: .06em; text-transform: uppercase; font-size: .62rem; color: var(--ink-faint); }
.hero--ink { background: linear-gradient(160deg, var(--ocean) 0%, var(--teal) 100%); color: var(--cream); }
.hero--ink .hero__aside p { color: rgba(248, 243, 234, .82); }
.download-list .small { color: var(--ink-faint); }

.film__facade { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; position: relative; }
.film__facade img { width: 100%; height: 100%; object-fit: cover; opacity: .86; transition: opacity .3s var(--ease), transform .5s var(--ease); }
.film__facade:hover img, .film__facade:focus-visible img { opacity: 1; transform: scale(1.02); }
.film__play { position: absolute; inset: 0; margin: auto; width: 4rem; height: 4rem; border-radius: 50%; background: rgba(10, 42, 48, .72); border: 1px solid rgba(248,243,234,.7); }
.film__play::after { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-left: 1.05rem solid var(--cream); border-top: .65rem solid transparent; border-bottom: .65rem solid transparent; transform: translateX(.18rem); }
.film__link { margin: .6rem 0 0; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.film__link a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: .1rem; }
.section--ocean .film__link a { color: rgba(248,243,234,.8); }

/* Before-and-after project cases */
.cases { display: grid; gap: 3rem; }
.case { border-top: 1px solid var(--line); padding-top: 1.6rem; }
.case__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; margin-bottom: .9rem; }
.case__title { font-family: var(--font-display); font-size: 1.35rem; margin: 0; }
.case__meta { margin: 0; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.ba { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .ba { grid-template-columns: 1fr 1fr; align-items: start; } }
.ba__item { margin: 0; position: relative; }
.ba__item img { width: 100%; height: auto; display: block; background: var(--sand); }
.ba__label { display: inline-block; margin-bottom: .45rem; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }
.ba__label--after { color: var(--brass); }
.ba__item figcaption { font-size: .8rem; color: var(--ink-soft); margin-top: .5rem; line-height: 1.5; }
.case__text { margin: 1rem 0 0; max-width: 46rem; color: var(--ink-soft); }
.section--ocean .case { border-color: var(--line-light); }
.section--ocean .ba__item figcaption, .section--ocean .case__text { color: rgba(248,243,234,.8); }
.section--ocean .ba__label { color: rgba(248,243,234,.55); }
.section--ocean .ba__label--after { color: var(--brass-pale); }

.image-pair--single { grid-template-columns: 1fr !important; }
.image-pair--single img { aspect-ratio: auto !important; height: auto !important; object-fit: contain !important; }
