/* ─── Variables ─── */
:root {
  --bg:        #f9f7f4;
  --bg-alt:    #f2ebe1;
  --bg-dark:   #1f1a14;
  --fg:        #2a221a;
  --fg-muted:  #7a6f5f;
  --accent:    #e87a3a;
  --accent-md: #d96322;
  --accent-lt: #fbe7d3;
  --border:    #e6ddd3;
  --serif:     'Noto Serif JP', serif;
  --sans:      'Noto Sans JP', sans-serif;
  --font-heading: 'Noto Sans JP', sans-serif;
  --max:       1140px;
  --pad:       clamp(24px, 5vw, 80px);
  --section:   clamp(88px, 12vw, 160px);
  --r:         12px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--bg); color: var(--fg); font-size: 15px; line-height: 1.85; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea, select { font-family: inherit; }

/* ─── Utility ─── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section-label {
  font-family: var(--sans); font-weight: 500; font-size: 11px;
  letter-spacing: .26em; text-transform: uppercase; color: var(--accent);
  display: flex; align-items: center; gap: 10px; margin-bottom: 24px;
}
.section-label::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.section-label::after { content: ''; flex: 0 0 32px; height: 1.5px; background: var(--accent); }
.section-title {
  font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(22px, 3.2vw, 40px);
  line-height: 1.25; letter-spacing: -.02em; white-space: pre-line;
}
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .75s cubic-bezier(.22,1,.36,1), transform .75s cubic-bezier(.22,1,.36,1); }
.reveal.visible { opacity: 1; transform: none; }

/* ─── Navigation ─── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 var(--pad); height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .4s, box-shadow .4s;
}
#nav.scrolled { background: rgba(249,247,244,.97); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--border); }
.nav-logo {
  font-family: var(--sans); font-size: 13.5px; font-weight: 600;
  letter-spacing: .03em; color: var(--fg); white-space: nowrap;
  display: flex; align-items: center; gap: 10px;
}
.nav-logo-mark {
  width: 32px; height: 32px; background: var(--accent); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-family: var(--serif); font-weight: 600; flex-shrink: 0;
}
.nav-logo-text { display: flex; flex-direction: column; gap: 1px; }
.nav-logo-text span { font-size: 9px; font-weight: 300; letter-spacing: .12em; color: var(--fg-muted); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 12.5px; font-weight: 400; letter-spacing: .04em; color: var(--fg-muted); transition: color .2s; }
.nav-links a:hover { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.lang-switcher { display: flex; gap: 4px; }
.lang-btn {
  font-family: var(--sans); font-size: 11px; font-weight: 400; letter-spacing: .06em;
  padding: 4px 9px; border: 1.5px solid var(--border); background: transparent;
  color: var(--fg-muted); cursor: pointer; transition: all .2s; border-radius: 20px;
}
.lang-btn.active, .lang-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-lt); }
.nav-cta {
  font-size: 12px; font-weight: 500; letter-spacing: .06em;
  padding: 9px 20px; background: var(--accent); color: #fff;
  transition: background .2s, transform .15s; white-space: nowrap; border-radius: 24px;
}
.nav-cta:hover { background: var(--accent-md); transform: translateY(-1px); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--fg); transition: all .3s; }
.mobile-menu { display: none; position: fixed; inset: 0; background: var(--bg); z-index: 99; padding: 88px var(--pad) 40px; flex-direction: column; gap: 0; overflow-y: auto; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 20px; font-family: var(--sans); font-weight: 500; border-bottom: 1px solid var(--border); padding: 18px 0; }

/* ─── Hero ─── */
#hero {
  min-height: 100vh; display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center; position: relative;
  padding: 100px 0 80px; overflow: hidden;
  background: var(--bg);
}
.hero-left {
  padding: 0 clamp(24px, 6vw, 96px) 0 var(--pad);
  position: relative; z-index: 2;
}
.hero-right {
  position: relative; height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt); overflow: hidden;
}
.hero-right-inner {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0; position: relative; width: 100%; height: 100%;
}
.hero-bg-text {
  position: absolute; bottom: 8%; right: 6%;
  font-family: var(--serif); font-size: clamp(100px, 16vw, 220px); font-weight: 600;
  color: var(--accent-lt); line-height: 1;
  pointer-events: none; user-select: none; z-index: 1; letter-spacing: -.02em;
}
/* Decorative dot grid for right panel */
.hero-dot-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--border) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  opacity: .7;
}
.hero-right-badges {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; gap: 12px; padding: 0 48px;
}
.hero-right-badge {
  background: #fff; border-radius: var(--r);
  padding: 20px 24px; box-shadow: 0 4px 24px rgba(0,0,0,.07);
  display: flex; align-items: center; gap: 14px;
}
.hero-right-badge-icon {
  width: 40px; height: 40px; background: var(--accent-lt); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 13px; color: var(--accent); font-weight: 600; flex-shrink: 0;
}
.hero-right-badge-text { font-size: 13px; font-weight: 500; color: var(--fg); line-height: 1.4; }
.hero-right-badge-sub { font-size: 11px; color: var(--fg-muted); font-weight: 300; }
.hero-tag {
  font-family: var(--sans); font-weight: 500; font-size: 11px;
  letter-spacing: .2em; color: var(--accent); margin-bottom: 24px; display: flex; align-items: center; gap: 8px;
}
.hero-tag::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero-title {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 38px; line-height: 1.3;
  letter-spacing: -.03em; margin-bottom: 28px; color: var(--fg);
}
.hero-body {
  font-size: 14.5px; color: var(--fg-muted); line-height: 2;
  max-width: 480px; margin-bottom: 40px; white-space: pre-line;
}
.hero-cta-btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13.5px; font-weight: 500; letter-spacing: .05em;
  padding: 15px 32px; background: var(--accent); color: #fff;
  transition: background .2s, transform .15s; border-radius: 32px;
}
.hero-cta-btn:hover { background: var(--accent-md); transform: translateY(-2px); }
.hero-cta-btn::after { content: '→'; }
.hero-scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  font-size: 10px; letter-spacing: .18em; color: var(--fg-muted);
  display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 3;
}
.scroll-line { width: 1px; height: 48px; background: var(--border); animation: scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine { 0%,100%{transform:scaleY(0);transform-origin:top} 50%{transform:scaleY(1);transform-origin:top} }
.hero-badges { display: flex; gap: 10px; margin-top: 32px; flex-wrap: wrap; }
.hero-badge {
  font-size: 11px; font-weight: 500; letter-spacing: .04em; color: var(--accent);
  background: var(--accent-lt); padding: 5px 14px; border-radius: 20px;
}

/* ─── About ─── */
#about { padding: var(--section) var(--pad); background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1fr 340px; gap: 80px; align-items: start; }
.about-text p { color: var(--fg-muted); line-height: 2; margin-top: 20px; font-size: 14.5px; }
.about-stats { display: flex; flex-direction: column; gap: 0; border-left: 1px solid var(--border); padding-left: 40px; margin-top: 48px; }
.stat-item { padding: 24px 0; border-bottom: 1px solid var(--border); display: flex; align-items: baseline; gap: 12px; }
.stat-item:first-child { padding-top: 0; }
.stat-num { font-family: var(--serif); font-size: 38px; font-weight: 300; color: var(--accent); line-height: 1; }
.stat-label { font-size: 12px; letter-spacing: .1em; color: var(--fg-muted); font-weight: 300; }

/* ─── Services ─── */
#services { padding: var(--section) var(--pad); background: var(--bg-alt); }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; margin-top: 52px; }
.service-card {
  background: var(--bg); padding: 40px 36px;
  transition: box-shadow .2s;
}
.service-card:hover { box-shadow: 0 4px 24px rgba(0,0,0,.07); }
.svc-num { font-family: var(--serif); font-size: 28px; font-weight: 300; color: var(--border); line-height: 1; margin-bottom: 16px; }
.svc-title { font-family: var(--font-heading); font-size: 17px; font-weight: 500; margin-bottom: 14px; color: var(--fg); }
.svc-body { font-size: 13.5px; color: var(--fg-muted); line-height: 1.9; }

/* ─── Systems ─── */
#systems { padding: var(--section) var(--pad); background: var(--bg); }
.systems-header { display: flex; flex-direction: column; gap: 0; }
.tab-nav { display: flex; gap: 8px; margin-top: 48px; }
.tab-btn {
  font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: .03em;
  padding: 10px 24px; background: var(--bg-alt); border: none; border-radius: 24px;
  color: var(--fg-muted); cursor: pointer; transition: all .25s;
}
.tab-btn.active { background: var(--accent); color: #fff; }
.tab-btn:hover:not(.active) { background: var(--border); color: var(--fg); }
.tab-content { display: none; padding: 48px 0 0; }
.tab-content.active { display: grid; grid-template-columns: 1fr 280px; gap: 60px; align-items: start; }
.sys-title { font-family: var(--font-heading); font-size: 20px; font-weight: 600; margin-bottom: 20px; letter-spacing: -.01em; }
.sys-body { font-size: 14.5px; color: var(--fg-muted); line-height: 2; }
.sys-note { font-size: 12.5px; color: var(--fg-muted); margin-top: 24px; padding: 14px 18px; background: var(--accent-lt); border-radius: var(--r); border-left: 3px solid var(--accent); }
.sys-visual {
  background: var(--bg-alt); border-radius: var(--r);
  padding: 28px; display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,.05);
}
.sys-tag { font-size: 10px; letter-spacing: .16em; color: var(--accent-md); font-weight: 500; text-transform: uppercase; }
.sys-period { font-family: var(--serif); font-size: 28px; font-weight: 300; color: var(--fg); }
.sys-period-label { font-size: 11.5px; color: var(--fg-muted); }
.sys-divider { height: 1px; background: var(--border); }
.sys-point { font-size: 12.5px; color: var(--fg-muted); display: flex; gap: 10px; align-items: flex-start; line-height: 1.7; }
.sys-point::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 6px; }

