/* =========================================================
   心島 soul island — Inner Island Coffee
   Shared stylesheet (WordPress child-theme ready)
   Enqueue via wp_enqueue_style('soulisland-main', ...)
   ========================================================= */

/* ---------- 1. TOKENS ---------- */
:root {
  /* brand colors (spec §2) */
  --ic-espresso: #2C1A0E;
  --ic-sand:     #9B7B3A;
  --ic-green:    #3F7A54;
  --ic-gold:     #C9A22A;
  --ic-cream:    #F2EDE3;
  --ic-linen:    #EAE3D6;
  --ic-white:    #FFFFFF;

  /* derived */
  --ic-sand-soft: #C4A882;
  --ic-espresso-70: rgba(44, 26, 14, .70);
  --ic-line: rgba(155, 123, 58, .35);

  /* tweakable */
  --ic-accent: var(--ic-gold);     /* CTA / emphasis */
  --ic-radius: 22px;
  --ic-radius-lg: 32px;
  --ic-space: 1;                   /* section padding multiplier */

  /* type */
  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-serif-tc: 'Noto Serif TC', serif;
  --ff-sans-tc: 'Noto Sans TC', sans-serif;
  --ff-quote: Georgia, 'Noto Serif TC', serif;

  --maxw: 1200px;
}

/* ---------- 2. RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ic-cream);
  color: var(--ic-espresso);
  font-family: var(--ff-sans-tc);
  font-size: 16px;
  line-height: 1.8;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.25; }
p { margin: 0 0 1.2em; }

/* ---------- 3. TYPE SCALE ---------- */
.eyebrow {
  font-family: var(--ff-sans-tc);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--ic-sand);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--ic-sand);
  display: inline-block;
}
.eyebrow.center { justify-content: center; }
.eyebrow.no-rule::before { display: none; }

.display {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: .01em;
}
.h-tc {
  font-family: var(--ff-serif-tc);
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: .08em;
}
.h2 {
  font-family: var(--ff-serif-tc);
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 28px);
  letter-spacing: .06em;
}
.h3 {
  font-family: var(--ff-serif-tc);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: .05em;
}
.lead {
  font-family: var(--ff-quote);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 27px);
  line-height: 1.7;
  color: var(--ic-espresso);
}
.muted { color: rgba(44,26,14,.66); }
.tc-body { font-family: var(--ff-sans-tc); }

