/* ============================================================
   SEATTLE ARTISAN STUDIO — Homepage Stylesheet
   Design language: Morandi calm · Cormorant precision · Still Water
   ============================================================ */

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Color Palette */
  --bg:          #F7F8F6;
  --surface:     #EDF0EC;
  --mist:        #D4DDD8;
  --cyan-mist:   #B8CFCB;
  --cyan-deep:   #7FA8A2;
  --green-stone: #8FA896;
  --ink:         #2C3530;
  --text:        #4A5550;
  --ghost:       #8A9690;
  --gold:        #C4A96A;

  /* Accent spark — used sparingly: key words, tags, marks, hovers */
  --terracotta:      #B8503A;
  --terracotta-deep: #9C3F2C;
  --terracotta-soft: rgba(184, 80, 58, 0.09);
  --terracotta-line: rgba(184, 80, 58, 0.38);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-ui:      'DM Sans', system-ui, sans-serif;
  --font-zh:      'Noto Serif SC', serif;

  /* Layout */
  --nav-height:     100px;
  --container:      1280px;
  --pad-x:          clamp(24px, 5vw, 80px);
  --section-pad:    clamp(80px, 10vw, 140px);

  /* Card system — shared across service / testimonial / portfolio cards */
  --card-radius:       18px;
  --card-radius-lg:    22px;
  --card-border:       var(--mist);
  --card-shadow-rest:  0 2px 10px rgba(44, 53, 48, 0.04);
  --card-shadow-hover: 0 20px 40px -18px rgba(44, 53, 48, 0.2);
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { background: none; border: none; cursor: pointer; font: inherit; }

/* ============================================================
   GLOBAL UTILITIES
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ghost);
}
.label::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--terracotta);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.2vw, 62px);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.1;
  margin-top: 16px;
  letter-spacing: -0.01em;
}

.section-header {
  margin-bottom: clamp(48px, 6vw, 80px);
}

/* Scroll anchors don't hide behind fixed nav */
[id] { scroll-margin-top: calc(var(--nav-height) + 24px); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.25s ease, transform 0.25s ease;
}
.btn-primary svg { transition: transform 0.25s ease; }
.btn-primary:hover { background: var(--cyan-deep); transform: translateY(-2px); }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost-link {
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ghost);
  border-bottom: 1px solid var(--mist);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.btn-ghost-link:hover { color: var(--cyan-deep); border-color: var(--cyan-deep); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--nav-height);
  background:
    linear-gradient(100deg,
      rgba(127, 168, 162, 0.22) 0%,
      rgba(127, 168, 162, 0.07) 100%),
    rgba(247, 248, 246, 0.68);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: box-shadow 0.38s ease, background 0.38s ease;
}

.nav.scrolled {
  background:
    linear-gradient(100deg,
      rgba(127, 168, 162, 0.26) 0%,
      rgba(127, 168, 162, 0.1) 100%),
    rgba(247, 248, 246, 0.8);
  box-shadow: 0 1px 0 var(--mist);
}

.nav__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  height: 100%;
}

