/* ================================================================
   KAMATA KOUMUTEN — Shared Stylesheet
   株式会社鎌田工務店
   ================================================================ */

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

:root {
  --bg-primary: #FAFAF7;
  --bg-secondary: #F2F0EB;
  --bg-warm: #E8DFD3;
  --bg-card: #FFFFFF;
  --bg-elevated: #FFFFFF;
  --bg-dark: #2C2A25;
  --text-primary: #1A1A18;
  --text-secondary: #555550;
  --text-muted: #908D85;
  --text-light: #F0EDE6;
  --accent: #4A6741;
  --accent-light: #5C7D52;
  --accent-subtle: rgba(74, 103, 65, 0.08);
  --green-earth: #4A6741;
  --green-light: #5C7D52;
  --border: rgba(26, 26, 24, 0.08);
  --border-hover: rgba(26, 26, 24, 0.18);
  --font-display: 'Noto Serif JP', serif;
  --font-body: 'Noto Sans JP', sans-serif;
  --font-accent: 'DM Sans', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* Skip to content */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.8rem 1.5rem;
  background: var(--accent);
  color: var(--bg-primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  z-index: 1000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 1rem;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.5s var(--ease-out);
  background: transparent;
}

.nav.scrolled {
  background: rgba(250, 250, 247, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 3rem;
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

/* Nav on light-bg pages (non-homepage) */
.nav.nav-light {
  background: rgba(250, 250, 247, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav.nav-light .nav-logo-text,
.nav.nav-light .nav-links a { color: var(--text-primary); }
.nav.nav-light .nav-logo-sub { color: var(--text-muted); }
.nav.nav-light .nav-logo { color: var(--text-primary); }
.nav.nav-light .nav-links a:hover { color: var(--accent); }
.nav.nav-light .mobile-toggle span { background: var(--text-primary); }

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-light);
}

.nav-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.3s;
}

/* Logo pill background for dark nav (homepage hero) */
.nav:not(.scrolled):not(.nav-light) .nav-logo {
  background: rgba(255, 255, 255, 0.92);
  padding: 5px 14px;
  border-radius: 8px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.08);
}

.nav.scrolled .nav-logo,
.nav.nav-light .nav-logo {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Footer logo */
.footer-logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.nav-logo-sub {
  font-family: var(--font-accent);
  font-size: 0.65rem;
  color: rgba(240, 237, 230, 0.5);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: -2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(245, 242, 235, 0.92);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.3s;
  position: relative;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.nav.scrolled .nav-links a,
.nav.nav-light .nav-links a { text-shadow: none; }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease-out);
}

.nav-links a:hover { color: var(--text-light); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: 0.6rem 1.6rem !important;
  border: 1px solid rgba(240, 237, 230, 0.7) !important;
  color: var(--text-light) !important;
  background: rgba(20, 18, 15, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-weight: 500 !important;
  text-shadow: none !important;
  transition: all 0.3s var(--ease-out) !important;
}

.nav-cta:hover {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: white !important;
}

.nav.scrolled .nav-cta,
.nav.nav-light .nav-cta {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav.scrolled .nav-cta:hover,
.nav.nav-light .nav-cta:hover {
  background: var(--accent) !important;
  color: white !important;
}

.nav-cta::after { display: none !important; }

.nav.scrolled .nav-logo-text,
.nav.scrolled .nav-links a { color: var(--text-primary); }
.nav.scrolled .nav-logo-sub { color: var(--text-muted); }
.nav.scrolled .nav-logo { color: var(--text-primary); }
.nav.scrolled .nav-links a:hover { color: var(--accent); }
.nav.scrolled .mobile-toggle span { background: var(--text-primary); }

/* Mobile toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 200;
  background: none;
  border: none;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.mobile-toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--text-light);
  transition: all 0.3s;
  display: block;
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4.5px, -4.5px);
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(44, 42, 37, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-out);
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s var(--ease-out);
}

.mobile-menu.open a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.open a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.open a:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.open a:nth-child(6) { transition-delay: 0.35s; }

.mobile-menu a:hover {
  color: var(--accent);
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ===== HERO (Homepage) ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(18,16,13,0.82) 0%, rgba(18,16,13,0.72) 30%, rgba(18,16,13,0.52) 55%, rgba(18,16,13,0.25) 80%, rgba(18,16,13,0.1) 100%),
    linear-gradient(to bottom, rgba(18,16,13,0.2) 0%, rgba(18,16,13,0) 35%, rgba(18,16,13,0) 65%, rgba(18,16,13,0.45) 100%),
    url('../img/entrance.jpg') center/cover no-repeat;
  filter: saturate(0.82) contrast(1.02);
  transform: scale(1.05);
  animation: heroZoom 20s var(--ease-in-out) infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.12); }
}

.hero-bg-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  z-index: 1;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(255,255,255,1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,1) 1px, transparent 1px);
  background-size: 80px 80px;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 6vw;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  color: var(--text-light);
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  opacity: 0;
  animation: fadeSlideUp 1s var(--ease-out) 0.3s forwards;
}

.hero-eyebrow::before {
  content: '';
  width: 36px;
  height: 2px;
  background: var(--accent-light);
  flex-shrink: 0;
}

.hero-eyebrow span {
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.18;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.35);
  opacity: 0;
  animation: fadeSlideUp 1s var(--ease-out) 0.5s forwards;
  max-width: 14em;
}

.hero-title-line {
  display: block;
}

.hero-title-en {
  display: block;
  font-family: var(--font-accent);
  font-size: clamp(0.7rem, 1.2vw, 0.9rem);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(240, 237, 230, 0.6);
  margin-top: 1rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeSlideUp 1s var(--ease-out) 0.7s forwards;
}

.hero-desc {
  max-width: 520px;
  font-size: 0.95rem;
  color: rgba(240, 237, 230, 0.85);
  line-height: 2;
  margin-bottom: 2.5rem;
  font-weight: 300;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
  opacity: 0;
  animation: fadeSlideUp 1s var(--ease-out) 0.9s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  opacity: 0;
  animation: fadeSlideUp 1s var(--ease-out) 1.1s forwards;
}

/* Hero stats bar */
.hero-stats {
  position: absolute;
  bottom: 4rem;
  right: 6vw;
  z-index: 2;
  display: flex;
  gap: 3rem;
  opacity: 0;
  animation: fadeSlideUp 1s var(--ease-out) 1.4s forwards;
}

.hero-stat { text-align: right; }

.hero-stat-num {
  font-family: var(--font-accent);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-light);
  line-height: 1;
}

.hero-stat-num span {
  font-size: 1rem;
  color: var(--accent);
  margin-left: 2px;
}

.hero-stat-label {
  font-size: 0.72rem;
  color: rgba(240, 237, 230, 0.78);
  letter-spacing: 0.1em;
  margin-top: 0.4rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.hero-stat-num {
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 1s var(--ease-out) 2s forwards;
}

.scroll-indicator span {
  font-family: var(--font-accent);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(240, 237, 230, 0.7);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.6); }
}

/* ===== PAGE HERO (Subpages) ===== */
.page-hero {
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  filter: saturate(0.78) contrast(1.02);
  transform: scale(1.05);
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at center, rgba(18,16,13,0.55) 0%, rgba(18,16,13,0.25) 70%, rgba(18,16,13,0.1) 100%),
    linear-gradient(180deg, rgba(18,16,13,0.2) 0%, rgba(18,16,13,0.35) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  color: var(--text-light);
  padding: 6rem 2rem 4rem;
  max-width: 900px;
}

/* Focused dark band behind hero text only — keeps photo lively */
.page-hero-content::before {
  content: '';
  position: absolute;
  inset: 3rem -2rem 1rem;
  z-index: -1;
  background: radial-gradient(ellipse 60% 80% at center, rgba(18,16,13,0.7) 0%, rgba(18,16,13,0.55) 40%, rgba(18,16,13,0.25) 75%, rgba(18,16,13,0) 100%);
  pointer-events: none;
}

.page-hero-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-light);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease-out) 0.2s forwards;
  text-shadow: 0 1px 8px rgba(0,0,0,0.7), 0 1px 2px rgba(0,0,0,0.5);
}

