/*
 * Home (public/index.php): the blocks of the WordPress home (Elementor page 5595) with their own CSS values and short
 * class names. Differences from WordPress: docs/phases/06-website/06b-home.md.
 */

/* Hero: the Vimeo video under a dark veil, the text box on the left, a loader over it while the video starts. Above
   768 px a 3:2 box that starts under the fixed header; at 768 px and less the video (3:2), then the text. */
.hero {
  position: relative;
  height: 0;
  padding-bottom: 66.66%;
  overflow: hidden;
  background: #1a1816;
}
.hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #1a1816;
}
.hero__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hero__veil { position: absolute; inset: 0; z-index: 1; background: rgba(26, 24, 22, 0.5); }
.hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 0 72px;
}
.hero__box {
  max-width: 560px;
  padding: 20px;
  background: rgba(250, 248, 244, 0.12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 0.5px solid rgba(255, 255, 255, 0.2);
}
.hero__eyebrow {
  display: block;
  margin-bottom: 18px;
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.hero__title { margin-bottom: 9px; font-size: clamp(20px, 5vw, 24px); line-height: 1.04; color: #ffffff; }
.hero__title em { color: rgba(255, 255, 255, 0.82); }
.hero__sub {
  max-width: 380px;
  margin-bottom: 36px;
  font-size: 11px;
  line-height: 1.85;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__discover, .hero__shop {
  display: inline-block;
  padding: 14px 28px;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
  transition: all 0.25s;
}
.hero__discover { font-weight: 600; background: #b8923a; }
.hero__discover:hover { background: #1a1816; }
.hero__shop { border: 0.5px solid rgba(255, 255, 255, 0.6); }
.hero__shop:hover { border-color: #ffffff; background: rgba(255, 255, 255, 0.1); }
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  font-size: 7px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.hero__scroll-line {
  width: 0.5px;
  height: 40px;
  background: rgba(255, 255, 255, 0.3);
  animation: heroScroll 1.8s ease-in-out infinite;
}
@keyframes heroScroll {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
.hero__tag { position: absolute; right: 40px; bottom: 32px; z-index: 2; text-align: right; }
.hero__tag span {
  display: block;
  margin-bottom: 4px;
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.hero__tag strong {
  font-family: var(--br-font-serif);
  font-size: 14px;
  font-weight: 300;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
}

/* Loader: the gold mandala over the hero until the video plays. home.js fades it (is-done) 0.4 s after the player is
   ready, 3.5 s at the latest; this animation fades it after 3.5 s when the script does not run. */
.hero__loader {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1816;
  animation: heroLoaderOut 0.8s ease 3.5s forwards;
}
.hero__loader.is-done { opacity: 0; visibility: hidden; transition: opacity 0.8s ease, visibility 0s linear 0.8s; }
@keyframes heroLoaderOut {
  to { opacity: 0; visibility: hidden; }
}
.hero__mandala { display: block; animation: heroSpin 2.5s linear infinite; }
@keyframes heroSpin {
  to { transform: rotate(-360deg); }
}

/* Manifesto strip; the hero's Scroll link lands here, below the fixed header. */
.manifesto {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 40px;
  background: #ffffff;
  border-bottom: 0.5px solid #e2ddd6;
  scroll-margin-top: 92px;
}
.manifesto::before { content: ''; flex-shrink: 0; width: 32px; height: 0.5px; background: #c8c2b8; }
.manifesto__quote {
  font-family: var(--br-font-serif);
  font-size: 17px;
  font-style: italic;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: #2a2622;
}
.manifesto__tag {
  margin-left: auto;
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #9a948c;
}

/* ANIMA Ayeon, the Korean debut: photo | text, the photo on top at 900 px and less. 10 px above and below: the padding
   of its WordPress container. */
.debut {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  margin: 10px 0;
  overflow: hidden;
  background: #1a1816;
  border-top: 1px solid rgba(184, 146, 58, 0.35);
  border-bottom: 1px solid rgba(184, 146, 58, 0.35);
}
.debut__media { position: relative; display: block; min-height: 420px; overflow: hidden; background: #000000; }
.debut__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(0.2, 0.6, 0.2, 1); }
.debut:hover .debut__media img { transform: scale(1.03); }
.debut__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(26, 24, 22, 0) 55%, rgba(26, 24, 22, 0.75) 100%);
}
.debut__flag {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 3;
  padding: 7px 12px;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #faf8f5;
  background: rgba(26, 24, 22, 0.6);
  border: 0.5px solid rgba(184, 146, 58, 0.55);
}
.debut__text { display: flex; flex-direction: column; justify-content: center; padding: 64px 60px 60px; }
.debut__eyebrow { margin-bottom: 22px; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: #b8923a; }
.debut__eyebrow::after { content: ''; display: block; width: 40px; height: 1px; margin-top: 14px; background: #b8923a; opacity: 0.7; }
.debut__title { margin-bottom: 8px; font-size: 52px; line-height: 1.05; letter-spacing: 0.02em; color: #faf8f5; }
.debut__by {
  margin-bottom: 26px;
  font-family: var(--br-font-serif);
  font-size: 17px;
  font-style: italic;
  letter-spacing: 0.06em;
  color: #b8923a;
}
.debut__body { max-width: 420px; margin-bottom: 30px; font-size: 12.5px; line-height: 2; letter-spacing: 0.02em; color: #c9c3b9; }
.debut__meta {
  margin-bottom: 34px;
  padding-left: 16px;
  font-size: 10px;
  line-height: 2.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a857d;
  border-left: 1px solid rgba(184, 146, 58, 0.4);
}
.debut__meta b { font-weight: 400; color: #faf8f5; }
.debut__button {
  align-self: flex-start;
  padding: 15px 34px;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffffff;
  background: #b8923a;
  border: 0.5px solid #b8923a;
  transition: all 0.35s ease;
}
.debut__button:hover { background: #9a7730; border-color: #9a7730; }

/* Collections: three cards, one column at 900 px and less. The head's background and line come from the WordPress
   theme's .br-header rule, which also made it sticky (not kept: see the docs). */
.collections { background: #ffffff; border-top: 0.5px solid #e2ddd6; }
.collections__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 36px 40px 22px;
  background: #ffffff;
  border-bottom: 0.5px solid #e2ddd6;
}
.collections__title { font-size: 32px; line-height: 1.6; }
.collections__all { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: #b8923a; }
.collections__all:hover { opacity: 0.7; }
.collections__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 0 3px 3px; }
.collection { position: relative; display: flex; flex-direction: column; overflow: hidden; background: #ffffff; border: 0.5px solid #e2ddd6; }
.collection__image { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #111111; }
.collection__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.collection:hover .collection__image img { transform: scale(1.04); }
.collection__season {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  padding: 4px 9px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(26, 24, 22, 0.55);
}
.collection__info { display: flex; flex: 1; flex-direction: column; padding: 20px 20px 22px; }
.collection__name { margin-bottom: 8px; font-size: 24px; font-weight: 400; line-height: 1.6; letter-spacing: 0.02em; }
.collection__text { margin-bottom: 20px; font-size: 11px; letter-spacing: 0.02em; }
.collection__buttons { display: flex; flex-direction: column; gap: 9px; margin-top: auto; }
.collection__discover, .collection__shop {
  display: block;
  padding: 13px 18px;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  transition: all 0.3s ease;
}
.collection__discover { color: #1a1816; border: 0.5px solid #1a1816; }
.collection__discover:hover { color: #ffffff; background: #1a1816; }
.collection__shop { color: #ffffff; background: #b8923a; border: 0.5px solid #b8923a; }
.collection__shop:hover { background: #9a7730; border-color: #9a7730; }

/* Featured pieces: renderFeaturedPieces() (components/product/card.php, styled by shop.css), 30 px above and below. */
#br-featured { margin: 30px 0; }

/* Atelier, story and symbols: WordPress shows them in a 1140 px column, 20 px apart (kept as it looks: see the docs).
   Each has a 1200 px content column inside. */
.atelier, .story, .symbols { position: relative; max-width: 1140px; margin: 20px auto 0; padding: 120px 0; overflow: hidden; }
.atelier__wrap, .story__wrap, .symbols__wrap { max-width: 1200px; margin: 0 auto; padding: 0 60px; }
.atelier__wrap, .story__wrap { position: relative; z-index: 1; }
.atelier__eyebrow, .story__eyebrow, .symbols__eyebrow { display: block; margin-bottom: 20px; font-size: 9px; letter-spacing: 0.32em; text-transform: uppercase; color: #b8923a; }
.atelier__title, .story__title { margin-bottom: 20px; font-size: 54px; letter-spacing: 0.02em; }
.story__title em, .symbols__title em, .story-card__title em, .story__quote em { color: #b8923a; }
.atelier__intro, .story__intro { margin: 0 auto; font-size: 13px; line-height: 1.85; }
.atelier__primary, .atelier__secondary, .story__primary, .story__secondary {
  display: inline-block;
  padding: 16px 40px;
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}
.atelier__actions, .story__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.atelier__actions { align-items: center; }
.step::after, .story-card::after, .symbol::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #b8923a;
  transition: width 0.5s ease;
}

/* Atelier: five steps of the craft, each a link to the Craftsmanship page. */
.atelier { background: #1a1816; }
.atelier::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.025) 1px, transparent 0);
  background-size: 4px 4px;
}
.atelier__head { margin-bottom: 80px; text-align: center; }
.atelier__eyebrow { color: #d4b07a; }
.atelier__title { color: #faf8f5; }
.atelier__title em { color: rgba(255, 255, 255, 0.45); }
.atelier__rule { width: 40px; height: 1px; margin: 24px auto; background: #b8923a; }
.atelier__intro { max-width: 560px; color: rgba(250, 248, 245, 0.6); }
.atelier__steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; margin-bottom: 64px; }
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  padding: 44px 24px 40px;
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid rgba(255, 255, 255, 0.06);
  transition: background 0.4s ease;
}
.step:hover, .step:focus-visible { background: rgba(184, 146, 58, 0.06); }
.step:hover::after, .step:focus-visible::after { width: 100%; }
.step__big {
  margin-bottom: -40px;
  font-family: var(--br-font-serif);
  font-size: 100px;
  font-weight: 300;
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: #b8923a;
  opacity: 0.08;
}
.step__number { margin-bottom: 16px; font-family: var(--br-font-serif); font-size: 13px; font-style: italic; letter-spacing: 0.08em; color: #b8923a; }
.step__title {
  margin-bottom: 12px;
  font-family: var(--br-font-serif);
  font-size: 26px;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: #faf8f5;
}
.step__rule { width: 20px; height: 0.5px; margin-bottom: 14px; background: #b8923a; opacity: 0.6; }
.step__text { font-size: 10px; line-height: 1.8; letter-spacing: 0.02em; color: rgba(250, 248, 245, 0.45); }
.step__more {
  margin-top: 24px;
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #b8923a;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.step:hover .step__more, .step:focus-visible .step__more { opacity: 1; }
.atelier__primary { color: #1a1816; background: #b8923a; }
.atelier__primary:hover { background: #d4b07a; }
.atelier__secondary { color: #faf8f5; border: 0.5px solid rgba(250, 248, 245, 0.3); }
.atelier__secondary:hover { color: #b8923a; border-color: #b8923a; }

/* Story: three dates, the quote, the links. */
.story { background: #f5efe6; }
.story::before {
  content: '"';
  position: absolute;
  top: -60px;
  left: 20px;
  font-family: var(--br-font-serif);
  font-size: 500px;
  font-weight: 300;
  line-height: 1;
  color: rgba(184, 146, 58, 0.05);
  pointer-events: none;
}
.story__head { margin-bottom: 72px; text-align: center; }
.story__rule { width: 40px; height: 1px; margin: 0 auto 24px; background: #b8923a; }
.story__intro { max-width: 600px; color: #5a544c; }
.story__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-bottom: 64px; }
.story-card { position: relative; overflow: hidden; padding: 44px 32px 40px; background: #ffffff; transition: background 0.3s; }
.story-card:hover { background: #faf8f5; }
.story-card:hover::after { width: 100%; }
.story-card__year {
  margin-bottom: -36px;
  font-family: var(--br-font-serif);
  font-size: 96px;
  font-weight: 300;
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: #b8923a;
  opacity: 0.08;
}
.story-card__label { display: block; margin-bottom: 14px; font-size: 8px; letter-spacing: 0.28em; text-transform: uppercase; color: #b8923a; }
.story-card__title { margin-bottom: 12px; font-size: 28px; line-height: 1.2; letter-spacing: 0.02em; }
.story-card__rule { width: 20px; height: 0.5px; margin-bottom: 14px; background: #b8923a; opacity: 0.5; }
.story-card__text { font-size: 10px; line-height: 1.85; letter-spacing: 0.02em; color: #8a8580; }
.story__quote { margin-bottom: 64px; padding: 0 60px; text-align: center; }
.story__quote p {
  font-family: var(--br-font-serif);
  font-size: 26px;
  font-weight: 300;
  font-style: italic;
  line-height: 1.55;
  letter-spacing: 0.03em;
  color: #1a1816;
}
.story__signature {
  display: block;
  margin-top: 20px;
  font-family: var(--br-font-sans);
  font-size: 8px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #b8923a;
}
.story__primary { color: #ffffff; background: #1a1816; border: 1px solid #1a1816; }
.story__primary:hover { background: #b8923a; border-color: #b8923a; }
.story__secondary { color: #1a1816; border: 0.5px solid rgba(26, 24, 22, 0.3); }
.story__secondary:hover { color: #b8923a; border-color: #b8923a; }

/* Symbols: four cards (the impeller dark), the RIVAIR note. */
.symbols { background: #faf8f5; }
.symbols::before {
  content: 'BR';
  position: absolute;
  right: -20px;
  bottom: -60px;
  font-family: var(--br-font-serif);
  font-size: 320px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.1em;
  color: rgba(184, 146, 58, 0.04);
  pointer-events: none;
}
.symbols__head { margin-bottom: 72px; text-align: center; }
.symbols__eyebrow { margin-bottom: 18px; font-size: 18px; }
.symbols__title { margin-bottom: 20px; font-size: 52px; letter-spacing: 0.06em; }
.symbols__rule { width: 50px; height: 1px; margin: 0 auto; background: #b8923a; }
.symbols__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.symbol {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding: 30px 24px 44px;
  background: #ffffff;
  transition: background 0.3s;
}
.symbol:hover::after { width: 80%; }
.symbol img { width: 130px; height: 130px; margin-bottom: 32px; object-fit: contain; }
.symbol__name { margin-bottom: 8px; font-size: 24px; line-height: 1.6; letter-spacing: 0.12em; text-align: center; }
.symbol__tag { margin-bottom: 20px; font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; text-align: center; color: #b8923a; }
.symbol__rule { width: 20px; height: 0.5px; margin: 0 auto 18px; background: #e2ddd6; }
.symbol__text { font-size: 12px; letter-spacing: 0.01em; text-align: center; color: #8a8580; }
.symbol--main { background: #1a1816; }
.symbol--main::after { background: #d4aa55; }
.symbol--main:hover { background: #201e1b; }
.symbol--main .symbol__name { color: #ffffff; }
.symbol--main .symbol__text { color: #5a5550; }
.symbol--main .symbol__rule { background: #2a2724; }
.symbol__badge {
  position: absolute;
  top: 18px;
  right: 16px;
  padding: 3px 7px;
  font-size: 6px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #b8923a;
  border: 0.5px solid rgba(184, 146, 58, 0.5);
}
.symbols__note { position: relative; margin-top: 48px; padding: 44px 60px; text-align: center; background: #1a1816; }
.symbols__note::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 40px;
  height: 1px;
  background: #b8923a;
  transform: translateX(-50%);
}
.symbols__note p {
  font-family: var(--br-font-serif);
  font-size: 18px;
  font-weight: 300;
  font-style: italic;
  line-height: 1.7;
  letter-spacing: 0.05em;
  color: #8a8580;
}
.symbols__note strong { font-style: normal; font-weight: 400; color: #b8923a; }

@media (max-width: 900px) {
  .debut { grid-template-columns: 1fr; }
  .debut__media { min-height: 0; aspect-ratio: 3 / 2; }
  .debut__media::after { background: linear-gradient(180deg, rgba(26, 24, 22, 0) 60%, rgba(26, 24, 22, 0.8) 100%); }
  .debut__text { padding: 40px 24px 46px; }
  .debut__title { font-size: 38px; }
  .debut__body { font-size: 12px; }
  .collections__head { padding: 24px 20px 14px; }
  .collections__grid { grid-template-columns: 1fr; }
  .atelier__steps, .symbols__grid { grid-template-columns: repeat(2, 1fr); }
  .story__cards { grid-template-columns: 1fr; }
  .story__quote { padding: 0 20px; }
}
@media (max-width: 768px) {
  /* 65 px: the header's height, which WordPress set with JS. */
  .hero { height: auto; padding: 65px 0 0; }
  .hero__video { position: relative; aspect-ratio: 3 / 2; }
  .hero__veil, .hero__loader, .hero__scroll, .hero__tag { display: none; }
  .hero__content { position: relative; display: block; padding: 36px 24px 48px; }
  .hero__box { max-width: 100%; padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; }
  .hero__eyebrow { color: rgba(255, 255, 255, 0.55); }
  .hero__title { margin-bottom: 16px; font-size: 40px; }
  .hero__sub { max-width: 100%; margin-bottom: 28px; color: rgba(255, 255, 255, 0.72); }
  .manifesto { padding: 16px 24px; }
  .manifesto__quote { font-size: 12px; }
  .manifesto__tag { display: none; }
}
@media (max-width: 520px) {
  .atelier, .story, .symbols { padding: 80px 0; }
  .atelier__wrap, .story__wrap { padding: 0 24px; }
  .symbols__wrap { padding: 0 20px; }
  .atelier__title, .story__title, .symbols__title { font-size: 36px; }
  .atelier__steps, .symbols__grid { grid-template-columns: 1fr; }
  .story__quote p { font-size: 20px; }
  .symbol img { width: 100px; height: 100px; }
  .symbols__note { padding: 36px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__scroll-line, .hero__mandala { animation: none; }
}