.nav__row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo { display: flex; align-items: center; gap: 11px; }
.nav__logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
}
.nav__logo-en {
  font-family: var(--font-ui);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1;
}
.nav__contact-strip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.nav__contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.nav__contact-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ghost);
  cursor: default;
  transition: color 0.2s ease;
}
a.nav__contact-item { cursor: pointer; }
.nav__contact-item:hover { color: var(--cyan-deep); }
.nav__contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.nav__contact-icon--rednote {
  width: 34px !important;
  height: 12.7px !important;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__links a {
  position: relative;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.2s ease;
  padding-bottom: 3px;
}
.nav__links a:not(.nav__cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--cyan-deep);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.28s ease;
}
.nav__links a:not(.nav__cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav__links a:hover { color: var(--cyan-deep); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  background: var(--cyan-deep);
  color: #fff !important;
  border-radius: 100px;
  transition: background 0.22s ease, transform 0.22s ease;
}
.nav__cta:hover { background: var(--ink) !important; transform: translateY(-1px); }

.nav__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__mobile-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav__mobile-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__mobile-toggle.open span:nth-child(2) { opacity: 0; }
.nav__mobile-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 40% 60%;
  min-height: 100vh;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero__left {
  padding: calc(var(--nav-height) + clamp(48px, 7vw, 100px)) var(--pad-x) clamp(48px, 7vw, 100px) clamp(24px, 7vw, 100px);
  position: relative;
  z-index: 2;
}

.hero__label {
  margin-bottom: 30px;
  animation: fadeUp 0.7s ease 0.15s both;
}
.hero__label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--terracotta);
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(44px, 4.6vw, 74px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin-bottom: 26px;
  animation: fadeUp 0.8s ease 0.3s both;
}
.hero__headline em {
  font-style: italic;
  color: var(--terracotta);
}

/* Signature: Epoxy Pour Line */
.pour-line-wrap {
  margin-bottom: 30px;
  height: 28px;
  animation: fadeUp 0.6s ease 0.5s both;
}
.pour-line {
  width: 100%;
  max-width: 460px;
  height: 28px;
  overflow: visible;
}
.pour-line path {
  stroke-dasharray: 1100;
  stroke-dashoffset: 1100;
  animation: drawLine 1.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.65s forwards;
}
@keyframes drawLine { to { stroke-dashoffset: 0; } }

.hero__tagline {
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 300;
  color: var(--text);
  line-height: 1.8;
  max-width: 400px;
  margin-bottom: 40px;
  animation: fadeUp 0.7s ease 0.6s both;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  animation: fadeUp 0.7s ease 0.72s both;
}

/* Hero right: editorial project card */
.hero__right {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeUp 0.9s ease 0.1s both;
}

/* Faint architectural grid — diagonal + straight guide lines */
.hero__bg-grid {
  position: absolute;
  inset: 6% 4%;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(44, 53, 48, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 53, 48, 0.035) 1px, transparent 1px);
  background-size: 100% 33.33%, 25% 100%;
  background-position: top left;
}
.hero__bg-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 46%, rgba(127, 168, 162, 0.09) 46.3%, transparent 47%);
}

.hero__watermark {
  position: absolute;
  bottom: 3%;
  right: 1.5%;
  font-family: var(--font-zh);
  font-size: clamp(48px, 6.5vw, 88px);
  font-weight: 300;
  color: rgba(44, 53, 48, 0.038);
  writing-mode: vertical-rl;
  letter-spacing: 0.1em;
  pointer-events: none;
  z-index: 0;
  line-height: 1;
}

/* Project card */
.project-card {
  position: relative;
  z-index: 2;
  width: min(88%, 700px);
  background: var(--bg);
  border: 1px solid var(--mist);
  border-radius: 22px;
  padding: 30px 30px 34px;
  box-shadow: 0 30px 60px -20px rgba(44, 53, 48, 0.18), 0 8px 20px rgba(44, 53, 48, 0.06);
}

.project-card__header { margin-bottom: 20px; }
.project-card__chips {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.project-card__chip {
  width: 9px;
  height: 9px;
  border-radius: 3px;
}
.project-card__chip--sage { background: var(--cyan-deep); }
.project-card__chip--terracotta { background: var(--terracotta); }
.project-card__chip--gold { background: #B99552; }
.project-card__eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ghost);
  margin-bottom: 6px;
}
.project-card__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
}
.project-card__underline {
  display: block;
  width: 44px;
  height: 2px;
  background: var(--cyan-deep);
  margin-top: 16px;
}

