:root {
  --midnight: #142033;
  --midnight-2: #1c2b42;
  --petrol: #1f5a5d;
  --petrol-light: #68a7a5;
  --copper: #b97850;
  --ivory: #f4f0e7;
  --paper: #fffdf8;
  --mist: #dce4e1;
  --graphite: #4c5966;
  --line: rgba(20, 32, 51, 0.14);
  --shadow: 0 24px 70px rgba(20, 32, 51, 0.12);
  --radius: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--midnight);
  background: var(--paper);
  font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }
a { color: inherit; }
img, svg { display: block; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.section { padding: 118px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 1000; padding: 10px 14px; background: var(--paper); color: var(--midnight); border-radius: 6px; }
.skip-link:focus { top: 20px; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 253, 248, 0.9);
  border-bottom: 1px solid rgba(20, 32, 51, 0.08);
  backdrop-filter: blur(18px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 760; letter-spacing: 0.18em; font-size: 18px; }
.brand img { width: 35px; height: 35px; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav > a { text-decoration: none; color: var(--graphite); font-size: 14px; font-weight: 650; }
.main-nav > a:hover, .main-nav > a:focus-visible { color: var(--petrol); }
.language-switcher { display: flex; align-items: center; gap: 7px; margin-left: 10px; padding-left: 20px; border-left: 1px solid var(--line); }
.language-switcher button { appearance: none; border: 0; padding: 3px; color: #86909a; background: none; font: inherit; font-weight: 750; cursor: pointer; }
.language-switcher button[aria-pressed="true"] { color: var(--midnight); }
.nav-toggle { display: none; width: 42px; height: 42px; padding: 10px; border: 1px solid var(--line); border-radius: 50%; background: transparent; }
.nav-toggle > span:not(.sr-only) { display: block; width: 100%; height: 2px; margin: 4px 0; background: var(--midnight); transition: transform .25s, opacity .25s; }

.hero {
  position: relative;
  min-height: 850px;
  padding: 176px 0 42px;
  overflow: hidden;
  background: var(--ivory);
}
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -220px; top: -240px; border: 1px solid rgba(31,90,93,.2); border-radius: 50%; }
.hero::after { content: ""; position: absolute; width: 360px; height: 360px; right: -150px; top: -155px; border: 1px solid rgba(185,120,80,.25); border-radius: 50%; }
.hero-grid { position: absolute; inset: 0; opacity: .42; background-image: linear-gradient(rgba(31,90,93,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(31,90,93,.06) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.9) 38%, transparent 100%); }
.hero-layout { position: relative; display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(440px, .97fr); align-items: center; gap: 80px; }
.eyebrow { margin: 0 0 24px; color: var(--petrol); font-size: 12px; line-height: 1.2; letter-spacing: .22em; font-weight: 780; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(48px, 5.1vw, 75px); line-height: 1.03; letter-spacing: -.047em; font-weight: 720; }
.hero-lead { max-width: 660px; margin: 30px 0 0; color: var(--graphite); font-size: 19px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 27px; margin-top: 38px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 13px 22px; border-radius: 4px; text-decoration: none; font-size: 14px; font-weight: 750; transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--paper); background: var(--midnight); }
.button-primary:hover { background: var(--petrol); }
.text-link { display: inline-flex; gap: 10px; color: var(--midnight); text-decoration: none; font-weight: 720; font-size: 14px; }
.text-link span:last-child { color: var(--copper); }

.system-card { position: relative; min-height: 500px; padding: 24px; border: 1px solid rgba(20,32,51,.13); border-radius: var(--radius); background: rgba(255,253,248,.72); box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.system-header { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 19px; border-bottom: 1px solid var(--line); color: var(--graphite); font-size: 10px; letter-spacing: .14em; font-weight: 760; }
.status-dot { display: inline-flex; align-items: center; gap: 7px; color: var(--petrol); letter-spacing: .05em; }
.status-dot i { width: 7px; height: 7px; border-radius: 50%; background: var(--petrol-light); box-shadow: 0 0 0 5px rgba(104,167,165,.13); animation: statusPulse 4.8s ease-in-out 1.2s infinite; }
.system-map { position: relative; height: 410px; }
.system-node { position: absolute; z-index: 2; width: 145px; padding: 16px 17px; border: 1px solid rgba(20,32,51,.13); border-radius: 8px; background: var(--paper); box-shadow: 0 8px 22px rgba(20,32,51,.07); }
.system-node span { display: block; margin-bottom: 7px; color: var(--copper); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.system-node strong { font-size: 14px; letter-spacing: .02em; }
.node-commerce { left: 4px; top: 34px; }
.node-accounting { right: 4px; top: 34px; }
.node-data { left: 4px; bottom: 20px; }
.node-automation { right: 4px; bottom: 20px; }
.decision-point { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%,-50%); display: grid; justify-items: center; gap: 15px; color: var(--petrol); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.decision-point i { display: block; width: 47px; height: 47px; background: var(--copper); border: 9px solid var(--paper); transform: rotate(45deg); box-shadow: 0 0 0 1px rgba(20,32,51,.12), 0 7px 20px rgba(20,32,51,.1); animation: decisionPulse 4.8s ease-in-out 1.2s infinite; }
.system-lines { position: absolute; inset: 26px 6px 0; width: calc(100% - 12px); height: calc(100% - 46px); }
.system-lines path { fill: none; stroke: rgba(31,90,93,.42); stroke-width: 1.2; stroke-dasharray: 5 6; stroke-dashoffset: 0; opacity: 0; vector-effect: non-scaling-stroke; animation: systemLineReveal .8s ease-out forwards, systemLineFlow 7s linear 1.55s infinite; }
.system-lines path:nth-child(2) { animation-delay: .15s, 1.7s; }
.system-lines path:nth-child(3) { animation-delay: .3s, 1.85s; }
.system-lines path:nth-child(4) { animation-delay: .45s, 2s; }

@keyframes systemLineReveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes systemLineFlow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -44; }
}

@keyframes decisionPulse {
  0%, 72%, 100% { box-shadow: 0 0 0 1px rgba(20,32,51,.12), 0 7px 20px rgba(20,32,51,.1); }
  84% { box-shadow: 0 0 0 1px rgba(20,32,51,.12), 0 0 0 10px rgba(185,120,80,.11), 0 9px 25px rgba(20,32,51,.14); }
}

@keyframes statusPulse {
  0%, 72%, 100% { box-shadow: 0 0 0 5px rgba(104,167,165,.13); }
  84% { box-shadow: 0 0 0 8px rgba(104,167,165,.06); }
}
.proof-strip { position: relative; display: grid; grid-template-columns: repeat(4,1fr); margin-top: 95px; border-top: 1px solid rgba(20,32,51,.15); border-bottom: 1px solid rgba(20,32,51,.15); }
.proof-strip > div { min-height: 92px; display: flex; flex-direction: column; justify-content: center; padding: 18px 26px; border-right: 1px solid rgba(20,32,51,.15); }
.proof-strip > div:first-child { padding-left: 0; }
.proof-strip > div:last-child { border-right: 0; }
.proof-strip strong { font-size: 13px; letter-spacing: .04em; }
.proof-strip span { margin-top: 3px; color: var(--graphite); font-size: 12px; }

.two-column { display: grid; grid-template-columns: .9fr 1.1fr; gap: 110px; }
.section-heading h2 { max-width: 760px; margin: 0; font-size: clamp(38px,4vw,57px); line-height: 1.08; letter-spacing: -.035em; }
.section-heading > p:last-child { max-width: 660px; margin: 24px 0 0; color: var(--graphite); font-size: 18px; }
.challenge { background: var(--paper); }
.challenge-copy > p:first-child { margin: 0 0 35px; color: var(--graphite); font-size: 20px; }
.problem-list { border-top: 1px solid var(--line); }
.problem-list > div { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; min-height: 76px; border-bottom: 1px solid var(--line); }
.problem-list span { color: var(--copper); font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.problem-list p { margin: 0; font-weight: 620; }
.solution-statement { margin: 35px 0 0; padding-left: 22px; border-left: 3px solid var(--copper); font-weight: 680; }

.services { background: var(--midnight); color: var(--paper); }
.services .eyebrow { color: var(--petrol-light); }
.services-heading { display: grid; grid-template-columns: 1.2fr .8fr; column-gap: 70px; align-items: end; }
.services-heading .eyebrow { grid-column: 1/-1; }
.services-heading > p:last-child { color: rgba(244,240,231,.67); }
.service-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; margin-top: 68px; }
.service-card { min-height: 430px; padding: 34px; border: 1px solid rgba(244,240,231,.13); border-radius: 12px; background: rgba(255,255,255,.025); transition: transform .25s, border-color .25s, background .25s; }
.service-card:hover { transform: translateY(-4px); border-color: rgba(104,167,165,.55); background: rgba(255,255,255,.045); }
.service-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 56px; color: var(--copper); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.service-top svg { width: 43px; height: 43px; fill: none; stroke: var(--petrol-light); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { margin: 0; font-size: 30px; letter-spacing: -.02em; }
.service-card > p { max-width: 480px; margin: 17px 0 25px; color: rgba(244,240,231,.68); }
.service-card ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.service-card li { padding: 6px 10px; border: 1px solid rgba(244,240,231,.14); border-radius: 100px; color: var(--mist); font-size: 11px; }

.method { background: var(--mist); }
.method-list { margin: 67px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(20,32,51,.18); }
.method-list li { display: grid; grid-template-columns: 90px 1fr; gap: 18px; align-items: start; min-height: 155px; padding: 33px 0; border-bottom: 1px solid rgba(20,32,51,.18); }
.method-list > li > span { color: var(--copper); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.method-list h3 { margin: 0 0 8px; font-size: 26px; }
.method-list p { max-width: 690px; margin: 0; color: var(--graphite); }

.about { background: var(--paper); }
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: start; }
.about-story h2 { margin: 0 0 28px; font-size: clamp(38px,4vw,57px); line-height: 1.08; letter-spacing: -.035em; }
.about-story > p:not(.eyebrow) { color: var(--graphite); font-size: 17px; }
.about-story blockquote { margin: 36px 0 0; color: var(--petrol); font-family: Georgia, "Times New Roman", serif; font-size: 31px; font-style: italic; }
.team-grid { display: grid; gap: 16px; padding-top: 36px; }
.team-card { display: grid; grid-template-columns: 78px 1fr; gap: 24px; padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--ivory); }
.team-initial { display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%; color: var(--paper); background: var(--midnight); font-weight: 800; letter-spacing: .08em; }
.team-role { margin: 0 0 6px; color: var(--copper); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.team-card h3 { margin: 0; font-size: 23px; }
.team-card div > p:not(.team-role) { margin: 2px 0 12px; color: var(--petrol); font-weight: 720; font-size: 13px; }
.team-card div > span { display: block; color: var(--graphite); font-size: 14px; line-height: 1.55; }

.contact { padding-top: 30px; background: var(--paper); }
.contact-card { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: end; padding: 76px; color: var(--paper); border-radius: var(--radius); background: var(--petrol); overflow: hidden; position: relative; }
.contact-card::after { content: ""; position: absolute; width: 310px; height: 310px; right: -120px; bottom: -190px; border: 1px solid rgba(244,240,231,.22); border-radius: 50%; }
.contact-card .eyebrow { color: var(--mist); }
.contact-card h2 { margin: 0; font-size: clamp(36px,3.4vw,52px); line-height: 1.08; letter-spacing: -.035em; }
.contact-action { position: relative; z-index: 2; }
.contact-action p { margin: 0 0 25px; color: rgba(244,240,231,.78); }
.button-light { color: var(--midnight); background: var(--paper); }
.button-light:hover { color: var(--paper); background: var(--midnight); }

.site-footer { padding: 80px 0 28px; color: var(--paper); background: var(--midnight); }
.footer-main { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding-bottom: 65px; }
.brand-light { color: var(--paper); }
.footer-brand p { margin: 20px 0 0; color: var(--petrol-light); }
.footer-links { display: grid; grid-template-columns: repeat(2,1fr); gap: 40px; }
.footer-links > div { display: flex; flex-direction: column; gap: 9px; }
.footer-links strong { margin-bottom: 7px; color: var(--petrol-light); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
.footer-links a { width: max-content; color: rgba(244,240,231,.74); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--paper); }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; padding-top: 25px; border-top: 1px solid rgba(244,240,231,.12); color: rgba(244,240,231,.52); font-size: 11px; letter-spacing: .07em; }
.footer-bottom a { color: inherit; }

.privacy-page { min-height: 100vh; padding: 145px 0 90px; background: var(--ivory); }
.privacy-content { max-width: 820px; }
.privacy-content h1 { margin: 0 0 22px; font-size: clamp(42px,6vw,72px); line-height: 1; letter-spacing: -.045em; }
.privacy-content h2 { margin: 42px 0 12px; font-size: 23px; }
.privacy-content p, .privacy-content li { color: var(--graphite); }
.privacy-content a { color: var(--petrol); }
.back-link { display: inline-flex; margin-bottom: 42px; color: var(--petrol); text-decoration: none; font-weight: 700; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .hero-layout { grid-template-columns: 1fr; gap: 65px; }
  .hero-copy { max-width: 800px; }
  .system-card { max-width: 650px; width: 100%; }
  .hero { min-height: auto; }
  .proof-strip { grid-template-columns: repeat(2,1fr); }
  .proof-strip > div:nth-child(2) { border-right: 0; }
  .proof-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .two-column, .about-layout { grid-template-columns: 1fr; gap: 55px; }
  .services-heading { grid-template-columns: 1fr; }
  .service-card { min-height: 410px; }
  .contact-card { grid-template-columns: 1fr; gap: 42px; padding: 60px; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 34px), var(--container)); }
  .section { padding: 82px 0; }
  .header-inner { min-height: 68px; }
  .nav-toggle { display: block; }
  .main-nav { position: fixed; inset: 68px 0 0; display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 34px 24px; background: var(--paper); transform: translateX(100%); transition: transform .3s ease; }
  .nav-open .main-nav { transform: translateX(0); }
  .main-nav > a { width: 100%; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 20px; }
  .language-switcher { margin: 30px 0 0; padding: 0; border: 0; }
  .nav-open .nav-toggle > span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle > span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle > span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .hero { padding-top: 138px; }
  .hero h1 { font-size: clamp(43px,13vw,60px); }
  .hero-lead { font-size: 17px; }
  .system-card { min-height: 490px; padding: 18px; }
  .system-header { font-size: 9px; }
  .system-map { height: 405px; }
  .system-node { width: 126px; padding: 13px; }
  .node-commerce, .node-data { left: 0; }
  .node-accounting, .node-automation { right: 0; }
  .decision-point span { display: none; }
  .proof-strip { margin-top: 65px; }
  .proof-strip > div { padding: 18px 14px; }
  .proof-strip > div:first-child { padding-left: 14px; }
  .section-heading h2 { font-size: 39px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .service-top { margin-bottom: 42px; }
  .about-story blockquote { font-size: 27px; }
  .team-card { grid-template-columns: 58px 1fr; gap: 18px; padding: 22px; }
  .team-initial { width: 58px; height: 58px; }
  .contact-card { padding: 42px 26px; }
  .button-light { width: 100%; overflow-wrap: anywhere; }
  .footer-main { grid-template-columns: 1fr; gap: 50px; }
  .footer-bottom { flex-wrap: wrap; }
}

@media (max-width: 430px) {
  .proof-strip { grid-template-columns: 1fr; }
  .proof-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-strip > div:nth-child(3) { border-bottom: 1px solid var(--line); }
  .proof-strip > div:last-child { border-bottom: 0; }
  .system-card { min-height: 530px; }
  .system-map { height: 445px; }
  .system-node { width: 118px; }
  .decision-point { top: 51%; }
  .method-list li { grid-template-columns: 48px 1fr; }
  .footer-links { grid-template-columns: 1fr; }
}

@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; }
  .system-lines path { opacity: 1; }
}
