:root {
  --paper: #f5f4ed;
  --ink: #11130f;
  --lime: #d4fa5e;
  --line: rgba(17, 19, 15, 0.16);
  --max: 1296px;
  --gutter: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans SC", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

button,
input,
textarea {
  font: inherit;
  color: inherit;
  border-radius: 0;
}

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

h1, h2, h3 {
  font-family: "Noto Sans SC", sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 5;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  text-decoration: none;
}

.skip-link:focus { top: 12px; }

.shell {
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 92px;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  flex: none;
}

.wordmark {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -0.045em;
  line-height: 1;
}

.brand-zh {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

#site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: auto;
}

#site-nav a {
  color: inherit;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.menu-button {
  display: none;
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  border: 0;
  background: transparent;
  line-height: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex: none;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  min-height: 44px;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.button img { filter: invert(1); }

.header-cta { margin-left: 8px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
}

.hero {
  padding: 24px 0 56px;
  overflow-x: clip;
}

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

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 100px;
  line-height: 1.1;
}

.hero-copy p {
  max-width: 22em;
  margin: 32px 0 40px;
  font-size: 24px;
  line-height: 1.65;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.hero-photo {
  width: 143%;
  max-width: none;
  aspect-ratio: 1402 / 1122;
  object-fit: contain;
  transform: translateX(-18%);
}

.services { padding: 108px 0 120px; }

.services h2 { font-size: 64px; }

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 72px;
}

.service-grid article { padding-right: 64px; }

.service-grid article + article {
  border-left: 1px solid var(--line);
  padding: 0 0 0 64px;
}

.service-grid h3 { font-weight: 900; }

.service-kicker {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.service-title {
  display: block;
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.service-grid p {
  max-width: none;
  margin-top: 24px;
  font-size: 24px;
  line-height: 1.65;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.process {
  background: var(--lime);
  padding: 88px 0;
}

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

.process h3 { font-size: 36px; }

.step-arrow { flex: none; }

.contact { padding: 108px 0 88px; }

.contact-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.contact h2 { font-size: 64px; }

.contact p {
  margin-top: 20px;
  font-size: 22px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
}

.site-footer .wordmark { font-size: 32px; }

.footer-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.footer-meta {
  text-align: right;
  font-size: 14px;
  line-height: 1.7;
}

.footer-meta a { color: inherit; }

dialog {
  border: 0;
  padding: 28px 24px 24px;
  width: min(440px, calc(100vw - 40px));
  background: var(--paper);
  color: var(--ink);
}

dialog:not([open]) { display: none; }

dialog::backdrop { background: rgba(17, 19, 15, 0.48); }

.inquiry-form {
  display: grid;
  gap: 10px;
}

.dialog-close {
  justify-self: end;
  border: 0;
  background: transparent;
  min-width: 44px;
  min-height: 44px;
  padding: 4px;
  line-height: 0;
  cursor: pointer;
}

.notice {
  margin: 0 36px 12px 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.inquiry-form label { font-size: 14px; font-weight: 700; }

.inquiry-form input[type="email"],
.inquiry-form textarea {
  width: 100%;
  border: 1px solid var(--ink);
  background: transparent;
  padding: 12px;
  font-size: 16px;
}

.inquiry-form textarea { min-height: 128px; resize: vertical; }

.privacy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.privacy-row label { font-weight: 500; }

.privacy-row a { color: inherit; }

.privacy-row label { line-height: 1.45; }

.field-error {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.receipt:not(:empty) {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.qa-banner {
  margin: 0;
  padding: 10px 48px 10px 12px;
  background: var(--lime);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.inquiry-form { position: relative; }

.inquiry-form .dialog-close,
.privacy-panel .dialog-close {
  position: absolute;
  top: 0;
  right: 0;
}

.inquiry-form input[aria-invalid="true"],
.inquiry-form textarea[aria-invalid="true"],
.inquiry-form input[type="checkbox"][aria-invalid="true"] {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.submit { margin-top: 8px; }

.submit:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.privacy-panel {
  position: relative;
  display: grid;
  gap: 10px;
}

.privacy-panel h2 {
  margin-right: 44px;
  font-size: 28px;
}

.privacy-panel p {
  font-size: 16px;
  line-height: 1.55;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .hero { overflow-x: visible; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(56px, 8vw, 84px); }
  .hero-photo {
    width: 100%;
    max-width: 100%;
    transform: none;
    object-fit: contain;
  }
}

@media (max-width: 960px) {
  .site-header { position: relative; }
  #site-nav,
  .header-cta { display: none; }
  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  #site-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 4;
    margin: 0;
    padding: 8px var(--gutter) 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    gap: 4px;
  }

  #site-nav.is-open a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
}

@media (max-width: 800px) {
  .service-grid,
  .process-row,
  .contact-row,
  .footer-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .service-grid { gap: 48px; }

  .service-grid article { border: 0; padding: 0; }

  .service-grid article + article {
    border: 0;
    border-top: 1px solid var(--line);
    padding: 48px 0 0;
  }

  .step-arrow { transform: rotate(90deg); }
  .footer-meta { text-align: left; }
  .contact h2,
  .services h2 { font-size: 48px; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }

  dialog {
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px);
    overflow: auto;
    padding-top: max(28px, env(safe-area-inset-top));
    padding-right: max(24px, env(safe-area-inset-right));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    padding-left: max(24px, env(safe-area-inset-left));
  }

  .header-inner { min-height: 72px; }
  .hero { padding: 40px 0 56px; }
  .hero h1 { font-size: 56px; }
  .hero-copy p {
    margin: 20px 0 28px;
    font-size: 22px;
  }
  .hero-actions { align-items: flex-start; gap: 18px; }
  .services { padding: 64px 0 72px; }
  .services h2,
  .contact h2 { font-size: 40px; }
  .service-grid { margin-top: 36px; }
  .service-title { font-size: 32px; }
  .service-grid p { font-size: 22px; }
  .process { padding: 48px 0; }
  .process h3 { font-size: 28px; }
  .contact { padding: 64px 0 56px; }
  .wordmark,
  .site-footer .wordmark { font-size: 22px; }
  .brand-zh { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.skip-link:not(:focus) { transform: translateY(-150%); }
