:root {
  color-scheme: light;
  --ink: #10152d;
  --blue: #303fdb;
  --paper: #f6f5f0;
  --line: #cdcfd8;
  --gutter: max(5vw, calc((100vw - 1440px) / 2));
  --space: clamp(52px, 8vw, 122px);
  font: 16px/1.55 "Inter", "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
:where(h1,h2,h3,p,fieldset) { margin: 0; }
a { color: inherit; text-underline-offset: .24em; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid #d6891f; outline-offset: 4px; }
[hidden] { display: none !important; }
.skip { position: absolute; z-index: 10; top: 8px; left: 8px; transform: translateY(-150%); background: white; color: var(--ink); padding: 10px; }
.skip:focus { transform: none; }
.eyebrow { font: 650 .79rem/1.5 ui-monospace,Consolas,monospace; letter-spacing: .1em; text-transform: uppercase; }
h1, h2, h3 { letter-spacing: -.065em; line-height: 1.02; }
h2 { font-size: clamp(2.75rem,6vw,7rem); font-weight: 650; text-wrap: balance; }
h3 { font-size: clamp(1.35rem,2.2vw,2.35rem); font-weight: 650; }
.mast, footer { padding-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; background: var(--ink); color: white; }
.mast { min-height: 78px; border-bottom: 1px solid #ffffff38; }
.pn-brand { display: inline-flex; gap: 10px; align-items: center; font-weight: 650; font-size: 1.25rem; letter-spacing: -.045em; text-decoration: none; white-space: nowrap; }
.pn-brand img { object-fit: contain; }
.mast nav { display: flex; align-items: center; gap: clamp(8px,2.7vw,42px); }
.mast nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: .92rem; }
.mast nav a:hover { text-decoration: underline; }
.mast .mast-action { padding-inline: 16px; border: 1px solid #858db4; background: #262e5e; }
.opening { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); min-height: clamp(560px,78svh,960px); overflow: hidden; background: #0a0f28; color: #fff; }
.opening-copy { z-index: 1; padding: var(--space) 0 var(--space) var(--gutter); align-self: center; }
.opening .eyebrow { color: #b8c4ff; margin-bottom: 24px; }
.opening h1 { font-size: clamp(3.3rem,7.6vw,9.5rem); line-height: .94; width: max-content; max-width: calc(100vw - 2 * var(--gutter)); text-shadow: 0 2px 18px #05091e9c; }
.opening h1 em { font-family: Georgia, serif; color: #b9c7ff; font-weight: 400; }
.opening-copy > p:not(.eyebrow) { color: #dbe1fa; font-size: clamp(1.06rem,1.4vw,1.4rem); max-width: 36ch; margin-top: 22px; }
.opening-actions { display: flex; gap: 12px 22px; flex-wrap: wrap; align-items: center; margin-top: 30px; }
.solid, .quiet, .business-cta { display: inline-flex; align-items: center; min-height: 46px; font-weight: 650; }
.solid { padding: 10px 18px; border: 1px solid transparent; background: #d8e0ff; color: var(--ink); text-decoration: none; }
.solid:hover { background: white; }
.opening-art { position: relative; isolation: isolate; min-width: 0; background: linear-gradient(90deg,#0a0f28 0%,#0a0f2840 35%,transparent 65%),url('/assets/studio-nucleo.jpg') 65% center / cover; }
.sculpture { position: absolute; inset: 8% 7% 17% 13%; touch-action: pan-y; }
.sculpture canvas, .scene-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene-fallback { display: grid; place-items: center; }
.scene-fallback img { width: min(60%,340px); height: auto; }
.sculpture.ready .scene-fallback { display: none; }
.scene-controls, .scene-caption { position: absolute; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.scene-controls { bottom: -25px; z-index: 1; }
.scene-controls button { min-height: 44px; padding: 6px 10px; border: 1px solid #b6c2fa; background: #121b4b; color: #f9faff; font-size: .85rem; }
.scene-controls button:disabled { color: #c3cae3; }
.scene-caption { bottom: -54px; font: .72rem ui-monospace,monospace; color: #dce4ff; }
.business-section,.systems,.work-section,.contact-section { padding: var(--space) var(--gutter); }
.business-section { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); align-items: start; gap: 25px clamp(28px,6vw,104px); }
.business-heading .eyebrow,.systems .eyebrow,.work-section .eyebrow { color: #303caa; }
.business-heading h2,.section-heading h2 { margin: 14px 0 20px; }
.business-heading > p:last-child,.section-heading > p { max-width: 43ch; font-size: 1.08rem; }
.business-list { border-top: 2px solid var(--ink); }
.business-detail { border-bottom: 1px solid var(--line); }
.business-detail summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 62px; padding: 12px 8px; list-style: none; }
.business-detail summary::-webkit-details-marker { display:none; }
.business-detail summary::after { content:'+'; font-size:1.45rem; color:var(--blue); }
.business-detail[open] summary::after { content:'−'; }
.business-detail summary:hover, .business-detail[open] summary { background: #ebeefa; }
.business-content { padding: 14px 10px 18px; }
.business-content li + li { margin-top: 10px; }
.business-content ul { padding-left: 21px; }
.systems { background: #e6eafa; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(24px,4vw,54px); }
.section-heading > div { min-width: 0; }
.section-heading > p { flex: 0 1 330px; }
.systems-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid #99a3c5; border-left: 1px solid #99a3c5; }
.systems-grid article { min-height: 190px; padding: clamp(18px,2.7vw,44px); border-right: 1px solid #99a3c5; border-bottom: 1px solid #99a3c5; background: linear-gradient(150deg,#ffffff7a,transparent); }
.systems-grid p,.project-info p { margin-top: 12px; color: #43506a; }
.systems-grid article:last-child { grid-column: 1 / -1; min-height: 0; }
.work-section { background: var(--paper); }
.work-section h2 span { color: var(--blue); }
.project-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(27px,4vw,66px); }
.project-grid > .project:first-child { grid-column: 1 / -1; }
.project-image { display: block; position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 1.53; background: #d7dbef; color: white; }
.project:first-child .project-image { aspect-ratio: 2.12; }
.project-image::after { content:''; position:absolute; inset:0; background:linear-gradient(0deg,#080e22e6,transparent 42%); pointer-events:none; }
.project-image img,.project-image video { width:100%;height:100%;object-fit:cover;display:block;transition:transform .55s cubic-bezier(.2,.65,.2,1); }
.project-image:focus-visible { outline-offset:-5px; }
.project-image:hover img { transform:scale(1.035); }
.project-index,.image-caption,.image-label { position: absolute; z-index: 1; }
.project-index,.image-caption { top: 12px; padding: 5px 9px; background: #10152df5; color: white; font-size: .76rem; }
.project-index { left: 12px; } .image-caption { right: 12px; }
.image-label { left: clamp(12px,2.5vw,36px); bottom: 14px; font-size: clamp(1.55rem,3.3vw,3.5rem); font-weight: 650; letter-spacing: -.065em; }
.project-info { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; padding: 17px 0; gap: 12px; border-bottom: 1px solid var(--line); }
.project-info h3 { margin: 6px 0 0; }
.preview-button { min-height:44px; padding: 7px 13px; border: 1px solid #777f9c; background:transparent; color:var(--ink); font-weight:650; }
.preview-button:hover { background:var(--ink); color:white; }
.project-note { margin-top: 26px; color: #46516a; }
.contact-section { background: var(--blue);color: white; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.contact-section h2 { font-size:clamp(2.5rem,5vw,5rem); }
.contact-section a { display:inline-flex;align-items:center;min-height:44px; white-space:nowrap; }
footer { flex-wrap:wrap; padding-block:26px; font-size:.9rem; }
footer > a { min-height:44px; display:inline-flex;align-items:center; }
body.modal-open { overflow:hidden; }
#demo-dialog { width:min(96vw,1450px);height:94dvh;max-height:94dvh;padding:0;border:1px solid #7882a9;background:#f1f3ff;color:var(--ink); }
#demo-dialog[open] { display:grid; grid-template-rows:auto auto minmax(0,1fr); }
#demo-dialog::backdrop { background:#080d25cb; }
.demo-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:10px 14px; background:var(--ink);color:white; }
.demo-toolbar h2 { font-size:1.15rem;margin-right:auto; }
.demo-toolbar :is(a,button) { display:inline-flex;align-items:center;min-height:44px;padding:4px 10px;background:transparent;border:1px solid #9098bb;color:white;font-size:.84rem; }
.device-controls { display:flex; }
.device-controls button[aria-pressed=true] { background:white;color:var(--ink); }
.demo-help { padding:8px 14px;font-size:.82rem; }
.demo-stage { display:flex;justify-content:center;min-height:0;overflow:auto; }
.demo-stage iframe { border:0;width:100%;height:100%;background:white; }
.demo-stage.mobile iframe { width:390px;flex:0 0 390px; }
@media(max-width:900px){.systems-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.opening h1{font-size:clamp(3rem,8.5vw,6.2rem)}}
@media(max-width:690px){
 .mast { padding-block:10px; flex-direction:column;align-items:flex-start;gap:4px; }.mast nav{width:100%; justify-content:space-between; flex-wrap:wrap;gap:4px}.mast nav a{font-size:.81rem}.mast .mast-action{padding-inline:10px}
 .opening { grid-template-columns:minmax(0,1fr);min-height:0; }.opening-copy{padding:45px var(--gutter) 28px}.opening h1{width:auto;font-size:clamp(2.9rem,10vw,5.2rem)}.opening-art{min-height:350px}.sculpture{inset:0 8% 24%}
 .business-section,.project-grid { grid-template-columns:minmax(0,1fr); }.section-heading,.contact-section{display:block}.contact-section a{margin-top:14px}
 .project:first-child .project-image{aspect-ratio:1.52}.systems-grid article{min-height:0} .demo-stage.mobile{justify-content:safe center}
}
@media(max-width:380px){.systems-grid{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.project-image:hover img{transform:none}}

.business-heading h2 { margin: 0 0 16px; }
.business-content ul { margin: 0 0 10px; }
.business-content li + li { margin-top: 5px; }
.business-content .business-cta { color: #2635a8; }
.contact-section p { margin-top: 12px; }
.contact-section .solid { justify-content: center; white-space: normal; }

.service-nav {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  padding-inline: var(--gutter);
  background: #151e49;
  color: white;
}
.service-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 8px;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
}
.service-nav a + a { border-left: 1px solid #ffffff30; }
.service-nav a:hover { background: #263268; text-decoration: underline; }
.service-cards {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 14px;
}
.service-cards article {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(20px,3vw,40px);
  background: #f8f9ff;
  border-top: 3px solid var(--blue);
  scroll-margin-top: 16px;
}
.service-cards p { color: #39455f; }
.service-cards .service-scope { font-size: .94rem; }
.service-cards a {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  min-height: 44px;
  color: #25359e;
  font-weight: 650;
}
.systems-subtitle { margin: clamp(32px,5vw,66px) 0 17px; }
.systems-grid article:last-child { grid-column: auto; }
@media(max-width:690px) {
  .service-nav a { font-size: .82rem; }
  .service-cards { grid-template-columns: minmax(0,1fr); }
}
