:root {
  --bg: #ffffff;
  --bg-soft: #f7f9fa;
  --bg-elev: #f0f3f5;
  --fg: #1a1f22;
  --muted: #8a9294;
  --accent: #006090;
  --accent-soft: rgba(0, 96, 144, 0.10);
  --grey: #606464;
  --line: rgba(26, 31, 34, 0.08);
  --line-strong: rgba(26, 31, 34, 0.12);
  --font: "Helvetica Neue", Helvetica, Arial, "PingFang HK", "Noto Sans TC", sans-serif;
  --max: 1120px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; font-weight: 500; letter-spacing: 0.01em; color: var(--fg); }
p { color: var(--muted); }

.visually-hidden {
  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: absolute;
  left: -999px;
  top: 0;
  background: var(--fg);
  color: var(--bg);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem var(--pad);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.logo img {
  height: 48px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
}
.nav { display: flex; gap: 1.25rem; align-items: center; font-size: 0.9rem; }
.nav a { color: var(--muted); transition: color 0.2s ease; }
.nav a:hover { color: var(--fg); }
.nav-cta {
  color: var(--accent) !important;
  border: 1px solid rgba(0, 96, 144, 0.35);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-soft);
}
.nav-cta:hover {
  border-color: var(--accent);
  background: rgba(0, 96, 144, 0.16);
  color: var(--accent) !important;
}

.scene {
  position: relative;
  padding: clamp(4rem, 12vh, 7rem) var(--pad);
}
.section-head { max-width: 36rem; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin: 0 0 0.75rem; }
.eyebrow {
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--accent);
  margin: 0 0 1rem;
}
.brand-en {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
}

/* Hero */
.scene-hero {
  min-height: 100vh;
  display: grid;
  align-content: end;
  padding-bottom: 4rem;
  overflow: hidden;
  background: var(--bg-soft);
}
.scene-hero .scene-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.layer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 28% 38%, rgba(0, 96, 144, 0.08), transparent 52%),
    linear-gradient(165deg, #f0f3f5 0%, #f7f9fa 45%, #ffffff 100%);
}
.layer-mid { opacity: 0.65; transform: scale(1.05); }
.layer-near {
  background: linear-gradient(to top, var(--bg) 0%, transparent 48%);
}
.scene-hero .scene-copy { position: relative; z-index: 1; max-width: 18ch; }
.scene-hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  margin: 0 0 1rem;
}
.lede { font-size: 1.05rem; margin: 0; color: var(--grey); }
.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: var(--pad);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 1;
}

/* Journey pin */
.scene-journey { padding: 0; }
.journey-pin {
  height: 300vh;
  position: relative;
}
.journey-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--bg-soft);
}
.journey-frame {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.journey-frame.is-active { opacity: 1; pointer-events: auto; }
.frame-visual {
  background:
    linear-gradient(135deg, rgba(0, 96, 144, 0.12), transparent 58%),
    var(--bg-elev);
  margin: 8vh 0 8vh 6vw;
  border-radius: 4px;
  border: 1px solid var(--line);
}
.frame-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--pad);
  max-width: 28rem;
}
.frame-copy h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 1rem; }
.journey-progress {
  position: sticky;
  bottom: 2rem;
  height: 2px;
  margin: 0 var(--pad);
  background: var(--line-strong);
  z-index: 2;
}
.journey-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
}

@media (max-width: 900px) {
  .journey-frame { grid-template-columns: 1fr; }
  .frame-visual { margin: 12vh var(--pad) 0; min-height: 38vh; }
  .nav a:not(.nav-cta) { display: none; }
  .logo img { height: 42px; max-width: 200px; }
}

/* Rooms */
.room-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.room-card .room-visual,
.work-card .work-visual {
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(160deg, rgba(0, 96, 144, 0.07), transparent 55%),
    var(--bg-elev);
  border-radius: 4px;
  margin-bottom: 0.85rem;
  border: 1px solid var(--line);
}
.room-card h3, .work-card h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.room-card p, .work-card p { margin: 0; font-size: 0.9rem; }

@media (max-width: 900px) {
  .room-rail { grid-template-columns: repeat(2, 1fr); }
}

/* Craft / trust */
.craft-grid, .trust-grid, .work-grid {
  display: grid;
  gap: 1rem;
}
.craft-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  grid-template-columns: repeat(2, 1fr);
}
.craft-grid li,
.trust-grid article {
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 1px 0 rgba(26, 31, 34, 0.02);
}
.trust-grid { grid-template-columns: repeat(3, 1fr); }
.trust-grid h3 { margin: 0 0 0.5rem; }
.trust-grid p { margin: 0; font-size: 0.95rem; }

.work-grid { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 900px) {
  .craft-grid, .trust-grid, .work-grid { grid-template-columns: 1fr; }
}

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  max-width: 36rem;
}
.process-list li {
  counter-increment: step;
  padding: 1rem 0 1rem 3rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  color: var(--fg);
}
.process-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.85rem;
  top: 1.15rem;
}

.scene-cta {
  text-align: center;
  padding-block: 6rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0, 96, 144, 0.07), transparent 55%),
    var(--bg-soft);
}
.scene-cta h2 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 0.75rem; }
.cta-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.75rem 0 1.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  border: 1px solid var(--line-strong);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: #0072a8;
  border-color: #0072a8;
}
.btn-ghost {
  color: var(--fg);
  background: var(--bg);
  border-color: rgba(96, 100, 100, 0.35);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.fineprint { font-size: 0.8rem; }

.site-footer {
  padding: 2rem var(--pad) 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  background: var(--bg);
}

@media (prefers-reduced-motion: reduce) {
  .journey-pin { height: auto; }
  .journey-stage { position: relative; height: auto; }
  .journey-frame {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    min-height: auto;
    padding-bottom: 2rem;
  }
  .journey-progress { display: none; }
}
