:root {
  color-scheme: light dark;
  --page: #f1f3ef;
  --surface: #fbfcf8;
  --surface-soft: #e5ebe6;
  --conversation: #f6f1e7;
  --conversation-line: rgba(82, 67, 45, 0.18);
  --ink: #17211e;
  --muted: #5a6661;
  --line: rgba(23, 33, 30, 0.16);
  --forest: #193f33;
  --forest-deep: #123027;
  --accent: #b94730;
  --on-forest: #f7f9f5;
  --shadow: 0 28px 70px rgba(28, 53, 44, 0.13);
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --radius: 18px;
  --control-radius: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #121916;
    --surface: #19231f;
    --surface-soft: #202d27;
    --conversation: #202822;
    --conversation-line: rgba(237, 242, 238, 0.14);
    --ink: #edf2ee;
    --muted: #aeb9b4;
    --line: rgba(237, 242, 238, 0.15);
    --forest: #245747;
    --forest-deep: #1b4437;
    --accent: #e17558;
    --on-forest: #f5f8f5;
    --shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  }
}

html[data-theme="dark"] {
  --page: #121916;
  --surface: #19231f;
  --surface-soft: #202d27;
  --conversation: #202822;
  --conversation-line: rgba(237, 242, 238, 0.14);
  --ink: #edf2ee;
  --muted: #aeb9b4;
  --line: rgba(237, 242, 238, 0.15);
  --forest: #245747;
  --forest-deep: #1b4437;
  --accent: #e17558;
  --on-forest: #f5f8f5;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

html[data-theme="light"] {
  --page: #f1f3ef;
  --surface: #fbfcf8;
  --surface-soft: #e5ebe6;
  --conversation: #f6f1e7;
  --conversation-line: rgba(82, 67, 45, 0.18);
  --ink: #17211e;
  --muted: #5a6661;
  --line: rgba(23, 33, 30, 0.16);
  --forest: #193f33;
  --forest-deep: #123027;
  --accent: #b94730;
  --on-forest: #f7f9f5;
  --shadow: 0 28px 70px rgba(28, 53, 44, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
body.modal-open { overflow: hidden; }

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: var(--control-radius);
  background: var(--ink);
  color: var(--page);
  padding: 9px 14px;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.page-shell {
  width: min(1180px, calc(100% - 56px));
  margin-inline: auto;
}

h1, h2, h3, p { text-wrap: pretty; }
h1, h2, .about-name, .service-price strong {
  font-family: var(--serif);
}

.button {
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: var(--control-radius);
  padding: 13px 22px;
  cursor: pointer;
  font-weight: 680;
  line-height: 1.25;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button-primary { background: var(--forest); color: var(--on-forest); }
.button-primary:hover { background: var(--forest-deep); }
.button-secondary, .button-outline {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}
.button-secondary:hover, .button-outline:hover { border-color: var(--ink); }
.button-light { background: var(--on-forest); color: #143128; }
.button-light:hover { background: #eef3ef; }
.button-forest-ghost {
  border-color: rgba(247, 249, 245, 0.38);
  background: transparent;
  color: var(--on-forest);
}
.button-forest-ghost:hover { border-color: var(--on-forest); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: clamp(44px, 6vw, 84px);
  align-items: center;
  min-height: 100dvh;
  padding-block: clamp(44px, 7vw, 88px);
}
.hero-copy { max-width: 680px; }
.hero-kicker, .modal-kicker {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.1em;
}
.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(52px, 5.2vw, 68px);
  font-weight: 590;
  line-height: 1.08;
  letter-spacing: -0.055em;
}
.hero-lead {
  max-width: 34em;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 20px);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.hero-media {
  position: relative;
  height: min(72dvh, 680px);
  min-height: 520px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: inherit;
  pointer-events: none;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-copy {
  max-width: 830px;
}
.section-copy h2, .about-copy h2 {
  margin: 0;
  font-size: clamp(40px, 4.7vw, 60px);
  font-weight: 590;
  line-height: 1.13;
  letter-spacing: -0.045em;
}
.section-copy > p, .about-copy > p {
  max-width: 42em;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.tension {
  padding-block: 116px 128px;
}
.tension-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
  gap: 22px;
  margin-top: 58px;
}
.tension-primary {
  display: flex;
  min-height: 440px;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: var(--radius);
  background: var(--forest);
  color: var(--on-forest);
  padding: clamp(30px, 4vw, 52px);
}
.tension-primary p {
  margin: 0 0 18px;
  color: rgba(247, 249, 245, 0.67);
  font-size: 13px;
}
.tension-primary h3 {
  max-width: 18em;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(31px, 3.3vw, 46px);
  font-weight: 560;
  line-height: 1.28;
}
.tension-list {
  display: grid;
  align-content: stretch;
  border-radius: var(--radius);
  background: var(--surface);
  padding: 10px 34px;
}
.tension-list article {
  display: grid;
  align-content: center;
  min-height: 140px;
  border-bottom: 1px solid var(--line);
  padding-block: 24px;
}
.tension-list article:last-child { border-bottom: 0; }
.tension-list h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 590;
}
.tension-list p {
  margin: 8px 0 0;
  color: var(--muted);
}

.method {
  padding-block: 110px;
  border-top: 1px solid var(--line);
}
.method-intro { max-width: 760px; }
.method-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 70px 0 0;
  padding: 0;
  list-style: none;
}
.method-track li {
  min-height: 280px;
  border-left: 1px solid var(--line);
  padding: 10px 28px 24px;
}
.method-track li:first-child { border-left: 0; padding-left: 0; }
.method-track li:last-child { padding-right: 0; }
.method-key {
  display: block;
  margin-bottom: 66px;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 32px;
}
.method-track h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 590;
  line-height: 1.35;
}
.method-track p {
  margin: 12px 0 0;
  color: var(--muted);
}

.cases {
  padding-block: 118px;
  background: var(--surface-soft);
}
.case-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  margin-top: 58px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
}
.case-featured > img {
  width: 100%;
  height: 100%;
  min-height: 530px;
  object-fit: cover;
}
.case-featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5vw, 60px);
}
.case-type {
  margin: 0 0 24px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 720;
}
.case-featured h3, .case-secondary h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 590;
  line-height: 1.27;
}
.case-featured h3 { font-size: clamp(34px, 3.8vw, 48px); }
.case-featured-copy > p:not(.case-type) {
  margin: 24px 0 0;
  color: var(--muted);
}
.case-featured strong, .case-secondary strong {
  display: block;
  color: var(--forest);
  font-size: 14px;
  line-height: 1.6;
}
.case-featured strong { margin-top: 32px; }
.case-secondary {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 18px;
  margin-top: 18px;
}
.case-secondary article {
  min-height: 360px;
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(30px, 4vw, 48px);
}
.case-secondary article:last-child {
  background: var(--forest);
  color: var(--on-forest);
}
.case-secondary h3 {
  max-width: 16em;
  font-size: clamp(29px, 3vw, 39px);
}
.case-secondary article > p:not(.case-type) {
  margin: 22px 0 0;
  color: var(--muted);
}
.case-secondary strong { margin-top: 46px; }
.case-secondary article:last-child .case-type { color: #f2a28d; }
.case-secondary article:last-child > p:not(.case-type) { color: rgba(247, 249, 245, 0.68); }
.case-secondary article:last-child strong { color: var(--on-forest); }

.about {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(54px, 8vw, 110px);
  align-items: stretch;
  padding-block: 126px;
}
.about-name {
  display: grid;
  min-height: 500px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--forest);
  color: var(--on-forest);
}
.about-name span {
  font-size: clamp(62px, 7vw, 92px);
  letter-spacing: 0.08em;
}
.about-copy {
  align-self: center;
}
.about-copy h2 { max-width: 15em; }
.about blockquote {
  max-width: 28em;
  margin: 40px 0 0;
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 24px;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.55;
}