.page-hero-label::before,
.page-hero-label::after {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--accent-light);
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease-out) 0.4s forwards;
  text-shadow:
    0 2px 4px rgba(0,0,0,0.7),
    0 4px 24px rgba(0,0,0,0.65),
    0 1px 2px rgba(0,0,0,0.6);
}

.page-hero-subtitle {
  font-size: 0.92rem;
  color: rgba(245, 242, 235, 0.95);
  font-weight: 400;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.9;
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease-out) 0.6s forwards;
  text-shadow:
    0 1px 3px rgba(0,0,0,0.75),
    0 2px 12px rgba(0,0,0,0.55);
}

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 6vw;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover { color: var(--accent); }

.breadcrumb-sep {
  color: var(--border-hover);
  font-size: 0.6rem;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.2rem;
  background: var(--accent);
  color: var(--bg-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  letter-spacing: 0.04em;
  min-height: 44px;
  white-space: nowrap;
}

.btn-primary > span,
.btn-secondary > span { white-space: nowrap; }

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(196, 123, 60, 0.25);
}

.btn-primary svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease-out);
}

.btn-primary:hover svg { transform: translateX(3px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.8rem;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border-hover);
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  letter-spacing: 0.04em;
  min-height: 44px;
  white-space: nowrap;
}