/* ---------- 4. LAYOUT ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.section {
  padding-top: calc(96px * var(--ic-space));
  padding-bottom: calc(96px * var(--ic-space));
  position: relative;
}
.section.tight { padding-top: calc(64px * var(--ic-space)); padding-bottom: calc(64px * var(--ic-space)); }
.bg-cream { background: var(--ic-cream); }
.bg-linen { background: var(--ic-linen); }
.bg-espresso { background: var(--ic-espresso); color: var(--ic-cream); }
.bg-espresso .eyebrow { color: var(--ic-sand-soft); }
.bg-espresso .eyebrow::before { background: var(--ic-sand-soft); }

.grid { display: grid; gap: 56px; }
.two-col { grid-template-columns: 1fr 1fr; align-items: center; }
.asym-l { grid-template-columns: 1.15fr .85fr; }
.asym-r { grid-template-columns: .85fr 1.15fr; }
.stack-narrow { max-width: 720px; margin: 0 auto; }

/* ---------- 5. BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-sans-tc); font-weight: 500; font-size: 15px;
  letter-spacing: .08em;
  padding: 15px 34px;
  border-radius: 6px;
  border: 1.5px solid transparent;
  transition: background .3s ease, color .3s ease, transform .25s ease, border-color .3s ease;
}
.btn .arrow { transition: transform .3s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--ic-accent); color: var(--ic-espresso); }
.btn-primary:hover { filter: brightness(.94); transform: scale(1.03); }
.btn-outline { border-color: var(--ic-sand-soft); color: var(--ic-espresso); background: transparent; }
.btn-outline:hover { background: var(--ic-sand); color: var(--ic-white); border-color: var(--ic-sand); }
.btn-ghost-light { border-color: rgba(242,237,227,.5); color: var(--ic-cream); }
.btn-ghost-light:hover { background: var(--ic-cream); color: var(--ic-espresso); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 400; letter-spacing: .1em; font-size: 14px;
  color: var(--ic-green);
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: border-color .3s, gap .3s;
}
.link-arrow:hover { border-color: var(--ic-green); gap: 14px; }

/* ---------- 6. NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(24px, 5vw, 64px);
  transition: background .4s ease, box-shadow .4s ease, padding .4s ease;
}
.nav.scrolled {
  background: rgba(242,237,227,.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--ic-line), 0 8px 30px rgba(44,26,14,.06);
  padding-top: 14px; padding-bottom: 14px;
}
.nav__logo img { height: 40px; width: auto; transition: height .4s ease; }
.nav.scrolled .nav__logo img { height: 34px; }
.nav__logo .logo-white { display: block; }
.nav__logo .logo-gold { display: none; }
.nav.scrolled .nav__logo .logo-white,
.nav.solid .nav__logo .logo-white { display: none; }
.nav.scrolled .nav__logo .logo-gold,
.nav.solid .nav__logo .logo-gold { display: block; }
.nav__links { display: flex; align-items: center; gap: 38px; }
.nav__link {
  font-family: var(--ff-sans-tc); font-weight: 300; font-size: 14px;
  letter-spacing: .16em; color: var(--ic-cream);
  position: relative; padding: 6px 0;
  transition: color .3s;
}
.nav.scrolled .nav__link, .nav.solid .nav__link { color: var(--ic-espresso); }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--ic-accent); transition: width .3s ease;
}
.nav__link:hover::after, .nav__link.active::after { width: 100%; }
.nav__link.active { color: var(--ic-accent); }
.nav__cta { padding: 11px 24px; font-size: 14px; white-space: nowrap; }
.nav__burger { display: none; background: none; border: 0; padding: 8px; }
.nav__burger span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; transition: .3s; color: var(--ic-cream); }
.nav.scrolled .nav__burger span, .nav.solid .nav__burger span { background: var(--ic-espresso); }

/* mobile menu */
.nav__panel {
  position: fixed; inset: 0; background: var(--ic-espresso); color: var(--ic-cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px; transform: translateY(-100%); transition: transform .5s cubic-bezier(.7,0,.2,1);
  z-index: 99;
}
.nav__panel.open { transform: translateY(0); }
.nav__panel a { font-family: var(--ff-display); font-size: 30px; letter-spacing: .1em; }
.nav__panel .close { position: absolute; top: 28px; right: 28px; font-size: 28px; background: none; border: 0; color: var(--ic-cream); }

/* ---------- 7. HERO (3 directions) ---------- */
.hero { position: relative; }
[data-hero] { display: none; }
[data-hero].show { display: block; }

/* shared atmospheric gradient placeholders */
.ph {
  position: relative; overflow: hidden;
  background-color: #b89a6a;
  background-image:
    radial-gradient(120% 90% at 80% 10%, rgba(255,243,214,.55), transparent 55%),
    radial-gradient(90% 80% at 12% 92%, rgba(44,26,14,.55), transparent 60%),
    linear-gradient(150deg, #8a6f3e 0%, #6f5a36 38%, #43361f 100%);
}
.ph.foliage {
  background-color: #41603f;
  background-image:
    radial-gradient(80% 70% at 78% 16%, rgba(214,232,190,.5), transparent 55%),
    radial-gradient(90% 90% at 18% 96%, rgba(20,33,18,.6), transparent 60%),
    linear-gradient(160deg, #5b7a4d 0%, #3f5e3c 45%, #23341f 100%);
}
.ph.warm {
  background-color: #c99a52;
  background-image:
    radial-gradient(100% 80% at 70% 14%, rgba(255,236,196,.7), transparent 55%),
    radial-gradient(90% 90% at 10% 100%, rgba(58,33,14,.55), transparent 60%),
    linear-gradient(150deg, #d9ab5e 0%, #ac7e42 45%, #5e3f1f 100%);
}
.ph.dim {
  background-color: #2f241a;
  background-image:
    radial-gradient(90% 70% at 75% 12%, rgba(201,162,42,.35), transparent 55%),
    radial-gradient(80% 90% at 15% 95%, rgba(0,0,0,.5), transparent 60%),
    linear-gradient(160deg, #43321f 0%, #2c1a0e 60%, #1a0f07 100%);
}
.ph .ph-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .12; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ph-label {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  font-family: var(--ff-sans-tc); font-size: 11px; letter-spacing: .2em;
  color: rgba(255,255,255,.6); border: 1px dashed rgba(255,255,255,.4);
  padding: 4px 12px; border-radius: 100px; white-space: nowrap;
}

/* arch shape */
.arch { border-radius: 50% 50% var(--ic-radius) var(--ic-radius) / 36% 36% var(--ic-radius) var(--ic-radius); }
.arch-full { border-radius: 1000px 1000px var(--ic-radius) var(--ic-radius); }
.blob { border-radius: 62% 38% 46% 54% / 54% 46% 54% 46%; }

/* hero 1 — full-bleed */
#hero1 { height: 100vh; min-height: 620px; }
#hero1 .ph { position: absolute; inset: 0; }
#hero1 .overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(44,26,14,.5) 0%, rgba(44,26,14,.28) 40%, rgba(44,26,14,.62) 100%); }
#hero1 .hero1-inner {
  position: relative; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; color: var(--ic-cream);
  padding: 0 24px;
}
#hero1 .display { color: var(--ic-white); }
#hero1 .hero-tc { font-family: var(--ff-serif-tc); font-weight: 400; letter-spacing: .3em; font-size: clamp(18px,2.4vw,24px); margin-top: 22px; color: var(--ic-cream); }
.scroll-hint { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); color: rgba(242,237,227,.8); font-size: 11px; letter-spacing: .3em; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-hint .bar { width: 1px; height: 46px; background: linear-gradient(rgba(242,237,227,.8), transparent); animation: drip 2.4s ease-in-out infinite; }
@keyframes drip { 0%,100% { opacity:.3; transform: scaleY(.6); transform-origin: top;} 50% { opacity:1; transform: scaleY(1);} }

/* hero 2 — arch crop asymmetric */
#hero2 { padding-top: 150px; padding-bottom: 90px; }
#hero2 .grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
#hero2 .hero2-art { height: 560px; }
#hero2 .display { margin-bottom: 18px; }
#hero2 .hero-tc { font-family: var(--ff-serif-tc); font-weight: 500; font-size: clamp(22px,3vw,32px); letter-spacing: .14em; color: var(--ic-sand); margin-bottom: 26px; }

/* hero 3 — earthenware color block + enlarged logo */
#hero3 { padding-top: 150px; padding-bottom: 90px; background: var(--ic-linen); }
#hero3 .hero3-frame {
  position: relative; border: 1px solid var(--ic-line); border-radius: var(--ic-radius-lg);
  padding: clamp(40px, 7vw, 96px); text-align: center; overflow: hidden;
}
#hero3 .hero3-logo { width: min(420px, 70%); margin: 0 auto 30px; }
#hero3 .display { color: var(--ic-espresso); }
#hero3 .hero-tc { font-family: var(--ff-serif-tc); letter-spacing: .34em; font-size: clamp(16px,2vw,22px); color: var(--ic-sand); margin-top: 18px; }
#hero3 .corner { position: absolute; width: 46px; height: 46px; border: 1px solid var(--ic-sand); }
#hero3 .corner.tl { top: 20px; left: 20px; border-right: 0; border-bottom: 0; }
#hero3 .corner.tr { top: 20px; right: 20px; border-left: 0; border-bottom: 0; }
#hero3 .corner.bl { bottom: 20px; left: 20px; border-right: 0; border-top: 0; }
#hero3 .corner.br { bottom: 20px; right: 20px; border-left: 0; border-top: 0; }

.hero-cta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 38px; }
#hero1 .hero-cta-row, #hero3 .hero-cta-row { justify-content: center; }

/* ---------- 8. PAGE HERO (interior pages) ---------- */
.page-hero { position: relative; display: flex; align-items: flex-end; }
.page-hero .ph { position: absolute; inset: 0; }
.page-hero .overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(44,26,14,.25), rgba(44,26,14,.6)); }
.page-hero .inner { position: relative; padding-bottom: 70px; color: var(--ic-cream); }
.page-hero .display { color: var(--ic-white); }
.page-hero .sub { font-family: var(--ff-serif-tc); letter-spacing: .26em; margin-top: 14px; color: var(--ic-cream); }
.page-hero.h70 { height: 70vh; min-height: 460px; }
.page-hero.h50 { height: 52vh; min-height: 400px; }
.page-hero.h40 {
  height: auto; background: var(--ic-cream); display: block; text-align: center;
  padding-top: 190px; padding-bottom: 80px;
}
.page-hero.h40 .display { color: var(--ic-espresso); }
.page-hero.h40 .sub { color: var(--ic-sand); }

