/* ================================================
   Dylan Belvedere — Blueprint Engineer aesthetic
   Navy #0A1A3A → #14274E, Gold #D4AF37, Off-white #F5F1E8
   ================================================ */

:root {
  --navy-900: #050d1f;
  --navy-800: #0a1a3a;
  --navy-700: #14274e;
  --navy-600: #1e3363;
  --navy-500: #2a4380;
  --navy-line: rgba(212, 175, 55, 0.14);
  --grid-line: rgba(255, 255, 255, 0.04);
  --gold: #d4af37;
  --gold-soft: #c9a961;
  --gold-dim: rgba(212, 175, 55, 0.35);
  --paper: #f5f1e8;
  --paper-dim: rgba(245, 241, 232, 0.72);
  --paper-mute: rgba(245, 241, 232, 0.48);
  --paper-faint: rgba(245, 241, 232, 0.14);
  --ink: #0a1a3a;

  --f-display: 'Poppins', 'Montserrat', sans-serif;
  --f-body: 'Inter', 'Helvetica Neue', sans-serif;
  --f-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

  --page-max: 1440px;
  --pad-x: clamp(24px, 5vw, 96px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  background: var(--navy-800);
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
}

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

/* ---------- Blueprint grid background ---------- */
.grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 100%);
}

.grid-bg--full {
  mask-image: none;
  -webkit-mask-image: none;
  opacity: 0.55;
}

/* ---------- Typography ---------- */
.mono {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.mono-dim {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-mute);
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--paper);
}

h1 { font-size: clamp(48px, 7vw, 104px); }
h2 { font-size: clamp(36px, 4.6vw, 64px); }
h3 { font-size: clamp(20px, 1.8vw, 26px); font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: 15px; font-weight: 700; letter-spacing: 0.02em; }

p { color: var(--paper-dim); }

/* ---------- Layout primitives ---------- */
.page-wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  position: relative;
}

section {
  position: relative;
  padding: clamp(80px, 10vw, 140px) 0;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

.section-label .dot {
  width: 8px; height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}

.section-label .line {
  flex: none;
  width: 48px;
  height: 1px;
  background: var(--gold-dim);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 26, 58, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--paper-faint);
  transition: padding 0.3s ease;
}

.nav.scrolled { padding-top: 14px; padding-bottom: 14px; }

.brand-mark {
  display: flex; align-items: center; gap: 12px;
}

.brand-mono {
  width: 36px; height: 36px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.02em;
  position: relative;
}

.brand-mono::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
}

.brand-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.brand-name small {
  display: block;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-weight: 500;
  margin-top: 2px;
  text-transform: uppercase;
}

.nav-links {
  display: flex; gap: 40px;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.nav-links a {
  color: var(--paper-dim);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 1px;
  width: 0;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--paper); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--paper); }
.nav-links a.active::after { width: 100%; }

.nav-cta {
  padding: 10px 20px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  transition: all 0.25s;
  font-family: var(--f-mono);
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--navy-800);
}

/* Two-line email variant for the nav CTA */
.nav-cta.nav-cta-email {
  padding: 6px 16px;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: 0;
}

.nav-cta-email .nav-cta-label {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
}

