/* MUAMUA CASA — global styles */
:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --ink: #22201d;
  --muted: #6f6a62;
  --line: #e7e2da;
  --accent: #90a088;        /* VI sage green (from logo) */
  --accent-dark: #71816a;   /* hover / high-contrast green */
  --green: #475243;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(34, 32, 29, .07);
  --max: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-title { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.section-sub { color: var(--muted); margin-top: 8px; max-width: 640px; }
.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 245, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .12em; font-size: 18px; }
.logo-img { height: 38px; width: auto; display: block; }
.nav-links { display: flex; gap: 26px; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--ink); color: #fff; padding: 9px 18px; border-radius: 999px;
  font-size: 14px; transition: background .2s;
}
.nav-cta:hover { background: var(--accent-dark); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px 0; }

/* ---------- hero ---------- */
.hero {
  padding: 90px 0 80px;
  background:
    linear-gradient(180deg, rgba(250,248,245,0) 0%, rgba(250,248,245,1) 92%),
    radial-gradient(900px 420px at 85% 0%, #ebefe4 0%, rgba(250,248,245,0) 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.kicker {
  display: inline-block; font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-dark); border: 1px solid #c9d2c0; border-radius: 999px; padding: 6px 14px;
  background: #fff;
}
.hero h1 {
  font-size: 46px; line-height: 1.15; letter-spacing: -.025em; margin: 20px 0 18px; font-weight: 750;
}
.hero p.lead { color: var(--muted); font-size: 17.5px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px; font-size: 15px; font-weight: 600;
  transition: transform .15s, background .2s, box-shadow .2s;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost { border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: #fff; }
.hero-direct { margin-top: 16px; font-size: 14px; color: var(--ink); font-weight: 500; }
.hero-direct a { color: var(--accent-dark, #2f5d50); text-decoration: underline; text-underline-offset: 3px; }
.hero-direct a:hover { opacity: .75; }
.hero-note { margin-top: 12px; font-size: 13.5px; color: var(--muted); }

/* hero visual */
.hero-visual {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow); padding: 14px;
}
.hero-photo { position: relative; }
.hero-photo img { width: 100%; border-radius: 12px; object-fit: cover; aspect-ratio: 4 / 3.4; }
.hero-photo .photo-overlay {
  position: absolute; right: -10px; bottom: -18px; width: 38%;
  border-radius: 12px; border: 4px solid #fff; box-shadow: var(--shadow);
  object-fit: cover; aspect-ratio: 3 / 4;
}
.hero-tags { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.tag {
  font-size: 12.5px; background: #f1ede6; border-radius: 999px; padding: 6px 13px; color: var(--muted);
}

/* ---------- category cards ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .18s, box-shadow .18s; display: block;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-visual { height: 190px; overflow: hidden; background: #eee7dc; }
.card-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card-visual .cov-fg { transform: scale(1.05); }

/* ---------- cover: portrait images show in full over a blurred backdrop ---------- */
.cov { position: absolute; inset: 0; display: block; overflow: hidden; }
.cov .cov-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(22px) brightness(.62) saturate(1.15); transform: scale(1.14); }
.cov .cov-fg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cov.is-portrait .cov-fg { object-fit: contain; }

/* detail stage: sharp image sets the height, blurred copy fills behind */
.gal-stage .cov-stage { position: relative; inset: auto; display: block; }
.gal-stage .cov-stage .cov-fg { position: relative; width: 100%; height: auto; max-height: 640px; object-fit: contain; }
.gal-stage .cov-stage .cov-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 20px 22px; }
.card-body h3 { font-size: 17.5px; margin-bottom: 6px; }
.card-body p { font-size: 14px; color: var(--muted); }
.card-link { display: inline-block; margin-top: 12px; font-size: 13.5px; color: var(--accent-dark); font-weight: 600; }

/* ---------- features ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px;
}
.feature .num {
  width: 40px; height: 40px; border-radius: 10px; background: #eef1ea; color: var(--accent-dark);
  display: grid; place-items: center; font-weight: 700; margin-bottom: 14px;
}
.feature h3 { font-size: 16.5px; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--muted); }

/* ---------- process ---------- */
.process { background: var(--green); color: #f2f0ea; border-radius: 24px; padding: 60px 48px; margin-top: 10px; }
.process .section-title { color: #fff; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 36px; }
.step h4 { font-size: 15.5px; margin: 10px 0 8px; color: #fff; }
.step p { font-size: 13.5px; color: #c9cec4; }
.step .n {
  font-size: 13px; letter-spacing: .14em; color: #b8c4ad; border-bottom: 1px solid rgba(255,255,255,.25);
  padding-bottom: 8px; display: inline-block;
}

/* ---------- projects ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 40px; }
.project {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: grid; grid-template-columns: 220px 1fr;
}
.project .visual { min-height: 180px; overflow: hidden; background: #eee7dc; }
.project .visual img { width: 100%; height: 100%; object-fit: cover; }
.project .info { padding: 22px 24px; }
.project .info h3 { font-size: 17px; margin-bottom: 6px; }
.project .info p { font-size: 14px; color: var(--muted); }

/* ---------- faq ---------- */
.faq { max-width: 780px; margin: 36px auto 0; }
details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 22px; margin-bottom: 12px;
}
details[open] { border-color: #c9d2c0; }
summary { cursor: pointer; font-weight: 600; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::after { content: "+"; font-size: 20px; color: var(--accent-dark); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { margin-top: 10px; font-size: 14.5px; color: var(--muted); }

/* ---------- cta band ---------- */
.cta-band {
  background: var(--ink); color: #fff; border-radius: 24px; padding: 56px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { font-size: 28px; letter-spacing: -.02em; }
.cta-band p { color: #b9b4ab; margin-top: 8px; }
.cta-band .btn-primary { background: #fff; color: var(--ink); }
.cta-band .btn-primary:hover { background: #e9e2d5; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 72px; padding: 48px 0 36px; background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 14px; }
.footer-grid a, .footer-grid p { display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.footer-grid a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: 64px 0 44px; }
.page-hero h1 { font-size: 38px; letter-spacing: -.02em; margin-top: 16px; }
.page-hero p { color: var(--muted); max-width: 640px; margin-top: 10px; }
.breadcrumb { font-size: 13px; color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }

/* ---------- split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split .visual {
  border-radius: 18px; min-height: 300px; overflow: hidden;
  background: #eee7dc; border: 1px solid var(--line);
}
.split .visual img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.gallery a, .gallery .g-item {
  display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
  background: #eee7dc; aspect-ratio: 4 / 3;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery a:hover img { transform: scale(1.05); }
.gallery-cap { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* craft strip */
.craft-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.craft-strip figure { margin: 0; }
.craft-strip .frame { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 3 / 4; background: #eee7dc; }
.craft-strip img { width: 100%; height: 100%; object-fit: cover; }
.craft-strip figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.split h2 { font-size: 26px; letter-spacing: -.02em; margin-bottom: 12px; }
.split ul { margin-top: 16px; }
.split li { font-size: 14.5px; color: var(--muted); margin-bottom: 8px; list-style: none; padding-left: 22px; position: relative; }
.split li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-dark); font-weight: 700; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; }
.contact-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
}
.contact-card h3 { font-size: 18px; margin-bottom: 6px; }
.contact-card p { font-size: 14.5px; color: var(--muted); }
.contact-list { margin-top: 20px; }
.contact-list li { list-style: none; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.contact-list li:last-child { border-bottom: none; }
.contact-list b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 2px; }

form .field { margin-bottom: 16px; }
form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
form input, form select, form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 14.5px; background: #fff; font-family: inherit; color: var(--ink);
}
form input:focus, form select:focus, form textarea:focus { outline: 2px solid #c3cfba; border-color: #aebda4; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* ---------- visual palettes (photo placeholders) ---------- */
.v-warm { background: linear-gradient(135deg, #b99b72, #8a6d4b); }
.v-green { background: linear-gradient(135deg, #5d6e57, #3d4a3d); }
.v-clay { background: linear-gradient(135deg, #c29886, #9a6f5c); }
.v-slate { background: linear-gradient(135deg, #7d838c, #565c66); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .grid-4, .grid-3, .steps, .split, .contact-grid { grid-template-columns: 1fr; }
  .grid-2, .gallery, .craft-strip { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 34px; }
  .hero { padding: 56px 0 48px; }
  .process, .cta-band { padding: 40px 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: block; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column;
    background: #fff; padding: 20px 24px; border-bottom: 1px solid var(--line); gap: 16px;
  }
  .nav.open .nav-cta { display: inline-block; margin: 16px 24px 20px; }
  .hero-photo .photo-overlay { display: none; }
}

/* ---------- daily case (homepage, dark band) ---------- */
.daily { background: var(--green); color: #fff; padding: 64px 0; }
.daily-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.daily-head .kicker {
  color: #e2e9d9; border-color: rgba(255, 255, 255, .35); background: transparent;
}
.daily-head h2 { color: #fff; font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin-top: 14px; }
.daily-all { font-size: 14px; color: #cfd8c5; border-bottom: 1px solid rgba(207, 216, 197, .45); padding-bottom: 2px; white-space: nowrap; }
.daily-all:hover { color: #fff; border-color: #fff; }

.daily-card {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 0;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px; overflow: hidden; transition: background .2s, transform .2s;
}
.daily-card:hover { background: rgba(255, 255, 255, .1); transform: translateY(-2px); }
.daily-img { position: relative; min-height: 360px; background: #3a4437; overflow: hidden; }
.daily-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.daily-card:hover .daily-img .cov-fg { transform: scale(1.03); }
.daily-text { padding: 36px 38px; display: flex; flex-direction: column; }
.daily-date { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: #c9d3bd; }
.daily-text h3 { font-size: 26px; line-height: 1.28; margin: 12px 0 14px; color: #fff; font-weight: 700; letter-spacing: -.015em; }
.daily-text p { color: #dbe2d2; font-size: 15px; }
.daily-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 22px; }
.daily-tags span { font-size: 12px; border: 1px solid rgba(255, 255, 255, .28); color: #dbe2d2; border-radius: 999px; padding: 5px 11px; }
.daily-more { margin-top: 16px; font-size: 14px; font-weight: 600; color: #fff; }
.daily-sub { color: #cfd8c5; font-size: 14.5px; max-width: 620px; margin-top: 12px; }

/* 项目页顶部：每日案例置顶区 */
.daily-page { padding: 56px 0; }
.daily-page .daily-card { grid-template-columns: 1.05fr 1fr; }
.recent-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; margin-top: 22px; }
.recent-card {
  display: block; border-radius: 14px; overflow: hidden;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16);
  transition: background .2s, transform .2s;
}
.recent-card:hover { background: rgba(255, 255, 255, .12); transform: translateY(-2px); }
.recent-img { position: relative; aspect-ratio: 4 / 3; background: #3a4437; overflow: hidden; }
.recent-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.recent-card:hover .recent-img .cov-fg { transform: scale(1.04); }
.recent-body { padding: 15px 16px 17px; }
.recent-body .case-date { color: #c9d3bd; font-size: 11px; }
.recent-body h3 { color: #fff; font-size: 15px; line-height: 1.36; margin-top: 7px; font-weight: 600; letter-spacing: -.01em; }

/* ---------- case list / detail ---------- */
.case-date { display: inline-block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); font-weight: 600; }
.case-card .card-body h3 { margin-top: 6px; }
.case-title { font-size: 38px; line-height: 1.2; letter-spacing: -.025em; margin: 12px 0 14px; font-weight: 750; }
.case-lead { font-size: 17.5px; color: var(--muted); max-width: 780px; }
.case-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 26px; }
.case-meta span { font-size: 12.5px; background: #f1ede6; color: var(--muted); border-radius: 999px; padding: 6px 13px; }
.case-cover { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #eee7dc; }
.case-cover img { width: 100%; max-height: 620px; object-fit: cover; }
.case-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 44px; margin-top: 40px; align-items: start; }
.case-body p { font-size: 16.5px; color: #3b3833; margin-bottom: 18px; }
.case-specs { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.case-specs div { background: #fff; padding: 15px 18px; font-size: 14.5px; }
.case-specs b { display: block; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; font-weight: 600; }
.case-more { margin-top: 56px; }
.case-more h3 { font-size: 22px; margin-bottom: 20px; }
.case-empty { color: var(--muted); padding: 40px 0; }

/* ---------- media badges (多图 / 视频角标) ---------- */
.media-badges { position: absolute; top: 14px; right: 14px; display: flex; gap: 6px; z-index: 2; }
.media-badges span {
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #fff;
  background: rgba(34, 32, 29, .7); border-radius: 999px; padding: 5px 10px;
}
.media-badges.on-dark span { background: rgba(0, 0, 0, .42); color: #fff; }
.card-visual { position: relative; }
.media-ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: #3a4437; color: #cfd8c5; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
}

/* ---------- case gallery (detail) ---------- */
.case-gallery { margin: 4px 0 0; }
.gal-stage {
  margin: 0; position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); background: #eae4da;
}
.gal-stage img { display: block; width: 100%; max-height: 640px; object-fit: cover; }
.gal-stage.can-zoom { cursor: zoom-in; }
.gal-stage video { display: block; width: 100%; max-height: 640px; background: #000; }
.gal-embed { position: relative; aspect-ratio: 16 / 9; background: #000; }
.gal-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.gal-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; margin-top: 10px; }
.gal-cap { font-size: 13.5px; color: var(--muted); margin: 0; }
.gal-count { font-size: 12px; letter-spacing: .1em; color: var(--muted); white-space: nowrap; }

.gal-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 14px; }
.gal-thumb {
  position: relative; padding: 0; margin: 0; border: 2px solid transparent; border-radius: 10px;
  overflow: hidden; background: #475243; cursor: pointer; aspect-ratio: 4 / 3; display: block;
  transition: border-color .18s, transform .18s;
}
.gal-thumb:hover { transform: translateY(-1px); }
.gal-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gal-thumb.is-active { border-color: var(--accent); }
.gal-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #fff; font-size: 18px; }
.gal-tag {
  position: absolute; bottom: 4px; left: 4px; font-size: 9.5px; letter-spacing: .06em;
  text-transform: uppercase; background: rgba(0, 0, 0, .62); color: #fff;
  padding: 2px 6px; border-radius: 999px;
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 9000; background: rgba(18, 17, 15, .95);
  display: flex; align-items: center; justify-content: center; padding: 36px 64px;
}
.lb-inner { margin: 0; max-width: min(1240px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lb-inner img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 6px; }
.lb-inner figcaption { color: #d9d5cc; font-size: 13.5px; text-align: center; max-width: 720px; }
.lb-close {
  position: absolute; top: 14px; right: 18px; width: 42px; height: 42px; border: none;
  border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 24px;
  line-height: 1; cursor: pointer;
}
.lb-close:hover { background: rgba(255, 255, 255, .22); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px;
  border: none; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff;
  font-size: 28px; line-height: 1; cursor: pointer;
}
.lb-nav:hover { background: rgba(255, 255, 255, .24); }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }

@media (max-width: 960px) {
  .daily { padding: 44px 0; }
  .daily-card { grid-template-columns: 1fr; }
  .daily-img { min-height: 240px; position: relative; height: 240px; }
  .daily-text { padding: 24px 22px 28px; }
  .daily-text h3 { font-size: 21px; }
  .daily-head h2 { font-size: 24px; }
  .case-grid { grid-template-columns: 1fr; gap: 28px; }
  .case-title { font-size: 26px; }
  .case-lead { font-size: 15.5px; }
  .gal-stage img, .gal-stage video { max-height: 420px; }
  .gal-thumbs { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
  .lightbox { padding: 20px 14px 40px; }
  .lb-nav { display: none; }
  .lb-inner img { max-height: calc(100vh - 180px); }
  .daily-page { padding: 40px 0; }
  .daily-page .daily-card { grid-template-columns: 1fr; }
  .recent-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .recent-body { padding: 13px 13px 15px; }
  .recent-body h3 { font-size: 14px; }
}

@media (max-width: 520px) {
  .recent-grid { grid-template-columns: 1fr; }
}

/* P1: case internal navigation */
.case-product-backlink {
  display:inline-block; margin:22px 0 0; font-size:14px; font-weight:600;
  color:var(--accent-dark); text-decoration:none;
}
.case-product-backlink:hover { text-decoration:underline; }
.case-nav {
  display:flex; justify-content:space-between; gap:18px;
  margin-top:26px; padding-top:22px; border-top:1px solid var(--line);
}
.case-nav a {
  flex:1; max-width:48%; font-size:14px; line-height:1.5; color:var(--ink);
  text-decoration:none; font-weight:600;
}
.case-nav a:last-child { text-align:right; }
.case-nav a:hover { color:var(--accent-dark); text-decoration:underline; }
@media (max-width:640px) {
  .case-nav { flex-direction:column; gap:12px; }
  .case-nav a { max-width:100%; }
  .case-nav a:last-child { text-align:left; }
}
