/* Neoton's existing light, square-edged visual system. */
:root {
  color-scheme: light;
  --bg: #f5f5f5;
  --bg-alt: #fff;
  --surface: #eaeaea;
  --border: #d0d0d0;
  --text: #1a1a1a;
  --text-dim: #626262;
  --hover: #333;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);
  --section-space: clamp(3.5rem, 7vw, 6rem);
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure, ol { margin: 0; }
html { scroll-behavior: smooth; scrollbar-color: #858585 var(--bg); }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--text); background: var(--bg); font-size: 1rem; line-height: 1.7; }
::selection { background: var(--text); color: var(--bg-alt); }
a { color: inherit; text-underline-offset: .25em; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: #d0d0d0; touch-action: manipulation; }
:where(a, button, input, textarea) { scroll-margin-block: 6.5rem 2rem; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 5px; }
input:focus-visible, textarea:focus-visible { outline-offset: 2px; }
img { display: block; max-width: 100%; height: auto; }
svg { flex: none; }
h1, h2, h3 { text-wrap: balance; font-weight: 600; line-height: 1.2; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }
section[id], h2[id], main { scroll-margin-top: 6.5rem; }
.container { width: 100%; max-width: 1280px; padding-inline: var(--gutter); margin-inline: auto; min-width: 0; }
.section { padding-block: var(--section-space); }
.section-header { display: flex; align-items: center; gap: 1rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.section-number { font-family: 'JetBrains Mono', monospace; font-size: .75rem; color: var(--text-dim); }
.section-line { flex: 1; min-width: 1rem; height: 1px; background: var(--border); }
.section-title { flex: 0 1 auto; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.skip-link { position: fixed; left: var(--gutter); top: .75rem; z-index: 300; padding: .75rem 1rem; background: var(--text); color: var(--bg-alt); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-nav { position: fixed; inset: 0 0 auto; z-index: 100; background: var(--bg); border-bottom: 1px solid transparent; }
.site-nav.scrolled { border-bottom-color: var(--border); }
.nav-inner { min-height: 80px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.logo { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; text-decoration: none; }
.logo img { width: 42px; height: 32px; object-fit: contain; }
.logo-text { font-family: 'JetBrains Mono', monospace; font-size: 1rem; font-weight: 600; letter-spacing: .1em; }
.nav-links { display: flex; gap: clamp(.5rem, 2vw, 1.75rem); padding: 0; margin: 0; list-style: none; }
.nav-links a, .footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); text-decoration: none; }
.nav-links a:hover, .footer-links a:hover { color: var(--text); text-decoration: underline; }
.burger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; padding: 0; background: none; border: 0; color: var(--text); }
.burger span { width: 24px; height: 2px; background: currentColor; }
.hero { min-height: min(780px, 100svh); display: flex; align-items: center; padding-block: 8.5rem 4rem; border-bottom: 1px solid var(--border); }
.hero h1 { max-width: 1050px; font-weight: 700; font-size: clamp(2.125rem, 5.4vw, 5rem); letter-spacing: -.025em; line-height: 1.1; overflow-wrap: break-word; }
.hero p { max-width: 56ch; margin-top: 1.75rem; color: var(--text-dim); font-size: 1.0625rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .75rem; min-height: 48px; padding: .8125rem 1.5rem; border: 1px solid var(--text); background: var(--text); color: var(--bg-alt); font-size: .875rem; font-weight: 500; text-decoration: none; line-height: 1.5; transition: background-color .18s, color .18s; }
.button:hover { background: var(--hover); }
.hero .button { margin-top: 2rem; }
.button.secondary { background: transparent; color: var(--text); }
.button.secondary:hover { background: var(--surface); }
.services, .process, .contact { background: var(--bg-alt); }
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--border); background: var(--border); }
.service-card { min-width: 0; padding: clamp(1.25rem, 2.5vw, 2rem); background: var(--bg-alt); }
.service-visual { width: 100%; height: 180px; margin-bottom: 1.5rem; overflow: hidden; background: var(--surface); }
.service-visual img { width: 100%; height: 100%; object-fit: cover; }
.service-visual.symbol { display: flex; align-items: center; justify-content: center; }
.service-visual.symbol svg { width: 52px; height: 52px; fill: none; stroke: var(--text-dim); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3, .expertise-item h3, .process-item h3, .office-card h3 { font-size: clamp(1.1875rem, 1.5vw, 1.375rem); margin-bottom: .75rem; }
.service-card p, .expertise-item p, .process-item p, .office-card address { color: var(--text-dim); font-size: 1rem; line-height: 1.7; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; gap: clamp(2rem, 5vw, 4rem); }
.about-visual { margin: 0; }
.about-visual img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-visual figcaption { color: var(--text-dim); font-size: .8125rem; line-height: 1.5; margin-top: .75rem; }
.about-text { min-width: 0; max-width: 68ch; }
.about-text p { color: var(--text-dim); margin-bottom: 1.25rem; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; border-top: 1px solid var(--border); padding-top: 1.5rem; margin-top: 1.75rem; }
.stat-number { font-family: 'JetBrains Mono', monospace; font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.3; }
.stat-label { color: var(--text-dim); font-size: .75rem; line-height: 1.5; margin-top: .5rem; }
.expertise-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; margin-top: 3rem; border-top: 1px solid var(--border); }
.expertise-item { padding-block: 1.5rem; border-bottom: 1px solid var(--border); }
.process-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.process-item { min-width: 0; border-top: 1px solid var(--border); padding-top: 1.5rem; }
.process-number { display: block; font-family: 'JetBrains Mono', monospace; color: var(--text-dim); font-size: .8125rem; margin-bottom: 1rem; }
.offices-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--border); }
.office-card { padding: clamp(1.5rem, 4vw, 3rem); }
.office-card + .office-card { border-left: 1px solid var(--border); }
.office-country { color: var(--text-dim); font-family: 'JetBrains Mono', monospace; font-size: .8125rem; margin-bottom: 1rem; }
.office-card address { font-style: normal; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-info p { max-width: 48ch; color: var(--text-dim); margin-bottom: 1.5rem; }
.contact-email { overflow-wrap: anywhere; }
.contact-form { min-width: 0; display: grid; gap: 1.25rem; }
.form-intro { color: var(--text-dim); font-size: .875rem; line-height: 1.6; }
.form-group { min-width: 0; display: grid; gap: .5rem; }
.form-group label { font-size: .875rem; font-weight: 500; }
.form-group label span { color: var(--text-dim); font-weight: 400; }
.form-group input, .form-group textarea { width: 100%; min-width: 0; padding: .8125rem 1rem; border: 1px solid #858585; border-radius: 0; background: var(--bg-alt); color: var(--text); caret-color: var(--text); font-size: 1rem; }
.form-group textarea { min-height: 144px; resize: vertical; }
.form-group input:hover, .form-group textarea:hover { border-color: var(--text-dim); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--text); }
.form-group [aria-invalid='true'] { border-color: var(--text); border-width: 2px; }
.form-error { font-size: .875rem; font-weight: 500; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.form-status { font-size: .875rem; line-height: 1.6; }
.footer { border-top: 1px solid var(--border); padding-block: 2rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.footer-copy { color: var(--text-dim); font-size: .8125rem; }
.footer .logo-text { font-size: .8125rem; }
.mobile-menu { inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: max(6rem, env(safe-area-inset-top)) var(--gutter) max(2rem, env(safe-area-inset-bottom)); border: 0; background: var(--bg); color: var(--text); overscroll-behavior: contain; }
.mobile-menu[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; }
.mobile-menu::backdrop { background: var(--bg); }
.mobile-menu a { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: .25rem 1rem; text-decoration: none; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .08em; }
.mobile-menu a:hover { text-decoration: underline; }
.mobile-menu-close { position: absolute; top: max(1rem, env(safe-area-inset-top)); right: var(--gutter); display: grid; place-items: center; width: 48px; height: 48px; background: none; border: 1px solid var(--border); color: var(--text); }
.mobile-menu-close:hover { border-color: var(--text); }
.menu-open { overflow: hidden; }
@media (min-width: 769px) and (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 680px; }
  .about-visual img { max-height: 420px; }
  .process-list { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 768px) {
  .nav-inner { flex-wrap: wrap; }
  .nav-links { flex-wrap: wrap; }
  .js .nav-links { display: none; }
  .js .burger { display: flex; }
  .hero { min-height: auto; padding-block: 8rem 3.5rem; }
  .hero .container { min-width: 0; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .expertise-list { column-gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info p { max-width: 65ch; }
}
@media (max-width: 599px) {
  .services-grid, .expertise-list, .offices-grid { grid-template-columns: 1fr; }
  .office-card + .office-card { border-left: 0; border-top: 1px solid var(--border); }
  .service-visual { height: auto; aspect-ratio: 16 / 9; }
  .hero p { font-size: 1rem; }
  .section-header { gap: .75rem; }
  .section-number { font-size: .6875rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
@media print {
  .site-nav, .mobile-menu, .skip-link, .contact-form, .form-intro { display: none; }
  .hero { min-height: 0; padding-top: 2rem; }
  .section { padding-block: 2rem; }
}
