/* =========================================================
   ANTIQUE HOME — VASE & DECOR
   Hero section · mobile-first
   ========================================================= */

:root{
  /* warm neutral palette */
  --cream:      #F6F1E8;
  --champagne:  #E3D5BC;
  --gold:       #C9B48A;
  --sand:       #BFAE93;
  --warm-brown: #4A3B2E;
  --ink:        #1C1611;

  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans:  "Jost", "Helvetica Neue", Arial, sans-serif;

  /* horizontal rhythm — one gutter for header, copy and footer */
  --gutter: 26px;

  /* header sits a little lower than the very top (per brief) */
  --header-top: 26px;

  /* true optical width of the cropped logo mark */
  --logo-w: clamp(124px, 35vw, 158px);

  --ease: cubic-bezier(.22,.61,.36,1);
}

*,
*::before,
*::after{ box-sizing:border-box; }

html{ -webkit-text-size-adjust:100%; }

body{
  margin:0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-weight:300;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }

/* =========================================================
   HERO SHELL
   ========================================================= */

.hero{
  position:relative;
  width:100%;
  min-height:100svh;
  min-height:100dvh;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  isolation:isolate;
}

@supports not (min-height:100svh){
  .hero{ min-height:100vh; }
}

/* ---------- video ---------- */

.hero__media{
  position:absolute;
  inset:0;
  z-index:0;
}

.hero__video{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
  /* gently warm the footage without washing it out */
  filter: saturate(1.02) contrast(1.02);
  transform: scale(1.04);
  animation: kenburns 26s var(--ease) infinite alternate;
}

@keyframes kenburns{
  from{ transform: scale(1.04); }
  to  { transform: scale(1.12); }
}

/* ---------- warm readability veil ---------- */

.hero__tint{
  position:absolute;
  inset:0;
  /* warm scrim behind the copy column only — keeps the type legible
     wherever the footage runs bright */
  background:
    linear-gradient(
      100deg,
      rgba(26,18,12,.44) 0%,
      rgba(26,18,12,.20) 46%,
      rgba(26,18,12,0)   82%
    );
}

/* ---------- soft black shadow: top, bottom & sides ---------- */

.hero__vignette{
  position:absolute;
  inset:0;
  /* a single soft shadow across the crown of the frame — nothing on the
     sides or the base, so the footage stays open */
  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,.52) 0%,
      rgba(0,0,0,.30) 9%,
      rgba(0,0,0,.13) 17%,
      rgba(0,0,0,0)   26%
    );
  pointer-events:none;
}

/* =========================================================
   HEADER
   ========================================================= */

/* One row at every size: menu · mark · utilities.
   Fixed side tracks so the centred mark stays optically centred and
   can never inflate the columns and shunt the icons off-screen. */
.header{
  position:relative;
  z-index:3;
  display:grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  grid-template-areas: "menu brand actions";
  align-items:center;
  column-gap:16px;
  padding:
    calc(var(--header-top) + env(safe-area-inset-top, 0px))
    var(--gutter) 0;
}

/* ---------- logo ---------- */

/* The supplied artwork is a 500×500 canvas whose ink only occupies
   77–420 × 119–381. The frame below crops that dead transparency away
   so --logo-w is the mark's TRUE optical width — it reads large without
   the empty padding stealing vertical room from the hero. */
.brand{
  grid-area:brand;
  justify-self:center;
  position:relative;
  display:block;
  width: var(--logo-w);
  max-width:100%;
  aspect-ratio: 343 / 262;
  overflow:hidden;
  opacity:0;
  animation: logoIn 1.5s var(--ease) .1s forwards;
}

.brand__logo,
.brand__shine{
  position:absolute;
  width:145.77%;          /* 500 / 343 */
  max-width:none;
  left:-22.45%;           /* -77 / 343 */
  top:-45.42%;            /* -119 / 262 of the box height */
}

.brand__logo{
  height:auto;            /* square source → 145.77% of the box WIDTH */
  /* dark ink artwork → champagne gold ≈ #E4C792. Deliberately kept
     below white so the sweep below has room to read as a glint. */
  filter:
    brightness(0) saturate(100%) invert(84%) sepia(22%)
    saturate(520%) hue-rotate(358deg) brightness(94%) contrast(90%)
    drop-shadow(0 2px 14px rgba(0,0,0,.45));
}

