/* Neweshing v5: the Brand Guide cover, alive. Palette, type and logo builds strictly from Brand System v2.0. */
:root {
  --navy: #0B2A4A;
  --primary: #1E4FA0;
  --vibrant: #2D7DD2;
  --cyan: #6FBFFF;
  --gold: #E0B420;
  --offwhite: #F4F6F8;
  --graphite: #1A1A2E;
  --muted: #4A5568;
  --line: #D9DFE7;
  --line-d: rgba(111, 191, 255, .2);
  --f-display: "Montserrat", system-ui, sans-serif;
  --f-body: "Open Sans", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --wrap: 1120px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@font-face {
  font-family: "ArtegraSoft";
  src: url("assets/ArtegraSoft-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; background: var(--navy); }
body { margin: 0; font: 400 17px/1.6 var(--f-body); color: var(--graphite); background: var(--offwhite); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; margin: 0; }
p { margin: 0; }
.mono { font-family: var(--f-mono); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--offwhite); color: var(--navy); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Undecoded characters: the brand's hex signature, in Gold */
.enc { font-family: var(--f-mono); font-weight: 500; color: var(--gold); font-size: .86em; letter-spacing: -.03em; }

/* Header on navy: grayscale logo build, per the guide */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 42, 74, .86); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line-d); }
.header-row { height: 66px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; }
.wordmark { font-family: "ArtegraSoft", var(--f-display); font-weight: 600; font-size: 1.4rem; color: var(--offwhite); line-height: 1; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav > a:not(.btn) { font-size: .9rem; font-weight: 600; color: rgba(244, 246, 248, .75); transition: color .2s; }
.nav > a:not(.btn):hover { color: #fff; }
.lang { display: flex; border: 1px solid var(--line-d); border-radius: 6px; padding: 2px; }
.lang button { font: 500 .72rem var(--f-mono); color: rgba(244, 246, 248, .65); background: none; border: 0; border-radius: 4px; padding: 5px 8px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--offwhite); color: var(--navy); }
.menu-btn { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; font: 600 .95rem var(--f-body); padding: 13px 22px; border-radius: 8px; background: var(--vibrant); color: #fff; border: 1px solid var(--vibrant); transition: background .2s, border-color .2s, transform .1s ease-out; }
.btn:hover { background: var(--primary); border-color: var(--primary); }
.btn:active { transform: scale(.97); }
.btn-sm { padding: 8px 14px; font-size: .84rem; }
.btn-ghost { background: transparent; border-color: rgba(244, 246, 248, .45); }
.btn-ghost:hover { background: rgba(244, 246, 248, .1); border-color: var(--offwhite); }
.btn-solid { background: var(--primary); border-color: var(--primary); margin-top: 36px; }
.btn-solid:hover { background: var(--vibrant); border-color: var(--vibrant); }

/* Commands open every section, like the guide's "> neweshing.identity --version 2.0" */
.cmd { font-size: .86rem; color: var(--primary); margin-bottom: 18px; }
.dark .cmd, .hero .cmd { color: var(--cyan); }

/* HERO */
.hero { position: relative; color: var(--offwhite); background: var(--navy) url("assets/traces.jpg") center / cover no-repeat; padding: 120px 0 132px; min-height: calc(100svh - 66px); display: flex; align-items: center; }
.hero .wrap { width: 100%; }
.hero h1 { font-size: clamp(2.7rem, 7.4vw, 6rem); line-height: 1.02; letter-spacing: -.03em; color: #fff; max-width: 13ch; min-height: 2.04em; }
.lead { margin-top: 26px; font-size: 1.2rem; max-width: 46ch; color: rgba(244, 246, 248, .82); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.receipt { margin-top: 56px; font-size: .8rem; display: grid; gap: 6px; }
.receipt-ok { color: var(--cyan); display: flex; align-items: center; gap: 10px; }
.led { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(224, 180, 32, .18); }
.receipt-note { color: rgba(244, 246, 248, .6); }
.sig { position: absolute; left: 0; right: 0; bottom: 30px; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; font-size: .74rem; color: var(--gold); }

/* Sections */
.section { padding: 112px 0; }
.light { background: var(--offwhite); }
.alt { background: #fff; border-block: 1px solid var(--line); }
.dark { background: var(--navy); color: var(--offwhite); }
.section h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); line-height: 1.1; letter-spacing: -.02em; color: var(--navy); max-width: 20ch; margin-bottom: 22px; }
.dark h2, .dark h3 { color: #fff; }
.muted { color: var(--muted); max-width: 50ch; }
.dark .muted { color: rgba(244, 246, 248, .75); }
.wide { max-width: 62ch; }
.two { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center; }
.fine { font-size: .8rem; color: rgba(244, 246, 248, .68); }
.close .fine { font-size: .92rem; max-width: 70ch; }

/* 01 */
.stack-h { max-width: none !important; font-size: clamp(2.3rem, 5.4vw, 4.2rem) !important; line-height: 1.04 !important; letter-spacing: -.03em !important; }
.stack-h span { display: block; }
.stack-h .accent { color: var(--vibrant); }
.req { background: var(--navy); color: var(--offwhite); border-radius: 14px; padding: 10px 24px; font-size: .86rem; box-shadow: 0 30px 60px -34px rgba(11, 42, 74, .6); }
.req > div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px dashed var(--line-d); }
.req > div:last-child { border-bottom: 0; }
.req .v { color: var(--cyan); white-space: nowrap; }
.req .v::before { content: "✕ "; opacity: .7; }
.req-total .v { color: var(--gold); }
.req-total .v::before { content: "= "; }

/* 02 demo */
.xr { margin-top: 40px; border: 1px solid var(--line-d); border-radius: 16px; padding: 30px; background: rgba(255, 255, 255, .03); }
.seg { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 8px; border: 1px solid var(--line-d); margin-bottom: 28px; }
.seg button { position: relative; z-index: 1; font: 600 .88rem var(--f-body); color: rgba(244, 246, 248, .75); background: none; border: 0; padding: 9px 24px; border-radius: 6px; cursor: pointer; transition: color .25s; }
.seg button[aria-pressed="true"] { color: var(--navy); }
.seg-thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 6px; background: var(--offwhite); transform: translateX(100%); transition: transform .4s var(--ease); }
.xr[data-on="false"] .seg-thumb { transform: none; }
.xr-stage { display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: center; }
.xr-col { min-width: 0; }
.xr-cap { display: block; font-size: .72rem; color: var(--cyan); margin-bottom: 10px; }
.xr-stream { list-style: none; margin: 0; padding: 0; height: 208px; overflow: hidden; display: flex; flex-direction: column; gap: 8px; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.xr-stream li { flex: none; padding: 9px 12px; border: 1px solid var(--line-d); border-radius: 8px; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: drop .45s var(--ease); }
#xrOut li { color: var(--gold); }
.xr[data-on="false"] #xrOut li { color: var(--offwhite); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
.xr-mcu { width: 148px; height: 148px; border-radius: 16px; display: grid; place-content: center; justify-items: center; gap: 10px; font-size: .82rem; letter-spacing: .12em; border: 1px solid rgba(111, 191, 255, .5); background: rgba(30, 79, 160, .25); box-shadow: 0 0 60px -12px rgba(111, 191, 255, .6); transition: box-shadow .5s, border-color .5s, background .5s; }
.xr[data-on="false"] .xr-mcu { box-shadow: none; border-color: var(--line-d); background: transparent; }
.xr[data-on="false"] .xr-mcu img { opacity: .25; }
.xr-mcu img { transition: opacity .4s; }
.xr-state { margin: 24px 0 6px; font-size: .88rem; }
.s-on { color: var(--cyan); }
.s-off { color: var(--gold); display: none; }
.xr[data-on="false"] .s-on { display: none; }
.xr[data-on="false"] .s-off { display: inline; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px; transition: border-color .2s, transform .25s var(--ease); }
.alt .card { background: var(--offwhite); }
.card:hover { border-color: var(--vibrant); transform: translateY(-2px); }
.tag { font-size: .75rem; color: var(--vibrant); }
.card h3 { font-size: 1.12rem; line-height: 1.3; color: var(--navy); margin: 14px 0 8px; }
.card p { color: var(--muted); }

/* 04 path */
.path { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.path::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: linear-gradient(90deg, var(--primary), var(--gold) 50%, var(--primary)); }
.path li { position: relative; padding: 30px 28px 0 0; }
.path li::before { content: ""; position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--primary); }
.path li:nth-child(2)::before { border-color: var(--gold); }
.path .n { font-size: .75rem; color: var(--primary); }
.path h3 { font-size: 1.2rem; color: var(--navy); margin: 8px 0 8px; }
.path p { color: var(--muted); }

/* 05 spec */
.spec { margin: 0; border: 1px solid var(--line-d); border-radius: 14px; padding: 8px 24px; font-size: .86rem; background: rgba(255, 255, 255, .03); }
.spec div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px dashed var(--line-d); }
.spec div:last-child { border-bottom: 0; }
.spec dt { color: var(--cyan); }
.spec dd { margin: 0; color: var(--offwhite); }
.dark .btn-ghost { margin-top: 30px; }

/* 08 contact */
.close { background: var(--navy) url("assets/traces.jpg") center / cover no-repeat; }
.contacts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 36px 0 28px; }
.contact { display: grid; gap: 8px; padding: 26px; border: 1px solid var(--line-d); border-radius: 12px; background: rgba(11, 42, 74, .55); transition: border-color .2s, background .2s; }
.contact:hover { border-color: var(--cyan); background: rgba(30, 79, 160, .35); }
.contact .mono { font-size: .75rem; color: var(--cyan); }
.contact strong { font: 800 clamp(1.15rem, 2.4vw, 1.6rem) var(--f-display); color: #fff; }

/* Footer */
.site-footer { background: var(--navy); border-top: 1px solid var(--line-d); padding: 30px 0; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.sig-f { font-size: .72rem; color: var(--gold); }
.foot-addr { font-style: normal; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-d); }
.foot-addr a:hover { color: var(--cyan); }

/* Responsive */
@media (max-width: 1080px) {
  .menu-btn { display: inline-flex; font: 600 .85rem var(--f-body); color: var(--offwhite); background: transparent; border: 1px solid var(--line-d); border-radius: 8px; padding: 8px 14px; cursor: pointer; }
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 18px; padding: 22px 24px 28px; background: var(--navy); border-bottom: 1px solid var(--line-d); }
  .nav.open { display: flex; }
}
@media (max-width: 900px) {
  .two { grid-template-columns: 1fr; gap: 44px; }
  .cards { grid-template-columns: 1fr; }
  .path { grid-template-columns: 1fr; gap: 34px; padding-left: 4px; }
  .path::before { left: 6px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--primary), var(--gold) 50%, var(--primary)); }
  .path li { padding: 0 0 0 34px; }
  .xr-stage { grid-template-columns: 1fr; }
  .xr-mcu { justify-self: center; width: 120px; height: 104px; }
  .xr-stream { height: 138px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap, .sig { padding: 0 16px; }
  .hero { padding: 72px 0 110px; }
  .section { padding: 80px 0; }
  .xr { padding: 18px; }
  .contacts { grid-template-columns: 1fr; }
  .contact strong { word-break: break-all; }
  .spec div { grid-template-columns: 1fr; gap: 2px; }
  .sig { font-size: .64rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--navy); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Sectors: breadth of application */
.sectors { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sectors li { display: grid; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--offwhite); font: 800 1.05rem/1.25 var(--f-display); color: var(--navy); transition: border-color .2s, transform .25s var(--ease); }
.sectors li:hover { border-color: var(--vibrant); transform: translateY(-2px); }
.sectors .tag { font-weight: 400; }
.note { margin-top: 26px; font-size: .78rem; color: var(--muted); }
.addr { font-size: clamp(1rem, 1.9vw, 1.25rem) !important; line-height: 1.35; }
address.contact { font-style: normal; }
@media (max-width: 900px) { .sectors { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .sectors { grid-template-columns: 1fr; } }

/* Two-sentence paragraphs: one sentence per line */
.lines span { display: block; }
/* "Observe the data at the origin": heading and sentence each stay on one line where there is room */
#inspect h2, #inspect .muted { max-width: none; }
.close > .wrap > .contact { max-width: 560px; margin: 36px 0 28px; }
