:root {
  --ink: #071018;
  --ink-soft: #101d26;
  --paper: #f4f7f8;
  --paper-bright: #ffffff;
  --muted: #5d6c75;
  --line: #cbd5da;
  --line-dark: #263640;
  --cyan: #6ee7f2;
  --cyan-deep: #13a5b4;
  --acid: #d8ff54;
  --font-sans: "Manrope", system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, monospace;
  --max: 1240px;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: 1rem; line-height: 1.6; text-rendering: optimizeLegibility; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: var(--acid); color: var(--ink); padding: .75rem 1rem; font-weight: 800; }
.skip-link:focus { top: 1rem; }
.mono { font-family: var(--font-mono); }

.site-header { position: sticky; top: 0; z-index: 50; min-height: 74px; display: flex; align-items: center; gap: 2rem; padding: .75rem max(1.25rem, calc((100vw - var(--max)) / 2)); background: rgba(7, 16, 24, .94); color: #fff; border-bottom: 1px solid rgba(110, 231, 242, .18); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: .75rem; margin-right: auto; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--cyan); color: var(--cyan); font: 500 .85rem var(--font-mono); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.25; }
.brand-copy strong { font-size: .92rem; }
.brand-copy small { color: #9aabb4; font: 400 .66rem var(--font-mono); letter-spacing: .02em; }
.main-nav { display: flex; gap: 1.75rem; }
.main-nav a { color: #bec9ce; font-size: .84rem; text-decoration: none; transition: color .2s; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--cyan); }

.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: .75rem; padding: .75rem 1rem; border: 1px solid transparent; border-radius: 2px; font-weight: 700; font-size: .88rem; text-decoration: none; transition: transform .2s, background .2s, border-color .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .text-link:focus-visible, .tab-list button:focus-visible, .main-nav a:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }
.button-small { min-height: 40px; padding: .55rem 1rem; }
.button-primary { background: var(--cyan); color: var(--ink); }
.button-primary:hover { background: var(--acid); }
.button-secondary { border-color: #52636c; color: #fff; }
.button-secondary:hover, .button-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.button-ghost { min-width: 92px; border-color: #40515b; }

.hero { position: relative; overflow: hidden; min-height: 720px; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(3rem, 7vw, 7rem); align-items: center; padding: clamp(5rem, 9vw, 8rem) max(1.25rem, calc((100vw - var(--max)) / 2)); background: var(--ink); color: #fff; }
.hero-grid { position: absolute; inset: 0; opacity: .23; background-image: linear-gradient(rgba(110,231,242,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(110,231,242,.08) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(90deg, black, transparent 78%); }
.hero::before { content: ""; position: absolute; width: 38vw; height: 38vw; min-width: 420px; min-height: 420px; border: 1px solid rgba(110,231,242,.14); border-radius: 50%; right: -11vw; top: 7%; box-shadow: 0 0 0 70px rgba(110,231,242,.018), 0 0 0 140px rgba(110,231,242,.012); }
.hero-content, .signal-panel { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 1.2rem; color: var(--cyan-deep); font: 500 .73rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.hero .eyebrow { color: var(--cyan); }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: .5rem; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 5px rgba(216,255,84,.08); }
.hero h1 { max-width: 780px; margin: 0; font-size: clamp(3.4rem, 7.2vw, 7.1rem); line-height: .92; letter-spacing: -.065em; }
.hero h1 em { color: var(--cyan); font-style: normal; }
.hero-lead { max-width: 680px; margin: 2rem 0; color: #bdc9cf; font-size: clamp(1.02rem, 1.4vw, 1.22rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.signal-panel { border: 1px solid #2c3f4b; background: rgba(11,26,36,.75); box-shadow: 0 30px 90px rgba(0,0,0,.22); }
.signal-heading, .signal-footer { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; color: #83969f; font: 400 .65rem var(--font-mono); letter-spacing: .04em; border-bottom: 1px solid var(--line-dark); }
.signal-heading span:first-child { color: var(--cyan); }
.signal-core { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; padding: 1.6rem 1rem; background: linear-gradient(110deg, rgba(110,231,242,.1), transparent); border-bottom: 1px solid var(--line-dark); }
.signal-index { color: var(--cyan); }
.signal-core strong, .signal-row strong { display: block; font-size: .94rem; }
.signal-core p { margin: .45rem 0 0; color: #9fb0b9; font-size: .83rem; }
.signal-row { display: grid; grid-template-columns: 48px 1fr; gap: .2rem 1rem; padding: 1rem; border-bottom: 1px solid var(--line-dark); }
.signal-row > span { grid-row: 1 / 3; color: #61747e; font-size: .72rem; }
.signal-row small { color: #82949d; font-size: .74rem; }
.signal-footer { border: 0; }
.signal-footer a { color: var(--acid); text-decoration: none; }

.section-shell { display: grid; grid-template-columns: 170px 1fr; gap: clamp(2rem, 5vw, 5rem); max-width: var(--max); margin: 0 auto; padding: clamp(5rem, 9vw, 9rem) 1.25rem; }
.section-number { color: #74828a; font-size: .68rem; letter-spacing: .06em; padding-top: .6rem; }
.statement-content { max-width: 980px; }
.statement-kicker { color: var(--cyan-deep); font: 500 .77rem var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.statement h2, .section-heading h2 { margin: .6rem 0 1.6rem; font-size: clamp(2.15rem, 4.6vw, 4.5rem); line-height: 1.08; letter-spacing: -.045em; }
.statement-content > p:last-child { max-width: 760px; color: var(--muted); font-size: 1.08rem; }

.capabilities { border-top: 1px solid var(--line); }
.capabilities-content { min-width: 0; }
.section-heading { margin-bottom: 2.5rem; }
.capability-tabs { border: 1px solid var(--line); background: var(--paper-bright); }
.tab-list { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.tab-list button { min-height: 58px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--muted); font: 500 .75rem var(--font-mono); cursor: pointer; }
.tab-list button:last-child { border-right: 0; }
.tab-list button[aria-selected="true"] { background: var(--ink); color: var(--cyan); }
.tab-panel { min-height: 330px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 4rem; align-items: center; padding: clamp(2rem, 5vw, 4.5rem); }
.tab-panel[hidden] { display: none; }
.panel-copy > span { color: var(--cyan-deep); font-size: .7rem; }
.panel-copy h3 { margin: .7rem 0 1rem; font-size: clamp(1.7rem, 3vw, 2.8rem); line-height: 1.12; letter-spacing: -.035em; }
.panel-copy p { max-width: 620px; color: var(--muted); }
.tab-panel ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tab-panel li { padding: .75rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.tab-panel li::before { content: "+"; color: var(--cyan-deep); margin-right: .75rem; font-family: var(--font-mono); }

.stack-board { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 1.25rem; border: 1px solid var(--line); background: var(--paper-bright); }
.stack-board > div { min-height: 145px; padding: 1.35rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stack-board > div:nth-child(3n) { border-right: 0; }
.stack-board > div:nth-last-child(-n+3) { border-bottom: 0; }
.stack-intro { background: var(--ink); color: #fff; }
.stack-intro span, .stack-group > span { color: var(--cyan); font-size: .68rem; }
.stack-intro p, .stack-group p { margin: 1rem 0 0; font-size: .88rem; line-height: 1.55; }
.stack-group > span { color: var(--cyan-deep); font-family: var(--font-mono); text-transform: uppercase; }

.portfolio { max-width: none; padding-left: max(1.25rem, calc((100vw - var(--max)) / 2)); padding-right: max(1.25rem, calc((100vw - var(--max)) / 2)); background: var(--ink); color: #fff; }
.portfolio .section-number { color: #6d808a; }
.portfolio-content { min-width: 0; }
.portfolio-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: end; }
.portfolio-heading > p { color: #90a1aa; max-width: 520px; }
.project { padding: clamp(1.4rem, 3vw, 2.5rem); border: 1px solid #2a3c47; background: var(--ink-soft); }
.project-featured { display: grid; grid-template-columns: .1fr .65fr 1.25fr; gap: 1rem 2rem; margin-bottom: 1.25rem; background: linear-gradient(125deg, rgba(110,231,242,.105), rgba(16,29,38,.7) 48%); }
.project-meta { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.project-featured .project-meta { grid-column: 1; grid-row: 1 / 5; display: block; }
.project-number { color: #627681; font-size: .78rem; }
.live-badge, .product-badge { display: inline-flex; align-items: center; gap: .4rem; padding: .28rem .48rem; border: 1px solid #36505d; color: var(--cyan); font: 500 .62rem var(--font-mono); }
.project-featured .live-badge { margin-top: 2rem; writing-mode: vertical-rl; }
.live-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--acid); }
.project-title p { margin: 0 0 .4rem; color: #758994; font: 400 .66rem var(--font-mono); letter-spacing: .05em; }
.project-title h3 { margin: 0; font-size: clamp(2rem, 4vw, 4.2rem); line-height: 1; letter-spacing: -.045em; }
.project-summary { margin: 0; color: #a9b7be; font-size: .95rem; }
.architecture-flow { grid-column: 2 / 4; display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; padding: 1rem 0; border-top: 1px solid #2a3c47; border-bottom: 1px solid #2a3c47; }
.architecture-flow span { padding: .45rem .65rem; background: #172a35; color: #c8d4da; font: 400 .7rem var(--font-mono); }
.architecture-flow b { color: var(--cyan); font-weight: 400; }
.project-stack { display: flex; flex-wrap: wrap; gap: .4rem; }
.project-featured .project-stack { grid-column: 2 / 4; }
.project-stack span { padding: .34rem .55rem; border: 1px solid #30434e; color: #9cadb5; font: 400 .66rem var(--font-mono); }
.project-proof { grid-column: 2 / 4; display: flex; justify-content: space-between; gap: 2rem; align-items: end; }
.project-proof p { max-width: 680px; margin: 0; color: #84969f; font-size: .78rem; }
.project-proof strong { display: block; margin-bottom: .25rem; color: #dce5e9; font: 500 .68rem var(--font-mono); text-transform: uppercase; }
.project-links { display: flex; align-items: center; flex-shrink: 0; gap: 1rem; }
.text-link { color: var(--cyan); font-size: .78rem; text-decoration: none; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.project-grid .project { display: grid; gap: 1.5rem; }
.project-grid .project-title h3 { font-size: clamp(2rem, 3vw, 3.1rem); }
.project-grid .project-proof { display: block; grid-column: auto; padding-top: 1.3rem; border-top: 1px solid #2a3c47; }
.project-grid .project-links { margin-top: 1.25rem; }
.service-note { display: flex; gap: .65rem; margin-top: 1rem !important; padding: .8rem; border: 1px solid #30434e; background: #132630; color: #9fb0b9 !important; }
.service-note i { flex: 0 0 auto; width: 7px; height: 7px; margin-top: .35rem; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 4px rgba(216,255,84,.08); }
.service-note strong { color: var(--acid); }
.project-acid { margin-top: 1.25rem; background: linear-gradient(115deg, rgba(216,255,84,.08), rgba(16,29,38,.92) 46%); border-color: #445332; }
.acid-badge { display: inline-flex; padding: .28rem .48rem; border: 1px solid #6d813d; color: var(--acid); font: 500 .62rem var(--font-mono); }
.acid-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 5rem); align-items: end; margin-top: 2rem; }
.project-acid .project-title h3 { color: var(--acid); font-size: clamp(2.8rem, 5vw, 5.2rem); }
.project-acid .project-summary { max-width: 690px; margin: 1.25rem 0; }
.acid-spec { padding: clamp(1.3rem, 3vw, 2rem); border-left: 1px solid #4a5a34; background: rgba(7,16,24,.28); }
.coming-soon { display: inline-block; margin-bottom: 1.25rem; color: var(--acid); font-size: .68rem; letter-spacing: .05em; }
.acid-spec > p { margin: 0; color: #95a6ae; font-size: .82rem; }
.acid-spec > p strong { display: block; margin-bottom: .35rem; color: #e4ebd0; font: 500 .68rem var(--font-mono); text-transform: uppercase; }
.acid-signal { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid #40502f; }
.acid-signal span { padding: .4rem .55rem; background: #1d2a1b; color: #c4d899; font: 400 .65rem var(--font-mono); }
.acid-signal b { color: var(--acid); font-weight: 400; }
.acid-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.75rem, 2vw, 1.5rem); margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid #40502f; }
.acid-shot { min-width: 0; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: zoom-in; }
.acid-shot-frame { position: relative; display: block; overflow: hidden; aspect-ratio: 9 / 12; border: 1px solid #394632; background: #080b0d; }
.acid-shot-frame::after { content: "VIEW"; position: absolute; right: .7rem; bottom: .7rem; padding: .3rem .45rem; background: rgba(7,16,24,.88); color: var(--acid); font: 500 .6rem var(--font-mono); letter-spacing: .05em; opacity: 0; transform: translateY(5px); transition: opacity .2s, transform .2s; }
.acid-shot img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top; filter: saturate(.9); transition: transform .35s ease, filter .35s ease; }
.acid-shot > span:last-child { display: flex; justify-content: space-between; gap: .75rem; margin-top: .75rem; color: #a7b49d; font: 400 .68rem var(--font-mono); text-transform: uppercase; }
.acid-shot > span:last-child b { color: var(--acid); font-weight: 500; }
.acid-shot:hover img, .acid-shot:focus-visible img { transform: scale(1.025); filter: saturate(1.08); }
.acid-shot:hover .acid-shot-frame::after, .acid-shot:focus-visible .acid-shot-frame::after { opacity: 1; transform: none; }
.acid-shot:focus-visible { outline: 2px solid var(--acid); outline-offset: 4px; }
.image-lightbox { width: min(92vw, 640px); max-height: 92vh; padding: 0; border: 1px solid #53633a; background: #070b0d; color: #fff; overflow: hidden; }
.image-lightbox::backdrop { background: rgba(2,6,8,.88); backdrop-filter: blur(8px); }
.image-lightbox figure { height: min(86vh, 960px); display: grid; grid-template-rows: 1fr auto; margin: 0; }
.image-lightbox img { min-height: 0; width: 100%; height: 100%; display: block; object-fit: contain; }
.image-lightbox figcaption { padding: .85rem 1rem; border-top: 1px solid #2e3a28; color: #aebaa5; font: 400 .7rem var(--font-mono); }
.lightbox-close { position: absolute; z-index: 2; top: .65rem; right: .65rem; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #6f8146; border-radius: 50%; background: rgba(7,16,24,.9); color: var(--acid); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.lightbox-close:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }
body.modal-open { overflow: hidden; }

.credentials { border-top: 1px solid var(--line); }
.credentials-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: #fff; }
.credential-card { min-height: 300px; padding: clamp(1.5rem, 3vw, 2.5rem); border-right: 1px solid var(--line); }
.credential-card:last-child { border-right: 0; }
.credential-card > span { color: var(--cyan-deep); font-size: .66rem; }
.credential-card h3 { margin: 2rem 0 1rem; font-size: 1.35rem; }
.credential-card p { color: var(--muted); font-size: .87rem; }
.credential-card hr { margin: 1.4rem 0; border: 0; border-top: 1px solid var(--line); }

.contact { position: relative; overflow: hidden; min-height: 520px; display: grid; place-items: center; padding: 6rem 1.25rem; background: var(--cyan); color: var(--ink); text-align: center; }
.contact-content { position: relative; z-index: 2; max-width: 850px; }
.contact .eyebrow { color: #0b7682; }
.contact h2 { margin: 0; font-size: clamp(2.8rem, 6vw, 6.2rem); line-height: .98; letter-spacing: -.06em; }
.contact p:not(.eyebrow) { max-width: 650px; margin: 1.5rem auto 2rem; font-size: 1.05rem; }
.contact-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; }
.button-light { background: var(--ink); color: #fff; }
.button-outline-light { border-color: rgba(7,16,24,.4); }
.contact-orbit { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.contact-orbit span { position: absolute; width: min(72vw, 920px); aspect-ratio: 1; border: 1px solid rgba(7,16,24,.12); border-radius: 50%; }
.contact-orbit span:nth-child(2) { width: min(54vw, 690px); }
.contact-orbit span:nth-child(3) { width: min(36vw, 460px); }

footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem max(1.25rem, calc((100vw - var(--max)) / 2)); background: var(--ink); color: #71848e; font: 400 .68rem var(--font-mono); }
footer p { margin: 0; }
footer span { margin: 0 .4rem; }
footer a { color: #a8b7be; text-decoration: none; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } .button { transition: none; } }

@media (max-width: 980px) {
  .main-nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-content { max-width: 760px; }
  .signal-panel { max-width: 720px; }
  .section-shell { grid-template-columns: 1fr; gap: 1.5rem; }
  .section-number { border-bottom: 1px solid var(--line); padding-bottom: .75rem; }
  .portfolio .section-number { border-color: var(--line-dark); }
  .project-featured { grid-template-columns: 1fr; }
  .project-featured .project-meta, .project-featured .project-title, .project-featured .project-summary, .architecture-flow, .project-featured .project-stack, .project-proof { grid-column: auto; grid-row: auto; }
  .project-featured .project-meta { display: flex; }
  .project-featured .live-badge { margin: 0; writing-mode: initial; }
  .project-proof { align-items: start; }
}

@media (max-width: 720px) {
  .site-header { min-height: 66px; }
  .brand-copy small { display: none; }
  .button-ghost { min-width: 0; }
  .hero { padding-top: 4rem; padding-bottom: 4rem; }
  .hero h1 { font-size: clamp(3.2rem, 17vw, 5rem); }
  .signal-heading .mono { display: none; }
  .tab-list { grid-template-columns: 1fr 1fr; }
  .tab-list button:nth-child(2) { border-right: 0; }
  .tab-list button:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .tab-panel { grid-template-columns: 1fr; gap: 2rem; min-height: 0; }
  .stack-board { grid-template-columns: 1fr; }
  .stack-board > div, .stack-board > div:nth-child(3n), .stack-board > div:nth-last-child(-n+3) { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .stack-board > div:last-child { border-bottom: 0; }
  .portfolio-heading, .project-grid { grid-template-columns: 1fr; }
  .acid-layout { grid-template-columns: 1fr; }
  .acid-spec { border-left: 0; border-top: 1px solid #4a5a34; }
  .project-proof { display: block; }
  .project-links { margin-top: 1.5rem; flex-wrap: wrap; }
  .acid-gallery { grid-template-columns: 1fr; }
  .acid-shot-frame { aspect-ratio: 9 / 11; }
  .credentials-grid { grid-template-columns: 1fr; }
  .credential-card, .credential-card:last-child { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .credential-card:last-child { border-bottom: 0; }
  .contact-actions { align-items: stretch; flex-direction: column; }
  .contact-actions .button { width: 100%; overflow-wrap: anywhere; }
  footer { flex-direction: column; }
}