/* ---------- gold light sweeping the letterforms ----------
   The logo art masks a moving gold band, so the glint rides the
   strokes of each letter instead of washing over a rectangle. */
.brand__shine{
  /* height % resolves against the box HEIGHT, so it needs its own
     figure to land the mask exactly on the artwork: 145.77 / 76.38 */
  height:190.84%;
  pointer-events:none;
  background:
    linear-gradient(
      100deg,
      rgba(255,236,190,0)   36%,
      rgba(255,240,203,.45) 45%,
      rgba(255,252,238,1)   50%,
      rgba(255,240,203,.45) 55%,
      rgba(255,236,190,0)   64%
    );
  background-size: 260% 100%;
  background-repeat:no-repeat;
  mix-blend-mode: screen;

  -webkit-mask-image: url("logo hero.png");
          mask-image: url("logo hero.png");
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;

  animation: goldSweep 6.5s var(--ease) 1.6s infinite;
}

@keyframes goldSweep{
  0%       { background-position: 170% 0; }
  38%, 100%{ background-position: -70% 0; }
}

@keyframes logoIn{
  from{ opacity:0; transform: translateY(-8px); }
  to  { opacity:1; transform:none; }
}

/* ---------- icons ---------- */

.header__actions{
  grid-area:actions;
  justify-self:end;
  display:flex;
  align-items:center;
  gap:0;                /* the three utility icons sit close together */
  margin-right:-7px;    /* optical: pull icon padding back to the gutter */
}

.menu-btn{
  grid-area:menu;
  justify-self:start;
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin-left:-8px;
}

.menu-btn__label{
  font-family: var(--sans);
  font-size:10.5px;
  font-weight:400;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:inherit;
  text-shadow: 0 1px 6px rgba(0,0,0,.45);
}

/* the icon row now sits on the logo's own line, optically centred */
.header__actions,
.menu-btn{
  margin-top: 0;
}

.icon-btn{
  appearance:none;
  -webkit-appearance:none;
  background:none;
  border:0;
  padding:7px;
  margin:0;
  cursor:pointer;
  color: var(--cream);
  line-height:0;
  border-radius:2px;
  opacity:0;
  animation: fadeIn 1.1s var(--ease) .35s forwards;
  transition: color .4s var(--ease), transform .4s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

/* a faint, ever-so-slow gold breath — reads as quiet ambient light,
   not a distraction */
.icon-btn svg{
  width:20px;
  height:20px;
  fill:none;
  stroke: currentColor;
  stroke-width:1.15;
  stroke-linecap:round;
  stroke-linejoin:round;
  animation: iconGlowSvg 4.8s ease-in-out infinite;
}

.header__actions .icon-btn:nth-child(1) svg{ animation-delay: 0s;    }
.header__actions .icon-btn:nth-child(2) svg{ animation-delay: .5s;   }
.header__actions .icon-btn:nth-child(3) svg{ animation-delay: 1s;    }

@keyframes iconGlowSvg{
  0%,100%{ filter: drop-shadow(0 1px 6px rgba(0,0,0,.45)); }
  50%    { filter: drop-shadow(0 0 7px rgba(201,180,138,.5)) drop-shadow(0 1px 6px rgba(0,0,0,.4)); }
}

@media (hover:hover){
  .icon-btn:hover{ color: var(--gold); transform: translateY(-2px) scale(1.12); }
  .icon-btn:hover svg{ animation-play-state:paused; filter: drop-shadow(0 0 9px rgba(201,180,138,.65)); }
}
.icon-btn:active{ color: var(--gold); transform: scale(.88); }
.icon-btn:focus-visible{ outline:1px solid var(--gold); outline-offset:3px; }

/* hamburger */
.menu-btn__lines{
  display:block;
  width:19px;
}
.menu-btn__lines span{
  display:block;
  height:1.1px;
  background: currentColor;
  border-radius:2px;
  transition: width .4s var(--ease);
  animation: iconGlowLine 4.8s ease-in-out infinite;
}
.menu-btn__lines span:nth-child(2){ animation-delay:.16s; }
.menu-btn__lines span:nth-child(3){ animation-delay:.32s; }

@keyframes iconGlowLine{
  0%,100%{ box-shadow: 0 1px 6px rgba(0,0,0,.45); }
  50%    { box-shadow: 0 0 7px rgba(201,180,138,.55); }
}

.menu-btn__lines span + span{ margin-top:6px; }
.menu-btn__lines span:nth-child(1){ width:100%; }
.menu-btn__lines span:nth-child(2){ width:100%; }
.menu-btn__lines span:nth-child(3){ width:100%; }

@media (hover:hover){
  .menu-btn:hover{ transform: scale(1.08); }
  .menu-btn:hover .menu-btn__lines span{ animation-play-state:paused; box-shadow: 0 0 8px rgba(201,180,138,.6); }
  .menu-btn:hover .menu-btn__lines span:nth-child(2){ width:64%; }
  .menu-btn:hover .menu-btn__lines span:nth-child(3){ width:80%; }
  .menu-btn:hover .menu-btn__label{ color: var(--gold); }
}
.menu-btn:active{ transform: scale(.9); }

/* cart badge */
.cart-btn{ position:relative; }
.cart-btn__count{
  position:absolute;
  top:1px;
  right:1px;
  min-width:16px;
  height:16px;
  padding:0 4px;
  border-radius:999px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--sans);
  font-size:10px;
  font-weight:400;
  line-height:16px;
  text-align:center;
  letter-spacing:0;
}

