/* ============================================================
   集稼设计 · JIJIA HIGH DESIGN
   Visual language: editorial, generous whitespace, warm neutrals
   Fonts: Noto Serif SC / Noto Sans SC / Cormorant Garamond / Inter
   ============================================================ */

:root {
  --ivory: #f7f4ef;
  --paper: #ffffff;
  --sand: #efe9e0;
  --ink: #23201c;
  --ink-soft: #6e665c;
  --ink-faint: #a89e90;
  --line: #e3dbd0;
  --accent: #9c7a52;       /* warm bronze / clay */
  --accent-deep: #6f5436;
  --sage: #4a554b;
  --maxw: 1280px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; scroll-padding-top: 92px; }

body {
  font-family: "Inter", "Noto Sans SC", system-ui, sans-serif;
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.75;
  font-weight: 300;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* keyboard focus visibility (accessibility) */
a:focus-visible, button:focus-visible, .burger:focus-visible,
input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px;
}

/* ---------- Typography helpers ---------- */
.serif-cn { font-family: "Noto Serif SC", serif; }
.display-en { font-family: "Cormorant Garamond", serif; font-weight: 500; letter-spacing: .04em; }

.eyebrow {
  font-family: "Cormorant Garamond", serif;
  font-size: 14px;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 34px; height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 14px;
}

.section-title {
  font-family: "Noto Serif SC", serif;
  font-weight: 500;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.25;
  letter-spacing: .02em;
}
.section-title .en {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: .42em;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 10px;
  font-weight: 400;
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
section { position: relative; }
.section-pad { padding: clamp(80px, 11vw, 160px) 0; }

/* ============================================================
   NAV
   ============================================================ */
header.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 40px;
  transition: background .5s var(--ease), padding .5s var(--ease), box-shadow .5s var(--ease);
}
header.nav.solid {
  padding: 14px 40px;
  background: rgba(247,244,239,.96);
  box-shadow: 0 1px 0 var(--line);
}
/* Frosted glass on the scrolled state — desktop only.
   Kept out of the mobile breakpoint on purpose: backdrop-filter creates a
   containing block for fixed descendants, which previously broke the
   full-screen mobile menu. Mobile keeps the solid rgba fallback. */
@media (min-width: 761px) {
  header.nav.solid {
    background: rgba(247,244,239,.66);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    backdrop-filter: blur(16px) saturate(1.2);
    box-shadow: 0 1px 0 var(--line), 0 10px 34px rgba(35,32,28,.07);
  }
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; transition: color .5s var(--ease); }
header.nav.solid .brand { color: var(--ink); }
.brand .glyph { width: 30px; height: 30px; flex: none; }
.brand .name-cn { font-family: "Noto Serif SC", serif; font-size: 21px; font-weight: 500; letter-spacing: .12em; }
.brand .name-en {
  font-family: "Cormorant Garamond", serif; font-size: 12px;
  letter-spacing: .3em; text-transform: uppercase; opacity: .8;
}

.nav-links { display: flex; gap: 38px; align-items: center; }
.nav-links a {
  font-size: 14px; letter-spacing: .14em; color: #fff; font-weight: 300;
  position: relative; padding: 4px 0; transition: color .4s var(--ease);
}
header.nav.solid .nav-links a { color: var(--ink); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--accent); transition: width .4s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--accent); }
header.nav.solid .nav-links a:hover { color: var(--accent); }

