/* ============================================================
   Ranchu Japan — Design System v2
   Philosophy: 最もシンプルに、最も賢く
   Reference: kuchitoru LP/a design language
   ============================================================ */

:root {
  /* Base */
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --surface: #ffffff;
  --text: #343541;
  --text-secondary: #64748b;
  --text-tertiary: #6b7280;
  --border: rgba(226, 232, 240, 0.6);
  --border-solid: #e2e8f0;

  /* Accent Rainbow — use sparingly, only for meaning */
  --red: #E75248;
  --orange: #E97239;
  --yellow: #F6C443;
  --green: #53B559;
  --blue: #3985F7;
  --purple: #8956EE;
  --pink: #ED71AB;

  /* Primary action */
  --accent: #343541;
  --accent-hover: #2a2b36;
  --accent-shadow: rgba(52, 53, 65, 0.2);

  /* Layout */
  --container: 1080px;
  --container-narrow: 720px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-full: 999px;

  /* Typography */
  --font-sans: "LINE Seed JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);

  /* Spacing */
  --section-y: 6rem;
  --section-y-mobile: 3.5rem;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.2s;
}

/* ---- Reset ---- */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

/* ---- Layout ---- */

.container {
  width: min(var(--container), 100% - 3rem);
  margin: 0 auto;
}

.container-narrow {
  width: min(var(--container-narrow), 100% - 3rem);
  margin: 0 auto;
}

/* ---- Accessibility ---- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #fff;
  z-index: 9999;
  font-weight: 700;
}

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

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--duration) var(--ease);
}

.site-nav a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-button {
  display: none;
  border: 1px solid var(--border-solid);
  background: var(--bg);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-family: var(--font-sans);
  color: var(--text);
  cursor: pointer;
}

/* ============================================================
   Buttons — pill shape with shadow (LP/a style)
   ============================================================ */

.button,
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.5rem;
  border: 0;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 2px 8px var(--accent-shadow);
  transition:
    background var(--duration) var(--ease),
    transform var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
}

.button:hover,
button[type="submit"]:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-shadow);
  text-decoration: none;
}

.button:active,
button[type="submit"]:active {
  transform: scale(0.97);
}

.button.secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--text-tertiary);
  box-shadow: none;
}

.button.secondary:hover {
  background: var(--bg-alt);
  border-color: var(--text-tertiary);
  transform: translateY(-1px);
}

.button.ghost {
  background: transparent;
  color: var(--text);
  padding: 0.625rem 0;
  box-shadow: none;
}

.button.ghost:hover {
  opacity: 0.7;
  transform: none;
}

.button.ghost::after {
  content: "→";
  margin-left: 0.25rem;
  transition: transform var(--duration) var(--ease);
}

.button.ghost:hover::after {
  transform: translateX(3px);
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding: 6rem 0 5rem;
}

.hero-inner {
  max-width: 680px;
}

.hero .eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero .hero-sub {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

/* KPI row */
.kpi-row {
  display: flex;
  gap: 2.5rem;
  margin-top: 3.5rem;
  flex-wrap: wrap;
}

.kpi dt {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.kpi dd {
  font-size: 0.95rem;
  font-weight: 700;
}

/* Hero image area */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-alt);
  aspect-ratio: 4 / 3;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   Sections — alternating white/gray backgrounds
   ============================================================ */

.section {
  padding: var(--section-y) 0;
}

.section.alt {
  background: var(--bg-alt);
}

.section + .section {
  border-top: none;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.section-lead {
  margin-top: 0.75rem;
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 560px;
  line-height: 1.8;
}

.section-header {
  margin-bottom: 3rem;
}

/* ============================================================
   Grid
   ============================================================ */

.grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid.cols-5 {
  grid-template-columns: repeat(5, 1fr);
}

/* ============================================================
   Cards — subtle border, hover lift (LP/a style)
   ============================================================ */

.card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition:
    border-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease),
    transform var(--duration) var(--ease);
}

.card:hover {
  border-color: var(--border-solid);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 1rem;
  color: var(--text);
  transition: opacity var(--duration) var(--ease);
}

.card-link:hover {
  opacity: 0.6;
}

.card-link::after {
  content: "→";
  transition: transform var(--duration) var(--ease);
}

.card-link:hover::after {
  transform: translateX(3px);
}

/* ============================================================
   Badge
   ============================================================ */

.badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  background: var(--bg-alt);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.badge.red { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.badge.orange { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.badge.green { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.badge.blue { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.badge.purple { background: #faf5ff; color: #7c3aed; border-color: #ddd6fe; }

/* ============================================================
   Image Placeholder
   ============================================================ */

.img-placeholder {
  background: var(--bg-alt);
  border: 1px dashed var(--border-solid);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 0.8rem;
  overflow: hidden;
}

.img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   CTA Panel — dark charcoal (LP/a style)
   ============================================================ */

.cta-panel {
  background: var(--accent);
  color: #ffffff;
  border-radius: 20px;
  padding: 4rem 3rem;
  text-align: center;
}

.cta-panel h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cta-panel p {
  margin-top: 0.75rem;
  opacity: 0.8;
  font-size: 0.95rem;
}

.cta-panel .button {
  margin-top: 2rem;
  background: #ffffff;
  color: var(--accent);
  box-shadow: none;
}

.cta-panel .button:hover {
  background: #f0f0f0;
  box-shadow: none;
}

/* ============================================================
   FAQ
   ============================================================ */

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.faq details:first-child {
  border-top: 1px solid var(--border);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-tertiary);
  transition: transform var(--duration) var(--ease);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  margin-top: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
  padding-right: 2rem;
}

/* ============================================================
   Timeline
   ============================================================ */

.timeline {
  padding-left: 0;
}

.timeline li {
  position: relative;
  padding-left: 1.5rem;
  padding-bottom: 1.25rem;
  border-left: 1px solid var(--border-solid);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline li:last-child {
  padding-bottom: 0;
  border-left: 1px solid transparent;
}

.timeline li strong {
  color: var(--text);
}

/* ============================================================
   Forms
   ============================================================ */

.form-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  background: var(--surface);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field.full {
  grid-column: 1 / -1;
}

label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

input,
select,
textarea {
  border: 1px solid var(--border-solid);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font: inherit;
  font-size: 0.9rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(52, 53, 65, 0.08);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  color: var(--text-tertiary);
  font-size: 0.8rem;
}

.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  display: none;
}

.form-status.success {
  display: block;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.form-status.error {
  display: block;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* ============================================================
   Breadcrumb
   ============================================================ */

.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--text-tertiary);
  transition: color var(--duration) var(--ease);
}

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

/* ============================================================
   Company Table
   ============================================================ */

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table tr {
  border-bottom: 1px solid var(--border);
}

.info-table th {
  text-align: left;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 1rem 1rem 1rem 0;
  white-space: nowrap;
  width: 140px;
  vertical-align: top;
}

.info-table td {
  font-size: 0.9rem;
  padding: 1rem 0;
  color: var(--text);
}

.info-table td a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.info-table td a:hover {
  opacity: 0.6;
}

/* ============================================================
   Media Grid (for case studies / trust)
   ============================================================ */

.media-card {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition:
    border-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease),
    transform var(--duration) var(--ease);
}

.media-card:hover {
  border-color: var(--border-solid);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.media-card .media-thumb {
  flex-shrink: 0;
  width: 120px;
  height: 90px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  overflow: hidden;
}

.media-card .media-thumb .img-placeholder {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
}

.media-card .media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

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

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-brand strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.25rem;
}

.footer-legal {
  max-width: 50rem;
  margin-top: 0.75rem;
  font-size: 0.65rem;
  line-height: 1.6;
}

/* ============================================================
   v2 Founder + FAQ transplant
   ============================================================ */

.v2-section {
  padding: clamp(56px, 9vw, 108px) 0;
}

.v2-section--tint {
  background: var(--bg-alt);
}

.v2-section-head {
  width: min(var(--container), calc(100% - 3rem));
  margin: 0 auto clamp(28px, 4vw, 48px);
}

.v2-eyebrow {
  margin: 0;
  color: var(--text-tertiary);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.v2-section-head h2 {
  margin-top: 0.5rem;
  font-size: clamp(1.75rem, 3.6vw, 2.85rem);
  letter-spacing: -0.026em;
}

.v2-founder {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  width: min(var(--container), calc(100% - 3rem));
  margin: 0 auto;
  padding: clamp(20px, 3vw, 36px);
  background: var(--bg-alt);
  border-radius: 2rem;
  box-shadow: var(--shadow);
}

.v2-founder__media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 1.25rem;
  box-shadow: var(--shadow-md);
}

.v2-founder__body h3 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
}

.v2-founder__role {
  margin-top: 0.25rem;
  color: var(--text-tertiary);
  font-size: 0.92rem;
  font-weight: 600;
}

.v2-tagrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.9rem 0;
}

.v2-tagrow li {
  padding: 0.3rem 0.75rem;
  background: var(--bg);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.v2-founder__body > p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

.v2-founder__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  margin-top: 1.3rem;
}

.v2-founder__stats dt {
  color: var(--text-tertiary);
  font-size: 0.74rem;
  font-weight: 600;
}

.v2-founder__stats dd {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.v2-mission {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(var(--container), calc(100% - 3rem));
  margin: clamp(14px, 2vw, 22px) auto 0;
  padding: 1.1rem clamp(16px, 2.2vw, 24px);
  color: #fff;
  background: linear-gradient(120deg, #4f52d8 0%, #a33ab4 56%, #ec6c86 100%);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}

.v2-mission:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.v2-mission__rocket {
  flex: none;
  font-size: 1.8rem;
  line-height: 1;
}

.v2-mission__text {
  display: grid;
  gap: 0.15rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.88rem;
  line-height: 1.55;
}

.v2-mission__text b {
  color: #fff;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.v2-mission__go {
  flex: none;
  margin-left: auto;
  padding: 0.45rem 1.1rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.v2-faq {
  display: grid;
  gap: 0.5rem;
  width: min(820px, calc(100% - 3rem));
  margin: 0 auto;
}

.v2-qa {
  padding: 0 1.2rem;
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.v2-qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0;
  font-size: 0.98rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.v2-qa summary::-webkit-details-marker {
  display: none;
}

.v2-qa summary::after {
  flex: none;
  color: var(--text-tertiary);
  font-size: 1.3rem;
  font-weight: 400;
  content: "+";
  transition: transform 300ms var(--ease);
}

.v2-qa[open] summary::after {
  transform: rotate(45deg);
}

.v2-qa__body {
  padding-bottom: 1.05rem;
  color: var(--text-tertiary);
  font-size: 0.93rem;
  line-height: 1.7;
}

@media (max-width: 940px) {
  .v2-founder {
    grid-template-columns: 1fr;
  }

  .v2-founder__media img {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 600px) {
  .v2-section {
    padding: var(--section-y-mobile) 0;
  }

  .v2-section-head,
  .v2-founder,
  .v2-mission,
  .v2-faq {
    width: calc(100% - 1.5rem);
  }

  .v2-section-head {
    margin-bottom: 1.75rem;
  }

  .v2-section-head h2 {
    font-size: 1.75rem;
  }

  .v2-founder {
    gap: 1.5rem;
    padding: 1rem;
    border-radius: 1.5rem;
  }

  .v2-founder__body h3 {
    font-size: 1.5rem;
  }

  .v2-founder__body > p {
    font-size: 0.9rem;
  }

  .v2-mission {
    align-items: flex-start;
    padding: 1rem;
  }

  .v2-mission__text {
    font-size: 0.8rem;
  }

  .v2-mission__text b {
    font-size: 0.95rem;
  }

  .v2-mission__go {
    align-self: center;
    padding: 0.4rem 0.8rem;
    font-size: 0.78rem;
  }

  .v2-qa {
    padding: 0 1rem;
    border-radius: var(--radius-md, 12px);
  }

  .v2-qa summary {
    min-height: 48px;
    padding: 0.85rem 0;
    font-size: 0.9rem;
  }

  .v2-qa__body {
    font-size: 0.85rem;
  }
}

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

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  transition: color var(--duration) var(--ease);
}

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

/* ============================================================
   Utilities
   ============================================================ */

.small {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }

.text-center { text-align: center; }
.text-secondary { color: var(--text-secondary); }

/* ============================================================
   Homepage Redesign — .hp- namespace
   ============================================================ */

/* --- HP Section Base --- */
.hp-section { padding: var(--section-y) 0; }
.hp-section--alt { background: var(--bg-alt); }

.hp-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.75rem;
}

.hp-heading {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.hp-lead {
  margin-top: 0.75rem;
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 560px;
  line-height: 1.8;
}

/* --- Hero (full-bleed image) --- */
.hp-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

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

.hp-hero-bg picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hp-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.35) 50%,
    rgba(0, 0, 0, 0.12) 100%
  );
}

.hp-hero-content {
  position: relative;
  z-index: 1;
  color: #ffffff;
  padding-bottom: 4rem;
}

.hp-hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 1rem;
}

.hp-hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hp-hero-sub {
  margin-top: 1.25rem;
  font-size: 1.05rem;
  opacity: 0.8;
  line-height: 1.8;
  max-width: 480px;
}

.hp-hero-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hp-hero-actions .button {
  background: #ffffff;
  color: var(--accent);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.hp-hero-actions .button:hover {
  background: #f0f0f0;
}
.hp-hero-actions .button.secondary {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255,255,255,0.4);
}
.hp-hero-actions .button.secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}

.hp-hero-trust {
  display: flex;
  gap: 0.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hp-trust-chip {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.2);
}

.hp-match-tag svg {
  vertical-align: -2px;
}

/* --- Service Cards (Airbnb listing) --- */
.hp-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.hp-card {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}
.hp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.hp-card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-alt);
}
.hp-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.hp-card:hover .hp-card-img img {
  transform: scale(1.03);
}