@keyframes fadeIn{ to{ opacity:1; } }

/* =========================================================
   HERO COPY
   ========================================================= */

.hero__inner{
  position:relative;
  z-index:2;
  flex:1 1 auto;
  min-height:0;
  display:flex;
  align-items:center;
  /* reserve room at the base so the CTA never collides with the
     scroll cue sitting fixed to the bottom of the hero */
  padding: 0 var(--gutter) 58px;
}

.hero__copy{
  max-width: 30ch;
  /* pulled slightly above true centre, as in the reference */
  margin-bottom: 4vh;
}

/* ---------- eyebrow ---------- */

.eyebrow{
  display:flex;
  align-items:center;
  gap:14px;
  margin:0 0 20px;
  font-family: var(--sans);
  font-size:11px;
  font-weight:300;
  letter-spacing:.34em;
  text-transform:uppercase;
  color: var(--champagne);
  text-shadow: 0 1px 3px rgba(0,0,0,.55), 0 2px 16px rgba(0,0,0,.5);
}

/* a rule on either side of the word, fading out from the text */
.eyebrow__rule{
  width:26px;
  height:1px;
  background: rgba(227,213,188,.85);
  flex:none;
}
.eyebrow__rule:first-child{
  background: linear-gradient(to right, rgba(227,213,188,0), rgba(227,213,188,.85));
}
.eyebrow__rule:last-child{
  background: linear-gradient(to left, rgba(227,213,188,0), rgba(227,213,188,.85));
}

/* ---------- headline ---------- */

/* Sentence case set in small caps, with a taller capital leading each
   line — the editorial "drop-cap" treatment from the reference. */
.headline{
  margin:0 0 22px;
  font-family: var(--serif);
  font-weight:300;
  font-size: clamp(32px, 9.2vw, 44px);
  line-height:1.1;
  letter-spacing:.01em;
  font-variant-caps: small-caps;
  color: var(--cream);
  text-shadow: 0 1px 2px rgba(0,0,0,.3), 0 3px 28px rgba(0,0,0,.42);
}

.headline span{ display:block; white-space:nowrap; }

.headline span::first-letter{
  font-size:1.16em;
}

.headline__accent{
  font-style:italic;
  font-weight:300;
  color: var(--champagne);
  text-shadow: 0 1px 2px rgba(0,0,0,.35), 0 3px 26px rgba(0,0,0,.4);
}

/* ---------- description ---------- */

.hero__text{
  margin:0 0 34px;
  max-width: 34ch;
  font-family: var(--sans);
  font-size:12.5px;
  font-weight:300;
  line-height:1.75;
  letter-spacing:.055em;
  color: rgba(246,241,232,.9);
  text-shadow: 0 1px 3px rgba(0,0,0,.5), 0 2px 18px rgba(0,0,0,.45);
  text-wrap: pretty;
}

/* ---------- CTA ---------- */

