:root {
  --bg: #0E0F12;
  --surface: #16181D;
  --fg: #F3EFEA;
  --fg-muted: rgba(243, 239, 234, 0.76);
  --fg-subtle: rgba(243, 239, 234, 0.56);
  --line: rgba(243, 239, 234, 0.16);
  --accent: #D46A38;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font-display: 'Playfair Display', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --font-body: 'Manrope', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --pad-x: clamp(20px, 5vw, 64px);
}

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

html {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100svh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

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

/* Typography Rules (TYP-01 to TYP-07, BRK-01 to BRK-07) */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-wrap: balance;
  hyphens: none;
  color: var(--fg);
}

h1 {
  font-size: clamp(2.2rem, 5.2vw, 4.6rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.85rem, 4.2vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

p {
  font-size: clamp(15px, 1.08vw, 18px);
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 58ch;
  text-wrap: pretty;
}

.lead-text {
  font-size: clamp(17px, 1.35vw, 21px);
  color: var(--fg);
  line-height: 1.6;
  margin-bottom: 24px;
}

.label, .section-num {
  display: inline-block;
  font-size: 12px;
  line-height: 1.8;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fg-subtle);
}

/* Motion (MOT-01 to MOT-05) */
.rise {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(14px);
}

.is-in .rise {
  opacity: 1;
  transform: none;
  filter: blur(0);
  transition:
    opacity 900ms var(--ease) var(--d, 0ms),
    transform 900ms var(--ease) var(--d, 0ms),
    filter 900ms var(--ease) var(--d, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  .rise, .is-in .rise {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 16px var(--pad-x);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}

.brand-link__img {
  width: 38px;
  height: 38px;
  aspect-ratio: 1 / 1;
}

.brand-link__name {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.06em;
  color: var(--fg);
}

.brand-link__tag {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--fg-subtle);
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  flex-wrap: wrap;
}

.site-nav__link {
  font-size: 14px;
  color: var(--fg-muted);
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  transition: color 320ms var(--ease);
}

.site-nav__link:hover {
  color: var(--fg);
}

/* Buttons (CTA-01 to CTA-07) */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 12px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

.btn--solid {
  background-color: var(--accent);
  color: var(--fg);
  border: none;
}

.btn--ghost {
  background-color: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
}

.btn--full {
  width: 100%;
}

.btn__fill {
  position: absolute;
  inset: 0;
  background-color: var(--fg);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 500ms var(--ease);
  z-index: 1;
}

.btn:hover .btn__fill {
  transform: scaleX(1);
}

.btn__label {
  position: relative;
  z-index: 2;
  transition: color 320ms var(--ease);
}

.btn:hover .btn__label {
  color: var(--bg);
}

.btn__icon {
  position: relative;
  z-index: 2;
  transition: transform 520ms var(--ease), color 320ms var(--ease);
}

.btn:hover .btn__icon {
  transform: translateX(5px);
  color: var(--bg);
}

.reassurance {
  font-size: 12.5px;
  color: var(--fg-subtle);
  margin-top: 10px;
}

/* Hero Skeleton (HERO-01 to HERO-04, CMP-02 Scheme A, IMG-06) */
.hero {
  position: relative;
  height: 155vh;
}

.hero__media {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,0.75) 32%, transparent 62%);
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,0.75) 32%, transparent 62%);
  pointer-events: none;
}