.hp-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  color: var(--text);
}
.hp-card-badge--accent {
  background: var(--accent);
  color: #ffffff;
}

.hp-card-body { padding: 1.25rem; }
.hp-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.hp-card-body p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.hp-card-arrow {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
}

.hp-card--featured {
  border-color: rgba(52, 53, 65, 0.28);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   AI Advisory page
   ============================================================ */

.service-hero {
  padding: 6rem 0 5rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.ai-badges,
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.ai-badges span,
.pill-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 700;
}

.ai-closing {
  max-width: 720px;
  margin-top: 2rem;
  font-weight: 700;
  color: var(--text);
}

.check-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 2rem;
}

.check-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.pricing-card.recommended {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.pricing-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.recommended-badge {
  align-self: flex-start;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

.pricing-card h3 {
  font-size: 1.1rem;
  line-height: 1.3;
}

.price {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.price span,
.pricing-target {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 400;
}

.pricing-card ul {
  display: grid;
  gap: 0.5rem;
  margin: 0.25rem 0 0.5rem;
}

.pricing-card li {
  position: relative;
  padding-left: 1rem;
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.6;
}

.pricing-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-tertiary);
}

.pricing-card .button {
  margin-top: auto;
}

.process-grid .card {
  padding: 1.25rem;
}

.before-after-grid,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.before-after-card,
.metric-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.before-after-card h3,
.metric-card h3 {
  font-size: 1rem;
  line-height: 1.4;
}

.before-after-card dl {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.before-after-card dl > div {
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.before-after-card dt {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.before-after-card dd,
.metric-card p,
.metric-note {
  margin-top: 0.35rem;
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.7;
}

.metric-value {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.metric-note {
  margin-top: 1rem;
  max-width: 720px;
}

.metric-note a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.hero-actions--center {
  justify-content: center;
}

/* --- Carousel (Product Showcase) --- */
.hp-carousel { margin-top: 2rem; position: relative; }

.hp-carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 max(1rem, calc((100vw - var(--container)) / 2));
}
.hp-carousel-track::-webkit-scrollbar { display: none; }

.hp-carousel-slide {
  flex: 0 0 min(400px, 85vw);
  scroll-snap-align: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}
.hp-carousel-slide img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  border-bottom: 1px solid var(--border);
}
.hp-slide-step {
  padding: 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.hp-slide-caption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.hp-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1rem;
}
.hp-carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-solid);
  transition: background var(--duration) var(--ease),
              width var(--duration) var(--ease);
}
.hp-carousel-dot.active {
  background: var(--accent);
  width: 18px;
  border-radius: var(--radius-full);
}

/* --- Match Cards (Track Record swipe) --- */
.hp-swipe-row { margin-top: 2rem; }

.hp-swipe-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 max(1rem, calc((100vw - var(--container)) / 2));
  padding-bottom: 1rem;
}
.hp-swipe-track::-webkit-scrollbar { display: none; }

.hp-match-card {
  flex: 0 0 min(320px, 80vw);
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}
.hp-match-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hp-match-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.hp-match-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hp-match-tag {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
}

.hp-match-body { padding: 1.25rem; }
.hp-match-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}
.hp-match-body p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.hp-match-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  transition: opacity var(--duration);
}
.hp-match-link:hover { opacity: 0.6; }

/* --- Profile Card (CEO) --- */
.hp-profile {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  margin-top: 2.5rem;
  align-items: start;
}

