:root {
  --navy: #0d2b45;
  --cream: #f7f5f0;
  --sand: #dcc8a0;
  --white: #ffffff;
  --ink-soft: rgba(13, 43, 69, 0.72);
  --line: rgba(13, 43, 69, 0.14);
  --shadow: 0 28px 80px rgba(13, 43, 69, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(13, 43, 69, 0.035) 1px, transparent 1px);
  background-size: 100% 42px;
  mix-blend-mode: multiply;
  opacity: 0.45;
  z-index: -1;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(247, 245, 240, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand-mark img {
  width: 156px;
  height: 56px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: clamp(16px, 3vw, 36px);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-links a {
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: var(--navy);
}

main {
  overflow: hidden;
}

.hero,
.philosophy,
.collection,
.system,
.story,
.collector,
.join {
  padding-inline: clamp(20px, 5vw, 72px);
}

.hero {
  min-height: calc(86vh - 77px);
  display: flex;
  align-items: end;
  padding-top: clamp(28px, 5vh, 62px);
  padding-bottom: clamp(28px, 5vh, 62px);
  background:
    linear-gradient(90deg, rgba(13, 43, 69, 0.72), rgba(13, 43, 69, 0.24) 48%, rgba(13, 43, 69, 0.08)),
    linear-gradient(180deg, rgba(13, 43, 69, 0) 70%, rgba(247, 245, 240, 0.82)),
    url("MOMENTS_Codex_Context_Pack/groupcovercaps.jpg") center / cover no-repeat;
  color: var(--white);
}

.hero-copy {
  max-width: 720px;
  padding-bottom: clamp(12px, 4vh, 44px);
}

.hero .kicker,
.hero-copy > p:not(.kicker) {
  color: rgba(255, 255, 255, 0.84);
}

.kicker {
  margin: 0 0 18px;
  color: rgba(13, 43, 69, 0.62);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: clamp(3.4rem, 5.8vw, 6.2rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  max-width: 850px;
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy > p:not(.kicker),
.system-copy > p,
.story-copy > p,
.join h2 + p {
  color: var(--ink-soft);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.45;
}

.hero .hero-copy > p:not(.kicker) {
  color: rgba(255, 255, 255, 0.84);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--navy);
  border-radius: 0;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  margin-top: 16px;
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}

.button-primary:hover {
  background: transparent;
  color: var(--white);
}

.button-dark {
  background: var(--navy);
  color: var(--white);
  white-space: nowrap;
}

.hero-stage {
  position: relative;
  min-height: clamp(330px, 42vw, 560px);
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 5% 0 14%;
  background:
    linear-gradient(90deg, rgba(0, 91, 150, 0.18), transparent 36%),
    linear-gradient(120deg, rgba(220, 200, 160, 0.35), rgba(255, 255, 255, 0.35));
  border: 1px solid var(--line);
  z-index: -2;
}

.sun-disc {
  position: absolute;
  top: 9%;
  right: 8%;
  width: clamp(112px, 17vw, 220px);
  aspect-ratio: 1;
  background: #f6c85a;
  border-radius: 50%;
  opacity: 0.8;
  z-index: -1;
}

.hero-note {
  position: absolute;
  right: 8%;
  bottom: 7%;
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.hero-note span,
.moment-meta > span {
  color: rgba(13, 43, 69, 0.56);
  font-size: 0.78rem;
  font-weight: 900;
}

.hero-note strong {
  font-size: 1.35rem;
}

.cap {
  --cap-a: #005b96;
  --cap-b: #8ecbef;
  --cap-c: #ffffff;
  --cap-line: rgba(13, 43, 69, 0.2);
  position: relative;
  width: min(88vw, 470px);
  aspect-ratio: 1.42;
  filter: drop-shadow(0 34px 36px rgba(13, 43, 69, 0.2));
}

.cap-crown {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 5%;
  height: 70%;
  overflow: hidden;
  border: 2px solid var(--cap-line);
  border-radius: 50% 50% 16% 16% / 74% 74% 18% 18%;
  background:
    radial-gradient(circle at 38% 22%, rgba(255, 255, 255, 0.72), transparent 14%),
    linear-gradient(115deg, var(--cap-a), var(--cap-b) 55%, var(--cap-c));
}

.cap-crown::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(36deg, transparent 0 18px, rgba(255, 255, 255, 0.22) 19px 23px),
    linear-gradient(90deg, transparent, rgba(13, 43, 69, 0.12));
  mix-blend-mode: soft-light;
}

.panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(13, 43, 69, 0.16);
}

.panel-one {
  left: 33%;
}

.panel-two {
  left: 50%;
}

.panel-three {
  left: 67%;
}

.stamp {
  position: absolute;
  left: 50%;
  bottom: 24%;
  width: 27%;
  transform: translateX(-50%);
  z-index: 2;
}

.destination {
  position: absolute;
  left: 50%;
  bottom: 15%;
  z-index: 2;
  transform: translateX(-50%);
  color: var(--navy);
  font-size: clamp(0.72rem, 1.3vw, 0.92rem);
  font-weight: 900;
  text-transform: uppercase;
}

.cap-brim {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 9%;
  height: 27%;
  background: linear-gradient(90deg, var(--cap-a), var(--cap-b));
  border: 2px solid var(--cap-line);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  transform: perspective(440px) rotateX(62deg);
  transform-origin: top center;
}

.barcelona {
  --cap-a: #2477b8;
  --cap-b: #c76b4a;
  --cap-c: #f6c85a;
}

.santorini {
  --cap-a: #005b96;
  --cap-b: #8ecbef;
  --cap-c: #ffffff;
}

.menorca {
  --cap-a: #35c6c2;
  --cap-b: #a8e6da;
  --cap-c: #ffffff;
}

.baqueira {
  --cap-a: #6cb6ff;
  --cap-b: #ffffff;
  --cap-c: #f6c85a;
}

.banff {
  --cap-a: #007c89;
  --cap-b: #45b8c9;
  --cap-c: #9aa3a8;
}

.philosophy {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(28px, 6vw, 86px);
  padding-top: clamp(70px, 12vw, 150px);
  padding-bottom: clamp(70px, 12vw, 150px);
  border-top: 1px solid var(--line);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.pillar-grid article {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(22px, 3vw, 34px);
  background: var(--cream);
}

.pillar-grid span {
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  font-weight: 900;
}

.pillar-grid p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.35;
}

.collection {
  padding-top: clamp(66px, 10vw, 132px);
  padding-bottom: clamp(70px, 12vw, 160px);
  background: var(--navy);
  color: var(--white);
}

.collection .kicker,
.collection p {
  color: rgba(255, 255, 255, 0.72);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(34px, 6vw, 72px);
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.moment-card {
  grid-column: span 2;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(20px, 3vw, 30px);
  background: var(--cream);
  color: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.product-photo {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(13, 43, 69, 0.1);
}

.product-photo img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: center;
}

.barcelona .product-photo img,
.santorini .product-photo img,
.menorca .product-photo img {
  object-position: 50% 18%;
}

.product-photo-sheet img {
  min-height: 380px;
}

.baqueira-crop img {
  object-position: 34% 77%;
}

.banff-crop img {
  object-position: 34% 98%;
}

.moment-card:nth-child(4),
.moment-card:nth-child(5) {
  grid-column: span 3;
}

.small-cap {
  width: 100%;
  margin: auto;
  transform: translateY(8px);
}

.moment-meta p {
  color: var(--ink-soft);
  line-height: 1.5;
}

.moment-name {
  margin-bottom: 18px;
  color: var(--navy) !important;
  font-weight: 900;
}

.moment-meta a {
  display: inline-flex;
  margin-top: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  font-weight: 900;
}

.system {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(30px, 6vw, 92px);
  align-items: center;
  padding-top: clamp(72px, 12vw, 156px);
  padding-bottom: clamp(72px, 12vw, 156px);
}

.system-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.system-list span {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.3rem, 3vw, 2.2rem);
  font-weight: 900;
}

.system-image {
  grid-column: 1 / -1;
  margin: clamp(4px, 2vw, 22px) 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}

.system-image img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  object-position: center;
}

.story {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding-top: clamp(62px, 10vw, 132px);
  padding-bottom: clamp(70px, 12vw, 150px);
  background: var(--white);
}

.story-image {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--white);
}

.story-image img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: center;
}