.project-card__image {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3.05;
}
.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: clamp(24px, 7vw, 100px);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 2;
  animation: fadeUp 0.6s ease 1.1s both;
}
.hero__scroll-hint span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ghost);
}
.scroll-line {
  width: 44px;
  height: 1px;
  background: var(--mist);
  overflow: hidden;
  position: relative;
}
.scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cyan-deep);
  transform: translateX(-100%);
  animation: scrollPulse 2.2s ease-in-out 1.2s infinite;
}
@keyframes scrollPulse {
  0%   { transform: translateX(-100%); }
  50%  { transform: translateX(0%); }
  100% { transform: translateX(100%); }
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--surface);
  border-top: 1px solid var(--mist);
  border-bottom: 1px solid var(--mist);
  padding: clamp(44px, 6vw, 64px) 0;
}

.trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-bar__stat {
  text-align: center;
  padding: 16px 24px;
  position: relative;
}
.trust-bar__stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 44px;
  background: var(--mist);
}

.trust-bar__number {
  font-family: var(--font-display);
  font-size: clamp(36px, 3.8vw, 54px);
  font-weight: 300;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.trust-bar__number--text {
  font-size: clamp(22px, 2.4vw, 32px);
  padding-top: 8px;
}
.trust-bar__desc {
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ghost);
}
.trust-bar__desc::before {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto 10px;
  background: var(--cyan-deep);
  border-radius: 2px;
}
.trust-bar__stat:nth-child(2) .trust-bar__desc::before { background: var(--terracotta); }
.trust-bar__stat:nth-child(3) .trust-bar__desc::before { background: #B99552; }
.trust-bar__stat:nth-child(4) .trust-bar__desc::before { background: var(--cyan-deep); }

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  padding: var(--section-pad) 0;
}

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

.service-card {
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow-rest);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  z-index: 2;
}
.service-card--sage:hover { border-color: var(--cyan-deep); }
.service-card--terracotta:hover { border-color: var(--terracotta); }
.service-card--gold:hover { border-color: #B99552; }

/* Photo — the real project image leads each card */
.service-card__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.service-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover .service-card__photo img {
  transform: scale(1.07);
}

.service-card__badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--ink);
  background: rgba(247, 248, 246, 0.86);
  backdrop-filter: blur(4px);
  padding: 3px 10px;
  border-radius: 100px;
  line-height: 1.4;
}

.service-card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  background: rgba(247, 248, 246, 0.88);
  backdrop-filter: blur(4px);
  border-radius: 100px;
  padding: 5px 11px 5px 9px;
}
.service-card__tag::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--terracotta);
}

.service-card__body {
  padding: 24px 28px 32px;
}

.service-card__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.service-card__icon {
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  transition: transform 0.36s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.service-card--sage .service-card__icon { color: var(--cyan-deep); }
.service-card--terracotta .service-card__icon { color: var(--terracotta); }
.service-card--gold .service-card__icon { color: #B99552; }
.service-card:hover .service-card__icon { transform: scale(1.12) rotate(-6deg); }

.service-card__name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
}

.service-card__desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--ghost);
  line-height: 1.8;
}

.service-card__arrow {
  position: absolute;
  bottom: 30px; right: 32px;
  color: var(--ink);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.service-card:hover .service-card__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   BEFORE / AFTER
   ============================================================ */
.before-after {
  padding: var(--section-pad) 0;
  background: var(--surface);
}

.before-after__header { margin-bottom: 28px; }

.before-after__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.before-after__tag {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 100px;
}
.before-after__tag--primary {
  color: var(--terracotta-deep);
  background: var(--terracotta-soft);
}
.before-after__tag--muted {
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--mist);
}
.before-after__tag--sage {
  color: #2E5650;
  background: rgba(127, 168, 162, 0.16);
  border: none;
}
.before-after__tag--gold {
  color: #7A5F2E;
  background: rgba(185, 149, 82, 0.18);
  border: none;
}
.before-after__index {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--ghost);
  padding: 5px 2px;
}

.ba-wrapper { }