/* ---------- 9. CARDS ---------- */
.card {
  background: var(--ic-linen); border-radius: var(--ic-radius); padding: 36px 30px;
  transition: box-shadow .35s ease, transform .35s ease;
  position: relative; overflow: hidden;
}
.bg-linen .card { background: var(--ic-cream); }
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--ic-sand); border-radius: 0 0 100px 100px; opacity: .9;
}
.card:hover { box-shadow: 0 12px 40px rgba(44,26,14,.13); transform: translateY(-6px); }
.card .ic-circle {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--ic-sand); color: var(--ic-green); margin-bottom: 22px;
}
.card .ic-circle svg { width: 26px; height: 26px; }

/* value card numbering */
.val-num { font-family: var(--ff-display); font-size: 15px; color: var(--ic-sand); letter-spacing: .1em; }

/* ---------- 10. MENU ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 56px; }
.tab {
  font-family: var(--ff-sans-tc); font-size: 15px; letter-spacing: .12em; font-weight: 400;
  padding: 11px 26px; border-radius: 100px; border: 1px solid var(--ic-line);
  background: transparent; color: var(--ic-espresso);
  transition: background .3s, color .3s, border-color .3s;
}
.tab:hover { border-color: var(--ic-sand); }
.tab.active { background: var(--ic-accent); border-color: var(--ic-accent); color: var(--ic-espresso); }
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.menu-panel { display: none; }
.menu-panel.active { display: block; animation: fadeUp .5s ease both; }
@keyframes fadeUp { from { opacity:0; transform: translateY(14px);} to {opacity:1; transform:none;} }
.menu-card { background: var(--ic-cream); border-radius: var(--ic-radius); overflow: hidden; transition: box-shadow .35s, transform .35s; }
.bg-cream .menu-card { background: var(--ic-linen); }
.menu-card:hover { box-shadow: 0 14px 44px rgba(44,26,14,.14); transform: translateY(-6px); }
.menu-card .ph { height: 210px; }
.menu-card .mc-body { padding: 22px 24px 26px; }
.menu-card .mc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.menu-card .mc-name { font-family: var(--ff-serif-tc); font-weight: 500; font-size: 19px; letter-spacing: .04em; }
.menu-card .mc-en { font-family: var(--ff-display); font-style: italic; font-size: 13px; color: var(--ic-sand); letter-spacing: .04em; }
.menu-card .mc-price { font-family: var(--ff-display); font-size: 19px; color: var(--ic-green); white-space: nowrap; }
.menu-card .mc-desc { font-size: 13.5px; color: rgba(44,26,14,.62); margin: 8px 0 0; line-height: 1.7; }
.badge {
  display: inline-block; font-family: var(--ff-sans-tc); font-weight: 500; font-size: 12px;
  letter-spacing: .14em; padding: 6px 14px; border-radius: 100px;
  background: var(--ic-accent); color: var(--ic-espresso);
}
.badge.green { background: var(--ic-green); color: var(--ic-white); }

/* ---------- 11. FORMS ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; letter-spacing: .12em; color: var(--ic-sand); font-weight: 400; }
.field label .req { color: var(--ic-green); }
.field input, .field select, .field textarea {
  font-family: var(--ff-sans-tc); font-size: 15px; color: var(--ic-espresso);
  background: var(--ic-white); border: 1.5px solid var(--ic-sand-soft);
  border-radius: 10px; padding: 14px 16px; transition: border-color .3s, box-shadow .3s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(44,26,14,.35); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ic-green); box-shadow: 0 0 0 3px rgba(63,122,84,.13);
}
.field textarea { resize: vertical; min-height: 120px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1.5px solid var(--ic-sand-soft); background: var(--ic-white); border-radius: 100px;
  padding: 10px 20px; font-size: 14px; transition: .25s; user-select: none;
}
.chip:hover { border-color: var(--ic-sand); }
.chip.selected { background: var(--ic-green); border-color: var(--ic-green); color: var(--ic-white); }
.form-note { font-size: 13px; color: rgba(44,26,14,.6); margin-top: 10px; }
.form-success {
  display: none; text-align: center; padding: 40px 24px;
  border: 1px solid var(--ic-line); border-radius: var(--ic-radius); background: var(--ic-cream);
}
.form-success.show { display: block; animation: fadeUp .5s ease both; }
.form-success .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--ic-green); color: #fff; display: grid; place-items: center; margin: 0 auto 20px; }

/* notice items */
.notice-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.notice {
  text-align: center; padding: 30px 24px; border: 1px solid var(--ic-line); border-radius: var(--ic-radius);
  background: var(--ic-cream);
}
.notice .ic-circle { margin: 0 auto 18px; }

