:root {
  --ink: #e8eee9;
  --ink-deep: #101814;
  --muted: #9aaba0;
  --line: rgba(232, 238, 233, 0.12);
  --bg: #121a16;
  --bg-soft: #18221d;
  --bg-panel: rgba(255, 255, 255, 0.04);
  --surface: rgba(255, 255, 255, 0.06);
  --accent: #7f9a8a;
  --accent-strong: #5f7d6c;
  --accent-hover: #93ad9d;
  --accent-soft: rgba(127, 154, 138, 0.18);
  --font-display: "Syne", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "Syne", sans-serif;
  --header-h: 72px;
  --container: min(1120px, calc(100% - 48px));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease, opacity 180ms ease;
}

a:hover { color: var(--accent-hover); }

.container {
  width: var(--container);
  margin: 0 auto;
}

/* Loader */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #0e1411;
  transition: opacity 500ms var(--ease), visibility 500ms;
}
.page-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.page-loader img {
  width: 52px;
  height: auto;
  animation: breathe 1.4s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.4; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1); }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 320ms ease, backdrop-filter 320ms ease, border-color 320ms ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(16, 24, 20, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}

.header-inner {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: #f4f8f5;
}
.brand:hover { color: #fff; opacity: 0.92; }

.brand-logos {
  position: relative;
  width: 30px;
  height: 24px;
  display: block;
  flex-shrink: 0;
}
.brand-logos img {
  position: absolute;
  inset: 0;
  width: 30px;
  height: auto;
}
.brand-logos .logo-dark { opacity: 0; }
.brand-logos .logo-light { opacity: 1; }

/* If ever on light header, swap — currently dark theme keeps light logo */
.site-header.is-light .brand-logos .logo-dark { opacity: 1; }
.site-header.is-light .brand-logos .logo-light { opacity: 0; }

.nav {
  display: flex;
  align-items: center;
  gap: 8px 28px;
}
.nav > a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(244, 248, 245, 0.82);
}
.nav > a:hover { color: #fff; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 11px;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  color: #f4f8f5;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: currentColor;
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  background: rgba(255, 255, 255, 0.06);
}
.lang-toggle span {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 11px;
  color: rgba(244, 248, 245, 0.6);
}
.lang-toggle span.active {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-deep);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  padding: 13px 24px;
  border: 0;
  transition: transform 180ms var(--ease), background 180ms ease, color 180ms ease, opacity 180ms ease;
}
.btn:active { transform: scale(0.98); }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--accent-strong);
  color: #fff !important;
}
.btn-primary:hover { background: var(--accent-hover); color: #fff !important; }
.btn-text {
  padding-left: 8px;
  padding-right: 8px;
  background: transparent;
  color: inherit;
  opacity: 0.88;
}
.btn-text:hover { opacity: 1; color: inherit; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  color: #f7faf8;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.2%, -0.8%, 0); }
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 16, 13, 0.28) 0%, rgba(10, 16, 13, 0.12) 32%, rgba(10, 16, 13, 0.78) 100%),
    linear-gradient(90deg, rgba(10, 16, 13, 0.5) 0%, transparent 58%);
}

.hero-content {
  position: relative;
  width: var(--container);
  margin: 0 auto 0 max(24px, calc((100% - min(1120px, 100% - 48px)) / 2));
  padding: calc(var(--header-h) + 48px) 0 72px;
  max-width: 720px;
  animation: rise 1s var(--ease) both;
}

.hero-mark {
  width: 56px;
  height: auto;
  margin-bottom: 22px;
  opacity: 0.95;
}

.hero-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.hero-brand-en {
  margin: 10px 0 28px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
}

.hero h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  max-width: 16em;
}