.story-copy p {
  max-width: 560px;
}

.collector {
  padding-top: clamp(70px, 11vw, 145px);
  padding-bottom: clamp(70px, 11vw, 145px);
}

.collector-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.collector-row span,
.collector-row a {
  min-height: 150px;
  display: flex;
  align-items: end;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-weight: 900;
}

.collector-row a {
  transition: background 180ms ease, color 180ms ease;
}

.collector-row a:hover {
  background: var(--navy);
  color: var(--white);
}

.collection-hero,
.collection-intro,
.collection-showcase,
.memory-card-section,
.collection-specs,
.collection-pager {
  padding-inline: clamp(20px, 5vw, 72px);
}

.collection-hero {
  min-height: calc(92vh - 93px);
  display: flex;
  align-items: end;
  padding-top: clamp(44px, 8vh, 90px);
  padding-bottom: clamp(44px, 8vh, 90px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(13, 43, 69, 0.78), rgba(13, 43, 69, 0.24) 54%, rgba(13, 43, 69, 0.1)),
    var(--hero-image) center / cover no-repeat;
}

.collection-hero-copy {
  max-width: 760px;
}

.collection-hero .kicker,
.collection-hero-copy p {
  color: rgba(255, 255, 255, 0.84);
}

.collection-hero-copy h1 {
  font-size: clamp(4.2rem, 12vw, 12rem);
  line-height: 0.86;
}