/* info / contact rows */
.info-row { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--ic-line); }
.info-row:last-child { border-bottom: 0; }
.info-row .ic { color: var(--ic-green); flex: 0 0 auto; margin-top: 3px; }
.info-row .k { font-size: 12px; letter-spacing: .18em; color: var(--ic-sand); text-transform: uppercase; }
.info-row .v { font-size: 16px; }
.map-frame { width: 100%; height: 100%; min-height: 420px; border: 0; border-radius: var(--ic-radius); }

/* ---------- 12. FOOTER ---------- */
.footer { background: var(--ic-espresso); color: var(--ic-cream); padding: 76px 0 34px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; align-items: start; }
.footer__logo img { height: 52px; width: auto; margin-bottom: 22px; }
.footer__tag { color: rgba(242,237,227,.6); max-width: 280px; font-size: 14.5px; }
.footer h4 { font-family: var(--ff-sans-tc); font-weight: 400; font-size: 12px; letter-spacing: .2em; color: var(--ic-sand-soft); margin-bottom: 20px; text-transform: uppercase; }
.footer__col a, .footer__col p { display: block; color: rgba(242,237,227,.82); font-size: 14.5px; margin: 0 0 12px; transition: color .3s; }
.footer__col a:hover { color: var(--ic-accent); }
.footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(242,237,227,.15); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: rgba(242,237,227,.5); letter-spacing: .05em; }
.social { display: flex; gap: 14px; }
.social a { width: 38px; height: 38px; border: 1px solid rgba(242,237,227,.3); border-radius: 50%; display: grid; place-items: center; transition: .3s; }
.social a:hover { background: var(--ic-accent); border-color: var(--ic-accent); color: var(--ic-espresso); }

