/* ------------------------------------------------------------
   Hero style options B–E (A lives in styles.css)
   ------------------------------------------------------------ */

@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-var.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-italic-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- shared section + nav shell ---------- */

.v {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
}

.vnav {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px var(--gutter);
}
.vnav a { color: inherit; text-decoration: none; }
.vnav-links {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.vnav-toggle {
  display: none;
  padding: 8px 16px;
  font: inherit;
  font-weight: 600;
  color: inherit;
  background: none;
  border: 1px solid currentColor;
  border-radius: 999px;
  cursor: pointer;
}

/* ---------- style picker rail ---------- */

.style-rail {
  position: fixed;
  top: 50%;
  right: 16px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  background: rgba(20, 22, 28, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  transform: translateY(-50%);
}
.style-rail a {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  font: 700 0.8rem/1 "Inter Tight", var(--font);
  color: #f3f2ef;
  text-decoration: none;
  border-radius: 50%;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.style-rail a:hover { background: rgba(255, 255, 255, 0.14); }
.style-rail a.is-active { background: #f3f2ef; color: #14171c; }
.style-rail a::before {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 14px);
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  color: #f3f2ef;
  background: rgba(20, 22, 28, 0.88);
  border-radius: 8px;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.style-rail a:hover::before,
.style-rail a:focus-visible::before { opacity: 1; transform: none; }
.style-rail-current { display: none; }

/* ============================================================
   C. Classic
   ============================================================ */

.v-classic {
  --c-bg: #f3eee4;
  --c-ink: #1b2a44;
  --c-muted: #56627a;
  --c-gold: #a7843d;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}
.c-frame {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(167, 132, 61, 0.55);
  pointer-events: none;
}
.c-frame::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(167, 132, 61, 0.35);
}

.c-nav { padding: 40px clamp(32px, 5vw, 72px) 0; }
.c-brand {
  position: absolute;
  left: 50%;
  top: 40px;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
}
.c-nav .vnav-links { flex: 1; gap: 40px; }
.c-nav .vnav-links li:nth-child(3) { margin-left: auto; }
.c-nav .vnav-links a {
  font-family: "Inter Tight", var(--font);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.c-nav .vnav-links a:hover { color: var(--c-gold); }

.c-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px var(--gutter) 0;
  text-align: center;
}
.c-kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 26px;
  font-family: "Inter Tight", var(--font);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-gold);
}
.c-kicker span { width: 48px; height: 1px; background: currentColor; }
.c-title {
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 7.4rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.c-title em { font-style: italic; color: var(--c-gold); }
.c-sub {
  max-width: 34rem;
  margin: 24px auto 0;
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--c-muted);
}
.c-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }
.c-btn {
  padding: 17px 30px;
  font-family: "Inter Tight", var(--font);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-ink);
  text-decoration: none;
  border: 1px solid var(--c-ink);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.c-btn:hover { color: var(--c-bg); background: var(--c-ink); }
.c-btn-solid { color: var(--c-bg); background: var(--c-ink); }
.c-btn-solid:hover { background: var(--c-gold); border-color: var(--c-gold); }

.c-vignette {
  flex: none;
  width: min(880px, 90%);
  margin: 0 auto;
  padding: 16px 0 34px;
}
.c-vignette svg { width: 100%; height: auto; max-height: 22vh; }

/* ============================================================
   D. Swiss grid
   ============================================================ */

.v-swiss {
  --s-bg: #f4f4f0;
  --s-ink: #111111;
  --s-blue: #2337ff;
  background: var(--s-bg);
  color: var(--s-ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
}
.s-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.s-grid span { border-left: 1px solid rgba(17, 17, 17, 0.08); }
.s-grid span:last-child { border-right: 1px solid rgba(17, 17, 17, 0.08); }

.s-nav { padding-top: 24px; padding-bottom: 0; }
.s-nav::after {
  content: "";
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: -18px;
  height: 2px;
  background: var(--s-ink);
}
.s-brand { font-size: 1.05rem; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; }
.v-swiss .vnav-links { gap: 28px; }
.v-swiss .vnav-links a { font-weight: 600; transition: color 0.15s ease; }
.v-swiss .vnav-links a span {
  margin-right: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  vertical-align: super;
  color: var(--s-blue);
}
.v-swiss .vnav-links a:hover { color: var(--s-blue); }

.s-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  max-width: 1280px;
  margin: 18px auto 0;
  padding: 0 var(--gutter);
}
.s-meta span {
  padding: 14px 14px 0 0;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.s-main {
  flex: 1;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  min-height: 0;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.s-title {
  margin: 0;
  font-size: clamp(3.4rem, 11vw, 11.5rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
.s-title span { display: block; }
.s-title b { font-weight: inherit; color: var(--s-blue); }

.s-bottom {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.s-sub {
  margin: 0;
  padding: 18px 40px 32px 0;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 500;
  line-height: 1.35;
  border-top: 2px solid var(--s-ink);
}
.s-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(150px, 20vh, 210px);
  padding: 16px 18px 22px;
  color: var(--s-ink);
  text-decoration: none;
  border-top: 2px solid var(--s-ink);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.s-num { font-size: 0.78rem; font-weight: 700; }
.s-arrow { position: absolute; top: 10px; right: 16px; font-size: 2rem; line-height: 1; transition: transform 0.2s ease; }
.s-cell-label { font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 800; letter-spacing: -0.03em; }
.s-cell:hover { color: var(--s-bg); background: var(--s-ink); }
.s-cell:hover .s-arrow { transform: translate(3px, -3px); }
.s-cell-blue { color: #fff; background: var(--s-blue); border-top-color: var(--s-blue); }

/* ============================================================
   E. Warm
   ============================================================ */

.v-warm {
  --w-bg: #f1e8da;
  --w-ink: #33261d;
  --w-muted: #6e5d4f;
  --w-terra: #b95a35;
  --w-olive: #5d6a40;
  background: var(--w-bg);
  color: var(--w-ink);
  font-family: "Inter Tight", var(--font);
}
/* paper grain */
.v-warm::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.15 0 0 0 0 0.1 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

.w-brand {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 500;
  font-variation-settings: "SOFT" 100, "opsz" 72;
  letter-spacing: -0.01em;
}
.v-warm .vnav-links {
  gap: 2px;
  padding: 5px;
  background: rgba(255, 252, 245, 0.55);
  border: 1px solid rgba(51, 38, 29, 0.1);
  border-radius: 999px;
}
.v-warm .vnav-links a {
  display: block;
  padding: 9px 18px;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 999px;
  transition: background-color 0.2s ease;
}
.v-warm .vnav-links a:hover { background: rgba(255, 252, 245, 0.9); }
.v-warm .vnav-links .w-nav-cta { color: #fff8ef; background: var(--w-terra); }
.v-warm .vnav-links .w-nav-cta:hover { background: var(--w-olive); }

.w-main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
  width: 100%;
  max-width: 1280px;
  min-height: 0;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(20px, 4vh, 48px);
}
.w-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--w-olive);
}
.w-kicker svg { width: 22px; height: 22px; }
.w-title {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(3rem, 7vw, 6.6rem);
  font-weight: 400;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.w-title > span { display: block; }
.w-title em { font-style: italic; font-weight: 400; color: var(--w-terra); }
.w-sub {
  max-width: 30rem;
  margin: 26px 0 0;
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--w-muted);
}
.w-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 36px; }
.w-btn {
  padding: 17px 30px;
  font-weight: 600;
  color: #fff8ef;
  text-decoration: none;
  background: var(--w-terra);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(185, 90, 53, 0.25);
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.w-btn:hover { background: var(--w-olive); transform: translateY(-2px); }
.w-link {
  font-weight: 600;
  color: var(--w-ink);
  text-decoration: underline;
  text-decoration-color: rgba(185, 90, 53, 0.5);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: text-decoration-color 0.2s ease;
}
.w-link:hover { text-decoration-color: var(--w-terra); }

.w-art { position: relative; justify-self: center; width: 100%; max-width: 440px; }
.w-arch,
.w-arch-ring {
  aspect-ratio: 4 / 5;
  max-height: 68vh;
  margin: 0 auto;
  border-radius: 1000px 1000px 28px 28px;
}
.w-arch { position: relative; overflow: hidden; box-shadow: 0 30px 60px rgba(51, 38, 29, 0.18); }
.w-arch svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.w-arch-ring {
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(185, 90, 53, 0.45);
  transform: translate(18px, -18px);
}
.w-card {
  position: absolute;
  left: -48px;
  bottom: 9%;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 270px;
  padding: 14px 18px 14px 14px;
  font-size: 0.92rem;
  line-height: 1.4;
  background: #fffaf2;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(51, 38, 29, 0.16);
}
.w-card p { margin: 0; color: var(--w-muted); }
.w-card strong { color: var(--w-ink); }
.w-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  color: #fff8ef;
  background: var(--w-olive);
  border-radius: 50%;
}
.w-avatar svg { width: 24px; height: 24px; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-height: 760px) and (min-width: 961px) {
  .c-vignette svg { max-height: 18vh; }
  .c-sub { margin-top: 16px; }
  .c-actions { margin-top: 24px; }
  .s-cell { min-height: 130px; }
}

@media (max-width: 960px) {
  .v { height: auto; min-height: 100vh; min-height: 100svh; }

  .vnav-toggle { display: inline-flex; }
  .v .vnav-links {
    position: absolute;
    top: 100%;
    left: var(--gutter);
    right: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 0 !important;
    padding: 8px !important;
    background: var(--v-menu-bg, #fff);
    color: var(--v-menu-fg, #111);
    border: 1px solid var(--v-menu-line, rgba(0, 0, 0, 0.12));
    border-radius: var(--v-menu-radius, 16px) !important;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }
  .v .vnav-links.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s ease, transform 0.2s ease; }
  .vnav-links li { margin: 0 !important; }
  .vnav-links a { display: block; padding: 14px 16px !important; font-size: 1.05rem !important; }

  .v-classic { --v-menu-bg: #f8f4ec; --v-menu-fg: #1b2a44; --v-menu-line: rgba(167, 132, 61, 0.4); --v-menu-radius: 0; }
  .v-swiss { --v-menu-bg: #f4f4f0; --v-menu-fg: #111; --v-menu-line: #111; --v-menu-radius: 0; }
  .v-warm { --v-menu-bg: #fffaf2; --v-menu-fg: #33261d; --v-menu-line: rgba(51, 38, 29, 0.12); --v-menu-radius: 20px; }
  .v-warm .vnav-links .w-nav-cta { margin-top: 6px; text-align: center; }


  /* C */
  .c-nav { padding-top: 30px; }
  .c-brand { position: static; transform: none; font-size: 1.15rem; letter-spacing: 0.24em; }
  .c-main { padding-top: 32px; }
  .c-vignette { width: 100%; height: 150px; padding: 12px 0 28px; }
  .c-vignette svg { height: 100%; max-height: none; }

  /* D */
  .s-meta { grid-template-columns: repeat(2, 1fr); }
  .s-meta span:nth-child(n + 3) { display: none; }
  .s-grid { grid-template-columns: repeat(2, 1fr); }
  .s-grid span:nth-child(n + 3) { display: none; }
  .s-grid span:nth-child(2) { border-right: 1px solid rgba(17, 17, 17, 0.08); }
  .s-main { padding-top: 32px; padding-bottom: 32px; }
  .s-bottom { grid-template-columns: 1fr 1fr; }
  .s-sub { grid-column: 1 / -1; padding-right: 0; }

  /* E */
  .w-main { display: flex; flex-direction: column; align-items: stretch; gap: 44px; padding-top: 16px; }
  .w-art { flex: 1; display: flex; flex-direction: column; max-width: 420px; min-height: 260px; margin: 0 auto; }
  .w-arch, .w-arch-ring { flex: 1; aspect-ratio: auto; max-height: none; width: 100%; }
  .w-arch-ring { transform: translate(12px, -12px); }
  .w-card { left: -8px; bottom: 16px; }

  /* picker becomes a bottom pill */
  .style-rail {
    top: auto;
    right: auto;
    bottom: 12px;
    left: 50%;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 5px;
    transform: translateX(-50%);
  }
  .style-rail a { width: 30px; height: 30px; }
  .style-rail a::before { display: none; }
  .style-rail-current {
    display: block;
    padding: 0 10px 0 6px;
    font: 600 0.78rem/1 "Inter Tight", var(--font);
    color: #f3f2ef;
    white-space: nowrap;
  }
}

@media (max-width: 560px) {

  .c-frame { inset: 8px; }
  .c-nav { padding: 24px 24px 0; }
  .c-kicker { gap: 10px; letter-spacing: 0.24em; }
  .c-kicker span { width: 20px; }
  .c-title { font-size: clamp(2.8rem, 13vw, 3.6rem); }
  .c-sub { font-size: 1.15rem; }
  .c-btn { padding: 15px 20px; letter-spacing: 0.16em; }

  .s-title { font-size: clamp(2.8rem, 13vw, 3.6rem); }
  .s-cell { min-height: 120px; }
  .s-bottom { padding-bottom: 64px; }

  .w-title { font-size: clamp(2.8rem, 13vw, 3.6rem); }
  .w-kicker { margin-bottom: 14px; font-size: 0.85rem; }
  .w-main { gap: 28px; padding-top: 4px; padding-bottom: 20px; }
  .w-art { min-height: 190px; }
  .w-actions { gap: 12px 20px; }
  .w-sub { margin-top: 16px; font-size: 1rem; }
  .w-actions { margin-top: 26px; }
  .w-btn { flex: 1 1 100%; text-align: center; }
  .w-card { max-width: 230px; font-size: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
}