.services {
  padding-block: 116px;
  border-top: 1px solid var(--line);
}
.services-heading { max-width: 720px; }
.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(330px, 0.76fr);
  gap: 18px;
  margin-top: 58px;
}
.service-consult, .service-chat {
  display: flex;
  min-height: 590px;
  flex-direction: column;
  border-radius: var(--radius);
  padding: clamp(30px, 4.2vw, 52px);
}
.service-consult {
  background: var(--forest);
  color: var(--on-forest);
}
.service-chat {
  border: 1px solid var(--line);
  background: var(--surface);
}
.service-price span {
  display: block;
  margin-bottom: 18px;
  color: rgba(247, 249, 245, 0.65);
  font-size: 13px;
  font-weight: 700;
}
.service-price strong {
  display: block;
  font-size: clamp(48px, 5vw, 66px);
  font-weight: 560;
  line-height: 1;
}
.service-price small {
  display: block;
  margin-top: 14px;
  color: rgba(247, 249, 245, 0.68);
}
.service-delivery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 48px 0 38px;
}
.service-delivery div {
  border-top: 1px solid rgba(247, 249, 245, 0.22);
  padding-top: 20px;
}
.service-delivery h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 590;
}
.service-delivery p {
  margin: 10px 0 0;
  color: rgba(247, 249, 245, 0.68);
  font-size: 14px;
}
.service-consult .button { width: 100%; margin-top: auto; }
.service-chat {
  position: relative;
  overflow: hidden;
  border-color: var(--conversation-line);
  background: var(--conversation);
}
.service-chat::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
  content: "";
}
.service-chat-heading > span {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.08em;
}
.service-chat-heading h3 {
  max-width: 8em;
  margin: 28px 0 0;
  font-family: var(--serif);
  font-size: clamp(40px, 4.2vw, 56px);
  font-weight: 560;
  line-height: 1.12;
  letter-spacing: -0.04em;
}
.service-chat-heading p {
  max-width: 25em;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}
