/*
Theme Name: Golden Temple House
Theme URI: https://goldentemplehouse.com/
Author: Golden Temple House
Author URI: https://goldentemplehouse.com/
Description: Single-page theme for Golden Temple House, a Sydney workshop hand-building wooden mandirs and puja pieces. Ships with its own imagery and video; no page builder or plugin required. The enquiry form posts to a REST route registered in functions.php and is delivered by wp_mail().
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: golden-temple-house
Tags: one-column, custom-colors, custom-logo, full-width-template, translation-ready
*/

/* ==========================================================================
   Golden Temple House — Tradition Lives Here
   Self-contained stylesheet. No framework, no build step.

   Design language: warm heritage luxury with a restrained glass layer.
   Glass only reads when there is something behind it, so the page carries a
   fixed field of soft gold blooms (.aura) that the frosted panels refract.
   ========================================================================== */

:root{
  --cream:      #f7f3ea;
  --cream-deep: #efe6d4;
  --ink:        #2c2116;
  --gold:       #b0803a;
  --gold-bright:#c9a24e;
  --gold-deep:  #8a5f22;
  --charcoal:   #191410;

  --ink-soft:  rgba(44, 33, 22, .72);
  --ink-mute:  rgba(44, 33, 22, .52);
  --ink-faint: rgba(44, 33, 22, .14);

  --glass-bg:      linear-gradient(150deg, rgba(255,255,255,.62), rgba(255,255,255,.28));
  --glass-bg-soft: linear-gradient(150deg, rgba(255,255,255,.46), rgba(255,255,255,.18));
  --glass-blur:    blur(18px) saturate(150%);
  --glass-edge:    rgba(255,255,255,.75);
  --glass-line:    rgba(176,128,58,.22);
  --glass-shadow:  0 18px 50px -22px rgba(72,52,26,.42), 0 2px 10px -4px rgba(72,52,26,.16);

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Jost", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1240px;
  --header-h: 118px;
  --radius: 18px;

  /* Hero video crop. The source has an "AI" watermark in its TOP-LEFT corner.
     The video is scaled about its BOTTOM-RIGHT corner, so the top and left
     edges are pushed out of the clipping box by (S-1)/S of the box — at 1.12
     that is 10.7% off the top and 10.7% off the left, at EVERY aspect ratio.
     object-fit:cover only ever crops more on top of that, never less.
     Raise this if any watermark still shows; lower it to keep more framing. */
  --hero-video-scale: 1.12;

  /* Our Craft video. Mandir.mp4 is a PORTRAIT clip pillarboxed into a
     1280x720 frame: the picture occupies x 438-842, y 30-684 (measured, and
     identical on every frame), leaving 438px of black each side. The panel is
     therefore set to the content's own 405:655 aspect and the video is scaled
     from its CENTRE so object-fit:cover trims the black away symmetrically.
     1.10 is the exact point the bars disappear; 1.16 leaves a safety margin. */
  --craft-video-scale: 1.16;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
}

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