.collection-hero-barcelona {
  --hero-image: url("MOMENTS_Codex_Context_Pack/guybarcelonacap.jpg");
  background-position: center;
}

.collection-hero-santorini {
  --hero-image: url("MOMENTS_Codex_Context_Pack/CoupleWithSantoriniCaps.jpg");
  background-position: center;
}

.collection-hero-menorca {
  --hero-image: url("MOMENTS_Codex_Context_Pack/groupmenorcacaps.jpg");
  background-position: center;
}

.collection-hero-baqueira {
  --hero-image: url("MOMENTS_Codex_Context_Pack/caps.jpg");
  background-position: center 77%;
}

.collection-hero-banff {
  --hero-image: url("MOMENTS_Codex_Context_Pack/caps.jpg");
  background-position: center bottom;
}

.collection-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: start;
  padding-top: clamp(72px, 12vw, 150px);
  padding-bottom: clamp(72px, 12vw, 150px);
  border-bottom: 1px solid var(--line);
}

.collection-intro > p,
.design-notes > p,
.memory-card-copy > p {
  color: var(--ink-soft);
  font-size: clamp(1.18rem, 2.2vw, 1.6rem);
  line-height: 1.45;
}

.collection-showcase {
  display: grid;
  grid-template-columns: minmax(320px, 1.18fr) minmax(0, 0.82fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: center;
  padding-top: clamp(70px, 12vw, 150px);
  padding-bottom: clamp(70px, 12vw, 150px);
  background: var(--white);
}

.detail-photo {
  margin: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
}

.detail-photo img {
  width: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center;
}

.wide-photo img {
  aspect-ratio: 1.38;
}

.sheet-window img {
  aspect-ratio: 1.25;
}

.baqueira-window img {
  object-position: 34% 76%;
}

.banff-window img {
  object-position: 34% 98%;
}

.portrait-sheet img {
  aspect-ratio: 0.9;
}

.baqueira-package img {
  object-position: 82% 75%;
}

.banff-package img {
  object-position: 82% 98%;
}

.design-notes {
  max-width: 560px;
}

.swatch-row {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}

.swatch-row span {
  width: 54px;
  aspect-ratio: 1;
  background: var(--swatch);
  border: 1px solid rgba(13, 43, 69, 0.16);
}

.memory-card-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: center;
  padding-top: clamp(70px, 12vw, 150px);
  padding-bottom: clamp(70px, 12vw, 150px);
}

