/* ---------------------------------------------
   Tokens — JR Renocraft Brand Guideline v1.0
   (Web typography: Inter — chosen for readability, universal
   rendering and SEO/perf over the print/logo face. See README.)
--------------------------------------------- */
:root {
  --bg: #FFFFFF;
  --bg-elevated: #F7F5F0;
  --surface: #FFFFFF;
  --ink: #08203A;
  --ink-muted: #57677C;
  --accent: #B08D4B;
  --accent-hover: #8F6F35;
  --accent-2: #7C4A2D;
  --line: rgba(8, 32, 58, 0.14);
  --line-strong: rgba(8, 32, 58, 0.26);
  --dark: #08203A;
  --dark-text: #F6F1E4;
  --dark-text-muted: #AFA68F;

  --font-display: "Inter", "PingFang TC", "Microsoft JhengHei", -apple-system, sans-serif;
  --font-body: "Inter", "PingFang TC", "Microsoft JhengHei", -apple-system, sans-serif;
  --font-mono: "Inter", "PingFang TC", "Microsoft JhengHei", -apple-system, sans-serif;

  --wrap: 1160px;
  --radius: 4px;
}

/* ---------------------------------------------
   Reset
--------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; line-height: 1.16; margin: 0; }
p { margin: 0; }
ul, dl { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

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

/* ---------------------------------------------
   Type utilities
--------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin: 0 0 14px;
}
.eyebrow-on-dark { color: var(--accent); }

.accent-name { color: var(--accent); }

.tw-cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  margin-left: 4px;
  background: var(--accent);
  vertical-align: -0.08em;
  animation: tw-blink 1s steps(1) infinite;
  transition: opacity 300ms ease;
}
.tw-cursor.tw-done {
  animation: none;
  opacity: 0;
}
@keyframes tw-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-link {
  display: inline-block;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: border-color 160ms ease, color 160ms ease;
}
.text-link:hover { color: var(--accent-hover); border-color: var(--accent-hover); }
.text-link-accent { color: var(--accent-hover); border-color: var(--accent); }
.text-link-accent:hover { color: var(--accent-2); border-color: var(--accent-2); }

/* ---------------------------------------------
   Buttons
--------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(8, 32, 58, 0.45); }

.btn-primary {
  background: var(--ink);
  color: var(--dark-text);
}
.btn-primary:hover { background: var(--accent); color: var(--ink); }

.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--accent-hover); color: var(--accent-hover); }

.btn-outline-light {
  background: rgba(246, 241, 228, 0.08);
  border-color: rgba(246, 241, 228, 0.5);
  color: var(--dark-text);
}
.btn-outline-light:hover { border-color: var(--dark-text); background: rgba(246, 241, 228, 0.16); }

.btn-small { padding: 10px 20px; font-size: 14px; }
.btn-full { width: 100%; }

/* ---------------------------------------------
   Header
--------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.wordmark-cn {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.nav {
  display: flex;
  gap: 34px;
}
.nav a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 160ms ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 20px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ---------------------------------------------
   Hero (full-bleed photo)
--------------------------------------------- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 13, 24, 0.92) 0%, rgba(5, 13, 24, 0.82) 38%, rgba(5, 13, 24, 0.4) 68%, rgba(5, 13, 24, 0.12) 100%),
    linear-gradient(180deg, rgba(5, 13, 24, 0.2) 0%, rgba(5, 13, 24, 0.35) 55%, rgba(5, 13, 24, 0.75) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 64px;
  padding-bottom: 56px;
  color: var(--dark-text);
}
.hero-title {
  font-size: clamp(36px, 5.4vw, 68px);
  color: var(--dark-text);
  max-width: 820px;
  margin-bottom: 18px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}
.hero-title-line {
  display: block;
}
.hero-sub {
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--dark-text-muted);
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(246, 241, 228, 0.18);
}
.hero-facts li {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--dark-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-facts svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }

/* ---------------------------------------------
   Page banner (subpages)
--------------------------------------------- */
.page-banner {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  min-height: 400px;
  display: flex;
  align-items: center;
  padding: 96px 0;
  color: var(--dark-text);
}
.page-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-banner-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 13, 24, 0.94) 0%, rgba(5, 13, 24, 0.82) 42%, rgba(9, 26, 48, 0.6) 100%),
    linear-gradient(180deg, rgba(5, 13, 24, 0.2) 0%, rgba(5, 13, 24, 0.5) 100%);
}
.page-banner .wrap { position: relative; z-index: 1; }
.page-banner h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  color: var(--dark-text);
  max-width: 720px;
}
.page-banner p.page-banner-sub {
  margin-top: 16px;
  font-size: 17px;
  color: var(--dark-text-muted);
  max-width: 620px;
}
.page-banner p.project-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.project-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.project-meta-icon { width: 15px; height: 15px; flex-shrink: 0; color: var(--accent); }
.project-meta-sep { color: var(--dark-text-muted); opacity: 0.6; }
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--dark-text-muted);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------------------------------------------
   Home bento grid (category tiles)
