/* ==========================================================================
   ARTGIFT — Home Art Direction (homepage only)
   Loaded exclusively by index.html after style.css.
   Scope: every rule is prefixed with body[data-page="home"] so the other 61
   pages are untouched. All values derive from existing design tokens in
   style.css :root. Rollback = remove the <link> from index.html.
   Direction: "ink on paper, mounted like a gallery scroll" — quiet luxury,
   tactile paper grain, restrained gold, deliberate negative space.
   ========================================================================== */

/* ── 1. Paper grain: a fixed, barely-there fibre texture over light sections ── */
body[data-page="home"]::before{
  content:"";position:fixed;inset:0;z-index:60;pointer-events:none;
  opacity:.05;mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

/* ── 2. Hero: an ink-wash halo + a ghost calligraphic seal ── */
body[data-page="home"] .hero::after{
  background:
    radial-gradient(ellipse 60% 70% at 78% 22%,rgba(155,45,34,.12),transparent 62%),
    radial-gradient(ellipse 90% 80% at 12% 88%,rgba(17,17,17,.92),transparent 72%),
    linear-gradient(90deg,rgba(18,16,14,.88) 0%,rgba(18,16,14,.62) 54%,rgba(18,16,14,.28) 100%)!important;
}
body[data-page="home"] .hero-inner::after{
  content:"墨";position:absolute;z-index:1;pointer-events:none;
  inset-inline-end:clamp(.5rem,4vw,4rem);top:50%;transform:translateY(-46%);
  font-family:var(--serif-zh);font-size:clamp(11rem,30vw,30rem);line-height:1;
  color:rgba(219,202,158,.055);user-select:none;
}
body[data-page="home"] .hero h1{
  letter-spacing:-.035em;line-height:1.02;
  text-shadow:0 2px 30px rgba(0,0,0,.46);
}
body[data-page="home"] .hero h1 .line.two{
  background:linear-gradient(100deg,#FBF6EA 0%,#E8D9B4 46%,#C7A96B 100%);
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;color:transparent;
  text-shadow:none;
}
/* a fine gold rule that draws itself under the eyebrow */
body[data-page="home"] .hero-eyebrow::before{
  width:clamp(52px,7vw,92px);height:1px;
  background:linear-gradient(90deg,var(--gold-lt),transparent);
}
body[data-page="home"] .hero-scroll i{height:54px;animation-duration:2.8s}

/* ── 3. Gallery mounting: hairline frames + soft lift on artwork ── */
body[data-page="home"] .art img{
  outline:1px solid rgba(180,154,99,.28);
  outline-offset:-4px;
  transition:filter .7s var(--ease),outline-color .7s var(--ease);
}
body[data-page="home"] .art:hover img{
  filter:saturate(1.06) brightness(1.04);
  outline-color:rgba(180,154,99,.7);
}
body[data-page="home"] .art-tag{
  border:1px solid rgba(180,154,99,.5);
  background:rgba(18,16,14,.55);backdrop-filter:blur(4px);
  letter-spacing:.14em;
}
body[data-page="home"] .art-open{
  border-color:rgba(180,154,99,.55);color:var(--gold-lt);
  transition:transform .45s var(--ease),background .45s var(--ease);
}
body[data-page="home"] .art:hover .art-open{
  transform:translate(2px,-2px);background:rgba(180,154,99,.16);
}

/* ── 4. Editorial rhythm: section heads breathe, kickers get a diamond ── */
body[data-page="home"] .sec-head.kicker,
body[data-page="home"] .split-head .kicker,
body[data-page="home"] .sec-head > .kicker{letter-spacing:.36em}
body[data-page="home"] .sec-head > .kicker::before{
  content:"◆";color:var(--gold-dk);font-size:.5rem;margin-inline-end:.9rem;vertical-align:1px;
}
body[data-page="home"] .sec-head h2,
body[data-page="home"] .split-head h2{
  letter-spacing:-.03em;line-height:1.06;
}
body[data-page="home"] .intro-side .big-num{
  font-size:clamp(6rem,12vw,12rem);
  -webkit-text-stroke-width:.8px;
}
body[data-page="home"] .vertical-cn{
  letter-spacing:.7em;font-weight:400;
}

/* ── 5. Quote typography: an oversized opening mark ── */
body[data-page="home"] .quote{position:relative;padding-block:.4rem}
body[data-page="home"] .quote::before{
  content:"“";position:absolute;inset-inline-start:-.05em;top:-.55em;
  font-family:var(--serif);font-size:5.2rem;line-height:1;
  color:rgba(180,154,99,.22);pointer-events:none;
}
body[data-page="home"] .stone .quote::before{color:rgba(180,154,99,.3)}

/* ── 6. Fact bar & trust: instrument-like, restrained ── */
body[data-page="home"] .facts-bar > .wrap > div{
  position:relative;
}
body[data-page="home"] .facts-bar > .wrap > div::before{
  content:"";position:absolute;inset-inline-start:0;top:.2rem;
  width:3px;height:3px;background:var(--gold-dk);transform:rotate(45deg);
}
body[data-page="home"] .facts-bar > .wrap > div:first-child::before{display:none}
body[data-page="home"] .trust div{letter-spacing:.28em}

/* ── 7. Film cards: cinematic letterbox feel ── */
body[data-page="home"] .film-frame::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  box-shadow:inset 0 0 0 1px rgba(219,202,158,.18),inset 0 -40px 50px -30px rgba(0,0,0,.7);
}
body[data-page="home"] .film-card figcaption .t{letter-spacing:.01em}

/* ── 8. Insight & occasion cards: quiet hover lift ── */
body[data-page="home"] .insight-card,
body[data-page="home"] .occ-card{
  transition:transform .55s var(--ease);
}
body[data-page="home"] .insight-card:hover,
body[data-page="home"] .occ-card:hover{transform:translateY(-4px)}
body[data-page="home"] .insight-card .kicker{color:var(--gold-dk)}

/* ── 9. Entrance: a single, deliberate hero reveal (reduced-motion safe) ── */
@keyframes artInkIn{
  from{opacity:0;transform:translateY(18px);filter:blur(6px)}
  to{opacity:1;transform:none;filter:blur(0)}
}
body[data-page="home"] .hero-top,
body[data-page="home"] .hero h1,
body[data-page="home"] .hero-sub,
body[data-page="home"] .hero-service,
body[data-page="home"] .hero-actions{
  animation:artInkIn .95s var(--ease) both;
}
body[data-page="home"] .hero h1{animation-delay:.08s}
body[data-page="home"] .hero-sub{animation-delay:.18s}
body[data-page="home"] .hero-service{animation-delay:.26s}
body[data-page="home"] .hero-actions{animation-delay:.34s}

/* ── 10. Seals: a soft stamp shadow, as if pressed into paper ── */
body[data-page="home"] .seal{
  box-shadow:0 0 0 1px rgba(155,45,34,.35) inset,
             0 0 0 3px rgba(155,45,34,.08),
             0 6px 14px -10px rgba(120,30,22,.8);
}

/* ── RTL: mirror the directional accents ── */
html[dir="rtl"] body[data-page="home"] .hero-inner::after{inset-inline-end:auto;left:clamp(.5rem,4vw,4rem)}
html[dir="rtl"] body[data-page="home"] .sec-head > .kicker::before{margin-inline-end:0;margin-inline-start:.9rem}
html[dir="rtl"] body[data-page="home"] .quote::before{inset-inline-start:auto;right:-.05em}
html[dir="rtl"] body[data-page="home"] .facts-bar > .wrap > div::before{inset-inline-start:auto;right:0}

/* ── Reduced motion: honour the visitor's preference ── */
@media(prefers-reduced-motion:reduce){
  body[data-page="home"] .hero-top,
  body[data-page="home"] .hero h1,
  body[data-page="home"] .hero-sub,
  body[data-page="home"] .hero-service,
  body[data-page="home"] .hero-actions{animation:none}
  body[data-page="home"] .art img,
  body[data-page="home"] .art-open,
  body[data-page="home"] .insight-card,
  body[data-page="home"] .occ-card{transition:none}
  body[data-page="home"] .hero-scroll i{animation:none}
}

/* ── Small screens: keep the ghost mark subtle, avoid overflow ── */
@media(max-width:600px){
  body[data-page="home"] .hero-inner::after{font-size:9rem;opacity:.5;top:58%}
  body[data-page="home"] .quote::before{font-size:3.6rem;top:-.35em}
  body[data-page="home"] .art img{outline-offset:-3px}
}

/* ── 11. Layout fix: reserve room for the fixed header above hero content ──
   The hero is bottom-aligned in a 100svh box; when copy is long the eyebrow
   can ride up under the header. A top inset keeps it clear at any height. ── */
body[data-page="home"] .hero{
  padding-top:clamp(7rem,14vh,10rem);
}
body[data-page="home"] .hero-inner{
  padding-top:clamp(1rem,3vh,2.5rem);
}
@media(max-width:900px){
  body[data-page="home"] .hero{padding-top:clamp(6rem,12vh,8rem)}
}
@media(max-width:600px){
  body[data-page="home"] .hero{padding-top:5.5rem}
  body[data-page="home"] .hero-inner{padding-top:.5rem}
}

/* ── 12. Two-line slogan: honour the explicit line break in home.res.h ── */
body[data-page="home"] [data-i18n="home.res.h"]{
  white-space:pre-line;
  line-height:1.32;
  letter-spacing:.01em;
}

/* ── 13. Top-right MENU index (homepage only) ─────────────────────────── */
body[data-page="home"] .home-menu-btn{
  display:inline-flex;align-items:center;gap:.55rem;flex:0 0 auto;
  border:1px solid currentColor;padding:.5rem .8rem;background:transparent;
  color:inherit;cursor:pointer;transition:background .3s var(--ease),color .3s var(--ease);
}
body[data-page="home"] .home-menu-btn:hover,
body[data-page="home"] .home-menu-btn[aria-expanded="true"]{background:var(--gold);border-color:var(--gold);color:var(--deep)}
body[data-page="home"] .site-head.solid .home-menu-btn[aria-expanded="true"]{color:#fff}
body[data-page="home"] .hm-label{font-family:var(--sans);font-size:.62rem;letter-spacing:.28em;font-weight:600}
body[data-page="home"] .hm-icon{display:flex;flex-direction:column;gap:4px;width:16px}
body[data-page="home"] .hm-icon i{display:block;height:1px;background:currentColor;transition:transform .35s var(--ease)}
body[data-page="home"] .home-menu-btn[aria-expanded="true"] .hm-icon i:first-child{transform:translateY(2.5px) rotate(45deg)}
body[data-page="home"] .home-menu-btn[aria-expanded="true"] .hm-icon i:last-child{transform:translateY(-2.5px) rotate(-45deg)}

body[data-page="home"] .home-menu-panel{
  position:absolute;top:calc(100% - .2rem);inset-inline-end:var(--pad);
  width:clamp(300px,34vw,470px);z-index:90;
  background:var(--paper);color:var(--ink);
  border:1px solid var(--gold-line);box-shadow:0 24px 70px rgba(17,17,17,.18);
  padding:clamp(1.4rem,2.4vw,2.1rem);
  opacity:0;visibility:hidden;transform:translateY(-8px);
  transition:opacity .35s var(--ease),transform .35s var(--ease),visibility .35s;
}
body[data-page="home"] .home-menu-panel.open{opacity:1;visibility:visible;transform:none}
body[data-page="home"] .hm-head{padding-bottom:1rem;border-bottom:1px solid var(--line);margin-bottom:1rem}
body[data-page="home"] .hm-kicker{display:block;font-size:.58rem;letter-spacing:.26em;color:var(--gold-dk);margin-bottom:.35rem}
body[data-page="home"] .hm-title{font-family:var(--serif);font-size:1.9rem;font-style:italic;line-height:1}
body[data-page="home"] .hm-grid{display:grid;grid-template-columns:1fr 1fr;gap:.1rem 1.2rem}
body[data-page="home"] .hm-grid a{
  display:flex;align-items:baseline;gap:.7rem;padding:.5rem 0;
  font-size:.82rem;letter-spacing:.02em;color:var(--ink);border-bottom:1px solid transparent;
  transition:color .25s,border-color .25s;
}
body[data-page="home"] .hm-grid a:hover{color:var(--cinnabar);border-bottom-color:var(--gold-line)}
body[data-page="home"] .hm-grid em{font-family:var(--serif);font-size:.72rem;font-style:normal;color:var(--gold-dk);min-width:1.5rem}
body[data-page="home"] .hm-cta{
  display:flex;align-items:center;justify-content:space-between;margin-top:1.2rem;padding-top:1rem;
  border-top:1px solid var(--line);font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:var(--cinnabar)
}
body[data-page="home"] .hm-cta .arrow{font-size:1rem}
@media(max-width:900px){
  body[data-page="home"] .menu-btn{display:none!important}
  body[data-page="home"] .home-menu-panel{width:auto;inset-inline:var(--pad);top:100%}
  body[data-page="home"] .hm-grid{grid-template-columns:1fr}
}
@media(max-width:600px){
  body[data-page="home"] .hm-label{font-size:.54rem;letter-spacing:.16em}
  body[data-page="home"] .home-menu-btn{padding:.4rem .55rem;gap:.4rem}
}

/* ── 14. Compact footer on homepage: drop the three link columns ──────── */
body[data-page="home"] .site-foot{padding-top:clamp(2.6rem,4vw,4rem)}
body[data-page="home"] .foot-grid{grid-template-columns:1fr;gap:0;padding-bottom:clamp(1.8rem,3vw,2.6rem)}
body[data-page="home"] .foot-col{display:none}
body[data-page="home"] .foot-brand p{max-width:38ch}
body[data-page="home"] .foot-seal{margin-top:1.4rem;padding-top:1.1rem}
body[data-page="home"] .foot-bottom{padding-block:1.1rem}