html{
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body{
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(15px, .5vw + 14px, 17px);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3{
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
  letter-spacing: .002em;
}

a{ color: inherit; }
button{ font: inherit; color: inherit; }

:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap{
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

/* ==========================================================================
   Aura — the fixed light field the glass refracts
   ========================================================================== */
.aura{
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60vw 55vh at 12% 8%,  rgba(201,162,78,.20), transparent 62%),
    radial-gradient(55vw 50vh at 88% 22%, rgba(176,128,58,.16), transparent 60%),
    radial-gradient(70vw 60vh at 50% 92%, rgba(239,230,212,.85), transparent 68%),
    var(--cream);
}

/* ==========================================================================
   Glass utility
   ========================================================================== */
.glass{
  position: relative;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-edge);
}
.glass::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(255,255,255,.9), rgba(255,255,255,0) 42%, rgba(201,162,78,.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ==========================================================================
   Loader
   ========================================================================== */
.loader{
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background:
    radial-gradient(60vw 50vh at 50% 42%, rgba(201,162,78,.16), transparent 65%),
    var(--cream);
  transition: opacity .8s var(--ease), visibility .8s var(--ease);
}
.loader__inner{
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1.6rem;
  padding: 1rem;
}

.loader__logo{
  width: min(52vw, 300px);
  opacity: 0;
  transform: translateY(30px) scale(.94);
  filter: blur(6px);
  animation: loaderIn 1.5s var(--ease) forwards;
}
@keyframes loaderIn{
  to{ opacity: 1; transform: none; filter: blur(0); }
}

.loader__shine{
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.loader__shine::after{
  content: "";
  position: absolute;
  top: -40%;
  left: -60%;
  width: 40%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.85), transparent);
  transform: rotate(18deg);
  animation: sweep 2.6s var(--ease) .7s infinite;
}
@keyframes sweep{
  0%   { left: -60%; }
  55%  { left: 130%; }
  100% { left: 130%; }
}

.loader__bar{
  width: min(46vw, 220px);
  height: 1px;
  background: var(--ink-faint);
  position: relative;
  overflow: hidden;
}
.loader__bar::after{
  content: "";
  position: absolute;
  inset: 0;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, transparent, var(--gold-bright), var(--gold));
  animation: fill 2.6s var(--ease-soft) forwards;
}
@keyframes fill{
  0%   { transform: scaleX(0); }
  70%  { transform: scaleX(.82); }
  100% { transform: scaleX(1); }
}

.loader__word{
  font-family: var(--serif);
  font-style: italic;
  font-size: .95rem;
  letter-spacing: .12em;
  color: var(--ink-mute);
  opacity: 0;
  animation: fadeUp 1.1s var(--ease) .55s forwards;
}
@keyframes fadeUp{
  from{ opacity: 0; transform: translateY(10px); }
  to  { opacity: 1; transform: none; }
}

.loader.is-done{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
body.is-loading{ overflow: hidden; }

/* ==========================================================================
   Header
   ========================================================================== */
.header{
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease),
              backdrop-filter .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-stuck{
  background: linear-gradient(180deg, rgba(247,243,234,.82), rgba(247,243,234,.62));
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom-color: var(--glass-line);
  box-shadow: 0 12px 34px -26px rgba(72,52,26,.5);
}

.header__inner{
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
  height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  transition: height .4s var(--ease);
}
.header.is-stuck .header__inner{ height: 80px; }

.header__brand{ display: block; line-height: 0; }
.header__brand img{
  height: 90px;
  width: auto;
  transition: height .4s var(--ease);
}
.header.is-stuck .header__brand img{ height: 58px; }

.nav__list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: clamp(1.1rem, 2.4vw, 2.4rem);
}
.nav__list a{
  text-decoration: none;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .45rem 0;
  position: relative;
  white-space: nowrap;
  color: var(--ink-soft);
  transition: color .3s var(--ease);
}
.nav__list a:hover,
.nav__list a:focus-visible{ color: var(--ink); }
.nav__list a::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold-deep));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.nav__list a:hover::after,
.nav__list a:focus-visible::after{ transform: scaleX(1); }

.phone-pill{
  justify-self: end;
  text-decoration: none;
  font-size: .78rem;
  letter-spacing: .1em;
  padding: .62rem 1.3rem;
  border-radius: 999px;
  color: var(--gold-deep);
  white-space: nowrap;
  background: var(--glass-bg-soft);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid var(--glass-line);
  box-shadow: inset 0 1px 0 var(--glass-edge);
  transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.phone-pill:hover,
.phone-pill:focus-visible{
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  color: #fff;
  box-shadow: 0 10px 26px -12px rgba(138,95,34,.6);
}

.burger{
  display: none;
  justify-self: end;
  width: 46px; height: 46px;
  background: var(--glass-bg-soft);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-line);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  place-items: center;
  gap: 5px;
}
.burger span{
  display: block;
  width: 20px; height: 1.5px;
  background: var(--ink);
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }

/* ==========================================================================
   Hero — background video behind the brand content
   ========================================================================== */
.hero{
  position: relative;
  isolation: isolate;
  text-align: center;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vh, 4rem) 1.25rem clamp(4rem, 9vh, 6rem);
  overflow: hidden;
}

