:root {
  color-scheme: light;
  --bg: #efe8d8;
  --panel: rgba(255, 252, 243, 0.78);
  --panel-soft: rgba(255, 248, 232, 0.62);
  --text: #18201f;
  --muted: #5e6a66;
  --line: rgba(65, 82, 78, 0.18);
  --cyan: #087f85;
  --cyan-soft: rgba(8, 127, 133, 0.14);
  --gold: #b6772d;
  --gold-soft: rgba(182, 119, 45, 0.16);
  --shadow: 0 24px 80px rgba(50, 42, 30, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.global-motion-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #efe8d8;
}

.global-motion-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background:
    radial-gradient(circle at 78% 12%, rgba(255, 255, 255, 0.42), transparent 30rem),
    radial-gradient(circle at 12% 4%, rgba(216, 170, 85, 0.18), transparent 24rem),
    linear-gradient(180deg, rgba(245,239,224,0.78), rgba(245,239,224,0.50) 34%, rgba(245,239,224,0.82)),
    linear-gradient(90deg, rgba(245,239,224,0.84), rgba(245,239,224,0.26) 45%, rgba(245,239,224,0.84));
}

.global-material-lanes {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  opacity: 0.76;
  filter: saturate(0.96) contrast(1.02) brightness(1.08);
}

.global-material-lane {
  position: relative;
  overflow: hidden;
  border-inline: 1px solid rgba(255,255,255,0.045);
  --lane-reveal: var(--global-reveal, 0%);
  transition: opacity 220ms ease-out;
}

.global-material-lane .material-restored {
  clip-path: inset(0 calc(100% - var(--lane-reveal, var(--global-reveal, 0%))) 0 0);
}

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

.site-header,
.section,
.footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
}

.brand,
.nav { display: flex; align-items: center; }

.brand { gap: 10px; font-weight: 750; letter-spacing: -0.03em; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(52,42,28,0.22);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--cyan);
  background: linear-gradient(145deg, rgba(97,242,239,0.12), rgba(216,170,85,0.10));
}

.nav { gap: 18px; color: var(--muted); font-size: 14px; }
.nav a:hover { color: var(--text); }

.social-links {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(65, 82, 78, 0.14);
  border-radius: 999px;
  background: rgba(255, 252, 243, 0.62);
  box-shadow: 0 12px 36px rgba(50,42,30,0.10);
  backdrop-filter: blur(16px);
}

.social-links a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #26322f;
  background: rgba(255,255,255,0.48);
  border: 1px solid rgba(65, 82, 78, 0.10);
  transition: transform 160ms ease-out, color 160ms ease-out, background 160ms ease-out, box-shadow 160ms ease-out;
}

.social-links a:hover {
  transform: translateY(-2px);
  color: #f8f1e4;
  background: linear-gradient(135deg, #087f85, #b6772d);
  box-shadow: 0 12px 28px rgba(8,127,133,0.20);
}

.social-links svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.header-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: #f8f1e4;
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(135deg, #087f85, #b6772d);
  box-shadow: 0 14px 34px rgba(8,127,133,0.20);
  border: 1px solid rgba(255,255,255,0.36);
  white-space: nowrap;
  transition: transform 160ms ease-out, box-shadow 160ms ease-out;
}

.header-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(8,127,133,0.26);
}

.section { padding: 72px 0; position: relative; }

.split,
.cards .card,
.timeline,
.notice,
.contact-card,
.before-after,
.process,
.trust {
  position: relative;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 48px;
  align-items: center;
  min-height: 76vh;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font: 700 12px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 {
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h1 { font-size: clamp(42px, 8vw, 82px); margin-bottom: 24px; }
h2 { font-size: clamp(30px, 5vw, 52px); margin-bottom: 18px; }
h3 { font-size: 22px; margin-bottom: 12px; }

.lead { max-width: 65ch; color: #35433f; font-size: clamp(18px, 2vw, 21px); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 750;
  transition: transform 160ms ease-out, border-color 160ms ease-out, background 160ms ease-out;
  cursor: pointer;
}

.button:hover { transform: translateY(-2px); }
.button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(97, 242, 239, 0.35); outline-offset: 3px; }
.button-primary { color: #f8f1e4; background: linear-gradient(135deg, #087f85, #14a5a6); border-color: transparent; }
.button-secondary { color: var(--text); background: rgba(255,255,255,0.04); }

.hero-card,
.card,
.contact-card,
.notice,
.placeholder {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,252,243,0.82), rgba(255,248,232,0.58));
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  padding: 32px;
  border-radius: 32px;
}

.hero-logo-card { padding-top: 24px; }

.hero-logo {
  display: block;
  width: min(100%, 440px);
  margin: 0 auto 22px;
  border-radius: 28px;
  box-shadow: 0 26px 70px rgba(0,0,0,0.40);
}

