/* bunevich.com — Nevrex Secure / NEXUS visual language */
:root {
  --line: var(--border);
  --line-strong: var(--border2);
  --muted: var(--text2);
  --dim: var(--text3);
  --accent-soft: var(--accent-subtle);
  --max: 1152px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; }
body {
  position: relative;
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: #080808; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* Background texture and restrained orange light */
body::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
}
body::after {
  background:
    radial-gradient(ellipse 72rem 46rem at 92% -7%, rgba(112,54,22,.20) 0%, rgba(74,34,14,.10) 38%, transparent 73%),
    radial-gradient(ellipse 38rem 26rem at 52% 0%, rgba(255,100,0,.026), transparent 74%),
    linear-gradient(180deg, #050403 0%, #030303 43%, #030303 100%);
}
.site-header, main, .site-footer, .skip-link { position: relative; z-index: 1; }
.container { width: min(var(--max), calc(100% - 64px)); margin-inline: auto; }
.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; }
.skip-link { position: fixed; z-index: 300; top: 12px; left: 12px; padding: 10px 14px; transform: translateY(-150%); border-radius: 6px; background: var(--accent); color: #080808; text-decoration: none; }
.skip-link:focus { transform: translateY(0); }

/* NEXUS typography — restrained interaction motion, no animated background */
h1, h2, .hero-title-accent, .proof-stat strong, .brand-mark { font-family: var(--font-display); letter-spacing: -.035em; }
h1, h2 { font-weight: 800; line-height: 1.04; }
.hero-title-accent, h2 em, .proof-stat strong { font-family: var(--font-wide); font-weight: 700; letter-spacing: -.05em; }
h2 em { font-style: normal; }
.hero-title-accent { font-size: .82em; color: var(--accent); background: none; }
.hero-container { z-index: 1; }

/* Floating glass navigation */
.site-header {
  position: fixed;
  z-index: 200;
  top: 18px;
  left: 50%;
  width: calc(100% - 32px);
  max-width: 1100px;
  transform: translateX(-50%);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: var(--glass-bg);
  box-shadow: var(--shadow-md);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.header-inner { position: relative; width: 100%; max-width: none; margin: 0; display: flex; align-items: center; gap: 24px; min-height: 62px; padding: 6px 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: max-content; padding: 5px 8px; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; background: rgba(255,255,255,.025); color: var(--text); text-decoration: none; transition: border-color .25s ease, background .25s ease; }
.brand:hover { border-color: rgba(255,100,0,.45); background: var(--accent-subtle); }
.brand-mark { display: inline-flex; align-items: baseline; font: 700 20px/1 var(--mono); letter-spacing: -.11em; }
.brand-mark > span { color: var(--accent); }
.brand-name { font-size: 13px; font-weight: 500; letter-spacing: -.01em; }
.primary-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.primary-nav a { position: relative; padding: 9px 11px; border: 1px solid transparent; border-radius: 8px; color: var(--text2); font: 500 11px/1.3 var(--mono); text-decoration: none; transition: color .25s ease, background .25s ease, border-color .25s ease; }
.primary-nav a:hover, .primary-nav a.is-active { border-color: rgba(255,100,0,.18); background: rgba(255,100,0,.085); color: var(--accent-h); }
.header-cta { display: inline-flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 14px; border: 1px solid rgba(255,100,0,.36); border-radius: 8px; background: rgba(51,27,14,.72); color: var(--text); font-size: 12px; font-weight: 500; text-decoration: none; transition: border-color .25s ease, background .25s ease, color .25s ease; }
.header-cta span { color: var(--accent-h); font-size: 16px; transition: transform .25s ease; }
.header-cta:hover { border-color: var(--accent); background: rgba(77,41,21,.9); color: #fff; }
.header-cta:hover span { transform: none; }
.menu-toggle { display: none; }

/* Hero frame */
.hero { position: relative; z-index: 1; overflow: hidden; padding: 112px 0 52px; background: transparent; }

.hero-container { position: relative; max-width: var(--max); padding: 30px 34px 20px; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: rgba(3,3,3,.56); box-shadow: 0 35px 100px rgba(0,0,0,.28); }
.hero-container::before, .hero-container::after,
.section > .container::before, .section > .container::after,
.contact-section > .container::before, .contact-section > .container::after {
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
  content: "";
}
.hero-container::before, .section > .container::before, .contact-section > .container::before { top: 12px; left: 12px; border-top: 1px solid rgba(161,161,170,.46); border-left: 1px solid rgba(161,161,170,.46); }
.hero-container::after, .section > .container::after, .contact-section > .container::after { right: 12px; bottom: 12px; border-right: 1px solid rgba(161,161,170,.38); border-bottom: 1px solid rgba(161,161,170,.38); }
.hero-meta { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 4px 0 22px; border-bottom: 1px solid var(--line); }
.eyebrow, .hero-location, .hero-overline, .micro-label, .section-index, .system-card-foot, .system-card-head, .hero-bottom, .chat-control-footer, .chat-local { font-family: var(--mono); text-transform: uppercase; letter-spacing: .075em; }
.eyebrow { display: flex; align-items: center; gap: 11px; margin: 0; color: var(--text2); font-size: 11px; }
.status-dot { position: relative; flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255,100,0,.12); }
.hero-location { margin: 0; color: var(--text3); font-size: 10px; }
.hero-location span { padding: 0 8px; color: var(--accent); }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr); align-items: center; gap: clamp(34px, 5vw, 68px); padding: clamp(42px, 5vw, 64px) 0 42px; }
.hero-copy { max-width: 690px; }
.hero-overline { margin: 0 0 20px; color: var(--accent-h); font-size: 11px; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 720px; margin-bottom: 22px; color: var(--text); font-family: var(--font-display); font-size: clamp(46px, 5.4vw, 72px); font-weight: 500; line-height: 1.03; letter-spacing: -.055em; }
h1 span { color: var(--accent); }
.hero-lead { max-width: 620px; margin-bottom: 28px; color: var(--text2); font-size: clamp(16px, 1.4vw, 18px); line-height: 1.75; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 15px; min-height: 48px; padding: 0 18px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 500; text-decoration: none; cursor: pointer; transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease; }
.button:hover { transform: none; }
.button span { font-size: 16px; }
.button:hover span { transform: none; }
.button-primary { border-color: var(--accent); background: var(--accent); color: #080808; box-shadow: 0 7px 24px rgba(255,100,0,.12); }
.button-primary:hover { border-color: var(--accent-h); background: var(--accent-h); box-shadow: 0 10px 32px rgba(255,100,0,.2); }
.button-quiet { padding-inline: 13px; border-color: transparent; background: transparent; color: var(--text2); }
.button-quiet:hover { color: var(--accent-h); }
.button-quiet span { color: var(--accent); }
.button-outline { border-color: var(--border2); background: rgba(255,255,255,.02); color: var(--text); }
.button-outline:hover { border-color: var(--accent); background: var(--accent-subtle); color: var(--accent-h); }
.hero-facts { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 48px); margin-top: clamp(36px, 4vw, 54px); padding-top: 20px; border-top: 1px solid var(--line); }
.hero-fact { display: flex; flex-direction: column; gap: 5px; }
.hero-fact strong { color: var(--text); font: 600 clamp(24px, 2.2vw, 30px)/1 var(--mono); letter-spacing: -.07em; }
.hero-fact strong span { margin-left: 4px; color: var(--accent); font: 11px var(--font); letter-spacing: 0; }
.hero-fact small { color: var(--text3); font-size: 11px; }