.cta{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-width:172px;
  padding:11px 15px;
  color: var(--champagne);
  font-family: var(--sans);
  font-size:8.5px;
  font-weight:400;
  letter-spacing:.18em;
  text-transform:uppercase;
  white-space:nowrap;
  overflow:hidden;
  isolation:isolate;

  /* a clean hairline of gold — no glass fill, matching the reference's
     plain outlined mark */
  border:1px solid rgba(201,180,138,.75);
  background: transparent;
  box-shadow: 0 0 20px rgba(201,180,138,.08);

  transition:
    color .55s var(--ease),
    border-color .55s var(--ease),
    box-shadow .55s var(--ease),
    background-color .55s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

/* gold wash that rises on hover */
.cta::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:
    linear-gradient(
      100deg,
      rgba(201,180,138,.92) 0%,
      rgba(227,213,188,.98) 48%,
      rgba(201,180,138,.92) 100%
    );
  opacity:0;
  transform: translateY(38%);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}

/* the travelling gold sheen — always alive, very faint */
.cta__sheen{
  position:absolute;
  top:0;
  left:0;
  width:60%;
  height:100%;
  z-index:-1;
  pointer-events:none;
  background:
    linear-gradient(
      100deg,
      rgba(255,240,205,0)   0%,
      rgba(255,240,205,.16) 42%,
      rgba(255,248,228,.34) 50%,
      rgba(255,240,205,.16) 58%,
      rgba(255,240,205,0)   100%
    );
  animation: ctaSheen 5.5s var(--ease) 2s infinite;
}

@keyframes ctaSheen{
  0%       { transform: translateX(-105%); }
  45%, 100%{ transform: translateX(275%); }
}

.cta__label,
.cta__arrow{ position:relative; }

.cta__arrow{ line-height:0; }
.cta__arrow svg{
  width:18px;
  height:8px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.1;
  stroke-linecap:round;
  stroke-linejoin:round;
  transition: transform .45s var(--ease);
}

@media (hover:hover){
  .cta:hover{
    color: var(--ink);
    border-color: rgba(227,213,188,.95);
    background-color: transparent;
    box-shadow:
      inset 0 0 0 rgba(201,180,138,0),
      0 0 34px rgba(201,180,138,.28);
  }
  .cta:hover::before{ opacity:1; transform:none; }
  .cta:hover .cta__sheen{ animation-play-state:paused; opacity:0; }
  .cta:hover .cta__arrow svg{ transform: translateX(5px); }
}
.cta:active{ transform: scale(.985); }
.cta:focus-visible{ outline:1px solid var(--gold); outline-offset:4px; }

/* =========================================================
   SCROLL CUE
   ========================================================= */

.hero__scroll{
  position:absolute;
  /* centred via inline margins, not transform: translateX — the
     .reveal fade-in already animates `transform` (its slide-up),
     and an animated shorthand would silently replace this centring */
  left:0;
  right:0;
  margin-inline:auto;
  width:max-content;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  color: rgba(246,241,232,.82);
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
  transition: color .35s var(--ease);
}

.hero__scroll-label{
  font-family: var(--sans);
  font-size:8.5px;
  font-weight:300;
  letter-spacing:.24em;
  text-transform:uppercase;
  /* letter-spacing pads a trailing gap after the last glyph too —
     pull it back so the label sits truly centred, not shifted right */
  margin-right:-.24em;
}

@media (hover:hover){
  .hero__scroll:hover{ color: var(--gold); }
}

.hero__scroll-arrow{
  width:13px;
  height:21px;
  fill:none;
  stroke:currentColor;
  stroke-width:1;
  stroke-linecap:round;
  stroke-linejoin:round;
  animation: scrollBounce 2.2s var(--ease) infinite;
}

@keyframes scrollBounce{
  0%,100%{ transform: translateY(0);   opacity:.55; }
  50%    { transform: translateY(6px); opacity:1;   }
}

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */

.reveal{
  opacity:0;
  transform: translateY(14px);
  animation: revealUp 1.15s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes revealUp{
  to{ opacity:1; transform:none; }
}

/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 380px){
  :root{ --gutter:18px; --header-top:18px; --logo-w: clamp(110px, 31vw, 130px); }
  /* trim the utilities so the mark keeps real air beside them */
  .header{ column-gap:14px; }
  .icon-btn{ padding:6px; }
  .icon-btn svg{ width:18px; height:18px; }
  .menu-btn__lines{ width:17px; }
  .menu-btn__label{ font-size:9.5px; }
  .menu-btn{ gap:6px; }
  .headline{ font-size: clamp(30px, 9.4vw, 39px); }
  .hero__text{ font-size:11.8px; line-height:1.7; margin-bottom:26px; }
  .cta{ min-width:156px; padding:9px 13px; gap:11px; font-size:8px; }
}