.hero .btn-secondary {
  color: var(--text-light);
  background: rgba(20, 18, 15, 0.55);
  border-color: rgba(240, 237, 230, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero .btn-secondary:hover {
  border-color: rgba(240, 237, 230, 0.85);
  background: rgba(20, 18, 15, 0.75);
}

.btn-secondary:hover {
  border-color: var(--text-secondary);
  background: rgba(0,0,0,0.03);
}

/* ===== SECTION STYLING ===== */
section {
  padding: 8rem 6vw;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-label::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 550px;
  line-height: 1.9;
  font-weight: 300;
}

/* Section divider */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
  border: none;
}

/* ===== PHILOSOPHY / INTRO ===== */
.philosophy {
  background: var(--bg-primary);
  position: relative;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.philosophy-text .section-subtitle {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.philosophy-values {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 2rem;
}

.philosophy-value {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.4s var(--ease-out);
  cursor: pointer;
}

.philosophy-value:hover {
  border-color: var(--accent);
  background: var(--accent-subtle);
  transform: translateX(4px);
}

.philosophy-value-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  color: var(--accent);
}

.philosophy-value-icon svg { width: 18px; height: 18px; }

.philosophy-value h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.philosophy-value p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.philosophy-visual {
  position: relative;
}

.philosophy-image-main {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: brightness(0.95) contrast(1.02);
}

.philosophy-badge {
  position: absolute;
  top: 2rem;
  right: -1rem;
  background: var(--accent);
  color: var(--bg-primary);
  padding: 1.2rem 1.5rem;
  text-align: center;
}

.philosophy-badge-num {
  font-family: var(--font-accent);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.philosophy-badge-label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  margin-top: 0.2rem;
}

/* ===== SERVICES ===== */
.services {
  background: var(--bg-secondary);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.services-header {
  text-align: center;
  margin-bottom: 4rem;
}

.services-header .section-subtitle {
  margin: 1rem auto 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease-out);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--green-earth));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  margin-bottom: 1.5rem;
  transition: all 0.4s var(--ease-out);
}

.service-card:hover .service-icon {
  background: var(--accent);
}

.service-icon svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
  transition: color 0.4s var(--ease-out);
}

.service-card:hover .service-icon svg {
  color: var(--bg-primary);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.service-card .service-en {
  font-family: var(--font-accent);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.service-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.service-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.service-tag {
  font-size: 0.68rem;
  color: var(--text-muted);
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border);
  letter-spacing: 0.02em;
}

.service-arrow {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.4s var(--ease-out);
}

.service-card:hover .service-arrow {
  border-color: var(--accent);
  color: var(--accent);
  transform: translate(2px, -2px);
}

.service-arrow svg { width: 14px; height: 14px; }

/* ===== PROJECT GALLERY ===== */
.projects {
  background: var(--bg-primary);
  position: relative;
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
}

.project-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.project-item:nth-child(1) { grid-column: 1 / 8; grid-row: 1; }
.project-item:nth-child(2) { grid-column: 8 / 13; grid-row: 1; }
.project-item:nth-child(3) { grid-column: 1 / 5; grid-row: 2; }
.project-item:nth-child(4) { grid-column: 5 / 9; grid-row: 2; }
.project-item:nth-child(5) { grid-column: 9 / 13; grid-row: 2; }

.project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16/10;
  filter: brightness(0.9) saturate(0.95);
  transition: all 0.7s var(--ease-out);
}

