@import "tailwindcss";

:root {
  --paper: #f1efe8;
  --paper-2: #e8e5dc;
  --ink: #111515;
  --muted: #5d6462;
  --line: rgba(17, 21, 21, 0.18);
  --surface: #fbfaf6;
  --acid: #53dde2;
  --orange: #ff7952;
  --header: rgba(241, 239, 232, 0.9);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #0d1111;
  --paper-2: #151a19;
  --ink: #f1f0e9;
  --muted: #a5adab;
  --line: rgba(241, 240, 233, 0.17);
  --surface: #151a19;
  --header: rgba(13, 17, 17, 0.9);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; width: 100%; }
svg { width: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.7; }

.site-header { position: sticky; top: 0; z-index: 50; height: 84px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 3.5vw; background: var(--header); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; font: 700 11px/1.05 Arial, sans-serif; letter-spacing: .11em; }
.brand-mark { position: relative; display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid var(--ink); font: 800 16px/1 Arial, sans-serif; letter-spacing: -.15em; padding-right: 3px; }
.brand-mark span { color: var(--orange); }
.nav { display: flex; gap: 32px; font: 600 11px/1 Arial, sans-serif; text-transform: uppercase; letter-spacing: .1em; }
.nav a { position: relative; padding: 35px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 25px; height: 2px; background: var(--orange); transition: right .25s ease; }
.nav a:hover::after { right: 0; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 18px; }
.theme-toggle { display: flex; align-items: center; gap: 9px; border: 0; background: transparent; cursor: pointer; font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.theme-toggle i { width: 29px; height: 15px; border: 1px solid var(--ink); border-radius: 20px; padding: 2px; }
.theme-toggle i::after { content: ""; display: block; width: 9px; height: 9px; margin-left: 13px; background: var(--ink); border-radius: 50%; transition: margin .2s ease; }
:root[data-theme="light"] .theme-toggle i::after { margin-left: 0; }
.menu-toggle { display: none; border: 0; background: none; }

.hero { position: relative; min-height: calc(100vh - 84px); display: grid; grid-template-columns: 56% 44%; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 76px 76px; opacity: .2; mask-image: linear-gradient(90deg, #000 0%, transparent 66%); }
.hero-copy { position: relative; z-index: 2; align-self: center; padding: 9vw 6vw 9vw 8vw; }
.eyebrow { display: flex; align-items: center; gap: 11px; margin: 0 0 28px; font: 700 10px/1.3 ui-monospace, monospace; letter-spacing: .16em; color: var(--muted); }
.eyebrow span { width: 28px; height: 2px; background: var(--orange); }
.hero h1, .section h2, .culture h2, .contact h2 { margin: 0; font: 800 clamp(3.7rem, 7.5vw, 8.6rem)/.83 Arial, sans-serif; letter-spacing: -.075em; text-transform: uppercase; }
h1 em, h2 em { color: transparent; -webkit-text-stroke: 1.5px var(--ink); font-style: normal; }
.hero-lede { max-width: 690px; margin: 43px 0 0 11%; padding-left: 24px; border-left: 2px solid var(--acid); color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.25rem); line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin: 38px 0 0 11%; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 51px; padding: 0 23px; font: 700 10px/1 ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--ink); color: var(--paper); }
.button.text { padding: 0; border-bottom: 1px solid var(--line); }
.button.light { background: #f3f1e9; color: #0d1111; }
.hero-visual { position: relative; min-height: 680px; overflow: hidden; }
.hero-visual > img { height: 100%; object-fit: cover; filter: saturate(.72) contrast(1.1); }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(13,17,17,.05), rgba(13,17,17,.65)); mix-blend-mode: multiply; }
.hero-frame { position: absolute; z-index: 2; inset: 7% 8%; border: 1px solid rgba(255,255,255,.58); }
.hero-frame::before, .hero-frame::after { content: ""; position: absolute; width: 18px; height: 18px; border-color: var(--acid); }
.hero-frame::before { left: -1px; top: -1px; border-left: 3px solid var(--acid); border-top: 3px solid var(--acid); }
.hero-frame::after { right: -1px; bottom: -1px; border-right: 3px solid var(--acid); border-bottom: 3px solid var(--acid); }
.hero-status { position: absolute; z-index: 3; left: 12%; bottom: 11%; color: white; font: 700 9px/1 ui-monospace, monospace; letter-spacing: .14em; }
.hero-status span { display: inline-block; width: 8px; height: 8px; margin-right: 8px; background: var(--acid); border-radius: 50%; box-shadow: 0 0 16px var(--acid); }
.hero-status b { margin-left: 25px; color: var(--acid); }
.hero-note { position: absolute; z-index: 3; right: 11%; top: 11%; color: white; text-align: right; font: 700 10px/1.4 ui-monospace, monospace; letter-spacing: .13em; }
.hero-index { position: absolute; z-index: 4; left: 3.5vw; bottom: 3vw; writing-mode: vertical-rl; font: 700 9px/1 ui-monospace, monospace; letter-spacing: .18em; }

.signal-bar { display: flex; align-items: center; justify-content: center; gap: 3vw; min-height: 72px; padding: 18px 3vw; background: var(--ink); color: var(--paper); overflow: hidden; font: 700 9px/1 ui-monospace, monospace; letter-spacing: .16em; white-space: nowrap; }
.signal-bar i { width: 4px; height: 4px; background: var(--orange); transform: rotate(45deg); }
.section { padding: 120px 8vw; border-bottom: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 7vw; align-items: end; margin-bottom: 75px; }
.section-heading .eyebrow { grid-column: 1 / -1; margin-bottom: -20px; }
.section-heading h2, .labs-heading h2, .about h2 { font-size: clamp(3rem, 5.2vw, 6.2rem); }
.section-heading > p, .labs-heading > p { max-width: 560px; margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.75; }