.ba-container {
  position: relative;
  width: 100%;
  height: clamp(300px, 45vw, 580px);
  overflow: hidden;
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
  border: 1px solid var(--mist);
  border-radius: 20px;
  box-shadow: 0 30px 60px -24px rgba(44, 53, 48, 0.2);
}

.ba-panel {
  position: absolute;
  inset: 0;
}

/* After: finished epoxy floor */
.ba-panel--after { z-index: 1; }
.ba-floor--after {
  width: 100%; height: 100%;
  background-image: url('../images/ba-after.jpg');
  background-size: cover;
  background-position: center 62%;
}

/* Before: raw concrete / unfinished garage */
.ba-panel--before {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}
.ba-floor--before {
  width: 100%; height: 100%;
  background-image: url('../images/ba-before.jpg');
  background-size: cover;
  background-position: center 62%;
}

.ba-label {
  position: absolute;
  top: 20px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 5px 10px;
  z-index: 2;
}
.ba-label--after {
  right: 20px;
  color: var(--cyan-deep);
  background: rgba(255,255,255,0.82);
}
.ba-label--before {
  left: 20px;
  color: rgba(255,255,255,0.65);
  background: rgba(0,0,0,0.28);
}

.before-after__tags--second { margin: 56px 0 24px; }

/* Static side-by-side pair — used when photos aren't from a fixed matching angle */
.ba-static {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border: 1px solid var(--mist);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(44, 53, 48, 0.2);
}
.ba-static__panel {
  position: relative;
  aspect-ratio: 3 / 4;
}
.ba-static__panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: col-resize;
  width: 40px;
}
.ba-handle__track {
  width: 2px;
  flex: 1;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 0 12px rgba(0,0,0,0.15);
}
.ba-handle__button {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center; justify-content: center;
  box-shadow: 0 2px 18px rgba(44,53,48,0.22);
  transition: transform 0.2s ease;
}
.ba-handle:hover .ba-handle__button {
  transform: translate(-50%, -50%) scale(1.08);
}

.ba-caption {
  margin-top: 18px;
  font-size: 12px;
  font-weight: 300;
  color: var(--ghost);
  text-align: center;
  letter-spacing: 0.04em;
}

/* ============================================================
   PHILOSOPHY
   ============================================================ */
.philosophy {
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}

/* Subtle noise grain overlay */
.philosophy__grain {
  position: absolute;
  inset: 0;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px;
  pointer-events: none;
}

.philosophy__watermark {
  position: absolute;
  top: 6%;
  right: 4%;
  font-family: var(--font-zh);
  font-size: clamp(120px, 16vw, 260px);
  font-weight: 300;
  color: rgba(44, 53, 48, 0.03);
  line-height: 1;
  pointer-events: none;
}

.philosophy__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
}

.philosophy__quote {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 44px);
  font-style: italic;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.32;
  position: relative;
  padding-left: 8px;
}
.philosophy__quote::before {
  content: '"';
  position: absolute;
  top: -0.1em;
  left: -0.28em;
  font-size: 5.5em;
  line-height: 1;
  color: var(--terracotta);
  font-style: normal;
  opacity: 0.45;
  pointer-events: none;
}

.philosophy__body {
  font-size: 15.5px;
  font-weight: 300;
  color: var(--text);
  line-height: 1.9;
  padding-left: 32px;
  border-left: 1px solid var(--mist);
}
.philosophy__body p + p { margin-top: 20px; }

.philosophy__mark {
  display: block;
  margin-bottom: 22px;
}

.philosophy__signature {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
}
.philosophy__signature-mark {
  font-family: var(--font-zh);
  font-size: 17px;
  font-weight: 300;
  color: var(--cyan-deep);
  white-space: nowrap;
}
.philosophy__chip {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex-shrink: 0;
}
.philosophy__chip--sage { background: var(--cyan-mist); }
.philosophy__chip--gold { background: var(--gold); }
.philosophy__chip--terracotta { background: var(--terracotta); }
.philosophy__signature-line {
  flex: 1;
  height: 1px;
  background: var(--mist);
  margin-left: 8px;
}