/* ---------- Video layer ---------- */
.hero__media{
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  /* Shows through before the poster paints, and if the file 404s. */
  background-color: var(--charcoal);
  background-image: url("assets/brand/hero-poster.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero__video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* Anchored bottom-right so the crop always comes off the top-left corner. */
  transform: scale(var(--hero-video-scale));
  transform-origin: 100% 100%;
}

/* Cream scrim: keeps the ink type and gold logo legible over footage while
   letting the video read through the middle of the frame. */
.hero__scrim{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(247,243,234,.90) 0%,
      rgba(247,243,234,.70) 26%,
      rgba(247,243,234,.66) 55%,
      rgba(247,243,234,.82) 82%,
      rgba(247,243,234,.97) 100%),
    radial-gradient(70% 60% at 50% 45%, rgba(247,243,234,.30), transparent 70%);
}

/* ---------- Hero content sits above the media layer ---------- */
.hero__content{
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero__logo img{
  width: min(74vw, 400px);
  margin-inline: auto;
}

.hero__tagline{
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  font-weight: 400;
  margin: .12em 0 .34em;
  background: linear-gradient(178deg, var(--ink) 42%, var(--gold-deep) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__pitch{
  max-width: 33rem;
  margin: 0 auto;
  /* Stronger than --ink-soft: this sits over footage, not flat cream, and
     --ink-soft measured ~4.2:1 against the scrimmed video. */
  color: rgba(44, 33, 22, .88);
  font-size: clamp(.95rem, .4vw + .85rem, 1.06rem);
}

.hero__actions{
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  justify-content: center;
  margin: 2.2rem 0 0;
}

/* ---------- Ornament ---------- */
.ornament{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  margin: 1.5rem auto .2rem;
  max-width: 22rem;
}
.ornament__rule{
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.ornament__rule:last-child{ background: linear-gradient(90deg, var(--gold), transparent); }
.ornament__diamond{
  width: 7px; height: 7px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  flex: none;
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-block;
  text-decoration: none;
  font-size: .78rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  padding: 1rem 2.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              background .35s var(--ease), color .35s var(--ease);
}
.btn--solid{
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 52%, var(--gold-deep));
  color: #fff;
  box-shadow: 0 12px 30px -14px rgba(138,95,34,.65), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn--solid:hover,
.btn--solid:focus-visible{
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -14px rgba(138,95,34,.7), inset 0 1px 0 rgba(255,255,255,.55);
}
.btn--solid::after{
  content: "";
  position: absolute;
  top: -50%; left: -70%;
  width: 45%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
  transform: rotate(20deg);
  transition: left .8s var(--ease);
}
.btn--solid:hover::after{ left: 130%; }

.btn--outline{
  background: var(--glass-bg-soft);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  border-color: var(--glass-line);
  color: var(--gold-deep);
  box-shadow: inset 0 1px 0 var(--glass-edge);
}
.btn--outline:hover,
.btn--outline:focus-visible{
  transform: translateY(-2px);
  color: var(--ink);
  box-shadow: 0 14px 32px -18px rgba(72,52,26,.5), inset 0 1px 0 var(--glass-edge);
}
.btn--block{ width: 100%; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section{ padding: clamp(4.5rem, 10vw, 8rem) 0; position: relative; }

.section--dark{
  background:
    radial-gradient(50vw 50vh at 20% 0%, rgba(201,162,78,.16), transparent 60%),
    radial-gradient(50vw 50vh at 85% 100%, rgba(176,128,58,.13), transparent 60%),
    var(--charcoal);
  color: var(--cream);
}
.section--dark .section__lede{ color: rgba(247,243,234,.66); }
.section--dark .eyebrow{ color: var(--gold-bright); }

.eyebrow{
  font-size: .68rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 1rem;
  font-weight: 500;
}

.section__title{
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  max-width: 20ch;
}

.section__lede{
  max-width: 46ch;
  color: var(--ink-soft);
  margin: 1rem 0 0;
}

/* ---------- Filter chips ---------- */
.chips{
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 2.6rem 0 1.4rem;
}
.chip{
  background: var(--glass-bg-soft);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid var(--glass-line);
  box-shadow: inset 0 1px 0 var(--glass-edge);
  border-radius: 999px;
  padding: .58rem 1.3rem;
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--ink-soft);
  transition: background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.chip:hover{ color: var(--gold-deep); }
.chip.is-active{
  background: linear-gradient(135deg, var(--ink), #3b2c1d);
  border-color: transparent;
  color: var(--cream);
  box-shadow: 0 10px 26px -14px rgba(25,20,16,.7);
}

.filter-status{
  margin: 0 0 1.6rem;
  font-size: .8rem;
  color: var(--ink-mute);
  min-height: 1.4em;
  font-style: italic;
  font-family: var(--serif);
  letter-spacing: .04em;
}

/* ==========================================================================
   Grids
   ========================================================================== */
.grid{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1rem, 2vw, 1.7rem);
}
.grid--mandirs,
.grid--accessories{ grid-template-columns: repeat(4, 1fr); }

.card{ margin: 0; }
.card[hidden]{ display: none; }

.card__btn{
  display: block;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.card__media{
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream-deep);
  aspect-ratio: 3 / 4;
  box-shadow: 0 16px 40px -24px rgba(72,52,26,.6);
  transition: box-shadow .5s var(--ease), transform .5s var(--ease);
}
.card__btn:hover .card__media,
.card__btn:focus-visible .card__media{
  transform: translateY(-4px);
  box-shadow: 0 26px 54px -22px rgba(72,52,26,.62);
}
.card__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease);
}
.card__btn:hover .card__media img,
.card__btn:focus-visible .card__media img{ transform: scale(1.07); }

.card__media::after{
  content: "";
  position: absolute;
  top: -60%;
  left: -130%;
  width: 55%;
  height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  transform: rotate(22deg);
  transition: left .95s var(--ease);
  pointer-events: none;
}
.card__btn:hover .card__media::after,
.card__btn:focus-visible .card__media::after{ left: 130%; }

.card__meta{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem .35rem 0;
}
.card__finish{
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.18rem;
}
.card__view{
  font-size: .64rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.tile{ margin: 0; text-align: center; }

.tile__media{
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream-deep);
  box-shadow: 0 16px 40px -26px rgba(72,52,26,.55);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.tile:hover .tile__media{
  transform: translateY(-4px);
  box-shadow: 0 26px 52px -24px rgba(72,52,26,.6);
}
.tile__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s var(--ease);
}
.tile:hover .tile__media img{ transform: scale(1.06); }

.tile__caption{
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.06rem;
  padding-top: .75rem;
}

/* ==========================================================================
   Size guide — drawn as a scale elevation on a measuring rule

   The plot is a 2.8m tall frame. Each tier's --h is its metres / 2.8, so the
   drawings, the left rule and the door annotation all share one scale.
   Labels live OUTSIDE .elev__plot on purpose: inside it they take height from
   the row and the percentage drawings stop being proportional.
   ========================================================================== */
.elev{
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1.1rem, 3vw, 2.5rem) clamp(1.25rem, 3vw, 1.75rem);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
  border: 1px solid rgba(201,162,78,.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 34px 70px -46px rgba(0,0,0,.85);
}

.elev__plot{
  position: relative;
  height: clamp(230px, 32vh, 320px);
  padding-left: clamp(2.6rem, 5vw, 3.6rem);
}

/* ---------- Left measuring rule ---------- */
.rule{
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: clamp(2.6rem, 5vw, 3.6rem);
  margin: 0; padding: 0;
  list-style: none;
  border-right: 1px solid rgba(201,162,78,.3);
}
.rule__tick{
  position: absolute;
  right: 0;
  bottom: var(--at);
  width: 46%;
  height: 0;
  border-top: 1px solid rgba(201,162,78,.45);
}
.rule__tick span{
  position: absolute;
  right: calc(100% + .45rem);
  top: -.72em;
  font-size: .68rem;
  letter-spacing: .04em;
  color: rgba(247,243,234,.45);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- Door annotation ---------- */
.elev__door{
  position: absolute;
  left: clamp(2.6rem, 5vw, 3.6rem);
  right: 0;
  bottom: 72.9%;
  border-top: 1px dashed rgba(247,243,234,.22);
  pointer-events: none;
}
.elev__door span{
  position: absolute;
  right: 0;
  top: -1.7em;
  font-family: var(--serif);
  font-style: italic;
  font-size: .78rem;
  color: rgba(247,243,234,.4);
  white-space: nowrap;
}

/* ---------- The four elevations ---------- */
.elev__tiers{
  position: relative;
  height: 100%;
  margin: 0; padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* Explicit row: without it the implicit row is auto-sized, the tiers'
     percentage heights resolve against content instead of the plot, and the
     drawings blow past the 2.8m frame. */
  grid-template-rows: 100%;
  align-items: end;
  gap: clamp(.5rem, 2vw, 1.75rem);
  border-bottom: 1px solid rgba(201,162,78,.45);
}

.tier{
  height: var(--h);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
  transform-origin: bottom center;
  transform: scaleY(0);
  transition: transform 1.15s var(--ease);
}
.elev.is-in .tier{ transform: scaleY(1); }
.elev__tiers .tier:nth-child(2){ transition-delay: .09s; }
.elev__tiers .tier:nth-child(3){ transition-delay: .18s; }
.elev__tiers .tier:nth-child(4){ transition-delay: .27s; }

.tier__silhouette{
  height: 100%;
  width: auto;
  max-width: 100%;
  min-height: 0;
  display: block;
  overflow: visible;
}
.tier__body{
  fill: rgba(201,162,78,.16);
  stroke: rgba(201,162,78,.8);
  stroke-width: 1.25;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.tier__finial{ fill: rgba(201,162,78,.9); }

/* ---------- Labels, below the baseline ---------- */
.elev__labels{
  margin: 1.15rem 0 0;
  padding-left: clamp(2.6rem, 5vw, 3.6rem);
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(.5rem, 2vw, 1.75rem);
}
.lbl{ text-align: center; min-width: 0; }

.lbl__height{
  display: block;
  font-family: var(--serif);
  font-size: .9rem;
  color: rgba(247,243,234,.5);
}
.lbl__height b{
  font-weight: 500;
  font-size: 1.55rem;
  color: #e7cf95;
  letter-spacing: -.015em;
}
.lbl__name{
  display: block;
  margin-top: .05rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.06rem;
  color: var(--cream);
}
.lbl__width{
  display: block;
  margin-top: .2rem;
  font-size: .72rem;
  color: rgba(247,243,234,.38);
}

.elev__note{
  margin: clamp(1.4rem, 3vw, 2rem) 0 0;
  font-size: .82rem;
  color: rgba(247,243,234,.4);
  max-width: 52ch;
}

/* ==========================================================================
   Two-column blocks
   ========================================================================== */
.two-col{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.two-col--form{ align-items: start; }
.two-col__media img{ margin-inline: auto; }

/* ---------- Our Craft video panel ---------- */
.craft{
  position: relative;
  margin-inline: auto;
  width: min(100%, 340px);
  aspect-ratio: 405 / 655;          /* the clip's real picture area */
  overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--charcoal);
  background-image: url("assets/brand/hero-poster.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 26px 60px -30px rgba(72,52,26,.62);
}
.craft__video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* Centre origin, not bottom-right: the picture is centred in its frame, so
     the black bars have to be trimmed evenly from both sides. */
  transform: scale(var(--craft-video-scale));
  transform-origin: center;
}
/* Gold hairline + inner highlight, drawn over the footage */
.craft__frame{
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(201,162,78,.34);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    inset 0 0 60px -18px rgba(25,20,16,.55);
}
.two-col__body p{ color: var(--ink-soft); }
.two-col__body .section__title{ margin-bottom: 1.2rem; }

.contact{ margin: 2.4rem 0 0; }
.contact__row{
  border-top: 1px solid var(--ink-faint);
  padding: 1.05rem 0;
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 1rem;
}
.contact dt{
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.contact dd{ margin: 0; }
.contact dd a{ text-decoration-color: var(--ink-faint); text-underline-offset: 3px; }

/* ==========================================================================
   Form
   ========================================================================== */
.form{ padding: clamp(1.5rem, 3.4vw, 2.6rem); }

.field{ margin-bottom: 1.15rem; }

/* Phone and Email share a row on wider screens. min-width:0 on the children
   is what stops a long email value forcing the grid wider than the panel. */
.field-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}
.field-row > .field{ min-width: 0; }
.field-row > .field > input{ min-width: 0; }
.field label{
  display: block;
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: .5rem;
  color: var(--ink-mute);
}
.req{ color: var(--gold-deep); }

.field input,
.field select,
.field textarea{
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: .85rem 1rem;
  background: rgba(255,255,255,.55);
  border: 1px solid var(--glass-line);
  border-radius: 12px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.field textarea{ resize: vertical; min-height: 6.5rem; }

.field input:focus,
.field select:focus,
.field textarea:focus{
  outline: none;
  background: rgba(255,255,255,.8);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,78,.2);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea{ border-color: #a3372c; }

.field__error{
  display: block;
  margin-top: .4rem;
  font-size: .78rem;
  color: #a3372c;
}

.hp{
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form__status{
  margin: 1rem 0 0;
  font-size: .88rem;
  min-height: 1.4em;
}
.form__status.is-ok{ color: #2f6b45; }
.form__status.is-err{ color: #a3372c; }

button[disabled]{ opacity: .6; cursor: progress; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer{
  background:
    radial-gradient(50vw 40vh at 50% 0%, rgba(201,162,78,.12), transparent 62%),
    var(--charcoal);
  color: rgba(247,243,234,.7);
  text-align: center;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}
.footer__plaque{
  width: min(72vw, 260px);
  margin: 0 auto 2rem;
  border-radius: 16px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.08);
  border: 1px solid rgba(201,162,78,.22);
}
.footer__nav{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.7rem;
  margin-bottom: 1.9rem;
}
.footer__nav a{
  text-decoration: none;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: color .3s var(--ease);
}
.footer__nav a:hover{ color: var(--gold-bright); }

.footer__contact{
  margin: 0 0 1.35rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .1rem .85rem;
  font-size: .82rem;
}
.footer__contact a{
  color: rgba(247,243,234,.72);
  text-decoration: none;
  border-bottom: 1px solid rgba(201,162,78,.28);
  padding-bottom: 1px;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.footer__contact a:hover,
.footer__contact a:focus-visible{
  color: var(--gold-bright);
  border-bottom-color: var(--gold-bright);
}
.footer__sep{ color: rgba(201,162,78,.45); }

.footer__line{
  margin: 0;
  font-size: .8rem;
  color: rgba(247,243,234,.46);
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
}
.lightbox[hidden]{ display: none; }

.lightbox__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(25,20,16,.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  animation: fadeIn .35s var(--ease);
}

.lightbox__panel{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(.4rem, 2vw, 1.5rem);
  width: min(100% - 1.5rem, 1100px);
  animation: fadeIn .4s var(--ease);
}
@keyframes fadeIn{ from{ opacity: 0; } to{ opacity: 1; } }

.lightbox__figure{ margin: 0; text-align: center; min-width: 0; }
.lightbox__figure img{
  max-height: 76svh;
  width: auto;
  margin-inline: auto;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.9);
}
.lightbox__figure figcaption{
  color: var(--cream);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.12rem;
  padding-top: 1.05rem;
}
/* A confirmed measurement: same weight as the rest of the caption. */
.lb-size{ white-space: nowrap; }

/* A size-guide tier rather than a measurement. Set apart from a confirmed
   figure: upright instead of italic, letter-spaced caps, slightly dimmer. */
.lb-size--approx{
  font-style: normal;
  font-family: var(--sans, inherit);
  font-size: .82em;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(247,243,234,.72);
}

.lightbox__btn{
  background: rgba(247,243,234,.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(247,243,234,.26);
  color: var(--cream);
  width: 50px; height: 50px;
  border-radius: 999px;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .25s var(--ease), border-color .25s var(--ease);
  flex: none;
}
.lightbox__btn:hover{
  background: rgba(201,162,78,.32);
  border-color: var(--gold-bright);
}
.lightbox__close{
  position: absolute;
  top: -3.8rem;
  right: 0;
  font-size: 1.9rem;
}

/* ==========================================================================
   Scroll reveals — fail-safe (see main.js)
   ========================================================================== */
.js-reveal .reveal{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.js-reveal .reveal.is-in{ opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px){
  :root{ --header-h: 96px; }

  /* 90px of logo in a 96px header leaves no air — ease it off here. */
  .header__brand img{ height: 70px; }
  .header.is-stuck .header__brand img{ height: 54px; }

  .burger{ display: grid; }

  .nav{
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: linear-gradient(180deg, rgba(247,243,234,.96), rgba(247,243,234,.9));
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    border-top: 1px solid var(--glass-line);
    border-bottom: 1px solid var(--glass-line);
    box-shadow: 0 22px 44px -26px rgba(72,52,26,.5);
    display: none;
  }
  .nav.is-open{ display: block; }

  .nav__list{
    flex-direction: column;
    gap: 0;
    padding: .5rem 1.25rem 1.25rem;
  }
  .nav__list li + li{ border-top: 1px solid var(--ink-faint); }
  .nav__list a{ display: block; padding: 1rem 0; font-size: .88rem; }
  .nav__list a::after{ display: none; }

  .phone-pill{ display: none; }

  .grid--mandirs,
  .grid--accessories{ grid-template-columns: repeat(2, 1fr); }

  .two-col{ grid-template-columns: 1fr; }
  .two-col__media{ order: -1; }
  .two-col--form .two-col__media{ order: 0; }

  .contact__row{ grid-template-columns: 1fr; gap: .25rem; }
}

@media (max-width: 620px){
  /* The rule and door annotation need one shared baseline, which two rows
     cannot give, so on phones the drawings shrink but stay in one row. */
  .elev__plot{ height: 190px; padding-left: 2.2rem; }
  .elev__door span{ font-size: .66rem; }
  .rule{ width: 2.2rem; }
  .rule__tick span{ font-size: .6rem; }
  .elev__tiers, .elev__labels{ gap: .4rem; }
  .elev__labels{ padding-left: 2.2rem; }
  .lbl__height b{ font-size: 1.1rem; }
  .lbl__height{ font-size: .74rem; }
  .lbl__name{ font-size: .86rem; }
  .lbl__width{ font-size: .62rem; }
}

@media (max-width: 560px){
  :root{ --header-h: 86px; }

  /* Two inputs side by side get too cramped to type in comfortably. */
  .field-row{ grid-template-columns: 1fr; }

  .wrap{ width: min(100% - 1.75rem, var(--wrap)); }
  .header__inner{ width: min(100% - 1.75rem, var(--wrap)); }

  .header__brand img{ height: 62px; }
  .header.is-stuck .header__brand img{ height: 48px; }

  .hero__actions .btn{ width: 100%; text-align: center; }

  .lightbox__panel{ grid-template-columns: 1fr; gap: .75rem; }
  .lightbox__figure{ order: -1; }
  .lightbox__prev,
  .lightbox__next{ position: absolute; top: 50%; transform: translateY(-50%); }
  .lightbox__prev{ left: .25rem; }
  .lightbox__next{ right: .25rem; }
  .lightbox__figure img{ max-height: 66svh; }
}

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

  *, *::before, *::after{
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .js-reveal .reveal{ opacity: 1; transform: none; }

  /* Poster only — the video elements are removed from the picture entirely.
     .hero__media and .craft already carry the poster as their background. */
  .hero__video,
  .craft__video{ display: none; }
  .loader__logo{ opacity: 1; transform: none; filter: none; }
  .loader__shine::after{ display: none; }
  .card__media::after{ display: none; }
  .btn--solid::after{ display: none; }
  .card__btn:hover .card__media img,
  .card__btn:hover .card__media,
  .tile:hover .tile__media{ transform: none; }
  .tier{ transform: scaleY(1); }
}