/* ─── Flow ─── */
#flow { padding: var(--section) var(--pad); background: var(--bg-alt); }
.flow-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.flow-step {
  background: var(--bg); padding: 36px 28px; border-radius: var(--r);
  box-shadow: 0 2px 12px rgba(0,0,0,.04); position: relative;
  transition: box-shadow .3s, transform .3s;
}
.flow-step:hover { box-shadow: 0 12px 36px rgba(0,0,0,.08); transform: translateY(-3px); }
.flow-step-num {
  font-family: var(--serif); font-size: 38px; font-weight: 300;
  color: var(--accent-lt); line-height: 1; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-md));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.flow-step-title { font-family: var(--font-heading); font-size: 16px; font-weight: 600; margin-bottom: 12px; color: var(--fg); }
.flow-step-body { font-size: 13px; color: var(--fg-muted); line-height: 2; }
.flow-arrow { display: none; }

/* ─── FAQ ─── */
#faq { padding: var(--section) var(--pad); background: var(--bg); }
.faq-list { margin-top: 56px; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border-radius: var(--r); background: var(--bg-alt);
  overflow: hidden; transition: box-shadow .2s;
}
.faq-item.open { box-shadow: 0 4px 24px rgba(0,0,0,.07); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 22px 28px; background: none; border: none; cursor: pointer; text-align: left; gap: 20px;
}
.faq-q-text { font-family: var(--font-heading); font-size: 15px; font-weight: 500; color: var(--fg); }
.faq-icon {
  flex-shrink: 0; width: 28px; height: 28px; background: var(--accent-lt);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 18px; transition: transform .3s, background .2s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq-a { display: none; padding: 0 28px 24px; font-size: 14px; color: var(--fg-muted); line-height: 2; }

/* ─── News ─── */
#news { padding: var(--section) var(--pad); background: var(--bg-alt); }
.news-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 48px; }
.news-more-link { font-size: 13px; font-weight: 500; letter-spacing: .06em; color: var(--accent); display: flex; align-items: center; gap: 8px; }
.news-more-link::after { content: '→'; }
.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-item {
  display: grid; grid-template-columns: 120px 90px 1fr;
  gap: 20px; align-items: center; padding: 22px 28px;
  background: var(--bg); border-radius: var(--r);
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
  transition: box-shadow .25s, transform .25s;
}
.news-item:hover { box-shadow: 0 8px 28px rgba(0,0,0,.09); transform: translateY(-2px); }
.news-date { font-size: 12px; color: var(--fg-muted); font-weight: 300; letter-spacing: .04em; }
.news-cat {
  font-size: 10.5px; font-weight: 500; letter-spacing: .06em; color: var(--accent);
  background: var(--accent-lt); padding: 4px 10px; border-radius: 20px; text-align: center;
}
.news-title-text { font-size: 14.5px; color: var(--fg); font-weight: 400; font-family: var(--font-heading); }

