:root {
  /* Deep ocean palette */
  --ink: #0c2a3e;            /* deep ocean — primary text */
  --ink-soft: #466577;        /* harbor blue — secondary text */
  --paper: #f6f4ef;           /* warm off-white */
  --paper-cool: #eef2f4;      /* cool sea-glass off-white */
  --accent: #1f4e6b;          /* deep & calm ocean blue */
  --accent-soft: #6b94a8;     /* dusted blue */
  --rule: rgba(12, 42, 62, 0.14);
  --rule-soft: rgba(12, 42, 62, 0.08);

  --font-display: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --font-body: "Switzer", "Inter", system-ui, -apple-system, sans-serif;

  --container: 1280px;
  --gutter: clamp(1.5rem, 5vw, 3.5rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);

  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ============ MAST / HEADER ============ */
.mast {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1.25rem 0;
  background: rgba(246, 244, 239, 0);
  color: #fff;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease),
    padding 0.4s var(--ease), color 0.4s var(--ease),
    border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.mast.is-scrolled {
  background: rgba(246, 244, 239, 0.9);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  padding: 0.85rem 0;
  border-bottom-color: var(--rule-soft);
  color: var(--ink);
}

.mast-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.005em;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}
.brand-mark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  transition: opacity 0.3s ease;
}
.brand-mark--dark { opacity: 0; }
.brand-mark--light { opacity: 1; }
.mast.is-scrolled .brand-mark--light { opacity: 0; }
.mast.is-scrolled .brand-mark--dark { opacity: 1; }

.nav-label {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 500;
  color: inherit;
  opacity: 0.75;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 7rem;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  color: #fff;
  overflow: hidden;
}

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

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  transform: scale(1.05);
  transition: transform 1.8s var(--ease);
}

.hero.is-ready .hero-image img { transform: scale(1); }

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(12, 42, 62, 0.45) 0%,
      rgba(12, 42, 62, 0.05) 35%,
      rgba(12, 42, 62, 0.15) 60%,
      rgba(12, 42, 62, 0.7) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: flex-end;
  padding-bottom: 3rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 6.4vw, 5.25rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
  margin: 0;
  color: #fff;
  max-width: 20ch;
  text-shadow: 0 1px 30px rgba(12, 42, 62, 0.35);
}

.hero-title em {
  font-style: italic;
  color: #e4d9c4;
}

.hero-tag {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 500;
}

.hero-tag .dot { opacity: 0.5; }

/* ============ BLOCKS (statement + image) ============ */
.block {
  padding: var(--section-y) 0;
  background: var(--paper);
}

.block-a { background: var(--paper); }
.block-b { background: var(--paper-cool); }

.block-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}

.block-grid.flipped {
  /* image on left, copy on right */
}

.block-copy {
  max-width: 44ch;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent);
  margin: 0 0 1.75rem;
}

.block-line {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.4;
  letter-spacing: -0.003em;
  color: var(--ink);
  margin: 0;
}

.block-line em {
  font-style: italic;
  color: var(--accent);
}

.block-figure {
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.block-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 880px) {
  .block-grid {
    grid-template-columns: 1fr;
  }
  .block-grid.flipped .block-figure {
    order: -1;
  }
  .block-figure {
    aspect-ratio: 4 / 3;
  }
  .block-copy { max-width: none; }
}

/* ============ FULL-BLEED PLATE ============ */
.plate {
  background: var(--paper);
  padding: 0;
}

.plate figure {
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 880px) {
  .plate figure { aspect-ratio: 4 / 5; }
}

/* ============ CLOSING ============ */
.closing {
  background: var(--accent);
  color: #fff;
  padding: clamp(5rem, 10vw, 9rem) 0;
  text-align: center;
}

.closing-line {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.008em;
  color: #fff;
}

.closing-line span {
  display: inline-block;
  margin: 0 0.5rem;
}

.closing-line span:nth-child(2) {
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 600px) {
  .closing-line span {
    display: block;
    margin: 0.25rem 0;
  }
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--rule-soft);
  padding: 3rem 0 2.5rem;
  color: var(--ink-soft);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  justify-self: start;
}

.footer-mark {
  width: 22px;
  height: 22px;
  display: block;
}

.footer-address {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  font-family: var(--font-display);
  font-style: normal;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
  text-align: center;
  justify-self: center;
}

.footer-address span {
  font-style: normal;
}

.footer-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  justify-self: end;
}

.footer-meta .dot { opacity: 0.4; }

@media (max-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }
  .footer-brand,
  .footer-meta {
    justify-self: center;
  }
}

/* ============ REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.95s var(--ease), transform 0.95s var(--ease);
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
