@font-face {
  font-family: 'Danh Da';
  src: url('/catalog/fonts/DanhDa-Bold.woff') format('woff');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'New Icon';
  src:
    url('/catalog/fonts/NewIconSerif-Regular.woff2') format('woff2'),
    url('/catalog/fonts/NewIconSerif-Regular.woff') format('woff');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Pinyon Script';
  src: url('/catalog/fonts/PinyonScript-Regular.woff') format('woff');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src:
    url('/catalog/fonts/Lora-Regular.woff2') format('woff2'),
    url('/catalog/fonts/Lora-Regular.woff') format('woff');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src:
    url('/catalog/fonts/Lora-Bold.woff2') format('woff2'),
    url('/catalog/fonts/Lora-Bold.woff') format('woff');
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --burgundy: #4d1419;
  --burgundy-deep: #3a0d11;
  --burgundy-soft: #632026;
  --cream: #f5efe9;
  --cream-matte: #ebe2d9;
  --cream-bright: #fbf8f5;
  --stone: #c6b6aa;
  --ink-on-cream: #441318;
  --muted-on-cream: #6b4749;
  --line-on-cream: #d6c8bc;
  --ink-on-burgundy: #f7f1ec;
  --muted-on-burgundy: #dfcac5;
  --lace-stroke: #b98e91;
  --line-on-burgundy: rgba(247, 241, 236, 0.2);
  --backdrop-scrim: rgba(26, 4, 7, 0.78);
  --hero-text-shadow: 0 2px 18px rgba(32, 5, 8, 0.65);
  --card-shadow: 0 14px 32px -18px rgba(52, 8, 12, 0.35);
  --device-bezel-a: #7a4248;
  --device-bezel-b: #441318;
  --device-screen-ring: #1e1012;
  --device-bar: #faf7f4;
  --font-nav: 'Danh Da', 'Lora', Georgia, 'Times New Roman', serif;
  --font-display: 'New Icon', 'Lora', Georgia, 'Times New Roman', serif;
  --font-accent-script: 'Pinyon Script', Georgia, cursive;
  --font-body: 'Lora', Georgia, 'Times New Roman', serif;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur-med: 260ms;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-6);
}

body {
  margin: 0;
  background-color: var(--burgundy);
  color: var(--ink-on-cream);
  font: 15px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

svg,
img {
  display: block;
}

h1,
h2,
h3,
p,
figure,
blockquote {
  margin: 0;
}

h1,
h2,
h3,
blockquote {
  text-wrap: balance;
}

em {
  font-style: normal;
  font-weight: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 30;
  left: var(--space-5);
  top: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background-color: var(--cream-bright);
  color: var(--burgundy);
  border-radius: var(--radius-sm);
  transform: translateY(-180%);
  transition: transform var(--dur-fast) var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Full-bleed editorial layout */
.editorial-sheet {
  width: 100%;
  min-height: 100dvh;
  background-color: var(--cream);
}

/* Block 1: Burgundy Header + Scalloped Cartouche Hero */
.editorial-hero {
  background-color: var(--burgundy);
  color: var(--ink-on-burgundy);
  padding: var(--space-4) clamp(20px, 4.5vw, 64px) clamp(40px, 4.5vw, 64px);
}

.editorial-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-4);
  min-height: 48px;
}

.topbar-nav,
.topbar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.topbar-nav {
  gap: clamp(18px, 4vw, 44px);
}

.topbar-actions {
  justify-content: flex-end;
  gap: var(--space-5);
}

.topbar-nav a,
.topbar-actions a,
.topbar-trigger {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-1);
  border: 0;
  background: transparent;
  color: var(--ink-on-burgundy);
  font-style: normal;
  text-transform: uppercase;
  opacity: 0.92;
  transition: color var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}

.topbar-nav a {
  font-family: var(--font-nav);
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;
}

.topbar-actions a,
.topbar-trigger {
  font-family: var(--font-body);
  font-size: clamp(12px, 0.95vw, 13.5px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.08em;
}

.topbar-nav a:hover,
.topbar-actions a:hover,
.topbar-trigger:hover {
  color: #ffffff;
  opacity: 1;
}

.topbar-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 44px;
}

.monogram-oval {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 25px;
  border: 1px solid var(--muted-on-burgundy);
  border-radius: 50%;
  font-family: var(--font-display);
  font-style: normal;
  font-size: 14px;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--ink-on-burgundy);
  padding-top: 1px;
}

