@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+KR:wght@400;500;600;700&display=swap');

:root {
  --paper: #fbfaf7;
  --surface: #ffffff;
  --concrete: #f0eee8;
  --ink: #262625;
  --body: #4c4a46;
  --muted: #6f6b64;
  --line: #d8d3ca;
  --media-mat: #282725;
  --orange: #e07205;
  --orange-text: #a33f07;
  --orange-button: #9b3a06;
  --orange-button-hover: #762a03;
  --orange-soft: rgba(224, 114, 5, .13);
  --charcoal: #292826;
  --content: 1120px;
  --gutter: clamp(24px, 5vw, 72px);
  --section: clamp(84px, 9vw, 120px);
  --section-gap: clamp(38px, 4.8vw, 60px);
  --shadow: 0 24px 64px rgba(38, 38, 37, .12);
  --z-header: 100;
  --z-menu: 90;
  --ease: cubic-bezier(.2, .72, .25, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--body);
  background: var(--paper);
  font-family: 'Sandoll GothicNeo1', 'IBM Plex Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-size: 16px;
  line-height: 1.76;
  letter-spacing: -.018em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
a, button, input, select, textarea, summary { touch-action: manipulation; }

:focus-visible {
  outline: 3px solid rgba(224, 114, 5, .62);
  outline-offset: 4px;
}

.shell {
  width: min(
    var(--content),
    calc(100% - max(var(--gutter), env(safe-area-inset-left)) - max(var(--gutter), env(safe-area-inset-right)))
  );
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: max(12px, env(safe-area-inset-top));
  left: max(12px, env(safe-area-inset-left));
  transform: translateY(-160%);
  padding: 10px 14px;
  color: #fff;
  background: var(--charcoal);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: var(--z-header);
  top: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 68%, transparent);
  background: color-mix(in srgb, var(--paper) 65%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
  backdrop-filter: blur(18px) saturate(1.08);
  padding-top: env(safe-area-inset-top);
}

.header-inner {
  display: grid;
  grid-template-columns: 188px 1fr;
  align-items: center;
  min-height: 70px;
  gap: clamp(18px, 2.2vw, 30px);
}

.brand {
  display: block;
  width: 188px;
  max-width: 100%;
}

.brand img { display: block; width: 100%; height: auto; }

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 1.8vw, 28px);
}

.primary-nav a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  background: var(--orange);
  content: '';
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 190ms var(--ease);
}

.primary-nav a:hover::after,
.primary-nav a[aria-current='page']::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta,
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--orange-button);
  background: var(--orange-button);
  color: #fff;
  padding: 9px 17px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, opacity 180ms ease;
}