.service-chat-note {
  margin-top: auto;
  border-top: 1px solid var(--conversation-line);
  padding-top: 24px;
}
.service-chat-note span {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
}
.service-chat-note p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.service-chat-actions { margin-top: 28px; }
.service-chat-actions small {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
}
.button-chat-entry {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--page);
  font-weight: 640;
}
.button-chat-entry:hover { background: var(--forest); }
.payment-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 30px;
  align-items: end;
  border-top: 1px solid var(--line);
  padding-block: 34px 44px;
  color: var(--muted);
  font-size: 11px;
}
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
}
.footer-brand span { margin-top: 3px; }
.site-footer p { margin: 0; }

.mobile-dock { display: none; }

.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 17, 13, 0.62);
  backdrop-filter: blur(14px);
}
.modal-panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(880px, calc(100dvh - 40px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--page);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.34);
}
.modal-panel:focus { outline: 0; }
.ai-panel {
  width: min(760px, 100%);
  overflow: hidden;
  border-color: var(--conversation-line);
  border-radius: 24px;
  background: var(--conversation);
}
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 28px 20px;
  border-bottom: 1px solid var(--line);
}
.modal-kicker { margin-bottom: 5px; }
.modal-header h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 590;
}
.ai-modal-header {
  align-items: center;
  border-bottom-color: var(--conversation-line);
  padding: 24px 30px 22px;
}
.ai-title-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ai-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--on-forest);
  font-family: var(--serif);
  font-size: 20px;
}
.ai-modal-header .modal-kicker {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}
.ai-modal-header h2 { font-size: 27px; letter-spacing: -0.025em; }
.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: transparent;
  cursor: pointer;
  font-size: 24px;
}
.ai-modal-header .icon-button {
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface-soft) 82%, transparent);
  color: var(--muted);
}
.ai-body {
  min-height: 470px;
  padding: 30px;
  background: color-mix(in srgb, var(--surface) 58%, var(--conversation));
}
.free-chat { display: grid; gap: 0; }
.chat-thread {
  display: grid;
  align-content: start;
  gap: 24px;
  max-height: 430px;
  overflow-y: auto;
  padding: 4px 4px 18px;
  scrollbar-color: var(--conversation-line) transparent;
}
.chat-message {
  width: fit-content;
  max-width: 82%;
}
.chat-message p {
  margin: 5px 0 0;
  color: inherit;
  font-size: 15px;
  line-height: 1.78;
  white-space: pre-wrap;
}
.chat-speaker {
  display: block;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.chat-mode {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 9px;
}
.chat-message-user {
  justify-self: end;
  border: 1px solid var(--conversation-line);
  border-radius: 16px 16px 4px 16px;
  background: color-mix(in srgb, var(--surface-soft) 72%, var(--surface));
  padding: 12px 15px;
}
.chat-message-user .chat-speaker { color: var(--muted); text-align: right; }
.chat-message-assistant {
  position: relative;
  width: 100%;
  max-width: 94%;
  justify-self: start;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0 0 0 18px;
}
.chat-message-assistant::before {
  position: absolute;
  inset: 3px auto 3px 0;
  width: 2px;
  background: var(--accent);
  content: "";
}
.chat-message-assistant p { font-size: 15.5px; }
.chat-rich-text { margin-top: 6px; }
.chat-rich-text p { margin: 0; }
.chat-rich-text p + p,
.chat-rich-text ol + p,
.chat-rich-text ul + p,
.chat-rich-text h4 + p { margin-top: 18px; }
.chat-rich-text h4 {
  margin: 20px 0 8px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 590;
}
.chat-rich-text h4:first-child { margin-top: 0; }
.chat-rich-text ol,
.chat-rich-text ul {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding-left: 1.4em;
}
.chat-rich-text li {
  padding-left: 4px;
  font-size: 15px;
  line-height: 1.72;
}
.chat-rich-text li::marker { color: var(--accent); font-weight: 700; }
.chat-rich-text strong { color: var(--ink); font-weight: 720; }
.chat-rich-text code {
  border-radius: 4px;
  background: var(--surface-soft);
  padding: 1px 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}
.chat-rich-text .chat-source {
  margin-top: 22px;
  border-top: 1px solid var(--conversation-line);
  padding-top: 13px;
  color: var(--muted);
  font-size: 12px;
}
.chat-typing { color: var(--muted); }
.chat-composer {
  margin-top: 18px;
  border: 1px solid var(--conversation-line);
  border-radius: 18px;
  background: var(--surface);
  padding: 8px;
  box-shadow: 0 12px 34px rgba(31, 48, 41, 0.07);
}
.chat-composer:focus-within {
  border-color: color-mix(in srgb, var(--forest) 62%, transparent);
  box-shadow: 0 14px 38px rgba(31, 48, 41, 0.11);
}
.chat-composer textarea {
  min-height: 84px;
  margin: 0;
  border: 0;
  background: transparent;
  padding: 10px 11px 6px;
  outline: 0;
}
.chat-composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 4px;
  padding: 0 2px 2px 11px;
}
.chat-composer-foot > span { color: var(--muted); font-size: 11px; }
.chat-send {
  display: inline-flex;
  min-width: 108px;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-radius: 13px;
  background: var(--forest);
  color: var(--on-forest);
  padding: 10px 14px 10px 17px;
}
.chat-send:hover { background: var(--forest-deep); }
.chat-send > span:first-child { color: var(--on-forest); font-size: 13px; }
.chat-send > span:last-child { color: rgba(247, 249, 245, 0.72); font-size: 16px; }
.chat-error {
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: var(--control-radius);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  padding: 13px 15px;
}
.chat-error button {
  margin-left: 8px;
  border: 0;
  background: transparent;
  color: var(--forest);
  cursor: pointer;
  font-weight: 700;
}
.ai-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--conversation-line);
  background: var(--conversation);
  padding: 13px 30px 16px;
}
.ai-footer p { margin: 0; color: var(--muted); font-size: 11px; }
.chat-reset {
  flex: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  text-decoration: none;
}
.chat-reset:hover { color: var(--ink); }

