/* Centered editorial rhythm with two deliberate media sizes:
   small = 1:1 (500 × 500 reference), large = 4:3 (1024 × 768 reference). */

.hero-copy {
  top: 50%;
  bottom: auto;
  width: min(calc(100% - 40px), 1200px);
  max-width: 1200px;
  transform: translate(-50%, -50%);
  text-align: center;
}

.hero-overlay {
  background: radial-gradient(
    circle at 50% 48%,
    rgba(72, 61, 52, 0.38) 0%,
    rgba(91, 77, 65, 0.3) 42%,
    rgba(184, 164, 140, 0.18) 100%
  );
}

.hero-brand {
  width: clamp(150px, 12vw, 190px);
  height: auto;
  margin: 0 auto 20px;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(42, 35, 30, 0.35));
}

.hero-copy .eyebrow {
  text-align: center;
}

.hero-copy h1 {
  max-width: none;
  margin: 0 auto 24px;
  font-size: clamp(1.7rem, 3vw, 3.15rem);
  white-space: nowrap;
}

.home-hero .hero-copy > .hero-subtitle {
  max-width: none;
  margin: 0 auto 34px;
  font-size: clamp(0.85rem, 1.05vw, 1rem);
  white-space: nowrap;
}

.hero-copy .eyebrow,
.hero-copy h1,
.home-hero .hero-copy > .hero-subtitle,
.hero-copy .light-link {
  text-shadow: 0 2px 12px rgba(38, 32, 28, 0.36);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-copy .hero-actions .button {
  margin-right: 0;
}

.page-hero .shell,
.contact-cta .shell {
  text-align: center;
}

.page-hero .breadcrumb {
  justify-content: flex-start;
  text-align: left;
}

.page-lead,
.contact-cta h2 {
  margin-inline: auto;
}

.intro-section .split-intro {
  display: block;
  max-width: 900px;
  text-align: center;
}

.intro-section .prose {
  max-width: 760px;
  margin: 38px auto 0;
  text-align: center;
}

.home-section > .shell > .eyebrow,
.home-section > .shell > h2,
.content-section > .shell > .eyebrow,
.content-section > .shell > h2 {
  text-align: center;
}

.yachts-section .shell > .eyebrow,
.yachts-section .shell > h2,
.ise-section .shell > .eyebrow,
.ise-section .shell > h2 {
  width: 100%;
  text-align: center;
}

.service-mosaic,
.experience-grid,
.journal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 60px);
  width: min(100%, 1180px);
  margin-inline: auto;
}

.service-mosaic article,
.experience-grid a,
.journal-grid article {
  width: 100%;
  max-width: 370px;
  margin: 0 auto;
  text-align: center;
}

.service-mosaic article:first-child {
  grid-row: auto;
}

.service-mosaic img,
.service-mosaic article:not(:first-child) img,
.experience-grid img,
.experience-grid a:nth-child(2) img,
.journal-grid img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.experience-grid a:nth-child(3) {
  grid-column: auto;
  margin-top: 0;
}

.journal-grid article:nth-child(2),
.journal-grid article:nth-child(3) {
  margin-top: 0;
}

.yacht-row img,
.corporate-grid > img,
.events-grid img,
.plan-row img,
.category-overview > img {
  width: 100%;
  max-width: 1024px;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.yacht-row > div,
.plan-row > div {
  text-align: center;
}

.yacht-row {
  display: block;
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  padding-block: clamp(48px, 5vw, 72px);
}

.yacht-row img,
.yacht-row.reverse img {
  display: block;
  aspect-ratio: 3 / 2;
  order: initial;
  margin: 0 auto clamp(30px, 4vw, 48px);
}

.yacht-row > div {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.events-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 64px);
}

.events-grid a {
  margin-top: 0;
  text-align: center;
}

.events-grid {
  display: grid;
  max-width: 980px;
  margin-inline: auto;
}

.events-grid a {
  display: block;
}

.events-grid a:nth-child(2) {
  margin-top: 0;
}

.events-grid img {
  aspect-ratio: 3 / 2;
  margin: 0 auto clamp(26px, 3vw, 38px);
}