/* short phones — keep everything on one screen */
@media (max-height: 720px) and (max-width: 900px){
  :root{ --header-top:14px; --logo-w: clamp(110px, 31vw, 138px); }
  .hero__copy{ margin-bottom:2vh; }
  .headline{ font-size: clamp(28px, 8.4vw, 37px); margin-bottom:16px; }
  .eyebrow{ margin-bottom:16px; }
  .hero__text{ margin-bottom:26px; line-height:1.7; }
}

/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 700px){
  :root{ --gutter:48px; --header-top:30px; --logo-w: clamp(180px, 23vw, 236px); }

  /* enough width now for the reference's single line:
     menu · large mark · utilities */


  .header__actions{ gap:4px; margin-right:-9px; }
  .icon-btn{ padding:9px; }
  .icon-btn svg{ width:23px; height:23px; }
  .menu-btn__lines{ width:24px; }
  .menu-btn__label{ font-size:11px; }
  .menu-btn{ gap:9px; }

  .hero__copy{ max-width:none; margin-bottom:3vh; }
  .headline{ font-size: clamp(48px, 6.6vw, 66px); }
  .hero__text{ font-size:13.5px; max-width:52ch; line-height:1.8; }
  .eyebrow{ font-size:12px; margin-bottom:26px; }
  .cta{ min-width:198px; padding:13px 18px; font-size:9.5px; gap:18px; letter-spacing:.18em; }

}

/* =========================================================
   DESKTOP / LAPTOP
   ========================================================= */

@media (min-width: 1024px){
  :root{ --gutter:64px; --header-top:32px; --logo-w: clamp(212px, 16vw, 262px); }



  .header__actions{ gap:6px; }
  .menu-btn{ gap:10px; }
  .menu-btn__label{ font-size:11.5px; }

  .hero__inner{ align-items:center; min-height:0; }
  .hero__copy{ margin-bottom:2vh; }

  .headline{ font-size: clamp(56px, 4.6vw, 80px); line-height:1.02; margin-bottom:24px; }
  .hero__text{
    font-size:13.5px;
    line-height:1.8;
    max-width:50ch;
    margin-bottom:36px;
  }
  .cta{ min-width:180px; padding:12px 17px; font-size:9px; gap:16px; letter-spacing:.18em; }



  /* side shadow gets softer on wide screens so the footage breathes */
  .hero__vignette{
    background:
      linear-gradient(to right,  rgba(0,0,0,.30) 0%, rgba(0,0,0,0) 16%),
      linear-gradient(to left,   rgba(0,0,0,.26) 0%, rgba(0,0,0,0) 16%),
      linear-gradient(to bottom, rgba(0,0,0,.36) 0%, rgba(0,0,0,0) 20%),
      linear-gradient(to top,    rgba(0,0,0,.32) 0%, rgba(0,0,0,0) 18%);
    box-shadow: inset 0 0 220px 70px rgba(0,0,0,.20);
  }

  .hero__tint{
    background:
      linear-gradient(
        to right,
        rgba(28,20,13,.48) 0%,
        rgba(28,20,13,.22) 46%,
        rgba(28,20,13,.10) 100%
      ),
      linear-gradient(
        to bottom,
        rgba(28,20,13,.34) 0%,
        rgba(28,20,13,.06) 34%,
        rgba(26,18,12,.30) 100%
      );
  }
}

@media (min-width: 1600px){
  :root{ --gutter:88px; --logo-w: clamp(250px, 14vw, 292px); }
  .headline{ font-size: clamp(76px, 4.4vw, 96px); }
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce){
  .reveal,
  .brand,
  .brand__shine,
  .icon-btn,
  .icon-btn svg,
  .menu-btn__lines span,
  .hero__scroll-arrow{
    animation:none !important;
    opacity:1 !important;
    transform:none !important;
  }
  .hero__video{ animation:none; transform:none; }
  *{ transition-duration:.01ms !important; }
}
