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

:root {
  --bg: #000;
  --fg: #fff;
  --secondary: #e8e0d5;
  --accent: #c8b8a2;
  --muted: rgba(232, 224, 213, 0.58);
  --line: rgba(232, 224, 213, 0.16);
  --surface: #090909;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 72% 12%, rgba(200, 184, 162, 0.09), transparent 26rem),
    var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: #000;
  background: #fff;
  font-family: var(--sans);
  font-size: 0.8rem;
  transform: translateY(-180%);
}

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

a:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 5px;
}

.site-header,
.site-footer,
main {
  width: min(1180px, calc(100% - 3rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 7rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 44px;
  text-decoration: none;
}

.brand img { width: 2.2rem; height: 2.2rem; opacity: 0.88; }
.brand span,
.site-header nav,
.site-footer,
.eyebrow,
.feature-number,
.primary-cta,
.text-link,
.hero-visual figcaption,
.article-meta,
.article-kicker {
  font-family: var(--sans);
}

.brand span,
.site-header nav a,
.eyebrow,
.article-kicker {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand span { color: var(--accent); }

.site-header nav { display: flex; gap: clamp(1rem, 4vw, 2.5rem); }
.site-header nav a,
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
  transition: color 180ms ease;
}
.site-header nav a:hover,
.site-footer a:hover { color: var(--fg); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.85fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 6rem);
  min-height: min(800px, calc(100vh - 7rem));
  padding: 6rem 0;
}

.eyebrow { color: var(--accent); margin: 0 0 1.6rem; }

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

h1 {
  max-width: 800px;
  margin-bottom: 1.5rem;
  font-size: clamp(2.8rem, 7vw, 6.4rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.brand-line {
  margin-bottom: 1.6rem;
  color: var(--accent);
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  font-style: italic;
}

.hero-description {
  max-width: 620px;
  margin-bottom: 2.25rem;
  color: var(--secondary);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  line-height: 1.75;
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }

.primary-cta {
  display: inline-flex;
  align-items: center;
  min-height: 3.2rem;
  padding: 0.9rem 1.25rem;
  background: var(--fg);
  color: var(--bg);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, transform 180ms ease;
}

.primary-cta:hover { background: var(--accent); transform: translateY(-2px); }

.text-link {
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-underline-offset: 0.4rem;
}

.hero-visual {
  position: relative;
  width: min(100%, 520px);
  margin: 0;
  justify-self: center;
  animation: rise 1.1s ease both;
}

.ambient-frame {
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
}

.ambient-poster,
.ambient-frame video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ambient-poster { transition: opacity 600ms ease; }

.ambient-frame video {
  z-index: 1;
  opacity: 0;
  transition: opacity 800ms ease;
}

.ambient-frame.is-playing video { opacity: 0.86; }
.ambient-frame.is-playing .ambient-poster { opacity: 0; }

.hero-atmosphere {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  -webkit-mask-image: radial-gradient(ellipse 94% 91% at 50% 47%, #000 50%, rgba(0, 0, 0, 0.92) 67%, transparent 100%);
  mask-image: radial-gradient(ellipse 94% 91% at 50% 47%, #000 50%, rgba(0, 0, 0, 0.92) 67%, transparent 100%);
}

.hero-atmosphere::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 28%, transparent 62%, rgba(0, 0, 0, 0.82)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.68), transparent 32%, transparent 70%, rgba(0, 0, 0, 0.58));
  box-shadow: inset 0 0 3.5rem 1.5rem rgba(0, 0, 0, 0.82);
  content: "";
  pointer-events: none;
}

.phone-frame {
  position: relative;
  z-index: 3;
  width: min(228px, 54%);
  margin: -4.8rem 1.35rem 0 auto;
}

.product-capture {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(200, 184, 162, 0.28);
  border-radius: 1.9rem;
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.75);
}

.hero-visual figcaption {
  max-width: 220px;
  margin: 1.2rem auto 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.55;
  text-align: center;
}

.practice,
.guides {
  padding: clamp(5rem, 10vw, 9rem) 0;
  border-top: 1px solid var(--line);
}

.section-intro {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 2rem;
  margin-bottom: 4.5rem;
}

.section-intro .eyebrow { margin-top: 0.65rem; }

h2 {
  max-width: 760px;
  margin-bottom: 1.4rem;
  font-size: clamp(2rem, 5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.practice-chapters { display: grid; gap: clamp(5rem, 11vw, 9rem); }

.practice-chapter {
  display: grid;
  grid-template-columns: minmax(250px, 0.74fr) minmax(0, 1.26fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6.5rem);
}

.practice-chapter--image-right {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

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

.feature-list article {
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
  padding: 2.3rem 0;
  border-bottom: 1px solid var(--line);
}

.feature-number { color: var(--muted); font-size: 0.72rem; }

.feature-list h3 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 400;
}

.feature-list article div p,
.privacy-note > p:not(.eyebrow),
.article-body p,
.article-body li {
  color: var(--secondary);
  font-size: 1rem;
  line-height: 1.8;
}

.feature-list article div p { max-width: 580px; margin-bottom: 0; }

.editorial-figure { margin: 0; }

.media-window {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.media-window::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.035);
  content: "";
  pointer-events: none;
}

.media-window img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editorial-figure figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.67rem;
  line-height: 1.55;
}

.editorial-figure figcaption a {
  color: var(--accent);
  text-underline-offset: 0.25rem;
  white-space: nowrap;
}

.practice-figure--portrait { width: min(100%, 390px); }
.practice-figure--portrait .media-window {
  aspect-ratio: 3 / 4;
  border-radius: 48% 48% 3% 3% / 17% 17% 3% 3%;
}
.practice-figure--portrait .media-window img { object-position: 53% 50%; }

.practice-figure--sequence {
  width: min(100%, 460px);
  justify-self: end;
}

.practice-figure--sequence .media-window {
  aspect-ratio: 1548 / 716;
  border-radius: 0;
}
.practice-figure--sequence .media-window img {
  object-fit: cover;
}

.privacy-note {
  margin: 2rem 0 clamp(6rem, 12vw, 11rem);
  padding: clamp(2.2rem, 7vw, 5.5rem);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(200,184,162,0.07), transparent 60%);
}

