:root {
  --ink: #120d08;
  --ink-soft: #3a2e22;
  --paper: #f7f1e4;
  --paper-deep: #efe5d0;
  --gold: #b48a3c;
  --gold-deep: #8a6420;
  --gold-light: #d9b36a;
  --parchment: #f6ecd6;
  --muted: #7a6a58;
  --rule: rgba(180, 138, 60, .35);
  --font-serif: "Cormorant Garamond", "Garamond", "Times New Roman", serif;
  --font-sans: "Alegreya Sans", "Helvetica Neue", Arial, sans-serif;
  --bar-height: 60px;
  --shadow: 0 20px 40px -20px rgba(18, 13, 8, .45);
}

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

html {
  scroll-padding-top: var(--bar-height);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.65;
}

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

a {
  color: var(--gold-deep);
}

.site:focus {
  outline: none;
}

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--bar-height);
  background: var(--ink);
  border-bottom: 1px solid rgba(217, 179, 106, .35);
}

.topbar__inner {
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar__brand {
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 4px;
}

.topbar__brand img {
  height: 28px;
  width: auto;
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.topbar__link {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  color: #ecd9a8;
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 2px;
  transition: background-color .25s ease, color .25s ease;
}

.topbar__link:hover,
.topbar__link:focus-visible {
  background: rgba(217, 179, 106, .15);
  color: #fff;
  outline: none;
}

.topbar__link.is-active {
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--gold-light);
}

/* Burger button, only shown when the links move into the drawer */
.topbar__toggle {
  display: none;
  position: relative;
  z-index: 3;
  width: 44px;
  height: 44px;
  margin-right: -6px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 2px;
  color: #ecd9a8;
  cursor: pointer;
}

.topbar__toggle:hover,
.topbar__toggle:focus-visible {
  background: rgba(217, 179, 106, .15);
  outline: none;
}

/* Three bars drawn from one span and its two pseudo-elements; they cross into an X when open */
.topbar__bars,
.topbar__bars::before,
.topbar__bars::after {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform .3s ease, opacity .2s ease, top .3s ease;
}

.topbar__bars {
  top: 21px;
}

.topbar__bars::before,
.topbar__bars::after {
  content: "";
  left: 0;
}

.topbar__bars::before { top: -7px; }
.topbar__bars::after  { top: 7px; }

.nav-open .topbar__bars {
  background: transparent;
}

.nav-open .topbar__bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-open .topbar__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-backdrop {
  display: none;
}

@media (max-width: 960px) {
  .topbar__toggle {
    display: block;
  }

  /* The nav becomes a drawer sliding in from the right */
  .topbar__nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 2;
    width: min(340px, 86vw);
    height: 100vh;
    height: 100dvh;
    padding: calc(var(--bar-height) + 1.5rem) 0 2rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow-y: auto;
    background: var(--ink);
    border-left: 1px solid rgba(217, 179, 106, .35);
    box-shadow: -20px 0 40px -20px rgba(0, 0, 0, .6);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .4s cubic-bezier(.65, 0, .25, 1), visibility 0s linear .4s;
  }

  .nav-open .topbar__nav {
    transform: none;
    visibility: visible;
    transition: transform .4s cubic-bezier(.65, 0, .25, 1), visibility 0s;
  }

  .topbar__link {
    height: auto;
    padding: 1rem 1.75rem;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: .01em;
    text-transform: none;
    white-space: normal;
    line-height: 1.2;
    border-radius: 0;
    border-bottom: 1px solid rgba(217, 179, 106, .18);
  }

  .topbar__link:first-child {
    border-top: 1px solid rgba(217, 179, 106, .18);
  }

  .topbar__link.is-active {
    box-shadow: inset 2px 0 0 var(--gold-light);
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(18, 13, 8, .55);
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s ease, visibility 0s linear .4s;
  }

  .nav-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
    transition: opacity .4s ease, visibility 0s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .topbar__nav,
  .nav-backdrop,
  .topbar__bars,
  .topbar__bars::before,
  .topbar__bars::after {
    transition: none !important;
  }
}

/* ---------- Page & hero ---------- */

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 16px 0;
}

.page-hero {
  max-width: 820px;
  margin: 0 auto clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
}

.eyebrow {
  margin: 0 0 .75rem;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.page-hero__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.05;
  color: var(--ink);
}

.page-hero__title em,
.chapter__title em {
  color: var(--gold);
}

.lead {
  margin: 1.5rem auto 0;
  max-width: 640px;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 300;
  color: var(--ink-soft);
}

.chapter__head .lead {
  margin-top: .9rem;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--muted);
}

