/* ───────────────────────────────────────────────────────────
   黑角工房 Black Horn Atelier — 森系裝潢委託
   ───────────────────────────────────────────────────────── */

:root {
  --bg:        #f6f1e6;   /* 米白背景 */
  --bg-soft:   #efe8d8;
  --nav-bg:    #ded6c3;   /* 導覽列底 */
  --paper:     #faf7f0;   /* 卡片底 */
  --ink:       #33402c;   /* 深墨綠 */
  --ink-soft:  #55604a;
  --ink-mute:  #8a917f;
  --line:      rgba(51, 64, 44, 0.14);

  --sage:      #6f7d54;   /* 主色 橄欖綠 */
  --sage-deep: #59653f;
  --sage-soft: #d9e0c6;
  --sage-tint: #eef1e4;
  --brick:     #a6432c;   /* 磚紅 點綴 */
  --amber:     #cf9134;

  --serif-zh:  "Noto Serif TC", "Songti TC", serif;
  --sans-zh:   "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --serif-en:  "Cormorant Garamond", "Times New Roman", serif;

  --nav-h: 84px;
  --max:    1200px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 18px;
  --shadow: 0 18px 44px rgba(51, 64, 44, 0.10);
  --shadow-sm: 0 8px 22px rgba(51, 64, 44, 0.08);

  --fs-hero:    clamp(38px, 5vw, 66px);
  --fs-section: clamp(28px, 3.4vw, 46px);
  --fs-card:    clamp(19px, 1.5vw, 23px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans-zh);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 880px; }

/* ── 通用區塊 ─────────────────────────────────── */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.styles { background: var(--bg); }
.portfolio { background: var(--bg-soft); }
.pricing { background: var(--bg); }
.process { background: var(--bg-soft); }
.faq { background: var(--bg); }
.contact { background: var(--bg-soft); }

.eyebrow {
  color: var(--brick);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.14em;
  margin: 0 0 14px;
}
.eyebrow.center { text-align: center; }

.section-title {
  font-family: var(--serif-zh);
  font-weight: 700;
  font-size: var(--fs-section);
  line-height: 1.3;
  margin: 0 0 18px;
  color: var(--ink);
}
.section-title.center { text-align: center; }
.section-lead {
  color: var(--ink-soft);
  font-size: clamp(15px, 1.2vw, 18px);
  margin: 0 0 40px;
  max-width: 640px;
}
.accent { color: var(--sage); }

/* ── 按鈕 ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 34px; border-radius: 999px;
  font-family: var(--serif-zh); font-weight: 600; font-size: 17px;
  border: 1.5px solid transparent; transition: all .2s ease; white-space: nowrap;
}
.btn-primary { background: var(--sage); color: #fff; }
.btn-primary:hover { background: var(--sage-deep); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.55); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #fff; transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ── 導覽列 ───────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  background: var(--nav-bg); border-bottom: 1px solid rgba(51,64,44,.08);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; height: 100%;
  padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--sage-deep); }
.brand-logo { display: grid; place-items: center; color: var(--sage-deep); }
.brand-logo img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; display: block; }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-zh { font-family: var(--serif-zh); font-weight: 700; font-size: 22px; color: var(--ink); }
.brand-en { font-family: var(--serif-en); font-size: 20px; letter-spacing: .02em; color: var(--ink-soft); }

.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); }
.nav-links a {
  font-family: var(--serif-zh); font-weight: 600; font-size: 19px; color: var(--ink);
  position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 50%; bottom: -2px; width: 0; height: 2px;
  background: var(--sage); transform: translateX(-50%); transition: width .2s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 80%; }
.nav-links a.nav-cta {
  background: var(--sage); color: #fff; padding: 9px 22px; border-radius: 999px;
}
.nav-links a.nav-cta::after { display: none; }
.nav-links a.nav-cta:hover { background: var(--sage-deep); }

.nav { opacity: 0; }
.nav-js-ready { opacity: 1; transition: opacity .12s ease; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px;
  border: none; background: none; align-items: center; justify-content: center;
}
.nav-toggle span { width: 26px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: all .25s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-overlay {
  display: none; position: fixed; inset: 0; z-index: 45; background: rgba(51,64,44,.4);
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.nav-overlay.is-open { opacity: 1; pointer-events: auto; }

.nav-compact .nav-toggle { display: flex; }
.nav-compact .nav-overlay { display: block; }
.nav-compact .nav-links {
  position: fixed; top: var(--nav-h); right: 0; z-index: 46;
  flex-direction: column; align-items: flex-start; gap: 6px;
  background: var(--nav-bg); padding: 20px 28px; width: min(78vw, 300px);
  height: calc(100vh - var(--nav-h)); box-shadow: -12px 0 40px rgba(51,64,44,.18);
  transform: translateX(105%); transition: transform .28s ease;
}
.nav-compact .nav-links.is-open { transform: translateX(0); }
.nav-compact .nav-links a { font-size: 20px; padding: 10px 0; width: 100%; }
.nav-compact .nav-links a.nav-cta { margin-top: 8px; }

/* ── Hero ─────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden; padding-top: var(--nav-h);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg .slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.4s ease;
}
.hero-bg .slide.is-active { opacity: 1; }
.hero-bg.is-empty { background: linear-gradient(135deg, #cdd6b6, #b9c49c 60%, #d8cbb0); }
.hero-veil { position: absolute; inset: 0; z-index: 1; background: rgba(246,241,230,.3); }
/* 靜態水墨暈染，疊在文字後方；用水彩圖當遮罩、底填森系綠 */
.hero-wash {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -54%); z-index: 1;
  width: min(1200px, 132vw); aspect-ratio: 1.03 / 1; pointer-events: none; opacity: .8;
  background: #b9c49c;
  -webkit-mask: url(/images/watercolor-wash.webp) center / contain no-repeat;
  mask: url(/images/watercolor-wash.webp) center / contain no-repeat;
}
.hero-content { position: relative; z-index: 2; max-width: 860px; padding: 0 var(--gutter); }
.hero-title {
  font-family: var(--serif-zh); font-weight: 700; font-size: var(--fs-hero); line-height: 1.28;
  margin: 0 0 22px; color: var(--ink); text-shadow: 0 2px 18px rgba(246,241,230,.6);
}
.hero-sub { font-size: clamp(16px, 1.5vw, 21px); color: var(--ink-soft); margin: 0 0 38px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-dots { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: 9px; }
.hero-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(51,64,44,.28); padding: 0;
}
.hero-dots button.is-active { background: var(--sage); width: 26px; border-radius: 999px; }