.nav-cta {
  border: 1px solid rgba(255,255,255,.55); color: #fff;
  padding: 9px 20px; border-radius: 40px; font-size: 13px; letter-spacing: .12em;
  transition: all .4s var(--ease);
}
header.nav.solid .nav-cta { border-color: var(--ink); color: var(--ink); }
.nav-cta:hover { background: var(--accent); border-color: var(--accent); color: #fff !important; }

.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.burger span { width: 24px; height: 1.5px; background: #fff; transition: .4s var(--ease); }
header.nav.solid .burger span { background: var(--ink); }

/* ============================================================
   HERO
   ============================================================ */
.hero { height: 100vh; height: 100svh; min-height: 560px; position: relative; overflow: hidden; background: var(--ink); }
.hero .slides { position: absolute; inset: 0; }
.hero .slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.4s var(--ease);
}
.hero .slide.active { opacity: 1; animation: slowZoom 9s ease-out forwards; }
@keyframes slowZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,15,.42) 0%, rgba(20,18,15,.15) 35%, rgba(20,18,15,.55) 100%); }
.hero-inner {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center; color: #fff; padding: 0 24px;
  text-shadow: 0 2px 24px rgba(0,0,0,.42);
}
.hero .kicker {
  font-family: "Cormorant Garamond", serif; letter-spacing: .5em; text-transform: uppercase;
  font-size: 14px; opacity: 0; animation: fadeUp 1s var(--ease) .3s forwards;
}
.hero h1 {
  font-family: "Noto Serif SC", serif; font-weight: 500;
  font-size: clamp(48px, 9vw, 116px); letter-spacing: .14em; line-height: 1.1;
  margin: 26px 0 14px; opacity: 0; animation: fadeUp 1.1s var(--ease) .5s forwards;
}
.hero .en-name {
  font-family: "Cormorant Garamond", serif; font-size: clamp(18px, 2.4vw, 30px);
  letter-spacing: .42em; text-transform: uppercase; opacity: 0;
  animation: fadeUp 1.1s var(--ease) .7s forwards;
}
.hero .tagline {
  margin-top: 30px; font-family: "Noto Serif SC", serif; font-size: clamp(15px, 2vw, 20px);
  letter-spacing: .22em; opacity: 0; animation: fadeUp 1.1s var(--ease) .9s forwards;
}
.hero .scroll-cue {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  font-family: "Cormorant Garamond", serif; letter-spacing: .3em; font-size: 12px;
  color: #fff; opacity: 0; animation: fadeUp 1.1s var(--ease) 1.2s forwards;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero .scroll-cue .line { width: 1px; height: 46px; background: rgba(255,255,255,.6); animation: cue 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0%,100% { transform: scaleY(.4); opacity:.5;} 50% { transform: scaleY(1); opacity:1;} }
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px);} to { opacity: 1; transform: none;} }

/* carousel dots */
.hero .dots { position: absolute; bottom: 34px; right: 42px; z-index: 6; display: flex; gap: 13px; }
.hero .dot {
  width: 9px; height: 9px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.75); background: transparent; cursor: pointer;
  transition: background .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.hero .dot:hover { border-color: #fff; }
.hero .dot.active { background: #fff; border-color: #fff; transform: scale(1.2); }

/* ============================================================
   ABOUT / PHILOSOPHY
   ============================================================ */
.about { background: var(--ivory); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about-text p { color: var(--ink-soft); margin-top: 26px; font-size: 16px; }
.about-text .lead { color: var(--ink); font-family: "Noto Serif SC", serif; font-size: 19px; line-height: 1.95; }
.about-figure { position: relative; }
.about-figure img { width: 100%; border-radius: 2px; }
.about-figure .stamp {
  position: absolute; right: -18px; bottom: -18px; background: var(--accent); color: #fff;
  font-family: "Noto Serif SC", serif; padding: 22px 26px; letter-spacing: .14em;
  box-shadow: 0 20px 50px rgba(111,84,54,.28); line-height: 1.6; font-size: 15px;
}
.about-figure .stamp small { display:block; font-family:"Cormorant Garamond",serif; letter-spacing:.3em; font-size:11px; opacity:.85; }

/* ============================================================
   FOUNDER
   ============================================================ */
.founder { background: var(--sand); }
.founder-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.founder-figure { position: relative; }
.founder-figure img { width: 100%; border-radius: 2px; }
.founder-figure .mono {
  position: absolute; top: 24px; left: 24px; color: #fff; mix-blend-mode: difference;
  font-family: "Cormorant Garamond", serif; font-size: 22px; letter-spacing: .3em;
}
.founder-text .quote {
  font-family: "Noto Serif SC", serif; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.8;
  color: var(--ink); margin: 24px 0 28px;
}
.founder-text p { color: var(--ink-soft); }
.founder-text .sign { margin-top: 30px; }
.founder-text .sign .nm { font-family: "Noto Serif SC", serif; font-size: 20px; letter-spacing: .1em; }
.founder-text .sign .role { font-size: 13px; letter-spacing: .2em; color: var(--accent); margin-top: 6px; }

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--paper); }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); margin-top: 60px; }
.svc {
  background: var(--paper); padding: 46px 34px; transition: background .5s var(--ease), transform .5s var(--ease);
}
.svc:hover { background: var(--ivory); }
.svc .num { font-family: "Cormorant Garamond", serif; font-size: 40px; color: var(--accent); letter-spacing: .05em; }
.svc h3 { font-family: "Noto Serif SC", serif; font-weight: 500; font-size: 20px; margin: 18px 0 14px; letter-spacing: .06em; }
.svc p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.85; }
.svc .en { display:block; font-family:"Cormorant Garamond",serif; letter-spacing:.28em; text-transform:uppercase; font-size:11px; color:var(--ink-faint); margin-top:16px; }