.project-item:hover img {
  filter: brightness(1) saturate(1);
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,24,0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}

.project-item:hover .project-overlay { opacity: 1; }

.project-overlay h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-light);
}

.project-overlay span {
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-top: 0.3rem;
}

/* ===== NUMBERS / TRUST ===== */
.trust {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.trust-item {
  padding: 2rem 1rem;
  position: relative;
}

.trust-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border);
}

.trust-num {
  font-family: var(--font-accent);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.trust-num span {
  font-size: 1.2rem;
  color: var(--accent);
}

.trust-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
}

.trust-sublabel {
  font-family: var(--font-accent);
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

/* ===== RECRUITMENT TEASER ===== */
.recruit {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.recruit-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 4rem;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.recruit-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--accent), var(--green-earth));
}

.recruit-content h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.recruit-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 2rem;
}

.recruit-perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.recruit-perk {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.recruit-perk-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  flex-shrink: 0;
}

.recruit-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.recruit-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: brightness(0.95) contrast(1.02);
}

.recruit-img:first-child {
  margin-top: 2rem;
}

/* ===== CONTACT / CTA ===== */
.contact-section {
  background: var(--bg-secondary);
  position: relative;
}

.contact-inner {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.contact-inner .section-subtitle {
  margin: 1rem auto 3rem;
}

.contact-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.contact-method {
  padding: 2.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.4s var(--ease-out);
  text-decoration: none;
  color: inherit;
  display: block;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  cursor: pointer;
}

.contact-method:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 16px 50px rgba(0,0,0,0.06);
}

.contact-method-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
}

.contact-method-icon svg { width: 22px; height: 22px; color: var(--accent); }

.contact-method h4 {
  font-family: var(--font-accent);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.contact-method p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Map container */
.map-container {
  width: 100%;
  height: 300px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.8) contrast(1.05);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-primary);
  padding: 4rem 6vw 2rem;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .nav-logo { margin-bottom: 1rem; }

.footer-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 320px;
}