.hp-section--profile .hp-profile {
  margin-top: 0;
}
.hp-profile-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.hp-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hp-profile-header { margin-bottom: 1rem; }
.hp-profile-name { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.hp-profile-role {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.hp-profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.hp-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--bg-alt);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.hp-profile-bio {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.hp-profile-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
}
.hp-stat { text-align: center; }
.hp-stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}
.hp-stat-label {
  font-size: 0.7rem;
  color: var(--text-tertiary);
}

/* --- CTA with background image --- */
.hp-cta {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  padding: 5rem 3rem;
  text-align: center;
}
.hp-cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hp-cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(52, 53, 65, 0.85);
}
.hp-cta-content {
  position: relative;
  z-index: 1;
  color: #ffffff;
}
.hp-cta-content h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.85rem);
  font-weight: 700;
}
.hp-cta-content p {
  margin-top: 0.75rem;
  opacity: 0.8;
  font-size: 0.95rem;
}
.hp-cta-content .button {
  margin-top: 2rem;
  background: #ffffff;
  color: var(--accent);
}
.hp-cta-content .button:hover {
  background: #f0f0f0;
}

/* ============================================================
   Responsive — Tablet (≤1024px)
   ============================================================ */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-image {
    max-height: 320px;
  }

  .grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid.cols-5 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* HP tablet */
  .hp-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Responsive — Mobile (≤768px)
   ============================================================ */