/* ============================================================
   WORKS
   ============================================================ */
.works { background: var(--ivory); }
.works-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 44px 0 40px; }
.filter {
  border: 1px solid var(--line); background: transparent; color: var(--ink-soft);
  padding: 9px 20px; border-radius: 40px; cursor: pointer; font-size: 13.5px; letter-spacing: .1em;
  font-family: inherit; transition: all .35s var(--ease);
}
.filter:hover { border-color: var(--accent); color: var(--accent); }
.filter.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { position: relative; overflow: hidden; cursor: pointer; background: var(--sand); }
.card .ph { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card:hover .ph img { transform: scale(1.07); }
.card .meta {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 24px;
  background: linear-gradient(0deg, rgba(20,18,15,.78), transparent); color: #fff;
  transform: translateY(8px); opacity: .96; transition: .5s var(--ease);
}
.card:hover .meta { transform: none; }
.card .meta .cat { font-family:"Cormorant Garamond",serif; letter-spacing:.28em; text-transform:uppercase; font-size:11px; opacity:.8; }
.card .meta .ttl { font-family:"Noto Serif SC",serif; font-size: 19px; letter-spacing:.05em; margin-top:6px; }
.card .meta .area { font-size: 13px; opacity: .85; margin-top: 4px; }
.card .view {
  position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.85); color: var(--ink); display: grid; place-items: center;
  font-size: 16px; opacity: 0; transform: scale(.6); transition: .45s var(--ease);
}
.card:hover .view { opacity: 1; transform: scale(1); }
.card.hide { display: none; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--ink); color: #f3eee6; }
.contact .eyebrow { color: var(--accent); }
.contact .eyebrow::before { background: var(--accent); }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px,6vw,90px); margin-top: 50px; }
.contact h2 { font-family:"Noto Serif SC",serif; font-weight:500; font-size: clamp(30px,4vw,52px); line-height:1.3; letter-spacing:.02em; }
.contact h2 .en { display:block; font-family:"Cormorant Garamond",serif; letter-spacing:.35em; text-transform:uppercase; font-size:.36em; color: var(--ink-faint); margin-top:14px; font-weight:400;}
.info-row { display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.12); }
.info-row:last-child { border-bottom: 1px solid rgba(255,255,255,.12); }
.info-row .ic { color: var(--accent); font-family:"Cormorant Garamond",serif; letter-spacing:.1em; font-size:13px; min-width: 64px; padding-top: 3px; }
.info-row .tx { color: #e9e2d6; font-size: 15.5px; }
.info-row .tx small { display:block; color: var(--ink-faint); font-size: 12.5px; letter-spacing:.08em; }
.btn-book {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 34px;
  background: var(--accent); color: #fff; padding: 15px 34px; border-radius: 40px;
  letter-spacing: .16em; font-size: 14px; transition: .4s var(--ease);
}
.btn-book:hover { background: #fff; color: var(--ink); }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form input, .contact-form textarea {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.18); color: #f3eee6;
  padding: 14px 18px; font-family: inherit; font-size: 15px; border-radius: 2px; width: 100%;
  transition: border-color .35s var(--ease);
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(243,238,230,.45); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form button {
  background: var(--accent); color: #fff; border: none; padding: 15px; border-radius: 2px;
  letter-spacing: .2em; font-size: 14px; cursor: pointer; font-family: inherit; transition: .4s var(--ease);
}
.contact-form button:hover { background: #fff; color: var(--ink); }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: #1a1714; color: #b9b1a4; padding: 56px 0 36px; }
.foot-grid { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 30px; }
footer .fb { font-family:"Noto Serif SC",serif; color:#fff; font-size:20px; letter-spacing:.14em; }
footer .fb .en { display:block; font-family:"Cormorant Garamond",serif; letter-spacing:.3em; font-size:11px; color:var(--accent); margin-top:6px; }
footer .fc { font-size: 13.5px; line-height: 2; }
footer .fc a:hover { color: var(--accent); }
.foot-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12.5px; letter-spacing: .08em; color: #8a8175; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(18,16,13,.92);
  display: none; align-items: center; justify-content: center; padding: 40px; opacity: 0; transition: opacity .4s var(--ease);
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox img { max-width: 86vw; max-height: 86vh; object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox .cap { position: absolute; bottom: 40px; left: 0; right: 0; text-align: center; color: #fff; font-family:"Noto Serif SC",serif; letter-spacing:.1em; }
.lightbox .x { position: absolute; top: 26px; right: 32px; color: #fff; font-size: 30px; cursor: pointer; line-height: 1; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { transition: opacity 1s var(--ease), transform 1s var(--ease); }
/* hidden only when JS is available (added in <head>); without JS content stays visible */
.js .reveal { opacity: 0; transform: translateY(34px); }
.js .reveal.in { opacity: 1; transform: none; }

/* ============================================================
   REDUCED MOTION — make all content visible without animation
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .slide { animation: none !important; transform: none !important; opacity: 0 !important; }
  .hero .slide.active { opacity: 1 !important; }
  .hero .dots { display: none; }
  .hero .kicker, .hero h1, .hero .en-name, .hero .tagline, .hero .scroll-cue {
    animation: none !important; opacity: 1 !important; transform: none !important;
  }
  .hero .scroll-cue .line { animation: none; }
  .reveal, .js .reveal { transition: none !important; opacity: 1 !important; transform: none !important; }
  .card .ph img, .card:hover .ph img, .card .view, .card:hover .view { transition: none; }
}

/* ============================================================
   PAGE HERO (standalone subpages)
   ============================================================ */
.page-hero { background: var(--sand); text-align: center; padding: clamp(140px,18vw,210px) 0 clamp(70px,9vw,110px); }
.page-hero .eyebrow { margin-bottom: 22px; }
.page-hero h1 { font-family: "Noto Serif SC", serif; font-weight: 500; font-size: clamp(40px,6vw,76px); letter-spacing: .1em; line-height: 1.2; }
.page-hero .en { display: block; font-family: "Cormorant Garamond", serif; font-size: clamp(15px,2vw,22px); letter-spacing: .4em; text-transform: uppercase; color: var(--ink-faint); margin-top: 14px; }
.page-hero .lead { max-width: 760px; margin: 30px auto 0; font-family: "Noto Serif SC", serif; font-size: clamp(16px,2vw,20px); line-height: 1.9; color: var(--ink-soft); }

/* ============================================================
   PROCESS
   ============================================================ */
.process { background: var(--paper); }
.proc-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); margin-top: 60px; }
.proc { background: var(--paper); padding: 44px 30px; transition: background .5s var(--ease); }
.proc:hover { background: var(--ivory); }
.proc .step { font-family: "Cormorant Garamond", serif; font-size: 42px; color: var(--accent); letter-spacing: .04em; }
.proc h3 { font-family: "Noto Serif SC", serif; font-weight: 500; font-size: 19px; margin: 16px 0 12px; letter-spacing: .05em; }
.proc p { color: var(--ink-soft); font-size: 14px; line-height: 1.85; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { background: var(--ivory); text-align: center; }
.cta-band h2 { font-family: "Noto Serif SC", serif; font-weight: 500; font-size: clamp(28px,4vw,48px); letter-spacing: .02em; line-height: 1.3; }
.cta-band h2 .en { display: block; font-family: "Cormorant Garamond", serif; letter-spacing: .35em; text-transform: uppercase; font-size: .36em; color: var(--ink-faint); margin-top: 12px; font-weight: 400; }
.cta-band .btn-book { margin-top: 36px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .about-grid, .founder-grid, .contact-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .proc-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .about-figure .stamp { right: 12px; bottom: 12px; }
}
@media (max-width: 760px) {
  /* closed: fully removed from layout so it can't leave a blank gap
     or float text over the hero (display:none is bulletproof even if
     position:fixed is ignored by the device) */
  .nav-links { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--ivory); flex-direction: column; justify-content: center; gap: 30px; z-index: 90; }
  .nav-links.open { display: flex; animation: menuIn .35s var(--ease); }
  @keyframes menuIn { from { opacity: 0; } to { opacity: 1; } }
  .nav-links a { color: var(--ink) !important; font-size: 18px; }
  .nav-cta { display: none; }
  .burger { display: flex; z-index: 95; }
  .burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .wrap { padding: 0 22px; }
  html { scroll-padding-top: 70px; }
  header.nav { padding: 16px 22px; }
  header.nav.solid { padding: 12px 22px; }
  .gallery { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .proc-grid { grid-template-columns: 1fr; }
  .hero h1 { letter-spacing: .1em; }
  .hero .dots { right: 50%; transform: translateX(50%); bottom: 22px; }
  .hero .scroll-cue { display: none; }
}