/* ============================================================
   PROCESS
   ============================================================ */
.process {
  padding: var(--section-pad) 0;
  background: var(--surface);
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 64px;
  position: relative;
}

/* connector line */
.process__steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 12.5%; right: 12.5%;
  height: 1px;
  background: var(--mist);
}

.process-step {
  padding: 0 20px;
  text-align: center;
}

.process-step__number {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 300;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--cyan-mist);
  margin-bottom: 20px;
  transition: -webkit-text-stroke-width 0.3s ease;
}
.process-step:hover .process-step__number {
  -webkit-text-stroke-width: 1.5px;
}

.process-step__dot {
  width: 8px; height: 8px;
  background: var(--cyan-deep);
  border-radius: 50%;
  margin: 0 auto 24px;
  position: relative;
  transition: transform 0.3s ease;
}
.process-step:hover .process-step__dot { transform: scale(1.35); }
.process-step__dot::before {
  content: '';
  position: absolute;
  inset: -5px;
  border: 1px solid var(--cyan-mist);
  border-radius: 50%;
}

.process-step:nth-child(2) .process-step__number { -webkit-text-stroke-color: var(--terracotta-line); }
.process-step:nth-child(2) .process-step__dot { background: var(--terracotta); }
.process-step:nth-child(2) .process-step__dot::before { border-color: var(--terracotta-line); }

.process-step:nth-child(3) .process-step__number { -webkit-text-stroke-color: rgba(185, 149, 82, 0.4); }
.process-step:nth-child(3) .process-step__dot { background: #B99552; }
.process-step:nth-child(3) .process-step__dot::before { border-color: rgba(185, 149, 82, 0.4); }

.process-step:nth-child(4) .process-step__number { -webkit-text-stroke-color: var(--cyan-mist); }
.process-step:nth-child(4) .process-step__dot { background: var(--cyan-deep); }

.process-step__title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 12px;
}

.process-step__desc {
  font-size: 13.5px;
  font-weight: 300;
  color: var(--ghost);
  line-height: 1.78;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  padding: var(--section-pad) 0;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-top: 3px solid var(--cyan-deep);
  border-radius: var(--card-radius);
  padding: 40px 36px;
  position: relative;
  box-shadow: var(--card-shadow-rest);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}
.testimonial-card:nth-child(2) { border-top-color: var(--terracotta); }
.testimonial-card:nth-child(3) { border-top-color: #B99552; }
.testimonial-card:nth-child(2) .testimonial-card__mark { color: var(--terracotta-line); }
.testimonial-card:nth-child(3) .testimonial-card__mark { color: rgba(185, 149, 82, 0.4); }

.testimonial-card__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 20px;
}
.star {
  display: block;
  width: 10px; height: 10px;
  background: var(--gold);
  clip-path: polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);
}

.testimonial-card__mark {
  display: block;
  font-family: var(--font-display);
  font-size: 60px;
  line-height: 0.75;
  color: var(--cyan-mist);
  margin-bottom: 20px;
}

.testimonial-card__text {
  font-size: 14.5px;
  font-weight: 300;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 28px;
}

.testimonial-card__author { display: flex; align-items: center; gap: 13px; }
.testimonial-card__initials {
  width: 40px; height: 40px;
  background: var(--cyan-mist);
  border: 1px solid rgba(44, 53, 48, 0.06);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  flex-shrink: 0;
}
.testimonial-card:nth-child(2) .testimonial-card__initials { background: var(--terracotta-soft); }
.testimonial-card:nth-child(3) .testimonial-card__initials { background: rgba(185, 149, 82, 0.22); }
.testimonial-card__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.testimonial-card__project {
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ghost);
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta {
  background: var(--bg);
  padding: var(--section-pad) 0;
  text-align: center;
}