.hero-stage {
  position: relative;
  width: min(1240px, 100%);
  margin: var(--space-4) auto 0;
  display: grid;
  place-items: center;
}

.hero-cartouche {
  width: 100%;
  height: auto;
}

.hero-title {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-inline: var(--space-6);
  text-align: center;
  color: var(--ink-on-burgundy);
  text-shadow: var(--hero-text-shadow);
  pointer-events: none;
}

.hero-title-main {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(30px, 5.4vw, 78px);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.hero-title-sub {
  display: block;
  margin-top: 4px;
  font-family: var(--font-accent-script);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(28px, 4.4vw, 66px);
  line-height: 1.04;
  letter-spacing: 0.01em;
}

/* Block 2 & 3 Shared Cream Body */
.editorial-body {
  background-color: var(--cream);
  color: var(--ink-on-cream);
}

.editorial-story {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(48px, 5.5vw, 88px) clamp(20px, 5vw, 80px) clamp(40px, 4.5vw, 64px);
}

.story-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-10);
}

.story-quote {
  margin-top: var(--space-2);
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(32px, 3.8vw, 58px);
  line-height: 1.04;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink-on-cream);
}

.story-copy {
  display: grid;
  gap: var(--space-5);
  max-width: 44ch;
  margin-top: var(--space-8);
  font-family: var(--font-body);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(15px, 1.15vw, 17.5px);
  line-height: 1.7;
  color: var(--ink-on-cream);
}

.story-signature {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.signature-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-on-cream);
  flex-shrink: 0;
}

.signature-name {
  font-family: var(--font-nav);
  font-weight: 700;
  font-style: normal;
  font-size: clamp(20px, 1.6vw, 24px);
  letter-spacing: 0.03em;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--ink-on-cream);
}

.signature-role {
  margin-top: 4px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--muted-on-cream);
}

.story-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.gallery-tile {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--cream-matte);
}

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

/* 3-per-row Live Phone-Screen Invitation Gallery */
.editorial-collection {
  padding: clamp(32px, 3.5vw, 48px) clamp(20px, 5vw, 80px) clamp(72px, 6.5vw, 108px);
}

.collection-header {
  max-width: 1240px;
  margin: 0 auto var(--space-10);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.collection-heading {
  font-family: var(--font-nav);
  font-weight: 700;
  font-style: normal;
  font-size: clamp(24px, 2.8vw, 30px);
  letter-spacing: 0.03em;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--ink-on-cream);
}

.collection-subtitle {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 13.5px;
  color: var(--muted-on-cream);
}

.collection-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(24px, 3.5vw, 48px);
  row-gap: clamp(44px, 5vw, 68px);
  align-items: stretch;
}

.invitation-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}

.phone-device {
  position: relative;
  width: min(100%, 308px);
  aspect-ratio: 390 / 760;
  padding: 8px;
  border-radius: 36px;
  background-color: var(--device-screen-ring);
  box-shadow: 0 16px 32px -18px rgba(52, 8, 12, 0.42);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.phone-device:has(.phone-screen[role="button"]:hover) {
  transform: translateY(-3px);
  box-shadow: 0 22px 40px -18px rgba(52, 8, 12, 0.5);
}

.phone-device::after {
  content: '';
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 2.5px;
  width: 30%;
  height: 3px;
  border-radius: 99px;
  background: rgba(247, 241, 236, 0.4);
  transform: translateX(-50%);
  pointer-events: none;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background-color: var(--cream-bright);
  overscroll-behavior: contain;
  contain: layout style paint;
}

.phone-screen[role="button"] {
  cursor: pointer;
}

.phone-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: opacity 260ms var(--ease-out);
  -webkit-user-drag: none;
}

.phone-screen.is-ready .phone-poster {
  opacity: 0;
  pointer-events: none;
}

.inline-invitation-frame {
  display: block;
  position: absolute;
  inset: 0 auto auto 0;
  width: 390px;
  height: var(--inline-height, 760px);
  border: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(var(--inline-scale, 1));
  transform-origin: top left;
  background: var(--cream-bright);
  transition: opacity 240ms var(--ease-out);
}

.phone-screen.is-ready .inline-invitation-frame {
  opacity: 1;
  visibility: visible;
}

