/* The website (index.html, electric-works.html): what Cividian is, what
   shipped, who it serves. Modeled on the openai.com layout: a quiet sticky
   header, a centered hero with a prompt that hands off to the app, then card
   grids of stories, product news, research and solutions. Everything is
   namespaced .s-* so the story page can load it beside electric-works.css. */
:root{--ink:#111b1a;--forest:#284b3c;--stone:#f3f0e8;--paper:#fffefa;--brass:#af9364;--sky:#86ada9;--muted:#5d6964;--line:#dcded4;--sans:'DM Sans',system-ui,sans-serif;--display:'Manrope',var(--sans);--gutter:max(20px,4.5vw)}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:84px}
body{margin:0;background:var(--stone);color:var(--ink);font-family:var(--sans);font-size:16px;line-height:1.55;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
h1,h2,h3,p,ol{margin:0}
h1,h2,h3{font-family:var(--display);text-wrap:balance;font-weight:500}
p{text-wrap:pretty}
img{display:block;max-width:100%;height:auto}
button,input{font:inherit}
a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #488272;outline-offset:4px;border-radius:6px}
.s-skip{position:fixed;left:16px;top:-80px;z-index:100;background:var(--paper);padding:12px 16px;border-radius:8px}.s-skip:focus{top:12px}
.s-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.s-wrap{max-width:1320px;margin:0 auto;padding:0 var(--gutter)}
.s-eyebrow{font-size:11px;font-weight:650;letter-spacing:1.8px;text-transform:uppercase;color:var(--forest)}
.s-meta{font-size:13px;color:var(--muted)}
.s-arrow{font-size:14px;font-weight:600;color:var(--ink)}
.s-fine{font-size:12px;color:var(--muted);margin-top:22px;max-width:760px}

/* Header */
.s-head{position:sticky;top:0;z-index:50;background:#f3f0e8e6;backdrop-filter:saturate(1.4) blur(14px);-webkit-backdrop-filter:saturate(1.4) blur(14px);border-bottom:1px solid transparent;transition:border-color .2s}
.s-head.is-scrolled{border-bottom-color:var(--line)}
.s-head-in{max-width:1320px;margin:0 auto;height:68px;padding:0 var(--gutter);display:flex;align-items:center;gap:28px}
.s-brand{display:inline-flex;align-items:center;gap:8px;font-family:var(--display);font-weight:700;font-size:19px;letter-spacing:1.8px}
.s-brand svg{width:24px;height:24px}
.s-period{color:var(--sky);margin-left:-7px}
.s-nav{display:flex;align-items:center;gap:26px;font-size:14px;margin-left:10px}
.s-nav>a{color:#3b4643;padding:6px 0}.s-nav>a:hover{color:var(--ink)}
.s-nav-actions{display:none}
.s-head-actions{margin-left:auto;display:flex;align-items:center;gap:8px}
.s-login,.s-try{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 18px;border-radius:999px;font-size:14px;font-weight:600;white-space:nowrap}
.s-login:hover{background:#1111110d}
.s-try{background:var(--ink);color:var(--stone)}.s-try:hover{background:#26332f}
.s-menu{display:none;width:44px;height:44px;border:0;border-radius:999px;background:transparent;color:var(--ink);align-items:center;justify-content:center;cursor:pointer}
.s-menu svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.s-menu:hover{background:#1111110d}

/* Hero: one line of news, a headline, and a prompt that opens the app */
.s-hero{text-align:center;padding:92px var(--gutter) 72px;max-width:1100px;margin:0 auto}
.s-pill{display:inline-flex;align-items:center;gap:10px;padding:6px 14px 6px 6px;border-radius:999px;background:var(--paper);border:1px solid var(--line);font-size:13px;color:#2f3a37;margin-bottom:34px}
.s-pill b{background:var(--forest);color:var(--paper);font-size:11px;font-weight:650;letter-spacing:.6px;padding:4px 10px;border-radius:999px}
.s-pill:hover{border-color:#c5c9bc}
.s-hero h1{font-size:clamp(48px,7.4vw,104px);line-height:1.02;letter-spacing:-.045em}
.s-hero h1 em{font-family:Georgia,serif;font-weight:400;color:var(--forest)}
.s-lede{max-width:660px;margin:26px auto 0;font-size:clamp(16px,1.5vw,19px);line-height:1.6;color:var(--muted)}
.s-ask{position:relative;display:flex;align-items:center;gap:12px;max-width:720px;margin:40px auto 0;padding:8px 8px 8px 22px;background:var(--paper);border:1px solid var(--line);border-radius:28px;box-shadow:0 18px 50px #152c1c14,0 2px 6px #152c1c0d;text-align:left}
.s-ask:focus-within{border-color:#9fb3a6}
.s-ask-icon{width:20px;height:20px;flex-shrink:0;fill:none;stroke:var(--forest);stroke-width:1.6}
.s-ask input{flex:1;min-width:0;border:0;background:transparent;color:var(--ink);font-size:17px;padding:14px 0;outline:none;border-radius:0}
.s-ask input::placeholder{color:#7a837e}
.s-ask input::-webkit-search-cancel-button{display:none}
.s-ask button{width:48px;height:48px;flex-shrink:0;border:0;border-radius:999px;background:var(--ink);color:var(--stone);display:grid;place-items:center;cursor:pointer}
.s-ask button:hover{background:#26332f}
.s-ask button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.s-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:22px}
.s-chips a{display:inline-flex;align-items:center;min-height:40px;padding:0 16px;border:1px solid var(--line);border-radius:999px;font-size:13px;color:#2f3a37;background:#fffefa99}
.s-chips a:hover{background:var(--paper);border-color:#c5c9bc}

/* Featured story */
.s-feature{padding-bottom:24px}
.s-feature-card{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:clamp(24px,4vw,56px);align-items:center}
.s-feature-media{border-radius:22px;overflow:hidden;background:var(--ink);aspect-ratio:16/10}
.s-feature-media img{width:100%;height:100%;object-fit:cover;transition:transform .6s ease}
.s-feature-card:hover .s-feature-media img{transform:scale(1.025)}
.s-feature-copy{display:flex;flex-direction:column;gap:16px}
.s-feature-copy h2{font-size:clamp(30px,3.2vw,46px);line-height:1.1;letter-spacing:-.03em}
.s-feature-copy>p:not(.s-meta){font-size:16px;line-height:1.7;color:#3b4643;max-width:520px}
.s-feature-card:hover .s-arrow{text-decoration:underline;text-underline-offset:4px}

/* Blocks and cards */
.s-block{padding-top:clamp(72px,9vw,120px)}
.s-block-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:30px;padding-bottom:18px;border-bottom:1px solid var(--line)}
.s-block-head h2{font-size:clamp(28px,2.8vw,38px);letter-spacing:-.025em;line-height:1.15}
.s-sub{margin-top:10px;max-width:640px;color:var(--muted);font-size:15px}
.s-more{flex-shrink:0;font-size:14px;font-weight:600;padding:8px 0}.s-more:hover{text-decoration:underline;text-underline-offset:4px}
.s-grid{display:grid;gap:clamp(20px,2.4vw,32px)}
.s-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.s-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.s-card{display:flex;flex-direction:column;gap:10px}
.s-card h3{font-size:20px;line-height:1.3;letter-spacing:-.01em}
.s-card>p:not(.s-meta){font-size:14px;line-height:1.65;color:var(--muted)}
.s-card:hover h3{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.s-art,.s-photo{border-radius:18px;overflow:hidden;aspect-ratio:4/3;margin-bottom:8px}
.s-art svg{width:100%;height:100%;display:block}
.s-art-zoning{background:#dfe6d8}.s-art-grade{background:var(--ink)}.s-art-comps{background:#d7e2df}
.s-photo{aspect-ratio:3/2;background:#e2e3da}
.s-photo img{width:100%;height:100%;object-fit:cover;transition:transform .6s ease}
.s-card:hover .s-photo img{transform:scale(1.03)}

/* News list */
.s-news{list-style:none;padding:0}
.s-news li{border-bottom:1px solid var(--line)}
.s-news a{display:grid;grid-template-columns:minmax(0,1fr) 130px 120px;gap:20px;align-items:baseline;padding:20px 0}
.s-news-title{font-family:var(--display);font-size:19px;font-weight:500;letter-spacing:-.01em}
.s-news-cat,.s-news time{font-size:13px;color:var(--muted)}
.s-news time{text-align:right}
.s-news a:hover .s-news-title{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}

/* Research notes and solution tiles */
.s-note{display:flex;flex-direction:column;gap:12px;padding-top:22px;border-top:2px solid var(--ink)}
.s-note h3{font-size:22px;line-height:1.25;letter-spacing:-.015em}
.s-note>p:not(.s-meta){font-size:14px;line-height:1.7;color:var(--muted)}
.s-note .s-arrow{margin-top:auto;padding-top:6px}
.s-note:hover h3{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.s-tile{display:flex;flex-direction:column;gap:12px;padding:26px 24px;background:var(--paper);border:1px solid #e3e4da;border-radius:18px;transition:border-color .2s,transform .2s}
.s-tile h3{font-size:19px;line-height:1.3}
.s-tile>p:not(.s-eyebrow){font-size:14px;line-height:1.65;color:var(--muted)}
.s-tile .s-arrow{margin-top:auto;padding-top:8px}
.s-tile:hover{border-color:#c5c9bc;transform:translateY(-2px)}

/* Dark principles band */
.s-dark{margin-top:clamp(80px,10vw,128px);background:var(--ink);color:var(--stone)}
.s-dark-in{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:8vw;padding-top:clamp(72px,9vw,112px);padding-bottom:clamp(72px,9vw,112px)}
.s-dark .s-eyebrow{color:#b5c2a5;margin-bottom:22px}
.s-dark h2{font-size:clamp(34px,3.7vw,54px);line-height:1.12;letter-spacing:-.03em}
.s-dark-in>div>p:not(.s-eyebrow){margin:22px 0 30px;color:#c7ceca;max-width:440px;line-height:1.7}
.s-principles{list-style:none;padding:0;align-self:center}
.s-principles li{display:flex;gap:26px;padding:24px 0;border-top:1px solid #ffffff22}
.s-principles li:last-child{border-bottom:1px solid #ffffff22}
.s-principles span{font-size:11px;color:#8f9d93;padding-top:6px}
.s-principles h3{font-size:19px;color:#fff}
.s-principles p{font-size:14px;color:#b9c5ba;margin-top:6px;line-height:1.65}

/* Buttons and closing */
.s-btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:48px;padding:0 22px;border-radius:999px;background:var(--ink);color:var(--stone);font-size:14px;font-weight:600}
.s-btn:hover{background:#26332f}
.s-btn-light{background:var(--stone);color:var(--ink)}.s-btn-light:hover{background:#fff}
.s-btn-ghost{background:transparent;color:var(--ink);border:1px solid #b9bdb1}.s-btn-ghost:hover{background:#1111110a}
.s-close{text-align:center;padding:clamp(88px,11vw,140px) var(--gutter)}
.s-close h2{font-size:clamp(40px,5.6vw,80px);letter-spacing:-.045em;line-height:1.05;margin-top:16px}
.s-close-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:34px}

/* Footer */
.s-foot{border-top:1px solid var(--line);padding:64px 0 36px;font-size:14px}
.s-foot-grid{display:grid;grid-template-columns:1.4fr repeat(5,minmax(0,1fr));gap:32px}
.s-foot-brand p{margin-top:14px;color:var(--muted);max-width:220px}
.s-foot nav{display:flex;flex-direction:column;gap:10px}
.s-foot h3{font-family:var(--sans);font-size:13px;font-weight:600;margin-bottom:4px}
.s-foot nav a{color:var(--muted)}.s-foot nav a:hover{color:var(--ink)}
.s-foot-base{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px 32px;margin-top:56px;padding-top:22px;border-top:1px solid var(--line);color:var(--muted)}
.s-foot-base span{display:flex;gap:22px}.s-foot-base a:hover{color:var(--ink)}

/* Responsive */
@media(max-width:1100px){
  .s-nav{display:none}
  .s-menu{display:inline-flex}
  .s-head-actions .s-login{display:none}
  /* A backdrop filter makes the header the containing block for fixed
     children, so it is dropped while the full-screen menu is open. */
  .s-head.menu-open{backdrop-filter:none;-webkit-backdrop-filter:none;background:var(--stone)}
  .s-nav.is-open{display:flex;position:fixed;left:0;right:0;top:68px;bottom:0;flex-direction:column;align-items:stretch;gap:0;margin:0;padding:12px var(--gutter) 32px;background:var(--stone);overflow-y:auto;font-size:20px}
  .s-nav.is-open>a{padding:16px 0;border-bottom:1px solid var(--line);color:var(--ink);font-family:var(--display)}
  .s-nav.is-open .s-nav-actions{display:flex;flex-direction:column;gap:10px;margin-top:24px}
  .s-nav.is-open .s-nav-actions a{display:flex;align-items:center;justify-content:center;min-height:52px;border-radius:999px;border:1px solid #b9bdb1;font-size:16px;font-weight:600}
  .s-nav.is-open .s-nav-actions .s-try{border-color:var(--ink)}
  .s-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .s-foot-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .s-foot-brand{grid-column:1/-1}
}
@media(max-width:860px){
  .s-feature-card{grid-template-columns:1fr}
  .s-grid-3{grid-template-columns:1fr 1fr}
  .s-dark-in{grid-template-columns:1fr;gap:40px}
  .s-news a{grid-template-columns:minmax(0,1fr) auto;gap:6px 16px}
  .s-news-cat{grid-row:2}.s-news time{grid-row:2;text-align:right}
}
@media(max-width:600px){
  .s-hero{padding-top:56px;padding-bottom:48px}
  .s-head-actions .s-try{padding:0 14px}
  .s-ask{padding-left:16px;border-radius:22px}
  .s-ask input{font-size:16px}
  .s-grid-3,.s-grid-4{grid-template-columns:1fr}
  .s-block-head{flex-direction:column;align-items:flex-start;gap:8px}
  .s-foot-grid{grid-template-columns:1fr 1fr}
  .s-news-title{font-size:17px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.s-feature-media img,.s-photo img,.s-tile{transition:none}}

/* Story pages */
.s-story-head{padding-top:clamp(56px,7vw,96px);padding-bottom:clamp(36px,5vw,56px);max-width:1000px}
.s-story-head .s-meta a:hover{text-decoration:underline;text-underline-offset:3px}
.s-story-head h1{font-size:clamp(38px,5.2vw,72px);line-height:1.05;letter-spacing:-.04em;margin-top:18px}
.s-lede-left{margin-top:22px;max-width:680px;font-size:clamp(16px,1.4vw,19px);line-height:1.65;color:var(--muted)}
.s-story-body{max-width:860px;padding-top:clamp(64px,8vw,104px)}
.s-story-body h2{font-size:clamp(28px,3vw,40px);letter-spacing:-.025em;line-height:1.15}
.s-story-body>p:not(.s-fine){margin-top:18px;font-size:17px;line-height:1.75;color:#34403c}
.s-story-actions{justify-content:flex-start;margin-top:30px}
.s-story-body{padding-bottom:clamp(72px,9vw,120px)}