/* ── 裝潢風格 ──────────────────────────────────── */
.styles .section-title, .styles .section-lead { text-align: center; }
.styles .section-lead { margin-left: auto; margin-right: auto; }
.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 8px 0 34px; }
.type-card {
  background: var(--paper); border-radius: var(--radius); padding: 40px 20px; text-align: center;
  box-shadow: var(--shadow-sm); transition: transform .2s ease;
}
.type-card:hover { transform: translateY(-4px); }
.type-ico {
  display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 20px;
  background: var(--sage-soft); border-radius: 50%; font-size: 30px;
}
.type-card h3 { margin: 0; font-family: var(--serif-zh); font-size: var(--fs-card); }
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 900px; margin: 0 auto; }
.feature-card { background: var(--paper); border-radius: 14px; padding: 22px 24px; box-shadow: var(--shadow-sm); }
.feature-card h4 { margin: 0 0 6px; font-size: 17px; }
.feature-card p { margin: 0; color: var(--ink-mute); font-size: 14px; }

/* ── 作品集 ───────────────────────────────────── */
.filters {
  display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 7px; margin: 6px 0 40px;
  background: var(--paper); border-radius: 999px; box-shadow: var(--shadow-sm);
}
.filter {
  border: none; background: none; padding: 10px 22px; border-radius: 999px;
  font-family: var(--serif-zh); font-weight: 600; font-size: 16px; color: var(--ink-soft); transition: all .18s ease;
}
.filter.is-active { background: var(--sage); color: #fff; }

.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.work-card {
  background: var(--paper); border: 1.5px solid var(--sage-soft); border-radius: var(--radius);
  padding: 16px; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease;
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.work-cover {
  aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--sage-tint);
}
.work-cover img { width: 100%; height: 100%; object-fit: cover; }
.work-cover.is-empty { background: linear-gradient(160deg, #bcd0e6, #a7c07f 70%); }
.work-body { padding: 16px 8px 6px; }
.work-name { font-family: var(--serif-zh); font-weight: 700; font-size: clamp(22px, 2vw, 30px); margin: 0 0 4px; }
.work-addr { color: var(--ink-mute); margin: 0 0 10px; font-size: 15px; }
.work-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.work-tag { background: var(--sage-tint); color: var(--sage-deep); font-size: 12px; padding: 3px 12px; border-radius: 999px; }
.portfolio-empty { text-align: center; color: var(--ink-mute); padding: 40px 0; }
.load-more-wrap { text-align: center; margin-top: 40px; }

/* ── 服務費用 ──────────────────────────────────── */
.pricing .section-title, .pricing .eyebrow, .pricing .section-lead { text-align: center; }
.pricing .eyebrow { color: var(--brick); }
.pricing .section-lead { margin-left: auto; margin-right: auto; }
.plan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-bottom: 30px; }
.plan-card { position: relative; background: var(--paper); border-radius: var(--radius); padding: 34px 34px 38px; box-shadow: var(--shadow-sm); }
.plan-card.is-recommended { background: var(--sage-tint); border: 1.5px solid var(--sage-soft); }
.plan-badge {
  position: absolute; top: 20px; right: 20px; background: var(--sage); color: #fff;
  font-size: 13px; font-weight: 600; padding: 5px 14px; border-radius: 999px;
}
.plan-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.plan-head .p-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--sage-soft); font-size: 20px; }
.plan-head.is-rec .p-ico { background: var(--sage); }
.plan-label { font-weight: 700; font-size: 17px; }
.plan-subtitle { color: var(--ink-mute); font-size: 14px; }
.plan-desc { color: var(--ink-soft); margin: 0 0 6px; }
.plan-note { color: var(--ink-mute); font-size: 13px; margin: 0 0 18px; }
.plan-rows-title { font-weight: 700; font-size: 15px; margin: 18px 0 10px; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); }
.price-row .rt { color: var(--ink-soft); }
.price-row .amt { font-family: var(--serif-en); font-size: 26px; font-weight: 600; }
.price-row .amt .unit { font-family: var(--serif-zh); font-size: 15px; margin-left: 4px; }