.final-cta__card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(175deg, var(--surface) 0%, var(--bg) 70%);
  border: 1px solid var(--mist);
  border-radius: 32px;
  padding: clamp(56px, 8vw, 96px) clamp(24px, 6vw, 60px);
  box-shadow: 0 40px 80px -34px rgba(44, 53, 48, 0.16);
}

.final-cta__bg-char {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-zh);
  font-size: clamp(180px, 28vw, 380px);
  font-weight: 300;
  color: rgba(44, 53, 48, 0.026);
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
}

.final-cta__label { justify-content: center; margin-bottom: 20px; }

.final-cta__title {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.5vw, 88px);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
  position: relative;
}
.final-cta__title em {
  font-style: italic;
  color: var(--terracotta);
}

.final-cta__sub {
  font-size: 15.5px;
  font-weight: 300;
  color: var(--text);
  max-width: 460px;
  margin: 0 auto 14px;
  line-height: 1.78;
  position: relative;
}

.final-cta__area {
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ghost);
  max-width: 420px;
  margin: 0 auto 36px;
  line-height: 1.6;
  position: relative;
}

.final-cta__contact {
  margin-top: 32px;
  font-size: 13px;
  font-weight: 300;
  color: var(--ghost);
  position: relative;
}
.final-cta__contact a {
  color: var(--text);
  transition: color 0.2s ease;
}
.final-cta__contact a:hover { color: var(--cyan-deep); }
.final-cta__dot { margin: 0 8px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  position: relative;
  padding: 72px 0 44px;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 64px;
  background: linear-gradient(to bottom, rgba(127, 168, 162, 0.1), transparent);
  pointer-events: none;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer__brand-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}
.footer__logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.footer__pour-mark { margin-bottom: 0; }
.footer__brand-en {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.footer__brand-zh {
  font-family: var(--font-zh);
  font-size: 11px;
  font-weight: 300;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.18em;
  margin-bottom: 18px;
}
.footer__tagline {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.3);
  line-height: 1.78;
  max-width: 240px;
}

.footer__col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin-bottom: 20px;
}
.footer__col-title::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--terracotta);
  flex-shrink: 0;
}
.footer__links li + li { margin-top: 11px; }
.footer__links a {
  font-size: 13.5px;
  font-weight: 300;
  color: rgba(255,255,255,0.46);
  transition: color 0.2s ease;
}
.footer__links a:hover { color: var(--cyan-mist); }

.footer__seo-line {
  font-size: 12px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.22);
  max-width: 720px;
  margin-bottom: 32px;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.055);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__copy,
.footer__legal {
  font-size: 11.5px;
  font-weight: 300;
  color: rgba(255,255,255,0.2);
}

