:root {
  --ink: #111111;
  --ink-soft: #313431;
  --paper: #f1efeb;
  --panel: #fbf9f6;
  --white: #ffffff;
  --orange: #e77716;
  --orange-dark: #b94b00;
  --line: rgba(21, 23, 22, 0.14);
  --muted: #676b67;
  --content: min(1240px, calc(100vw - 80px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #9f3e00;
  outline-offset: 3px;
}

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

.skip-link {
  left: 16px;
  position: fixed;
  top: -100px;
  z-index: 1000;
}

.skip-link:focus {
  background: var(--white);
  padding: 12px 18px;
  top: 12px;
}

.hero {
  background: var(--panel);
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  margin: 18px;
  min-height: calc(100svh - 36px);
  overflow: hidden;
  position: relative;
}

.site-header {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  justify-content: space-between;
  min-height: 88px;
  padding: 18px clamp(28px, 3.2vw, 54px);
  position: relative;
  z-index: 20;
}

.brand {
  width: clamp(208px, 16vw, 252px);
}

.site-header nav {
  align-items: center;
  display: flex;
  gap: clamp(26px, 3vw, 50px);
}

.site-header nav a {
  color: #292b29;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 9px 0;
  position: relative;
}

.site-header nav a::after {
  background: var(--orange);
  bottom: 0;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
  width: 100%;
}

.site-header nav a:hover::after,
.site-header nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.mobile-contact {
  display: none;
}

.hero-layout {
  display: grid;
  flex: 1;
  gap: clamp(10px, 1.5vw, 28px);
  grid-template-columns: minmax(460px, 0.84fr) minmax(560px, 1.16fr);
  min-height: 0;
  padding: 0 clamp(28px, 3.2vw, 54px) clamp(28px, 3vw, 48px);
}

.hero-content {
  align-self: center;
  max-width: 600px;
  padding: 32px 0 64px clamp(8px, 1.8vw, 28px);
  position: relative;
  z-index: 10;
}

.eyebrow,
.section-kicker {
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 0 0 28px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(44px, 3.75vw, 64px);
  font-weight: 690;
  letter-spacing: -0.06em;
  line-height: 1.13;
  margin: 0;
}

.hero h1 span {
  display: block;
  margin-top: 5px;
}

.hero-lede {
  color: #545753;
  font-size: clamp(15px, 1.18vw, 18px);
  letter-spacing: 0.025em;
  line-height: 1.85;
  margin: 30px 0 0;
  max-width: 520px;
}

.hero-steps {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 700;
  gap: 7px;
  letter-spacing: 0.06em;
  margin: 24px 0 0;
}

.hero-steps span {
  align-items: center;
  display: inline-flex;
  gap: 7px;
}

.hero-steps i {
  background: var(--orange);
  border-radius: 50%;
  height: 4px;
  width: 4px;
}

.hero-actions {
  margin-top: 34px;
}

.button {
  align-items: center;
  display: inline-flex;
  font-size: 14px;
  font-weight: 750;
  justify-content: space-between;
  letter-spacing: 0.04em;
}

.button-primary {
  background: var(--orange-dark);
  border-radius: 3px;
  box-shadow: 0 16px 32px rgba(187, 77, 0, 0.13);
  color: white;
  min-width: 206px;
  padding: 17px 20px;
  transition: background 160ms ease, transform 160ms ease;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #9f3e00;
  transform: translateY(-2px);
}

.button-secondary {
  border-bottom: 1px solid var(--ink);
  margin-left: 22px;
  padding: 14px 2px 8px;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--orange);
  color: var(--orange-dark);
}

.regeneration-visual {
  align-self: stretch;
  margin: 0;
  min-height: 610px;
  overflow: visible;
  position: relative;
}

.architectural-rings {
  border: clamp(54px, 6vw, 92px) solid rgba(231, 223, 211, 0.34);
  border-radius: 50%;
  height: clamp(520px, 48vw, 760px);
  pointer-events: none;
  position: absolute;
  right: clamp(-390px, -25vw, -250px);
  top: clamp(-360px, -24vw, -230px);
  width: clamp(520px, 48vw, 760px);
  z-index: -1;
}

.architectural-rings::after {
  border: clamp(38px, 4vw, 62px) solid rgba(255, 255, 255, 0.6);
  border-radius: inherit;
  content: "";
  inset: clamp(54px, 6vw, 92px);
  position: absolute;
}

.regeneration-path {
  height: 100%;
  inset: 0;
  overflow: visible;
  pointer-events: none;
  position: absolute;
  width: 100%;
  z-index: 1;
}

.regeneration-path path {
  fill: none;
  filter: drop-shadow(0 0 10px rgba(231, 119, 22, 0.22));
  stroke: var(--orange);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  stroke-linecap: round;
  stroke-width: 5;
  animation: draw-loop 1.35s cubic-bezier(0.22, 1, 0.36, 1) 180ms forwards;
}

.regeneration-path .path-return {
  opacity: 0.68;
  stroke-width: 3.5;
  animation-delay: 520ms;
}

.regeneration-path-mobile {
  display: none;
}

@keyframes draw-loop {
  to {
    stroke-dashoffset: 0;
  }
}

.product-layer {
  margin: 0;
  opacity: 0;
  position: absolute;
  transform: translateY(18px) scale(0.97);
  z-index: 4;
  animation: reveal-product 720ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.product-layer img {
  height: auto;
  width: 100%;
}

.product-entry img {
  filter: drop-shadow(0 28px 42px rgba(17, 17, 17, 0.16));
}

.product-stripped img {
  filter: grayscale(1) brightness(2.2) contrast(0.52)
    drop-shadow(0 28px 42px rgba(17, 17, 17, 0.13));
}

.product-finished img {
  filter: sepia(0.34) saturate(0.54) hue-rotate(18deg) brightness(1.43) contrast(0.78)
    drop-shadow(0 30px 46px rgba(17, 17, 17, 0.16));
}

.product-layer span {
  bottom: -7px;
  color: rgba(17, 17, 17, 0.66);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
  position: absolute;
  right: 10%;
  white-space: nowrap;
}

.product-entry {
  animation-delay: 300ms;
  left: 31%;
  top: 5%;
  width: clamp(150px, 17vw, 242px);
}

.product-stripped {
  animation-delay: 520ms;
  bottom: 0;
  left: 26%;
  width: clamp(170px, 19vw, 275px);
}

.product-finished {
  animation-delay: 740ms;
  right: -3%;
  top: 29%;
  width: clamp(270px, 31vw, 455px);
}

@keyframes reveal-product {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.loop-node {
  align-items: center;
  color: rgba(17, 17, 17, 0.74);
  display: flex;
  font-size: 11px;
  font-weight: 700;
  gap: 8px;
  letter-spacing: 0.04em;
  opacity: 0;
  position: absolute;
  white-space: nowrap;
  z-index: 6;
  animation: reveal-node 360ms ease forwards;
}

.loop-node i {
  background: var(--orange);
  border: 4px solid rgba(255, 247, 239, 0.94);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(231, 119, 22, 0.34);
  display: block;
  height: 16px;
  width: 16px;
}

.node-inspection { left: 5%; top: 31%; animation-delay: 400ms; }
.node-evaluation { right: 23%; top: 12%; animation-delay: 500ms; }
.node-repair { right: 27%; top: 48%; animation-delay: 600ms; }
.node-regeneration { bottom: 7%; right: 10%; animation-delay: 700ms; }
.node-cleaning { bottom: 1%; left: 50%; animation-delay: 800ms; }
.node-measurement { bottom: 18%; left: 14%; animation-delay: 900ms; }
.node-delivery { left: 2%; top: 57%; animation-delay: 1000ms; }

@keyframes reveal-node {
  from { transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.regeneration-visual figcaption {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.services-section {
  margin: 0 auto;
  padding: clamp(110px, 12vw, 170px) 0;
  width: var(--content);
}

.section-heading {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 70px;
  grid-template-columns: 1.1fr 0.9fr;
  padding-bottom: clamp(48px, 5vw, 72px);
}

.section-heading h2,
.process-preview h2,
.quality-section h2 {
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 660;
  letter-spacing: -0.055em;
  line-height: 1.09;
  margin: 0;
}

.section-heading > p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
  margin: 0 0 4px;
  max-width: 520px;
}

.service-list {
  border-bottom: 1px solid var(--line);
}

.service-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: clamp(20px, 3vw, 48px);
  grid-template-columns: 58px minmax(250px, 0.82fr) minmax(320px, 1fr) 44px;
  min-height: 144px;
  padding: 20px 8px;
  position: relative;
}

.service-row::before {
  background: linear-gradient(90deg, rgba(235, 114, 23, 0.08), transparent 75%);
  content: "";
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 180ms ease;
}

.service-row:hover::before {
  opacity: 1;
}

.service-row > * {
  position: relative;
}

.service-number {
  color: var(--orange);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.service-row h3 {
  font-size: clamp(23px, 2vw, 32px);
  letter-spacing: -0.035em;
  margin: 0;
}

.service-row p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
  margin: 0;
  max-width: 520px;
}

.service-row > a {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  height: 40px;
  justify-content: center;
  transition: background 160ms ease, color 160ms ease;
  width: 40px;
}

.service-row > a:hover,
.service-row > a:focus-visible {
  background: var(--orange);
  color: white;
}

.process-preview {
  background: var(--orange);
  display: grid;
  gap: clamp(70px, 9vw, 150px);
  grid-template-columns: minmax(320px, 0.72fr) minmax(500px, 1fr);
  padding: clamp(100px, 11vw, 150px) max(40px, calc((100vw - 1240px) / 2));
}

.process-intro {
  align-self: start;
  position: sticky;
  top: 48px;
}

.process-preview .section-kicker {
  color: rgba(21, 23, 22, 0.66);
}

.process-intro > p:last-child {
  color: rgba(21, 23, 22, 0.68);
  line-height: 1.9;
  margin: 32px 0 0;
  max-width: 430px;
}

.process-list {
  border-top: 1px solid rgba(21, 23, 22, 0.3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.process-list li {
  align-items: start;
  border-bottom: 1px solid rgba(21, 23, 22, 0.3);
  display: grid;
  gap: 20px;
  grid-template-columns: 50px 92px 1fr;
  min-height: 108px;
  padding: 27px 0 22px;
}

.process-list li > span {
  font-size: 10px;
  letter-spacing: 0.12em;
  padding-top: 6px;
}

.process-list strong {
  font-size: clamp(19px, 1.7vw, 25px);
}

.process-list p {
  color: rgba(21, 23, 22, 0.66);
  font-size: 13px;
  line-height: 1.8;
  margin: 0;
}

.quality-section {
  background: #f7f5f0;
  display: grid;
  gap: clamp(60px, 8vw, 120px);
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  padding: clamp(110px, 12vw, 165px) max(40px, calc((100vw - 1240px) / 2));
}

.quality-copy > p:last-child {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.95;
  margin: 34px 0 0;
  max-width: 620px;
}

.quality-orbit {
  display: none;
}

.quality-section > ul {
  align-self: center;
  border-top: 1px solid var(--line);
  list-style: none;
  margin: 0;
  padding: 0;
}

.quality-section li {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 650;
  grid-template-columns: 48px 1fr;
  min-height: 80px;
}

.quality-section li span {
  color: var(--orange);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.commercial-footer {
  background: #171918;
  color: white;
  min-height: 300px;
}

.footer-main {
  align-items: start;
  display: grid;
  gap: 34px 72px;
  grid-template-columns: minmax(250px, 1fr) minmax(260px, 0.8fr) minmax(360px, 1.25fr);
  margin: 0 auto;
  max-width: 1240px;
  padding: 58px 0 50px;
  width: calc(100% - 80px);
}

.footer-brand {
  align-items: center;
  display: flex;
  gap: 15px;
}

.footer-brand img {
  filter: brightness(0) invert(1);
  width: 42px;
}

.footer-brand div {
  display: grid;
  gap: 5px;
}

.footer-brand strong {
  font-size: 15px;
}

.footer-brand span,
.footer-links,
.footer-legal,
.footer-contact-bar {
  color: #c8cbc7;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.footer-links a {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 5px;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #ffad66;
  text-decoration-color: currentColor;
}

.footer-links {
  display: grid;
  gap: 14px 34px;
  grid-template-columns: repeat(2, minmax(90px, 1fr));
  justify-items: start;
}

.footer-legal {
  display: grid;
  gap: 12px;
  letter-spacing: 0.02em;
  line-height: 1.7;
}

.footer-legal p {
  margin: 0;
}

.footer-contact-bar {
  align-items: center;
  background: #0d0f0e;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  display: flex;
  font-style: normal;
  gap: 48px;
  justify-content: center;
  letter-spacing: 0.03em;
  line-height: 1.6;
  min-height: 76px;
  padding: 16px max(40px, calc((100vw - 1240px) / 2));
}

.footer-contact-bar a,
.footer-contact-bar p {
  align-items: baseline;
  color: #f3f4f2;
  display: flex;
  gap: 12px;
  margin: 0;
  text-decoration: none;
}

.footer-contact-bar span {
  color: #ff9b49;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.footer-contact-bar a:hover,
.footer-contact-bar a:focus-visible {
  color: #ffad66;
}

.inquiry-shell > .commercial-footer {
  border-radius: 24px;
  margin: 18px auto 0;
  max-width: 1240px;
  overflow: hidden;
}

.inquiry-shell > .commercial-footer .footer-main {
  padding-left: clamp(28px, 5vw, 70px);
  padding-right: clamp(28px, 5vw, 70px);
}

.inquiry-shell {
  background: var(--panel);
  min-height: 100svh;
  padding: 18px;
}

.inquiry-frame {
  border: 1px solid var(--line);
  border-radius: 28px;
  margin: 0 auto;
  max-width: 1240px;
  overflow: hidden;
}

.inquiry-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 24px clamp(24px, 4vw, 56px);
}

.inquiry-header img {
  width: clamp(210px, 18vw, 260px);
}

.inquiry-header a:last-child {
  font-size: 13px;
  font-weight: 700;
}

.inquiry-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(520px, 1.28fr);
}

.inquiry-intro {
  background: #ece8e1;
  padding: clamp(48px, 7vw, 92px) clamp(28px, 5vw, 70px);
}

.inquiry-intro h1 {
  font-size: clamp(42px, 3.6vw, 50px);
  letter-spacing: -0.055em;
  line-height: 1.08;
  margin: 0;
}

.inquiry-intro > p:not(.section-kicker) {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
  margin: 28px 0 0;
}

.inquiry-flow {
  border-top: 1px solid rgba(21, 23, 22, 0.15);
  list-style: none;
  margin: 42px 0 0;
  padding: 0;
}

.inquiry-flow li {
  border-bottom: 1px solid rgba(21, 23, 22, 0.15);
  display: grid;
  font-size: 13px;
  gap: 12px;
  grid-template-columns: 32px 1fr;
  line-height: 1.65;
  padding: 15px 0;
}

.inquiry-flow span {
  color: var(--orange-dark);
  font-size: 10px;
  letter-spacing: 0.1em;
  padding-top: 3px;
}

.inquiry-panel {
  padding: clamp(42px, 6vw, 78px) clamp(28px, 5vw, 70px);
}

.inquiry-panel h2 {
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.035em;
  margin: 0 0 12px;
}

.form-note,
.field-help,
.admin-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.form-section {
  border: 0;
  margin: 34px 0 0;
  padding: 0;
}

.form-section legend {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.form-section[hidden],
.inquiry-success[hidden] {
  display: none !important;
}

.inquiry-progress {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
}

.inquiry-progress li {
  align-items: center;
  border-bottom: 3px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
  padding: 10px 4px;
}

.inquiry-progress li[aria-current="step"] {
  border-bottom-color: var(--orange-dark);
  color: var(--ink);
}

.inquiry-progress span {
  align-items: center;
  background: #ece8e1;
  border-radius: 50%;
  display: inline-flex;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.inquiry-progress li[aria-current="step"] span {
  background: var(--orange-dark);
  color: #fff;
}

.inquiry-success {
  background: #fff8ee;
  border: 1px solid var(--line);
  margin-top: 34px;
  padding: clamp(24px, 4vw, 42px);
}

.inquiry-success h3 {
  font-size: clamp(24px, 2.6vw, 34px);
  margin: 10px 0 14px;
}

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

.field,
.field-full {
  display: grid;
  gap: 8px;
}

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

.field label {
  font-size: 14px;
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  background: white;
  border: 1px solid rgba(21, 23, 22, 0.2);
  border-radius: 4px;
  color: var(--ink);
  font: inherit;
  min-height: 48px;
  padding: 12px 14px;
  width: 100%;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: #9f3e00;
  outline: 3px solid rgba(159, 62, 0, 0.22);
}

.form-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.form-button {
  align-items: center;
  background: var(--ink);
  border: 0;
  border-radius: 3px;
  color: white;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  min-height: 48px;
  padding: 13px 20px;
  text-decoration: none;
}

.form-button-primary {
  background: var(--orange-dark);
}

.form-button:hover:not(:disabled),
.form-button:focus-visible:not(:disabled) {
  background: #343735;
}

.form-button-primary:hover:not(:disabled),
.form-button-primary:focus-visible:not(:disabled) {
  background: #9f3e00;
}

.form-button:disabled,
.field input:disabled,
.field textarea:disabled,
.field select:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.form-status {
  background: #fff8ee;
  border-left: 3px solid var(--orange);
  display: none;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.7;
  margin-top: 24px;
  padding: 11px 14px;
}

.form-status[data-visible="true"] {
  display: block;
}

.form-status[data-kind="error"] {
  background: #fff1ef;
  border-color: #aa2e25;
  color: #84241d;
}

.form-status[data-kind="warning"] {
  border-color: #b66b14;
  color: #71420e;
}

.security-note {
  background: #f3f0ea;
  border: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.75;
  margin-top: 30px;
  padding: 18px;
}

.privacy-section {
  border-top: 1px solid var(--line);
  padding: clamp(52px, 7vw, 88px) clamp(28px, 5vw, 70px);
}

.privacy-section h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.04em;
  line-height: 1.2;
  margin: 0;
  max-width: 760px;
}

.privacy-grid {
  display: grid;
  gap: 24px 48px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 30px;
}

.privacy-grid p {
  color: #4d514d;
  font-size: 14px;
  line-height: 1.9;
  margin: 0;
  max-width: 560px;
}

.admin-shell .inquiry-layout {
  grid-template-columns: minmax(280px, 0.55fr) minmax(540px, 1.45fr);
}

.admin-shell .section-kicker {
  color: var(--admin-accent, var(--orange));
}

.admin-shell .form-button-primary {
  background: color-mix(in srgb, var(--admin-accent, var(--orange)) 68%, black);
}

.admin-shell .form-button-primary:hover:not(:disabled),
.admin-shell .form-button-primary:focus-visible:not(:disabled) {
  background: color-mix(in srgb, var(--admin-accent, var(--orange)) 52%, black);
}

.admin-shell .form-status {
  border-left-color: var(--admin-accent, var(--orange));
}

.admin-login-form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.admin-login-form[hidden],
#admin-login[hidden],
#admin-workspace[hidden] {
  display: none;
}

.admin-bootstrap-note {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 20px;
}

.admin-bootstrap-note summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}

.admin-bootstrap-note p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.admin-session-badge {
  background: #eef5ed;
  border: 1px solid #cddbc9;
  color: #315733;
  font-size: 11px;
  font-weight: 750;
  padding: 8px 10px;
}

.admin-toolbar,
.admin-section-heading {
  align-items: flex-start;
  display: flex;
  gap: 22px;
  justify-content: space-between;
}

.admin-toolbar h2,
.admin-section-heading h3,
[data-admin-panel] h3 {
  margin: 0 0 8px;
}

.admin-tabs {
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 4px;
  margin: 32px 0 28px;
  overflow-x: auto;
}

.admin-tabs button {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  cursor: pointer;
  flex: 0 0 auto;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  padding: 12px 16px;
}

.admin-tabs button[aria-current="page"] {
  border-bottom-color: var(--admin-accent, var(--orange));
  color: var(--ink);
}

.admin-list {
  border-top: 1px solid var(--line);
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.admin-list li {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 150px 1fr auto;
  padding: 18px 0;
}

.admin-list .admin-case-row {
  grid-template-columns: 1fr auto;
}

.admin-case-heading {
  display: grid;
  gap: 7px;
}

.admin-route-status {
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 700;
}

.admin-case-row > .admin-meta,
.admin-case-detail {
  grid-column: 1 / -1;
}

.admin-case-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-case-actions .form-button {
  min-height: 38px;
  padding: 9px 14px;
}

.admin-case-detail {
  background: #f3f0ea;
  border: 1px solid var(--line);
  padding: 18px;
}

.admin-detail-grid {
  display: grid;
  font-size: 13px;
  gap: 10px 18px;
  grid-template-columns: 110px 1fr;
  margin: 0;
}

.admin-detail-grid dt {
  color: var(--muted);
}

.admin-detail-grid dd {
  line-height: 1.65;
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.admin-attachments {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 18px;
  padding-top: 16px;
}

.admin-attachments a {
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 700;
}

.admin-routing-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.admin-tier-card {
  border: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 18px;
}

.admin-tier-card legend {
  font-size: 13px;
  font-weight: 800;
  padding: 0 8px;
}

.admin-field {
  display: grid;
  gap: 7px;
}

.admin-field span {
  color: var(--muted);
  font-size: 11px;
}

.admin-field input {
  background: white;
  border: 1px solid rgba(21, 23, 22, 0.2);
  color: var(--ink);
  font: inherit;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

.admin-field select {
  appearance: none;
  background: white;
  border: 1px solid rgba(21, 23, 22, 0.2);
  color: var(--ink);
  font: inherit;
  min-height: 44px;
  padding: 10px 38px 10px 12px;
  width: 100%;
}

.admin-form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-presence-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

[data-admin-panel][hidden] {
  display: none;
}

.admin-role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-role-tag,
.admin-state-tag {
  background: #f3f0ea;
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 750;
  padding: 5px 8px;
}

.admin-state-tag[data-state="online"] { background: #eef5ed; color: #315733; }
.admin-state-tag[data-state="busy"] { background: #fff4df; color: #71420e; }

.admin-field input[readonly] {
  background: #ece8e1;
  color: var(--muted);
}

.admin-operation-counts {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
}

.admin-operation-count {
  background: #f3f0ea;
  border: 1px solid var(--line);
  display: grid;
  gap: 5px;
  padding: 16px;
}

.admin-operation-count strong {
  font-size: 24px;
}

.admin-operation-count span {
  color: var(--muted);
  font-size: 11px;
}

.admin-audit-row {
  grid-template-columns: minmax(170px, 0.7fr) 1.3fr !important;
}

.admin-list strong {
  font-size: 13px;
}

.admin-list button {
  background: transparent;
  border: 0;
  color: var(--orange-dark);
  cursor: pointer;
  font-weight: 700;
}

@media (max-width: 820px) {
  .inquiry-shell {
    padding: 0;
  }

  .inquiry-frame {
    border: 0;
    border-radius: 0;
  }

  .inquiry-layout,
  .admin-shell .inquiry-layout {
    grid-template-columns: 1fr;
  }

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

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

  .admin-list li {
    grid-template-columns: 1fr;
  }

  .admin-toolbar,
  .admin-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-tier-card,
  .admin-operation-counts,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-detail-grid {
    grid-template-columns: 1fr;
  }

  .button-secondary {
    margin-left: 14px;
  }
}

@media (max-width: 1100px) {
  :root {
    --content: min(100% - 48px, 940px);
  }

  .hero-layout {
    gap: 24px;
    grid-template-columns: minmax(390px, 0.9fr) minmax(460px, 1.1fr);
    padding: 8px 26px 26px;
  }

  .site-header {
    padding: 18px 28px;
  }

  .hero-content {
    padding-left: 10px;
  }

  .hero h1 {
    font-size: clamp(42px, 4.5vw, 52px);
  }

  .section-heading {
    gap: 44px;
  }

  .process-preview,
  .quality-section {
    grid-template-columns: 1fr;
  }

  .process-intro {
    position: relative;
    top: auto;
  }

  .footer-main {
    grid-template-columns: minmax(250px, 1fr) minmax(280px, 1fr);
  }

  .footer-legal {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    grid-column: 1 / -1;
    padding-top: 24px;
  }
}

@media (max-width: 900px) {
  :root {
    --content: calc(100vw - 40px);
  }

  .hero {
    border-radius: 0;
    margin: 0;
    min-height: auto;
  }

  .site-header {
    min-height: 76px;
    padding: 15px 20px;
  }

  .brand {
    width: 204px;
  }

  .site-header nav {
    display: none;
  }

  .mobile-contact {
    align-items: center;
    border-bottom: 1px solid var(--ink);
    display: flex;
    font-size: 12px;
    font-weight: 750;
    gap: 12px;
    padding: 8px 0;
  }

  .hero-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 20px 28px;
  }

  .hero-content {
    max-width: none;
    order: 1;
    padding: 54px 0 44px;
  }

  .eyebrow {
    font-size: 10px;
    margin-bottom: 22px;
  }

  .hero h1 {
    font-size: clamp(39px, 10.8vw, 54px);
    letter-spacing: -0.065em;
    line-height: 1.1;
  }

  .hero-lede {
    font-size: 14px;
    line-height: 1.75;
    margin-top: 24px;
  }

  .hero-steps {
    font-size: 11px;
    gap: 6px;
    margin-top: 20px;
  }

  .hero-steps span {
    gap: 6px;
  }

  .hero-actions {
    margin-top: 28px;
  }

  .button-primary {
    min-width: 190px;
    padding: 15px 18px;
  }

  .regeneration-visual {
    min-height: 720px;
    order: 2;
    width: 100%;
  }

  .architectural-rings {
    border-width: 48px;
    height: 500px;
    right: -300px;
    top: -120px;
    width: 500px;
  }

  .architectural-rings::after {
    border-width: 34px;
    inset: 48px;
  }

  .regeneration-path-desktop {
    display: none;
  }

  .regeneration-path-mobile {
    display: block;
  }

  .regeneration-path path {
    stroke-width: 4;
  }

  .product-entry {
    left: auto;
    right: -3%;
    top: 5%;
    width: clamp(138px, 42vw, 180px);
  }

  .product-stripped {
    bottom: auto;
    left: -3%;
    top: 37%;
    width: clamp(150px, 45vw, 194px);
  }

  .product-finished {
    bottom: 0;
    right: -5%;
    top: auto;
    width: clamp(214px, 63vw, 274px);
  }

  .product-layer span {
    bottom: -10px;
    font-size: 9px;
  }

  .loop-node {
    font-size: 10px;
    gap: 6px;
  }

  .loop-node i {
    border-width: 3px;
    height: 14px;
    width: 14px;
  }

  .node-inspection { left: 4%; top: 3%; }
  .node-evaluation { right: 20%; top: 18%; }
  .node-repair { left: 14%; top: 31%; }
  .node-regeneration { right: 11%; top: 45%; bottom: auto; }
  .node-cleaning { bottom: auto; left: 7%; top: 58%; }
  .node-measurement { bottom: auto; left: 31%; top: 72%; }
  .node-delivery { bottom: 2%; left: auto; right: 6%; top: auto; }

  .section-heading {
    align-items: start;
    gap: 30px;
    grid-template-columns: 1fr;
  }

  .section-heading h2,
  .process-preview h2,
  .quality-section h2 {
    font-size: clamp(36px, 10vw, 52px);
  }

  .service-row {
    gap: 10px 14px;
    grid-template-columns: 38px 1fr 38px;
    padding: 24px 0;
  }

  .service-row p {
    grid-column: 2 / -1;
  }

  .service-row > a {
    grid-column: 3;
    grid-row: 1;
    height: 36px;
    width: 36px;
  }

  .process-preview,
  .quality-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .process-list li {
    gap: 8px 14px;
    grid-template-columns: 38px 1fr;
  }

  .process-list p {
    grid-column: 2;
  }

  .commercial-footer {
    min-height: 0;
  }

  .footer-main {
    gap: 32px;
    grid-template-columns: 1fr;
    padding: 48px 20px 40px;
    width: 100%;
  }

  .footer-legal {
    grid-column: 1;
    padding-top: 24px;
  }

  .footer-contact-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 22px 20px;
  }

  .footer-contact-bar a,
  .footer-contact-bar p {
    align-items: flex-start;
  }

  .footer-contact-bar p {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 14px;
    width: 100%;
  }

  .inquiry-shell > .commercial-footer {
    border-radius: 0;
    margin-top: 0;
  }
}

@media (max-width: 430px) {
  .brand {
    width: 178px;
  }

  .hero-content {
    padding-top: 42px;
  }

  .hero h1 {
    font-size: clamp(37px, 11.4vw, 48px);
  }

  .regeneration-visual {
    min-height: 660px;
  }

  .product-entry {
    width: 144px;
  }

  .product-stripped {
    width: 154px;
  }

  .product-finished {
    width: 226px;
  }

  .services-section {
    padding-bottom: 96px;
    padding-top: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .regeneration-path path {
    stroke-dashoffset: 0;
  }

  .product-layer,
  .loop-node {
    opacity: 1;
    transform: none;
  }
}

.live-support-widget {
  --live-support-accent: #e86f24;
  bottom: max(15vh, calc(env(safe-area-inset-bottom) + 16px));
  color: #1f2529;
  font: 500 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  position: fixed;
  right: clamp(12px, 2vw, 32px);
  z-index: 2147483000;
}

.live-support-widget[hidden],
.live-support-panel[hidden] {
  display: none !important;
}

.live-support-launcher {
  align-items: center;
  background: #fff;
  border: 3px solid var(--live-support-accent);
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(76, 32, 6, 0.3);
  cursor: pointer;
  display: block;
  overflow: hidden;
  padding: 0;
  text-align: left;
  width: clamp(148px, 17vw, 236px);
}

.live-support-launcher > img {
  display: block;
  height: auto;
  width: 100%;
}

.live-support-launcher-label {
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.live-support-launcher:focus-visible,
.live-support-panel button:focus-visible,
.live-support-panel textarea:focus-visible,
.live-support-panel input:focus-visible {
  box-shadow: 0 0 0 6px rgba(232, 111, 36, 0.3);
  outline: 3px solid #7a2e00;
  outline-offset: 3px;
}

.live-support-panel {
  background: #fff;
  border: 1px solid #b84f0f;
  border-radius: 18px;
  bottom: 0;
  box-shadow: 0 20px 55px rgba(31, 20, 12, 0.32);
  max-height: min(640px, 75vh);
  overflow: auto;
  position: absolute;
  right: 0;
  width: min(380px, calc(100vw - 24px));
}

.live-support-site-evidence {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1200;
  width: min(24rem, calc(100vw - 2rem));
  padding: 1rem;
  border: 1px solid #e87524;
  border-radius: 0.75rem;
  background: #fffaf6;
  color: #1c1c1c;
  box-shadow: 0 0.5rem 2rem rgb(0 0 0 / 18%);
}

.live-support-site-evidence[hidden] { display: none; }
.live-support-site-evidence h2 { margin: 0 0 0.35rem; font-size: 1rem; }
.live-support-site-evidence p { margin: 0.35rem 0 0.75rem; font-size: 0.8rem; }
.live-support-site-evidence-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.live-support-site-evidence-paste { display: grid; gap: 0.25rem; font-size: 0.8rem; }
.live-support-site-evidence-paste textarea { width: 100%; resize: vertical; font: inherit; }
.live-support-site-evidence-actions button { border: 1px solid #b34c10; border-radius: 0.4rem; padding: 0.4rem 0.6rem; background: #fff; color: #5b2509; cursor: pointer; }
.live-support-site-evidence-actions button:disabled { cursor: not-allowed; opacity: 0.5; }

.live-support-panel > header {
  align-items: center;
  background: var(--live-support-accent);
  color: #fff;
  display: flex;
  justify-content: space-between;
  min-height: 56px;
  padding: 8px 14px;
}

.live-support-panel > header h2 {
  color: inherit;
  font-size: 18px;
  line-height: 1.35;
  margin: 0;
}

.live-support-panel [data-live-support-close] {
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 28px;
  min-height: 44px;
  min-width: 44px;
}

.live-support-status,
.live-support-message-form,
.live-support-file {
  margin: 12px;
}

.live-support-status {
  color: #313431;
  font-size: 14px;
  line-height: 1.65;
}

.live-support-messages {
  background: #fff7f1;
  list-style: none;
  margin: 0;
  max-height: 280px;
  min-height: 180px;
  overflow: auto;
  padding: 12px;
}

.live-support-messages li {
  background: #fff;
  border: 1px solid #e7d7ca;
  border-radius: 12px;
  display: grid;
  gap: 3px;
  margin: 8px 0;
  max-width: 86%;
  overflow-wrap: anywhere;
  padding: 8px 10px;
  width: fit-content;
}

.live-support-messages li[data-author="visitor"] {
  background: #b84f0f;
  border-color: #b84f0f;
  color: #fff;
  margin-left: auto;
}

.live-support-panel label {
  display: grid;
  gap: 6px;
}

.live-support-panel textarea,
.live-support-panel input {
  border: 1px solid #5f6368;
  border-radius: 8px;
  box-sizing: border-box;
  font: inherit;
  min-height: 48px;
  padding: 10px;
  width: 100%;
}

.live-support-message-form button,
.live-support-end {
  background: #b84f0f;
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  margin-top: 8px;
  min-height: 48px;
  padding: 8px 16px;
}

.live-support-retention {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin: 10px 12px 14px;
}

.admin-conversation-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(250px, 0.42fr) minmax(420px, 1fr);
}

.admin-conversation-detail {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.admin-conversation-detail .live-support-messages {
  border-radius: 12px;
  max-height: 380px;
}

@media (max-width: 900px) {
  .admin-conversation-layout {
    grid-template-columns: 1fr;
  }
}

.live-support-end {
  background: #4b4f52;
  margin: 0 12px 14px;
}

@media (max-width: 560px) {
  .live-support-widget {
    bottom: max(12vh, calc(env(safe-area-inset-bottom) + 10px));
    right: 10px;
  }

  .live-support-launcher {
    width: clamp(126px, 42vw, 180px);
  }

  .live-support-panel {
    bottom: 8px;
    left: 8px;
    max-height: calc(100dvh - 16px);
    position: fixed;
    right: 8px;
    width: auto;
  }
}