@media (max-width: 768px) {
  /* Layout */
  .container {
    width: min(var(--container), 100% - 2rem);
  }

  /* Hero */
  .hero {
    padding: 2.5rem 0 2rem;
  }

  .hero h1 {
    font-size: 1.65rem;
  }

  .hero .hero-sub {
    font-size: 0.95rem;
    margin-top: 1rem;
  }

  .hero-actions {
    margin-top: 1.75rem;
  }

  .hero-image {
    max-height: 240px;
  }

  /* Sections */
  .section {
    padding: var(--section-y-mobile) 0;
  }

  .section-title {
    font-size: 1.35rem;
  }

  .section-lead {
    font-size: 0.9rem;
  }

  /* Grid */
  .grid {
    margin-top: 1.5rem;
    gap: 1rem;
  }

  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4,
  .grid.cols-5 {
    grid-template-columns: 1fr;
  }

  .before-after-grid,
  .metric-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
  }

  /* Cards — touch-friendly */
  .card {
    padding: 1.25rem;
  }

  .service-hero {
    padding: 3rem 0 3.5rem;
  }

  .pricing-card {
    padding: 1.25rem;
  }

  .pill-grid,
  .ai-badges {
    gap: 0.4rem;
  }

  /* KPI row */
  .kpi-row {
    gap: 1rem 2rem;
    margin-top: 2rem;
  }

  .kpi dt {
    font-size: 0.65rem;
  }

  .kpi dd {
    font-size: 0.85rem;
  }

  /* Forms */
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-wrap {
    padding: 1.25rem;
  }

  /* Header — mobile nav */
  .menu-button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 200;
    padding: 5rem 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 0.25s var(--ease),
      visibility 0.25s var(--ease),
      transform 0.25s var(--ease);
  }

  .site-nav.open {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav a {
    display: flex;
    align-items: center;
    padding: 0.875rem 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    min-height: 48px;
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .header-actions .button {
    display: none;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .site-footer {
    padding: 2rem 0;
  }

  /* CTA panel */
  .cta-panel {
    padding: 2.5rem 1.25rem;
    border-radius: 16px;
  }

  .cta-panel h2 {
    font-size: 1.15rem;
  }

  .cta-panel p {
    font-size: 0.85rem;
  }

  /* Media card */
  .media-card {
    flex-direction: column;
    padding: 1rem;
  }

  .media-card .media-thumb {
    width: 100%;
    height: 180px;
    border-radius: var(--radius-sm);
  }

  .media-card h3 {
    font-size: 0.9rem;
  }

  /* Info table — stacked */
  .info-table th {
    display: block;
    padding-bottom: 0.15rem;
    width: 100%;
    font-size: 0.75rem;
  }

  .info-table td {
    display: block;
    padding-top: 0;
    padding-bottom: 1rem;
    font-size: 0.85rem;
  }

  /* FAQ — touch-friendly targets */
  .faq summary {
    padding: 0.5rem 0;
    min-height: 48px;
    font-size: 0.9rem;
  }

  .faq details p {
    font-size: 0.85rem;
    padding-right: 1rem;
  }

  /* Breadcrumb */
  .breadcrumb {
    font-size: 0.75rem;
    margin-bottom: 1rem;
  }

  /* Timeline */
  .timeline li {
    font-size: 0.85rem;
    padding-bottom: 1rem;
  }

  /* Buttons — touch-friendly */
  .button,
  button[type="submit"] {
    min-height: 48px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .button.secondary {
    min-height: 48px;
  }

  /* Image placeholders */
  .img-placeholder {
    border-radius: var(--radius-sm);
  }

  /* HP Hero mobile */
  .hp-hero { min-height: calc(100svh - 64px); }
  .hp-hero-content { padding-bottom: 2.5rem; }
  .hp-hero-title { font-size: 1.75rem; }
  .hp-hero-sub { font-size: 0.9rem; }
  .hp-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hp-hero-actions .button {
    width: 100%;
    justify-content: center;
  }
  .hp-hero-trust {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .hp-hero-trust::-webkit-scrollbar { display: none; }

  /* HP Cards mobile */
  .hp-card-grid {
    grid-template-columns: 1fr;
    margin-top: 1.5rem;
  }

  /* HP Section mobile */
  .hp-section { padding: var(--section-y-mobile) 0; }
  .hp-heading { font-size: 1.35rem; }
  .hp-lead { font-size: 0.9rem; }

  /* HP Carousel mobile */
  .hp-carousel-slide { flex: 0 0 85vw; }

  /* HP Match Cards mobile */
  .hp-match-card { flex: 0 0 80vw; }

  /* HP Profile mobile */
  .hp-profile {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hp-profile-photo {
    aspect-ratio: 1 / 1;
    max-width: 220px;
    border-radius: 50%;
  }
  .hp-profile-name { font-size: 1.25rem; }

  /* HP CTA mobile */
  .hp-cta {
    padding: 3rem 1.25rem;
    border-radius: 16px;
  }
  .hp-cta-content h2 { font-size: 1.15rem; }
}

/* ============================================================
   Responsive — Small mobile (≤480px)
   ============================================================ */

@media (max-width: 480px) {
  .container {
    width: min(var(--container), 100% - 1.5rem);
  }

  .hero {
    padding: 2rem 0 1.5rem;
  }

  .hero h1 {
    font-size: 1.4rem;
  }

  .hero .eyebrow {
    font-size: 0.65rem;
    margin-bottom: 0.75rem;
  }

  .kpi-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .cta-panel {
    padding: 2rem 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
    justify-content: center;
  }

  /* HP small mobile */
  .hp-hero-title { font-size: 1.5rem; }
  .hp-carousel-slide { flex: 0 0 90vw; }
  .hp-match-card { flex: 0 0 85vw; }
}

/* ============================================================
   Auto Dark Mode — prefers-color-scheme
   ============================================================ */

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    --bg: #111318;
    --bg-alt: #1a1d28;
    --surface: #1e2130;
    --text: #e4e4e7;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;
    --border: rgba(255, 255, 255, 0.08);
    --border-solid: #2e3348;

    --accent: #ffffff;
    --accent-hover: #d4d4d8;
    --accent-shadow: rgba(255, 255, 255, 0.1);

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow: 0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
  }

  /* Header — dark frosted glass */
  .site-header {
    background: rgba(17, 19, 24, 0.88);
  }

  .skip-link:focus {
    color: #111318;
  }

  /* Buttons — accent is now white, text must be dark */
  .button,
  button[type="submit"] {
    color: #111318;
  }

  .button.secondary {
    color: var(--text);
  }

  .button.ghost {
    color: var(--text);
  }

  .recommended-badge {
    color: #111318;
  }

  /* Form focus ring */
  input:focus,
  select:focus,
  textarea:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
  }

  /* Badge — dark palette */
  .badge.red { background: #3b1318; color: #fca5a5; border-color: #7f1d1d; }
  .badge.orange { background: #3b1f0b; color: #fdba74; border-color: #7c2d12; }
  .badge.green { background: #0b3b1f; color: #86efac; border-color: #14532d; }
  .badge.blue { background: #0b1f3b; color: #93c5fd; border-color: #1e3a5f; }
  .badge.purple { background: #1f0b3b; color: #c4b5fd; border-color: #4c1d95; }

  /* Form status */
  .form-status.success {
    background: #0b3b1f;
    color: #86efac;
    border-color: #14532d;
  }

  .form-status.error {
    background: #3b1318;
    color: #fca5a5;
    border-color: #7f1d1d;
  }

  /* CTA Panel — inverted contrast */
  .cta-panel {
    color: #111318;
  }

  .cta-panel .button {
    background: #111318;
    color: #ffffff;
  }

  .cta-panel .button:hover {
    background: #2a2b36;
  }

  /* HP Hero actions — on dark overlay */
  .hp-hero-actions .button {
    color: #111318;
  }

  .hp-hero-actions .button:hover {
    color: #111318;
  }

  /* HP CTA — on image overlay */
  .hp-cta-content .button {
    color: #111318;
  }

  .hp-cta-content .button:hover {
    background: #e4e4e7;
    color: #111318;
  }

  /* HP Card badge on images */
  .hp-card-badge {
    background: rgba(17, 19, 24, 0.85);
  }

  .hp-card-badge--accent {
    color: #111318;
  }

  /* HP Match tag on images */
  .hp-match-tag {
    background: rgba(17, 19, 24, 0.88);
    color: var(--text);
  }
}

/* Mobile dark mode — nav overlay */
@media (prefers-color-scheme: dark) and (max-width: 768px) {
  .site-nav {
    background: rgba(17, 19, 24, 0.98);
  }
}

.appstore-announcement {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}

.appstore-announcement--compact {
  box-shadow: none;
}

.appstore-announcement__media {
  margin: 0 0 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  aspect-ratio: 1672 / 941;
}

.appstore-announcement__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.appstore-announcement__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.appstore-announcement__lead {
  margin-top: 0.9rem;
  color: var(--text-secondary);
  max-width: 58ch;
  line-height: 1.8;
}

.appstore-announcement__badge {
  display: inline-block;
  margin-top: 1.25rem;
}

.appstore-announcement__badge img {
  width: auto;
  height: 44px;
  display: block;
}

.appstore-announcement__note {
  margin-top: 0.9rem;
  color: var(--text-tertiary);
  font-size: 0.8rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .appstore-announcement__media {
    margin-bottom: 1.25rem;
    border-radius: var(--radius-sm);
  }
}

/* ============================================================
   Services section transplanted from ranchujpn-v2.vercel.app
   Namespaced so the section keeps its original visual system.
   ============================================================ */

.v2-services {
  --v2-ink: #1d1d1f;
  --v2-ink-soft: #6e6e73;
  --v2-tint: #f5f5f7;
  --v2-blue: #0071e3;
  --v2-radius-md: 18px;
  --v2-radius-xl: 28px;
  --v2-radius-pill: 980px;
  --v2-shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --v2-shadow-lift: 0 2px 6px rgba(0, 0, 0, 0.06), 0 18px 44px rgba(0, 0, 0, 0.12);
  --v2-ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  width: 100%;
  padding: clamp(56px, 9vw, 108px) clamp(20px, 5vw, 32px);
  background: #ffffff;
  color: var(--v2-ink);
}

.v2-services__head,
.v2-feature-grid,
.v2-app-list {
  width: min(1120px, 100%);
  margin-inline: auto;
}

.v2-services__head {
  margin-bottom: clamp(28px, 4vw, 48px);
}

.v2-services__eyebrow {
  color: var(--v2-ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.v2-services__head h2 {
  margin-top: 0.5rem;
  color: var(--v2-ink);
  font-size: clamp(1.75rem, 3.6vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.026em;
  line-height: 1.14;
}

.v2-services__lead {
  max-width: 54ch;
  margin-top: 0.75rem;
  color: var(--v2-ink-soft);
  font-size: clamp(0.98rem, 1.5vw, 1.1rem);
}

.v2-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
}

.v2-feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  padding: clamp(20px, 2.6vw, 30px);
  overflow: hidden;
  background: #111111;
  color: #ffffff;
  border-radius: var(--v2-radius-xl);
  box-shadow: var(--v2-shadow-card);
  isolation: isolate;
  transition: box-shadow 320ms var(--v2-ease-out);
}

.v2-feature-card--wide {
  grid-column: 1 / -1;
  min-height: 380px;
}

.v2-feature-card > img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 620ms var(--v2-ease-out);
}

.v2-feature-card__scrim {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.42) 52%, rgba(0, 0, 0, 0.82) 100%);
}

.v2-feature-card:hover {
  box-shadow: var(--v2-shadow-lift);
}

.v2-feature-card:hover > img {
  transform: scale(1.045);
}

.v2-feature-card__kicker {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.28rem 0.72rem;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: var(--v2-radius-pill);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.v2-feature-card h3 {
  color: #ffffff;
  font-size: clamp(1.25rem, 2.3vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1.14;
}

.v2-feature-card__desc {
  max-width: 48ch;
  margin-top: 0.6rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  line-height: 1.6;
}

.v2-feature-card__cta {
  align-self: flex-start;
  margin-top: 1.15rem;
  padding: 0.6rem 1.25rem;
  background: #ffffff;
  color: var(--v2-ink);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--v2-radius-pill);
}

.v2-app-list {
  display: grid;
  margin-top: clamp(14px, 1.8vw, 22px);
  padding: 0.35rem 0.5rem;
  background: var(--v2-tint);
  border-radius: var(--v2-radius-xl);
}

.v2-app-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0.85rem;
  border-radius: var(--v2-radius-md);
  transition: background-color 220ms var(--v2-ease-out);
}

.v2-app-list li + li {
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.06);
}

.v2-app-row:hover {
  background: rgba(255, 255, 255, 0.75);
}

.v2-app-row__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 56px;
  height: 56px;
  color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}

.v2-app-row__icon svg {
  width: 27px;
  height: 27px;
}

.v2-app-row__icon--web {
  background: linear-gradient(160deg, #0a84ff, #0040dd);
}

.v2-app-row__icon--ops {
  background: linear-gradient(160deg, #ff9f0a, #ff375f);
}

.v2-app-row__body {
  display: block;
  min-width: 0;
}

.v2-app-row__body strong {
  display: block;
  color: var(--v2-ink);
  font-size: 1.03rem;
  letter-spacing: -0.012em;
}

.v2-app-row__body > span {
  display: block;
  margin-top: 0.2rem;
  color: var(--v2-ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.v2-app-row__action {
  flex: none;
  margin-left: auto;
  padding: 0.42rem 1.05rem;
  background: rgba(0, 113, 227, 0.1);
  color: var(--v2-blue);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--v2-radius-pill);
}

@media (max-width: 760px) {
  .v2-feature-grid {
    grid-template-columns: 1fr;
  }

  .v2-feature-card,
  .v2-feature-card--wide {
    min-height: 280px;
  }
}

@media (max-width: 520px) {
  .v2-app-row {
    gap: 0.75rem;
    padding-inline: 0.6rem;
  }

  .v2-app-row__icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
  }

  .v2-app-row__body > span {
    font-size: 0.82rem;
  }

  .v2-app-row__action {
    padding-inline: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v2-feature-card:hover > img {
    transform: none;
  }
}

/* ---------- v2 CTA transplant ---------- */

.v2-cta {
  padding: 0 0 clamp(56px, 8vw, 96px);
}

.v2-cta__card {
  width: min(var(--container), calc(100% - 3rem));
  margin: 0 auto;
  padding: clamp(36px, 6vw, 76px) clamp(24px, 4vw, 56px);
  color: #fff;
  text-align: center;
  background: linear-gradient(150deg, #1d1d1f 0%, #2c2c31 52%, #3a3a41 100%);
  border-radius: 2rem;
  box-shadow: var(--shadow-lg);
}

.v2-cta__card h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  letter-spacing: -0.026em;
}

.v2-cta__card p {
  margin-top: 0.8rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
}

.v2-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 1.9rem;
}

.v2-cta__button {
  min-height: 48px;
  box-shadow: none;
}

.v2-cta__button--light {
  background: #fff;
  color: var(--text);
}

.v2-cta__button--light:hover {
  background: #f0f0f0;
  color: var(--text);
}

.v2-cta__button--glass {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.v2-cta__button--glass:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 600px) {
  .v2-cta {
    padding-bottom: var(--section-y-mobile);
  }

  .v2-cta__card {
    width: calc(100% - 1.5rem);
    padding: 3rem 1.25rem;
    border-radius: 1.5rem;
  }

  .v2-cta__card h2 {
    font-size: 1.5rem;
  }

  .v2-cta__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .v2-cta__button {
    width: 100%;
  }
}

/* ---------- v2 App Store + Partner cards transplant ---------- */

.v2-section--product {
  padding-top: clamp(56px, 8vw, 96px);
}

.v2-product-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
  width: min(var(--container), calc(100% - 3rem));
  margin: 0 auto;
}

.v2-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
  border-radius: 1.75rem;
  box-shadow: var(--shadow);
}

.v2-panel__shot {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg-alt);
}

.v2-panel__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  padding: clamp(20px, 2.6vw, 30px);
}

.v2-panel__body h3 {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

.v2-panel__body > p:not(.v2-eyebrow):not(.v2-fineprint) {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

.v2-badge-link {
  display: inline-block;
  margin-top: 0.3rem;
  transition: transform 220ms var(--ease);
}

.v2-badge-link:hover {
  transform: translateY(-1px);
}

.v2-badge-link img {
  display: block;
  width: auto;
  height: 47px;
}

.v2-fineprint {
  color: var(--text-tertiary);
  font-size: 0.72rem;
  line-height: 1.5;
}

.v2-panel__button {
  margin-top: auto;
  background: #0a84ff;
  color: #fff;
  box-shadow: none;
}

.v2-panel__button:hover {
  background: #006edb;
  color: #fff;
  box-shadow: none;
}

@media (max-width: 768px) {
  .v2-product-duo {
    grid-template-columns: 1fr;
    width: calc(100% - 1.5rem);
  }

  .v2-panel {
    border-radius: 1.5rem;
  }
}

/* ============================================================
   Granola-inspired top bar
   ============================================================ */

.site-header--granola {
  width: min(1200px, calc(100% - 2rem));
  margin: 14px auto 0;
  border: 1px solid rgba(23, 23, 23, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(23, 23, 23, 0.1);
  color: #171717;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header--granola .header-inner {
  width: 100%;
  height: 62px;
  padding: 0 clamp(0.85rem, 2.2vw, 1.5rem);
}

.site-header--granola .brand {
  gap: 0.55rem;
  color: #171717;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.site-header--granola .brand-mark {
  width: 25px;
  height: 25px;
  border-radius: 7px;
  background: #171717;
}

.site-header--granola .site-nav {
  gap: clamp(1.25rem, 2.6vw, 2rem);
}

.site-header--granola .site-nav a {
  color: #171717;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.site-header--granola .site-nav a:hover {
  color: #647313;
}

.site-header--granola .header-actions .button {
  min-height: 44px;
  padding: 0.6rem 1.35rem;
  background: #687b16;
  color: #fff;
  box-shadow: 0 2px 8px rgba(104, 123, 22, 0.2);
}

.site-header--granola .header-actions .button:hover {
  background: #586a10;
  color: #fff;
  box-shadow: 0 4px 12px rgba(104, 123, 22, 0.26);
}

.site-header--granola .menu-button {
  color: #171717;
  background: #fff;
  border-color: rgba(23, 23, 23, 0.16);
}

@media (max-width: 768px) {
  .site-header--granola {
    width: calc(100% - 1rem);
    margin-top: 8px;
    border-radius: 1.25rem;
  }

  .site-header--granola .header-inner {
    width: 100%;
    height: 60px;
    padding-inline: 0.75rem;
  }

  .site-header--granola .site-nav {
    background: #fff;
  }

  .site-header--granola .site-nav a {
    color: #171717;
  }
}

/* ============================================================
   Automatic dark mode — follows the device preference
   ============================================================ */

/* The header remains a floating, independent bar in both themes. */
.site-header--granola {
  background: var(--granola-bg, rgba(255, 255, 255, 0.96));
  border-color: var(--granola-border, rgba(23, 23, 23, 0.1));
  box-shadow: var(--granola-shadow, 0 10px 30px rgba(23, 23, 23, 0.1));
  color: var(--granola-ink, #171717);
}

.site-header--granola .brand,
.site-header--granola .site-nav a,
.site-header--granola .menu-button {
  color: var(--granola-ink, #171717);
}

.site-header--granola .brand-mark {
  background: var(--granola-mark, #171717);
}

.site-header--granola .menu-button {
  background: var(--granola-menu-bg, #fff);
  border-color: var(--granola-border-strong, rgba(23, 23, 23, 0.16));
}

@media (prefers-color-scheme: dark) {
  :root {
    --granola-bg: rgba(17, 19, 24, 0.92);
    --granola-border: rgba(255, 255, 255, 0.14);
    --granola-border-strong: rgba(255, 255, 255, 0.22);
    --granola-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
    --granola-ink: #f4f4f5;
    --granola-mark: #f4f4f5;
    --granola-menu-bg: #1e2130;
  }
}

/* Namespaced v2 sections use their own palette, so they need explicit dark tokens. */
@media (prefers-color-scheme: dark) {
  :root .v2-services {
    --v2-ink: #f4f4f5;
    --v2-ink-soft: #b3b3bd;
    --v2-tint: #1a1d28;
    --v2-shadow-card: 0 1px 2px rgba(0, 0, 0, 0.34), 0 10px 28px rgba(0, 0, 0, 0.22);
    --v2-shadow-lift: 0 2px 8px rgba(0, 0, 0, 0.4), 0 20px 48px rgba(0, 0, 0, 0.34);
    background: #111318;
    color: var(--v2-ink);
  }

  :root .v2-app-list {
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  :root .v2-app-list li + li {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
  }

  :root .v2-app-row:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  :root .v2-feature-card__cta {
    background: #f4f4f5;
    color: #111318;
  }

  :root .v2-section--tint {
    background: #1a1d28;
  }
}

@media (prefers-color-scheme: dark) and (max-width: 768px) {
  :root .site-header--granola .site-nav {
    background: rgba(17, 19, 24, 0.98);
  }

  :root .site-header--granola .site-nav a {
    color: #f4f4f5;
  }
}

/* ============================================================
   Editorial hero image stage
   ============================================================ */

.hp-hero {
  display: block;
  min-height: auto;
  padding: clamp(1.25rem, 3vw, 3rem) clamp(0.75rem, 2.8vw, 2.5rem) clamp(2.5rem, 5vw, 5rem);
  overflow: visible;
  background: var(--bg-alt);
}

.hp-hero-shell {
  position: relative;
  min-height: clamp(690px, calc(100svh - 120px), 900px);
  overflow: hidden;
  isolation: isolate;
  border-radius: clamp(1.5rem, 3vw, 2.25rem);
  background: #2f6c9c;
  box-shadow: 0 18px 50px rgba(25, 54, 82, 0.16);
}

.hp-hero-bg {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background: #2f6c9c;
}

.hp-hero-bg::before {
  position: absolute;
  z-index: 1;
  right: 50%;
  bottom: -24%;
  width: min(74vw, 860px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(12, 45, 74, 0.18), 0 28px 80px rgba(5, 24, 42, 0.26);
  content: "";
  pointer-events: none;
  transform: translateX(50%);
}

.hp-hero-bg picture {
  position: absolute;
  right: 50%;
  bottom: -24%;
  z-index: 0;
  display: block;
  width: min(74vw, 860px);
  height: auto;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  opacity: 0.92;
  transform: translateX(50%);
}

.hp-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 58%;
  filter: saturate(0.86) contrast(1.06);
}

.hp-hero-overlay {
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(42, 94, 137, 0.06) 0%, rgba(17, 45, 70, 0.08) 38%, rgba(5, 22, 38, 0.36) 100%),
    linear-gradient(90deg, rgba(24, 73, 111, 0.16) 0%, transparent 42%, rgba(11, 40, 66, 0.18) 100%);
  pointer-events: none;
}

.hp-hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: min(1180px, calc(100% - 2rem));
  min-height: clamp(690px, calc(100svh - 120px), 900px);
  padding-top: clamp(4rem, 10vw, 8rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
  color: #fff;
  text-align: center;
}

.hp-hero-title {
  max-width: 1050px;
  color: #fff;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", Georgia, serif;
  font-size: clamp(2.65rem, 5.6vw, 6.2rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 1.02;
  text-wrap: balance;
  text-shadow: 0 4px 30px rgba(6, 22, 36, 0.18);
}

@media (prefers-color-scheme: dark) {
  .hp-hero {
    background: #0e1721;
  }

  .hp-hero-shell,
  .hp-hero-bg {
    background: #18354e;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  }
}

@media (max-width: 720px) {
  .hp-hero {
    padding: 0.75rem 0.5rem 2rem;
  }

  .hp-hero-shell,
  .hp-hero-content {
    min-height: 730px;
  }

  .hp-hero-shell {
    border-radius: 1.25rem;
  }

  .hp-hero-bg::before,
  .hp-hero-bg picture {
    right: 50%;
    bottom: -4%;
    width: 112vw;
    transform: translateX(50%);
  }

  .hp-hero-content {
    width: calc(100% - 1.5rem);
    padding-top: 3.5rem;
    padding-bottom: 2.25rem;
  }

  .hp-hero-title {
    max-width: 100%;
    font-size: clamp(2.2rem, 9.2vw, 3.8rem);
    letter-spacing: -0.075em;
  }
}

/* Final hero adjustments: keep the art rectangular and let the mission copy follow the title. */
.site-header--granola .brand-logo {
  display: block;
  width: 30px;
  height: 30px;
  flex: none;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.hp-hero-bg::before {
  display: none;
}

.hp-hero-bg picture {
  top: 0;
  right: auto;
  bottom: auto;
  left: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  opacity: 0.88;
  transform: none;
}

.hp-hero-bg img {
  object-position: center center;
}

.hp-hero-content {
  flex-direction: column;
  align-items: center;
}

.hp-hero-mission {
  max-width: 900px;
  margin-top: clamp(1.35rem, 3vw, 2.5rem);
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.96rem, 1.65vw, 1.25rem);
  line-height: 1.9;
  text-align: center;
  text-shadow: 0 3px 18px rgba(6, 22, 36, 0.28);
}

@media (max-width: 720px) {
  .hp-hero-bg picture {
    top: 0;
    right: auto;
    bottom: auto;
    left: 0;
    width: 100%;
    height: 100%;
    transform: none;
  }

  .hp-hero-mission {
    max-width: 31rem;
    font-size: 0.88rem;
    line-height: 1.8;
  }
}

/* Keep the page rhythm on one shared horizontal gutter. */
:root {
  --page-gutter: clamp(2rem, 3.5vw, 2.5rem);
  --page-gutter-inline: clamp(4rem, 7vw, 5rem);
}

.container,
.container-narrow {
  width: min(var(--container), calc(100% - var(--page-gutter-inline)));
}

.site-header--granola {
  width: min(1200px, calc(100% - var(--page-gutter-inline)));
}

.hp-hero {
  padding-inline: var(--page-gutter);
}

.hp-hero-content {
  width: min(var(--container), calc(100% - var(--page-gutter-inline)));
}

.hp-carousel-track,
.hp-swipe-track {
  padding-inline: var(--page-gutter);
}

.v2-services {
  padding-inline: var(--page-gutter);
}

.v2-section-head,
.v2-founder,
.v2-mission,
.v2-product-duo,
.v2-cta__card {
  width: min(var(--container), calc(100% - var(--page-gutter-inline)));
}

.v2-faq {
  width: min(var(--container), calc(100% - var(--page-gutter-inline)));
}

.v2-section--faq .v2-section-head {
  text-align: center;
}

@media (max-width: 768px) {
  :root {
    --page-gutter: 1rem;
    --page-gutter-inline: 2rem;
  }

  .site-header--granola {
    width: calc(100% - var(--page-gutter-inline));
  }

  .v2-product-duo,
  .v2-section-head,
  .v2-founder,
  .v2-mission,
  .v2-faq,
  .v2-cta__card {
    width: calc(100% - var(--page-gutter-inline));
  }
}

@media (max-width: 480px) {
  :root {
    --page-gutter: 0.75rem;
    --page-gutter-inline: 1.5rem;
  }
}