.privacy-note h2 { max-width: 680px; }
.privacy-note > p:not(.eyebrow) { max-width: 680px; margin-bottom: 1.8rem; }

.threshold-figure { margin: 0 0 clamp(4rem, 8vw, 6rem); }
.threshold-figure .media-window {
  aspect-ratio: 16 / 7;
  clip-path: none;
}
.threshold-figure .media-window img { object-position: 50% 52%; }

.guide-links { border-top: 1px solid var(--line); }

.guide-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.guide-links a span:first-child { font-size: clamp(1.2rem, 3vw, 2rem); }
.guide-links a span:last-child { color: var(--accent); font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.08em; }

.closing { max-width: 760px; padding: clamp(5rem, 12vw, 10rem) 0; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem 0 4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }

/* Guide pages */
.article-shell { width: min(760px, calc(100% - 3rem)); margin-inline: auto; }
.article-header { padding: clamp(4rem, 10vw, 8rem) 0 3.5rem; border-bottom: 1px solid var(--line); }
.article-kicker { color: var(--accent); margin-bottom: 1.5rem; }
.article-header h1 { font-size: clamp(2.65rem, 8vw, 5.6rem); }
.article-dek { max-width: 680px; color: var(--secondary); font-size: clamp(1.05rem, 2.5vw, 1.3rem); line-height: 1.7; }
.article-meta { display: flex; flex-wrap: wrap; gap: 0.8rem 1.4rem; margin-top: 2rem; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.06em; }
.article-body { padding: 3.5rem 0 6rem; }
.article-body section { margin-bottom: 3.5rem; }
.article-body h2 { margin-bottom: 1.2rem; font-size: clamp(1.7rem, 4vw, 2.8rem); }
.article-body h3 { margin: 2rem 0 0.7rem; color: var(--accent); font-size: 1.2rem; font-weight: 400; }
.article-body ol,
.article-body ul { margin: 1rem 0 0; padding-left: 1.35rem; }
.article-body li { padding-left: 0.5rem; margin-bottom: 0.9rem; }
.article-body strong { color: var(--fg); font-weight: 500; }
.article-table-wrap { margin: 1.5rem 0 2rem; overflow-x: auto; }
.article-body table { width: 100%; min-width: 580px; border-collapse: collapse; color: var(--secondary); font-size: 0.95rem; line-height: 1.6; }
.article-body th,
.article-body td { padding: 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-body th { color: var(--accent); font-family: var(--sans); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.article-note { padding: 1.5rem; border-left: 1px solid var(--accent); background: rgba(200,184,162,0.06); }
.article-links { display: grid; gap: 1rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.article-cta { margin-top: 4rem; padding: 2.25rem; border: 1px solid var(--line); }
.article-cta h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }

.article-figure {
  width: min(960px, calc(100vw - 3rem));
  margin: 3.75rem 50%;
  transform: translateX(-50%);
}

.article-figure .media-window { aspect-ratio: 16 / 9; }
.article-figure .media-window img { object-position: 50% 50%; }

.article-figure--portrait {
  width: min(560px, calc(100vw - 3rem));
}

.article-figure--portrait .media-window { aspect-ratio: 3 / 4; }

.article-figure--contained .media-window img {
  object-fit: contain;
  background: #e8e8e8;
}

.article-figure--portal .media-window {
  border-radius: 50% 50% 2% 2% / 19% 19% 2% 2%;
}

.article-figure--notched .media-window {
  clip-path: polygon(7% 0, 100% 0, 100% 88%, 93% 100%, 0 100%, 0 12%);
}

.article-figure--panorama .media-window {
  border-radius: 50% / 22%;
}

.article-figure--cameo .media-window {
  border-radius: 50%;
}

.article-figure--plate .media-window {
  clip-path: polygon(12% 0, 88% 0, 100% 9%, 96% 88%, 84% 100%, 10% 96%, 0 82%, 3% 12%);
}

.article-diptych {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1px;
  background: var(--line);
}

.article-diptych .media-window {
  aspect-ratio: auto;
  min-height: 440px;
  border: 0;
}

.article-diptych .media-window:first-child img { object-position: 50% 52%; }
.article-diptych .media-window:last-child img { object-position: 53% 50%; }

.article-figure--diptych .article-diptych {
  clip-path: polygon(4% 0, 100% 0, 100% 91%, 96% 100%, 0 100%, 0 9%);
}

.article-ambient {
  width: min(700px, calc(100vw - 3rem));
}

.article-ambient .ambient-frame {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
}

/* Guide directory */
.directory-shell { width: min(920px, calc(100% - 3rem)); margin-inline: auto; }
.directory-header { padding: clamp(4rem, 10vw, 8rem) 0 3.5rem; }
.directory-header h1 { max-width: 860px; }
.directory-intro { max-width: 680px; color: var(--secondary); font-size: clamp(1.05rem, 2.5vw, 1.3rem); line-height: 1.7; }
.directory-visual { margin: 1rem 0 clamp(4rem, 8vw, 6rem); }
.directory-visual .media-window {
  aspect-ratio: 16 / 8;
  border-radius: 50% 50% 1% 1% / 20% 20% 1% 1%;
}
.directory-visual .media-window img { object-position: 50% 45%; }
.directory-ambient .ambient-frame {
  aspect-ratio: 16 / 8;
  border-radius: 0;
  -webkit-mask-image: radial-gradient(ellipse 94% 91% at 50% 47%, #000 50%, rgba(0, 0, 0, 0.92) 67%, transparent 100%);
  mask-image: radial-gradient(ellipse 94% 91% at 50% 47%, #000 50%, rgba(0, 0, 0, 0.92) 67%, transparent 100%);
}
.directory-ambient .ambient-frame::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 28%, transparent 62%, rgba(0, 0, 0, 0.82)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.68), transparent 32%, transparent 70%, rgba(0, 0, 0, 0.58));
  box-shadow: inset 0 0 3.5rem 1.5rem rgba(0, 0, 0, 0.82);
  content: "";
  pointer-events: none;
}
.guide-directory { border-top: 1px solid var(--line); }
.guide-directory a {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem 3rem;
  padding: 2.4rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.directory-thumbnail {
  position: relative;
  overflow: hidden;
  width: 132px;
  aspect-ratio: 5 / 6;
  background: var(--surface);
}
.directory-thumbnail::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(232, 224, 213, 0.12);
  content: "";
  pointer-events: none;
}
.directory-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 240ms ease, transform 500ms ease;
}
.guide-directory a:hover .directory-thumbnail img {
  filter: grayscale(0.35);
  transform: scale(1.025);
}
.guide-directory a:nth-child(3n + 1) .directory-thumbnail {
  border-radius: 50% 50% 4% 4% / 18% 18% 4% 4%;
}
.guide-directory a:nth-child(3n + 2) .directory-thumbnail {
  border-radius: 50%;
}
.guide-directory a:nth-child(3n) .directory-thumbnail {
  clip-path: polygon(14% 0, 100% 0, 100% 86%, 86% 100%, 0 100%, 0 14%);
}