.hero__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.hero__content {
  position: absolute;
  inset: 0 0 auto 0;
  height: 100svh;
  max-width: 1440px;
  margin: 0 auto;
  padding: 96px var(--pad-x) clamp(28px, 5vh, 56px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}

.hero__panel {
  max-width: 720px;
  pointer-events: auto;
  text-shadow: 0 2px 24px rgba(14, 15, 18, 0.85);
}

.hero__title {
  margin-bottom: 18px;
}

.hero__sub {
  color: var(--fg);
  opacity: 0.88;
  margin-bottom: 24px;
}

.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Layout & Sections */
.section {
  position: relative;
  z-index: 2;
  background-color: var(--bg);
  padding: clamp(64px, 10vw, 136px) 0;
  border-top: 1px solid var(--line);
}

.section--surface {
  background-color: var(--surface);
}

.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section-header {
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-title {
  margin-top: 10px;
  margin-bottom: 18px;
}

.section-lead {
  font-size: clamp(16px, 1.2vw, 19px);
}

/* Editorial Grid & Full-Bleed Pair */
.editorial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: clamp(48px, 7vw, 88px);
}

@media (min-width: 900px) {
  .editorial-grid {
    grid-template-columns: 5fr 7fr;
    gap: 64px;
  }
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.stat-item__val {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  line-height: 1;
  color: var(--fg);
  margin-bottom: 8px;
}

.stat-item__val small {
  font-size: 0.45em;
  color: var(--accent);
  margin-left: 4px;
}

.stat-item__lbl {
  font-size: 13px;
  color: var(--fg-subtle);
}

.bleed-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  background-color: var(--line);
}

@media (min-width: 860px) {
  .bleed-pair {
    grid-template-columns: 1fr 1fr;
  }
}

.bleed-pair__item {
  position: relative;
  background-color: var(--bg);
  overflow: hidden;
}

.bleed-pair__item img {
  width: 100%;
  height: clamp(280px, 38vw, 520px);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 800ms var(--ease);
}

.bleed-pair__item:hover img {
  transform: scale(1.03);
}

.bleed-pair__caption {
  padding: 18px var(--pad-x);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--fg-muted);
  border-top: 1px solid var(--line);
}

/* Interactive Estimator */
.estimator-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

@media (min-width: 980px) {
  .estimator-layout {
    grid-template-columns: 7fr 5fr;
    gap: 56px;
  }
}

.estimator-group + .estimator-group {
  margin-top: 40px;
}

.estimator-group__title {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--fg);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.estimator-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .estimator-options {
    grid-template-columns: 1fr 1fr;
  }
}

.est-btn {
  text-align: left;
  background-color: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line);
  padding: 20px;
  min-height: 88px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  transition: transform 620ms var(--ease), background-color 320ms var(--ease);
}

.est-btn:hover {
  transform: translateY(-3px);
}

.est-btn.is-active {
  background-color: var(--fg);
  color: var(--bg);
}

.est-btn__title {
  font-size: 15px;
  font-weight: 500;
}

.est-btn__meta {
  font-size: 12.5px;
  opacity: 0.72;
}

.estimator-checks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.est-check {
  width: 100%;
  text-align: left;
  background-color: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line);
  padding: 18px 20px;
  min-height: 64px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: background-color 320ms var(--ease);
}

.est-check__indicator {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid var(--fg-muted);
  flex-shrink: 0;
  margin-top: 3px;
  position: relative;
}

.est-check.is-selected .est-check__indicator {
  background-color: var(--accent);
  border-color: var(--accent);
}

.est-check__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.est-check__text strong {
  font-size: 15px;
  font-weight: 500;
}

.est-check__text small {
  font-size: 13px;
  color: var(--fg-muted);
}

.estimator-result {
  background-color: var(--bg);
  padding: clamp(24px, 4vw, 40px);
  border-top: 2px solid var(--accent);
}

.estimator-result__selected {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--fg);
  margin-top: 6px;
  margin-bottom: 24px;
}

.estimator-result__price-box {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.estimator-result__label {
  font-size: 13px;
  color: var(--fg-subtle);
}

.estimator-result__price {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  color: var(--fg);
  line-height: 1.15;
  margin-top: 8px;
}

.estimator-result__metrics {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.estimator-result__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.estimator-result__row dt {
  color: var(--fg-subtle);
}

.estimator-result__row dd {
  color: var(--fg);
  text-align: right;
}

.estimator-result__note {
  font-size: 12.5px;
  color: var(--fg-subtle);
  margin-bottom: 24px;
}

.estimator-result__cta {
  width: 100%;
}

/* Capabilities Asymmetric Grid (§8 No Notification Card, Varied Padding/Heights) */
.cap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 860px) {
  .cap-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 32px;
  }
  .cap-card {
    grid-column: span 5;
  }
  .cap-card--wide {
    grid-column: span 7;
  }
}

.cap-card {
  background-color: var(--surface);
  padding: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--fg-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  transition: transform 620ms var(--ease);
}

.cap-card--wide {
  padding: clamp(32px, 5vw, 60px);
}

.cap-card:hover {
  transform: translateY(-6px);
}