.hero-sub {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.75;
  opacity: 0.82;
  max-width: 32em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Shared section rhythm — continue hero atmosphere */
.section {
  position: relative;
  padding: clamp(80px, 12vh, 128px) 0;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 10% 0%, rgba(95, 125, 108, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 100%, rgba(95, 125, 108, 0.08), transparent 50%);
}

.section > .container { position: relative; }

.section-intro {
  max-width: 560px;
  margin-bottom: 56px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-intro h2,
.about-copy h2,
.contact-copy h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #f3f7f4;
}

.lede,
.about-copy p,
.contact-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.about-copy p + p { margin-top: 14px; }

/* Services */
.services {
  background: linear-gradient(180deg, #101814 0%, #141e19 100%);
  border-top: 1px solid var(--line);
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.service-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.service-row.reverse {
  grid-template-columns: 0.8fr 1.2fr;
}
.service-row.reverse .service-media { order: 2; }
.service-row.reverse .service-copy { order: 1; }

.service-media {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 16 / 10;
  background: #0b100e;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.7);
}
.service-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 16, 13, 0.35));
  pointer-events: none;
}
.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms var(--ease);
  filter: saturate(0.85) contrast(1.02);
}
.service-row:hover .service-media img {
  transform: scale(1.04);
}

.service-copy .idx {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 14px;
}
.service-copy h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f3f7f4;
}
.service-copy > p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
}
.service-copy ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-copy li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  color: #c5d2c9;
}
.service-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 1.5px;
  background: var(--accent);
}

/* About */
.about {
  background:
    linear-gradient(180deg, rgba(10, 16, 13, 0.55), rgba(10, 16, 13, 0.72)),
    url("assets/hero-visual.webp?v=2") center / cover no-repeat;
  border-top: 1px solid var(--line);
}
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.about-facts {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: rgba(12, 18, 15, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.about-facts > div {
  padding: 22px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.about-facts > div:nth-child(2n) { border-right: 0; }
.about-facts .wide {
  grid-column: 1 / -1;
  border-right: 0;
  border-bottom: 0;
}
.about-facts dt {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.about-facts dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: #eef3ef;
}

/* Contact */
.contact {
  background: linear-gradient(180deg, #141e19 0%, #101814 100%);
  border-top: 1px solid var(--line);
}
.contact-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.contact-meta {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-meta span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.contact-meta strong,
.contact-meta a {
  font-size: 15px;
  font-weight: 600;
  color: #e8eee9;
}
.contact-meta a { color: var(--accent-hover); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.form-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 4px;
}
.form-head strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #f3f7f4;
}
.form-head small {
  color: var(--muted);
  font-size: 12px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #c8d4cc;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  background: rgba(8, 12, 10, 0.45);
  font: inherit;
  font-size: 14px;
  color: #f3f7f4;
  outline: none;
  resize: vertical;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(232, 238, 233, 0.35);
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Footer */
.site-footer {
  padding: 36px 0 40px;
  border-top: 1px solid var(--line);
  background: #0b100e;
  color: #d7e0da;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-brand img {
  width: 36px;
  height: auto;
  opacity: 0.95;
}
.footer-brand strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #f0f4f1;
}
.footer-brand p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #8f9f94;
}
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-size: 13px;
  color: #8f9f94;
}
.footer-right a { color: #d7e0da; }
.footer-right a:hover { color: #fff; }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 900px) {
  .service-row,
  .service-row.reverse,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .service-row.reverse .service-media,
  .service-row.reverse .service-copy { order: initial; }
  .service-list { gap: 48px; }
  .hero-content {
    margin-left: 24px;
    margin-right: 24px;
    width: auto;
    padding-bottom: 56px;
  }
  .footer-right { align-items: flex-start; }

  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 20px;
    background: rgba(12, 18, 15, 0.96);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 200ms ease, transform 200ms ease;
  }
  body.nav-open .nav {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  body.nav-open .site-header {
    background: rgba(12, 18, 15, 0.96);
    border-bottom-color: var(--line);
  }
  .nav > a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .lang-toggle { margin-top: 14px; align-self: flex-start; }
}

@media (max-width: 560px) {
  .about-facts { grid-template-columns: 1fr; }
  .about-facts > div { border-right: 0; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