.events-grid h3,
.events-grid p {
  max-width: 720px;
  margin-inline: auto;
}

.ise-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(30px, 4vw, 52px);
  width: 100%;
  max-width: 980px;
  margin-inline: auto;
}

.ise-gallery > img:first-child {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.ise-gallery > img:last-child {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  grid-column: 2;
  grid-row: 1;
}

.ise-gallery > div {
  grid-column: 1 / -1;
  width: min(100%, 760px);
  margin: 0 auto;
  text-align: center;
}

.section-heading-row {
  display: block;
  text-align: center;
}

.section-heading-row .text-link {
  margin-top: 24px;
}

/* Inner pages: one calm editorial rhythm across every section. */
.inner-page-content {
  overflow: hidden;
}

.category-editorial,
.inner-editorial,
.gallery-editorial,
.access-editorial {
  width: 100%;
}

.category-statement,
.inner-statement {
  width: min(100%, 780px);
  margin: 0 auto clamp(64px, 8vw, 112px);
  text-align: center;
}

.category-statement {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.65vw, 1.55rem);
  line-height: 2;
}

.category-editorial > img,
.access-editorial > img,
.gallery-feature img {
  display: block;
  width: min(100%, 920px);
  height: auto;
  margin-inline: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.inner-lead-media {
  display: block;
  width: min(100%, 860px);
  height: auto;
  max-height: 640px;
  margin-inline: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.category-links {
  width: min(100%, 760px);
  margin: clamp(64px, 8vw, 112px) auto 0;
}

.category-links > .eyebrow,
.category-links > h2 {
  text-align: center;
}

.inner-statement h2 {
  margin-bottom: clamp(32px, 4vw, 50px);
}

.inner-statement > div {
  width: min(100%, 700px);
  margin-inline: auto;
}

.inner-statement p + p {
  margin-top: 22px;
}

.inner-chapters {
  width: min(100%, 760px);
  margin: clamp(72px, 9vw, 130px) auto 0;
  border-top: 1px solid var(--color-line);
}

.inner-chapters section {
  display: grid;
  grid-template-columns: minmax(180px, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(30px, 6vw, 80px);
  padding: clamp(32px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--color-line);
}

.inner-chapters h3 {
  margin: 0;
  font-size: clamp(1.05rem, 1.35vw, 1.3rem);
}

.inner-chapters section > div p + p {
  margin-top: 16px;
}

.flow-list p {
  margin-top: 8px;
  color: var(--color-text-soft);
  font-size: 0.86rem;
}

.gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(250px, 28vw, 390px);
  gap: clamp(20px, 2.5vw, 38px);
  width: calc(100% + ((100vw - 100%) / 2));
  overflow-x: auto;
  padding: 0 max(24px, calc((100vw - var(--container-max)) / 2)) 26px 0;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--color-accent-soft) transparent;
  scrollbar-width: thin;
}

.gallery-track::-webkit-scrollbar {
  height: 5px;
}

.gallery-track::-webkit-scrollbar-thumb {
  background: var(--color-accent-soft);
}

.gallery-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-text);
  text-align: left;
  cursor: zoom-in;
  scroll-snap-align: start;
}

.gallery-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.25s ease;
}

.gallery-thumb:hover img {
  opacity: 0.9;
  transform: scale(1.012);
}

.gallery-thumb span {
  display: block;
  margin-top: 16px;
  font-family: var(--serif);
  font-size: 0.9rem;
}

.gallery-help {
  margin-top: 22px;
  color: var(--color-text-soft);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

body.gallery-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(60px, 7vw, 92px) clamp(58px, 8vw, 120px);
  background: rgba(54, 48, 43, 0.94);
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox figure {
  display: grid;
  place-items: center;
  max-width: min(1200px, 86vw);
  margin: 0;
}

.gallery-lightbox figure img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
  cursor: zoom-out;
}

.gallery-lightbox figcaption {
  margin-top: 16px;
  color: #e8ddd0;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-align: center;
}