/* ─── Access ─── */
#access { padding: var(--section) var(--pad); background: var(--bg); }
.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 56px; align-items: start; }
.info-table { width: 100%; border-collapse: collapse; }
.info-table tr { border-bottom: 1px solid var(--border); }
.info-table th { font-size: 11px; font-weight: 500; letter-spacing: .1em; color: var(--fg-muted); text-align: left; padding: 18px 0; width: 100px; vertical-align: top; }
.info-table td { font-size: 14.5px; color: var(--fg); padding: 18px 0; line-height: 1.7; }
.map-wrapper { border-radius: var(--r); overflow: hidden; aspect-ratio: 4/3; box-shadow: 0 4px 24px rgba(0,0,0,.08); }
.map-embed { width: 100%; height: 100%; border: none; display: block; }

/* ─── Contact ─── */
#contact { padding: var(--section) var(--pad); background: var(--bg-dark); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
#contact .section-label { color: #f4b88a; }
#contact .section-label::before { background: #f4b88a; }
#contact .section-label::after { background: #f4b88a; }
#contact .section-title { color: #fff; font-size: clamp(22px, 3vw, 38px); }
.contact-body { color: #c9bca7; font-size: 14px; line-height: 2; margin-top: 20px; }
.form-group { margin-bottom: 18px; }
label { display: block; font-size: 11.5px; font-weight: 500; letter-spacing: .08em; color: #c9bca7; margin-bottom: 7px; }
input, textarea, select {
  width: 100%; padding: 13px 16px;
  background: #2a241c; border: 1.5px solid #3a3328;
  color: #fff; font-size: 14px; transition: border .2s; outline: none;
  -webkit-appearance: none; border-radius: 8px;
}
input::placeholder, textarea::placeholder { color: #6e6555; }
input:focus, textarea:focus, select:focus { border-color: var(--accent-md); }
textarea { height: 120px; resize: vertical; }
select { color: #c9bca7; }
select option { background: #2a241c; color: #fff; }
.form-submit {
  width: 100%; padding: 16px; background: var(--accent-md); color: #fff;
  border: none; font-size: 14px; font-weight: 500; letter-spacing: .08em; cursor: pointer;
  transition: background .2s, transform .15s; margin-top: 8px; border-radius: 8px;
}
.form-submit:hover { background: #c25817; transform: translateY(-1px); }
.form-note { font-size: 11px; color: #8a7e6a; margin-top: 12px; }
.form-success { display: none; color: #8fcf9f; font-size: 14px; padding: 16px; border: 1px solid #3d6a48; margin-top: 8px; border-radius: 8px; }

/* ─── Footer ─── */
footer {
  background: var(--bg-dark); border-top: 1px solid #2e271e;
  padding: 40px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo-mark { width: 28px; height: 28px; background: var(--accent-md); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; font-family: var(--serif); font-weight: 600; }
.footer-logo-name { font-family: var(--sans); font-size: 13px; font-weight: 500; color: #b5a892; }
.footer-copy { font-size: 11px; color: #6e6555; }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { font-size: 12px; color: #8a7e6a; transition: color .2s; }
.footer-nav a:hover { color: var(--accent); }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  #hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-left { padding: 0 var(--pad); }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .about-grid { grid-template-columns: 1fr; }
  .about-stats { flex-direction: row; flex-wrap: wrap; margin-top: 36px; gap: 12px; }
  .stat-item { flex: 1; min-width: 120px; }
  .services-grid { grid-template-columns: 1fr; }
  .flow-steps { grid-template-columns: 1fr 1fr; }
  .access-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  footer { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-nav { flex-wrap: wrap; }
  .tab-btn { padding: 8px 16px; font-size: 12px; }
  .tab-content.active { grid-template-columns: 1fr; gap: 32px; }
  .news-item { grid-template-columns: 100px 80px 1fr; gap: 12px; }
}
@media (max-width: 600px) {
  .hero-title { font-size: 32px; }
  .hero-badges { display: none; }
  .flow-steps { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; gap: 4px; padding: 16px 20px; }
  .news-cat { display: inline-block; width: auto; }
  .lang-switcher { gap: 4px; }
  .lang-btn { font-size: 10px; padding: 3px 7px; }
}

/* ─── Tweaks Panel ─── */
#tweaks-panel {
  display: none; position: fixed; bottom: 24px; right: 24px; z-index: 200;
  background: var(--bg); border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,.12); padding: 20px 24px; width: 240px;
}
#tweaks-panel h3 { font-family: var(--sans); font-size: 11px; letter-spacing: .1em; color: var(--fg-muted); text-transform: uppercase; margin-bottom: 16px; }
.tweak-row { margin-bottom: 14px; }
.tweak-row label { font-size: 11px; color: var(--fg-muted); margin-bottom: 6px; }
.tweak-row input[type=color] { width: 100%; height: 28px; padding: 2px; border: 1px solid var(--border); background: var(--bg); cursor: pointer; border-radius: 0; }
.tweak-row select { background: var(--bg); color: var(--fg); font-size: 12px; padding: 6px 10px; border: 1px solid var(--border); width: 100%; border-radius: 0; }

/* ─── Subpage ─── */
body.subpage { padding-top: 80px; }
.page-pad > section { padding-top: 80px !important; padding-bottom: 100px !important; }
.nav-links a.active, #mobile-menu a.active { color: var(--accent); }

.hero-cta-btn::after,
.news-more-link::after { content: "\2192"; }

/* Home redesign */
body.home {
  background:
    radial-gradient(circle at top right, rgba(232, 122, 58, 0.12), transparent 28%),
    linear-gradient(180deg, #fbf5eb 0%, #f7f2e8 100%);
}

body.home #hero {
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  padding: 124px 0 72px;
  background: transparent;
}

body.home .hero-left {
  padding: 0 clamp(24px, 5vw, 72px) 0 var(--pad);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

body.home .hero-kicker {
  max-width: 30rem;
  margin-bottom: 18px;
  color: var(--fg-muted);
  font-size: 13px;
  letter-spacing: 0.08em;
}

body.home .hero-title {
  font-size: clamp(22px, 3.0vw, 44px);
  line-height: 1.15;
  margin-bottom: 24px;
  white-space: nowrap;
}

body.home .hero-body {
  max-width: 34rem;
  font-size: 15px;
  line-height: 2;
  margin-bottom: 28px;
}

body.home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid rgba(42, 34, 26, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--fg);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.hero-secondary-btn::after,
.process-link::after,
.overview-link::after {
  content: "\2192";
}

.hero-secondary-btn:hover,
.process-link:hover,
.overview-link:hover {
  transform: translateY(-1px);
  border-color: rgba(232, 122, 58, 0.36);
  background: rgba(251, 231, 211, 0.62);
}

body.home .hero-badges {
  margin-top: 34px;
  gap: 12px;
}

body.home .hero-badge {
  padding: 7px 16px;
  background: rgba(251, 231, 211, 0.82);
  border: 1px solid rgba(232, 122, 58, 0.15);
}

body.home .hero-right {
  position: relative;
  min-height: calc(100vh - 196px);
  height: auto;
  padding: 0 var(--pad) 0 0;
  background: transparent;
  justify-content: flex-end;
}

body.home .hero-dot-grid {
  inset: 8% 8% 8% 0;
  border-radius: 40px;
  opacity: 0.5;
}

body.home .hero-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  top: 8%;
  right: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 122, 58, 0.28), rgba(232, 122, 58, 0));
  filter: blur(12px);
}

body.home .hero-bg-text {
  right: 10%;
  bottom: 4%;
  font-size: clamp(140px, 18vw, 240px);
  color: rgba(232, 122, 58, 0.12);
}

body.home .hero-composition {
  position: relative;
  width: min(620px, 100%);
  min-height: 540px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 28px;
}

body.home .hero-feature-card {
  position: relative;
  z-index: 2;
  width: min(460px, 100%);
  padding: 34px 34px 32px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px rgba(70, 50, 28, 0.12);
}

body.home .hero-card-label {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body.home .hero-card-title {
  margin-bottom: 18px;
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.35;
}

body.home .hero-card-body {
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.9;
}

body.home .hero-card-list {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.home .hero-card-list li {
  position: relative;
  padding-left: 18px;
  color: var(--fg);
  font-size: 13px;
  line-height: 1.7;
}

body.home .hero-card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}

body.home .hero-side-stack {
  position: absolute;
  right: 0;
  bottom: 18px;
  z-index: 3;
  width: 188px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.home .hero-stat-card {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(34, 28, 23, 0.88);
  color: #fff;
  box-shadow: 0 14px 36px rgba(34, 28, 23, 0.2);
}

body.home .hero-stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1;
}

body.home .hero-stat-value-text {
  font-size: 24px;
}

body.home .hero-stat-label {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.home-overview,
.home-systems-preview,
.home-process,
body.home #news,
.home-cta {
  padding: var(--section) 0;
}

.home-overview {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.overview-copy p {
  margin-top: 18px;
  color: var(--fg-muted);
  font-size: 14.5px;
  line-height: 2;
}

.overview-quote {
  padding: 30px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(232, 122, 58, 0.12);
  box-shadow: 0 14px 34px rgba(70, 50, 28, 0.08);
}

.overview-quote-text {
  margin-bottom: 16px;
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.45;
}

.overview-quote-sub {
  color: var(--fg-muted);
  font-size: 13.5px;
  line-height: 1.9;
}

.overview-link,
.process-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.home-pillars {
  padding: var(--section) 0;
  background: rgba(239, 227, 209, 0.45);
}

.pillars-header {
  max-width: 760px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 44px;
}

.pillar-card {
  min-height: 250px;
  padding: 28px 28px 30px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(232, 122, 58, 0.1);
  box-shadow: 0 12px 34px rgba(70, 50, 28, 0.06);
}

.pillar-index {
  display: inline-block;
  margin-bottom: 26px;
  color: rgba(232, 122, 58, 0.62);
  font-family: var(--font-heading);
  font-size: 22px;
}

.pillar-card h3 {
  margin-bottom: 14px;
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1.45;
}

.pillar-card p {
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.9;
}

.systems-preview-header {
  max-width: 760px;
}

.systems-preview-body {
  margin-top: 20px;
  color: var(--fg-muted);
  font-size: 14.5px;
  line-height: 2;
}

.systems-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.system-preview-card {
  display: block;
  padding: 30px 28px 32px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(247, 242, 232, 0.94));
  border: 1px solid rgba(42, 34, 26, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.system-preview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 122, 58, 0.2);
  box-shadow: 0 16px 36px rgba(70, 50, 28, 0.08);
}

.system-preview-label {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(232, 122, 58, 0.1);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.system-preview-card h3 {
  margin: 20px 0 14px;
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1.45;
}

.system-preview-card p {
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.9;
}

.home-process {
  background: linear-gradient(180deg, rgba(239, 227, 209, 0.38), rgba(255, 255, 255, 0));
}

.process-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

.process-body {
  margin-top: 20px;
  color: var(--fg-muted);
  font-size: 14.5px;
  line-height: 2;
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.process-step {
  padding: 28px 28px 30px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(42, 34, 26, 0.08);
}

.process-step-num {
  display: inline-block;
  margin-bottom: 24px;
  color: rgba(232, 122, 58, 0.5);
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1;
}

.process-step h3 {
  margin-bottom: 12px;
  font-family: var(--font-heading);
  font-size: 18px;
  line-height: 1.45;
}

.process-step p {
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.9;
}

body.home #news {
  background: transparent;
}

body.home .news-list {
  gap: 14px;
}

body.home .news-item {
  grid-template-columns: 130px 92px 1fr;
  gap: 18px;
  padding: 24px 28px;
  border: 1px solid rgba(42, 34, 26, 0.08);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: none;
}

body.home .news-item:hover {
  box-shadow: 0 14px 34px rgba(70, 50, 28, 0.08);
}

.home-cta {
  padding-top: 0;
}

.home-cta-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(232, 122, 58, 0.28), transparent 26%),
    linear-gradient(135deg, #211c16 0%, #34281c 100%);
  color: #fff;
}

.home-cta-inner .section-label {
  color: #f4b88a;
}

.home-cta-inner .section-label::before,
.home-cta-inner .section-label::after {
  background: #f4b88a;
}

.home-cta-inner .section-title {
  color: #fff;
  font-size: clamp(22px, 3vw, 40px);
}

.home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.home-cta .hero-secondary-btn {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.home-cta .hero-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
}

@media (max-width: 1100px) {
  .pillars-grid,
  .systems-preview-grid {
    grid-template-columns: 1fr;
  }

  .process-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  body.home #hero {
    grid-template-columns: 1fr;
    padding-bottom: 48px;
  }

  body.home .hero-right {
    display: flex;
    min-height: 0;
    padding: 24px var(--pad) 0;
    justify-content: flex-start;
  }

  body.home .hero-composition {
    width: 100%;
    min-height: 0;
    padding-top: 0;
  }
}