.ornament {
  display: block;
  width: 160px;
  height: 1px;
  margin: 2rem auto 0;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

/* ---------- Intro (figure + text) ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.about__figure {
  margin: 0;
}

.about__figure img {
  width: 100%;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
}

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

.prose p {
  margin: 0 0 1rem;
  max-width: 68ch;
}

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

.prose h3 {
  margin: 0 0 .75rem;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.15;
  color: var(--ink);
}

.prose .big,
p.big {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.4;
  color: var(--ink);
}

/* Lists with a small gold diamond */
.list {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.list li {
  position: relative;
  padding: .45rem 0 .45rem 1.6rem;
  border-top: 1px solid var(--rule);
  line-height: 1.45;
}

.list li:last-child {
  border-bottom: 1px solid var(--rule);
}

.list li::before {
  content: "";
  position: absolute;
  left: .2rem;
  top: 1.05em;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* ---------- Contents grid (gallery style) ---------- */

.contents {
  margin: clamp(3.5rem, 8vw, 6rem) 0 0;
}

.contents__title {
  margin: 0 0 1.5rem;
  text-align: center;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}

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

  .gallery__thumb {
    aspect-ratio: 16 / 9 !important;
  }
}

.gallery__item {
  display: block;
  color: var(--ink);
  text-decoration: none;
}

.gallery__thumb {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  transition: border-color .25s ease, box-shadow .25s ease;
}

.gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.gallery__num {
  position: absolute;
  left: 12px;
  top: 8px;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1;
  color: #f6ecd6;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .8);
}

.gallery__title {
  display: block;
  margin-top: .7rem;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.2;
}

.gallery__meta {
  display: block;
  margin-top: .2rem;
  font-size: .98rem;
  line-height: 1.4;
  color: var(--muted);
}

.gallery__item:hover .gallery__thumb,
.gallery__item:focus-visible .gallery__thumb {
  border-color: var(--gold);
  box-shadow: 0 16px 32px -18px rgba(18, 13, 8, .5);
}

.gallery__item:focus-visible {
  outline: none;
}

.gallery__item:hover .gallery__title,
.gallery__item:focus-visible .gallery__title {
  color: var(--gold);
}

.gallery__item:hover .gallery__thumb img,
.gallery__item:focus-visible .gallery__thumb img {
  transform: scale(1.04);
}

/* ---------- Chapters ---------- */

.chapter {
  padding: clamp(3.5rem, 9vw, 7rem) 0 0;
}

.chapter__head {
  max-width: 820px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.chapter__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 5.4vw, 4rem);
  line-height: 1.05;
  color: var(--ink);
}

/* Text + picture rows */

.row {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(1.75rem, 5vw, 4.5rem);
  align-items: center;
  margin: 0 0 clamp(3rem, 7vw, 5.5rem);
}

.row--flip {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

@media (max-width: 820px) {
  .row,
  .row--flip {
    grid-template-columns: 1fr;
  }

  .row--flip > .fig {
    order: 2;
  }
}

/* Figures */

.fig {
  margin: 0;
}

.fig img {
  width: 100%;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  background: var(--paper-deep);
}

.fig--narrow {
  max-width: 420px;
  margin-inline: auto;
}

.fig figcaption,
.caption {
  margin-top: .7rem;
  font-size: .92rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: clamp(12px, 2vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.grid--center {
  align-items: center;
}

/* ---------- SecOps pillars ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin: 0 0 clamp(3rem, 7vw, 5.5rem);
  padding: 0;
  list-style: none;
}

.pillar {
  padding-top: 1.1rem;
  border-top: 2px solid var(--gold);
}

.pillar h3 {
  margin: 0 0 .5rem;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 1.15;
  color: var(--ink);
}

.pillar p {
  margin: 0;
}

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

/* ---------- Offerings: before / build / assure / after ---------- */

.journey {
  margin: 0 calc(50% - 50vw);
  padding: clamp(3rem, 7vw, 5rem) 16px;
  background: var(--ink);
  color: #e9dcc0;
}

.journey__head {
  max-width: 1200px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.journey__head h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.1;
  color: var(--parchment);
}

.journey__head p {
  margin: .6rem 0 0;
  color: #cbbb9a;
}

.journey__stages {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
  counter-reset: stage;
}

.stage {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 22px);
  counter-increment: stage;
}

.stage__when {
  position: relative;
  margin: 0;
  padding-bottom: .7rem;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold-light);
  border-bottom: 1px solid rgba(217, 179, 106, .45);
}

.stage__when::before {
  content: counter(stage, upper-roman) " · ";
  font-family: var(--font-serif);
  letter-spacing: .05em;
}

.offer {
  flex: 1;
  padding: clamp(1.1rem, 2vw, 1.5rem);
  background: rgba(246, 236, 214, .05);
  border: 1px solid rgba(217, 179, 106, .25);
  border-left: 2px solid var(--gold-light);
  transition: background-color .3s ease, border-color .3s ease;
}

.offer:hover {
  background: rgba(246, 236, 214, .09);
  border-color: rgba(217, 179, 106, .5);
}

.offer h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.55rem;
  line-height: 1.15;
  color: var(--parchment);
}

.offer__meta {
  margin: .3rem 0 .75rem;
  font-size: .9rem;
  font-style: italic;
  color: var(--gold-light);
}

.offer p:last-child {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.55;
}

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

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

/* ---------- Statement band ---------- */

.statement {
  position: relative;
  margin: clamp(3rem, 7vw, 5.5rem) calc(50% - 50vw) 0;
  padding: clamp(4rem, 11vw, 8rem) 16px;
  background: var(--ink);
  color: var(--parchment);
  overflow: hidden;
  isolation: isolate;
}

.journey + .statement {
  margin-top: 0;
}

.statement__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .34;
}