.nav-cta-email .nav-cta-addr {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* The email address has no spaces, so it can't wrap like normal text and
   was overflowing off-screen at narrow widths instead of shrinking. Let it
   break as a last resort so it always stays inside its container. */
.nav-cta-email .nav-cta-addr,
.btn-email .btn-addr {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
}

@media (max-width: 560px) {
  /* Safety net: if brand + email CTA still can't both fit on one line,
     wrap onto a second row instead of clipping off the viewport edge. */
  .nav {
    flex-wrap: wrap;
    row-gap: 10px;
  }
}

@media (max-width: 480px) {
  .brand-name small { display: none; }
  .nav-cta.nav-cta-email {
    padding: 6px 12px;
  }
  .nav-cta-email .nav-cta-label { display: none; }
  .nav-cta-email .nav-cta-addr { font-size: 11px; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(212, 175, 55, 0.08), transparent 50%),
    linear-gradient(180deg, var(--navy-800) 0%, var(--navy-700) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: end;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-coords {
  position: absolute;
  top: 100px; left: var(--pad-x);
  right: var(--pad-x);
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
  z-index: 3;
}

@media (max-width: 1100px) {
  .hero-coords {
    position: relative;
    top: 0;
    left: 0; right: 0;
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
    margin-top: 20px;
    margin-bottom: 40px;
    gap: 20px 32px;
  }
  .hero {
    /* .hero-coords re-enters the normal flex flow below 1100px (it's
       position:absolute above that). Without an explicit column direction
       here, .hero (display:flex, no flex-direction => row) placed
       .hero-coords and .page-wrap side-by-side, squeezing the title/CTA
       column and pushing content off the right edge on mobile. */
    flex-direction: column;
    align-items: stretch;
    padding-top: 100px;
  }
}

.hero-coords .coord {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-coords .coord-value {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--paper);
  letter-spacing: 0.05em;
}

.hero-coords .coord-label {
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-title-block {
  max-width: 900px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  padding: 8px 16px;
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
}

.hero-eyebrow .pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(212, 175, 55, 0); }
}

.hero h1 {
  margin-bottom: 28px;
}

.hero h1 .gold { color: var(--gold); }
.hero h1 .outline {
  -webkit-text-stroke: 1.5px var(--gold);
  color: transparent;
  font-style: italic;
  font-weight: 300;
}

.hero-sub {
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--paper-dim);
  max-width: 640px;
  margin-bottom: 40px;
  font-weight: 300;
  line-height: 1.5;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}

.badge {
  padding: 8px 16px;
  border: 1px solid var(--paper-faint);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper-dim);
  transition: all 0.25s;
}

.badge:hover {
  border-color: var(--gold-dim);
  color: var(--paper);
}

.badge .dot {
  display: inline-block;
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

.hero-cta-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-800);
}

.btn-primary:hover {
  background: var(--paper);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--gold);
}

.btn-secondary {
  border: 1px solid var(--paper-faint);
  color: var(--paper);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn .arrow {
  display: inline-block;
  transition: transform 0.3s;
}

.btn:hover .arrow { transform: translateX(4px); }

/* Two-line variant: label on top, email address on bottom */
.btn-email {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 28px;
  text-transform: none;
  letter-spacing: 0;
}

.btn-email .btn-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.72;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: space-between;
}

.btn-email .btn-addr {
  font-family: var(--f-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Hero monogram (right side) */
.hero-monogram {
  position: relative;
  width: 320px;
  height: 320px;
  flex-shrink: 0;
}

.hero-monogram svg { width: 100%; height: 100%; }

.hero-monogram .db-letter {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 200px;
  fill: transparent;
  stroke: var(--gold);
  stroke-width: 1;
}

.hero-monogram .db-solid {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 200px;
  fill: var(--gold);
}

.hero-corner-mark {
  position: absolute;
  bottom: 60px;
  right: var(--pad-x);
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-mute);
  z-index: 3;
}

.hero-corner-mark .num {
  color: var(--gold);
  font-size: 13px;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-monogram { width: 200px; height: 200px; justify-self: end; }
  .hero-coords { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ---------- Bagua watermark (subtle Chinese motif) ---------- */
.bagua-watermark {
  position: absolute;
  width: 500px;
  height: 500px;
  opacity: 0.045;
  pointer-events: none;
}

/* ---------- Process ---------- */
.process {
  background: var(--navy-900);
  position: relative;
  overflow: hidden;
}

.process-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 72px;
}

.process-header h2 { max-width: 520px; }

.process-header p {
  font-size: 17px;
  max-width: 480px;
  color: var(--paper-dim);
  line-height: 1.6;
}

.process-flow {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  border: 1px solid var(--paper-faint);
  background: var(--paper-faint);
}

/* Dashed blueprint connector line across the top of the whole row */
.process-flow::before {
  content: '';
  position: absolute;
  top: 96px;
  left: 40px;
  right: 40px;
  height: 1px;
  background-image: linear-gradient(to right, var(--gold-dim) 50%, transparent 50%);
  background-size: 8px 1px;
  background-repeat: repeat-x;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.process-step {
  background: var(--navy-900);
  padding: 44px 36px 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: background 0.3s ease;
  z-index: 1;
}

.process-step:hover {
  background: var(--navy-800);
}

.step-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.step-idx {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.04em;
}

.step-tag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-mute);
  padding: 5px 10px;
  border: 1px solid var(--paper-faint);
  border-radius: 999px;
  white-space: nowrap;
}

.step-icon {
  width: 48px; height: 48px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: var(--navy-900);
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
  transition: transform 0.4s ease;
}

.process-step:hover .step-icon {
  transform: rotate(45deg);
}

.process-step h3 {
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 14px;
  color: var(--paper);
  font-family: var(--f-display);
  font-weight: 600;
}

.process-step > p {
  font-size: 14.5px;
  color: var(--paper-dim);
  line-height: 1.6;
  margin-bottom: 28px;
  flex: 1;
}

.step-foot {
  border-top: 1px solid var(--paper-faint);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.step-foot span {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-mute);
}

.step-foot strong {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--gold);
  font-weight: 500;
}