.service-list { border-top: 1px solid var(--line); }
.service-card { display: grid; grid-template-columns: 70px 180px minmax(300px, 1fr) minmax(220px, .55fr); gap: 30px; align-items: center; padding: 31px 0; border-bottom: 1px solid var(--line); }
.service-number, .mono { font: 700 9px/1.4 ui-monospace, monospace; letter-spacing: .13em; color: var(--muted); }
.service-image { height: 105px; overflow: hidden; }
.service-image img { height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .3s ease, transform .5s ease; }
.service-card:hover .service-image img { filter: grayscale(0); transform: scale(1.05); }
.service-copy > p { margin: 0 0 8px; color: var(--orange); font: 700 9px/1 ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.service-copy h3 { margin: 0 0 10px; font-size: clamp(1.6rem, 2.4vw, 2.6rem); letter-spacing: -.045em; text-transform: uppercase; }
.service-copy > span, .service-card li { color: var(--muted); font-size: .94rem; line-height: 1.55; }
.service-card ul { margin: 0; padding: 0; list-style: none; }
.service-card li { padding: 5px 0 5px 16px; border-bottom: 1px dotted var(--line); }
.service-card li::before { content: "+"; margin-left: -16px; margin-right: 8px; color: var(--orange); }

.work { background: var(--ink); color: var(--paper); }
.work .eyebrow, .work-intro > p, .project-copy > p, .case-grid p { color: #a9b0ae; }
.work h2 em { -webkit-text-stroke-color: var(--paper); }
.work-intro { display: grid; grid-template-columns: 1.15fr .8fr; gap: 8vw; align-items: end; margin-bottom: 75px; }
.work-intro .eyebrow { grid-column: 1 / -1; margin-bottom: -18px; }
.work-intro h2 { font-size: clamp(3.4rem, 6.3vw, 7rem); }
.work-intro > p { margin: 0; font-size: 1.05rem; line-height: 1.75; }
.inline-link { display: inline-flex; align-items: center; gap: 12px; width: fit-content; padding-bottom: 8px; border-bottom: 1px solid currentColor; font: 700 10px/1 ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.work-intro .inline-link { grid-column: 2; }
.featured-project { display: grid; grid-template-columns: 1.35fr 1fr; border: 1px solid rgba(255,255,255,.2); }
.project-image { position: relative; min-height: 570px; overflow: hidden; background: #202625; }
.project-image img { height: 100%; object-fit: cover; object-position: left top; }
.project-image span { position: absolute; left: 24px; top: 24px; padding: 10px 13px; background: var(--acid); color: #0d1111; font: 800 9px/1 ui-monospace, monospace; letter-spacing: .12em; }
.project-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(35px, 5vw, 80px); }
.project-copy h3 { margin: 15px 0 2px; font-size: clamp(3.4rem, 6vw, 7rem); letter-spacing: -.07em; text-transform: uppercase; }
.project-copy h4 { margin: 0 0 28px; color: var(--acid); font-size: 1.05rem; font-weight: 500; }
.project-copy > p:not(.mono) { font-size: 1rem; line-height: 1.75; }
.project-facts { display: grid; gap: 0; margin: 28px 0; border-top: 1px solid rgba(255,255,255,.18); }
.project-facts span { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.18); font: 500 10px/1.4 ui-monospace, monospace; color: #a9b0ae; }
.project-facts b { display: inline-block; width: 85px; color: var(--paper); }
.project-links { display: flex; gap: 24px; align-items: center; }
.work .button.primary { background: var(--acid); color: #0d1111; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 1px; background: rgba(255,255,255,.2); }
.case-grid article { background: var(--ink); }
.case-grid img { aspect-ratio: 1.65; object-fit: cover; filter: grayscale(.4); }
.case-grid article > div { padding: 30px; }
.case-grid h3 { margin: 9px 0 12px; font-size: 1.55rem; letter-spacing: -.03em; text-transform: uppercase; }
.case-grid p:last-child { font-size: .91rem; line-height: 1.65; }

.labs-heading { display: grid; grid-template-columns: 1.1fr .8fr; gap: 9vw; align-items: end; margin-bottom: 70px; }
.labs-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.lab-card { display: grid; grid-template-columns: 1fr 1fr; min-height: 330px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lab-card:nth-child(even) { border-right: 0; }
.lab-card:nth-child(n+3) { border-bottom: 0; }
.lab-image { position: relative; overflow: hidden; }
.lab-image img { height: 100%; object-fit: cover; filter: grayscale(.8) contrast(1.05); transition: filter .3s ease, transform .45s ease; }
.lab-card:hover img { filter: grayscale(0); transform: scale(1.04); }
.lab-image span { position: absolute; left: 12px; top: 12px; display: grid; place-items: center; width: 33px; height: 33px; background: var(--acid); color: #111515; font: 800 9px/1 ui-monospace, monospace; }
.lab-copy { display: flex; flex-direction: column; justify-content: center; padding: 32px; }
.lab-copy p { color: var(--orange); font: 700 9px/1 ui-monospace, monospace; letter-spacing: .12em; }
.lab-copy h3 { margin: 9px 0 16px; font-size: 1.6rem; line-height: 1.05; text-transform: uppercase; }
.lab-copy span { color: var(--muted); font-size: .91rem; line-height: 1.62; }
.open-source-strip { display: grid; grid-template-columns: 40% 60%; margin-top: 55px; background: var(--paper-2); border: 1px solid var(--line); }
.open-source-strip > div:first-child { min-height: 350px; overflow: hidden; }
.open-source-strip img { height: 100%; object-fit: cover; filter: grayscale(1); }
.open-source-strip > div:last-child { align-self: center; padding: 55px; }
.open-source-strip h3 { margin: 14px 0; font-size: clamp(2rem, 3.3vw, 4rem); line-height: .98; letter-spacing: -.05em; text-transform: uppercase; }
.open-source-strip p:not(.mono) { max-width: 660px; color: var(--muted); line-height: 1.7; }
.open-source-strip .inline-link { margin-top: 18px; }

.insights { background: var(--paper-2); }
.insight-list { border-top: 1px solid var(--line); }
.insight-list article { display: grid; grid-template-columns: 60px 150px 1fr 48px; gap: 26px; align-items: center; padding: 25px 0; border-bottom: 1px solid var(--line); }
.insight-number { font: 700 10px/1 ui-monospace, monospace; color: var(--orange); }
.insight-list img { height: 92px; object-fit: cover; filter: grayscale(.75); }
.insight-list h3 { margin: 7px 0 8px; max-width: 850px; font-size: clamp(1.35rem, 2.1vw, 2.3rem); line-height: 1.05; letter-spacing: -.035em; }
.insight-list div > span { display: block; max-width: 740px; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.insight-list article > a { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; transition: background .2s ease, color .2s ease; }
.insight-list article > a:hover { background: var(--orange); color: #111515; border-color: var(--orange); }

.about { display: grid; grid-template-columns: minmax(330px, .8fr) 1.15fr; gap: 9vw; align-items: center; }
.about-portrait { position: relative; }
.about-portrait img { aspect-ratio: .78; object-fit: cover; object-position: center top; filter: grayscale(.15) contrast(1.05); }
.about-portrait::before { content: ""; position: absolute; z-index: -1; inset: -20px 20px 20px -20px; border: 1px solid var(--line); }
.about-portrait > span { position: absolute; right: -22px; bottom: 30px; padding: 13px 17px; background: var(--acid); color: #111515; font: 800 9px/1 ui-monospace, monospace; letter-spacing: .1em; }
.about-copy .lead { max-width: 690px; margin: 35px 0 22px; color: var(--ink); font-size: 1.3rem; line-height: 1.55; }
.about-copy > p:not(.eyebrow):not(.lead) { max-width: 690px; color: var(--muted); line-height: 1.75; }
.about blockquote { margin: 35px 0; padding-left: 25px; border-left: 3px solid var(--orange); font: italic 500 1.35rem/1.4 Georgia, serif; }

.culture { padding: 110px 8vw; background: var(--ink); color: var(--paper); }
.culture > div:first-child { display: grid; grid-template-columns: .45fr 1fr; align-items: end; margin-bottom: 70px; }
.culture h2 { font-size: clamp(3.2rem, 6.2vw, 7.3rem); }
.culture-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.22); }
.culture-grid article { background: var(--ink); padding-bottom: 35px; }
.culture-grid img { aspect-ratio: 1.6; object-fit: cover; filter: grayscale(1); }
.culture-grid p, .culture-grid h3, .culture-grid span { margin-left: 28px; margin-right: 28px; }
.culture-grid p { margin-top: 28px; color: var(--acid); font: 700 9px/1 ui-monospace, monospace; letter-spacing: .12em; }
.culture-grid h3 { margin-top: 10px; margin-bottom: 10px; font-size: 1.5rem; text-transform: uppercase; }
.culture-grid span { color: #a9b0ae; font-size: .91rem; line-height: 1.6; }

.contact { position: relative; min-height: 640px; display: grid; place-items: center; text-align: center; overflow: hidden; }
.contact > img { position: absolute; inset: 0; height: 100%; object-fit: cover; filter: grayscale(.5); }
.contact-overlay { position: absolute; inset: 0; background: rgba(8,12,12,.76); }
.contact-copy { position: relative; z-index: 2; color: #f3f1e9; }
.contact .eyebrow { justify-content: center; color: #b3bab8; }
.contact h2 { font-size: clamp(4rem, 7.3vw, 8rem); }
.contact h2 em { -webkit-text-stroke-color: #f3f1e9; }
.contact p:not(.eyebrow) { margin: 28px auto; color: #c2c8c6; }
footer { min-height: 230px; display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 50px; align-items: start; padding: 64px 8vw; border-top: 1px solid var(--line); }
footer p { margin: 0; color: var(--muted); font-size: .83rem; line-height: 1.6; }
.footer-links { display: grid; gap: 10px; font: 700 10px/1.4 ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.footer-links a:hover { color: var(--orange); }
.copyright { text-align: right; }

@media (max-width: 1050px) {
  .site-header { grid-template-columns: 1fr auto; }
  .nav { position: absolute; left: 0; right: 0; top: 84px; display: none; flex-direction: column; gap: 0; padding: 20px 4vw; background: var(--paper); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 17px 0; border-bottom: 1px solid var(--line); }
  .menu-toggle { display: grid; gap: 6px; padding: 8px; cursor: pointer; }
  .menu-toggle span { display: block; width: 24px; height: 1px; background: var(--ink); }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 100px 8vw; }
  .hero-visual { min-height: 560px; }
  .service-card { grid-template-columns: 45px 140px 1fr; }
  .service-card ul { display: none; }
  .featured-project, .open-source-strip { grid-template-columns: 1fr; }
  .project-image { min-height: 450px; }
  .lab-card { grid-template-columns: 1fr; }
  .lab-image { min-height: 260px; }
}

@media (max-width: 760px) {
  .site-header { height: 70px; padding: 0 20px; }
  .nav { top: 70px; }
  .theme-toggle span { display: none; }
  .hero-copy { padding: 88px 25px 70px; }
  .hero h1 { font-size: clamp(3.3rem, 17vw, 5rem); }
  .hero-lede, .hero-actions { margin-left: 0; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-visual { min-height: 450px; }
  .hero-index { display: none; }
  .signal-bar { justify-content: flex-start; overflow-x: auto; }
  .section, .culture { padding: 80px 25px; }
  .section-heading, .work-intro, .labs-heading, .about, .culture > div:first-child { grid-template-columns: 1fr; gap: 28px; }
  .section-heading .eyebrow, .work-intro .eyebrow { margin-bottom: 0; }
  .work-intro .inline-link { grid-column: auto; }
  .service-card { grid-template-columns: 42px 1fr; gap: 18px; }
  .service-image { display: none; }
  .featured-project { margin-left: -25px; margin-right: -25px; border-left: 0; border-right: 0; }
  .project-image { min-height: 300px; }
  .project-copy { padding: 38px 25px 48px; }
  .project-links { align-items: flex-start; flex-direction: column; }
  .case-grid, .labs-grid, .culture-grid { grid-template-columns: 1fr; }
  .case-grid article, .lab-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .lab-card:nth-child(n+3) { border-bottom: 1px solid var(--line); }
  .lab-card:last-child { border-bottom: 0; }
  .open-source-strip > div:last-child { padding: 35px 25px; }
  .insight-list article { grid-template-columns: 35px 1fr 42px; gap: 14px; }
  .insight-list img { display: none; }
  .about-portrait { max-width: 470px; }
  .about-portrait > span { right: -5px; }
  .contact { min-height: 570px; padding: 25px; }
  footer { grid-template-columns: 1fr 1fr; padding: 50px 25px; }
  .copyright { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* 2026 computational atelier direction */
:root {
  --void: #06050a;
  --void-2: #0d0b14;
  --paper: #07060b;
  --paper-2: #0e0c15;
  --ink: #f6f2ff;
  --muted: #aaa3bb;
  --line: rgba(222, 210, 255, 0.16);
  --surface: rgba(18, 15, 28, 0.78);
  --acid: #68f6ff;
  --orange: #ff5fd2;
  --violet: #8a6cff;
  --ember: #ffb86a;
  --header: rgba(6, 5, 10, 0.66);
  --pointer-x: 50vw;
  --pointer-y: 50vh;
  --scroll-progress: 0%;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --void: #f3f0fa;
  --void-2: #e8e3f3;
  --paper: #f7f4fb;
  --paper-2: #ece7f4;
  --ink: #17121f;
  --muted: #625b70;
  --line: rgba(41, 25, 67, 0.16);
  --surface: rgba(255, 255, 255, 0.72);
  --acid: #006f78;
  --orange: #c5258f;
  --violet: #6240dc;
  --ember: #9a4c00;
  --header: rgba(247, 244, 251, 0.72);
  color-scheme: light;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 85% 4%, color-mix(in srgb, var(--violet) 14%, transparent), transparent 26rem),
    var(--paper);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  z-index: 999;
  inset: 0;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.future-shell { position: relative; isolation: isolate; }
.pointer-field {
  position: fixed;
  z-index: -1;
  left: var(--pointer-x);
  top: var(--pointer-y);
  width: 48rem;
  height: 48rem;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--violet) 13%, transparent), transparent 66%);
  transition: opacity .3s ease;
}
.scroll-progress { position: fixed; z-index: 100; top: 0; left: 0; width: var(--scroll-progress); height: 2px; background: linear-gradient(90deg, var(--violet), var(--acid), var(--orange)); box-shadow: 0 0 18px var(--acid); }

.site-header {
  height: 76px;
  grid-template-columns: 1fr auto 1fr;
  padding: 0 2.3vw;
  background: var(--header);
  border-bottom-color: var(--line);
  backdrop-filter: blur(24px) saturate(1.4);
}
.brand { gap: 13px; font: 650 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; }
.brand-mark { width: 38px; height: 38px; overflow: hidden; border: 0; border-radius: 12px; background: linear-gradient(135deg, var(--acid), var(--violet) 50%, var(--orange)); color: #09070e; box-shadow: 0 0 24px color-mix(in srgb, var(--violet) 32%, transparent); }
.brand-mark::after { content: ""; position: absolute; inset: 1px; z-index: -1; border-radius: 11px; background: rgba(255,255,255,.28); }
.brand-mark span { color: #09070e; }
.nav { gap: 7px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 74%, transparent); font: 650 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.nav a { padding: 10px 14px; border-radius: 999px; transition: background .2s ease, color .2s ease; }
.nav a::after { display: none; }
.nav a:hover { background: color-mix(in srgb, var(--ink) 9%, transparent); color: var(--acid); }
.header-actions { gap: 20px; }
.header-status { display: flex; align-items: center; gap: 8px; color: var(--muted); font: 600 8px/1 ui-monospace, monospace; letter-spacing: .12em; }
.header-status i { width: 5px; height: 5px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 10px var(--acid); }
.theme-toggle { min-height: 32px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.theme-toggle i { width: 24px; height: 11px; border: 0; background: color-mix(in srgb, var(--ink) 13%, transparent); }
.theme-toggle i::after { width: 7px; height: 7px; margin-left: 12px; background: var(--acid); box-shadow: 0 0 9px var(--acid); }
:root[data-theme="light"] .theme-toggle i::after { margin-left: 0; }

.hero {
  min-height: max(760px, calc(100svh - 76px));
  grid-template-columns: minmax(0, 1.07fr) minmax(390px, .93fr);
  padding: 0 4.5vw;
  border-bottom: 0;
  background: var(--void);
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 49.94%, var(--line) 50%, transparent 50.06%), linear-gradient(180deg, transparent 77%, var(--line) 77.1%, transparent 77.2%); pointer-events: none; }
.hero-grid { inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 46px 46px; opacity: .6; mask-image: radial-gradient(circle at 60% 45%, #000, transparent 76%); }
:root[data-theme="light"] .hero-grid { background-image: linear-gradient(rgba(30,16,50,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(30,16,50,.05) 1px, transparent 1px); }
.hero-aurora { position: absolute; inset: -30%; pointer-events: none; background: conic-gradient(from 190deg at 68% 46%, transparent 0 28%, color-mix(in srgb, var(--violet) 22%, transparent) 36%, color-mix(in srgb, var(--acid) 18%, transparent) 42%, transparent 51%); filter: blur(60px); animation: auroraShift 11s ease-in-out infinite alternate; }
.hero-copy { z-index: 4; align-self: center; padding: 10rem 5vw 8rem 4vw; }
.hero .eyebrow { color: color-mix(in srgb, var(--ink) 66%, transparent); }
.eyebrow span { height: 1px; background: linear-gradient(90deg, var(--acid), var(--orange)); box-shadow: 0 0 10px var(--acid); }
.hero h1 { position: relative; width: max-content; max-width: 100%; font-size: clamp(4.5rem, 8.4vw, 10.5rem); line-height: .72; letter-spacing: -.085em; text-transform: uppercase; }
.hero h1 span { display: inline-block; }
.hero h1 em { display: inline-block; padding-right: .05em; background: linear-gradient(100deg, var(--acid), #f0e9ff 44%, var(--orange) 92%); color: transparent; -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 0; text-shadow: 0 0 70px color-mix(in srgb, var(--violet) 30%, transparent); }
.hero h1::after { content: "ORILLA / LAB 01"; position: absolute; right: 2%; top: -2rem; color: var(--orange); font: 650 8px/1 ui-monospace, monospace; letter-spacing: .16em; }
.hero-lede { max-width: 590px; margin: 48px 0 0 8%; padding: 0 0 0 24px; border-left-color: var(--acid); color: color-mix(in srgb, var(--ink) 68%, transparent); font-size: clamp(.98rem, 1.15vw, 1.16rem); }
.hero-actions { margin: 36px 0 0 8%; }
.button { position: relative; min-height: 54px; overflow: hidden; border: 1px solid var(--line); border-radius: 999px; }
.button.primary { border: 0; background: linear-gradient(100deg, var(--violet), var(--orange)); color: white; box-shadow: 0 12px 40px color-mix(in srgb, var(--violet) 28%, transparent); }
.button.primary::before { content: ""; position: absolute; inset: -100%; background: linear-gradient(100deg, transparent 40%, rgba(255,255,255,.35) 50%, transparent 60%); transform: translateX(-65%); transition: transform .7s ease; }
.button.primary:hover::before { transform: translateX(65%); }
.button.primary > * { position: relative; }
.button.text { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }

.hero-visual { align-self: center; height: min(72vh, 720px); min-height: 530px; overflow: visible; z-index: 3; perspective: 1200px; }
.hero-image-wrap { position: absolute; z-index: 2; inset: 10% 8% 8% 4%; overflow: hidden; border: 1px solid rgba(255,255,255,.22); border-radius: 40% 12% 36% 14% / 30% 30% 18% 32%; transform: rotateY(-7deg) rotateZ(1.5deg); box-shadow: 0 40px 100px rgba(0,0,0,.55), 0 0 80px color-mix(in srgb, var(--violet) 22%, transparent); animation: floatImage 7s ease-in-out infinite; }
.hero-image-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(140deg, color-mix(in srgb, var(--acid) 12%, transparent), transparent 38%, color-mix(in srgb, var(--orange) 20%, transparent)); mix-blend-mode: screen; }
.hero-image-wrap img { height: 100%; object-fit: cover; filter: saturate(.55) contrast(1.25) brightness(.74); transform: scale(1.08); }
:root[data-theme="light"] .hero-image-wrap img { filter: saturate(.72) contrast(1.08) brightness(.92); }
.image-scan { position: absolute; z-index: 2; left: 0; right: 0; top: -10%; height: 16%; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--acid) 18%, transparent), transparent); animation: scanImage 5.5s linear infinite; }
.hero-frame { z-index: 4; inset: 3% 2% 1% -3%; border: 0; border-radius: 48%; background: conic-gradient(from 40deg, transparent 0 13%, var(--acid) 14% 14.3%, transparent 15% 55%, var(--orange) 56% 56.3%, transparent 57% 88%, var(--violet) 89% 89.4%, transparent 90%); animation: spinFrame 22s linear infinite; opacity: .7; }
.hero-frame::before, .hero-frame::after { display: none; }
.hero-orbit { position: absolute; border: 1px solid var(--line); border-radius: 50%; }
.orbit-one { z-index: 1; inset: -1% -5% -2% -8%; transform: rotate(-18deg); }
.orbit-two { z-index: 1; inset: 13% 1% 12% -14%; transform: rotate(24deg); border-style: dashed; opacity: .62; }
.hero-status { left: 7%; bottom: 4%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(7,6,11,.68); backdrop-filter: blur(15px); }
.hero-note { right: 3%; top: 4%; padding: 18px; text-align: left; color: var(--ink); border-left: 1px solid var(--acid); background: color-mix(in srgb, var(--surface) 70%, transparent); backdrop-filter: blur(14px); font-size: 12px; line-height: 1.05; }
.hero-note small, .hero-chip small { display: block; margin-bottom: 9px; color: var(--muted); font: 600 7px/1 ui-monospace, monospace; letter-spacing: .14em; }
.hero-chip { position: absolute; z-index: 5; min-width: 118px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(18px); box-shadow: 0 18px 40px rgba(0,0,0,.2); }
.hero-chip b { font: 700 10px/1 ui-monospace, monospace; letter-spacing: .08em; }
.chip-a { left: -4%; top: 23%; animation: floatChip 5s ease-in-out infinite; }
.chip-b { right: 0; bottom: 21%; animation: floatChip 5s 1.1s ease-in-out infinite; }
.hero-rail { position: absolute; z-index: 5; left: 1.4vw; top: 115px; bottom: 42px; display: flex; align-items: center; flex-direction: column; gap: 16px; color: var(--muted); writing-mode: vertical-rl; font: 600 7px/1 ui-monospace, monospace; letter-spacing: .18em; }
.hero-rail i { flex: 1; width: 1px; background: linear-gradient(var(--line), var(--acid), var(--line)); }

.signal-bar { min-height: 58px; justify-content: flex-start; padding: 0; background: linear-gradient(90deg, var(--violet), #2f22a4 48%, #7d204f); color: white; }
.signal-track { display: flex; align-items: center; flex: none; gap: 3rem; width: max-content; padding-right: 3rem; animation: marquee 24s linear infinite; }
.signal-bar span { font-size: 9px; }
.signal-bar i { flex: none; width: 5px; height: 5px; background: var(--acid); border-radius: 50%; box-shadow: 0 0 10px var(--acid); }

@keyframes auroraShift { to { transform: translate3d(-4%, 5%, 0) rotate(8deg) scale(1.08); } }
@keyframes floatImage { 50% { transform: rotateY(-4deg) rotateZ(-.5deg) translateY(-12px); } }
@keyframes spinFrame { to { transform: rotate(360deg); } }
@keyframes scanImage { to { top: 100%; } }
@keyframes floatChip { 50% { transform: translateY(-9px); } }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 1180px) {
  .site-header { grid-template-columns: 1fr auto; }
  .header-status { display: none; }
  .nav { top: 76px; border-radius: 0; }
  .hero { grid-template-columns: 1fr; padding: 0 8vw; }
  .hero-copy { padding: 9rem 4vw 4rem; }
  .hero-visual { width: min(100%, 780px); margin: 0 auto 5rem; }
  .hero-rail { left: 2.2vw; }
}

@media (max-width: 760px) {
  .site-header { height: 68px; padding: 0 16px; }
  .brand > span:last-child { display: none; }
  .nav { top: 68px; padding: 12px 18px; background: var(--paper); }
  .nav a { border-radius: 0; }
  .theme-toggle { padding: 0 9px; }
  .hero { min-height: auto; padding: 0 22px; }
  .hero-copy { padding: 7rem 0 3.5rem; }
  .hero h1 { font-size: clamp(3.5rem, 18vw, 6rem); line-height: .76; }
  .hero h1::after { top: -1.5rem; right: 0; }
  .hero-lede, .hero-actions { margin-left: 0; }
  .hero-visual { height: 480px; min-height: 0; margin-bottom: 3rem; }
  .hero-image-wrap { inset: 10% 4% 12%; }
  .hero-note { right: 0; top: 1%; }
  .hero-chip { min-width: 100px; padding: 10px 11px; }
  .chip-a { left: -2%; top: 30%; }
  .chip-b { right: -2%; bottom: 12%; }
  .hero-rail { display: none; }
  .signal-track { animation-duration: 18s; }
  .pointer-field { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-aurora, .hero-image-wrap, .hero-frame, .image-scan, .hero-chip, .signal-track { animation: none !important; }
}

/* immersive content system */
.section { position: relative; padding: clamp(7rem, 10vw, 11rem) 5vw; border-bottom: 1px solid var(--line); overflow: hidden; }
.section::before { position: absolute; right: 2vw; top: 4rem; color: color-mix(in srgb, var(--ink) 5%, transparent); font: 800 clamp(7rem, 18vw, 21rem)/.7 Arial, sans-serif; letter-spacing: -.1em; pointer-events: none; }
.services::before { content: "02"; }
.work::before { content: "03"; color: rgba(255,255,255,.025); }
.labs::before { content: "04"; }
.insights::before { content: "05"; }
.about::before { content: "06"; }
.section-heading, .work-intro, .labs-heading { position: relative; z-index: 2; max-width: 1480px; margin-left: auto; margin-right: auto; }
.section-heading { grid-template-columns: 1.15fr .62fr; gap: 10vw; margin-bottom: 5.5rem; }
.section-heading .eyebrow { margin-bottom: -1rem; }
.section-heading h2, .labs-heading h2, .about h2 { font-size: clamp(3.6rem, 6vw, 7.3rem); line-height: .82; letter-spacing: -.075em; }
.section-heading h2 { max-width: 960px; }
.section-heading > p, .labs-heading > p { color: color-mix(in srgb, var(--ink) 64%, transparent); }

.services { background: radial-gradient(circle at 12% 70%, color-mix(in srgb, var(--acid) 8%, transparent), transparent 28rem), var(--paper); }
.service-list { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(230px, auto); gap: 16px; max-width: 1480px; margin: 0 auto; border: 0; }
.service-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr; align-content: end; gap: 0; min-height: 590px; padding: 34px; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); box-shadow: inset 0 1px rgba(255,255,255,.08), 0 22px 80px rgba(0,0,0,.12); isolation: isolate; }
.service-card:nth-child(1) { grid-column: span 6; }
.service-card:nth-child(2), .service-card:nth-child(3) { grid-column: span 3; }
.service-card::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, transparent 20%, color-mix(in srgb, var(--paper) 92%, transparent) 82%); }
.service-number { position: absolute; z-index: 3; left: 26px; top: 25px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: rgba(7,6,11,.58); color: white; backdrop-filter: blur(12px); }
.service-image { position: absolute; z-index: -2; inset: 0; height: auto; }
.service-image img { height: 100%; filter: saturate(.6) contrast(1.18) brightness(.66); transform: scale(1.03); }
.service-card:hover .service-image img { filter: saturate(1) contrast(1.12) brightness(.78); transform: scale(1.09); }
.service-copy { color: #f7f2ff; }
.service-copy > p { color: var(--acid); }
.service-copy h3 { max-width: 500px; font-size: clamp(2.1rem, 3.2vw, 4.3rem); line-height: .88; letter-spacing: -.065em; }
.service-card:nth-child(n+2) .service-copy h3 { font-size: clamp(1.75rem, 2.1vw, 2.7rem); }
.service-copy > span { display: block; max-width: 520px; color: rgba(247,242,255,.7); }
.service-card ul { position: relative; z-index: 2; margin-top: 24px; display: flex; flex-wrap: wrap; gap: 7px; }
.service-card li { padding: 8px 11px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; color: rgba(247,242,255,.76); background: rgba(7,6,11,.34); backdrop-filter: blur(10px); font: 600 8px/1 ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.service-card li::before { display: none; }
.service-card:nth-child(n+2) ul { display: none; }

.work { background: radial-gradient(circle at 80% 16%, rgba(138,108,255,.17), transparent 30rem), linear-gradient(180deg, #08060e, #0b0812 72%, #07060b); color: #f7f2ff; }
.work-intro { grid-template-columns: 1.25fr .6fr; max-width: 1480px; margin-bottom: 5.5rem; }
.work-intro h2 { font-size: clamp(4rem, 7.2vw, 8.8rem); line-height: .78; }
.work-intro > p { color: rgba(247,242,255,.64); }
.featured-project { position: relative; z-index: 2; grid-template-columns: 1.25fr .75fr; max-width: 1480px; margin: 0 auto; overflow: hidden; border: 1px solid rgba(255,255,255,.15); border-radius: 36px; background: rgba(255,255,255,.035); box-shadow: 0 50px 120px rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.08); backdrop-filter: blur(14px); }
.featured-project::before { content: "FEATURED / 001"; position: absolute; z-index: 5; top: 18px; left: 50%; color: rgba(255,255,255,.45); font: 650 7px/1 ui-monospace, monospace; letter-spacing: .15em; }
.project-image { min-height: 680px; background: #0c0912; }
.project-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 54%, rgba(8,6,14,.65)), linear-gradient(180deg, transparent 65%, rgba(8,6,14,.55)); }
.project-image img { filter: saturate(.7) contrast(1.1); transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .4s ease; }
.featured-project:hover .project-image img { transform: scale(1.035); filter: saturate(1) contrast(1.06); }
.project-image span { left: 28px; top: 28px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: rgba(7,6,11,.56); color: white; backdrop-filter: blur(14px); }
.project-copy { position: relative; padding: clamp(40px, 5vw, 76px); background: linear-gradient(150deg, rgba(255,255,255,.055), rgba(255,255,255,.012)); }
.project-copy::before { content: ""; position: absolute; left: 0; top: 10%; bottom: 10%; width: 1px; background: linear-gradient(transparent, var(--acid), var(--orange), transparent); }
.project-copy h3 { background: linear-gradient(90deg, #fff, var(--acid)); color: transparent; -webkit-background-clip: text; background-clip: text; }
.project-facts { border-color: rgba(255,255,255,.12); }
.project-links .button.primary { background: linear-gradient(100deg, var(--violet), var(--orange)); }
.case-grid { position: relative; z-index: 2; grid-template-columns: 1.12fr .88fr .88fr; gap: 14px; max-width: 1480px; margin: 14px auto 0; background: transparent; }
.case-grid article { position: relative; overflow: hidden; min-height: 440px; border: 1px solid rgba(255,255,255,.12); border-radius: 24px; background: rgba(255,255,255,.035); }
.case-grid img { height: 220px; aspect-ratio: auto; filter: saturate(.45) contrast(1.12); transition: transform .5s ease, filter .4s ease; }
.case-grid article:hover img { transform: scale(1.05); filter: saturate(.9) contrast(1.08); }
.case-grid article > div { padding: 28px; }
.case-grid h3 { font-size: clamp(1.5rem, 2vw, 2.45rem); line-height: .95; }

.labs { background: radial-gradient(circle at 72% 50%, color-mix(in srgb, var(--orange) 8%, transparent), transparent 31rem), var(--paper); }
.labs-heading { grid-template-columns: .9fr .72fr; max-width: 1480px; }
.labs-grid { position: relative; z-index: 2; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 1480px; margin: 0 auto; border: 0; }
.lab-card { position: relative; display: grid; grid-template-columns: 1fr; align-content: end; min-height: 570px; overflow: hidden; border: 1px solid var(--line) !important; border-radius: 26px; background: var(--surface); }
.lab-card:nth-child(even) { transform: translateY(36px); }
.lab-image { position: absolute; inset: 0; min-height: 0; }
.lab-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 22%, color-mix(in srgb, var(--paper) 94%, transparent) 84%); }
.lab-image img { filter: saturate(.35) contrast(1.2) brightness(.65); }
.lab-card:hover img { filter: saturate(1) contrast(1.1) brightness(.78); transform: scale(1.08); }
.lab-image span { z-index: 2; left: 20px; top: 20px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: rgba(7,6,11,.48); color: white; backdrop-filter: blur(12px); }
.lab-copy { position: relative; z-index: 2; justify-content: flex-end; min-height: 310px; padding: 28px; }
.lab-copy p { color: var(--acid); }
.lab-copy h3 { font-size: clamp(1.55rem, 2.1vw, 2.5rem); letter-spacing: -.05em; }
.lab-copy span { color: color-mix(in srgb, var(--ink) 70%, transparent); }
.open-source-strip { position: relative; z-index: 2; grid-template-columns: .65fr 1fr; max-width: 1480px; margin: 100px auto 0; overflow: hidden; border-radius: 28px; background: linear-gradient(120deg, color-mix(in srgb, var(--violet) 16%, var(--paper-2)), var(--paper-2)); }
.open-source-strip > div:first-child { min-height: 420px; }
.open-source-strip img { filter: saturate(.2) contrast(1.25); }
.open-source-strip h3 { max-width: 800px; font-size: clamp(2.6rem, 4.6vw, 5.8rem); letter-spacing: -.07em; }

.insights { background: linear-gradient(180deg, var(--paper-2), var(--paper)); }
.insight-list { position: relative; z-index: 2; max-width: 1480px; margin: 0 auto; border: 0; }
.insight-list article { position: relative; grid-template-columns: 70px 190px 1fr 58px; min-height: 160px; margin-bottom: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: color-mix(in srgb, var(--surface) 72%, transparent); backdrop-filter: blur(14px); transition: transform .3s ease, border-color .3s ease, background .3s ease; }
.insight-list article:hover { transform: translateX(10px); border-color: color-mix(in srgb, var(--acid) 45%, var(--line)); background: color-mix(in srgb, var(--surface) 93%, transparent); }
.insight-number { font-size: 11px; color: var(--acid); }
.insight-list img { height: 124px; border-radius: 15px; filter: saturate(.3) contrast(1.15); }
.insight-list article:hover img { filter: saturate(.9) contrast(1.08); }
.insight-list h3 { font-size: clamp(1.55rem, 2.45vw, 3rem); line-height: .95; }
.insight-list article > a { width: 54px; height: 54px; border-radius: 18px; transform: rotate(-45deg); }
.insight-list article > a svg { transform: rotate(45deg); }

.about { max-width: none; grid-template-columns: minmax(350px, .72fr) 1.1fr; gap: 11vw; padding-left: 10vw; padding-right: 10vw; background: radial-gradient(circle at 18% 44%, color-mix(in srgb, var(--violet) 17%, transparent), transparent 26rem), var(--paper); }
.about-portrait { z-index: 2; max-width: 570px; }
.about-portrait::before { inset: -30px; border-radius: 44% 16% 44% 18% / 27% 34% 20% 41%; border-color: color-mix(in srgb, var(--acid) 38%, var(--line)); transform: rotate(-4deg); }
.about-portrait::after { content: ""; position: absolute; z-index: -2; inset: -70px; border: 1px dashed var(--line); border-radius: 50%; animation: spinFrame 30s linear infinite; }
.about-portrait img { aspect-ratio: .78; border-radius: 44% 16% 44% 18% / 27% 34% 20% 41%; filter: saturate(.55) contrast(1.15); box-shadow: 0 50px 100px rgba(0,0,0,.3); }
.about-portrait > span { right: -30px; bottom: 13%; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--ink); backdrop-filter: blur(15px); }
.about-copy { position: relative; z-index: 2; }
.about-copy h2 { background: linear-gradient(100deg, var(--ink), var(--acid) 55%, var(--orange)); color: transparent; -webkit-background-clip: text; background-clip: text; }
.about blockquote { border-left: 0; padding: 20px 0 20px 28px; color: var(--ink); font: 500 clamp(1.4rem, 2vw, 2.2rem)/1.35 Georgia, serif; }
.about blockquote::before { content: "↳"; margin-left: -28px; margin-right: 11px; color: var(--orange); }

.culture { position: relative; overflow: hidden; padding: clamp(7rem, 10vw, 11rem) 5vw; background: linear-gradient(150deg, #07060b, #110b1d 58%, #08070d); }
.culture::before { content: ""; position: absolute; inset: -20%; background: conic-gradient(from 180deg at 65% 50%, transparent, rgba(104,246,255,.06), transparent 35%, rgba(255,95,210,.08), transparent 70%); filter: blur(55px); }
.culture > div:first-child, .culture-grid { position: relative; z-index: 2; max-width: 1480px; margin-left: auto; margin-right: auto; }
.culture > div:first-child { grid-template-columns: .35fr 1fr; }
.culture h2 { background: linear-gradient(100deg, #fff, var(--acid) 48%, var(--orange)); color: transparent; -webkit-background-clip: text; background-clip: text; }
.culture-grid { gap: 14px; background: transparent; }
.culture-grid article { overflow: hidden; padding-bottom: 40px; border: 1px solid rgba(255,255,255,.12); border-radius: 25px; background: rgba(255,255,255,.035); transition: transform .35s ease, background .35s ease; }
.culture-grid article:nth-child(2) { transform: translateY(28px); }
.culture-grid article:hover { transform: translateY(-8px); background: rgba(255,255,255,.07); }
.culture-grid article:nth-child(2):hover { transform: translateY(20px); }
.culture-grid img { filter: saturate(.25) contrast(1.2); transition: filter .35s ease, transform .55s ease; }
.culture-grid article:hover img { filter: saturate(.95); transform: scale(1.05); }

.contact { min-height: min(900px, 88vh); background: #07060b; }
.contact > img { filter: saturate(.2) contrast(1.35) brightness(.58); transform: scale(1.08); }
.contact-overlay { background: radial-gradient(circle at center, rgba(138,108,255,.16), transparent 30%), linear-gradient(100deg, rgba(7,6,11,.94), rgba(7,6,11,.68)); }
.contact::before, .contact::after { content: ""; position: absolute; z-index: 2; width: min(68vw, 900px); aspect-ratio: 1; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; }
.contact::before { animation: spinFrame 28s linear infinite; border-style: dashed; }
.contact::after { width: min(52vw, 680px); border-color: rgba(104,246,255,.24); }
.contact-copy { max-width: 1100px; }
.contact h2 { font-size: clamp(4.5rem, 9vw, 11rem); line-height: .76; background: linear-gradient(100deg, #fff, var(--acid) 48%, var(--orange)); color: transparent; -webkit-background-clip: text; background-clip: text; }
.contact h2 em { color: transparent; -webkit-text-stroke: 0; }
.contact .button.light { border: 0; background: linear-gradient(100deg, var(--acid), #fff); color: #07060b; box-shadow: 0 20px 60px rgba(104,246,255,.25); }

footer { min-height: 260px; padding: 70px 5vw; background: var(--paper); border-top-color: var(--line); }

@supports (animation-timeline: view()) {
  .service-card, .lab-card, .insight-list article, .case-grid article, .culture-grid article {
    animation: riseIntoView linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 28%;
  }
  @keyframes riseIntoView {
    from { opacity: .2; transform: translateY(50px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
  .lab-card:nth-child(even), .culture-grid article:nth-child(2) { animation-name: riseOffsetIntoView; }
  @keyframes riseOffsetIntoView {
    from { opacity: .2; transform: translateY(85px) scale(.97); }
    to { opacity: 1; transform: translateY(36px) scale(1); }
  }
}

@media (max-width: 1180px) {
  .service-list { grid-template-columns: repeat(2, 1fr); }
  .service-card, .service-card:nth-child(1), .service-card:nth-child(2), .service-card:nth-child(3) { grid-column: span 1; }
  .service-card:nth-child(1) { grid-column: 1 / -1; }
  .labs-grid { grid-template-columns: 1fr 1fr; }
  .featured-project { grid-template-columns: 1fr; }
  .project-copy::before { left: 10%; right: 10%; top: 0; bottom: auto; width: auto; height: 1px; }
  .case-grid { grid-template-columns: 1fr 1fr; }
  .case-grid article:first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .section { padding: 6rem 22px; }
  .section::before { top: 3.2rem; right: 10px; }
  .section-heading, .work-intro, .labs-heading { grid-template-columns: 1fr; gap: 26px; margin-bottom: 3.5rem; }
  .section-heading h2, .labs-heading h2, .about h2 { font-size: clamp(3rem, 14vw, 5.5rem); }
  .service-list, .labs-grid, .case-grid { grid-template-columns: 1fr; }
  .service-card, .service-card:nth-child(1), .service-card:nth-child(2), .service-card:nth-child(3), .case-grid article:first-child { grid-column: auto; }
  .service-card { min-height: 490px; padding: 26px; }
  .service-image { display: block; }
  .service-card:nth-child(n+2) .service-copy h3 { font-size: 2.15rem; }
  .featured-project { margin-left: 0; margin-right: 0; border-radius: 25px; }
  .project-image { min-height: 360px; }
  .case-grid article { min-height: 0; }
  .lab-card, .lab-card:nth-child(even) { min-height: 500px; transform: none; }
  .open-source-strip { grid-template-columns: 1fr; margin-top: 40px; }
  .open-source-strip > div:first-child { min-height: 280px; }
  .insight-list article { grid-template-columns: 34px 1fr 46px; min-height: 150px; padding: 15px; }
  .insight-list img { display: none; }
  .insight-list article > a { width: 44px; height: 44px; }
  .about { grid-template-columns: 1fr; gap: 6rem; padding-left: 30px; padding-right: 30px; }
  .about-portrait { width: calc(100% - 20px); }
  .culture { padding: 6rem 22px; }
  .culture > div:first-child { grid-template-columns: 1fr; gap: 25px; }
  .culture-grid { grid-template-columns: 1fr; }
  .culture-grid article:nth-child(2) { transform: none; }
  .contact::before { width: 110vw; }
  .contact::after { width: 85vw; }
  footer { grid-template-columns: 1fr; gap: 28px; padding: 54px 24px; }
  .copyright { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .about-portrait::after, .contact::before { animation: none !important; }
}

/* Purpose-built solar palette — restrained, neutral, and separate from void mode */
:root[data-theme="light"] {
  --void: #f6f6f3;
  --void-2: #ecece8;
  --paper: #f8f8f5;
  --paper-2: #efefeb;
  --ink: #17181d;
  --muted: #60646c;
  --line: rgba(23, 24, 29, 0.13);
  --surface: rgba(255, 255, 253, 0.88);
  --acid: #176f75;
  --orange: #a43b72;
  --violet: #5845ad;
  --ember: #9b5724;
  --header: rgba(248, 248, 245, 0.84);
}

:root[data-theme="light"] body {
  background:
    radial-gradient(circle at 86% 2%, rgba(88, 69, 173, .075), transparent 28rem),
    var(--paper);
}
:root[data-theme="light"] body::before { opacity: .026; }
:root[data-theme="light"] .pointer-field { opacity: .48; background: radial-gradient(circle, rgba(88,69,173,.075), transparent 68%); }
:root[data-theme="light"] .site-header { box-shadow: 0 12px 40px rgba(35, 29, 47, .045); }
:root[data-theme="light"] .brand-mark { background: linear-gradient(135deg, #4b3a9d, #176f75); color: white; box-shadow: 0 10px 24px rgba(67, 54, 135, .18); }
:root[data-theme="light"] .brand-mark span { color: white; }
:root[data-theme="light"] .nav { background: rgba(255,255,253,.76); box-shadow: 0 8px 24px rgba(35,29,47,.045); }
:root[data-theme="light"] .theme-toggle { background: rgba(255,255,253,.82); }

:root[data-theme="light"] .hero { background: #f6f6f3; }
:root[data-theme="light"] .hero-aurora {
  opacity: .58;
  background: conic-gradient(from 190deg at 68% 46%, transparent 0 28%, rgba(88,69,173,.12) 36%, rgba(23,111,117,.09) 42%, transparent 51%);
}
:root[data-theme="light"] .hero h1 em {
  background: linear-gradient(100deg, #176f75, #292336 46%, #a43b72 92%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
}
:root[data-theme="light"] .hero-lede { color: #535861; }
:root[data-theme="light"] .hero-frame { opacity: .34; }
:root[data-theme="light"] .hero-image-wrap { border-color: rgba(23,24,29,.15); box-shadow: 0 36px 80px rgba(35,29,47,.18), 0 0 54px rgba(88,69,173,.1); }
:root[data-theme="light"] .hero-note,
:root[data-theme="light"] .hero-chip { background: rgba(255,255,253,.86); box-shadow: 0 14px 38px rgba(35,29,47,.12); }
:root[data-theme="light"] .hero-status { background: rgba(20,18,27,.78); color: white; }
:root[data-theme="light"] .button.primary { background: linear-gradient(100deg, #5845ad, #8e3e79); box-shadow: 0 12px 34px rgba(88,69,173,.2); }
:root[data-theme="light"] .signal-bar { background: #29243f; }

:root[data-theme="light"] .services,
:root[data-theme="light"] .labs,
:root[data-theme="light"] .about { background: var(--paper); }
:root[data-theme="light"] .insights { background: var(--paper-2); }
:root[data-theme="light"] .section::before { color: rgba(23,24,29,.035); }
:root[data-theme="light"] .section-heading > p,
:root[data-theme="light"] .labs-heading > p { color: #5c6068; }
:root[data-theme="light"] .service-card { box-shadow: 0 22px 65px rgba(35,29,47,.1); }
:root[data-theme="light"] .lab-card,
:root[data-theme="light"] .insight-list article,
:root[data-theme="light"] .open-source-strip { box-shadow: 0 18px 55px rgba(35,29,47,.055); }
:root[data-theme="light"] .insight-list article:hover { border-color: rgba(23,111,117,.42); background: #fff; }
:root[data-theme="light"] .about-copy h2 {
  background: linear-gradient(100deg, #17181d, #176f75 58%, #5845ad);
  -webkit-background-clip: text;
  background-clip: text;
}

/* These narrative moments stay intentionally cinematic in both themes. */
:root[data-theme="light"] .work,
:root[data-theme="light"] .culture,
:root[data-theme="light"] .contact {
  --paper: #07060b;
  --paper-2: #0e0c15;
  --ink: #f6f2ff;
  --muted: #aaa3bb;
  --line: rgba(222, 210, 255, 0.16);
  --surface: rgba(18, 15, 28, 0.78);
  --acid: #68f6ff;
  --orange: #ff5fd2;
  --violet: #8a6cff;
}
:root[data-theme="light"] .work .button.primary { background: linear-gradient(100deg, #8a6cff, #ff5fd2); }
:root[data-theme="light"] .culture h2,
:root[data-theme="light"] .contact h2 { background: linear-gradient(100deg, #fff, #68f6ff 48%, #ff5fd2); -webkit-background-clip: text; background-clip: text; }
:root[data-theme="light"] footer { background: #f8f8f5; }

/* Native content archive, three-state theme control, motion studies, and contact flow */
.nav { gap: clamp(14px, 1.45vw, 28px); }
.theme-control { display: inline-flex; align-items: center; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 88%, transparent); }
.theme-control button { min-height: 27px; padding: 0 9px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font: 700 7px/1 ui-monospace, monospace; letter-spacing: .09em; text-transform: uppercase; }
.theme-control button:hover { color: var(--ink); }
.theme-control button.active { background: var(--ink); color: var(--paper); box-shadow: 0 3px 14px color-mix(in srgb, var(--ink) 18%, transparent); }

.project-archive { max-width: 1480px; margin: 100px auto 0; padding-top: 75px; border-top: 1px solid rgba(255,255,255,.16); scroll-margin-top: 100px; }
.archive-heading { display: grid; grid-template-columns: 1.1fr .8fr; gap: 2rem 8vw; align-items: end; margin-bottom: 42px; }
.archive-heading > .mono { grid-column: 1 / -1; color: var(--acid); }
.archive-heading h3 { margin: 0; max-width: 800px; font-size: clamp(3rem, 5vw, 6.2rem); line-height: .86; letter-spacing: -.065em; text-transform: uppercase; }
.archive-heading > p:last-child { margin: 0; color: rgba(247,242,255,.65); line-height: 1.7; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.archive-grid article { overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: 22px; background: rgba(255,255,255,.035); }
.archive-grid article > img { height: 180px; object-fit: cover; filter: saturate(.42) contrast(1.15); transition: transform .45s ease, filter .3s ease; }
.archive-grid article:hover > img { transform: scale(1.035); filter: saturate(.9) contrast(1.06); }
.archive-grid article > div { display: flex; flex-direction: column; min-height: 280px; padding: 25px; }
.archive-grid h4 { margin: 12px 0; font-size: clamp(1.5rem, 2vw, 2.2rem); line-height: 1; letter-spacing: -.04em; text-transform: uppercase; }
.archive-grid article > div > span { color: rgba(247,242,255,.65); font-size: .9rem; line-height: 1.6; }
.archive-card-footer { display: flex; justify-content: space-between; gap: 14px; align-items: end; margin-top: auto; padding-top: 25px; }
.archive-card-footer b { color: var(--acid); font: 700 8px/1 ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.archive-card-footer a { display: inline-flex; align-items: center; gap: 7px; color: rgba(247,242,255,.75); font: 700 8px/1.2 ui-monospace, monospace; text-align: right; text-transform: uppercase; }
.archive-card-footer svg { width: 14px; }

.motion { overflow: hidden; background: radial-gradient(circle at 20% 28%, color-mix(in srgb, var(--violet) 13%, transparent), transparent 30rem), var(--paper-2); }
.motion-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; max-width: 1480px; margin: 0 auto; }
.motion-grid article { overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: color-mix(in srgb, var(--surface) 86%, transparent); box-shadow: 0 30px 90px rgba(0,0,0,.16); }
.motion-grid article:first-child { grid-row: span 2; }
.motion-stage { position: relative; min-height: 330px; overflow: hidden; background: var(--void); }
.motion-grid article:first-child .motion-stage { min-height: 650px; }
.motion-stage::after { content: "LIVE STUDY"; position: absolute; z-index: 4; top: 18px; left: 18px; padding: 9px 11px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(7,6,11,.56); color: white; backdrop-filter: blur(12px); font: 700 7px/1 ui-monospace, monospace; letter-spacing: .13em; }
.motion-stage img { height: 100%; min-height: inherit; object-fit: cover; filter: saturate(.55) contrast(1.12) brightness(.72); transform: scale(1.04); animation: motionCamera 12s ease-in-out infinite alternate; }
.motion-scan { position: absolute; z-index: 2; left: 0; right: 0; top: -20%; height: 25%; background: linear-gradient(180deg, transparent, rgba(104,246,255,.3), transparent); animation: motionScan 5s linear infinite; }
.motion-cursor { position: absolute; z-index: 5; width: 19px; height: 25px; left: 20%; top: 32%; background: white; clip-path: polygon(0 0, 0 100%, 28% 70%, 49% 100%, 63% 91%, 43% 63%, 78% 63%); filter: drop-shadow(0 2px 4px rgba(0,0,0,.7)); animation: motionCursor 7s cubic-bezier(.65,.05,.25,1) infinite; }
.motion-step { position: absolute; z-index: 4; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(7,6,11,.55); color: white; backdrop-filter: blur(10px); font: 700 8px/1 ui-monospace, monospace; animation: motionPulse 3s ease-in-out infinite; }
.step-one { left: 15%; bottom: 18%; }
.step-two { left: 48%; top: 22%; animation-delay: 1s; }
.step-three { right: 12%; bottom: 28%; animation-delay: 2s; }
.motion-copy { padding: 27px 30px 30px; }
.motion-copy .mono { color: var(--orange); }
.motion-copy h3 { margin: 10px 0 12px; font-size: clamp(1.7rem, 2.8vw, 3.6rem); line-height: .95; letter-spacing: -.05em; text-transform: uppercase; }
.motion-copy > span { color: var(--muted); font-size: .93rem; line-height: 1.65; }
.motion-timeline { height: 2px; margin-top: 25px; overflow: hidden; background: var(--line); }
.motion-timeline i { display: block; width: 38%; height: 100%; background: linear-gradient(90deg, var(--acid), var(--orange)); animation: motionTimeline 5s linear infinite; }

@keyframes motionCamera { 50% { transform: scale(1.1) translate3d(-2%, 1%, 0); } }
@keyframes motionScan { to { top: 110%; } }
@keyframes motionCursor { 0%, 12% { left: 20%; top: 32%; } 35%, 48% { left: 67%; top: 58%; } 70%, 82% { left: 42%; top: 70%; } 100% { left: 20%; top: 32%; } }
@keyframes motionPulse { 50% { transform: scale(1.13); border-color: var(--acid); box-shadow: 0 0 25px rgba(104,246,255,.35); } }
@keyframes motionTimeline { from { transform: translateX(-110%); } to { transform: translateX(365%); } }

.insight-list article > button { display: grid; place-items: center; width: 54px; height: 54px; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: transparent; color: inherit; cursor: pointer; transform: rotate(-45deg); transition: background .2s ease, color .2s ease, transform .25s ease; }
.insight-list article > button svg { transform: rotate(45deg); }
.insight-list article.open > button { background: var(--orange); color: #111515; border-color: var(--orange); transform: rotate(45deg); }
.insight-reader { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 10px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--line); }
.insight-reader section { padding: 25px; background: var(--paper); }
.insight-reader h4 { margin: 0 0 10px; font-size: 1rem; letter-spacing: -.02em; text-transform: uppercase; }
.insight-reader p { margin: 0; color: var(--muted); font-size: .89rem; line-height: 1.65; }

.contact { min-height: 1000px; padding: 100px 5vw; }
.contact-copy { width: min(1120px, 100%); }
.contact-copy > p:not(.eyebrow) { max-width: 650px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; width: min(900px, 100%); margin: 40px auto 0; padding: 28px; border: 1px solid rgba(255,255,255,.18); border-radius: 24px; background: rgba(7,6,11,.68); text-align: left; backdrop-filter: blur(20px); }
.contact-form label { display: grid; gap: 8px; }
.contact-form label.full { grid-column: 1 / -1; }
.contact-form label > span { color: rgba(255,255,255,.68); font: 700 8px/1 ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; outline: 0; background: rgba(255,255,255,.07); color: #f7f2ff; font: 500 .95rem/1.45 Arial, sans-serif; }
.contact-form input, .contact-form select { min-height: 49px; padding: 0 14px; }
.contact-form textarea { resize: vertical; min-height: 120px; padding: 13px 14px; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,.4); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--acid); box-shadow: 0 0 0 3px rgba(104,246,255,.1); }
.contact-form select option { color: #111; }
.contact-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; margin-top: 5px; }
.copy-email { padding: 10px 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.35); background: transparent; color: rgba(255,255,255,.8); cursor: pointer; font: 700 9px/1 ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.contact-status { grid-column: 1 / -1; min-height: 1.2em; margin: 0 !important; color: var(--acid) !important; font-size: .82rem !important; text-align: left; }

@media (max-width: 1180px) {
  .archive-grid { grid-template-columns: 1fr 1fr; }
  .motion-grid { grid-template-columns: 1fr; }
  .motion-grid article:first-child { grid-row: auto; }
  .motion-grid article:first-child .motion-stage { min-height: 520px; }
}

@media (max-width: 1050px) {
  .theme-control button { min-width: 31px; padding: 0 7px; font-size: 0; }
  .theme-control button::first-letter { font-size: 8px; }
}

@media (max-width: 760px) {
  .header-status { display: none; }
  .theme-control button { min-width: auto; padding: 0 7px; font-size: 7px; }
  .archive-heading { grid-template-columns: 1fr; }
  .archive-heading > .mono { grid-column: auto; }
  .archive-grid { grid-template-columns: 1fr; }
  .archive-grid article > div { min-height: 240px; }
  .motion-grid article:first-child .motion-stage, .motion-stage { min-height: 330px; }
  .insight-list article > button { width: 44px; height: 44px; }
  .insight-reader { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .contact { min-height: 1100px; padding: 80px 20px; }
  .contact-form { grid-template-columns: 1fr; padding: 20px; }
  .contact-form label.full, .contact-actions, .contact-status { grid-column: auto; }
  .contact-actions { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .motion-stage img, .motion-scan, .motion-cursor, .motion-step, .motion-timeline i { animation: none !important; }
}
