:root {
  --bg: #ffffff;
  --soft: #f5f5f3;
  --ink: #111111;
  --muted: #656565;
  --line: #dededb;
  --max: 1180px;
  --header: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.skip-link {
  position: fixed; left: 12px; top: -80px; z-index: 999;
  background: #111; color: #fff; padding: 12px 16px;
}
.skip-link:focus { top: 12px; }

.shell { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.section-anchor { scroll-margin-top: calc(var(--header) + 18px); }

.site-header {
  height: var(--header);
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 14px; min-width: 0; }
.brand-mark { font-size: 28px; font-weight: 800; letter-spacing: -.06em; line-height: 1; }
.brand-divider { width: 1px; height: 30px; background: #bdbdb9; }
.brand-name { font-size: 14px; letter-spacing: .02em; white-space: nowrap; }
.brand-name b { font-weight: 500; }
.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a { position: relative; font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 1px; background: #111; transition: right .2s ease; }
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 11px; cursor: pointer; }
.menu-toggle span { display: block; height: 1px; background: #111; margin: 7px 0; transition: transform .2s ease; }

.hero { min-height: 650px; display: flex; align-items: center; border-bottom: 1px solid var(--line); background: linear-gradient(90deg,#fff 0%,#fff 68%,#f7f7f5 68%,#f7f7f5 100%); }
.hero-grid { display: grid; grid-template-columns: 1.45fr .55fr; gap: 96px; align-items: end; padding-block: 108px; }
.eyebrow { margin: 0 0 18px; font-size: 11px; line-height: 1.3; font-weight: 750; text-transform: uppercase; letter-spacing: .18em; color: #424242; }
.hero h1, .section-heading h2 { margin: 0; font-weight: 650; letter-spacing: -.045em; }
.hero h1 { max-width: 760px; font-size: clamp(58px, 7vw, 104px); line-height: .94; }
.hero-text { max-width: 650px; margin: 36px 0 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 1px solid #111; font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; transition: .18s ease; }
.button-dark { background: #111; color: #fff; }
.button-dark:hover { background: #2b2b2b; }
.button-light { background: transparent; }
.button-light:hover { background: #f0f0ee; }
.hero-note { align-self: stretch; border-left: 1px solid var(--line); padding-left: 32px; display: flex; flex-direction: column; justify-content: space-between; min-height: 330px; }
.hero-note-top, .hero-note-bottom { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.hero-note-main { font-size: 24px; line-height: 1.35; font-weight: 600; letter-spacing: -.02em; }

.intro, .values, .contact { padding: 120px 0; }
.intro { background: var(--soft); border-bottom: 1px solid var(--line); }
.two-col, .values-grid, .contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 110px; align-items: start; }
.section-heading h2 { max-width: 620px; font-size: clamp(38px, 4.8vw, 66px); line-height: 1.02; }
.section-heading.compact { margin-bottom: 54px; }
.section-heading.compact h2 { font-size: clamp(34px, 4vw, 54px); }
.prose { max-width: 680px; }
.prose p { margin: 0 0 22px; color: #3f3f3f; font-size: 17px; line-height: 1.78; }
.prose strong { color: #111; }

.services { padding: 120px 0; }
.service-list { border-top: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: 90px minmax(220px,.75fr) 1.25fr; gap: 36px; align-items: start; padding: 34px 0; border-bottom: 1px solid var(--line); }
.service-number { color: #999; font-size: 12px; letter-spacing: .1em; }
.service-row h3 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.service-row p { margin: 0; max-width: 600px; color: var(--muted); line-height: 1.65; }

.values { background: #111; color: #fff; }
.values .eyebrow { color: #aaa; }
.value-stack { border-top: 1px solid #333; }
.value-item { display: grid; grid-template-columns: .45fr 1fr; gap: 40px; padding: 28px 0; border-bottom: 1px solid #333; }
.value-item h3 { margin: 0; font-size: 18px; }
.value-item p { margin: 0; color: #bdbdbd; line-height: 1.65; }

.platforms { border-bottom: 1px solid var(--line); overflow: hidden; }
.platform-line { min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 28px; color: #777; font-size: 11px; font-weight: 750; letter-spacing: .14em; white-space: nowrap; }
.platform-line span:first-child { color: #111; }

.contact-panel { border-top: 1px solid #111; padding-top: 28px; }
.contact-panel > p { margin: 0 0 34px; max-width: 620px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.contact-actions { border-top: 1px solid var(--line); }
.text-action { width: 100%; display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 20px; padding: 22px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: #111; text-align: left; cursor: pointer; }
.text-action span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.text-action strong { font-size: 18px; }
.text-action em { font-style: normal; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.text-action:hover em { text-decoration: underline; }
.contact-hint { min-height: 24px; margin-top: 14px !important; font-size: 13px !important; }

.site-footer { padding: 54px 0; background: var(--soft); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr 1fr; gap: 48px; }
.footer-brand { font-size: 28px; font-weight: 800; letter-spacing: -.06em; }
.footer-grid p { color: var(--muted); line-height: 1.6; font-size: 13px; }
.footer-grid h3 { margin: 0 0 18px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.footer-grid a { display: block; width: fit-content; margin: 0 0 10px; color: #555; font-size: 13px; }
.footer-grid a:hover { color: #000; text-decoration: underline; }
.footer-meta { display: flex; align-items: flex-end; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

.legal-main { min-height: calc(100vh - var(--header)); padding: 86px 0 120px; }
.legal-wrap { max-width: 840px; }
.legal-wrap h1 { margin: 0 0 42px; font-size: clamp(44px, 6vw, 78px); letter-spacing: -.045em; }
.legal-wrap h2 { margin: 46px 0 14px; font-size: 20px; }
.legal-wrap p, .legal-wrap li { color: #494949; line-height: 1.75; }
.notice { margin: 32px 0; padding: 20px 22px; border: 1px solid #d8d8d4; background: #fafaf8; }
.notice strong { display: block; margin-bottom: 6px; color: #111; }
.back-link { display: inline-block; margin-bottom: 50px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid #111; }

@media (max-width: 900px) {
  :root { --header: 68px; }
  .shell { width: min(100% - 32px, var(--max)); }
  .brand-name { display: none; }
  .brand-divider { display: none; }
  .menu-toggle { display: block; }
  .main-nav { position: fixed; inset: var(--header) 0 auto 0; height: calc(100vh - var(--header)); background: #fff; padding: 36px 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 0; transform: translateX(100%); transition: transform .25s ease; border-top: 1px solid var(--line); }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { width: 100%; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .main-nav a::after { display: none; }
  .menu-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .hero { min-height: auto; background: #fff; }
  .hero-grid { grid-template-columns: 1fr; gap: 64px; padding-block: 82px; }
  .hero-note { border-left: 0; border-top: 1px solid var(--line); padding: 28px 0 0; min-height: 200px; }
  .two-col, .values-grid, .contact-grid { grid-template-columns: 1fr; gap: 58px; }
  .intro, .services, .values, .contact { padding: 86px 0; }
  .service-row { grid-template-columns: 52px 1fr; gap: 22px; }
  .service-row p { grid-column: 2; }
  .platform-line { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .platform-line::-webkit-scrollbar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: clamp(52px, 17vw, 76px); }
  .hero-text { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .section-heading h2 { font-size: 42px; }
  .service-row { grid-template-columns: 42px 1fr; }
  .value-item { grid-template-columns: 1fr; gap: 10px; }
  .text-action { grid-template-columns: 1fr auto; }
  .text-action strong { grid-column: 1; }
  .text-action em { grid-column: 2; grid-row: 1 / 3; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-meta { display: block; }
}

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