.site-header .primary-nav .header-cta {
  min-height: 44px;
  border: 1px solid var(--orange-button);
  background: var(--orange-button);
  color: #fff;
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.site-header .primary-nav .header-cta::after { display: none; }
.site-header .primary-nav .header-cta:hover,
.button:hover { border-color: var(--orange-button-hover); background: var(--orange-button-hover); color: #fff; }
.site-header .primary-nav .header-cta:active,
.button:active { opacity: .84; }

.button.secondary { border-color: var(--ink); background: transparent; color: var(--ink); }
.button.secondary:hover { background: var(--ink); color: var(--paper); }
.button.light { border-color: #fff; background: #fff; color: #262625; }
.button.light:hover { border-color: #ebe6dd; background: #ebe6dd; }
.button.small { min-height: 40px; margin-top: 12px; padding: 7px 13px; font-size: 13px; }

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 21px;
  height: 2px;
  background: var(--ink);
  content: '';
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-icon { position: relative; }
.menu-icon::before { position: absolute; top: -7px; }
.menu-icon::after { position: absolute; top: 7px; }
.menu-toggle[aria-expanded='true'] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded='true'] .menu-icon::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] .menu-icon::after { transform: translateY(-7px) rotate(-45deg); }

.page-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.page-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
}

main { overflow: clip; }
@supports not (overflow: clip) { main { overflow: hidden; } }

.hero {
  position: relative;
  min-height: min(600px, calc(100svh - 70px));
  display: grid;
  align-items: stretch;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: stretch;
}

.hero-copy {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px clamp(32px, 5vw, 68px) 70px 0;
}

.eyebrow {
  color: var(--orange-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .035em;
}

.feature-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.feature-copy .eyebrow::before {
  width: 24px;
  height: 2px;
  flex: 0 0 24px;
  border-radius: 999px;
  background: var(--orange);
  content: '';
  transform: translateY(1px);
}

.hero h1,
.page-hero h1,
.section-title {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -.052em;
}

.hero h1 {
  max-width: 600px;
  margin-top: 21px;
  font-size: clamp(39px, 4.1vw, 56px);
  line-height: 1.2;
}

.hero h1 strong { color: var(--orange); font-weight: inherit; }

.hero-lead {
  max-width: 610px;
  margin: 24px 0 0;
  color: var(--body);
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.78;
}

.hero-actions,
.section-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.hero-media {
  position: relative;
  min-height: 560px;
  margin: 0;
  overflow: hidden;
  background: var(--concrete);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 650ms var(--ease);
}

@media (hover: hover) and (pointer: fine) { .hero-media:hover img { transform: scale(1.02); } }

.hero-media figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 7px 10px;
  background: rgba(38, 38, 37, .78);
  color: rgba(255, 255, 255, .9);
  font-size: 12px;
}

.fact-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact { min-height: 94px; padding: 19px 24px; border-right: 1px solid var(--line); }
.fact:first-child { padding-left: 0; }
.fact:last-child { border-right: 0; }
.fact b { display: block; color: var(--ink); font-size: 16px; font-weight: 700; }
.fact span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }

.section { padding-block: var(--section); }
.section.concrete { background: var(--concrete); }
.section.charcoal { background: var(--charcoal); color: #fff; }

.section-head {
  display: grid;
  grid-template-columns: minmax(220px, .34fr) minmax(0, 1fr);
  gap: clamp(34px, 7vw, 100px);
  align-items: start;
  margin-bottom: var(--section-gap);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--orange-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.section-kicker::before {
  width: 26px;
  height: 2px;
  flex: 0 0 26px;
  border-radius: 999px;
  background: var(--orange);
  content: '';
  transform: translateY(1px);
}

.section-head.slogan-head { grid-template-columns: 1fr; gap: 16px; }
.section-head.slogan-head > div:last-child { max-width: 1060px; }
.section-title { max-width: 940px; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.28; }
.section-copy { max-width: 780px; margin: 20px 0 0; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.82; }
.section-copy.compact-copy { margin-top: 12px; font-size: 15px; }
.charcoal .section-title { color: #fff; }
.charcoal .section-copy { color: rgba(255, 255, 255, .76); }
.charcoal .section-kicker { color: #ffad68; }

.split-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: clamp(34px, 5.5vw, 68px);
  align-items: center;
}

.split-feature.reverse { grid-template-columns: minmax(320px, .92fr) minmax(0, 1.08fr); }
.split-feature.reverse .feature-media { order: 2; }
.diagnosis-feature { grid-template-columns: minmax(0, .88fr) minmax(500px, 1.12fr); gap: clamp(34px, 4.8vw, 60px); }

.feature-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--media-mat);
  box-shadow: var(--shadow);
}

.feature-media img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 520ms var(--ease); }
.feature-media.company-media img { aspect-ratio: 16 / 9; object-position: center; }
@media (hover: hover) and (pointer: fine) { .feature-media:hover img { transform: scale(1.016); } }

.feature-media .caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 36px 18px 14px;
  background: linear-gradient(transparent, rgba(22, 22, 21, .82));
  color: rgba(255, 255, 255, .92);
  font-size: 12px;
}

.feature-copy h2,
.feature-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 2.8vw, 38px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -.045em;
}