.deposit { background: var(--paper); border-radius: var(--radius); padding: 30px; text-align: center; box-shadow: var(--shadow-sm); }
.deposit-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--sage-tint); color: var(--sage-deep); padding: 8px 20px; border-radius: 999px; font-weight: 600; font-size: 14px; margin-bottom: 22px; }
.deposit-rows { display: flex; justify-content: center; gap: clamp(24px, 6vw, 80px); flex-wrap: wrap; margin-bottom: 18px; }
.deposit-item .rt { color: var(--ink-mute); font-size: 14px; }
.deposit-item .amt { font-family: var(--serif-en); font-size: 30px; font-weight: 600; }
.deposit-item .amt .unit { font-family: var(--serif-zh); font-size: 15px; margin-left: 4px; }
.deposit-note { color: var(--ink-mute); font-size: 14px; margin: 0; white-space: pre-line; }
.pricing-cta { text-align: center; margin-top: 34px; }

/* ── 委託流程 ──────────────────────────────────── */
.process .section-title, .process .eyebrow { text-align: center; }
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 34px 0 30px; }
.step-card { position: relative; background: var(--paper); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); }
.step-ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; font-size: 22px; color: #fff; }
.step-ico--sage { background: var(--sage); }
.step-ico--amber { background: var(--amber); }
.step-ico--brick { background: var(--brick); }
.step-no { position: absolute; top: 26px; right: 26px; font-family: var(--serif-en); font-size: 34px; color: var(--line); font-weight: 600; }
.step-card h3 { font-family: var(--serif-zh); font-size: var(--fs-card); margin: 18px 0 10px; }
.step-card p { color: var(--ink-soft); font-size: 15px; margin: 0; }
.notice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.notice { background: var(--paper); border-radius: 12px; padding: 16px 22px; color: var(--ink-soft); font-size: 14px; }

/* ── FAQ ──────────────────────────────────────── */
.faq-list { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:first-child { border-top: none; }
.faq-q { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; background: none; border: none; padding: 22px 26px; font-size: 17px; color: var(--ink); }
.faq-q .qn { font-family: var(--serif-en); color: var(--sage); font-weight: 600; }
.faq-q .qt { flex: 1; font-weight: 500; }
.faq-q .chev { transition: transform .25s ease; color: var(--sage); }
.faq-item.is-open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 26px 22px 62px; color: var(--ink-soft); }

