:root {
  --ink: #0f172a;
  --muted: #475569;
  --soft: #f8fafc;
  --line: #e2e8f0;
  --dark: #111827;
  --dark-2: #1f2937;
  --gold: #b8860b;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  letter-spacing: -0.011em;
  opacity: 0;
  transform: translateY(8px);
  animation: pageEnter 420ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body.is-leaving {
  animation: pageLeave 180ms ease forwards;
}

@keyframes pageEnter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageLeave {
  to {
    opacity: 0.2;
    transform: translateY(4px);
  }
}

h1,
h2,
h3,
h4,
.brand {
  font-family: Montserrat, Inter, sans-serif;
  letter-spacing: 0;
}

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

p {
  color: var(--muted);
  line-height: 1.75;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(17, 24, 39, 0.92);
  backdrop-filter: blur(18px);
}

.nav {
  max-width: 1180px;
  min-height: 76px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
}

.brand span {
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  padding: 28px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  border-color: var(--gold);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: var(--white);
  font-size: 22px;
}

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 24px 22px;
  background: rgba(17, 24, 39, 0.98);
}

.mobile-menu a {
  display: block;
  color: #e2e8f0;
  padding: 13px 0;
  font-weight: 600;
}

.hero,
.dark-band {
  color: var(--white);
  background:
    linear-gradient(rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.96)),
    radial-gradient(circle at 20% 0%, rgba(184, 134, 11, 0.24), transparent 32%),
    var(--dark);
}

.hero {
  min-height: 88vh;
  padding: 160px 24px 96px;
  display: flex;
  align-items: center;
}

.page-hero {
  min-height: 58vh;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.narrow {
  width: min(860px, calc(100% - 48px));
}

.hero-content {
  max-width: 920px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow:before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--gold);
}

.hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 980px;
  color: var(--white);
  font-size: clamp(44px, 8vw, 86px);
  line-height: 0.98;
}

.page-hero h1 {
  font-size: clamp(38px, 6vw, 66px);
}

.hero .lead,
.page-hero .lead {
  max-width: 780px;
  margin: 26px 0 0;
  color: #d1d5db;
  font-size: clamp(18px, 2vw, 24px);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
  font-size: 14px;
}

.btn.light {
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
}

.btn.outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.36);
}

.btn.outline-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.section {
  padding: 100px 0;
}

.section.soft {
  background: var(--soft);
}

.page-visual {
  padding: 0 0 28px;
}

.page-visual.compact {
  padding-top: 18px;
}

.page-visual .container,
.page-visual .narrow {
  max-width: 760px;
}

.page-visual-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e5e7eb;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.page-visual-frame img {
  display: block;
  width: 100%;
  height: clamp(150px, 22vw, 220px);
  object-fit: cover;
}

.page-visual-caption {
  margin-top: 12px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.section-head {
  max-width: 760px;
  margin-bottom: 52px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.05;
}

.section-head p {
  margin-top: 18px;
  font-size: 18px;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

.card {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 30px;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.card:hover {
  border-color: #94a3b8;
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.08);
}

.card.dark {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.card.dark p {
  color: #cbd5e1;
}

.card h3 {
  margin: 0 0 14px;
  font-size: 22px;
}

.director-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(184, 134, 11, 0.48);
  background:
    linear-gradient(135deg, rgba(255, 251, 235, 0.96), rgba(255, 255, 255, 1) 52%),
    var(--white);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.12);
}

.director-card:before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--gold);
}

.director-card h3 {
  font-size: 28px;
  margin-bottom: 10px;
}

.director-intro {
  max-width: 320px;
  margin-bottom: 26px;
  color: #334155;
  font-size: 17px;
}

.director-profile {
  border-top: 1px solid rgba(184, 134, 11, 0.25);
  padding-top: 22px;
}

.director-name {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-family: Montserrat, Inter, sans-serif;
  font-size: 24px;
  font-weight: 800;
}

.director-role {
  display: block;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 16px;
}

.director-email {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(184, 134, 11, 0.42);
  background: rgba(184, 134, 11, 0.1);
  color: #7c5a06;
  font-weight: 900;
}

.category {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.feature-list,
.plain-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.feature-list li,
.plain-list li {
  position: relative;
  padding-left: 22px;
  margin: 12px 0;
  color: var(--muted);
  line-height: 1.65;
}

.feature-list li:before,
.plain-list li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 7px;
  height: 7px;
  background: var(--gold);
}

.dark-band {
  padding: 92px 0;
}

.dark-band h2,
.dark-band h3 {
  color: var(--white);
}

.dark-band p,
.dark-band li {
  color: #cbd5e1;
}

.intro {
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.25;
  color: var(--ink);
}

.faq {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 26px 0;
  text-align: left;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  font-size: 18px;
  cursor: pointer;
}

.faq-answer {
  display: none;
  padding: 0 0 28px;
}

.faq-item.open .faq-answer {
  display: block;
}

.service-detail {
  border-top: 1px solid var(--line);
  padding: 54px 0;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
}

.service-detail h2 {
  margin: 8px 0 18px;
  font-size: clamp(28px, 4vw, 42px);
}

.notice {
  border-left: 4px solid var(--gold);
  background: #fff7e0;
  padding: 22px 24px;
  margin-bottom: 40px;
}

.case-card button {
  margin-top: 18px;
  cursor: pointer;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.72);
}

.modal.open {
  display: flex;
}

.modal-panel {
  width: min(960px, 100%);
  max-height: 88vh;
  overflow: auto;
  background: var(--white);
  padding: 36px;
}

.modal-close {
  float: right;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  font-size: 22px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.stat {
  border-top: 3px solid var(--gold);
  background: var(--soft);
  padding: 22px;
}

.stat strong {
  display: block;
  font-size: 28px;
}

.contact-shell {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: start;
}

.form {
  border: 1px solid var(--line);
  padding: 34px;
  background: var(--white);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
  font-size: 14px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cbd5e1;
  padding: 11px 12px;
  font: inherit;
  background: var(--white);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.success {
  display: none;
  border: 1px solid #86efac;
  background: #f0fdf4;
  color: #166534;
  padding: 20px;
  margin-top: 18px;
}

.success.show {
  display: block;
}

.site-footer {
  background: #0b1120;
  color: var(--white);
  padding: 64px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 36px;
}

.site-footer p,
.site-footer a {
  color: #cbd5e1;
}

.site-footer a {
  display: block;
  margin: 10px 0;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 42px;
  padding-top: 24px;
  color: #94a3b8;
  font-size: 13px;
}

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

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-menu.open {
    display: block;
  }

  .hero {
    min-height: 78vh;
    padding-top: 130px;
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .service-detail,
  .contact-shell,
  .footer-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .page-visual .container,
  .page-visual .narrow {
    max-width: none;
  }

  .section {
    padding: 74px 0;
  }

  .container,
  .narrow {
    width: min(100% - 32px, 1180px);
  }
}