--------------------------------------------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, clamp(190px, 20vw, 260px));
  gap: 14px;
}
.bento-tile-lg {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}
.bento-tile {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
}
.bento-tile::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 3px;
  background: var(--accent);
  transition: width 380ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}
.bento-tile:hover::after { width: 100%; }
.bento-photo {
  position: absolute;
  inset: -2%;
  background-size: cover;
  background-position: center;
  filter: saturate(0.82) sepia(0.14) contrast(calc(1.06 * var(--tile-contrast, 1))) brightness(calc(1.01 * var(--tile-brightness, 1)));
  transition: transform 550ms cubic-bezier(0.16, 1, 0.3, 1);
}
.bento-tile:hover .bento-photo { transform: scale(1.12); }
.bento-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 13, 24, 0) 38%, rgba(5, 13, 24, 0.8) 100%);
  transition: background 300ms ease;
}
.bento-tile:hover .bento-scrim {
  background: linear-gradient(180deg, rgba(5, 13, 24, 0.08) 28%, rgba(5, 13, 24, 0.88) 100%);
}
.bento-label {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.bento-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.bento-tile-lg .bento-name { font-size: 20px; }

/* ---------------------------------------------
   Service detail pages
--------------------------------------------- */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.service-detail-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.service-detail-content h2 { margin-bottom: 18px; }
.service-detail-content .service-items { margin-top: 24px; margin-bottom: 8px; gap: 12px; }
.service-detail-content .service-items li { font-size: 15px; padding-left: 20px; }
.service-detail-content .service-items li::before { top: 8px; width: 5px; height: 5px; }

.portfolio { max-width: 900px; margin: 0 auto; }
.portfolio-tabs {
  position: relative;
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 4px 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
  overflow-x: auto;
  scrollbar-width: none;
}
.portfolio-tabs::-webkit-scrollbar { display: none; }
.portfolio-tab {
  appearance: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 220ms ease;
}
.portfolio-tab:hover { color: var(--ink); }
.portfolio-tab.is-active { color: var(--ink); }
.portfolio-underline {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  transform: translateX(0);
  transition: transform 380ms cubic-bezier(0.65, 0, 0.35, 1), width 380ms cubic-bezier(0.65, 0, 0.35, 1);
}
.portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  transition: opacity 220ms ease;
}
.portfolio-gallery.is-fading { opacity: 0; }
.portfolio-photo {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
}
.portfolio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}
.portfolio-photo:hover img { transform: scale(1.05); }
.portfolio-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 13, 24, 0) 30%, rgba(5, 13, 24, 0.94) 100%);
  transition: background 260ms ease;
}
.portfolio-photo:hover .portfolio-scrim {
  background: linear-gradient(180deg, rgba(5, 13, 24, 0.08) 18%, rgba(5, 13, 24, 0.97) 100%);
}
.portfolio-story-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(5, 13, 24, 0.55);
  border: 1px solid rgba(246, 241, 228, 0.3);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dark-text);
  transition: background 200ms ease, border-color 200ms ease;
}
.portfolio-photo:hover .portfolio-story-badge {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}
.portfolio-info {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 1;
}
.portfolio-location {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 1px 10px rgba(0, 0, 0, 0.6);
  margin-bottom: 4px;
}
.portfolio-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
button.portfolio-photo {
  width: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  background: none;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
}
.portfolio-zoom-badge { padding-right: 11px; }

/* ---------------------------------------------
   Photo lightbox
--------------------------------------------- */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 220ms ease;
}
.lightbox.is-open { opacity: 1; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 13, 24, 0.86);
}
.lightbox-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  max-width: 980px;
  width: 100%;
  max-height: 86vh;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5);
  transform: scale(0.97) translateY(8px);
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}
.lightbox.is-open .lightbox-inner { transform: scale(1) translateY(0); }
.lightbox-media { background: var(--bg-elevated); min-height: 0; }
.lightbox-media img {
  width: 100%;
  height: 100%;
  max-height: 86vh;
  object-fit: contain;
  display: block;
}
.lightbox-panel {
  padding: 32px 30px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.lightbox-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin: 0 0 10px;
}
.lightbox-panel h3 {
  font-size: clamp(20px, 2.4vw, 26px);
  margin: 0 0 8px;
}
.lightbox-location {
  font-size: 13px;
  color: var(--ink-muted);
  margin: 0 0 16px;
}
.lightbox-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-muted);
  margin: 0;
}
.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.lightbox-close svg { width: 16px; height: 16px; }
.lightbox-close:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
body.lightbox-open { overflow: hidden; }