.booking-panel form { padding: 26px 28px 30px; }
.form-section + .form-section {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.form-section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}
.form-section-head span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}
.form-section-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 590;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid label, .consent {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.form-grid .full { grid-column: 1 / -1; }
input, textarea, select {
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: var(--surface);
  padding: 12px 13px;
  color: var(--ink);
}
textarea { resize: vertical; }
::placeholder { color: color-mix(in srgb, var(--muted) 76%, transparent); }
.code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  gap: 9px;
  margin-top: 7px;
}
.code-row input { margin-top: 0; }
.code-row button {
  min-width: 112px;
  border: 1px solid var(--forest);
  border-radius: var(--control-radius);
  background: transparent;
  color: var(--forest);
  cursor: pointer;
  font-weight: 700;
}
.field-status {
  min-height: 18px;
  margin: -6px 0 0;
  color: var(--accent);
  font-size: 12px;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 20px 0;
  font-weight: 400;
}
.consent input { width: 17px; height: 17px; margin: 2px 0 0; }
.full-button { width: 100%; }
.form-result { margin-top: 16px; color: var(--forest); font-size: 13px; }

@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
    gap: 34px;
  }
  .hero h1 { font-size: 50px; }
  .tension-layout, .case-featured, .about, .service-layout {
    grid-template-columns: 1fr;
  }
  .case-featured > img { min-height: 420px; }
  .about-name { min-height: 300px; }
  .service-consult, .service-chat { min-height: auto; }
  .site-footer { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 720px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .page-shell { width: min(100% - 32px, 1180px); }
  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
    min-height: auto;
    padding-block: 24px 54px;
  }
  .hero-copy { max-width: none; }
  .hero-kicker { margin-bottom: 14px; font-size: 10px; letter-spacing: 0.08em; }
  .hero h1 {
    max-width: 10em;
    font-size: clamp(36px, 10.2vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.045em;
  }
  .hero-lead { margin-top: 18px; font-size: 15px; line-height: 1.72; }
  .hero-actions { display: none; }
  .hero-media {
    height: 252px;
    min-height: 0;
    border-radius: 16px;
  }
  .hero-media img { object-position: center 65%; }

  .section-copy h2, .about-copy h2 {
    font-size: clamp(30px, 8.4vw, 37px);
    line-height: 1.18;
    letter-spacing: -0.035em;
  }
  .section-copy > p, .about-copy > p { margin-top: 16px; font-size: 15px; }
  .tension { padding-block: 62px 68px; }
  .tension-layout { gap: 12px; margin-top: 30px; }
  .tension-primary { min-height: 238px; padding: 26px 22px; border-radius: 16px; }
  .tension-primary p { margin-bottom: 12px; font-size: 12px; }
  .tension-primary h3 { font-size: 25px; line-height: 1.34; }
  .tension-list { border-radius: 16px; padding-inline: 22px; }
  .tension-list article { min-height: 0; padding-block: 20px; }
  .tension-list h3 { font-size: 21px; }
  .tension-list p { margin-top: 6px; font-size: 14px; line-height: 1.65; }

  .method { padding-block: 66px; }
  .method-track {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 34px;
  }
  .method-track li {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    column-gap: 14px;
    min-height: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 21px 0;
  }
  .method-track li:first-child { border-top: 1px solid var(--line); padding: 21px 0; }
  .method-key { grid-row: 1 / span 2; margin: 0; font-size: 26px; line-height: 1.2; }
  .method-track h3 { font-size: 20px; }
  .method-track p { margin-top: 7px; font-size: 14px; line-height: 1.62; }

  .cases { padding-block: 66px; }
  .case-featured { margin-top: 32px; border-radius: 16px; }
  .case-featured > img { min-height: 0; aspect-ratio: 16 / 10; }
  .case-featured-copy { padding: 25px 22px 28px; }
  .case-type { margin-bottom: 15px; }
  .case-featured h3 { font-size: 28px; }
  .case-featured-copy > p:not(.case-type) { margin-top: 16px; font-size: 14px; }
  .case-featured strong { margin-top: 20px; }
  .case-secondary {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 88%;
    gap: 10px;
    margin-top: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }
  .case-secondary::-webkit-scrollbar { display: none; }
  .case-secondary article { min-height: 292px; border-radius: 16px; padding: 26px 22px; scroll-snap-align: start; }
  .case-secondary h3 { font-size: 26px; }
  .case-secondary article > p:not(.case-type) { margin-top: 16px; font-size: 14px; }
  .case-secondary strong { margin-top: 28px; }

  .about { gap: 26px; padding-block: 66px; }
  .about-name { min-height: 132px; border-radius: 16px; place-items: center start; padding-inline: 24px; }
  .about-name span { font-size: 45px; }
  .about blockquote { margin-top: 26px; padding-left: 16px; font-size: 19px; line-height: 1.6; }

  .services { padding-block: 66px; }
  .services-heading { max-width: none; }
  .service-layout { gap: 12px; margin-top: 32px; }
  .service-consult, .service-chat { min-height: auto; border-radius: 16px; padding: 26px 22px; }
  .service-price strong { font-size: 46px; }
  .service-delivery { grid-template-columns: 1fr; gap: 14px; margin-block: 30px 26px; }
  .service-delivery div { padding-top: 14px; }
  .service-delivery h3 { font-size: 19px; }
  .service-delivery p { margin-top: 6px; }
  .service-chat { min-height: 430px; padding: 30px 24px 24px 28px; }
  .service-chat-heading h3 { margin-top: 22px; font-size: 36px; }
  .service-chat-heading p { margin-top: 18px; font-size: 14px; }
  .service-chat-note { margin-top: 50px; padding-top: 20px; }
  .service-chat-actions { margin-top: 24px; }

  .site-footer { gap: 10px; padding-block: 24px 30px; }
  .footer-brand strong { font-size: 20px; }

  .mobile-dock {
    position: fixed;
    inset: auto 0 0;
    z-index: 70;
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 8px;
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--page) 92%, transparent);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    backdrop-filter: blur(18px);
  }
  .mobile-dock .button { min-height: 50px; padding: 11px 12px; }

  .modal {
    place-items: end center;
    padding: max(8px, env(safe-area-inset-top)) 0 0;
  }
  .modal-chat { padding: 0; }
  .modal-panel {
    width: 100%;
    max-height: calc(100dvh - max(8px, env(safe-area-inset-top)));
    overscroll-behavior: contain;
    border-radius: 16px 16px 0 0;
  }
  .ai-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    border: 0;
    border-radius: 0;
  }
  .modal-header {
    position: sticky;
    top: 0;
    z-index: 2;
    align-items: center;
    padding: 17px 16px 13px;
    background: var(--page);
  }
  .ai-modal-header {
    padding: calc(14px + env(safe-area-inset-top)) 18px 15px;
  }
  .ai-title-lockup { gap: 11px; }
  .ai-mark { width: 38px; height: 38px; font-size: 18px; }
  .modal-kicker { margin-bottom: 2px; font-size: 10px; }
  .modal-header h2 { font-size: 24px; }
  .icon-button { width: 44px; height: 44px; }
  .ai-body { min-height: 0; overflow: hidden; padding: 22px 18px 14px; }
  .free-chat { display: flex; height: 100%; min-height: 0; flex-direction: column; }
  .chat-thread { flex: 1; min-height: 0; max-height: none; gap: 22px; padding: 2px 2px 18px; }
  .chat-message { max-width: 86%; }
  .chat-message p { font-size: 14.5px; line-height: 1.76; }
  .chat-message-assistant { width: 100%; max-width: 100%; padding-left: 16px; }
  .chat-message-assistant p { font-size: 15px; }
  .chat-message-user { padding: 11px 13px; }
  .chat-composer { margin-top: 10px; padding: 7px; }
  .chat-composer textarea { min-height: 68px; max-height: 120px; padding: 9px 9px 4px; font-size: 16px; }
  .chat-composer-foot { padding-left: 9px; }
  .chat-send { min-width: 96px; min-height: 46px; }
  .ai-footer { padding: 11px 18px calc(12px + env(safe-area-inset-bottom)); }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .booking-panel form { padding: 20px 16px calc(28px + env(safe-area-inset-bottom)); }
  .form-section + .form-section { margin-top: 24px; padding-top: 22px; }
  .form-section-head { margin-bottom: 14px; }
  .form-grid { gap: 14px; }
  input, textarea, select { min-height: 48px; padding: 12px; font-size: 16px; }
  .code-row { grid-template-columns: minmax(0, 1fr) 108px; }
  .code-row button { min-width: 0; }
  .full-button { min-height: 54px; }
}

@media (max-width: 390px) {
  .hero h1 { font-size: 35px; }
  .page-shell { width: min(100% - 28px, 1180px); }
  .mobile-dock { padding-inline: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