@keyframes catalog-spin {
  to { transform: rotate(360deg); }
}

@keyframes catalog-progress {
  0% { transform: translate3d(-100%, 0, 0) scaleX(0.45); }
  50% { transform: translate3d(20%, 0, 0) scaleX(0.7); }
  100% { transform: translate3d(130%, 0, 0) scaleX(0.45); }
}

.inline-preview-status {
  position: absolute;
  z-index: 2;
  bottom: var(--space-4);
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--line-on-cream);
  border-radius: 999px;
  background: rgba(251, 248, 245, 0.94);
  color: var(--burgundy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transform: translateX(-50%);
  box-shadow: 0 10px 24px -14px rgba(52, 8, 12, 0.45);
  pointer-events: none;
}

.catalog-mini-spinner {
  width: 12px;
  height: 12px;
  border: 1.6px solid var(--burgundy);
  border-right-color: transparent;
  border-radius: 50%;
  animation: catalog-spin 720ms linear infinite;
}

.phone-tap-cue {
  position: absolute;
  z-index: 2;
  bottom: var(--space-4);
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 15px;
  border: 1px solid var(--line-on-cream);
  border-radius: 999px;
  background-color: #fbf8f5;
  color: var(--burgundy);
  font-family: var(--font-body);
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transform: translateX(-50%);
  box-shadow: 0 10px 24px -14px rgba(52, 8, 12, 0.45);
  pointer-events: none;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}

.phone-screen[role="button"]:hover .phone-tap-cue {
  background-color: var(--burgundy);
  color: var(--ink-on-burgundy);
  border-color: var(--burgundy);
}

.phone-screen.is-loading .phone-tap-cue,
.phone-screen.is-ready .phone-tap-cue {
  opacity: 0;
  visibility: hidden;
}

.card-meta {
  flex: 1;
  margin-top: var(--space-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 316px;
}

.card-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-style: normal;
  font-size: 19px;
  line-height: 1.28;
  color: var(--ink-on-cream);
}

.card-description {
  margin-top: var(--space-2);
  font-family: var(--font-body);
  font-style: normal;
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--muted-on-cream);
  text-wrap: pretty;
}

.card-actions {
  display: flex;
  margin-top: auto;
  padding-top: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--burgundy);
  border-radius: 999px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}

.card-btn-primary {
  background-color: var(--burgundy);
  color: var(--ink-on-burgundy);
}

.card-btn-primary:hover {
  background-color: var(--burgundy-deep);
  border-color: var(--burgundy-deep);
}

.card-btn-secondary {
  background-color: transparent;
  color: var(--burgundy);
  border-color: var(--line-on-cream);
}

.card-btn-secondary:hover {
  background-color: var(--cream-matte);
  border-color: var(--burgundy);
}

/* Block 4: Burgundy Ornate Lace Footer */
.editorial-footer {
  background-color: var(--burgundy);
  color: var(--ink-on-burgundy);
  padding: clamp(20px, 2.5vw, 36px) clamp(20px, 4vw, 56px) clamp(28px, 3vw, 44px);
}

.lace-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(360px, 32vw, 460px);
  padding: var(--space-16) var(--space-12);
}

.lace-frame-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--lace-stroke);
  pointer-events: none;
}

.footer-content {
  position: relative;
  z-index: 1;
  max-width: 540px;
  text-align: center;
}

.footer-quote {
  font-family: var(--font-body);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(20px, 2.4vw, 27px);
  line-height: 1.42;
  letter-spacing: 0;
  color: var(--ink-on-burgundy);
}

.footer-attribution {
  margin-top: var(--space-5);
  font-family: var(--font-body);
  font-style: normal;
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--muted-on-burgundy);
}

.footer-top-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  min-width: 44px;
  margin-top: var(--space-3);
  padding-inline: var(--space-3);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-on-burgundy);
}

.footer-top-link:hover {
  color: var(--ink-on-burgundy);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Modal Live Invitation Viewer (<dialog>) */
.viewer-modal {
  width: min(1180px, calc(100% - 32px));
  max-width: none;
  height: min(900px, calc(100dvh - 32px));
  max-height: none;
  margin: auto;
  padding: 0;
  border: 1px solid var(--lace-stroke);
  border-radius: var(--radius-md);
  background-color: var(--cream);
  color: var(--ink-on-cream);
  overflow: hidden;
}

.viewer-modal::backdrop {
  background-color: var(--backdrop-scrim);
}

.viewer-modal[open] {
  display: flex;
  flex-direction: column;
}

.viewer-dialog {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.viewer-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-4);
  background-color: var(--burgundy);
  color: var(--ink-on-burgundy);
  border-bottom: 1px solid var(--line-on-burgundy);
}