@media (max-width: 720px) {
  .lightbox-inner { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; }
  .lightbox-media img { max-height: 46vh; }
  .lightbox-panel { padding: 24px 22px; }
}

.portfolio-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  aspect-ratio: 16 / 7;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--ink-muted);
  text-align: center;
  padding: 24px;
}
.portfolio-empty span { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.02em; }
.portfolio-empty a { font-size: 13px; font-weight: 600; color: var(--accent-hover); }
.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.stories-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 640px;
  margin: 0 auto;
}
.stories-grid-1 {
  grid-template-columns: 1fr;
  max-width: 340px;
  margin: 0 auto;
}
.stories-grid .portfolio-photo { aspect-ratio: 3 / 4; }
.stories-grid .portfolio-photo::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 4px;
  background: var(--accent);
  box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.55);
  transition: width 380ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}
.stories-grid .portfolio-photo:hover::after { width: 100%; }

.stories-marquee {
  overflow: hidden;
}
.stories-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: storiesScroll 32s linear infinite;
}
.stories-marquee:hover .stories-track { animation-play-state: paused; }
.stories-track .portfolio-photo {
  flex: 0 0 280px;
  aspect-ratio: 3 / 4;
}
.stories-track .portfolio-photo::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 4px;
  background: var(--accent);
  box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.55);
  transition: width 380ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}
.stories-track .portfolio-photo:hover::after { width: 100%; }
@keyframes storiesScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.section-foot-link {
  margin-top: 40px;
  text-align: center;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 32px;
}
.section-foot-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-hover);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}
.section-foot-link a:hover { color: var(--accent-2); border-color: var(--accent-2); }

/* ---------------------------------------------
   Sections (generic)
--------------------------------------------- */
.section {
  padding: 104px 0;
}
.section-alt { background: var(--bg-elevated); }
.section-dark { background: var(--dark); color: var(--dark-text); }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.8vw, 38px); margin-bottom: 16px; }
.section-sub { color: var(--ink-muted); font-size: 17px; }
.section-dark .section-sub { color: var(--dark-text-muted); }

/* ---------------------------------------------
   Why us (icon rows)
--------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.why-item {
  position: relative;
  padding: 36px 32px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 320ms ease, border-color 320ms ease;
}
.why-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--accent);
  transition: width 380ms cubic-bezier(0.16, 1, 0.3, 1);
}
.why-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 52px -24px rgba(8, 32, 58, 0.28);
  border-color: transparent;
}
.why-item:hover::before { width: 100%; }
.why-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(124, 74, 45, 0.1);
  color: var(--accent-2);
  margin-bottom: 20px;
  transition: background 280ms ease, color 280ms ease, transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.why-item:hover .why-mark {
  background: var(--accent);
  color: #241804;
  transform: scale(1.1) rotate(-6deg);
}
.why-mark svg { width: 22px; height: 22px; }
.why-item h3 { font-size: 18px; margin-bottom: 10px; }
.why-item p { color: var(--ink-muted); font-size: 15px; }
.why-item .why-lead { color: var(--ink); font-weight: 700; margin-bottom: 8px; }

/* ---------------------------------------------
   Services (icon cards)
--------------------------------------------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service-grid-3 { grid-template-columns: repeat(3, 1fr); }
.service-card {
  padding: 34px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 260ms ease, border-color 260ms ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-2);
  box-shadow: 0 24px 48px rgba(8, 32, 58, 0.1);
}
.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(124, 74, 45, 0.1);
  color: var(--accent-2);
  margin-bottom: 22px;
}
.service-icon svg { width: 22px; height: 22px; }
.service-card h3 { font-size: 18px; margin-bottom: 10px; }
.service-desc { color: var(--ink-muted); font-size: 14px; margin-bottom: 18px; }
.service-items { display: grid; gap: 8px; }
.service-items li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  color: var(--ink);
}
.service-items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------------------------------------------
   Process (How We Work)
--------------------------------------------- */
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.process-step {
  position: relative;
  padding: 32px 26px 30px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 320ms ease, border-color 320ms ease;
}
.process-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--accent);
  transition: width 380ms cubic-bezier(0.16, 1, 0.3, 1);
}
.process-step:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 52px -24px rgba(8, 32, 58, 0.28);
  border-color: transparent;
}
.process-step:hover::before { width: 100%; }
.process-icon-wrap {
  position: relative;
  width: 60px;
  height: 60px;
  margin-bottom: 22px;
}
.process-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(124, 74, 45, 0.1);
  color: var(--accent-2);
  transition: background 280ms ease, color 280ms ease, transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.process-icon svg { width: 26px; height: 26px; }
