:root {
  color-scheme: dark;
  --bg: #07090c;
  --bg-2: #0a0e13;
  --surface: rgba(255,255,255,.035);
  --surface-2: rgba(255,255,255,.055);
  --text: #f2f5f7;
  --muted: #97a4af;
  --line: rgba(255,255,255,.105);
  --line-strong: rgba(255,255,255,.2);
  --accent: #78e0ff;
  --accent-2: #a6f4ff;
  --success: #90f5c0;
  --max: 1320px;
  --pad: clamp(22px, 4vw, 64px);
  --radius: 22px;
  --shadow: 0 30px 90px rgba(0,0,0,.32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 80% 5%, rgba(54,156,199,.10), transparent 28rem),
    linear-gradient(180deg, #080a0d 0%, #07090c 52%, #080a0e 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .14;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, #000 0, transparent 78%);
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-2); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: rgba(120,224,255,.25); color: #fff; }

.skip-link {
  position: fixed;
  left: 20px;
  top: 12px;
  transform: translateY(-200%);
  z-index: 200;
  padding: 10px 14px;
  background: #fff;
  color: #000;
  border-radius: 10px;
}
.skip-link:focus { transform: none; }

.shell { width: min(var(--max), calc(100% - (var(--pad) * 2))); margin-inline: auto; }
.eyebrow {
  font-size: 11px;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  backdrop-filter: blur(18px);
  background: rgba(7,9,12,.74);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.navbar { min-height: 74px; display: flex; align-items: center; gap: 28px; }
.nav-end { margin-left: auto; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 760; letter-spacing: -.02em; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line-strong);
  border-radius: 11px; font-size: 12px; color: var(--accent); background: rgba(255,255,255,.03);
}
.navlinks { margin-left: auto; display: flex; align-items: center; gap: 26px; color: var(--muted); font-size: 14px; }
.navlinks a { transition: color .2s ease; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.025); }
.lang-switch button { border: 0; color: var(--muted); background: transparent; border-radius: 999px; padding: 6px 9px; font-size: 11px; cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: rgba(255,255,255,.09); color: var(--text); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: transparent; color: #fff; border-radius: 12px; cursor: pointer; }

.hero { position: relative; overflow: clip; }
.hero-grid { min-height: calc(100svh - 74px); display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr); align-items: center; gap: clamp(30px, 4vw, 78px); padding-block: clamp(72px, 8vw, 130px); }
.hero-copy { position: relative; z-index: 2; max-width: 790px; }
.availability { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 32px; color: #c7d0d6; font-size: 13px; }
.availability-dot { width: 7px; height: 7px; background: var(--success); border-radius: 50%; box-shadow: 0 0 0 5px rgba(144,245,192,.08); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 24px; max-width: 900px; font-size: clamp(46px, 6.2vw, 94px); line-height: .98; letter-spacing: -.055em; font-weight: 690; }
.hero-copy > p { max-width: 700px; margin-bottom: 34px; color: #a9b4bd; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.65; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 17px; border-radius: 12px; border: 1px solid var(--line-strong); transition: transform .18s ease, border-color .18s ease, background .18s ease; font-size: 14px; font-weight: 660; }
.button:hover { transform: translateY(-1px); color: #fff; border-color: rgba(120,224,255,.42); }
.button.primary { background: #e8f8fc; color: #071014; border-color: #e8f8fc; }
.button.primary:hover { color: #071014; background: #fff; }
.button.ghost { background: rgba(255,255,255,.025); }
.hero-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 58px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--line); }
.meta-block { padding: 17px 18px; background: rgba(10,14,19,.92); }
.meta-block strong { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 650; }
.meta-block span { color: var(--muted); font-size: 11px; }

.sphere-wrap { position: relative; min-height: 610px; display: grid; place-items: center; }
.sphere-wrap::before { content:""; position:absolute; inset: 14% 4%; border: 1px solid rgba(255,255,255,.045); border-radius: 50%; transform: rotate(-10deg); }
.sphere-canvas { width: min(46vw, 650px); height: min(46vw, 650px); min-width: 430px; min-height: 430px; cursor: crosshair; touch-action: pan-y; }
.sphere-label { position: absolute; right: 0; bottom: 10%; padding: 10px 12px; border: 1px solid var(--line); background: rgba(7,9,12,.72); backdrop-filter: blur(10px); border-radius: 11px; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }

.section { padding-block: clamp(96px, 10vw, 164px); border-top: 1px solid rgba(255,255,255,.06); }
.section-head { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 34px; margin-bottom: clamp(52px, 7vw, 90px); align-items: start; }
.section-head h2 { max-width: 940px; margin-bottom: 0; font-size: clamp(34px, 4vw, 62px); line-height: 1.06; letter-spacing: -.045em; font-weight: 650; }
.section-number { color: var(--accent); }

.project-list { display: grid; border-top: 1px solid var(--line); }
.project {
  position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr) minmax(300px, .68fr); gap: 30px; padding: 38px 8px;
  border-bottom: 1px solid var(--line); transition: background .22s ease, padding-inline .22s ease;
}
.project:hover { background: linear-gradient(90deg, rgba(120,224,255,.035), transparent 75%); padding-inline: 16px; }
.project-index { color: var(--muted); font-size: 12px; }
.project h3 { margin-bottom: 10px; font-size: clamp(27px, 3vw, 42px); letter-spacing: -.035em; }
.project p { max-width: 720px; margin-bottom: 18px; color: var(--muted); }
.project-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; color: #bcc7ce; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.project-side { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 22px; }
.project-status { display: inline-flex; align-items: center; gap: 7px; color: #c8d0d6; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.project-highlights { margin: 0; padding: 0; list-style: none; color: #c6d0d6; font-size: 13px; }
.project-highlights li { padding-block: 5px; border-bottom: 1px solid rgba(255,255,255,.055); }
.project-link { display: inline-flex; gap: 8px; align-items: center; color: var(--accent-2); font-size: 13px; font-weight: 650; }

.chain { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: rgba(255,255,255,.018); box-shadow: var(--shadow); }
.chain-item { position: relative; min-height: 150px; padding: 22px 18px; border-right: 1px solid var(--line); }
.chain-item:last-child { border-right: 0; }
.chain-item::after { content: "→"; position: absolute; right: -9px; top: 22px; z-index: 2; color: #53616b; background: #090d11; padding-inline: 2px; }
.chain-item:last-child::after { display: none; }
.chain-item span { display: block; margin-bottom: 42px; color: var(--accent); font-family: ui-monospace, monospace; font-size: 10px; }
.chain-item strong { display: block; font-size: 13px; line-height: 1.35; }
.chain-item small { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; }

.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--line); }
.principles-spaced { margin-top: 16px; }
.principle { min-height: 260px; padding: 28px 26px; background: #0a0d11; }
.principle .num { color: var(--accent); font: 11px ui-monospace, monospace; }
.principle h3 { margin: 60px 0 12px; font-size: 20px; letter-spacing: -.02em; }
.principle p { margin: 0; color: var(--muted); font-size: 13px; }

.capabilities { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.capability { min-height: 235px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.015)); }
.capability h3 { margin-bottom: 12px; font-size: 23px; letter-spacing: -.025em; }
.capability p { color: var(--muted); max-width: 590px; }
.capability-tech { margin-top: 36px; color: #c0cbd2; font: 11px/1.7 ui-monospace, monospace; }

.timeline { display: grid; border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 180px 1fr; gap: 34px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.timeline-year { color: var(--muted); font: 12px ui-monospace, monospace; }
.timeline-item h3 { margin-bottom: 5px; font-size: 22px; }
.timeline-item .role { margin-bottom: 12px; color: var(--accent-2); font-size: 13px; }
.timeline-item p { max-width: 860px; margin-bottom: 0; color: var(--muted); font-size: 14px; }

.contact-panel { position: relative; overflow: hidden; padding: clamp(34px, 6vw, 74px); border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(135deg, rgba(120,224,255,.075), rgba(255,255,255,.025) 38%, rgba(255,255,255,.012)); }
.contact-panel::after { content:""; position:absolute; width: 360px; height:360px; border-radius:50%; right:-160px; bottom:-210px; border:1px solid rgba(120,224,255,.16); box-shadow: 0 0 80px rgba(120,224,255,.04) inset; }
.contact-panel h2 { max-width: 870px; font-size: clamp(38px, 5.2vw, 72px); line-height: 1.02; letter-spacing: -.05em; }
.contact-copy { max-width: 700px; color: var(--muted); }
.contact-links { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 34px; }

.site-footer { padding: 34px 0 54px; border-top: 1px solid rgba(255,255,255,.06); color: var(--muted); font-size: 12px; }
.footer-row { display:flex; justify-content:space-between; gap: 24px; align-items:center; }
.footer-links { display:flex; flex-wrap:wrap; gap:18px; }
.footer-button { border: 0; background: none; color: var(--muted); padding: 0; cursor: pointer; }
.footer-button:hover { color: var(--accent-2); }

.cookie-banner {
  position: fixed; z-index: 100; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(850px, calc(100% - 28px));
  padding: 18px; border: 1px solid var(--line-strong); border-radius: 18px; background: rgba(10,13,17,.96); backdrop-filter: blur(18px); box-shadow: 0 30px 80px rgba(0,0,0,.55);
}
.cookie-banner[hidden], .consent-modal[hidden] { display:none; }
.cookie-grid { display:grid; grid-template-columns: 1fr auto; gap: 24px; align-items:center; }
.cookie-banner h2 { margin-bottom: 6px; font-size: 16px; }
.cookie-banner p { margin:0; color:var(--muted); font-size:12px; max-width:650px; }
.consent-policy-links { display:flex; gap:7px; margin-top:8px; color:#b9c5cc; font-size:11px; }
.consent-policy-links a { text-decoration:underline; text-underline-offset:3px; }
.cookie-actions { display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; }
.cookie-actions .button { min-height: 40px; padding-inline: 13px; font-size: 12px; cursor:pointer; }
.cookie-actions .consent-choice { background: rgba(255,255,255,.025); color: var(--text); border-color: var(--line-strong); font-weight: 650; }
.cookie-actions .consent-choice:hover { border-color: rgba(120,224,255,.42); background: rgba(120,224,255,.05); }

.consent-modal { position:fixed; inset:0; z-index:110; display:grid; place-items:center; padding:20px; background:rgba(0,0,0,.64); backdrop-filter: blur(5px); }
.modal-card { width:min(660px, 100%); border:1px solid var(--line-strong); border-radius:20px; padding:24px; background:#0b0f14; box-shadow:var(--shadow); }
.modal-head { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:20px; }
.modal-head h2 { margin:0; font-size:23px; }
.icon-button { width:40px; height:40px; border:1px solid var(--line); border-radius:10px; background:transparent; color:#fff; cursor:pointer; }
.consent-row { display:grid; grid-template-columns:1fr auto; gap:20px; padding:20px 0; border-top:1px solid var(--line); }
.consent-row h3 { margin-bottom:5px; font-size:15px; }
.consent-row p { margin:0; color:var(--muted); font-size:12px; }
.switch { position:relative; display:inline-flex; width:46px; height:26px; }
.switch input { opacity:0; width:0; height:0; }
.slider { position:absolute; inset:0; border-radius:999px; background:#273039; border:1px solid #394550; cursor:pointer; transition:.2s; }
.slider::before { content:""; position:absolute; width:18px; height:18px; left:3px; top:3px; border-radius:50%; background:#fff; transition:.2s; }
.switch input:checked + .slider { background:#207c96; border-color:#3ba6c4; }
.switch input:checked + .slider::before { transform:translateX(20px); }
.switch input:disabled + .slider { opacity:.55; cursor:not-allowed; }
.modal-actions { display:flex; gap:8px; justify-content:flex-end; margin-top:22px; flex-wrap:wrap; }
.modal-open { overflow:hidden; }

[data-reveal] { opacity:0; transform:translateY(18px); transition: opacity .55s ease, transform .55s ease; }
[data-revealed="true"] { opacity:1; transform:none; }

.legal-main { padding-block: 90px 130px; }
.legal-main h1 { font-size: clamp(42px, 5.2vw, 72px); max-width:900px; }
.legal-content { max-width:900px; color:#c2ccd3; }
.legal-content h2 { margin-top:48px; color:#fff; font-size:24px; }
.legal-content h3 { margin-top:30px; color:#fff; font-size:18px; }
.legal-content p, .legal-content li { color:#a7b2ba; }
.legal-content table { width:100%; border-collapse:collapse; margin:22px 0; font-size:13px; }
.legal-content th, .legal-content td { text-align:left; vertical-align:top; padding:12px; border:1px solid var(--line); }

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 86px; }
  .sphere-wrap { min-height: 520px; margin-top: -40px; }
  .sphere-canvas { width:min(82vw,620px); height:min(82vw,620px); }
  .project { grid-template-columns: 70px minmax(0,1fr); }
  .project-side { grid-column:2; }
  .chain { grid-template-columns: repeat(4,1fr); }
  .chain-item:nth-child(4) { border-right:0; }
  .chain-item:nth-child(n+5) { border-top:1px solid var(--line); }
  .chain-item:nth-child(4)::after { display:none; }
  .principles { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 820px) {
  .navbar { min-height:68px; }
  .nav-toggle { display:block; margin-left:auto; }
  .nav-actions { margin-left:0; }
  .navlinks { position:absolute; left:var(--pad); right:var(--pad); top:68px; display:none; flex-direction:column; align-items:flex-start; gap:0; margin:0; padding:10px; border:1px solid var(--line); border-radius:14px; background:#0b0f14; box-shadow:var(--shadow); }
  .navlinks[data-open="true"] { display:flex; }
  .navlinks a { width:100%; padding:12px; }
  .hero-grid { min-height:auto; }
  h1 { font-size:clamp(44px, 12vw, 70px); }
  .section-head { grid-template-columns:1fr; gap:16px; }
  .section-head .eyebrow { margin-bottom:4px; }
  .chain { grid-template-columns: repeat(2,1fr); }
  .chain-item:nth-child(2n) { border-right:0; }
  .chain-item:nth-child(n+3) { border-top:1px solid var(--line); }
  .chain-item:nth-child(2n)::after { display:none; }
  .capabilities { grid-template-columns:1fr; }
  .timeline-item { grid-template-columns:1fr; gap:10px; }
  .cookie-grid { grid-template-columns:1fr; }
  .cookie-actions { justify-content:flex-start; }
  .footer-row { align-items:flex-start; flex-direction:column; }
}

@media (max-width: 620px) {
  :root { --pad: 20px; }
  .lang-switch { display:none; }
  .hero-meta { grid-template-columns:1fr; }
  .sphere-wrap { min-height:390px; margin-top:-30px; }
  .sphere-canvas { min-width:340px; min-height:340px; width:94vw; height:94vw; }
  .sphere-label { display:none; }
  .project { grid-template-columns:1fr; gap:15px; padding:30px 0; }
  .project-side { grid-column:auto; }
  .project-index { order:-1; }
  .principles { grid-template-columns:1fr; }
  .principle { min-height:220px; }
  .chain { grid-template-columns:1fr; }
  .chain-item { border-right:0; border-top:1px solid var(--line); min-height:120px; }
  .chain-item:first-child { border-top:0; }
  .chain-item::after { display:none; }
  .chain-item span { margin-bottom:25px; }
  .cookie-actions .button { flex:1 1 auto; }
}

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

/* Interactive detail cards: hover/focus on pointer devices, explicit toggle on touch. */
.detail-card { position: relative; transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.detail-card:hover, .detail-card[data-open="true"] { z-index: 35; }
.meta-block.detail-card:hover, .meta-block.detail-card[data-open="true"],
.capability.detail-card:hover, .capability.detail-card[data-open="true"] { transform: translateY(-2px); background: #0d1319; box-shadow: 0 24px 60px rgba(0,0,0,.34); }
.chain-item.detail-card:hover, .chain-item.detail-card[data-open="true"] { background: rgba(120,224,255,.045); }
.detail-trigger {
  position: absolute; z-index: 4; top: 12px; right: 12px; display: grid; place-items: center;
  width: 28px; height: 28px; padding: 0; border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgba(7,9,12,.78); color: var(--accent-2); cursor: pointer; font: 600 16px/1 ui-monospace, monospace;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.detail-trigger:hover, .detail-card[data-open="true"] > .detail-trigger { transform: rotate(45deg); border-color: rgba(120,224,255,.5); background: rgba(120,224,255,.08); }
.detail-popover {
  position: absolute; z-index: 40; left: 14px; right: 14px; top: calc(100% - 4px);
  padding: 16px; border: 1px solid rgba(120,224,255,.24); border-radius: 14px;
  background: rgba(8,12,16,.98); box-shadow: 0 24px 70px rgba(0,0,0,.5); backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden; transform: translateY(-5px) scale(.985); pointer-events: none;
  transition: opacity .16s ease, visibility .16s ease, transform .16s ease;
}
.detail-popover strong { display: block; margin: 0 0 7px; color: var(--text); font-size: 12px; letter-spacing: .02em; }
.detail-popover p { margin: 0; color: #aebac3; font-size: 12px; line-height: 1.6; }
.detail-card[data-open="true"] > .detail-popover { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.hero-meta, .chain { overflow: visible; }

@media (hover: hover) and (pointer: fine) {
  .detail-card:hover > .detail-popover { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
}

@media (max-width: 820px) {
  .detail-popover { left: 8px; right: 8px; }
}

@media (max-width: 620px) {
  .lang-switch { display: flex; }
  .navbar { gap: 10px; }
  .brand { gap: 8px; }
  .brand > span:last-child { display: none; }
  .nav-actions { order: 2; }
  .nav-toggle { order: 3; }
  .detail-card[data-open="true"] > .detail-popover {
    position: relative; left: auto; right: auto; top: auto; margin-top: 14px;
  }
  .chain-item.detail-card[data-open="true"] { padding-bottom: 18px; }
  .capability.detail-card[data-open="true"] { padding-bottom: 28px; }
}