.collection-specs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--navy);
  color: var(--white);
}

.collection-specs span {
  min-height: 148px;
  display: flex;
  align-items: end;
  padding: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 900;
}

.collection-pager {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.collection-pager a {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-right: 1px solid var(--line);
  font-weight: 900;
  text-align: center;
  transition: background 180ms ease, color 180ms ease;
}

.collection-pager a:last-child {
  border-right: 0;
}

.collection-pager a:hover {
  background: var(--navy);
  color: var(--white);
}

.join {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 6vw, 92px);
  align-items: center;
  padding-top: clamp(60px, 10vw, 125px);
  padding-bottom: clamp(60px, 10vw, 125px);
  background: var(--sand);
}

.join-form {
  display: grid;
  gap: 12px;
}

.join-form label {
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.form-row {
  display: flex;
  gap: 12px;
}

input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid rgba(13, 43, 69, 0.24);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.72);
  color: var(--navy);
  font: inherit;
}

input:focus {
  outline: 3px solid rgba(13, 43, 69, 0.16);
}

.form-note {
  color: rgba(13, 43, 69, 0.64);
  font-size: 0.95rem;
}

.footer {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 48px 20px;
  color: rgba(13, 43, 69, 0.68);
  text-align: center;
}

.footer img {
  width: min(360px, 72vw);
  height: auto;
  margin-bottom: 10px;
}

.footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .hero,
  .philosophy,
  .system,
  .story,
  .join,
  .collection-intro,
  .collection-showcase,
  .memory-card-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: calc(84vh - 77px);
  }

  .pillar-grid,
  .collector-row {
    grid-template-columns: 1fr;
  }

  .pillar-grid article {
    min-height: 180px;
  }

  .collection-grid {
    grid-template-columns: 1fr 1fr;
  }

  .moment-card,
  .moment-card:nth-child(4),
  .moment-card:nth-child(5) {
    grid-column: span 1;
  }

  .section-heading {
    display: block;
  }

  .collection-hero {
    min-height: calc(88vh - 93px);
  }

  .collection-specs {
    grid-template-columns: 1fr;
  }

  .collection-specs span {
    min-height: 72px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }
}

@media (max-width: 640px) {
  .site-header {
    position: relative;
    align-items: center;
    flex-direction: column;
    gap: 12px;
    padding-top: 14px;
  }

  .brand-mark img {
    width: 153px;
    height: 57px;
  }

  .nav-links {
    display: none;
  }

  h1 {
    font-size: clamp(2.85rem, 12vw, 3.15rem);
  }

  h2 {
    font-size: clamp(2.55rem, 13vw, 4.35rem);
  }

  .hero {
    padding-top: 24px;
    padding-bottom: 24px;
    min-height: calc(82vh - 73px);
    background-position: 58% center;
  }

  .collection-hero {
    min-height: calc(82vh - 73px);
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .collection-hero-copy h1 {
    font-size: clamp(4rem, 19vw, 5.8rem);
  }

  .collection-hero-barcelona {
    background-position: 42% center;
  }

  .collection-hero-santorini,
  .collection-hero-menorca {
    background-position: center;
  }

  .collection-intro,
  .collection-showcase,
  .memory-card-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .detail-photo img {
    min-height: 360px;
  }

  .wide-photo img,
  .sheet-window img,
  .portrait-sheet img {
    aspect-ratio: 1 / 1;
  }

  .swatch-row span {
    width: 44px;
  }

  .collection-pager {
    grid-template-columns: 1fr;
  }

  .collection-pager a {
    min-height: 72px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .product-photo,
  .product-photo img {
    min-height: 250px;
  }

  .product-photo-sheet img {
    min-height: 300px;
  }

  .collection-grid {
    grid-template-columns: 1fr;
  }

  .moment-card {
    min-height: 520px;
  }

  .story-image {
    min-height: 380px;
  }

  .story-image img {
    min-height: 380px;
  }

  .system-image img {
    aspect-ratio: 1 / 1;
  }

  .form-row {
    flex-direction: column;
  }

  .button,
  input {
    width: 100%;
  }
}