/* ---------- 13. CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .display { color: var(--ic-cream); }
.cta-band .sub { color: rgba(242,237,227,.7); margin: 18px 0 36px; letter-spacing: .12em; }

/* divider mark */
.mark { display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--ic-sand); margin: 0 auto; }
.mark::before, .mark::after { content:""; height: 1px; width: 48px; background: var(--ic-line); }
.mark .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ic-sand); }

/* ---------- 14. FADE-IN ---------- */
.fade-in { opacity: 0; transform: translateY(22px); }
.fade-in.visible { animation: siFadeUp .7s ease-out forwards; }
.fade-in.shown { opacity: 1; transform: none; animation: none; }
.fade-in.visible.d1 { animation-delay: .08s; }
.fade-in.visible.d2 { animation-delay: .16s; }
.fade-in.visible.d3 { animation-delay: .24s; }
@keyframes siFadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; }
  .fade-in.visible { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 15. RWD ---------- */
@media (max-width: 1024px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__logo { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  :root { --ic-space: .82; }
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .grid, .two-col, .asym-l, .asym-r, .form-grid { grid-template-columns: 1fr !important; gap: 36px; }
  #hero2 .grid { grid-template-columns: 1fr; }
  #hero2 .hero2-art { height: 380px; order: -1; }
  .menu-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .notice-row { grid-template-columns: 1fr; gap: 18px; }
  .footer__bottom { flex-direction: column; }
}
@media (max-width: 560px) {
  .menu-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .hero-cta-row .btn { width: auto; }
  #hero1 .hero-cta-row { flex-direction: column; width: 100%; }
  #hero1 .hero-cta-row .btn { width: 100%; }
}

/* =========================================================
   BLOG
   ========================================================= */
.blog-feature { grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.blog-feature .ph { height: 460px; }
.post-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.post-meta .date { font-family: var(--ff-display); font-style: italic; font-size: 14px; color: var(--ic-sand); letter-spacing: .03em; }
.post-cat {
  font-family: var(--ff-sans-tc); font-weight: 500; font-size: 11.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ic-green);
  padding: 5px 13px; border: 1px solid var(--ic-line); border-radius: 100px;
}
.blog-title-lg { font-family: var(--ff-serif-tc); font-weight: 500; font-size: clamp(26px,3.2vw,38px); letter-spacing: .04em; line-height: 1.3; margin: 4px 0 14px; }
.blog-title-lg a:hover { color: var(--ic-green); }

.blog-filter { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 0 0 52px; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 36px; }
.blog-card { background: transparent; transition: transform .35s ease; }
.blog-card.hide { display: none; }
.blog-card a.cover { display: block; overflow: hidden; border-radius: var(--ic-radius); }
.blog-card .ph { height: 230px; transition: transform .6s ease; }
.blog-card:hover .ph { transform: scale(1.05); }
.blog-card .bc-body { padding: 20px 4px 0; }
.blog-card .bc-title { font-family: var(--ff-serif-tc); font-weight: 500; font-size: 20px; line-height: 1.4; letter-spacing: .03em; margin: 4px 0 10px; }
.blog-card .bc-title a:hover { color: var(--ic-green); }
.blog-card .bc-excerpt { font-size: 14px; color: rgba(44,26,14,.62); margin: 0 0 14px; line-height: 1.75; }
.blog-card .read { font-size: 13px; letter-spacing: .08em; color: var(--ic-green); display: inline-flex; gap: 7px; transition: gap .3s; }
.blog-card:hover .read { gap: 13px; }

.blog-pager { display: flex; justify-content: center; gap: 10px; margin-top: 64px; }
.blog-pager button, .blog-pager span {
  min-width: 42px; height: 42px; padding: 0 14px; border-radius: 100px;
  border: 1px solid var(--ic-line); background: transparent; color: var(--ic-espresso);
  font-family: var(--ff-display); font-size: 15px; display: inline-flex; align-items: center; justify-content: center;
  transition: .25s;
}
.blog-pager button:hover { border-color: var(--ic-sand); }
.blog-pager .on { background: var(--ic-accent); border-color: var(--ic-accent); }

/* article */
.article { max-width: 720px; margin: 0 auto; }
.article p { font-size: 17px; line-height: 1.95; color: rgba(44,26,14,.84); margin: 0 0 1.5em; }
.article h2 { font-family: var(--ff-serif-tc); font-weight: 500; font-size: 26px; letter-spacing: .04em; margin: 1.6em 0 .6em; }
.article .lead { margin: 0 0 1.4em; }
.article blockquote {
  margin: 1.8em 0; padding: 6px 0 6px 28px; border-left: 2px solid var(--ic-sand);
  font-family: var(--ff-quote); font-style: italic; font-size: 22px; line-height: 1.7; color: var(--ic-espresso);
}
.article figure { margin: 2em 0; }
.article figure .ph { height: 380px; border-radius: var(--ic-radius); }
.article figcaption { font-size: 13px; color: var(--ic-sand); text-align: center; margin-top: 12px; letter-spacing: .04em; }
.article-head { text-align: center; }
.share-row { display: flex; gap: 12px; justify-content: center; align-items: center; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--ic-line); }
.share-row .lbl { font-size: 12px; letter-spacing: .18em; color: var(--ic-sand); text-transform: uppercase; }
.share-row a { width: 38px; height: 38px; border: 1px solid var(--ic-line); border-radius: 50%; display: grid; place-items: center; color: var(--ic-green); transition: .3s; }
.share-row a:hover { background: var(--ic-green); color: #fff; border-color: var(--ic-green); }

@media (max-width: 860px) {
  .blog-feature { grid-template-columns: 1fr; }
  .blog-feature .ph { height: 320px; order: -1; }
  .blog-grid { grid-template-columns: 1fr 1fr; gap: 30px 24px; }
}
@media (max-width: 560px) { .blog-grid { grid-template-columns: 1fr; } }

/* =========================================================
   PROTOTYPE-ONLY — Tweaks panel chrome (NOT part of WP theme)
   ========================================================= */
#tw-panel {
  position: fixed; top: 16px; right: 16px; width: 290px; z-index: 9999;
  background: rgba(252,250,245,.97); backdrop-filter: blur(12px);
  border: 1px solid var(--ic-line); border-radius: 16px;
  box-shadow: 0 18px 60px rgba(44,26,14,.22);
  font-family: var(--ff-sans-tc); color: var(--ic-espresso);
  opacity: 0; transform: translateY(-8px) scale(.98); pointer-events: none;
  transition: opacity .28s ease, transform .28s ease; max-height: 90vh; overflow: auto;
}
#tw-panel.open { opacity: 1; transform: none; pointer-events: auto; }
#tw-panel .tw-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 12px; border-bottom: 1px solid var(--ic-line);
  font-family: var(--ff-display); font-size: 17px; letter-spacing: .02em;
}
#tw-panel #tw-close { background: none; border: 0; font-size: 22px; line-height: 1; color: var(--ic-sand); }
#tw-panel .tw-body { padding: 6px 18px 18px; }
#tw-panel .tw-sect {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ic-sand);
  margin: 18px 0 12px; padding-bottom: 6px; border-bottom: 1px dashed var(--ic-line);
}
#tw-panel .tw-row { margin-bottom: 16px; }
#tw-panel .tw-row label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; letter-spacing: .04em; color: rgba(44,26,14,.72); margin-bottom: 8px;
}
#tw-panel .tw-out { font-family: var(--ff-display); color: var(--ic-green); font-size: 13px; }
#tw-panel .tw-sw-row { display: flex; gap: 9px; }
#tw-panel .tw-sw {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent;
  box-shadow: 0 0 0 1px rgba(44,26,14,.12) inset; cursor: pointer; transition: transform .2s, border-color .2s;
}
#tw-panel .tw-sw:hover { transform: scale(1.08); }
#tw-panel .tw-sw.on { border-color: var(--ic-espresso); }
#tw-panel .tw-segs { display: flex; gap: 6px; }
#tw-panel .tw-seg {
  flex: 1; padding: 8px 6px; font-size: 12px; border-radius: 9px;
  border: 1px solid var(--ic-line); background: #fff; color: rgba(44,26,14,.7);
  transition: .2s; white-space: nowrap;
}
#tw-panel .tw-seg.on { background: var(--ic-espresso); color: var(--ic-cream); border-color: var(--ic-espresso); }
#tw-panel input[type=range] { width: 100%; accent-color: var(--ic-green); }
#tw-panel input[type=text] {
  width: 100%; padding: 9px 11px; border: 1px solid var(--ic-sand-soft); border-radius: 9px;
  font-family: var(--ff-sans-tc); font-size: 13px; color: var(--ic-espresso); background: #fff;
}
#tw-panel input[type=text]:focus { outline: none; border-color: var(--ic-green); }
@media (max-width: 560px) { #tw-panel { width: calc(100vw - 32px); } }

/* =============================================
   BLOG INDEX (home.php)
   ============================================= */
.blog-page { background: var(--ic-cream); min-height: 60vh; }

/* hero */
.blog-hero {
  padding: 120px 0 72px;
  background: var(--ic-espresso);
  text-align: center;
}
.blog-hero__eyebrow {
  font-family: var(--ff-serif-en); font-size: 12px; letter-spacing: .22em;
  color: var(--ic-gold); text-transform: uppercase; margin: 0 0 18px;
}
.blog-hero__title {
  font-family: var(--ff-serif-tc); font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 500; color: var(--ic-cream); margin: 0 0 16px; line-height: 1.25;
}
.blog-hero__sub {
  font-family: var(--ff-sans-tc); font-size: 15px; color: rgba(242,237,227,.65);
  margin: 0; letter-spacing: .05em;
}

/* grid */
.blog-list { padding: 80px 0 100px; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 48px 32px;
}

/* card */
.blog-card { display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 24px rgba(44,26,14,.07); transition: transform .3s, box-shadow .3s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 10px 36px rgba(44,26,14,.13); }
.blog-card__img-wrap { display: block; aspect-ratio: 4/3; overflow: hidden; }
.blog-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.blog-card:hover .blog-card__img { transform: scale(1.04); }
.blog-card__body { padding: 28px 28px 32px; display: flex; flex-direction: column; flex: 1; }
.blog-card__date { font-size: 12px; letter-spacing: .1em; color: var(--ic-sand); margin-bottom: 12px; font-family: var(--ff-serif-en); }
.blog-card__title { font-family: var(--ff-serif-tc); font-size: 1.15rem; font-weight: 500; color: var(--ic-espresso); margin: 0 0 12px; line-height: 1.5; }
.blog-card__title a { color: inherit; text-decoration: none; }
.blog-card__title a:hover { color: var(--ic-green); }
.blog-card__excerpt { font-size: 14px; line-height: 1.75; color: rgba(44,26,14,.65); margin: 0 0 20px; flex: 1; }
.blog-card__more { font-family: var(--ff-serif-en); font-size: 13px; letter-spacing: .08em; color: var(--ic-green); text-decoration: none; align-self: flex-start; transition: gap .2s; }
.blog-card__more:hover { color: var(--ic-espresso); }

/* pagination */
.blog-pagination { margin-top: 64px; text-align: center; }
.blog-pagination .nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.blog-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--ic-line); border-radius: 8px;
  font-family: var(--ff-sans-tc); font-size: 14px; color: var(--ic-espresso);
  text-decoration: none; transition: .2s;
}
.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current { background: var(--ic-espresso); color: var(--ic-cream); border-color: var(--ic-espresso); }

