:root {
  --bg: #0e2a42;
  --bg-deep: #0a1f33;
  --surface: #123553;
  --line: #2c5878;
  --line-soft: rgba(255,255,255,.12);
  --text: #eef4fa;
  --muted: #9db6cc;
  --cyan: #7fd4e8;
  --red: #e2582e;
  --max-width: 1180px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, sans-serif;
  background:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px),
    var(--bg);
  background-size: 28px 28px, 28px 28px, auto;
  color: var(--text);
  line-height: 1.65;
}
h1, h2, h3 { font-family: "Space Grotesk", "Inter", sans-serif; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 7vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin: .3rem 0 1.8rem; }
h3 { font-size: 1.1rem; color: #fff; margin-bottom: .3rem; }
p { color: var(--muted); }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
.muted { color: var(--muted); }
.small { font-size: .8rem; }
.center { text-align: center; }
img { max-width: 100%; display: block; }
.icon { width: 20px; height: 20px; flex-shrink: 0; vertical-align: -4px; }

.variant-tag { display: block; text-align: center; background: #000; color: var(--cyan); font-size: .78rem; padding: .5rem; letter-spacing: .04em; font-family: "JetBrains Mono", monospace; }

.mono-label { font-family: "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .1em; font-size: .74rem; color: var(--cyan); font-weight: 500; margin-bottom: .8rem; display: block; }
.mono-label.center { text-align: center; }

/* Header */
.site-header { position: sticky; top: 0; background: rgba(14,42,66,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 1rem; padding: .7rem 1.25rem; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-plate { background: #fff; border: 1.5px solid var(--cyan); border-radius: 6px; padding: 7px 11px; display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-plate img { height: 42px; width: auto; display: block; }
.brand-plate.small img { height: 34px; }
.nav-desktop { display: none; margin-left: auto; }
.nav-desktop ul { display: flex; gap: 1.8rem; list-style: none; }
.nav-desktop a { font-family: "JetBrains Mono", monospace; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.nav-desktop a.active, .nav-desktop a:hover { color: var(--cyan); }
a.header-cta { display: none; margin-left: 1rem; }
.burger { margin-left: auto; background: none; border: 1.5px solid var(--cyan); border-radius: 4px; width: 42px; height: 38px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.burger span { width: 20px; height: 1.5px; background: var(--cyan); }

@media (min-width: 900px) {
  .nav-desktop { display: block; }
  a.header-cta { display: inline-flex; }
  .burger { display: none; }
  .brand-plate img { height: 46px; }
}

.mobile-overlay { position: fixed; inset: 0; background: var(--bg-deep); z-index: 100; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; }
.mobile-overlay.open { display: flex; }
.mobile-overlay ul { list-style: none; display: flex; flex-direction: column; gap: 1.6rem; text-align: center; }
.mobile-overlay a { font-family: "Space Grotesk", sans-serif; font-size: 1.6rem; color: #fff; }
.overlay-close { position: absolute; top: 1.2rem; right: 1.4rem; background: none; border: none; color: var(--cyan); font-size: 2.2rem; line-height: 1; cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.6rem; border-radius: 4px; font-weight: 700; font-size: .88rem; letter-spacing: .03em; border: 1.5px solid transparent; cursor: pointer; }
.btn svg { width: 16px; height: 16px; }
.btn-stamp { background: var(--red); color: #fff; }
.btn-stamp:hover { background: #c8471f; }
.btn-line { border-color: var(--cyan); color: var(--cyan); background: transparent; }
.btn-line:hover { background: rgba(127,212,232,.1); }
.btn-line.light { border-color: rgba(255,255,255,.7); color: #fff; }

/* Hero */
.hero { padding: 2.8rem 0 1rem; }
.hero-inner { display: grid; gap: 2.4rem; }
.hero-text h1 { color: #fff; }
.hero-sub { font-size: 1.02rem; margin: 1.1rem 0 1.8rem; max-width: 48ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }
.hero-cta.center { justify-content: center; }
@media (min-width: 640px) { .hero-cta { justify-content: flex-start; } .hero-cta.center { justify-content: center; } }

.figure-frame { position: relative; border: 1px solid var(--line-soft); padding: 10px; background: rgba(255,255,255,.02); }
.figure-frame img { width: 100%; display: block; object-fit: cover; aspect-ratio: 4/3; }
.figure-frame.lg img { aspect-ratio: 5/4; }
.figure-frame .project-img-2 { display: none; }
.corner { position: absolute; width: 16px; height: 16px; border: 2px solid var(--cyan); }
.corner.tl { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.corner.tr { top: -2px; right: -2px; border-left: none; border-bottom: none; }
.corner.bl { bottom: -2px; left: -2px; border-right: none; border-top: none; }
.corner.br { bottom: -2px; right: -2px; border-left: none; border-top: none; }
.dim { position: absolute; background: var(--line-soft); }
.dim-h { left: 10px; right: 10px; bottom: -18px; height: 1px; }
.dim-v { top: 10px; bottom: 10px; right: -18px; width: 1px; }
.hero-figure { position: relative; }
.hero-figure > .fig-num { display: block; margin-top: 1.4rem; font-family: "JetBrains Mono", monospace; font-size: .74rem; color: var(--cyan); letter-spacing: .08em; text-align: center; }

.page-hero { padding: 2.8rem 0 2.2rem; border-bottom: 1px solid var(--line); }
.page-hero h1 { color: #fff; }

@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.1fr .9fr; align-items: center; } }

/* Spec row */
.spec-row { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(0,0,0,.15); padding: 1rem 0; }
.spec-row-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; }
.spec-cell { padding: .4rem 1.4rem; border-right: 1px solid var(--line); font-family: "JetBrains Mono", monospace; font-size: .78rem; color: var(--cyan); text-align: center; }
.spec-cell:last-child { border-right: none; }
.spec-k { display: block; font-weight: 600; color: #fff; font-size: .85rem; }
.spec-v { display: block; color: var(--muted); margin-top: .1rem; }
.cert-logo-strip { margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px dashed var(--line); text-align: center; }
.cert-logo-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; align-items: center; margin-top: .8rem; }
.cert-logo-row img { height: 24px; width: auto; object-fit: contain; background: #fff; border-radius: 4px; padding: 4px 7px; }

/* Sections */
.section { padding: 3.4rem 0; }
.section-alt { background: rgba(0,0,0,.15); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.spec-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; }
.spec-item { display: grid; grid-template-columns: 56px 1fr; gap: 1.2rem; padding: 1.3rem 0; border-bottom: 1px dashed var(--line); align-items: start; }
.spec-code { font-family: "JetBrains Mono", monospace; font-size: .82rem; color: var(--red); font-weight: 600; padding-top: .2rem; }
.spec-item p { margin-top: .3rem; font-size: .93rem; }

.link-more { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: 2rem; color: var(--cyan); font-weight: 700; font-size: .85rem; font-family: "JetBrains Mono", monospace; letter-spacing: .04em; text-transform: uppercase; }
.link-more svg { width: 16px; height: 16px; }

/* Figures grid (projects) */
.figure-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .figure-grid { grid-template-columns: repeat(3, 1fr); } .figure-grid.single { grid-template-columns: repeat(2, 1fr); } }
.figure figcaption, .figure-lg figcaption { margin-top: 1rem; text-align: center; }
.fig-num { display: block; font-family: "JetBrains Mono", monospace; font-size: .72rem; color: var(--red); letter-spacing: .08em; margin-bottom: .4rem; }
.fig-place { display: block; font-family: "JetBrains Mono", monospace; font-size: .72rem; color: var(--cyan); letter-spacing: .05em; text-transform: uppercase; margin-bottom: .5rem; }
.figure p, .figure-lg p { font-size: .9rem; }
.figure-lg .figure-frame { padding: 8px; }
@media (min-width: 520px) {
  .figure-lg .figure-frame { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  .figure-lg .figure-frame img { aspect-ratio: 3/4; }
  .figure-lg .figure-frame .project-img-2 { display: block; width: 100%; object-fit: cover; }
}

/* Notes (reviews) */
.note-grid { display: flex; flex-direction: column; gap: 1.4rem; max-width: 760px; margin: 0 auto; }
.note { border: 1px solid var(--line-soft); border-left: 3px solid var(--red); padding: 1.3rem 1.5rem; background: rgba(255,255,255,.02); }
.note-tag { display: block; font-family: "JetBrains Mono", monospace; font-size: .7rem; color: var(--red); letter-spacing: .08em; margin-bottom: .6rem; }
.note p { color: #dbe9f2; font-size: 1rem; font-style: italic; }
.note-name { display: block; margin-top: .7rem; font-weight: 700; color: #fff; font-size: .85rem; font-style: normal; }

.cta-band { background: rgba(0,0,0,.2); padding: 3.4rem 0; text-align: center; border-top: 1px solid var(--line); }
.cta-band-inner h2 { color: #fff; }
.cta-band-inner p { margin: .7rem 0 1.8rem; }

.two-col { display: grid; gap: 2rem; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.15fr .85fr; align-items: start; } }
.about-text p { margin-bottom: 1.1rem; }
.team-wrap { display: flex; flex-direction: column; gap: 1rem; }
.team-row { display: flex; align-items: center; gap: 1rem; border: 1px solid var(--line-soft); padding: 1.2rem; background: rgba(255,255,255,.02); }
.avatar-frame { width: 50px; height: 50px; border: 1.5px solid var(--cyan); color: var(--cyan); font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.team-row a { color: var(--cyan); font-weight: 700; font-size: .9rem; font-family: "JetBrains Mono", monospace; }

/* Stamp badges (certifications) */
.stamp-list { display: flex; flex-direction: column; max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); }
.stamp { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.1rem; padding: 1.8rem 1rem; border-bottom: 1px solid var(--line); }
.stamp-ring { width: 104px; height: 104px; border-radius: 50%; border: 2px solid var(--cyan); outline: 1px dashed rgba(127,212,232,.4); outline-offset: -7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transform: rotate(var(--rot)); background: #fff; padding: 9px; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.stamp-logo { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.stamp-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.stamp-text .mono-label { margin-bottom: .4rem; }
.stamp h3 { font-size: .92rem; color: #fff; margin: 0 0 .4rem; line-height: 1.2; font-family: "Space Grotesk", sans-serif; font-weight: 600; }
.stamp p { font-size: .86rem; }
@media (min-width: 640px) {
  .stamp { flex-direction: row; text-align: left; gap: 1.6rem; padding: 1.6rem .5rem; }
  .stamp-text { flex: 1; }
}

.info-row { display: flex; align-items: center; gap: .6rem; margin: 1rem 0; color: #dbe9f2; font-weight: 500; }
.info-row svg { width: 18px; height: 18px; color: var(--cyan); flex-shrink: 0; }
.map-embed { border: 1px solid var(--line-soft); margin-top: 1rem; filter: grayscale(.4) invert(.9) contrast(.9); }
.map-embed iframe { width: 100%; height: 220px; border: 0; display: block; }

.contact-form { border: 1px solid var(--line-soft); background: rgba(255,255,255,.02); padding: 1.8rem; display: flex; flex-direction: column; gap: 1rem; }
.contact-form h2 { color: #fff; }
.contact-form label { display: flex; flex-direction: column; gap: .4rem; font-weight: 600; font-size: .8rem; color: var(--muted); font-family: "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .04em; }
.contact-form input, .contact-form textarea { background: rgba(0,0,0,.25); border: 1px solid var(--line); color: #fff; padding: .7rem .9rem; font-family: "Inter", sans-serif; font-size: .95rem; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--cyan); }

/* Footer */
.site-footer { background: var(--bg-deep); color: var(--muted); padding: 3rem 0 6rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.site-footer p { margin: .3rem 0; font-size: .88rem; color: var(--muted); }
.footer-rule { height: 1px; background: var(--line); margin: 2.2rem auto; max-width: var(--max-width); }
.footer-bottom { display: flex; flex-direction: column; gap: .4rem; font-size: .76rem; font-family: "JetBrains Mono", monospace; }
.footer-bottom p { color: var(--muted); }
.tind-note a { color: var(--muted); text-decoration: underline; }

/* Mobile CTA */
.mobile-cta-bar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .9rem; font-weight: 700; z-index: 60; letter-spacing: .02em; }
.mobile-cta-bar svg { width: 18px; height: 18px; }
@media (min-width: 900px) { .mobile-cta-bar { display: none; } }
