:root {
  color-scheme: light;
  --bg: #f4f1e8;
  --ink: #10151b;
  --ink-soft: #303946;
  --muted: #68707b;
  --line: rgba(26, 35, 44, 0.14);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.9);
  --deep: #0b1117;
  --deep-2: #132522;
  --teal: #22c7b8;
  --teal-deep: #0d6d68;
  --gold: #d8b66a;
  --mist: #e5f3ef;
  --shadow: 0 24px 70px rgba(11, 17, 23, 0.14);
  --shadow-soft: 0 16px 42px rgba(16, 21, 27, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #0b1117 0, #0b1117 460px, var(--bg) 461px),
    var(--bg);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(16, 21, 27, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 21, 27, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, transparent 0, #000 28%, #000 72%, transparent 100%);
  pointer-events: none;
}

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

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

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 17, 23, 0.76);
  color: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(34, 199, 184, 0.44);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(34, 199, 184, 0.95), rgba(216, 182, 106, 0.88)),
    var(--teal-deep);
  color: #071014;
  font-size: 18px;
  box-shadow: 0 0 24px rgba(34, 199, 184, 0.22);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 6px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(34, 199, 184, 0.14);
  color: #ffffff;
  outline: none;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(620px, calc(100vh - 116px));
  padding: 88px 0 40px;
  overflow: hidden;
  color: #ffffff;
  background: var(--deep);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 17, 23, 0.96) 0%, rgba(11, 17, 23, 0.84) 38%, rgba(11, 17, 23, 0.32) 72%, rgba(11, 17, 23, 0.6) 100%),
    linear-gradient(180deg, rgba(11, 17, 23, 0.12) 0%, rgba(11, 17, 23, 0.9) 100%);
}

.hero::after {
  z-index: -1;
  background:
    linear-gradient(100deg, transparent 0 18%, rgba(34, 199, 184, 0.16) 19%, transparent 20% 100%),
    linear-gradient(140deg, transparent 0 58%, rgba(216, 182, 106, 0.14) 59%, transparent 60% 100%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.92;
  transform: scale(1.02);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(292px, 0.64fr);
  align-items: center;
  gap: 64px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(46px, 8vw, 92px);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: 0;
}

.lead {
  max-width: 700px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 20px;
}

.hero-tags,
.signal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags {
  margin-top: 30px;
}

.hero-tags span,
.signal-strip span {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
}

.hero-tags span {
  padding: 8px 13px;
  font-size: 14px;
}

.hero-panel,
.contact-card,
.subject-box,
.service-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--glass);
  box-shadow: var(--shadow-soft);
}

.hero-panel {
  position: relative;
  padding: 28px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(9, 16, 22, 0.54);
  color: rgba(255, 255, 255, 0.86);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(34, 199, 184, 0.16), transparent 52%, rgba(216, 182, 106, 0.1));
  pointer-events: none;
}

dl {
  margin: 0;
}

.hero-panel div,
.subject-list div {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.subject-list div {
  border-bottom-color: var(--line);
}

.hero-panel div:first-child,
.subject-list div:first-child {
  padding-top: 0;
}

.hero-panel div:last-child,
.subject-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

dt {
  color: var(--muted);
  font-size: 14px;
}

.hero-panel dt {
  color: rgba(255, 255, 255, 0.52);
}

dd {
  margin: 0;
  font-weight: 700;
}

.signal-strip {
  margin-top: 42px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.signal-strip span {
  min-width: 126px;
  padding: 10px 16px;
  text-align: center;
}

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

.section.muted {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.22)),
    var(--mist);
}

.narrow {
  max-width: 900px;
}

.narrow p,
.text-block p,
.contact-note {
  color: var(--ink-soft);
  font-size: 18px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.service-card {
  position: relative;
  min-height: 224px;
  padding: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.84);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.service-card::before {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-bottom: 24px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 199, 184, 0.34);
  box-shadow: var(--shadow);
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.split,
.contact-layout,
.subject-box {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.text-block {
  padding-left: 28px;
  border-left: 3px solid rgba(34, 199, 184, 0.42);
}

.text-block p:last-child {
  margin-bottom: 0;
}

.contact-card {
  display: grid;
  gap: 14px;
  padding: 30px;
  background: var(--glass-strong);
  font-style: normal;
  color: #27313b;
}

.contact-card span {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.contact-card span:last-child {
  border-bottom: 0;
}

.subject {
  padding-top: 70px;
}

.subject-box {
  padding: 36px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(229, 243, 239, 0.72)),
    #ffffff;
  box-shadow: var(--shadow);
}

.subject-list {
  min-width: 0;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(90deg, rgba(34, 199, 184, 0.08), transparent 38%, rgba(216, 182, 106, 0.09)),
    var(--deep);
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner p {
  margin: 0;
}

.record-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

.record-links a {
  color: #ffffff;
}

.record-links a:hover,
.record-links a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .contact-layout,
  .subject-box {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero {
    min-height: auto;
    padding: 72px 0 42px;
  }

  .hero-panel {
    max-width: 560px;
  }

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

@media (max-width: 760px) {
  .header-inner {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .site-nav a {
    padding-left: 0;
    padding-right: 10px;
    white-space: nowrap;
  }

  .hero {
    padding: 48px 0 38px;
  }

  .lead,
  .narrow p,
  .text-block p,
  .contact-note {
    font-size: 16px;
  }

  .section {
    padding: 60px 0;
  }

  .text-block {
    padding-left: 18px;
  }

  .signal-strip {
    display: none;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .record-links {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .wrap {
    width: min(100% - 28px, 1120px);
  }

  .brand {
    font-size: 16px;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(11, 17, 23, 0.96) 0%, rgba(11, 17, 23, 0.82) 100%),
      linear-gradient(180deg, rgba(11, 17, 23, 0.18) 0%, rgba(11, 17, 23, 0.9) 100%);
  }

  .hero-media img {
    object-position: 58% center;
  }

  h1 {
    font-size: 44px;
  }

  .hero-tags,
  .signal-strip {
    gap: 8px;
  }

  .hero-tags span,
  .signal-strip span {
    font-size: 13px;
  }

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

  .service-card {
    min-height: auto;
  }

  .hero-panel div,
  .subject-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