/* Note callout below the flow */
.process-note {
  margin-top: 48px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  padding: 28px 36px;
  border: 1px solid var(--paper-faint);
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.04), transparent 60%);
  position: relative;
}

.process-note::before,
.process-note::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border: 1.5px solid var(--gold);
}
.process-note::before {
  top: -1px; left: -1px;
  border-right: none; border-bottom: none;
}
.process-note::after {
  bottom: -1px; right: -1px;
  border-left: none; border-top: none;
}

.note-mark {
  width: 40px; height: 40px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  flex-shrink: 0;
}

.note-body span.mono {
  display: block;
  margin-bottom: 8px;
}

.note-body p {
  font-size: 15px;
  color: var(--paper-dim);
  line-height: 1.6;
  max-width: 780px;
}

.note-body p strong {
  color: var(--paper);
  font-weight: 500;
}

@media (max-width: 1100px) {
  .process-flow { grid-template-columns: repeat(2, 1fr); }
  .process-flow::before { display: none; }
}

@media (max-width: 900px) {
  .process-header { grid-template-columns: 1fr; gap: 24px; }
  .process-flow { grid-template-columns: 1fr; }
  .step-idx { font-size: 48px; }
  .process-note { grid-template-columns: 1fr; padding: 24px; }
}

/* ---------- About ---------- */
.about {
  background: var(--navy-800);
  position: relative;
}

.about-inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
  align-items: start;
}

.about-monogram-card {
  aspect-ratio: 1;
  border: 1px solid var(--paper-faint);
  position: relative;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.03), transparent);
}

.about-monogram-card::before,
.about-monogram-card::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  border: 1.5px solid var(--gold);
}

.about-monogram-card::before {
  top: -1px; left: -1px;
  border-right: none; border-bottom: none;
}

.about-monogram-card::after {
  bottom: -1px; right: -1px;
  border-left: none; border-top: none;
}

.monogram-large {
  flex: 1;
  display: grid;
  place-items: center;
}

.monogram-large svg {
  width: 60%;
  height: auto;
}

.monogram-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-mute);
}

.monogram-meta span:last-child { color: var(--gold); }

.about-body h2 {
  margin-bottom: 32px;
}

.about-body .lead {
  font-size: 20px;
  line-height: 1.55;
  color: var(--paper);
  font-weight: 300;
  margin-bottom: 20px;
}

.about-body .lead strong {
  color: var(--gold);
  font-weight: 500;
}

.about-body p {
  font-size: 16px;
  color: var(--paper-dim);
  margin-bottom: 20px;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--paper-faint);
  border-bottom: 1px solid var(--paper-faint);
}

.stat {
  padding: 24px 20px;
  border-right: 1px solid var(--paper-faint);
  position: relative;
}