.laser-orb {
  width: 210px;
  height: 210px;
  margin: 20px auto 52px;
  border-radius: 50%;
  background: radial-gradient(circle, #f7fffb 0 8%, var(--cyan) 9% 18%, rgba(97,242,239,0.22) 19% 42%, transparent 43%);
  box-shadow: 0 0 90px rgba(97,242,239,0.38), inset 0 0 40px rgba(216,170,85,0.30);
}

.card-label { color: var(--gold); font-weight: 750; }

.split,
.trust,
.cta {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
}

.text-stack, .section-heading p, .card p, .notice-list, .form-note { color: var(--muted); }
.section-heading { max-width: 720px; margin-bottom: 32px; }

.grid { display: grid; gap: 18px; }
.cards { grid-template-columns: repeat(3, 1fr); }

.card {
  padding: 26px;
  border-radius: 24px;
}

.icon {
  display: inline-flex;
  margin-bottom: 38px;
  color: var(--gold);
  font: 700 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.process { border-block: 1px solid var(--line); }

.timeline {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.timeline span { color: var(--muted); }

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.placeholder {
  min-height: 320px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  color: rgba(237,243,242,0.82);
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.before { background: linear-gradient(145deg, rgba(75,56,35,0.7), rgba(25,29,30,0.8)); }
.after { background: linear-gradient(145deg, rgba(20,70,70,0.72), rgba(25,29,30,0.8)); }

.notice { padding: 28px; border-radius: 28px; }
.notice-list { display: grid; gap: 14px; }
.notice-list p { margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,0.035); }

.cta { align-items: start; }

.contact-card {
  display: grid;
  gap: 10px;
  padding: 24px;
  border-radius: 28px;
}

label { color: #cbd8d6; font-weight: 700; font-size: 14px; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(4, 8, 10, 0.74);
  color: var(--text);
  padding: 14px 15px;
  font: inherit;
}
textarea { resize: vertical; }

.form-note { margin: 6px 0 0; font-size: 14px; }
.form-note.success { color: var(--cyan); }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 820px) {
  .site-header, .section, .footer { width: min(100% - 28px, 1120px); }
  .nav { display: none; }
  .site-header { gap: 10px; align-items: center; }
  .brand span { display: none; }
  .brand-logo { width: 38px; height: 38px; }
  .header-actions { flex: 1; justify-content: flex-end; gap: 8px; }
  .social-links { gap: 4px; padding: 4px; }
  .social-links a { width: 30px; height: 30px; }
  .social-links svg { width: 15px; height: 15px; }
  .header-contact { min-height: 38px; padding: 0 13px; font-size: 13px; }
  .section { padding: 52px 0; }
  .hero, .split, .trust, .cta, .cards, .comparison-grid { grid-template-columns: 1fr; }
  .hero { gap: 28px; min-height: auto; padding-top: 42px; }
  .hero-card { min-height: 320px; }
  .laser-orb { width: 160px; height: 160px; margin-bottom: 32px; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .footer { flex-direction: column; }
}

/* Scroll-motion restoration prototype: wide body-integrated scrollytelling. Visual simulation, no real material photos. */
.restoration-motion {
  width: 100%;
  margin: 28px 0 32px;
}

.motion-stage {
  position: relative;
  min-height: 360vh;
  background: rgba(239,232,216,0.34);
  border-block: 1px solid var(--line);
  overflow: clip;
}

.motion-sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  z-index: 0;
}

.material-lanes {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  isolation: isolate;
  --scan-x: var(--reveal, 0%);
}

.material-lanes::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,0.20), transparent 34rem),
    linear-gradient(90deg, rgba(245,239,224,0.72), rgba(245,239,224,0.12) 38%, rgba(245,239,224,0.22) 62%, rgba(245,239,224,0.72)),
    linear-gradient(180deg, rgba(245,239,224,0.16), rgba(245,239,224,0.48));
}

.material-lanes::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.026) 1px, transparent 1px);
  background-size: 52px 52px;
  mix-blend-mode: soft-light;
}

.material-lane {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  border-inline: 1px solid rgba(255,255,255,0.08);
}

.material-layer {
  position: absolute;
  inset: 0;
  background-size: 220px 220px, 100% 100%;
}

.material-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 25%, rgba(255,255,255,0.10), transparent 3px),
    radial-gradient(circle at 70% 58%, rgba(0,0,0,0.30), transparent 4px),
    linear-gradient(115deg, transparent 0 44%, rgba(255,255,255,0.08) 45% 46%, transparent 47% 100%);
  background-size: 34px 34px, 48px 48px, 100% 100%;
  mix-blend-mode: soft-light;
}

.material-restored {
  z-index: 1;
  clip-path: inset(0 calc(100% - var(--lane-reveal, var(--reveal, 0%))) 0 0);
  transition: clip-path 90ms linear;
}