/* ============================================================
   CONSULTATION MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(44, 53, 48, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--mist);
  border-radius: 24px;
  padding: clamp(32px, 5vw, 48px);
  box-shadow: 0 40px 80px -24px rgba(44, 53, 48, 0.35);
  transform: translateY(14px) scale(0.98);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}
.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal__close {
  position: absolute;
  top: 20px; right: 20px;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ghost);
  transition: color 0.2s ease, background 0.2s ease;
}
.modal__close:hover {
  color: var(--ink);
  background: var(--surface);
}

.modal__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  margin-top: 10px;
  margin-bottom: 10px;
}

.modal__sub {
  font-size: 13.5px;
  font-weight: 300;
  color: var(--ghost);
  line-height: 1.7;
  margin-bottom: 28px;
}

.consult-form { display: flex; flex-direction: column; gap: 18px; }
.consult-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.consult-form__field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.consult-form__field label {
  font-family: var(--font-ui);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}
.consult-form__optional {
  color: var(--ghost);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.consult-form__field input,
.consult-form__field select {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--mist);
  border-radius: 10px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.consult-form__field input::placeholder { color: var(--ghost); }
.consult-form__field input:focus,
.consult-form__field select:focus {
  outline: none;
  border-color: var(--cyan-deep);
  background: var(--bg);
}
.consult-form__field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238A9690' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.consult-form__field select:invalid { color: var(--ghost); }

.consult-form__error {
  font-size: 12.5px;
  color: var(--terracotta-deep);
  background: var(--terracotta-soft);
  border-radius: 8px;
  padding: 10px 14px;
  line-height: 1.5;
}

.consult-form__submit {
  justify-content: center;
  margin-top: 6px;
  width: 100%;
}
.consult-form__submit:disabled {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}

.modal__panel--success {
  text-align: center;
  padding-top: 8px;
}
.modal__success-mark {
  width: 52px; height: 52px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--cyan-deep);
}
.modal__panel--success .modal__title { text-align: center; }
.modal__panel--success .modal__sub { text-align: center; margin-bottom: 30px; }
.modal__panel--success .btn-primary { width: 100%; justify-content: center; }

/* ============================================================
   PAGE LOAD ANIMATION
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .nav__links { gap: 18px; }
  .nav__links a { font-size: 9.5px; white-space: nowrap; }
  .nav__cta { padding: 9px 16px; white-space: nowrap; }
  .nav__logo-en { font-size: 16px; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero__left {
    padding: calc(var(--nav-height) + 56px) var(--pad-x) 56px var(--pad-x);
    order: 1;
  }
  .hero__right {
    order: 2;
    height: auto;
    min-height: 0;
    padding: 48px 0 64px;
  }
  .hero__scroll-hint { display: none; }

  .trust-bar__grid { grid-template-columns: repeat(2, 1fr); }
  .trust-bar__stat:nth-child(2)::after { display: none; }
  .trust-bar__stat:nth-child(1),
  .trust-bar__stat:nth-child(2) {
    border-bottom: 1px solid var(--mist);
    padding-bottom: 24px;
  }
  .trust-bar__stat:nth-child(3),
  .trust-bar__stat:nth-child(4) {
    padding-top: 24px;
  }

  .services__grid { grid-template-columns: repeat(2, 1fr); }

  .philosophy__grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .philosophy__body {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--mist);
    padding-top: 36px;
  }

  .process__steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    row-gap: 56px;
  }
  .process__steps::before { display: none; }

  .testimonials__grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤640px)
   ============================================================ */
@media (max-width: 640px) {
  :root { --nav-height: 134px; }

  .nav__logo-en { font-size: 16px; }
  .nav__contact-strip { gap: 10px; }
  .nav__contact-item { font-size: 12px; gap: 5px; }
  .nav__contact-item svg { width: 14px; height: 14px; }
  .nav__contact-icon--rednote { width: 30px !important; height: 11.2px !important; }

  /* Mobile nav */
  .nav__links {
    position: fixed;
    inset: var(--nav-height) 0 0 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    display: none;
    z-index: 190;
  }
  .nav__links.open { display: flex; }
  .nav__links a { font-size: 13px; }
  .nav__mobile-toggle { display: flex; }

  .hero__right {
    height: auto;
    padding: 36px 0 48px;
  }

  .hero__watermark {
    font-size: 30px;
    bottom: 2%;
    right: 1%;
  }

  .hero__bg-grid { inset: 3% 2%; }

  .project-card {
    width: 100%;
    padding: 22px 22px 26px;
    border-radius: 18px;
  }
  .project-card__title { font-size: 30px; }

  .pour-line { max-width: 280px; }

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

  .process__steps { grid-template-columns: 1fr; }
  .process-step { text-align: left; }
  .process-step__dot { margin-left: 0; }

  .footer__grid { grid-template-columns: 1fr; gap: 36px; }

  .footer__bottom { flex-direction: column; text-align: center; }

  .modal { padding: 28px 22px; border-radius: 20px; }
  .consult-form__row { grid-template-columns: 1fr; }
}