.feature-copy .feature-title { margin-top: 16px; }
.diagnosis-feature .diagnosis-title { font-size: clamp(27px, 2.1vw, 31px); }
.diagnosis-title span { display: block; }

@media (min-width: 640px) {
  .diagnosis-title span:last-child { white-space: nowrap; }
}
.feature-copy > p { margin: 18px 0 0; font-size: 16px; line-height: 1.82; }

.condition-list,
.service-index,
.proof-list,
.process-list { margin-top: 28px; padding: 0; border-top: 1px solid var(--line); }

.condition-list li {
  display: grid;
  grid-template-columns: minmax(190px, .55fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.condition-list b,
.service-index b,
.proof-list b { color: var(--ink); font-weight: 700; }
.condition-list span,
.service-index span,
.proof-list span { color: var(--muted); font-size: 15px; }

.service-index a {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(210px, .52fr) minmax(0, 1fr) 24px;
  gap: 22px;
  align-items: start;
  min-height: 72px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 180ms ease;
}

.service-index a:hover { background: var(--orange-soft); }
.service-index .number { color: var(--orange-text); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.service-index .arrow { color: var(--orange-text); font-size: 21px; line-height: 1.2; text-align: right; }

.process-list { counter-reset: process; }
.process-list li {
  display: grid;
  grid-template-columns: 64px minmax(210px, .42fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  min-height: 72px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  list-style: none;
  counter-increment: process;
}

.process-list li::before { color: var(--orange-text); content: counter(process, decimal-leading-zero); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.process-list b { color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.55; }
.process-list p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.68; }

.proof-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.proof-strip figure { min-width: 0; margin: 0; }
.proof-media { display: grid; aspect-ratio: 1.82; place-items: center; overflow: hidden; background: var(--media-mat); }
.proof-strip img { width: 100%; height: 100%; object-fit: contain; transition: transform 360ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .proof-strip figure:hover img { transform: scale(1.018); } }
.proof-strip figcaption { padding: 11px 2px 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.statement {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  gap: clamp(48px, 9vw, 120px);
  align-items: end;
}

.statement blockquote { margin: 0; color: #fff; font-size: clamp(31px, 4.1vw, 52px); font-weight: 500; line-height: 1.32; letter-spacing: -.048em; }
.statement aside { border-top: 1px solid rgba(255, 255, 255, .3); padding-top: 22px; }
.statement aside p { margin: 0; color: rgba(255, 255, 255, .75); }

.page-hero { padding: clamp(68px, 7.5vw, 96px) 0 clamp(58px, 6.5vw, 82px); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(320px, .56fr); gap: clamp(42px, 6.5vw, 86px); align-items: end; }
.page-hero h1 { margin-top: 17px; font-size: clamp(38px, 4.5vw, 56px); line-height: 1.18; }
.page-hero p { margin: 0 0 4px; font-size: 17px; line-height: 1.82; }

.subnav { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.subnav .shell { display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; }
.subnav .shell::-webkit-scrollbar { display: none; }
.subnav a { min-height: 50px; display: inline-flex; align-items: center; color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.subnav a:hover { color: var(--orange-text); }

.scope-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.scope-card { position: relative; isolation: isolate; min-height: 300px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--orange) 38%, var(--line)); background: var(--surface); }
.scope-card::before { position: absolute; z-index: 1; inset: 0; background: linear-gradient(145deg, rgba(224, 114, 5, .19), rgba(224, 114, 5, .07)); content: ''; pointer-events: none; }
.scope-card::after { position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, rgba(22, 21, 20, .2), rgba(22, 21, 20, .9)); content: ''; opacity: 0; pointer-events: none; transition: opacity 230ms ease; }
.scope-visual { position: absolute; inset: 0; }
.scope-image { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.025); transition: opacity 230ms ease, transform 360ms var(--ease); }
.scope-content { position: relative; z-index: 2; min-height: 300px; display: flex; flex-direction: column; padding: clamp(25px, 3.2vw, 34px); }
.scope-card .tag { color: var(--orange-text); font-size: 13px; font-weight: 700; }
.scope-card h3 { max-width: 480px; margin: 15px 0 0; color: var(--ink); font-size: clamp(22px, 2.1vw, 28px); font-weight: 600; line-height: 1.38; }
.scope-card p { max-width: 500px; margin: 11px 0 0; color: var(--body); font-size: 14px; line-height: 1.72; }
.scope-toggle { min-height: 44px; align-self: flex-start; display: inline-flex; align-items: center; gap: 12px; margin-top: auto; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--orange-text); padding: 12px 0 8px; cursor: pointer; font-size: 13px; font-weight: 700; }
.scope-toggle::after { width: 20px; height: 2px; background: currentColor; content: ''; }
.scope-image-label { position: absolute; z-index: 3; right: 18px; bottom: 16px; color: rgba(255, 255, 255, .74); font-size: 11px; opacity: 0; pointer-events: none; transition: opacity 180ms ease; }

@media (hover: hover) and (pointer: fine) {
  .scope-card:hover .scope-image { opacity: 1; transform: scale(1); }
  .scope-card:hover::after { opacity: 1; }
  .scope-card:hover .scope-content { color: #fff; }
  .scope-card:hover .tag,
  .scope-card:hover h3,
  .scope-card:hover p,
  .scope-card:hover .scope-toggle { color: #fff; }
  .scope-card:hover .scope-image-label { opacity: 1; }
}

.scope-card.is-open .scope-image { opacity: 1; transform: scale(1); }
.scope-card.is-open::after { opacity: 1; }
.scope-card.is-open .scope-content,
.scope-card.is-open .tag,
.scope-card.is-open h3,
.scope-card.is-open p,
.scope-card.is-open .scope-toggle { color: #fff; }
.scope-card.is-open .scope-image-label { opacity: 1; }

.case-grid { display: grid; max-width: 960px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3.2vw, 36px); }
.case { min-width: 0; margin: 0; border-top: 3px solid var(--orange); background: var(--surface); box-shadow: 0 14px 36px rgba(38, 38, 37, .07); }
.case-media { display: grid; aspect-ratio: 1.82; place-items: center; overflow: hidden; background: var(--media-mat); padding: 14px; }
.case img { width: 100%; height: 100%; object-fit: contain; transition: transform 360ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .case:hover img { transform: scale(1.015); } }
.case figcaption { padding: 18px 20px 21px; }
.case .case-type { color: var(--orange-text); font-size: 13px; font-weight: 700; }
.case h3 { margin: 7px 0 0; color: var(--ink); font-size: 20px; font-weight: 600; }
.case p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.72; }

.history-line { display: grid; grid-template-columns: minmax(220px, .34fr) minmax(0, 1fr); gap: clamp(34px, 7vw, 100px); padding: 21px 0; border-top: 1px solid var(--line); }
.history-line:last-child { border-bottom: 1px solid var(--line); }
.history-line time { color: var(--orange-text); font-weight: 700; font-variant-numeric: tabular-nums; }
.history-line b { display: block; color: var(--ink); font-size: 17px; }
.history-line p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

.proof-list li { display: grid; grid-template-columns: minmax(210px, .34fr) minmax(0, 1fr); gap: 24px; align-items: start; padding: 17px 0; border-bottom: 1px solid var(--line); list-style: none; }
.evidence-list .evidence-download { background: var(--charcoal); color: #fff; border-bottom-color: var(--charcoal); }
.evidence-list .evidence-download b { color: #fff; }
.evidence-list .evidence-download span { color: rgba(255, 255, 255, .76); }
.evidence-list .evidence-download .button { display: flex; width: max-content; color: #262625; }

.contact-layout { display: grid; grid-template-columns: minmax(270px, .68fr) minmax(0, 1.32fr); gap: clamp(48px, 6vw, 76px); align-items: start; }
.contact-aside { position: sticky; top: 112px; }
.contact-aside h2 { margin: 12px 0 0; color: var(--ink); font-size: clamp(32px, 3.2vw, 43px); font-weight: 600; line-height: 1.28; letter-spacing: -.04em; }
.contact-aside p { margin: 17px 0 0; }
.contact-channel { margin-top: 24px; padding-top: 17px; border-top: 1px solid var(--line); }
.contact-channel b { display: block; color: var(--ink); }
.contact-channel span { color: var(--muted); font-size: 15px; }

.kakao-banner {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--orange) 36%, var(--line));
  background: color-mix(in srgb, var(--surface) 82%, var(--orange-soft));
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms var(--ease);
}

.kakao-banner img { width: 50px; height: 50px; object-fit: contain; }
.kakao-banner-copy { min-width: 0; }
.kakao-banner-copy b { display: block; color: var(--ink); font-size: 15px; }
.kakao-banner-copy span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.kakao-banner-arrow { color: var(--orange-text); font-size: 18px; }
.kakao-banner[aria-disabled='true'] { cursor: default; }
.footer-nav [data-kakao-channel][aria-disabled='true'] { cursor: default; }

@media (hover: hover) and (pointer: fine) {
  .kakao-banner:not([aria-disabled='true']):hover {
    border-color: var(--orange);
    background: var(--orange-soft);
    transform: translateY(-2px);
  }
}

.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field.full { grid-column: 1 / -1; }
.field > label,
.fieldset-title { display: block; margin-bottom: 8px; color: var(--ink); font-size: 14px; font-weight: 700; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  padding: 9px 12px;
  font-size: 14px;
  box-shadow: none;
}

.field select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url('chevron-orange.svg');
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 14px 8px;
  padding-right: 38px;
}

.field textarea { min-height: 112px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: color-mix(in srgb, var(--muted) 76%, transparent); }
.field small { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.choice-field { margin: 0; padding: 0; border: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px 24px; min-height: 44px; align-items: center; }
.choice { min-height: 44px; display: inline-flex; align-items: center; gap: 11px; margin: 0; color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.45; }
.choice input { width: 18px; min-height: 18px; height: 18px; flex: 0 0 18px; align-self: center; margin: 0; padding: 0; accent-color: var(--orange); }
.choice span { display: block; }
.file-field input[type='file'] { min-height: 50px; padding: 7px; }
.file-field input[type='file']::file-selector-button { min-height: 34px; margin-right: 12px; border: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); padding: 6px 12px; cursor: pointer; font-size: 13px; font-weight: 700; }

.privacy-box { padding: 15px 17px; border: 1px solid var(--line); background: var(--concrete); }
.privacy-disclosure { border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.privacy-disclosure summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--orange-text); cursor: pointer; list-style: none; }
.privacy-disclosure summary::-webkit-details-marker { display: none; }
.privacy-disclosure summary strong { color: var(--ink); font-size: 14px; }
.privacy-disclosure summary img { width: 22px; height: 12px; flex: 0 0 auto; transition: transform 180ms ease; }
.privacy-disclosure[open] summary img { transform: rotate(180deg); }
.privacy-body { padding: 0 0 16px; }
.privacy-body p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.72; }
.field label.consent-row { min-height: 44px; display: flex; align-items: flex-start; gap: 10px; margin: 0; }
.consent-row input { width: 18px; min-height: 18px; height: 18px; flex: 0 0 18px; margin: 3px 0 0; padding: 0; accent-color: var(--orange); }
.consent-row span { line-height: 1.6; }
.form-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.form-status { min-height: 24px; margin: 0; color: var(--orange-text); font-size: 14px; font-weight: 600; }
.button:disabled { cursor: not-allowed; opacity: .54; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--ink); cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { color: var(--orange-text); content: '+'; font-size: 23px; font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq details p { max-width: 840px; margin: 0 0 25px; color: var(--muted); }

.cta-band { padding: clamp(58px, 6.5vw, 78px) 0; background: var(--orange); color: #fff; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-band h2 { max-width: 760px; margin: 0; color: #fff; font-size: clamp(29px, 3.4vw, 42px); font-weight: 600; line-height: 1.34; letter-spacing: -.04em; }
.cta-band .button:focus-visible { outline-color: #262625; }

.site-footer { border-top: 1px solid #d1cbc1; background: #ece9e2; color: #666159; padding-bottom: env(safe-area-inset-bottom); }
.footer-main { display: grid; grid-template-columns: minmax(250px, 1.2fr) repeat(2, minmax(160px, .5fr)); gap: 44px; padding: 52px 0 38px; }
.footer-brand img { width: min(230px, 100%); height: auto; }
.footer-brand p { max-width: 430px; margin: 16px 0 0; font-size: 13px; }
.footer-nav b { display: block; margin-bottom: 12px; color: #262625; font-size: 13px; }
.footer-nav a,
.footer-nav span { display: block; margin-top: 8px; font-size: 13px; }
.footer-nav a:hover { color: #262625; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 0 22px; border-top: 1px solid #d1cbc1; font-size: 12px; }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 480ms ease, transform 480ms var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1120px) {
  html { scroll-padding-top: 78px; }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; min-height: 70px; }
  .brand { width: min(188px, 56vw); }
  .js .menu-toggle { display: inline-flex; }
  .primary-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 4px 18px;
    padding-bottom: 12px;
  }
  .js .primary-nav {
    position: fixed;
    z-index: var(--z-menu);
    top: calc(70px + env(safe-area-inset-top));
    right: 0;
    left: 0;
    display: grid;
    max-height: calc(100dvh - 70px - env(safe-area-inset-top));
    align-content: start;
    gap: 0;
    overflow-y: auto;
    border-bottom: 1px solid rgba(93, 88, 80, .2);
    background: rgba(251, 250, 247, .94);
    -webkit-backdrop-filter: blur(18px) saturate(1.08);
    backdrop-filter: blur(18px) saturate(1.08);
    padding: 16px max(var(--gutter), env(safe-area-inset-right)) max(26px, env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    visibility: hidden;
    transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
  }
  .js .primary-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); visibility: visible; transition-delay: 0s; }
  .primary-nav a { min-height: 56px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .primary-nav a::after { display: none; }
  .site-header .primary-nav .header-cta { width: 100%; min-height: 48px; margin-top: 12px; border: 1px solid var(--orange-button); padding: 10px 16px; font-size: 14px; }
  .hero { min-height: 0; }
  .hero-grid { width: 100%; grid-template-columns: 1fr; }
  .hero-copy { width: min(var(--content), calc(100% - max(var(--gutter), env(safe-area-inset-left)) - max(var(--gutter), env(safe-area-inset-right)))); min-height: auto; margin-inline: auto; padding: 64px 0 56px; }
  .hero-media { min-height: 420px; }
  .fact-rail { width: min(var(--content), calc(100% - max(var(--gutter), env(safe-area-inset-left)) - max(var(--gutter), env(safe-area-inset-right)))); margin-inline: auto; }
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .split-feature,
  .split-feature.reverse { grid-template-columns: 1fr; }
  .diagnosis-feature { grid-template-columns: 1fr; }
  .split-feature.reverse .feature-media { order: 0; }
  .statement { grid-template-columns: 1fr; }
  .page-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-aside { position: static; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; --section: 64px; --section-gap: 34px; }
  body { font-size: 16px; }
  .brand { width: min(180px, 62vw); }
  .hero-copy { padding-block: 50px 44px; }
  .hero h1 { font-size: clamp(37px, 10.8vw, 48px); }
  .hero-media { min-height: 300px; }
  .hero-media img { object-position: 60% center; }
  .fact-rail { grid-template-columns: 1fr; }
  .fact { min-height: auto; padding: 16px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .fact:last-child { border-bottom: 0; }
  .condition-list li,
  .proof-list li { grid-template-columns: 1fr; gap: 6px; padding-inline: 0; }
  .service-index a { grid-template-columns: 38px minmax(0, 1fr) 20px; grid-template-rows: auto auto; gap: 6px 10px; padding: 16px 0; }
  .service-index .number { grid-column: 1; grid-row: 1 / span 2; }
  .service-index b { grid-column: 2; grid-row: 1; }
  .service-index a > span:not(.number):not(.arrow) { grid-column: 2 / 4; grid-row: 2; }
  .service-index .arrow { grid-column: 3; grid-row: 1; }
  .process-list li { grid-template-columns: 38px minmax(0, 1fr); gap: 10px; padding: 16px 0; }
  .process-list p { grid-column: 2; }
  .proof-strip { grid-template-columns: 1fr 1fr; gap: 12px; }
  .proof-strip figcaption { font-size: 14px; }
  .scope-grid,
  .case-grid { grid-template-columns: 1fr; }
  .scope-card,
  .scope-content { min-height: 278px; }
  .scope-image-label { right: 16px; bottom: 62px; max-width: calc(100% - 32px); padding: 4px 7px; background: rgba(22, 21, 20, .58); text-align: right; }
  .history-line { grid-template-columns: 1fr; gap: 7px; padding-inline: 0; }
  .contact-form { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .privacy-box { padding: 15px 16px; }
  .cta-band-inner { align-items: flex-start; flex-direction: column; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 430px) {
  .proof-strip { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: clamp(34px, 10vw, 42px); }
  .page-hero p { font-size: 16px; }
  .section-title { font-size: clamp(28px, 8.2vw, 36px); }
  .choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
  .scope-image-label { font-size: 10px; }
}

@media (max-height: 560px) and (orientation: landscape) {
  .primary-nav { max-height: calc(100dvh - 68px - env(safe-area-inset-top)); top: calc(68px + env(safe-area-inset-top)); grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .header-inner { min-height: 68px; }
  .hero-copy { padding-block: 44px; }
  .hero-media { min-height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal,
  .js .reveal { opacity: 1; transform: none; }
  .hero-media img,
  .feature-media img,
  .proof-strip img,
  .case img,
  .scope-image { transform: none !important; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1f1e1c;
    --surface: #292826;
    --concrete: #302e2a;
    --ink: #f2efe8;
    --body: #d3cec5;
    --muted: #aaa49b;
    --line: #4a453f;
    --media-mat: #171614;
    --orange: #e07205;
    --orange-text: #ffad68;
    --orange-button: #9b3a06;
    --orange-button-hover: #7c2c03;
    --orange-soft: rgba(224, 114, 5, .17);
    --charcoal: #181715;
    --shadow: 0 24px 64px rgba(0, 0, 0, .3);
  }
  .site-header { border-bottom-color: rgba(38, 38, 37, .16); background: rgba(251, 250, 247, .65); }
  .site-header .primary-nav a { border-bottom-color: #d8d3ca; color: #262625; }
  .site-header .menu-toggle { border-color: #d8d3ca; }
  .site-header .menu-icon,
  .site-header .menu-icon::before,
  .site-header .menu-icon::after { background: #262625; }
  .site-header .menu-toggle[aria-expanded='true'] .menu-icon { background: transparent; }
  .site-footer { border-color: #d1cbc1; background: #ece9e2; color: #666159; }
  .footer-nav b { color: #262625; }
  .footer-nav a:hover { color: #262625; }
  .footer-bottom { border-top-color: #d1cbc1; }
  .scope-card { border-color: rgba(224, 114, 5, .34); }
  .scope-card::before { background: linear-gradient(145deg, rgba(224, 114, 5, .21), rgba(224, 114, 5, .08)); }
  .case { box-shadow: 0 14px 36px rgba(0, 0, 0, .22); }
}