.guide-directory a:nth-child(3) .directory-thumbnail {
  width: 124px;
  aspect-ratio: 5 / 6;
  border-radius: 50%;
  clip-path: none;
}
.guide-directory a:nth-child(3) .directory-thumbnail img {
  object-position: 50% 31%;
  transform: scale(1.43);
}
.guide-directory a:nth-child(3):hover .directory-thumbnail img {
  transform: scale(1.47);
}

.guide-directory a:nth-child(5) .directory-thumbnail,
.guide-directory a:nth-child(7) .directory-thumbnail {
  width: 132px;
  aspect-ratio: 1;
  border-radius: 0;
  clip-path: none;
}
.guide-directory a:nth-child(5) .directory-thumbnail img {
  object-position: 50% 43%;
  transform-origin: 50% 39%;
  transform: scale(2.75);
}
.guide-directory a:nth-child(5):hover .directory-thumbnail img {
  transform: scale(2.8);
}
.guide-directory a:nth-child(7) .directory-thumbnail img {
  object-position: 50% 45%;
  transform: scale(1.13);
}
.guide-directory a:nth-child(7):hover .directory-thumbnail img {
  transform: scale(1.17);
}
.guide-directory h2 { margin-bottom: 0.65rem; font-size: clamp(1.45rem, 3vw, 2.2rem); }
.guide-directory p { max-width: 660px; margin-bottom: 0; color: var(--secondary); font-size: 1rem; line-height: 1.7; }
.guide-directory .directory-label,
.guide-directory .directory-arrow {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.guide-directory .directory-label { display: block; margin-bottom: 0.8rem; }
.guide-directory .directory-arrow { align-self: center; white-space: nowrap; }
.directory-note { margin: clamp(5rem, 10vw, 8rem) 0; padding: clamp(2rem, 6vw, 4rem); border: 1px solid var(--line); background: linear-gradient(135deg, rgba(200,184,162,0.07), transparent 60%); }
.directory-note h2 { font-size: clamp(1.7rem, 4vw, 3rem); }
.directory-note p { max-width: 650px; color: var(--secondary); font-size: 1rem; line-height: 1.8; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-visual { animation: none; }
  .ambient-frame video { display: none; }
  .ambient-frame .ambient-poster { opacity: 1; }
  .primary-cta:hover { transform: none; }
  * { transition-duration: 0.01ms !important; }
}

@media (max-width: 760px) {
  .site-header { min-height: 5.5rem; }
  .site-header nav a:first-child { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 4.5rem; }
  .hero-copy { text-align: center; }
  .hero-description { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { margin-top: 1rem; }
  .phone-frame { width: min(210px, 52%); margin-top: -3.8rem; }
  .section-intro { grid-template-columns: 1fr; gap: 0.7rem; }
  .section-intro { margin-bottom: 2.5rem; }
  .practice-chapter,
  .practice-chapter--image-right { grid-template-columns: 1fr; gap: 2.5rem; }
  .feature-list article { grid-template-columns: 2rem minmax(0, 1fr); gap: 1rem; }
  .practice-figure--portrait,
  .practice-figure--sequence { width: 100%; justify-self: stretch; }
  .practice-figure--portrait .media-window {
    aspect-ratio: 16 / 11;
    border-radius: 48% 48% 3% 3% / 28% 28% 3% 3%;
  }
  .practice-figure--portrait .media-window img { object-position: 50% 48%; }
  .practice-figure--sequence .media-window {
    aspect-ratio: 1548 / 716;
    border-radius: 0;
  }
  .threshold-figure .media-window { aspect-ratio: 4 / 3; }
  .editorial-figure figcaption { align-items: flex-start; flex-direction: column; gap: 0.35rem; }
  .article-figure .media-window { aspect-ratio: 4 / 3; }
  .article-figure--portrait .media-window { aspect-ratio: 3 / 4; }
  .article-diptych { grid-template-columns: 1fr; }
  .article-diptych .media-window { min-height: 0; aspect-ratio: 4 / 3; }
  .article-ambient .ambient-frame { aspect-ratio: 1 / 1; }
  .directory-visual .media-window { aspect-ratio: 4 / 3; }
  .directory-ambient .ambient-frame { aspect-ratio: 4 / 3; }
  .guide-links a { align-items: flex-start; flex-direction: column; gap: 0.65rem; }
  .guide-directory a {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1.8rem 0;
  }
  .directory-thumbnail { width: 88px; }
  .guide-directory a:nth-child(3) .directory-thumbnail { width: 82px; }
  .guide-directory a:nth-child(5) .directory-thumbnail,
  .guide-directory a:nth-child(7) .directory-thumbnail { width: 88px; }
  .guide-directory .directory-arrow {
    grid-column: 2;
    justify-self: start;
  }
  .site-footer { flex-direction: column; }
}

@media (max-width: 480px) {
  .site-header,
  .site-footer,
  main,
  .article-shell,
  .directory-shell { width: min(100% - 2rem, 1180px); }
  .site-header nav { gap: 1rem; }
  .site-header nav a { font-size: 0.6rem; }
  .brand span { display: none; }
  .primary-cta { width: 100%; justify-content: center; }
  .article-cta { padding: 2rem 1.25rem; }
  .privacy-note { margin-inline: -0.25rem; padding: 2rem 1.35rem; }
}