.process-step:hover .process-icon {
  background: var(--accent);
  color: #241804;
  transform: scale(1.08) rotate(-5deg);
}
.process-num {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--dark-text);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
  z-index: 1;
}
.process-step h3 { font-size: 18px; margin-bottom: 10px; }
.process-step p { color: var(--ink-muted); font-size: 14.5px; max-width: none; }

/* ---------------------------------------------
   About
--------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 64px;
  align-items: start;
}
.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  object-fit: cover;
}
.about-content h2 { font-size: clamp(26px, 3.8vw, 38px); margin-bottom: 20px; max-width: 480px; }
.about-lede {
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 16px;
  max-width: 560px;
}
.about-lede-muted { color: var(--ink-muted); font-size: 16px; }

.founder-photo-slot {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  border: 1.5px dashed var(--line-strong);
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--ink-muted);
  text-align: center;
  padding: 24px;
}
.founder-photo-slot svg { width: 48px; height: 48px; opacity: 0.5; }
.founder-photo-slot span { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; }
.about-photo-stack {
  position: sticky;
  top: 116px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.founder-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  object-fit: cover;
}
.story-photo-side { margin: 0; }
.story-photo-side img {
  display: block;
  width: 100%;
  aspect-ratio: 300 / 220;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
}
.story-photo-side figcaption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
  font-style: italic;
}

/* ---------------------------------------------
   Before / After slider
--------------------------------------------- */
.ba-slider { position: relative; user-select: none; }
.ba-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
}
.ba-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-before-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 50% 0 0);
}
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--surface);
  transform: translateX(-1px);
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.ba-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  background: var(--surface);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2308203A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 7 4 12l4 5M16 7l4 5-4 5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px;
}
.ba-tag {
  position: absolute;
  top: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(8, 32, 58, 0.6);
  padding: 5px 11px;
  border-radius: 999px;
  z-index: 1;
}
.ba-tag-before { left: 14px; }
.ba-tag-after { right: 14px; }
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}
.ba-caption {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  text-align: center;
}

/* ---------------------------------------------
   Projects
--------------------------------------------- */
.project-story {
  max-width: 880px;
  margin: 0 auto;
}
.project-story-head {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 48px;
  align-items: start;
  margin-bottom: 64px;
}
.project-story .project-desc {
  font-size: 19px;
  line-height: 1.75;
  max-width: none;
  margin-bottom: 22px;
}
.project-story-head .project-desc:last-child { margin-bottom: 0; }
.project-subhead {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 14px;
}
.project-facts {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  margin: 0;
}
.project-facts-item + .project-facts-item { margin-top: 22px; }
.project-facts dt {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin: 0 0 6px;
}
.project-facts dd {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
}
.project-story-section { margin-bottom: 56px; }
.project-desc {
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 28px;
}
.ba-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.photo-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.photo-pair img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
}
.project-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.project-badges li {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 13px;
}
.project-links-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.project-links-row .text-link { margin-top: 0; }

.photo-grid {
  display: flex;
  gap: 16px;
}
.photo-grid img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
}
.photo-grid > img {
  flex: 1.3;
  min-width: 0;
  aspect-ratio: 4 / 3;
}
.photo-grid-stack { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.photo-grid-stack img { flex: 1; min-height: 0; }

.project-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}
.project-back-link:hover { color: var(--accent-hover); border-color: var(--accent-hover); }

.projects-footnote {
  margin-top: 8px;
  text-align: center;
  color: var(--ink-muted);
  font-size: 15px;
}
.projects-footnote a { color: var(--accent-hover); font-weight: 600; }
.projects-footnote a:hover { text-decoration: underline; }