.gallery-close,
.gallery-step {
  min-width: 48px;
  min-height: 48px;
  border: 1px solid rgba(232, 221, 208, 0.42);
  background: rgba(72, 63, 56, 0.45);
  color: #f5f0e9;
  cursor: pointer;
}

.gallery-close {
  position: absolute;
  top: 24px;
  right: 28px;
  padding-inline: 18px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.gallery-step {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  font-size: 1.25rem;
}

.gallery-prev {
  left: 28px;
}

.gallery-next {
  right: 28px;
}

.access-editorial .detail-grid {
  width: min(100%, 900px);
  margin: clamp(72px, 9vw, 124px) auto 0;
}

.faq-list,
.contact-layout,
.site-map-grid,
.legal-wrap,
.policy-document {
  width: min(100%, 900px);
  margin-inline: auto;
}

.draft-note,
.legal-notice {
  margin-bottom: clamp(48px, 7vw, 80px);
  padding: 24px 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  color: var(--color-text-soft);
  font-size: 0.84rem;
}

.policy-document {
  max-width: 760px;
}

.policy-document > p:not(.policy-revision) {
  margin-bottom: clamp(40px, 6vw, 64px);
}

.policy-title {
  margin-bottom: clamp(48px, 6vw, 72px);
  text-align: center;
}

.policy-document section {
  padding: 32px 0;
  border-top: 1px solid var(--color-line);
}

.policy-document section:last-of-type {
  border-bottom: 1px solid var(--color-line);
}

.policy-document section h2 {
  margin-bottom: 18px;
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
}

.policy-document section ul {
  margin: 18px 0 0;
  padding-left: 1.4em;
}

.policy-document section li + li {
  margin-top: 10px;
}

.policy-revision {
  margin-top: 32px;
  color: var(--color-text-soft);
  font-size: 0.78rem;
  text-align: right;
}

.info-table {
  margin: 0;
}

.info-table > div {
  display: grid;
  grid-template-columns: minmax(160px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(24px, 5vw, 64px);
  padding: 24px 0;
  border-top: 1px solid var(--color-line);
}

.info-table > div:last-child {
  border-bottom: 1px solid var(--color-line);
}

.info-table dt {
  color: var(--color-text-soft);
  font-size: 0.82rem;
}

.info-table dd {
  margin: 0;
}

@media (max-width: 768px) {
  .hero-brand {
    width: 118px;
    margin-bottom: 14px;
  }

  .hero-copy h1 {
    font-size: clamp(1.5rem, 6.3vw, 1.85rem);
  }

  .home-hero .hero-copy > .hero-subtitle {
    max-width: 34em;
    white-space: normal;
  }

  .service-mosaic,
  .experience-grid,
  .journal-grid,
  .events-grid {
    grid-template-columns: 1fr;
  }

  .service-mosaic article,
  .experience-grid a,
  .journal-grid article {
    max-width: 560px;
  }

  .intro-section .prose {
    text-align: left;
  }

  .plan-row > div {
    text-align: left;
  }

  .category-statement,
  .inner-statement {
    text-align: left;
  }

  .inner-chapters section,
  .info-table > div {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .category-editorial > img,
  .inner-lead-media,
  .access-editorial > img,
  .gallery-feature img {
    aspect-ratio: 3 / 2;
  }

  .ise-gallery {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ise-gallery > img:first-child,
  .ise-gallery > img:last-child,
  .ise-gallery > div {
    grid-column: 1;
    grid-row: auto;
  }

  .ise-gallery > div {
    margin-block: 6px 14px;
  }

  .gallery-track {
    grid-auto-columns: min(78vw, 320px);
    width: calc(100% + 20px);
    padding-right: 20px;
  }

  .gallery-lightbox {
    padding: 72px 18px 86px;
  }

  .gallery-lightbox figure {
    max-width: 100%;
  }

  .gallery-lightbox figure img {
    max-height: 70vh;
  }

  .gallery-close {
    top: 16px;
    right: 16px;
  }

  .gallery-step {
    top: auto;
    bottom: 18px;
    translate: none;
  }

  .gallery-prev {
    left: calc(50% - 62px);
  }

  .gallery-next {
    right: calc(50% - 62px);
  }
}