/* empty state */
.blog-empty { text-align: center; padding: 80px 0; }
.blog-empty__img { width: 200px; height: 200px; border-radius: 50%; margin: 0 auto 32px; }
.blog-empty__msg { font-family: var(--ff-serif-tc); font-size: 1.1rem; color: var(--ic-espresso); line-height: 1.8; margin: 0 0 32px; }

@media (max-width: 768px) {
  .blog-hero { padding: 100px 0 56px; }
  .blog-grid { grid-template-columns: 1fr; gap: 32px; }
  .blog-list { padding: 56px 0 72px; }
}

/* =============================================
   SINGLE POST (single.php)
   ============================================= */
.single-post { background: var(--ic-cream); }

/* hero */
.single-hero {
  background: var(--ic-espresso);
  padding: 110px 0 64px;
  text-align: center;
}
.single-back {
  display: inline-block;
  font-family: var(--ff-serif-en); font-size: 12px; letter-spacing: .18em;
  color: var(--ic-gold); text-decoration: none; margin-bottom: 28px;
  text-transform: uppercase; transition: color .2s;
}
.single-back:hover { color: var(--ic-cream); }
.single-cat {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(242,237,227,.45); margin: 0 0 18px;
  font-family: var(--ff-serif-en);
}
.single-title {
  font-family: var(--ff-serif-tc);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 500; color: var(--ic-cream);
  max-width: 780px; margin: 0 auto 22px; line-height: 1.35;
}
.single-date {
  font-family: var(--ff-serif-en); font-size: 12px;
  color: rgba(242,237,227,.38); letter-spacing: .1em;
}