.footer-col h5 {
  font-family: var(--font-accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

.footer-col a {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 0.7rem;
  transition: color 0.3s;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer-copy {
  font-family: var(--font-accent);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-legal a:hover { color: var(--text-secondary); }

/* ===== ANIMATIONS ===== */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .hero-bg-image {
    animation: none;
    transform: scale(1);
  }
  .scroll-line {
    animation: none;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .philosophy-grid { grid-template-columns: 1fr; gap: 3rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2)::after { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-stats { display: none; }
  .recruit-inner { grid-template-columns: 1fr; }
  .recruit-image-grid { display: none; }
}

@media (max-width: 768px) {
  section { padding: 4.5rem 1.25rem; }
  .nav { padding: 0.9rem 1.25rem; }
  .nav.scrolled { padding: 0.75rem 1.25rem; }
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }

  /* ---- HERO ---- */
  .hero { min-height: 92vh; }
  .hero-content {
    padding: 7rem 1.5rem 7rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 92vh;
  }
  .hero-bg-image {
    background:
      linear-gradient(to bottom, rgba(18,16,13,0.45) 0%, rgba(18,16,13,0.55) 30%, rgba(18,16,13,0.7) 55%, rgba(18,16,13,0.65) 80%, rgba(18,16,13,0.55) 100%),
      url('../img/entrance.jpg') 15% center/cover no-repeat;
    filter: saturate(0.55) contrast(1.02);
  }
  .hero-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    margin-bottom: 1.1rem;
  }
  .hero-eyebrow::before { width: 24px; }
  .hero-title {
    font-size: clamp(2rem, 9.5vw, 2.6rem);
    line-height: 1.22;
    max-width: 100%;
    margin-bottom: 0.75rem;
  }
  .hero-title-en {
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    margin-bottom: 1.5rem;
  }
  .hero-desc {
    font-size: 0.85rem;
    line-height: 1.85;
    margin-bottom: 1.75rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    justify-content: center;
    width: 100%;
    padding: 0.95rem 1.5rem;
  }
  .hero-stats { display: none; }
  .scroll-indicator { bottom: 1.5rem; }
  .scroll-line { height: 28px; }

  /* Mobile-only: shrink logo pill so it doesn't crowd the burger */
  .nav:not(.scrolled):not(.nav-light) .nav-logo {
    padding: 4px 10px;
  }
  .nav-logo-img { height: 30px; }

  /* ---- SECTIONS ---- */
  .services-grid { grid-template-columns: 1fr; gap: 1rem; }
  .service-card { padding: 1.75rem 1.4rem; }
  .service-arrow { display: none; }

  .projects-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 0.6rem;
  }
  .project-item:nth-child(1) { grid-column: 1 / 3; grid-row: auto; }
  .project-item:nth-child(2) { grid-column: 1 / 2; grid-row: auto; }
  .project-item:nth-child(3) { grid-column: 2 / 3; grid-row: auto; }
  .project-item:nth-child(4) { grid-column: 1 / 2; grid-row: auto; }
  .project-item:nth-child(5) { grid-column: 2 / 3; grid-row: auto; }
  .project-overlay { opacity: 1; padding: 1rem; }
  .project-overlay h4 { font-size: 0.85rem; }
  .project-overlay span { font-size: 0.62rem; }

  .projects-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 2rem;
  }
  .projects-header .btn-secondary {
    align-self: flex-start;
    margin-bottom: 0;
  }

  /* Before / After */
  .ba-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .ba-card-meta {
    flex-direction: column;
    gap: 0.4rem;
  }
  .ba-card-body { padding: 1.25rem; }
  .ba-img-label {
    font-size: 0.6rem;
    padding: 0.25rem 0.6rem;
    top: 0.5rem;
  }

  /* Trust */
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .trust-item { padding: 1.25rem 0.5rem; }
  .trust-item:nth-child(odd)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--border);
  }
  .trust-item:nth-child(even)::after { display: none; }

  /* Recruit */
  .recruit-inner { padding: 2rem 1.5rem; gap: 1.5rem; }
  .recruit-perks { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .recruit-perk { font-size: 0.74rem; }
  .recruit-content h3 { font-size: 1.35rem; }

  /* Contact */
  .contact-methods { grid-template-columns: 1fr; }
  .contact-method { padding: 2rem 1.5rem; }
  .contact-method h4 { font-size: 1.2rem; }

  /* Philosophy */
  .philosophy-image-main { aspect-ratio: 4/5; }
  .philosophy-badge {
    top: 1rem;
    right: 1rem;
    padding: 0.9rem 1.1rem;
  }
  .philosophy-badge-num { font-size: 1.5rem; }

  /* Footer */
  .footer { padding: 3rem 1.25rem 1.5rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 1.75rem 1rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
    text-align: left;
  }
  .footer-copy { font-size: 0.65rem; line-height: 1.6; }

  .breadcrumb { padding: 1rem 1.25rem; }
  .page-hero { min-height: 40vh; }
  .small-biz-badge { padding: 1rem; gap: 0.75rem; }
  .small-biz-badge svg { width: 26px; height: 26px; }
}

/* Tightest phones */
@media (max-width: 380px) {
  .hero-title { font-size: 1.85rem; }
  .nav { padding: 0.8rem 1rem; }
  section { padding: 4rem 1rem; }
  .footer { padding: 2.5rem 1rem 1.5rem; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .recruit-perks { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== BEFORE / AFTER SECTION ===== */
.before-after {
  background: var(--bg-secondary);
}

.ba-header {
  text-align: center;
  margin-bottom: 4rem;
}

.ba-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.ba-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.ba-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.ba-card-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}

.ba-card-images::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  background: var(--accent);
  transform: translateX(-50%);
  z-index: 2;
}

.ba-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.ba-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.95) contrast(1.02) saturate(0.95);
}