.stat:last-child { border-right: none; }

.stat-num {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.stat-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-mute);
}

@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-monogram-card { max-width: 260px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--paper-faint); }
  .stat:nth-child(even) { border-right: none; }
}

/* ---------- Services ---------- */
.services {
  background: var(--navy-700);
  position: relative;
}

.services-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 64px;
}

.services-header h2 { max-width: 500px; }

.services-header p {
  font-size: 17px;
  max-width: 480px;
  color: var(--paper-dim);
  line-height: 1.6;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--paper-faint);
  border: 1px solid var(--paper-faint);
}

.service-card {
  background: var(--navy-700);
  padding: 48px 40px;
  transition: background 0.3s ease;
  position: relative;
}

.service-card:hover {
  background: var(--navy-600);
}

.service-num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-num::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold-dim);
  max-width: 60px;
}

.service-icon {
  width: 56px; height: 56px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  transition: transform 0.4s ease;
  color: var(--gold);
}

.service-card:hover .service-icon {
  transform: rotate(45deg);
}

.service-card h3 {
  font-size: 26px;
  margin-bottom: 16px;
  color: var(--paper);
}

.service-desc {
  color: var(--paper-dim);
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.6;
}

.service-bullets {
  list-style: none;
  padding: 0;
}

.service-bullets li {
  font-size: 13px;
  color: var(--paper-mute);
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  border-top: 1px solid var(--paper-faint);
  font-family: var(--f-mono);
  letter-spacing: 0.05em;
}

.service-bullets li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-family: var(--f-mono);
}

@media (max-width: 900px) {
  .services-header { grid-template-columns: 1fr; gap: 24px; }
  .service-grid { grid-template-columns: 1fr; }
}

/* ---------- Experience ---------- */
.experience {
  background: var(--navy-800);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  gap: 40px;
  flex-wrap: wrap;
}

.exp-header h2 { max-width: 600px; }

.exp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.exp-card {
  border: 1px solid var(--paper-faint);
  padding: 32px;
  background: rgba(255,255,255,0.015);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.exp-card:hover {
  border-color: var(--gold-dim);
  background: rgba(212, 175, 55, 0.03);
}

.exp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.exp-card:hover::before { transform: scaleX(1); }

.exp-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 20px;
}

.exp-role {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--paper);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.exp-company {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.exp-meta {
  text-align: right;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper-mute);
  line-height: 1.7;
  flex-shrink: 0;
}

.exp-meta .date { color: var(--paper); }

.exp-bullets {
  list-style: none;
  padding: 0;
}

.exp-bullets li {
  font-size: 14px;
  color: var(--paper-dim);
  padding: 8px 0 8px 22px;
  position: relative;
  line-height: 1.55;
  border-top: 1px solid var(--paper-faint);
}

.exp-bullets li:first-child { border-top: none; padding-top: 12px; }

.exp-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 12px;
  height: 1px;
  background: var(--gold);
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed var(--paper-faint);
}

.exp-tag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-mute);
  padding: 4px 10px;
  border: 1px solid var(--paper-faint);
  border-radius: 3px;
}

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

/* ---------- Portfolio industries ---------- */
.industries {
  background: var(--navy-700);
  position: relative;
  overflow: hidden;
}

.industries-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: center;
}

.industries-left h2 { margin-bottom: 24px; }

.industries-left p {
  color: var(--paper-dim);
  font-size: 17px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.industry-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gold-dim);
  transition: all 0.3s;
}

.industry-link:hover { border-bottom-color: var(--gold); gap: 20px; }

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

.industry-chip {
  padding: 28px 24px;
  border: 1px solid var(--paper-faint);
  background: rgba(255,255,255,0.015);
  transition: all 0.3s;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.industry-chip:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.industry-chip .icon {
  color: var(--gold);
  margin-bottom: 16px;
}

.industry-chip .label {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--paper);
  margin-bottom: 4px;
}

.industry-chip .count {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-mute);
}