/* body */
.single-body { padding: 72px 0 100px; }
.single-content { max-width: 760px; }
.single-content h2 {
  font-family: var(--ff-serif-tc); font-size: 1.35rem; font-weight: 500;
  color: var(--ic-espresso); margin: 52px 0 20px;
  padding-bottom: 14px; border-bottom: 1px solid var(--ic-line);
  line-height: 1.45;
}
.single-content h3 {
  font-family: var(--ff-serif-tc); font-size: 1.05rem; font-weight: 500;
  color: var(--ic-espresso); margin: 36px 0 14px; line-height: 1.5;
}
.single-content p {
  font-family: var(--ff-sans-tc); font-size: 15px;
  line-height: 1.95; color: rgba(44,26,14,.78); margin: 0 0 22px;
}
.single-content strong { color: var(--ic-espresso); font-weight: 600; }
.single-content a { color: var(--ic-green); text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.single-content a:hover { color: var(--ic-espresso); }
.single-content ul, .single-content ol { padding-left: 1.6em; margin: 0 0 22px; }
.single-content li { font-family: var(--ff-sans-tc); font-size: 15px; line-height: 1.9; color: rgba(44,26,14,.78); margin-bottom: 8px; }
.single-content hr { border: none; border-top: 1px solid var(--ic-line); margin: 52px 0; }

/* FAQ details */
.single-content details {
  border: 1px solid var(--ic-line); border-radius: 12px;
  margin-bottom: 10px; overflow: hidden;
  background: #fff;
}
.single-content details summary {
  padding: 18px 22px 18px 20px; cursor: pointer;
  font-family: var(--ff-sans-tc); font-size: 14px; font-weight: 500;
  color: var(--ic-espresso); list-style: none; position: relative;
  user-select: none;
}
.single-content details summary::-webkit-details-marker { display: none; }
.single-content details summary::after {
  content: '+'; position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%); font-size: 20px; font-weight: 300;
  color: var(--ic-sand); line-height: 1;
}
.single-content details[open] summary::after { content: '−'; }
.single-content details > p { padding: 4px 20px 18px; margin: 0; font-size: 14px; color: rgba(44,26,14,.68); }

/* back button */
.single-footer { max-width: 760px; margin-top: 64px; }
.single-back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--ff-serif-en); font-size: 13px; letter-spacing: .1em;
  color: var(--ic-green); text-decoration: none; text-transform: uppercase;
  border: 1px solid var(--ic-green); border-radius: 99px;
  padding: 10px 22px; transition: .2s;
}
.single-back-btn:hover { background: var(--ic-green); color: #fff; }

@media (max-width: 768px) {
  .single-hero { padding: 90px 0 52px; }
  .single-body { padding: 48px 0 72px; }
  .single-content h2 { font-size: 1.2rem; margin-top: 40px; }
}