.ba-img-label {
  position: absolute;
  top: 0.75rem;
  font-family: var(--font-accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  z-index: 3;
}

.ba-img-wrap:first-child .ba-img-label {
  left: 0.75rem;
  background: var(--text-primary);
  color: var(--text-light);
}

.ba-img-wrap:last-child .ba-img-label {
  right: 0.75rem;
  background: var(--accent);
  color: #fff;
}

.ba-card-body {
  padding: 1.5rem;
}

.ba-card-body h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.ba-card-body p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.ba-card-meta {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
}

.ba-card-meta span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-accent);
}

.ba-card-meta strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ===== SMALL BUSINESS BADGE ===== */
.small-biz-badge {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--accent-subtle);
  border: 1px solid rgba(196, 123, 60, 0.15);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  margin-top: 1.5rem;
}

.small-biz-badge svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
  flex-shrink: 0;
}

.small-biz-badge-text {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.small-biz-badge-text strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* ================================================================
   FINAL MOBILE OVERRIDES — must come AFTER all base rules above
   so cascade wins. Don't move this block higher in the file.
   ================================================================ */
@media (max-width: 768px) {
  /* Before / After — single column on mobile */
  .ba-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
    max-width: 100%;
  }

  .ba-card {
    border-radius: 10px;
  }

  .ba-card-images {
    grid-template-columns: 1fr 1fr;
  }

  .ba-img-wrap {
    aspect-ratio: 1 / 1;
  }

  .ba-img-label {
    font-size: 0.58rem;
    padding: 0.22rem 0.55rem;
    top: 0.5rem;
    letter-spacing: 0.1em;
  }

  .ba-img-wrap:first-child .ba-img-label { left: 0.5rem; }
  .ba-img-wrap:last-child .ba-img-label { right: 0.5rem; }

  .ba-card-images::after { width: 2px; }

  .ba-card-body {
    padding: 1.25rem 1.1rem;
  }

  .ba-card-body h4 {
    font-size: 1.05rem;
    line-height: 1.45;
    margin-bottom: 0.55rem;
  }

  .ba-card-body p {
    font-size: 0.82rem;
    line-height: 1.75;
  }

  .ba-card-meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
  }

  .ba-card-meta span {
    font-size: 0.72rem;
    white-space: nowrap;
  }

  /* Recruit perks — keep 2 columns on mobile (was overridden by base rule) */
  .recruit-perks {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem 0.8rem;
  }

  /* Trust grid — guarantee 2x2 */
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 380px) {
  .ba-img-wrap { aspect-ratio: 4 / 5; }
  .ba-img-label {
    font-size: 0.54rem;
    padding: 0.2rem 0.45rem;
  }
  .ba-card-body { padding: 1.1rem 1rem; }
  .ba-card-body h4 { font-size: 0.98rem; }
  .ba-card-body p { font-size: 0.78rem; }
  .recruit-perks { grid-template-columns: 1fr; }
}

/* Page hero (subpages) — mobile */
@media (max-width: 768px) {
  .page-hero {
    min-height: 44vh;
    padding: 0;
  }
  .page-hero-content {
    padding: 6rem 1.25rem 3rem;
  }
  .page-hero-content::before {
    inset: 3.5rem 0 1.5rem;
    background: radial-gradient(ellipse at center, rgba(18,16,13,0.65) 0%, rgba(18,16,13,0.35) 65%, rgba(18,16,13,0) 100%);
  }
  .page-hero-bg {
    background-position: center 30%;
    filter: saturate(0.7) contrast(1.02);
  }
  .page-hero-bg::after {
    background:
      radial-gradient(ellipse 90% 70% at center, rgba(18,16,13,0.45) 0%, rgba(18,16,13,0.2) 70%, rgba(18,16,13,0.15) 100%),
      linear-gradient(180deg, rgba(18,16,13,0.2) 0%, rgba(18,16,13,0.4) 100%);
  }
  .page-hero-label {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
  }
  .page-hero-label::before,
  .page-hero-label::after { width: 22px; }
  .page-hero-title {
    font-size: clamp(1.75rem, 7vw, 2.4rem);
  }
  .page-hero-subtitle {
    font-size: 0.85rem;
    line-height: 1.85;
  }
}