/* ---------------------------------------------
   Testimonial
--------------------------------------------- */
.testimonial {
  background: var(--bg);
  padding: 72px 0;
}
.testimonial-inner {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: center;
  text-align: left;
}
.testimonial-photo {
  width: 100%;
  height: auto;
  justify-self: center;
}
.testimonial-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 24px;
}
.testimonial-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
}
.testimonial cite {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---------------------------------------------
   CTA band
--------------------------------------------- */
.call-band {
  position: relative;
  padding: 104px 0;
  color: var(--dark-text);
  overflow: hidden;
  background: var(--dark);
}
.call-band-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
}
.call-band-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 13, 24, 0.75) 0%, rgba(5, 13, 24, 0.94) 100%);
}
.call-band-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.call-band-eyebrow {
  color: var(--accent);
  justify-content: center;
}
.call-band-inner h2 {
  color: var(--dark-text);
  font-size: clamp(30px, 4.4vw, 48px);
  margin-bottom: 18px;
}
.call-band-sub {
  color: var(--dark-text-muted);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 36px;
}
.call-band-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.call-band .btn-primary { background: var(--accent); color: #241804; padding: 16px 34px; font-size: 16px; }
.call-band .btn-primary:hover { background: #C39C57; }
.call-band-trust {
  display: flex;
  gap: 10px 24px;
  justify-content: center;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--dark-text-muted);
}

.hero-ctas .btn-primary { background: var(--accent); color: #241804; }
.hero-ctas .btn-primary:hover { background: #C39C57; }

/* ---------------------------------------------
   Contact
--------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
}
.contact-card h3 {
  font-size: clamp(19px, 2vw, 22px);
  margin-top: 8px;
}
.contact-intro-lede {
  font-size: 16px;
  color: var(--ink-muted);
  margin-top: 12px;
}
.contact-details {
  margin-top: 32px;
  display: grid;
  gap: 18px;
}
.contact-details li {
  display: flex;
  gap: 16px;
  font-size: 15px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.contact-details li:last-child { border-bottom: none; padding-bottom: 0; }
.contact-details span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  width: 90px;
  flex-shrink: 0;
  padding-top: 2px;
}
.contact-details a { font-weight: 600; transition: color 160ms ease; }
.contact-details a:hover { color: var(--accent-hover); }
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
}
.form-row { margin-bottom: 20px; }
.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-row label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.form-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.7;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  resize: vertical;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-muted);
  text-align: center;
}
.form-note-success { color: var(--accent-2); }
.form-note-error { color: #B23A2E; }

/* ---------------------------------------------
   Footer
--------------------------------------------- */
.site-footer {
  background: var(--dark);
  color: var(--dark-text-muted);
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}
.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--dark-text);
  margin-bottom: 4px;
}
.footer-copy p { margin: 0; }
.footer-service-area {
  font-size: 12px;
  line-height: 1.6;
  max-width: 560px;
  margin-top: 6px !important;
  opacity: 0.85;
}
.footer-copyright {
  font-size: 11px;
  margin-top: 12px !important;
  opacity: 0.55;
}
.footer-links { display: flex; align-items: center; gap: 20px; }
.footer-social { display: flex; color: var(--dark-text-muted); }
.footer-social svg { width: 19px; height: 19px; display: block; }
.footer-social:hover { color: var(--dark-text); }

/* ---------------------------------------------
   Scroll reveal
--------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
.no-js [data-reveal] {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------
   Responsive
--------------------------------------------- */
@media (max-width: 980px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .stories-grid { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo-stack { position: static; }
  .service-detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .project-story-head { grid-template-columns: 1fr; gap: 28px; }
  .photo-grid-stack { flex-direction: row; }
  .photo-grid-stack img { flex: 1; aspect-ratio: 16 / 10; }
  .testimonial-inner { grid-template-columns: 1fr; text-align: center; }
  .testimonial-photo { max-width: 220px; }
  .about-photo { max-width: 280px; }
  .contact-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .service-grid-3 { grid-template-columns: 1fr; }
  .photo-grid { flex-direction: column; }
  .photo-grid > img { aspect-ratio: 4 / 3; }
  .photo-pair { grid-template-columns: 1fr; }
  .hero { display: block; min-height: unset; }
  .hero-bg { position: absolute; top: 0; height: 46vh; }
  .hero-scrim { position: absolute; top: 0; height: 46vh; background: linear-gradient(180deg, rgba(8,21,37,.08) 0%, rgba(6,16,29,.98) 100%); }
  .hero-inner { padding-top: 38vh; }
  .page-banner { min-height: 320px; padding: 72px 0; }
}

@media (max-width: 720px) {
  .nav {
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 260ms ease;
  }
  .nav.is-open { max-height: 420px; }
  .nav a { padding: 16px 24px; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .header-actions .btn-small { display: none; }
  .form-row-split { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr; }
  .portfolio-gallery { grid-template-columns: repeat(2, 1fr); }
  .portfolio-tabs { justify-content: flex-start; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: 200px repeat(2, 150px); }
  .bento-tile-lg { grid-column: 1 / 3; grid-row: 1; }
  .section { padding: 64px 0; }
  .wordmark-cn { display: none; }
}

@media (max-width: 420px) {
  .hero-title-line:last-child { min-height: 2.32em; }
}
