/* Arimo font, SIL Open Font License 1.1. The first URL is used after local installation; the second keeps the site functional beforehand. */
@font-face{font-family:'Arimo';src:url('assets/fonts/Arimo-wght.ttf') format('truetype'),url('https://raw.githubusercontent.com/google/fonts/main/ofl/arimo/Arimo%5Bwght%5D.ttf') format('truetype');font-style:normal;font-weight:400 700;font-display:swap}
@font-face{font-family:'Arimo';src:url('assets/fonts/Arimo-Italic-wght.ttf') format('truetype'),url('https://raw.githubusercontent.com/google/fonts/main/ofl/arimo/Arimo-Italic%5Bwght%5D.ttf') format('truetype');font-style:italic;font-weight:400 700;font-display:swap}
/* V-web / Frame 10. Shared six-column guide system: 4px gaps throughout. */
:root{color-scheme:dark;--black:#000;--white:#f5f5f5;--gutter:12px;--gap:4px;--body-font:'Arimo',Arial,sans-serif}
/* Native text selection: white highlight with black glyphs. No JS or animation. */
::selection { background: #fff; color: #000; }
::-moz-selection { background: #fff; color: #000; }
*{box-sizing:border-box}html{scroll-behavior:auto}body{margin:0;background:#000;color:var(--white);font-family:var(--body-font);font-weight:400;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button{color:inherit;cursor:pointer;font:inherit}a:focus-visible,button:focus-visible{outline:2px solid #fff;outline-offset:3px}.page{width:100%;overflow:clip}.skip-link{position:fixed;left:10px;top:-80px;padding:12px;background:#fff;color:#000;z-index:100}.skip-link:focus{top:10px}
/* The SAME six columns control navigation, hero and project card boundaries. */
/* Navigation and project covers share the same 6-column grid and 4px gaps. */
.topbar{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:var(--gap);position:fixed;z-index:30;top:12px;left:var(--gutter);right:var(--gutter);height:27px;pointer-events:none}.nav-slot{height:27px;background:#050505;display:flex;align-items:center;justify-content:space-between;padding:5px 11px 2px;font-size:13px;line-height:1;font-weight:400;white-space:nowrap;text-align:left;pointer-events:auto;transition:background-color .2s ease;border:0}.nav-slot:hover{background:#050505;text-decoration:underline;text-underline-offset:2px}.nav-brand,.nav-telegram{grid-column:span 2}.nav-projects,.nav-about{grid-column:span 1}.nav-telegram{width:100%;appearance:none}
.hero{position:relative;height:600px;background:#000;isolation:isolate}.hero-aurora{position:absolute;inset:0;overflow:hidden;z-index:-1;background:#000}.hero-aurora canvas{position:absolute;inset:0;display:block;width:100%;height:100%}.hero-aurora.aurora-fallback{background:radial-gradient(ellipse 35% 65% at 8% 10%,#aaa 0%,#333 58%,transparent 95%),radial-gradient(ellipse 36% 61% at 93% 8%,#aaa 0%,#333 56%,transparent 97%),#000}.hero::after{content:"";position:absolute;inset:auto 0 0;height:28%;background:linear-gradient(to top,#000,transparent);pointer-events:none}.hero-content{position:absolute;inset:auto var(--gutter) 0;top:52%;transform:translateY(-50%);z-index:1;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:var(--gap);align-items:end}.hero-title{grid-column:span 3;margin:0;line-height:0}.hero-title img{width:385px;max-width:100%;height:auto;display:block}.hero-description{grid-column:span 3;margin:0;font-size:24px;line-height:1.08;letter-spacing:-.025em;max-width:none;color:#ededed;padding-bottom:8px}
.projects{margin:0 var(--gutter)}.section-bar{height:36px;display:flex;justify-content:space-between;align-items:flex-end;padding-bottom:10px;font-size:12px;line-height:1;font-weight:400}.section-bar h2{font:inherit;margin:0}.section-bar button{font:inherit;border:0;padding:0;background:none}.section-bar button:hover{text-decoration:underline}.projects-row{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:var(--gap);position:relative;align-items:start;margin-bottom:36px}.project-card{display:block;position:relative;min-width:0;--dy:0px;transform:translate3d(0,var(--dy),0);backface-visibility:hidden}.project-card:focus-visible{outline-offset:-2px}.row-left .card-wide{grid-column:span 3}.row-left .card-small{grid-column:span 1}.row-left .card-medium{grid-column:span 2}.row-right .card-medium{grid-column:span 2}.row-right .card-small{grid-column:span 1}.row-right .card-wide{grid-column:span 3}.cover{position:relative;width:100%;line-height:0;background:#090909;overflow:hidden}.cover-base{width:100%;height:auto;display:block}.pixel-overlay{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;image-rendering:pixelated;opacity:1;transition:opacity 380ms cubic-bezier(.25,.8,.25,1)}.project-card:hover .pixel-overlay,.project-card:focus-visible .pixel-overlay{opacity:0}
/* Sense is not ready for its case page yet: keep its pixelated cover on hover
   and reveal a centred Coming Soon label above it. Other cards retain the
   existing pixel-to-image hover transition. */
.project-card-sense .coming-soon{position:absolute;inset:0;z-index:2;display:grid;place-items:center;color:#4b4b4b;font-size:clamp(30px,6.7vw,44px);font-weight:700;line-height:1;letter-spacing:-.035em;text-transform:none;opacity:0;transition:opacity 280ms ease;pointer-events:none}
.project-card-sense:hover .pixel-overlay,.project-card-sense:focus-visible .pixel-overlay{opacity:1}
.project-card-sense:hover .coming-soon,.project-card-sense:focus-visible .coming-soon{opacity:1}.project-caption{min-height:33px;display:flex;flex-direction:column;gap:2px;padding:6px 1px 0;font-size:11px;font-weight:400;line-height:1.05;letter-spacing:-.012em}.project-caption strong{font-weight:400}.project-caption span{color:#898989}
.about{margin:150px var(--gutter) 185px}.about h2{margin:0;font-size:clamp(27px,3vw,44px);font-weight:400;line-height:1.08;letter-spacing:-.025em;text-indent:50%;text-wrap:pretty}
/* No invented footer illustrations, wordmark or sections. Left: user's looping video. Right: actual navigation. */
.footer{margin:0 var(--gutter);display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:var(--gap);align-items:start}.footer-video-cell{grid-column:span 3;overflow:hidden;background:#000}.footer-video{display:block;width:100%;aspect-ratio:1920/946;height:auto;object-fit:cover}.footer-navigation{grid-column:5 / 7;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--gap);align-self:start;padding:0}.footer-links-group{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0}.footer-navigation span,.footer-navigation a{font-size:13px;line-height:1.1;font-weight:400;white-space:nowrap}.footer-social a{color:#999}.footer-social a:hover{color:#f5f5f5;text-decoration:underline}

.project-dialog,.index-dialog{background:#0a0a0a;color:white;border:1px solid #555;padding:0;max-width:calc(100vw - 50px);max-height:90vh;width:min(620px,100%)}dialog::backdrop{background:rgba(0,0,0,.85);backdrop-filter:blur(8px)}.project-dialog img{max-height:65vh;max-width:100%;display:block;margin:0 auto;object-fit:contain}.dialog-copy{padding:20px}.dialog-copy h2{font-size:28px;margin:0 0 8px}.dialog-copy p{font-size:14px;margin:4px 0}.dialog-note{color:#777}.dialog-close{position:absolute;right:12px;top:12px;background:black;border:1px solid #555;z-index:1;width:40px;height:40px;font-size:28px}.index-dialog{width:min(760px,95vw);padding:22px}.index-dialog h2{font-size:36px;margin:0 0 20px}.index-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.index-list button{display:flex;align-items:center;gap:12px;border:1px solid #333;background:#141414;text-align:left;padding:8px}.index-list img{width:65px;height:75px;object-fit:cover}.index-list strong{font-size:14px}.index-list small{display:block;color:#888;font-size:11px;margin-top:4px}
@media(max-width:900px){:root{--gutter:9px}.topbar{top:9px;height:26px}.nav-slot{height:26px;font-size:11px;padding:5px 7px 2px}.hero{height:67svh;min-height:460px;max-height:600px}.hero-content{top:54%}.hero-title img{width:300px}.hero-description{font-size:18px}.project-caption{font-size:10px}.about{margin:110px var(--gutter) 145px}.about h2{font-size:clamp(27px,3.5vw,38px)}.footer-navigation a,.footer-navigation span{font-size:12px}}
@media(max-width:600px){.topbar{grid-template-columns:repeat(6,minmax(0,1fr));gap:3px}.nav-brand,.nav-telegram{grid-column:span 2}.nav-projects,.nav-about{grid-column:span 1}.nav-slot{font-size:10px;padding:5px 5px 2px;overflow:hidden}.menu-symbol{display:none}.hero{min-height:480px;height:80svh;max-height:720px}.hero-content{top:49%;grid-template-columns:1fr;row-gap:22px}.hero-title,.hero-description{grid-column:1}.hero-title img{width:245px}.hero-description{font-size:16px;max-width:360px}.section-bar{height:32px;font-size:11px}.projects-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--gap);row-gap:24px;margin-bottom:35px}.row-left .card-wide,.row-right .card-wide{grid-column:1/-1;grid-row:1}.row-left .card-small,.row-right .card-small{grid-column:1;grid-row:2}.row-left .card-medium,.row-right .card-medium{grid-column:2;grid-row:2}.project-card{transform:none!important}.project-caption{font-size:10px;min-height:30px}.about{margin:100px var(--gutter) 120px}.about h2{font-size:clamp(25px,6.3vw,38px);text-indent:0}.footer{display:flex;flex-direction:column;gap:25px}.footer-video-cell{width:100%}.footer-navigation{width:100%;min-height:100px;grid-template-columns:repeat(2,minmax(0,1fr))}.index-list{grid-template-columns:1fr}}
@media(hover:none){.pixel-overlay{opacity:0}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}.project-card{transform:none!important}}

/* Shared monochrome pixel dissolve for navigation between actual pages.
   Not used for same-page anchors, external links, or gallery dialogs. */
html.vweb-page-entering::before,html.vweb-page-preloading::before{content:"";position:fixed;inset:0;background:#030303;z-index:99998;pointer-events:none}
.vweb-pixel-canvas{position:fixed;inset:0;width:100vw;height:100dvh;z-index:99999;pointer-events:none;display:block}
.vweb-pixel-canvas.is-active{pointer-events:auto;cursor:progress}
@media(prefers-reduced-motion:reduce){html.vweb-page-entering::before,html.vweb-page-preloading::before{display:none}}

/* v6 / MOBILE ONLY: matching Frame 10's mobile hero composition and shared guides.
   On desktop, navigation, section geometry and motion remain unchanged. */
@media (max-width:600px) {
  /* Same 4px guide gap as project rows: no 1px drift at nav cell edges. */
  .topbar {
    gap: var(--gap);
    left: var(--gutter);
    right: var(--gutter);
  }
  /* Hero's first project starts where it does in the mobile reference. */
  .hero {
    height: 80svh;
    min-height: 480px;
    max-height: 555px;
  }
  /* Unlike the desktop centred pair, mobile stacks the wordmark and copy
     together close to the bottom-left of the live Aurora. */
  .hero-content {
    top: auto;
    bottom: clamp(35px, 6svh, 54px);
    transform: none;
    grid-template-columns: minmax(0,1fr);
    row-gap: 16px;
  }
  .hero-title, .hero-description { grid-column: 1; }
  .hero-title img { width: min(245px, 70vw); max-width: 100%; }
  .hero-description {
    margin: 0;
    padding-bottom: 0;
    font-size: 16px;
    line-height: 1.08;
    max-width: 360px;
  }
}

/* v6.2: Remove the pixel nudges applied to individual nav cells.
   .topbar and .projects-row use exactly the same six-column tracks + 4px gaps.
   Manual left/right margins shifted the black buttons 1px off those tracks
   and exposed moving portfolio covers behind the fixed header. */

/* Desktop/tablet: align the bottom of the heading's text box with the bottom of
   the SVG wordmark (rather than centering the two different-height elements).
   This is their shared horizontal guide. Mobile remains stacked below 600px. */
@media (min-width: 601px) {
  .hero-content { align-items: end; }
  .hero-description { padding-bottom: 0; }
}


/* Safari / MacBook compatibility (2026-11-11).
   The experimental CSS math round() inside grid-template-columns was
   parsed inconsistently by WebKit. On some Safari builds the grid fell back
   to implicit tracks: menu buttons stacked, the hero lost its columns and
   project cards expanded across the page. Use native, widely supported
   fractional six-track grids instead. All matching sections share the same
   4px gaps and container gutters; nav-layout.js locks the four nav edges
   to the actual portfolio/card boundaries on desktop. */
@media (min-width: 601px) {
  .topbar,
  .hero-content,
  .projects-row,
  .footer,
  .case-hero,
  .case-overview,
  .case-copy,
  .case-gallery,
  .case-site-cta,
  .case-next-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  /* The nav-layout.js inline measurement wins over these base tracks. */
}

/* v6.6 — one header at every scroll position; no scroll-state background.
   The four real 4px gaps always remain transparent. Measurements of the
   actual project-card edges lock the navigation to the *same* guide lines. */
.topbar { gap: var(--gap); background: transparent !important; }
@media (min-width:601px) {
  .topbar.nav-guides-aligned > .nav-slot { grid-column: auto; }
}

/* v18: mobile header only. Full-width solid black bar, V-web left, Telegram right.
   Desktop's calibrated four-button grid and all page effects remain unchanged. */
@media (max-width:600px) {
  .topbar {
    position:fixed;
    top:0; left:0; right:0;
    width:100%;
    height:calc(52px + env(safe-area-inset-top, 0px));
    padding:env(safe-area-inset-top, 0px) 12px 0;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:0;
    background:#030303 !important;
    z-index:80;
    pointer-events:auto;
  }
  .topbar .nav-projects,
  .topbar .nav-about { display:none; }
  .topbar .nav-slot.nav-brand,
  .topbar .nav-slot.nav-telegram {
    display:inline-flex;
    align-items:center;
    height:100%;
    width:auto;
    flex:0 0 auto;
    padding:0;
    background:transparent;
    font-size:15px;
    font-weight:400;
    line-height:1;
    white-space:nowrap;
  }
  .topbar .nav-slot.nav-brand { justify-content:flex-start; }
  .topbar .nav-slot.nav-telegram { justify-content:flex-end; }
}


/* v21: mobile Sense card stays permanently pixelated and marked as Coming soon. */
@media (max-width:600px) {
  .project-card-sense .pixel-overlay { opacity: 1 !important; }
  .project-card-sense .coming-soon {
    opacity: 1 !important;
    color: #575757;
    font-size: clamp(26px, 9vw, 40px);
    letter-spacing: -0.04em;
  }
}