/* ── 私訊諮詢 ──────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.contact-intro .section-title { text-align: left; }
.contact-perks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 18px; }
.contact-perks li { display: flex; gap: 14px; align-items: flex-start; }
.perk-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sage-tint); flex: none; }
.contact-perks strong { display: block; }
.contact-perks span { color: var(--ink-mute); font-size: 14px; }

.contact-form { background: var(--paper); border-radius: var(--radius); padding: clamp(26px, 3vw, 40px); box-shadow: var(--shadow); }
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 8px; }
.field .req { color: var(--brick); }
.field .hint { color: var(--ink-mute); font-weight: 400; font-size: 12px; margin-left: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; font-family: inherit; font-size: 15px; color: var(--ink); transition: border-color .18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sage); }
.field textarea { resize: vertical; }
.chip-group { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 14px; cursor: pointer; transition: all .16s ease; }
.chip input { width: auto; margin: 0; accent-color: var(--sage); }
.chip:has(input:checked) { border-color: var(--sage); background: var(--sage-tint); color: var(--sage-deep); }
.form-note { text-align: center; color: var(--ink-mute); font-size: 13px; margin: 14px 0 0; }
.form-status { text-align: center; font-size: 14px; margin: 12px 0 0; min-height: 20px; }
.form-status.ok { color: var(--sage-deep); }
.form-status.error { color: var(--brick); }

/* ── Footer ───────────────────────────────────── */
.footer { background: var(--nav-bg); padding: 46px 0; text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.brand--footer .brand-zh { font-size: 24px; }
.footer-note { color: var(--ink-soft); margin: 6px 0 0; }
.footer-copy { color: var(--ink-mute); font-size: 13px; margin: 8px 0 0; }

/* ── 送出成功小窗 ─────────────────────────────── */
.submit-modal { position: fixed; inset: 0; z-index: 120; background: rgba(28,34,24,.5); display: grid; place-items: center; padding: 20px; }
.submit-modal[hidden] { display: none; }
.submit-box {
  background: var(--paper); border-radius: 22px; padding: 44px 38px 36px; max-width: 420px; width: 100%;
  text-align: center; box-shadow: 0 30px 70px rgba(28,34,24,.35);
  animation: sm-pop .32s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes sm-pop { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
.submit-ico {
  display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 20px;
  background: var(--sage); color: #fff; border-radius: 50%;
}
.submit-ico svg { width: 34px; height: 34px; display: block; }
.submit-box h3 { font-family: var(--serif-zh); font-size: 24px; margin: 0 0 14px; color: var(--ink); }
.submit-box p { color: var(--ink-soft); margin: 0 0 8px; line-height: 1.8; }
.submit-box p:last-of-type { margin-bottom: 26px; }
.submit-box .btn { min-width: 140px; }

/* ── 燈箱 ─────────────────────────────────────── */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(28,34,24,.92); display: flex; padding: clamp(16px, 4vw, 50px); gap: 22px; }
.lightbox[hidden] { display: none; }
.lb-close { position: absolute; top: 20px; right: 24px; z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: none; background: rgba(255,255,255,.14); color: #fff; font-size: 20px; }
.lb-close:hover { background: rgba(255,255,255,.28); }
.lb-stage { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.lb-main { flex: 1; height: 100%; display: grid; place-items: center; min-width: 0; }
.lb-main img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; }
.lb-nav { width: 48px; height: 48px; flex: none; border-radius: 50%; border: none; background: rgba(255,255,255,.14); color: #fff; font-size: 28px; line-height: 1; }
.lb-nav:hover { background: rgba(255,255,255,.28); }
.lb-side { width: min(30vw, 300px); display: flex; flex-direction: column; color: #fff; }
.lb-caption { font-family: var(--serif-zh); font-size: 20px; margin-bottom: 14px; }
.lb-thumbs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; overflow-y: auto; padding-right: 4px; flex: 1; align-content: start; }
.lb-thumbs img { aspect-ratio: 1; object-fit: cover; border-radius: 10px; cursor: pointer; opacity: .55; border: 2px solid transparent; transition: opacity .16s ease; }
.lb-thumbs img.is-active, .lb-thumbs img:hover { opacity: 1; border-color: var(--sage-soft); }
.lb-scroll-hint { text-align: center; font-size: 13px; color: rgba(255,255,255,.6); padding-top: 10px; }

/* ── 線條 icon ────────────────────────────────── */
.type-ico { color: var(--sage-deep); }
.perk-ico { color: var(--sage-deep); }
.plan-head .p-ico { color: var(--sage-deep); }
.plan-head.is-rec .p-ico { color: #fff; }
.type-ico svg, .step-ico svg, .perk-ico svg, .p-ico svg, .deposit-badge svg, .btn svg, .faq-q .chev svg { display: block; }
.type-ico svg { width: 32px; height: 32px; }
.step-ico svg { width: 24px; height: 24px; }
.perk-ico svg { width: 20px; height: 20px; }
.p-ico svg { width: 22px; height: 22px; }
.deposit-badge svg { width: 16px; height: 16px; }
.plan-badge svg { width: 13px; height: 13px; display: inline-block; vertical-align: -1px; }
.btn svg { width: 18px; height: 18px; }
.faq-q .chev { display: inline-grid; }
.faq-q .chev svg { width: 20px; height: 20px; }

/* ── RWD ──────────────────────────────────────── */
@media (max-width: 900px) {
  .type-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 1fr; }
  .plan-grid, .contact-grid, .notice-row { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-intro .section-title { text-align: left; }
  .lb-side { width: min(38vw, 240px); }
}
@media (max-width: 640px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero { min-height: 92vh; }
  .lightbox { flex-direction: column; padding: 12px; gap: 12px; }
  .lb-stage { order: 1; }
  .lb-side { width: 100%; flex: none; }
  .lb-thumbs { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 70px; overflow-x: auto; }
  .lb-scroll-hint { display: none; }
}