.viewer-title-wrap {
  min-width: 0;
}

.viewer-kicker {
  font-family: var(--font-nav);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted-on-burgundy);
}

.viewer-current {
  font-family: var(--font-body);
  font-weight: 700;
  font-style: normal;
  font-size: 18px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-mode-switch {
  display: flex;
  gap: var(--space-1);
  padding: 3px;
  border: 1px solid var(--line-on-burgundy);
  border-radius: var(--radius-sm);
  background-color: var(--burgundy-deep);
}

.preview-mode-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 12px;
  border: 0;
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--muted-on-burgundy);
  font-size: 11.5px;
}

.preview-mode-switch svg {
  width: 16px;
  height: 16px;
}

.preview-mode-switch button[aria-pressed='true'] {
  background-color: var(--cream-bright);
  color: var(--burgundy);
  font-weight: 500;
}

.viewer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
}

.browser-home,
.modal-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-on-burgundy);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-on-burgundy);
  flex-shrink: 0;
}

.browser-home svg,
.modal-close svg {
  width: 18px;
  height: 18px;
}

.browser-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 var(--space-3);
  border: 1px solid var(--line-on-burgundy);
  border-radius: var(--radius-sm);
  color: var(--ink-on-burgundy);
  font-size: 11.5px;
  flex-shrink: 0;
}

.browser-open svg {
  width: 14px;
  height: 14px;
}

.browser-home:hover,
.browser-open:hover,
.modal-close:hover {
  background-color: var(--burgundy-soft);
}

.viewer-tabs {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  overflow-x: auto;
  background-color: var(--cream-matte);
  border-bottom: 1px solid var(--line-on-cream);
  scrollbar-width: thin;
}

.browser-tab {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  flex: 0 0 auto;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid var(--line-on-cream);
  border-radius: var(--radius-sm);
  background-color: var(--cream);
  color: var(--muted-on-cream);
  font-size: 11.5px;
}

.browser-tab img {
  width: 22px;
  height: 28px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  flex-shrink: 0;
}

.tab-name {
  white-space: nowrap;
}

.browser-tab:hover {
  border-color: var(--burgundy);
  color: var(--ink-on-cream);
}
.browser-tab.is-active {
  border-color: var(--burgundy);
  background-color: var(--burgundy);
  color: var(--ink-on-burgundy);
}

.browser-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  isolation: isolate;
  background-color: var(--cream-bright);
}

.viewer-dialog[data-preview-mode='iphone'] .browser-stage {
  background-color: var(--cream);
}

.browser-panel {
  position: absolute;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
}

.browser-panel.is-active {
  z-index: 1;
  visibility: visible;
  pointer-events: auto;
}

.invitation-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background-color: var(--cream-bright);
}

.browser-loading {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--space-6);
  background-color: var(--cream);
  color: var(--ink-on-cream);
}

.viewer-loader-card {
  width: min(100%, 260px);
  padding: 34px 24px 30px;
  border: 1px solid var(--line-on-cream);
  border-radius: 130px 130px 4px 4px;
  background: var(--cream-bright);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.viewer-loader-seal {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--burgundy);
  color: var(--cream);
  font: 11px/1 var(--font-display);
  letter-spacing: 0.14em;
}

.viewer-loader-title {
  font: 400 19px/1.2 var(--font-nav);
  color: var(--ink-on-cream);
}

.viewer-loader-sub {
  font-size: 12px;
  color: var(--muted-on-cream);
}

.viewer-loader-track {
  position: relative;
  width: 120px;
  height: 2px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line-on-cream);
}