.cap-card__idx {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.cap-card__body {
  color: var(--fg-muted);
}

.cap-card__spec {
  font-size: 13px;
  color: var(--fg);
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* Standards Split */
.standards-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .standards-split {
    grid-template-columns: 6fr 6fr;
    gap: 64px;
  }
}

.standards-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 32px;
}

.standards-item {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.standards-item__title {
  margin-bottom: 10px;
}

.standards-split__media {
  background-color: var(--bg);
}

.standards-split__media img {
  width: 100%;
  height: clamp(300px, 42vw, 540px);
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.standards-split__caption {
  padding: 24px;
}

/* Works & Legal Data Table */
.works-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.works-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 640px;
}

.works-table th,
.works-table td {
  padding: 22px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  vertical-align: top;
}

.works-table th {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  font-weight: 500;
}

.works-table td strong {
  color: var(--fg);
}

/* FAQ Open Details */
.faq-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.faq-item {
  background-color: var(--bg);
  padding: 28px 32px;
  border-top: 1px solid var(--line);
}

.faq-item__q {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: var(--fg);
  cursor: pointer;
  min-height: 48px;
  display: flex;
  align-items: center;
  list-style: none;
}

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

.faq-item__a {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* Contact & Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 940px) {
  .contact-grid {
    grid-template-columns: 5fr 7fr;
    gap: 64px;
  }
}

.contact-meta {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-meta__item {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.contact-meta__link {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--accent);
}

.lead-form {
  background-color: var(--surface);
  padding: clamp(28px, 5vw, 52px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 14px;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 10px;
}

.req {
  font-size: 11px;
  padding: 2px 8px;
  background-color: var(--accent);
  color: var(--fg);
  border-radius: 999px;
}

.form-input {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--fg);
  background-color: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0;
}

.form-input:focus {
  outline: 1px solid var(--accent);
  border-color: var(--accent);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.consent-label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  font-size: 14px;
  color: var(--fg-muted);
  cursor: pointer;
}

.consent-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}

.consent-label a {
  text-decoration: underline;
  color: var(--fg);
}

.form-status {
  font-size: 13.5px;
  color: var(--fg-subtle);
}

.form-status.is-error {
  color: var(--accent);
}

.form-confirmation {
  padding: 32px 0;
  border-top: 2px solid var(--accent);
}

.form-confirmation h3 {
  margin-bottom: 16px;
}

/* Legal Pages */
.legal-page {
  padding-top: 140px;
}

.legal-page__title {
  margin-top: 12px;
  margin-bottom: 24px;
}

.legal-page__lead {
  margin-bottom: 48px;
}

.legal-block {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.legal-block h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  margin-bottom: 14px;
}

.legal-block ul {
  margin-top: 12px;
  padding-left: 20px;
  color: var(--fg-muted);
}

.legal-block li {
  margin-bottom: 8px;
}

.legal-back {
  margin-top: 48px;
}

/* Footer */
.site-footer {
  background-color: var(--bg);
  border-top: 1px solid var(--line);
  padding: 72px var(--pad-x) 40px;
}

.site-footer__top {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 860px) {
  .site-footer__top {
    grid-template-columns: 5fr 7fr;
  }
}

.site-footer__desc {
  margin-top: 16px;
  font-size: 14px;
}

.site-footer__navs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.site-footer__list {
  list-style: none;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__list a {
  font-size: 14px;
  color: var(--fg-muted);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-footer__list a:hover {
  color: var(--fg);
}

.site-footer__bottom {
  max-width: 1360px;
  margin: 28px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer__copy {
  font-size: 13px;
  color: var(--fg-subtle);
}

/* Cookie Bar (Only element with data-nosnippet) */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background-color: var(--surface);
  border-top: 1px solid var(--line);
  padding: 18px var(--pad-x);
}

.cookie-bar__inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-bar__text {
  font-size: 13.5px;
  max-width: 76ch;
}

.cookie-bar__text a {
  text-decoration: underline;
  color: var(--fg);
}

.cookie-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 767px) {
  .hero {
    height: auto;
    min-height: 100svh;
  }
  .hero__media {
    position: absolute;
    inset: 0;
    height: 100%;
  }
  .hero__content {
    position: relative;
    min-height: 100svh;
    height: auto;
    padding-top: 136px;
  }
  .brand-link__tag {
    display: none;
  }
}