.lane-label {
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 6;
  color: rgba(237,243,242,0.72);
  font: 800 12px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.scan-line {
  position: absolute;
  z-index: 7;
  top: 0;
  bottom: 0;
  left: var(--scan-x);
  width: 3px;
  transform: translateX(-1px);
  background: linear-gradient(to bottom, transparent 4%, rgba(97,242,239,0.92), rgba(216,170,85,0.62), transparent 96%);
  box-shadow: 0 0 26px rgba(97,242,239,0.72), 0 0 80px rgba(97,242,239,0.28);
  opacity: clamp(0, var(--reveal-factor, 0), 1);
  transition: left 90ms linear, opacity 90ms linear;
}

.motion-content {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
  display: grid;
  gap: 52vh;
  padding: 22vh 0 42vh;
}

.panel-overlay {
  width: min(680px, 100%);
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid rgba(237,243,242,0.18);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(8,11,13,0.76), rgba(8,11,13,0.48));
  color: #f8f1e4;
  box-shadow: 0 24px 80px rgba(0,0,0,0.42);
  backdrop-filter: blur(18px);
}

.motion-intro { margin-bottom: 10vh; }
.motion-panel { max-width: 520px; }
.motion-panel-right { justify-self: end; }

.motion-kicker {
  color: var(--gold);
  font: 800 12px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.motion-progress {
  display: block;
  margin: 20px 0 0;
  color: var(--cyan);
  font-size: clamp(54px, 8vw, 92px);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.motion-panel p,
.motion-intro p { color: #e5ded0; margin-bottom: 0; }
.motion-panel h3 { font-size: clamp(28px, 4vw, 44px); margin: 12px 0 14px; }

.material-wood .material-damaged {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(93,61,31,0.12)),
    url("assets/textures/wood-damaged.png") center / cover;
  filter: saturate(0.9) contrast(1.02) brightness(1.04);
}
.material-wood .material-restored {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,232,190,0.08)),
    url("assets/textures/wood-restored.png") center / cover;
}

.material-metal .material-damaged {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(120,65,28,0.12)),
    url("assets/textures/metal-damaged.png") center / cover;
  filter: saturate(0.92) contrast(1.03) brightness(1.05);
}
.material-metal .material-restored {
  background:
    linear-gradient(115deg, rgba(255,255,255,0.22), transparent 18% 42%, rgba(8,127,133,0.10) 52%, transparent 64%),
    url("assets/textures/metal-restored.png") center / cover;
}

.material-stone .material-damaged {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(82,68,49,0.13)),
    url("assets/textures/stone-damaged.png") center / cover;
  filter: saturate(0.88) contrast(1.02) brightness(1.06);
}
.material-stone .material-restored {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.16), rgba(230,211,174,0.08)),
    url("assets/textures/stone-restored.png") center / cover;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .material-restored,
  .scan-line { transition: none; }
}

@media (max-width: 1040px) {
  .material-lanes::before {
    background:
      linear-gradient(180deg, rgba(8,11,13,0.74), rgba(8,11,13,0.24) 44%, rgba(8,11,13,0.76));
  }
  .motion-content { gap: 44vh; }
}

@media (max-width: 820px) {
  .global-motion-bg::after {
    background:
      radial-gradient(circle at 50% 18%, rgba(97, 242, 239, 0.16), transparent 22rem),
      linear-gradient(180deg, rgba(8,11,13,0.70), rgba(8,11,13,0.40) 45%, rgba(8,11,13,0.84));
  }

  .global-material-lanes {
    display: block;
    opacity: 0.62;
  }

  .global-material-lane {
    position: absolute;
    inset: 0;
    border: 0;
    opacity: 0.32;
  }

  .global-material-lane .material-restored {
    clip-path: inset(0 calc(100% - var(--lane-reveal, 0%)) 0 0);
  }

  .motion-stage {
    min-height: auto;
    overflow: hidden;
    background:
      radial-gradient(circle at top, rgba(97,242,239,0.12), transparent 34rem),
      #080b0d;
  }
  .motion-sticky {
    position: relative;
    min-height: auto;
  }
  .material-lanes {
    position: relative;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 1fr);
    --reveal: 0%;
    --reveal-factor: 1;
    min-height: auto;
  }
  .material-lane {
    min-height: 72vh;
    border-block: 1px solid rgba(255,255,255,0.08);
    --lane-reveal: 0%;
  }
  .material-lane::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background:
      linear-gradient(180deg, rgba(8,11,13,0.2), rgba(8,11,13,0.56)),
      linear-gradient(90deg, rgba(97,242,239,0.14), transparent 22%, transparent 78%, rgba(216,170,85,0.10));
  }
  .material-restored { clip-path: inset(0 calc(100% - var(--lane-reveal, 0%)) 0 0); }
  .scan-line { display: none; }
  .lane-label {
    writing-mode: initial;
    transform: none;
    left: 16px;
    bottom: 14px;
  }
  .motion-content {
    width: min(100% - 28px, 1120px);
    gap: 22px;
    padding: 22px 0 44px;
    margin-top: 0;
  }
  .panel-overlay {
    background: linear-gradient(180deg, rgba(8,11,13,0.84), rgba(8,11,13,0.68));
    border-radius: 24px;
  }
  .motion-intro { margin-bottom: 0; }
  .motion-panel,
  .motion-panel-right { justify-self: stretch; max-width: none; }
}