@media (max-width: 900px) {
  .industries-inner { grid-template-columns: 1fr; gap: 40px; }
  .industry-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .industry-chip { padding: 20px 16px; }
}

/* ---------- Why Shenzhen ---------- */
.why-sz {
  background: var(--navy-900);
  position: relative;
  overflow: hidden;
}

.why-sz-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.why-list {
  list-style: none;
  padding: 0;
  margin-top: 32px;
}

.why-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--paper-faint);
  align-items: start;
}

.why-list li:last-child { border-bottom: none; }

.why-list .idx {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--gold);
  padding-top: 2px;
}

.why-list .txt {
  font-size: 16px;
  color: var(--paper-dim);
  line-height: 1.55;
}

.why-list .txt strong {
  color: var(--paper);
  font-weight: 600;
}

.skyline-frame {
  aspect-ratio: 4/5;
  border: 1px solid var(--paper-faint);
  position: relative;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(ellipse at bottom, rgba(212, 175, 55, 0.06), transparent 60%);
}

.skyline-frame::before,
.skyline-frame::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border: 1.5px solid var(--gold);
}

.skyline-frame::before {
  top: -1px; left: -1px;
  border-right: none; border-bottom: none;
}

.skyline-frame::after {
  bottom: -1px; right: -1px;
  border-left: none; border-top: none;
}

.skyline-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-mute);
}

.skyline-meta strong { color: var(--gold); font-weight: 500; }

.skyline-svg {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 40px 0 20px;
}

.skyline-svg svg { width: 100%; height: auto; max-height: 100%; }

@media (max-width: 900px) {
  .why-sz-inner { grid-template-columns: 1fr; gap: 40px; }
  .skyline-frame { max-width: 400px; }
}

/* ---------- Credentials ---------- */
.credentials {
  background: var(--navy-800);
  padding-top: 100px;
  padding-bottom: 100px;
}

.cred-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.cred-item {
  padding-top: 24px;
  border-top: 1px solid var(--gold-dim);
}

.cred-item .cred-icon {
  color: var(--gold);
  margin-bottom: 16px;
  font-size: 22px;
}

.cred-item .cred-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--paper);
  margin-bottom: 8px;
  line-height: 1.3;
}

.cred-item .cred-sub {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.cred-item .cred-body {
  font-size: 13px;
  color: var(--paper-dim);
  line-height: 1.55;
}

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

@media (max-width: 600px) {
  .cred-grid { grid-template-columns: 1fr; }
}

/* ---------- Languages ---------- */
.languages {
  background: var(--navy-700);
}

.lang-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: center;
}

.lang-hero {
  position: relative;
}

.lang-cn-char {
  font-family: 'STSong', 'SimSun', serif;
  font-size: clamp(180px, 20vw, 320px);
  color: var(--gold);
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: -0.05em;
  position: relative;
}

.lang-cn-char .romanization {
  position: absolute;
  bottom: -20px;
  left: 0;
  font-family: var(--f-mono);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--paper);
  font-weight: 400;
  text-transform: uppercase;
}

.lang-list {
  list-style: none;
  padding: 0;
}

.lang-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--paper-faint);
}

.lang-list li:last-child { border-bottom: 1px solid var(--paper-faint); }

.lang-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--paper);
}

.lang-name small {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--paper-mute);
  text-transform: uppercase;
  font-weight: 400;
  margin-top: 4px;
}

.lang-level {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: right;
}

.lang-dots {
  display: flex;
  gap: 4px;
  margin-top: 6px;
  justify-content: flex-end;
}

.lang-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--paper-faint);
}

.lang-dots span.on { background: var(--gold); }

@media (max-width: 900px) {
  .lang-inner { grid-template-columns: 1fr; gap: 40px; text-align: left; }
  .lang-hero { text-align: center; }
}

/* ---------- Contact / CTA ---------- */
.contact {
  background: var(--navy-900);
  position: relative;
  overflow: hidden;
  padding-top: 140px;
  padding-bottom: 100px;
}