/* Interactive architecture panel */
.system-card { position: relative; min-width: 0; padding: 20px 21px 15px; border: 1px solid var(--border); border-radius: 12px; background: linear-gradient(145deg, rgba(10,10,10,.94), rgba(5,5,5,.96)); box-shadow: 0 28px 90px rgba(0,0,0,.45); }
.system-card::before, .system-card::after { position: absolute; width: 20px; height: 20px; pointer-events: none; content: ""; }
.system-card::before { top: 10px; left: 10px; border-top: 1px solid rgba(161,161,170,.42); border-left: 1px solid rgba(161,161,170,.42); }
.system-card::after { right: 10px; bottom: 10px; border-right: 1px solid rgba(161,161,170,.34); border-bottom: 1px solid rgba(161,161,170,.34); }
.system-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--text3); font-size: 10px; }
.system-live { display: inline-flex; align-items: center; gap: 7px; color: var(--text2); }
.system-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 9px var(--success-glow); }
.system-diagram { position: relative; height: 335px; margin: 7px -5px 0; overflow: hidden; background-image: radial-gradient(rgba(255,255,255,.16) .8px, transparent .8px); background-size: 18px 18px; mask-image: radial-gradient(ellipse at center, #000 40%, transparent 82%); }
.diagram-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.diagram-path { fill: none; stroke: url(#lineGlow); stroke-width: 1.25; stroke-dasharray: 5 7; }
.diagram-orbit { fill: none; stroke: rgba(255,255,255,.15); stroke-width: 1; stroke-dasharray: 2 7; }
.diagram-center-dot { fill: var(--accent); filter: drop-shadow(0 0 5px rgba(255,100,0,.8)); }
.diagram-node, .diagram-core { position: absolute; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.14); background: rgba(7,7,7,.96); color: var(--text); cursor: pointer; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.diagram-node { width: 108px; min-height: 74px; padding: 9px 8px; border-radius: 8px; }
.diagram-node:hover, .diagram-node[aria-pressed="true"] { transform: none; border-color: rgba(255,100,0,.72); background: #120b07; box-shadow: 0 8px 24px rgba(0,0,0,.35), 0 0 18px rgba(255,100,0,.08); }
.node-symbol { display: grid; place-items: center; width: 22px; height: 22px; margin-bottom: 3px; color: var(--accent); }
.node-symbol svg { display: block; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.diagram-node strong { font: 600 11px var(--mono); letter-spacing: .08em; }
.diagram-node small { margin-top: 4px; color: var(--text3); font-size: 10px; }
.node-api { top: 9px; left: 1%; }.node-data { top: 9px; right: 1%; }.node-cms { bottom: 5px; left: 1%; }.node-auto { right: 1%; bottom: 5px; }
.diagram-core { top: 50%; left: 50%; width: 112px; height: 112px; transform: translate(-50%,-50%); border-color: rgba(255,100,0,.7); border-radius: 50%; background: radial-gradient(circle, rgba(255,100,0,.14), rgba(7,7,7,.98) 68%); box-shadow: 0 0 0 9px rgba(255,100,0,.035), 0 0 36px rgba(255,100,0,.1); }
.diagram-core:hover, .diagram-core[aria-pressed="true"] { transform: translate(-50%,-50%); border-color: var(--accent); box-shadow: 0 0 0 12px rgba(255,100,0,.05), 0 0 42px rgba(255,100,0,.16); }
.diagram-core strong { color: var(--accent); font: 700 26px/1 var(--mono); letter-spacing: -.08em; }
.diagram-core small { margin-top: 6px; color: var(--text2); font: 9px var(--mono); letter-spacing: .1em; }
.core-ring { position: absolute; inset: -8px; border: 1px solid rgba(255,100,0,.22); border-radius: 50%; }
.diagram-caption { display: flex; align-items: flex-start; gap: 12px; min-height: 58px; padding: 13px 2px 12px; border-top: 1px solid var(--line); }
.caption-marker { color: var(--accent); font: 18px var(--mono); }
.diagram-caption p { max-width: 370px; margin: 0; color: var(--text2); font-size: 13px; line-height: 1.6; }
.system-card-foot { display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); color: var(--text3); font-size: 10px; }
.hero-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0 0; border-top: 1px solid var(--line); color: var(--text3); font-size: 10px; }
.hero-bottom a { color: var(--text2); text-decoration: none; transition: color .2s ease; }
.hero-bottom a:hover { color: var(--accent-h); }
.hero-bottom a span { padding-left: 8px; color: var(--accent); }

/* Framed content sections */
.section, .contact-section { position: relative; z-index: 1; padding: 30px 0; background: transparent; }
.section > .container, .contact-section > .container { position: relative; padding: clamp(30px, 4.2vw, 48px); overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: rgba(5,5,5,.82); box-shadow: 0 22px 70px rgba(0,0,0,.22); }
.section-heading { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 30px; margin-bottom: 42px; }
.section-index { margin: 8px 0 0; color: var(--text3); font-size: 11px; line-height: 1.6; }
.section-index span { color: var(--accent); }
.section-heading-copy { max-width: 790px; }
.section-heading h2, .contact-heading h2 { margin: 0 0 16px; color: var(--text); font-size: clamp(36px, 4.6vw, 56px); font-weight: 500; line-height: 1.06; letter-spacing: -.05em; }
.section-heading h2 em, .contact-heading h2 em { color: var(--accent); font-style: normal; }
.section-heading-copy > p { max-width: 680px; margin: 0; color: var(--text2); font-size: 16px; line-height: 1.8; }

/* Services */
.service-list { border-top: 1px solid var(--line); }
.service-item { border-bottom: 1px solid var(--line); }
.service-item summary { display: grid; grid-template-columns: 56px minmax(220px, .9fr) minmax(220px, 1fr) 34px; align-items: center; gap: 18px; min-height: 86px; list-style: none; cursor: pointer; transition: background .16s ease; }
.service-item summary::-webkit-details-marker { display: none; }
.service-item summary:hover { background: rgba(255,255,255,.025); }
.service-number { color: var(--accent); font: 12px var(--mono); }
.service-title { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--text); font-size: clamp(17px, 1.55vw, 20px); font-weight: 500; letter-spacing: -.025em; }
.service-title > svg { display: block; flex: 0 0 19px; width: 19px; height: 19px; fill: none; stroke: var(--text3); stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.service-item summary:hover .service-title > svg, .service-item[open] .service-title > svg { stroke: var(--accent-h); }
.service-summary { color: var(--text2); font-size: 14px; line-height: 1.65; }
.service-plus { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--border2); border-radius: 50%; color: var(--text2); font: 18px var(--mono); transition: background .16s ease, color .16s ease, border-color .16s ease; }
.service-item[open] .service-plus { transform: none; border-color: var(--accent); background: var(--accent); color: #080808; }
.service-detail { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(220px, .9fr); gap: 18px; padding: 0 42px 24px 74px; }
.service-detail p { grid-column: 2; max-width: 650px; margin: 0; color: var(--text2); font-size: 15px; line-height: 1.8; }
.service-tags { grid-column: 3; display: flex; align-items: flex-start; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.service-tags span { padding: 6px 9px; border: 1px solid var(--border); border-radius: 4px; color: var(--text2); font: 10px var(--mono); letter-spacing: .015em; }

/* Technology tabs */
.tech-interface { display: grid; grid-template-columns: minmax(230px, .72fr) minmax(0, 1.28fr); overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: rgba(7,7,7,.72); }
.tech-tabs { display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.tech-tab { position: relative; min-height: 70px; padding: 0 22px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text2); text-align: left; font: 11px var(--mono); letter-spacing: .035em; cursor: pointer; transition: color .2s ease, background .2s ease; }
.tech-tab:last-child { border-bottom: 0; }
.tech-tab::after { position: absolute; top: 0; right: -1px; bottom: 0; width: 2px; transform: none; background: var(--accent); content: ""; transition: none; }
.tech-tab:hover, .tech-tab.is-active { background: rgba(255,100,0,.065); color: var(--text); }
.tech-tab.is-active::after { transform: none; }
.tech-panels { min-height: 280px; }
.tech-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, .8fr); align-items: center; gap: 34px; min-height: 280px; padding: 36px clamp(24px, 4vw, 48px); }
.tech-panel-copy .micro-label { margin: 0 0 15px; color: var(--accent-h); font-size: 11px; }
.tech-panel h3 { margin: 0 0 12px; color: var(--text); font-size: clamp(26px, 3vw, 36px); font-weight: 500; letter-spacing: -.045em; }
.tech-panel-copy > p:last-child { max-width: 430px; margin: 0; color: var(--text2); font-size: 15px; line-height: 1.8; }
.tech-tags { display: flex; align-content: center; flex-wrap: wrap; gap: 8px; }
.tech-tags span { padding: 9px 11px; border: 1px solid var(--border); border-radius: 5px; color: var(--text2); font: 10px var(--mono); transition: border-color .2s ease, color .2s ease, background .2s ease; }
.tech-tags span:hover { border-color: var(--accent); background: var(--accent-subtle); color: var(--accent-h); }

/* Work approach */
.approach-section { background: transparent; }
.process-track { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; padding-top: 28px; }
.process-line { position: absolute; top: 5px; right: 8%; left: 0; height: 1px; overflow: hidden; background: rgba(255,255,255,.16); }
.process-line span { display: block; width: 100%; height: 100%; background: var(--accent); }

.process-step { position: relative; padding: 0 17px 0 0; }
.process-index { position: relative; display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 24px; border: 1px solid rgba(255,100,0,.48); border-radius: 50%; background: #080808; color: var(--accent); font: 11px var(--mono); box-shadow: 0 0 0 5px rgba(255,100,0,.035); }
.process-step h3 { margin: 0 0 10px; color: var(--text); font-size: 19px; font-weight: 500; letter-spacing: -.03em; }
.process-step p { max-width: 250px; margin: 0; color: var(--text2); font-size: 14px; line-height: 1.8; }
.work-format { display: grid; grid-template-columns: 205px minmax(0, 1fr); gap: 20px 28px; margin-top: 58px; padding: 25px 0 0; border-top: 1px solid var(--line); }
.work-format .micro-label { margin-top: 5px; color: var(--accent-h); font-size: 11px; line-height: 1.6; }
.work-format > p { max-width: 820px; margin: 0; color: var(--text2); font-size: 16px; line-height: 1.85; }
.format-tags { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; }
.format-tags span { padding: 7px 11px; border: 1px solid var(--border2); border-radius: 4px; color: var(--text2); font: 11px var(--mono); }

/* Contact and local chat */
.contact-section { padding-bottom: 64px; }
.contact-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 42px; }
.contact-heading > div { max-width: 720px; }
.contact-heading .section-index { margin: 0 0 20px; color: var(--text3); }
.contact-heading h2 { margin: 0; }
.contact-heading > p { max-width: 330px; margin: 0 0 6px; color: var(--text2); font-size: 15px; line-height: 1.8; }
.contact-layout { display: grid; grid-template-columns: minmax(240px, .65fr) minmax(0, 1.35fr); align-items: start; gap: clamp(30px, 5vw, 62px); }
.contact-aside { padding: 24px 20px 0 0; }
.aside-mark { margin-bottom: 24px; color: var(--accent); font: 26px var(--mono); }
.contact-aside h3 { margin: 0 0 13px; color: var(--text); font-size: 23px; font-weight: 500; letter-spacing: -.035em; }
.contact-aside > p { max-width: 350px; margin: 0; color: var(--text2); font-size: 14px; line-height: 1.85; }
.aside-details { margin-top: 34px; border-top: 1px solid var(--line); }
.aside-details div { display: flex; flex-direction: column; gap: 5px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.aside-details span { color: var(--text3); font: 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.aside-details strong { color: var(--text2); font-size: 13px; font-weight: 500; }
.chat-panel { min-width: 0; overflow: hidden; border: 1px solid var(--border2); border-radius: 12px; background: #070707; box-shadow: 0 24px 80px rgba(0,0,0,.42); }
.chat-header { display: flex; align-items: center; gap: 13px; min-height: 74px; padding: 13px 19px; border-bottom: 1px solid var(--line); background: #0b0b0b; }
.chat-avatar { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border: 1px solid rgba(255,100,0,.4); border-radius: 9px; background: linear-gradient(145deg, #261306, #100a06); color: var(--accent-h); font: 700 12px var(--mono); }
.chat-heading-text { display: flex; flex-direction: column; gap: 3px; }
.chat-heading-text strong { color: var(--text); font-size: 14px; font-weight: 600; }
.chat-heading-text span { color: var(--text3); font-size: 11px; }
.chat-local { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; color: var(--text3); font-size: 10px; }
.chat-local i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success-glow); }
.chat-disclaimer { display: flex; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: rgba(255,100,0,.045); }
.chat-disclaimer > span { color: var(--accent); font-size: 15px; }
.chat-disclaimer p { margin: 0; color: var(--text2); font-size: 12px; line-height: 1.65; }
.chat-messages { display: flex; flex-direction: column; gap: 12px; min-height: 260px; max-height: 420px; overflow-y: auto; padding: 22px 19px 17px; scrollbar-color: rgba(255,255,255,.16) transparent; scrollbar-width: thin; background-color: #050505; background-image: radial-gradient(rgba(255,255,255,.055) .7px, transparent .7px); background-size: 16px 16px; }
.chat-message { max-width: min(88%, 500px); padding: 12px 14px 9px; border: 1px solid rgba(255,255,255,.1); border-radius: 11px 11px 11px 3px; background: #101010; color: var(--text); font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.chat-message p { margin: 0; white-space: pre-wrap; }
.chat-message .message-time { display: block; margin-top: 5px; color: var(--text3); text-align: right; font: 10px var(--mono); }
.chat-message.is-user { align-self: flex-end; border-color: rgba(255,100,0,.2); border-radius: 11px 11px 3px 11px; background: #241207; color: #f4e8df; }
.chat-message.is-user .message-time { color: #b88b6d; }
.chat-controls { padding: 16px 18px 13px; border-top: 1px solid var(--line); background: #090909; }
.chat-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.chat-option { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 54px; padding: 8px 10px; border: 1px solid var(--border2); border-radius: 8px; background: rgba(255,255,255,.018); color: var(--text2); text-align: left; font-size: 11.5px; line-height: 1.35; cursor: pointer; transition: border-color .16s ease, color .16s ease, background .16s ease; }
.chat-option-icon { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border: 1px solid rgba(255,100,0,.20); border-radius: 7px; background: rgba(255,100,0,.045); color: var(--text2); }
.chat-option-icon svg { display: block; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.chat-option-label { min-width: 0; }
.chat-option:hover { transform: none; border-color: var(--accent); background: var(--accent-subtle); color: var(--accent-h); }
.chat-option:disabled, .chat-send:disabled, .chat-text-button:disabled { cursor: wait; opacity: .55; }
.chat-answer-form { display: flex; align-items: flex-end; gap: 9px; }
.chat-answer-form textarea { display: block; width: 100%; min-height: 48px; max-height: 130px; resize: vertical; padding: 12px 13px; border: 1px solid var(--border2); border-radius: 7px; outline: 0; background: #050505; color: var(--text); font-size: 14px; line-height: 1.55; }
.chat-answer-form textarea::placeholder { color: var(--text3); }
.chat-answer-form textarea:focus { border-color: rgba(255,100,0,.72); }
.chat-send { flex: 0 0 44px; width: 44px; height: 44px; border: 0; border-radius: 7px; background: var(--accent); color: #080808; font: 23px var(--mono); cursor: pointer; transition: background .16s ease; }
.chat-send:hover { transform: none; background: var(--accent-h); }
.chat-control-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; color: var(--text3); font-size: 10px; }
.chat-control-actions { display: flex; gap: 16px; }
.chat-text-button { padding: 2px 0; border: 0; background: transparent; color: var(--text2); font-size: 11px; cursor: pointer; transition: color .2s ease; }
.chat-text-button:hover { color: var(--accent-h); }
.chat-summary { padding: 22px 19px 20px; border-top: 1px solid var(--line); background: #0b0b0b; }
.summary-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.summary-heading .micro-label { color: var(--accent-h); font-size: 11px; }
.summary-check { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid rgba(255,100,0,.48); border-radius: 50%; color: var(--accent); font-size: 14px; }
.chat-summary h3 { margin: 0 0 16px; color: var(--text); font-size: 22px; font-weight: 500; letter-spacing: -.035em; }
.summary-list { display: grid; grid-template-columns: 130px minmax(0,1fr); margin: 0 0 20px; border-top: 1px solid var(--line); }
.summary-list div { display: contents; }
.summary-list dt, .summary-list dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.65; }
.summary-list dt { color: var(--text3); }
.summary-list dd { color: var(--text2); overflow-wrap: anywhere; white-space: pre-wrap; }
.summary-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.summary-actions .button { min-height: 44px; padding-inline: 14px; font-size: 12px; }
.summary-note { margin: 13px 0 0; color: var(--text3); font-size: 11px; line-height: 1.65; }
.summary-restart { margin-top: 12px; }
/* Project brief delivery */
.brief-honey { position: absolute !important; left: -10000px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; opacity: 0 !important; pointer-events: none !important; }
.brief-honey input { width: 1px; height: 1px; }
#send-brief[disabled] { opacity: .72; cursor: wait; }


.site-footer { padding: 24px 0 30px; border-top: 1px solid var(--line); background: rgba(3,3,3,.78); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { border: 0; background: transparent; }
.footer-brand .brand-mark { font-size: 17px; }
.footer-brand .brand-name { font-size: 12px; }
.footer-inner p, .back-top { margin: 0; color: var(--text3); font-size: 12px; text-decoration: none; }
.back-top:hover { color: var(--accent-h); }

@media (max-width: 1020px) {
  .container { width: min(var(--max), calc(100% - 48px)); }
  .header-inner { gap: 15px; }
  .primary-nav { gap: 0; }
  .primary-nav a { padding-inline: 8px; font-size: 10px; }
  .hero-container { padding-inline: 28px; }
  .hero-layout { grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr); gap: 30px; }
  h1 { font-size: clamp(44px, 5.6vw, 62px); }
  .system-card { padding-inline: 15px; }
  .system-diagram { height: 310px; }
  .diagram-node { width: 98px; }
  .section-heading { grid-template-columns: 140px minmax(0,1fr); }
  .service-item summary { grid-template-columns: 44px minmax(190px, .9fr) minmax(180px, 1fr) 30px; gap: 12px; }
  .service-detail { grid-template-columns: 44px minmax(0,1fr) minmax(170px,.9fr); padding-left: 56px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 82px; }
  .container { width: calc(100% - 38px); }
  .site-header { top: 10px; }
  .header-inner { min-height: 58px; gap: 10px; padding: 5px 7px; }
  .brand { gap: 8px; padding: 4px 7px; }
  .brand-mark { font-size: 18px; }
  .brand-name { font-size: 12px; }
  .header-cta { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; padding: 8px 10px; border: 1px solid var(--border); border-radius: 7px; background: rgba(255,255,255,.025); color: var(--text2); font: 11px var(--mono); cursor: pointer; }
  .menu-icon { display: grid; gap: 4px; width: 17px; }
  .menu-icon i { display: block; height: 1px; background: var(--accent); }
  .primary-nav { position: absolute; top: calc(100% + 8px); right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 8px; border: 1px solid var(--border2); border-radius: 10px; background: rgba(7,7,7,.97); box-shadow: var(--shadow-lg); }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 12px 13px; border: 1px solid transparent; border-radius: 7px; font-size: 12px; }
  .primary-nav a:hover, .primary-nav a.is-active { border-color: rgba(255,100,0,.2); }
  .hero { padding: 88px 0 26px; }
  .hero-container { width: calc(100% - 28px); padding: 20px 17px 15px; }
  .hero-meta { align-items: flex-start; padding-bottom: 17px; }
  .eyebrow { font-size: 10px; }
  .hero-location { padding-top: 2px; font-size: 9px; white-space: nowrap; }
  .hero-layout { grid-template-columns: 1fr; gap: 34px; padding: 38px 0 30px; }
  .hero-overline { margin-bottom: 15px; font-size: 10px; }
  h1 { max-width: 620px; margin-bottom: 19px; font-size: clamp(42px, 10vw, 60px); }
  .hero-lead { max-width: 600px; font-size: 16px; }
  .hero-facts { gap: 24px; margin-top: 32px; }
  .hero-fact strong { font-size: 24px; }
  .hero-fact small { font-size: 10px; }
  .system-card { max-width: 540px; padding: 17px 14px 13px; }
  .system-diagram { height: 300px; }
  .hero-bottom { align-items: flex-start; gap: 12px; font-size: 9px; }
  .hero-bottom span { max-width: 46%; }
  .hero-bottom a { max-width: 50%; text-align: right; }
  .section, .contact-section { padding: 16px 0; }
  .section > .container, .contact-section > .container { width: calc(100% - 28px); padding: 28px 19px 30px; }
  .section-heading { grid-template-columns: 1fr; gap: 10px; margin-bottom: 30px; }
  .section-index { margin-top: 0; font-size: 10px; }
  .section-heading h2, .contact-heading h2 { font-size: clamp(34px, 8.4vw, 48px); }
  .section-heading-copy > p { font-size: 15px; }
  .service-item summary { grid-template-columns: 34px minmax(0,1fr) 28px; gap: 10px; min-height: 82px; padding: 12px 0; }
  .service-number { grid-row: 1 / span 2; align-self: start; padding-top: 4px; }
  .service-title { font-size: 16px; }
  .service-summary { grid-column: 2; font-size: 13px; }
  .service-plus { grid-column: 3; grid-row: 1 / span 2; width: 26px; height: 26px; }
  .service-item summary:hover { padding-inline: 0; }
  .service-detail { display: block; padding: 0 0 19px 44px; }
  .service-detail p { margin-bottom: 12px; font-size: 14px; }
  .service-tags { justify-content: flex-start; }
  .tech-interface { grid-template-columns: 1fr; }
  .tech-tabs { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); border-right: 0; border-bottom: 1px solid var(--line); }
  .tech-tab { min-height: 54px; padding: 0 12px; border-right: 1px solid var(--line); font-size: 10px; }
  .tech-tab:nth-child(2n) { border-right: 0; }
  .tech-tab:nth-child(5) { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
  .tech-tab::after { top: auto; right: 0; bottom: -1px; left: 0; width: auto; height: 2px; transform: none; }
  .tech-tab.is-active::after { transform: none; }
  .tech-panel { grid-template-columns: 1fr; gap: 22px; min-height: 0; padding: 26px 18px 28px; }
  .tech-panel h3 { font-size: 29px; }
  .tech-panel-copy > p:last-child { font-size: 14px; }
  .process-track { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px 18px; padding-top: 22px; }
  .process-line { top: 2px; right: 0; }
  .process-step { padding-right: 0; }
  .process-index { width: 36px; height: 36px; margin-bottom: 15px; font-size: 10px; }
  .process-step h3 { font-size: 17px; }
  .process-step p { font-size: 13px; }
  .work-format { grid-template-columns: 1fr; gap: 12px; margin-top: 38px; }
  .work-format .micro-label { font-size: 10px; }
  .work-format > p { font-size: 15px; }
  .format-tags { grid-column: 1; }
  .format-tags span { font-size: 10px; }
  .contact-heading { display: block; margin-bottom: 30px; }
  .contact-heading .section-index { margin-bottom: 16px; }
  .contact-heading > p { max-width: 520px; margin-top: 15px; font-size: 14px; }
  .contact-layout { grid-template-columns: 1fr; gap: 25px; }
  .contact-aside { padding: 0; }
  .aside-mark { margin-bottom: 10px; }
  .contact-aside h3 { font-size: 20px; }
  .contact-aside > p { max-width: 600px; font-size: 14px; }
  .aside-details { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 22px; border-bottom: 0; }
  .aside-details div { border-bottom: 0; }
  .aside-details span { font-size: 9px; }
  .aside-details strong { font-size: 11px; }
  .chat-messages { min-height: 230px; max-height: 360px; padding: 17px 13px 14px; }
  .chat-controls { padding: 13px 13px 11px; }
  .chat-disclaimer { padding-inline: 13px; }
  .chat-header { padding-inline: 14px; }
  .chat-message { max-width: 94%; font-size: 13px; }
  .chat-option { font-size: 11px; }
  .summary-list { grid-template-columns: 95px minmax(0,1fr); }
  .summary-list dt, .summary-list dd { font-size: 12px; }
  .summary-actions .button { flex: 1 1 100%; }
  .footer-inner { flex-wrap: wrap; }
  .footer-inner p { order: 3; width: 100%; }
  .floating-contact { right: 13px; bottom: 13px; padding: 10px 12px; }
}

@media (max-width: 390px) {
  .container { width: calc(100% - 28px); }
  .hero-meta { display: block; }
  .hero-location { margin-top: 8px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-facts { justify-content: space-between; gap: 10px; }
  .hero-fact strong { font-size: 21px; }
  .system-card { padding-inline: 10px; }
  .system-diagram { height: 280px; }
  .diagram-node { width: 82px; min-height: 64px; }
  .diagram-node small { font-size: 9px; }
  .diagram-core { width: 96px; height: 96px; }
  .diagram-core strong { font-size: 22px; }
  .process-track { gap: 24px 13px; }
  .aside-details { grid-template-columns: 1fr; gap: 0; }
  .aside-details div { padding: 9px 0; border-bottom: 1px solid var(--line); }
  .chat-control-footer { align-items: flex-start; flex-direction: column; }
  .chat-control-actions { align-self: flex-end; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }


/* Quiet section rail — localized, static navigation */
.section-rail { position: fixed; z-index: 120; top: 50%; left: 18px; display: none; flex-direction: column; gap: 18px; padding: 7px 0; transform: translateY(-50%); }
.section-rail::before { position: absolute; top: 0; bottom: 0; left: 3px; width: 1px; background: var(--border2); content: ""; }
.section-rail a { position: relative; z-index: 1; display: flex; align-items: center; width: 7px; height: 7px; border: 1px solid var(--border2); border-radius: 50%; background: var(--surface3); text-decoration: none; }
.section-rail a span { position: absolute; left: 18px; color: var(--text2); font: 10px/1.4 var(--mono); letter-spacing: .12em; opacity: 0; white-space: nowrap; pointer-events: none; }
.section-rail a:hover span, .section-rail a.is-active span { color: var(--text2); opacity: 1; }
.section-rail a.is-active { border-color: var(--accent); background: var(--accent); }
@media (min-width: 1280px) { .section-rail { display: flex; } }

/* Direct contact links */
.direct-contact { display: grid; gap: 10px; margin: 22px 0 14px; }
.direct-link { position: relative; display: flex; align-items: baseline; gap: 14px; padding: 16px 18px; border: 1px solid var(--border2); border-radius: var(--radius); text-decoration: none; color: var(--text); overflow: hidden; transition: border-color .16s ease, background .16s ease; }
.direct-link > * { position: relative; }
.direct-link span { min-width: 84px; color: var(--accent-h); font: 11px var(--mono); letter-spacing: .14em; }
.direct-link strong { flex: 1; font: 600 clamp(15px,2.2vw,20px) var(--font-display); word-break: break-all; }
.direct-link i { color: var(--accent-h); font-style: normal; }
.direct-link:hover { border-color: var(--accent); background: rgba(255,100,0,.055); }
.footer-mail { color: var(--text2); text-decoration: none; font: 12px var(--mono); }
.footer-mail:hover { color: var(--accent); }
@media (max-width: 760px) { .footer-mail { display: none; } }

/* Language switch — compact NEXUS control */
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: rgba(255,255,255,.025);
}
.language-switch button {
  min-width: 32px;
  min-height: 29px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--text3);
  font: 600 10px/1 var(--mono);
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.language-switch button:hover { color: var(--text); }
.language-switch button.is-active {
  border-color: rgba(255,100,0,.34);
  background: rgba(255,100,0,.12);
  color: var(--accent-h);
}
.i18n-text { color: inherit; }
.hero h1 .i18n-text { color: inherit; }

/* Contact card replaces the embedded form; the conversation lives in the widget. */
.contact-card {
  position: relative;
  min-width: 0;
  padding: 22px 24px 18px;
  overflow: hidden;
  border: 1px solid var(--border2);
  border-radius: 12px;
  background:
    radial-gradient(circle at 78% 27%, rgba(255,100,0,.105), transparent 15rem),
    linear-gradient(145deg, rgba(16,11,8,.96), rgba(6,6,6,.98) 64%);
  box-shadow: 0 24px 80px rgba(0,0,0,.34);
}
.contact-card::before,
.contact-card::after {
  position: absolute;
  width: 17px;
  height: 17px;
  pointer-events: none;
  content: "";
}
.contact-card::before { top: 12px; left: 12px; border-top: 1px solid rgba(161,161,170,.42); border-left: 1px solid rgba(161,161,170,.42); }
.contact-card::after { right: 12px; bottom: 12px; border-right: 1px solid rgba(161,161,170,.34); border-bottom: 1px solid rgba(161,161,170,.34); }
.contact-card-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.contact-card-top .micro-label { margin: 0; color: var(--accent-h); font-size: 10px; }
.contact-card-status { display: inline-flex; align-items: center; gap: 7px; color: var(--text3); font: 9px var(--mono); letter-spacing: .07em; }
.contact-card-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 9px var(--success-glow); }
.contact-card-visual { position: relative; display: grid; place-items: center; height: 174px; margin: 6px 0 8px; overflow: hidden; }
.contact-card-orbit { position: absolute; width: 142px; height: 142px; border: 1px solid rgba(255,100,0,.23); border-radius: 50%; }
.contact-card-orbit::before,
.contact-card-orbit::after { position: absolute; inset: 15px; border: 1px dashed rgba(255,255,255,.13); border-radius: 50%; content: ""; }
.contact-card-orbit::after { inset: 31px; border-style: solid; border-color: rgba(255,165,0,.16); }
.contact-card-orbit.orbit-one { }
.contact-card-orbit.orbit-two { width: 190px; height: 190px; border-color: rgba(255,255,255,.09); }
.contact-card-orbit.orbit-two::before { inset: 22px; border-color: rgba(255,100,0,.15); }
.contact-card-orbit.orbit-two::after { display: none; }
.contact-card-core { position: relative; z-index: 2; display: grid; place-items: center; width: 66px; height: 66px; border: 1px solid rgba(255,100,0,.55); border-radius: 12px; background: linear-gradient(145deg, #261306, #0b0806); box-shadow: 0 0 38px rgba(255,100,0,.14), inset 0 0 20px rgba(255,100,0,.06); color: #fff; font: 700 21px var(--mono); letter-spacing: -.1em; }
.contact-card-core span { color: var(--accent); }
.contact-card-node { position: absolute; z-index: 2; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(255,255,255,.15); border-radius: 7px; background: #0b0b0b; color: var(--accent-h); font: 9px var(--mono); box-shadow: 0 4px 18px rgba(0,0,0,.3); }
.contact-card-node.node-one { top: 20px; left: calc(50% - 93px); }
.contact-card-node.node-two { top: 36px; right: calc(50% - 106px); }
.contact-card-node.node-three { bottom: 17px; left: calc(50% + 69px); }
.contact-card h3 { position: relative; z-index: 1; max-width: 460px; margin: 0 0 9px; color: var(--text); font-size: clamp(21px, 2.2vw, 27px); font-weight: 500; line-height: 1.2; letter-spacing: -.035em; }
.contact-card > p { position: relative; z-index: 1; max-width: 470px; margin: 0; color: var(--text2); font-size: 13px; line-height: 1.75; }
.contact-card-button { position: relative; z-index: 1; width: 100%; justify-content: space-between; margin-top: 20px; }
.contact-card-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 17px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--text3); font: 9px var(--mono); letter-spacing: .065em; }

/* Floating project-brief widget */
.chat-widget {
  position: fixed;
  z-index: 230;
  right: 24px;
  bottom: 88px;
  display: flex;
  flex-direction: column;
  width: min(438px, calc(100vw - 32px));
  max-height: min(720px, calc(100dvh - 118px));
  overflow: hidden;
  transform: none;
  transform-origin: bottom right;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  background: rgba(5,5,5,.97);
  box-shadow: 0 28px 100px rgba(0,0,0,.68), 0 0 40px rgba(255,100,0,.055);
  opacity: 1;
  pointer-events: auto;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.chat-widget.is-open { opacity: 1; pointer-events: auto; }
.chat-widget::before { position: absolute; z-index: 2; top: 0; left: 0; width: 74px; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); content: ""; }
.chat-widget-header { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; min-height: 70px; padding: 12px 15px; border-bottom: 1px solid var(--line); background: rgba(11,11,11,.96); }
.chat-widget-header .chat-avatar { width: 40px; height: 40px; flex-basis: 40px; }
.chat-widget-header .chat-heading-text { min-width: 0; }
.chat-widget-header .chat-heading-text strong { font-size: 14px; }
.chat-widget-header .chat-heading-text span { font-size: 10px; }
.chat-widget-header .chat-local { flex: 0 0 auto; margin-left: auto; }
.chat-close { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; margin-left: 3px; border: 1px solid var(--border); border-radius: 7px; background: rgba(255,255,255,.025); color: var(--text2); font: 21px/1 var(--font); cursor: pointer; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.chat-close:hover { border-color: rgba(255,100,0,.45); background: var(--accent-subtle); color: var(--accent-h); }
.chat-widget-note { display: flex; gap: 9px; padding: 10px 15px; border-bottom: 1px solid var(--line); background: rgba(255,100,0,.035); }
.chat-widget-note > span { flex: 0 0 auto; color: var(--accent); font-size: 13px; }
.chat-widget-note p { margin: 0; color: var(--text3); font-size: 10px; line-height: 1.55; }
.chat-widget .chat-messages { flex: 1 1 auto; min-height: 170px; max-height: 300px; padding: 17px 15px 13px; background-color: #050505; }
.chat-widget .chat-message { max-width: 91%; font-size: 13px; }
.chat-widget .chat-controls { flex: 0 0 auto; padding: 13px 15px 11px; }
.chat-widget .chat-options { max-height: 250px; overflow-y: auto; padding: 1px 2px 4px 0; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.14) transparent; }
.chat-widget .chat-option { min-height: 52px; padding: 8px 9px; font-size: 11px; }
.chat-widget .chat-answer-form textarea { min-height: 44px; max-height: 100px; font-size: 13px; }
.chat-widget .chat-send { flex-basis: 42px; width: 42px; height: 42px; }
.chat-widget .chat-control-footer { margin-top: 11px; font-size: 9px; }
.chat-widget .chat-text-button { font-size: 10px; }
.chat-widget .chat-summary { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 17px 15px 15px; }
.chat-widget .chat-summary h3 { font-size: 20px; }
.chat-widget .summary-list { grid-template-columns: 105px minmax(0,1fr); margin-bottom: 14px; }
.chat-widget .summary-list dt, .chat-widget .summary-list dd { padding: 8px 0; font-size: 11px; }
.chat-widget .summary-actions { gap: 7px; }
.chat-widget .summary-actions .button { min-height: 40px; padding-inline: 11px; font-size: 11px; }
.chat-widget .summary-note { font-size: 10px; }
.chat-widget-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 15px; border-top: 1px solid var(--line); background: #080808; color: var(--text3); font: 8px var(--mono); letter-spacing: .055em; }
.chat-launcher {
  position: fixed;
  z-index: 240;
  right: 24px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 15px 0 12px;
  border: 1px solid rgba(255,100,0,.52);
  border-radius: 9px;
  background: rgba(9,9,9,.94);
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 12px 36px rgba(0,0,0,.42), 0 0 22px rgba(255,100,0,.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
}
.chat-launcher.is-visible { opacity: 1; pointer-events: auto; }
.chat-launcher:hover, .chat-launcher.is-active { border-color: var(--accent); background: #160d07; }
.chat-launcher > b { color: var(--accent-h); font: 16px var(--mono); }
.chat-launcher-icon { display: flex; align-items: center; justify-content: center; gap: 2px; width: 25px; height: 25px; border: 1px solid rgba(255,100,0,.32); border-radius: 7px; background: rgba(255,100,0,.08); }
.chat-launcher-icon i { width: 3px; height: 3px; border-radius: 50%; background: var(--accent-h); }
body.chat-open .chat-launcher { opacity: 0; pointer-events: none; }

@media (max-width: 1020px) {
  .language-switch { margin-left: auto; }
  .primary-nav { margin-left: auto; }
  .header-cta { padding-inline: 11px; font-size: 11px; }
}
@media (max-width: 760px) {
  .header-inner { gap: 8px; }
  .primary-nav { margin-left: 0; }
  .language-switch { margin-left: auto; flex: 0 0 auto; }
  .language-switch button { min-width: 29px; min-height: 27px; padding-inline: 5px; }
  .chat-launcher { right: 14px; bottom: 14px; min-height: 44px; padding-inline: 10px 12px; gap: 9px; font-size: 11px; }
  .chat-widget { inset: 0; width: 100%; height: 100dvh; max-height: none; border: 0; border-radius: 0; }
 
  .chat-widget-header { min-height: 68px; padding: 12px 15px; padding-top: max(12px, env(safe-area-inset-top)); }
  .chat-widget-note { padding-inline: 15px; }
  .chat-widget .chat-messages { flex: 1 1 0; min-height: 0; max-height: none; padding: 17px 14px; }
  .chat-widget .chat-controls { padding: 13px 14px 11px; padding-bottom: max(11px, env(safe-area-inset-bottom)); }
  .chat-widget .chat-options { max-height: min(38vh, 260px); }
  .chat-widget .chat-option { min-height: 40px; font-size: 12px; }
  .chat-widget .chat-summary { flex: 1 1 0; max-height: none; padding: 17px 14px; padding-bottom: max(17px, env(safe-area-inset-bottom)); }
  .chat-widget-foot { padding: 9px 14px; padding-bottom: max(9px, env(safe-area-inset-bottom)); }
  body.chat-open { overflow: hidden; }
  .contact-card { padding: 20px 18px 16px; }
  .contact-card-visual { height: 150px; }
  .contact-card h3 { font-size: 23px; }
  .contact-card-foot { font-size: 8px; }
}
@media (max-width: 390px) {
  .brand-name { max-width: 112px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .chat-widget .summary-list { grid-template-columns: 88px minmax(0,1fr); }
  .chat-widget .summary-actions .button { flex: 1 1 100%; }
  .contact-card-status { font-size: 8px; }
}
@media (max-width: 760px) {
  .brand { order: 1; }
  .language-switch { order: 2; margin-left: auto; }
  .menu-toggle { order: 3; margin-left: 0; }
  .primary-nav { order: 4; }
  .header-cta { display: none; }
}
.chat-widget-note p { font-size: 11px; }
.chat-widget-foot { font-size: 9px; }
@media (max-width: 340px) {
  .site-header { width: calc(100% - 20px); }
  .header-inner { gap: 5px; padding-inline: 5px; }
  .brand { gap: 6px; padding-inline: 5px; }
  .brand-mark { font-size: 17px; }
  .brand-name { max-width: 72px; font-size: 11px; }
  .language-switch { gap: 0; padding: 2px; }
  .language-switch button { min-width: 25px; min-height: 25px; padding-inline: 4px; font-size: 9px; }
  .menu-toggle { gap: 7px; padding: 7px 7px; font-size: 10px; }
}


/* Verified profile, selected portfolio and client reviews */
.proof-section {
  position: relative;
  z-index: 1;
  padding: 42px 0 24px;
}
.proof-heading { margin-bottom: 26px; }
.proof-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
}
.proof-stat {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 138px;
  flex-direction: column;
  gap: 9px;
  padding: 18px 17px 16px;
  border-right: 1px solid var(--line);
}
.proof-stat:last-child { border-right: 0; }
.proof-stat-label {
  color: var(--text2);
  font: 500 10px/1.4 var(--mono);
  letter-spacing: .025em;
  text-transform: uppercase;
}
.proof-stat strong {
  margin-top: auto;
  color: var(--text);
  font: 600 clamp(27px, 3vw, 36px)/1 var(--mono);
  letter-spacing: -.07em;
}
.proof-stat-suffix {
  margin-left: 3px;
  color: var(--text3);
  font-size: .42em;
  letter-spacing: 0;
}
.proof-stat small {
  color: var(--text3);
  font-size: 11px;
  line-height: 1.35;
}
.proof-stat-rating strong { color: var(--accent-h); }
.proof-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 2px 0;
}
.proof-snapshot {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text3);
  font: 10px/1.4 var(--mono);
}
.proof-snapshot .status-dot { width: 6px; height: 6px; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font: 500 11px/1.4 var(--mono);
  text-decoration: none;
  transition: color .2s ease;
}
.text-link > span:last-child { color: var(--accent); }
.text-link:hover { color: var(--accent-h); }
.text-link:hover > span:last-child { transform: none; }

.portfolio-section { padding-top: 74px; }
.portfolio-heading-line {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.portfolio-heading-line h2 { margin-bottom: 0; }
.portfolio-count {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 5px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text3);
  font: 10px/1.3 var(--mono);
  white-space: nowrap;
}
.portfolio-count strong { color: var(--accent-h); font-size: 16px; }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}
.portfolio-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255,255,255,.022);
  transition: border-color .16s ease, background .16s ease;
}
.portfolio-card:hover {
  transform: none;
  border-color: rgba(255,100,0,.42);
  background: rgba(255,255,255,.035);
}
.portfolio-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #111;
  border-bottom: 1px solid var(--line);
}
.portfolio-image::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.32));
}
.portfolio-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter .16s ease;
}
.portfolio-card:hover .portfolio-image img { transform: none; filter: none; }
.portfolio-image-index {
  position: absolute;
  z-index: 1;
  right: 12px;
  bottom: 10px;
  color: rgba(255,255,255,.82);
  font: 9px/1 var(--mono);
  letter-spacing: .08em;
}
.portfolio-card-info { min-height: 112px; padding: 15px 16px 17px; }
.portfolio-kind {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-h);
  font: 9px/1.35 var(--mono);
  letter-spacing: .065em;
}
.portfolio-card-info h3 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -.015em;
}
.portfolio-footer, .reviews-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
}
.portfolio-footer > span, .reviews-footer p {
  margin: 0;
  color: var(--text3);
  font-size: 11px;
  line-height: 1.6;
}
.portfolio-footer .button { min-height: 40px; }

.reviews-section { padding-top: 82px; }
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-top: 30px;
}
.review-card {
  display: flex;
  min-width: 0;
  min-height: 260px;
  flex-direction: column;
  padding: 21px 20px 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background:
    linear-gradient(145deg, rgba(255,100,0,.035), transparent 48%),
    rgba(255,255,255,.02);
  transition: border-color .16s ease;
}
.review-card:hover { transform: none; border-color: rgba(255,100,0,.35); }
.review-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
}
.review-stars {
  color: var(--accent-h);
  font-size: 13px;
  letter-spacing: 2px;
  white-space: nowrap;
}
.review-score { color: var(--text3); font: 10px/1 var(--mono); }
.review-card blockquote {
  margin: 0 0 22px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.72;
}
.review-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.review-card-footer > div { display: grid; gap: 5px; min-width: 0; }
.review-card-footer strong {
  color: var(--text);
  font: 600 11px/1.3 var(--mono);
  overflow-wrap: anywhere;
}
.review-card-footer > div span {
  color: var(--text3);
  font-size: 10px;
  line-height: 1.45;
}
.review-platform {
  flex: 0 0 auto;
  color: var(--text3);
  font: 9px/1.3 var(--mono);
  letter-spacing: .06em;
  white-space: nowrap;
}
.reviews-footer { margin-top: 20px; }

@media (max-width: 1020px) {
  .proof-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .proof-stat:nth-child(3) { border-right: 0; }
  .proof-stat:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .proof-section { padding-top: 28px; }
  .proof-stat { min-height: 122px; padding: 15px 13px; }
  .proof-stat-label { font-size: 9px; }
  .proof-stat strong { font-size: 29px; }
  .proof-meta { align-items: flex-start; flex-direction: column; gap: 12px; }
  .portfolio-section { padding-top: 56px; }
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 23px; }
  .portfolio-card-info { min-height: 110px; padding: 13px 13px 15px; }
  .portfolio-card-info h3 { font-size: 13px; }
  .portfolio-kind { font-size: 9px; }
  .reviews-section { padding-top: 62px; }
  .review-grid { gap: 12px; margin-top: 23px; }
  .review-card { min-height: 250px; padding: 17px 15px 15px; }
  .review-card blockquote { font-size: 13px; }
  .review-card-footer { align-items: flex-start; flex-direction: column; gap: 8px; }
}
@media (max-width: 520px) {
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-stat:nth-child(3) { border-right: 1px solid var(--line); }
  .proof-stat:nth-child(even) { border-right: 0; }
  .proof-stat:nth-child(4) { border-bottom: 1px solid var(--line); }
  .portfolio-heading-line { align-items: flex-start; flex-direction: column; gap: 12px; }
  .portfolio-count { margin-bottom: 0; }
  .portfolio-grid, .review-grid { grid-template-columns: minmax(0, 1fr); }
  .portfolio-card-info { min-height: 0; padding: 14px 15px 16px; }
  .portfolio-card-info h3 { font-size: 15px; }
  .portfolio-image { aspect-ratio: 16 / 9; }
  .review-card { min-height: 0; }
  .review-card-footer { align-items: flex-end; flex-direction: row; }
  .portfolio-footer, .reviews-footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-card, .portfolio-image img, .review-card, .text-link > span:last-child { transition: none !important; }
}


/* ------------------------------------------------------------
   Refined motion layer — short, quiet, and interaction-led.
   No ambient loops, moving backgrounds, or parallax.
------------------------------------------------------------ */
:root {
  --motion-ease: cubic-bezier(.2,.72,.24,1);
  --motion-fast: 220ms;
  --motion-base: 320ms;
}

.site-header,
.brand,
.primary-nav a,
.header-cta,
.button,
.diagram-node,
.diagram-core,
.service-item summary,
.service-plus,
.tech-tab,
.tech-tags span,
.chat-option,
.chat-send,
.chat-text-button,
.chat-close,
.chat-launcher,
.section-rail a,
.direct-link,
.language-switch button,
.portfolio-card,
.portfolio-image img,
.review-card,
.text-link > span:last-child {
  transition-duration: var(--motion-base);
  transition-timing-function: var(--motion-ease);
}

.button { transition-property: transform, background-color, border-color, color, box-shadow; }
.button:active { transform: translateY(0); }
.button-primary:hover { transform: translateY(-1px); }
.button-outline:hover { transform: translateY(-1px); }
.button-quiet:hover span { transform: translateX(3px); }
.header-cta span { transition: transform var(--motion-base) var(--motion-ease); }
.header-cta:hover span { transform: translateX(3px); }

.diagram-node { transition-property: transform, border-color, background-color, box-shadow; }
.diagram-node:hover,
.diagram-node[aria-pressed="true"] { transform: translateY(-2px); }
.diagram-core { transition: border-color var(--motion-base) var(--motion-ease), box-shadow var(--motion-base) var(--motion-ease), transform var(--motion-base) var(--motion-ease); }
.diagram-core:hover,
.diagram-core[aria-pressed="true"] { transform: translate(-50%, -50%) scale(1.035); }

.service-item summary { transition-property: background-color, color; }
.service-plus { transition: transform var(--motion-base) var(--motion-ease), background-color var(--motion-base) var(--motion-ease), color var(--motion-base) var(--motion-ease), border-color var(--motion-base) var(--motion-ease); }
.service-item[open] .service-plus { transform: rotate(45deg); }
.service-item[open] .service-detail { animation: service-detail-in 260ms var(--motion-ease) both; }
@keyframes service-detail-in {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.tech-tab::after { transform: scaleY(0); transform-origin: center; transition: transform 280ms var(--motion-ease); }
.tech-tab.is-active::after { transform: scaleY(1); }
.tech-panel.is-active { animation: tech-panel-in 280ms var(--motion-ease) both; }
@keyframes tech-panel-in {
  from { opacity: .45; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.text-link > span:last-child { display: inline-block; transition: transform var(--motion-base) var(--motion-ease); }
.text-link:hover > span:last-child { transform: translateX(3px); }

.portfolio-card { transition-property: transform, border-color, background-color, box-shadow; }
.portfolio-image img { transition: transform 480ms var(--motion-ease), filter 480ms var(--motion-ease); }
.review-card { transition-property: transform, border-color, background-color, box-shadow; }
@media (hover: hover) and (pointer: fine) {
  .portfolio-card:hover { transform: translateY(-3px); box-shadow: 0 14px 38px rgba(0,0,0,.24); }
  .portfolio-card:hover .portfolio-image img { transform: scale(1.025); filter: saturate(1.04); }
  .review-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,.2); }
  .chat-option:hover { transform: translateY(-1px); }
  .chat-send:hover { transform: translateY(-1px); }
}

.chat-launcher {
  transform: translateY(8px);
  transition: opacity 240ms ease, transform 300ms var(--motion-ease), border-color var(--motion-base) var(--motion-ease), background-color var(--motion-base) var(--motion-ease);
}
.chat-launcher.is-visible { transform: translateY(0); }
.chat-widget {
  opacity: 0;
  transform: translateY(12px) scale(.985);
  pointer-events: none;
  transition: opacity 240ms ease, transform 300ms var(--motion-ease);
}
.chat-widget.is-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

/* Scroll reveal: only content blocks, never the whole page or background. */
.motion-reveal {
  opacity: 0;
  transform: translateY(13px);
  transition: opacity 620ms var(--motion-ease) var(--motion-delay, 0ms),
              transform 620ms var(--motion-ease) var(--motion-delay, 0ms);
}
.motion-reveal.is-visible { opacity: 1; transform: translateY(0); will-change: auto; }

@media (max-width: 760px) {
  .tech-tab::after { transform: scaleX(0); transform-origin: left center; }
  .tech-tab.is-active::after { transform: scaleX(1); }
  .chat-widget { transform: translateY(10px); }
  .chat-widget.is-open { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
  .motion-reveal { opacity: 1 !important; transform: none !important; }
  .diagram-core:hover, .diagram-core[aria-pressed="true"] { transform: translate(-50%, -50%) !important; }
}