.statement__text {
  max-width: 820px;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  font-weight: 300;
  line-height: 1.3;
  text-align: center;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .5);
}

.statement__text p {
  margin: 0;
}

.statement__text p + p {
  margin-top: 1rem;
}

.statement__text em {
  color: var(--gold-light);
}

/* ---------- Vellum band (warm, full-bleed) ---------- */

.vellum {
  margin: 0 calc(50% - 50vw);
  padding: clamp(3rem, 7vw, 5.5rem) 16px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, .35), transparent 60%),
    linear-gradient(135deg, #e8dabb, #dcc9a0);
}

.vellum__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: center;
}

.vellum .prose {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: rgba(247, 241, 228, .94);
  border-left: 2px solid var(--gold);
  box-shadow: var(--shadow);
}

.vellum .fig figcaption {
  color: var(--ink-soft);
}

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

/* ---------- Panorama ---------- */

.panorama {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: clamp(380px, 68vh, 640px);
  margin: 0 calc(50% - 50vw);
  padding: 4rem max(16px, calc(50vw - 600px)) clamp(16px, 4vw, 40px);
  overflow: hidden;
  background: var(--ink);
}

.panorama__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 0% 50%;
  filter: sepia(.3) contrast(1.05);
  animation: pan 80s ease-in-out infinite alternate;
}

@keyframes pan {
  from { object-position: 0% 50%; }
  to   { object-position: 100% 50%; }
}

.panorama__card {
  position: relative;
  max-width: 540px;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: rgba(247, 241, 228, .95);
  border-left: 2px solid var(--gold);
  box-shadow: var(--shadow);
}

.panorama__credit {
  position: absolute;
  left: max(16px, calc(50vw - 600px));
  top: 14px;
  margin: 0;
  padding: .2rem .6rem;
  font-size: .85rem;
  font-style: italic;
  color: #f6ecd6;
  background: rgba(18, 13, 8, .55);
}

.more {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .9rem;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}

.more::after {
  content: "→";
  transition: transform .25s ease;
}

.more:hover::after,
.more:focus-visible::after {
  transform: translateX(4px);
}

@media (max-width: 720px) {
  .panorama {
    display: block;
    min-height: 0;
    padding: 0;
  }

  .panorama__img {
    position: static;
    height: 260px;
  }

  .panorama__card {
    max-width: none;
    margin: 0;
    box-shadow: none;
  }

  .panorama__credit {
    left: 16px;
  }
}

/* ---------- Contact ---------- */

.contact .row {
  margin-bottom: 0;
}

.contact__lines {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  margin-top: 1.5rem !important;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.contact__mail {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  text-decoration-color: var(--gold);
  text-underline-offset: 6px;
}

.contact__mail:hover,
.contact__mail:focus-visible {
  color: var(--gold);
  text-decoration-line: underline;
}

/* ---------- Footer ---------- */

.footer {
  margin-top: clamp(4rem, 9vw, 7rem);
  border-top: 1px solid var(--rule);
  padding: 2.5rem 16px 2rem;
  text-align: center;
  font-size: .9rem;
  color: var(--muted);
}

.footer p {
  margin: 0;
}

.footer__logo {
  height: 30px;
  width: auto;
  margin: 0 auto 1rem;
}

.credits {
  max-width: 900px;
  margin: 1.25rem auto 0;
  text-align: left;
}

.credits summary {
  text-align: center;
  cursor: pointer;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--gold-deep);
}

.credits p {
  margin: 1rem 0 .5rem;
  text-align: center;
}

.credits ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .85rem;
  line-height: 1.5;
}

.credits li {
  padding: .35rem 0;
  border-top: 1px solid var(--rule);
}

.credits a {
  color: var(--muted);
}

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s ease, transform 1s ease;
}

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

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

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

  .panorama__img {
    animation: none;
  }
}