.contact-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.contact h2 {
  font-size: clamp(56px, 8vw, 128px);
  margin-bottom: 32px;
  line-height: 1;
}

.contact h2 .outline {
  -webkit-text-stroke: 1.5px var(--gold);
  color: transparent;
  font-style: italic;
  font-weight: 300;
  display: block;
}

.contact-sub {
  font-size: 18px;
  color: var(--paper-dim);
  max-width: 500px;
  margin: 0 auto 48px;
  line-height: 1.5;
}

.contact-cta-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
  padding-top: 48px;
  border-top: 1px solid var(--paper-faint);
}

.contact-detail {
  text-align: left;
}

.contact-detail .label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.contact-detail .value {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--paper);
  word-break: break-all;
}

.contact-detail .value a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}

.contact-detail .value a:hover { border-bottom-color: var(--gold); }

@media (max-width: 700px) {
  .contact-details { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Footer ---------- */
footer {
  padding: 40px var(--pad-x);
  border-top: 1px solid var(--paper-faint);
  background: var(--navy-900);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper-mute);
}

footer .live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-right: 8px;
  animation: pulse 2s infinite;
  vertical-align: middle;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.4s; }
.reveal[data-delay="6"] { transition-delay: 0.48s; }

/* ---------- /work page specific ---------- */
.work-hero {
  padding-top: 180px;
  padding-bottom: 80px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(212, 175, 55, 0.08), transparent 50%),
    var(--navy-800);
  position: relative;
  overflow: hidden;
}

.work-hero h1 {
  font-size: clamp(56px, 8vw, 120px);
  max-width: 900px;
  margin-bottom: 32px;
}

.work-hero h1 .outline {
  -webkit-text-stroke: 1.5px var(--gold);
  color: transparent;
  font-style: italic;
  font-weight: 300;
}

.work-hero .subtitle {
  font-size: 20px;
  color: var(--paper-dim);
  max-width: 600px;
  font-weight: 300;
  margin-bottom: 40px;
}

.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.filter-chip {
  padding: 10px 18px;
  border: 1px solid var(--paper-faint);
  color: var(--paper-dim);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all 0.25s;
  cursor: pointer;
}

.filter-chip.active {
  background: var(--gold);
  color: var(--navy-800);
  border-color: var(--gold);
}

.filter-chip:not(.active):hover {
  border-color: var(--gold-dim);
  color: var(--paper);
}

/* Work industry sections */
.industry-section {
  padding: 80px 0;
  border-top: 1px solid var(--paper-faint);
  background: var(--navy-800);
}

.industry-section:nth-child(even) { background: var(--navy-700); }

.industry-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 48px;
  gap: 40px;
  flex-wrap: wrap;
}

.industry-title-row h2 {
  font-size: clamp(32px, 4vw, 48px);
}

.industry-desc {
  color: var(--paper-dim);
  max-width: 400px;
  font-size: 14px;
  line-height: 1.6;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.project-card {
  border: 1px solid var(--paper-faint);
  background: rgba(255,255,255,0.015);
  transition: all 0.3s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-4px);
}

.project-slot {
  aspect-ratio: 16/10;
  background: var(--navy-900);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--paper-faint);
}

.project-slot image-slot {
  width: 100%;
  height: 100%;
  display: block;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--paper-mute);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 24px 24px;
}

.image-placeholder svg { color: var(--gold-dim); }

.image-placeholder span {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  max-width: 80%;
}

.project-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-mute);
  margin-bottom: 16px;
}

.project-meta .status { color: var(--gold); }

.project-body h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.project-company {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.project-body p {
  font-size: 14px;
  color: var(--paper-dim);
  margin-bottom: 20px;
  line-height: 1.6;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px dashed var(--paper-faint);
}

.project-tag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-mute);
  padding: 4px 10px;
  border: 1px solid var(--paper-faint);
  border-radius: 3px;
}

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

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-dim);
  transition: color 0.25s, gap 0.25s;
  margin-bottom: 32px;
}

.back-link:hover { color: var(--gold); gap: 16px; }