.viewer-loader-bar {
  display: block;
  width: 60%;
  height: 100%;
  background: var(--burgundy);
  animation: catalog-progress 1.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.browser-view,
.phone-view {
  position: absolute;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
}

.browser-panel.is-active > .browser-view.is-active,
.browser-panel.is-active > .phone-view.is-active {
  visibility: visible;
  pointer-events: auto;
}

.phone-view {
  overflow: hidden;
}

.iphone-device {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 414px;
  height: 868px;
  padding: 12px;
  border-radius: 56px;
  background: linear-gradient(145deg, var(--device-bezel-a), var(--device-bezel-b) 55%, var(--device-bezel-a));
  box-shadow: var(--card-shadow);
  transform: translate(-50%, -50%) scale(var(--phone-scale, 0.72));
  transform-origin: center;
}

.iphone-screen {
  position: relative;
  width: 390px;
  height: 844px;
  overflow: hidden;
  border-radius: 43px;
  background-color: var(--cream-bright);
  box-shadow: 0 0 0 2px var(--device-screen-ring);
}

.iphone-statusbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 390px;
  height: 52px;
  padding: 0 25px;
  background-color: var(--device-bar);
  color: var(--device-screen-ring);
  pointer-events: none;
}

.iphone-time {
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.iphone-island {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 112px;
  height: 28px;
  border-radius: 20px;
  background-color: var(--device-screen-ring);
  transform: translateX(-50%);
}

.iphone-indicators {
  display: flex;
  align-items: center;
  gap: 5px;
}

.iphone-indicators svg:first-child {
  width: 38px;
  height: 14px;
}

.iphone-indicators svg:last-child {
  width: 26px;
  height: 14px;
}

.iphone-webview {
  position: relative;
  width: 390px;
  height: 772px;
}

.iphone-home-area {
  position: relative;
  width: 390px;
  height: 20px;
  background-color: var(--device-bar);
  pointer-events: none;
}

.iphone-home-area > span {
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 128px;
  height: 5px;
  border-radius: 3px;
  background-color: var(--device-screen-ring);
  transform: translateX(-50%);
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .editorial-story {
    grid-template-columns: 1fr;
    gap: var(--space-10);
    padding: var(--space-12) var(--space-8) var(--space-8);
  }

  .story-copy {
    max-width: 56ch;
  }

  .editorial-collection {
    padding: var(--space-8) var(--space-8) var(--space-16);
  }

  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-6);
    row-gap: var(--space-12);
  }

  .viewer-header {
    grid-template-columns: 1fr auto;
  }

  .viewer-title-wrap {
    display: none;
  }
}

@media (max-width: 640px) {
  .editorial-hero {
    padding: var(--space-2) var(--space-4) var(--space-8);
  }

  .editorial-topbar {
    grid-template-columns: 1fr auto;
    row-gap: var(--space-1);
  }

  .topbar-monogram {
    order: -1;
    justify-content: flex-start;
  }

  .topbar-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
    border-top: 1px solid var(--line-on-burgundy);
  }

  .topbar-nav {
    justify-content: flex-end;
    gap: var(--space-4);
  }

  .topbar-nav a {
    font-size: 14px;
  }

  .topbar-actions a,
  .topbar-trigger {
    font-size: 11px;
  }

  .hero-title {
    padding-inline: var(--space-3);
  }

  .hero-title-main {
    font-size: clamp(24px, 7.6vw, 40px);
  }

  .hero-title-sub {
    font-size: clamp(24px, 6.8vw, 36px);
  }

  .editorial-story {
    padding: var(--space-10) var(--space-5) var(--space-6);
    gap: var(--space-8);
  }

  .editorial-collection {
    padding: var(--space-6) var(--space-5) var(--space-12);
  }

  .collection-grid {
    grid-template-columns: 1fr;
    row-gap: var(--space-12);
  }

  .phone-device {
    width: min(100%, 312px);
  }


  .editorial-footer {
    padding: var(--space-4) var(--space-3) var(--space-6);
  }

  .lace-stage {
    min-height: 320px;
    padding: var(--space-12) var(--space-6);
  }

  .footer-quote {
    font-size: clamp(22px, 6.2vw, 28px);
  }

  .lace-frame-svg {
    opacity: 0.52;
  }

  .viewer-modal {
    width: 100%;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .viewer-header {
    padding: var(--space-2) var(--space-3);
  }

  .preview-mode-switch button {
    min-height: 44px;
    padding-inline: 10px;
  }

  .preview-mode-switch button span,
  .browser-open span {
    display: none;
  }

  .browser-open {
    width: 44px;
    padding: 0;
  }

  .viewer-tabs {
    padding-inline: var(--space-3);
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
