/* VortexByte base: tokens, fonts, shell, inner pages. Home/service visuals live in fx.css. */
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url('/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url('/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url('/fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/instrument-serif-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url('/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-display: swap; src: url('/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  --bg: #08090c;
  --panel: #0f1117;
  --panel-2: #15171e;
  --text: #eceef2;
  --muted: #9095a2;
  --faint: #6c717d;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);
  --accent: #ff6b6b;
  --accent-rgb: 255 107 107;
  --accent-soft: #ffb3a8;
  --ok: #82e4be;
  --warn: #ffd59e;
  --font-sans: Inter, system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --text-hero: clamp(2.8rem, 1.4rem + 5.2vw, 6.2rem);
  --text-display: clamp(2.1rem, 1.2rem + 3vw, 4rem);
  --text-lead: clamp(1.05rem, .95rem + .45vw, 1.3rem);
  --wrap: min(1320px, 100% - 2 * var(--gutter));
  --gutter: clamp(1rem, .4rem + 3vw, 3rem);
  --radius: 14px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font: 400 1rem/1.65 var(--font-sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-color: rgb(var(--accent-rgb) / .6); }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.035em; line-height: 1.04; }
em.serif, .serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--accent-soft); }
p + p { margin-top: 1em; }
address { font-style: normal; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--text); color: var(--bg); padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }

.wrap { width: var(--wrap); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 3rem + 6vw, 9rem); position: relative; }
.section-tight { padding-block: clamp(2.5rem, 2rem + 3vw, 5rem); }
.split { display: grid; gap: clamp(2rem, 5vw, 5.5rem); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1.15fr; } .split-even { grid-template-columns: 1fr 1fr; } }

.eyebrow { font: 500 .75rem/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: rgb(var(--accent-rgb)); margin-bottom: 1.1rem; display: inline-flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ''; width: 18px; height: 1px; background: currentColor; }
.display { font-size: var(--text-display); }
.lead { font-size: var(--text-lead); line-height: 1.55; color: var(--muted); max-width: 58ch; }
.meta { font: 400 .8rem/1.5 var(--font-mono); color: var(--faint); letter-spacing: .02em; }
.plain { list-style: none; padding: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.35rem; border-radius: 11px; border: 1px solid transparent;
  background: var(--text); color: #0b0c10; font: 500 .95rem/1 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease-out), background-color .25s, box-shadow .25s; }
.btn:hover { color: #0b0c10; background: #fff; transform: translateY(-1px); box-shadow: 0 8px 30px rgb(var(--accent-rgb) / .18); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-glass { background: rgba(255,255,255,.06); color: var(--text); border-color: var(--line-strong); backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-small { padding: .55rem .95rem; font-size: .85rem; border-radius: 9px; }
.btn .arrow { transition: transform .25s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 60; border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s, backdrop-filter .3s; }
.site-header.scrolled, .site-header:has(.open) { background: rgba(8, 9, 12, .78); backdrop-filter: blur(14px); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font: 600 .98rem/1 var(--font-sans); letter-spacing: .14em; text-decoration: none; }
.brand img { width: 30px; height: auto; }
#site-nav { display: flex; align-items: center; gap: 1.6rem; }
#site-nav > ul { display: flex; gap: 1.6rem; list-style: none; padding: 0; }
#site-nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: .9rem; transition: color .2s; }
#site-nav a:not(.btn):hover, #site-nav a[aria-current="page"] { color: var(--text); }
.has-menu { position: relative; }
.submenu { position: absolute; top: calc(100% + 14px); left: -14px; min-width: 230px; list-style: none; padding: .5rem; border-radius: 12px;
  background: rgba(15, 17, 23, .96); border: 1px solid var(--line-strong); box-shadow: 0 20px 50px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .2s, transform .25s var(--ease-out); }
.submenu::before { content: ''; position: absolute; inset: -16px 0 auto; height: 16px; }
.submenu a { display: block; padding: .5rem .7rem; border-radius: 8px; }
.submenu a:hover { background: rgba(255,255,255,.05); }
.has-menu:hover .submenu, .has-menu:focus-within .submenu { opacity: 1; transform: none; pointer-events: auto; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(255,255,255,.04); cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 16px; height: 1.5px; background: var(--text); margin-inline: auto; position: relative; transition: transform .3s var(--ease-out), background-color .2s; }
.bars::before, .bars::after { content: ''; position: absolute; left: 0; }
.bars::before { top: -5px; } .bars::after { top: 5px; }
@media (max-width: 959px) {
  .nav-toggle { display: block; }
  #site-nav { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100dvh - 68px); overflow-y: auto; flex-direction: column; align-items: stretch; gap: 1.2rem;
    padding: 1rem var(--gutter) 1.6rem; background: rgba(8, 9, 12, .97); border-bottom: 1px solid var(--line); clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .35s var(--ease-out), visibility 0s .35s; }
  #site-nav.open { clip-path: inset(0); visibility: visible; transition: clip-path .35s var(--ease-out); }
  #site-nav > ul { flex-direction: column; gap: .2rem; }
  #site-nav a:not(.btn) { display: block; padding: .55rem 0; font-size: 1.05rem; }
  .submenu { position: static; opacity: 1; transform: none; pointer-events: auto; background: none; border: 0; box-shadow: none; padding: 0 0 0 1rem; }
  .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-5px) rotate(-45deg); }
}

/* Inner page hero: grid texture + accent glow, no stock imagery */
.page-hero { position: relative; isolation: isolate; padding: calc(68px + clamp(4rem, 9vw, 8rem)) 0 clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 70% at 78% 20%, rgb(var(--accent-rgb) / .16), transparent 70%),
              linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 56px 56px,
              linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 56px 56px;
  mask-image: linear-gradient(180deg, #000 30%, transparent); }
.page-hero h1 { font-size: var(--text-display); max-width: 18ch; margin-bottom: 1.2rem; }
.page-hero h1 .serif, .display .serif, .cta-band .serif { color: color-mix(in srgb, rgb(var(--accent-rgb)) 75%, white); }

/* Cards and shared bits */
.panel { background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); border: 1px solid var(--line); border-radius: var(--radius); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.03); color: var(--muted); font: 500 .85rem/1 var(--font-sans); cursor: pointer; transition: color .2s, border-color .2s, background-color .2s; }
.chip:hover { color: var(--text); border-color: rgba(255,255,255,.3); }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #0b0c10; }
.link-row { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; }
.link-row a { display: inline-block; padding: .55rem .9rem; border: 1px solid var(--line-strong); border-radius: 10px; text-decoration: none; color: var(--muted); transition: color .2s, border-color .2s; }
.link-row a:hover { color: var(--text); border-color: rgb(var(--accent-rgb) / .6); }
.checklist { list-style: none; padding: 0; display: grid; gap: .9rem; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: .8rem; font-size: 1.05rem; line-height: 1.45; }
.checklist li::before { content: ''; width: 22px; height: 22px; border-radius: 7px; margin-top: .05em; border: 1px solid rgb(var(--accent-rgb) / .45);
  background: rgb(var(--accent-rgb) / .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23ffb3a8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.statement { font-size: clamp(1.5rem, 1rem + 2.2vw, 2.8rem); line-height: 1.25; letter-spacing: -.025em; font-weight: 500; max-width: 30ch; }
.statement em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent-soft); }

/* Services index and Vision */
.svc-cards { list-style: none; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 860px) { .svc-cards { grid-template-columns: 1fr 1fr; } }
.svc-card { position: relative; display: flex; flex-direction: column; gap: .9rem; height: 100%; padding: clamp(1.5rem, 3vw, 2.4rem); text-decoration: none; overflow: hidden; transition: border-color .4s, transform .5s var(--ease-out); }
.svc-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, rgb(var(--accent-rgb)), transparent); opacity: .7; }
.svc-card::after { content: ''; position: absolute; right: -15%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgb(var(--accent-rgb) / .14), transparent); }
.svc-card:hover { color: inherit; border-color: rgb(var(--accent-rgb) / .45); transform: translateY(-4px); }
.svc-card h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); letter-spacing: -.03em; }
.svc-card p { color: var(--muted); }
.svc-link { margin-top: auto; padding-top: .6rem; color: rgb(var(--accent-rgb)); font-weight: 500; font-size: .92rem; }
.why-grid { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.why-grid li { padding: 1.6rem; display: grid; gap: .8rem; align-content: start; }
.why-grid p { color: #c9ccd3; }

/* CTA band */
.cta-band { position: relative; isolation: isolate; text-align: center; padding-block: clamp(5rem, 10vw, 9rem); overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(45% 60% at 50% 100%, rgb(var(--accent-rgb) / .22), transparent 70%); }
.cta-band h2 { font-size: var(--text-display); max-width: 16ch; margin: 0 auto 1.2rem; }
.cta-band .lead { margin: 0 auto 2rem; }
.cta-band .actions { justify-content: center; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; }

/* Long-form text */
.prose { color: #c9ccd3; font-size: 1.04rem; line-height: 1.75; max-width: 70ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { color: var(--text); font-size: 1.6rem; margin-top: 2.4em; }
.prose h3 { color: var(--text); font-size: 1.2rem; margin-top: 2em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: rgb(var(--accent-rgb)); }
.prose blockquote { padding: 1.2rem 1.4rem; border-left: 2px solid rgb(var(--accent-rgb)); background: rgb(var(--accent-rgb) / .05); border-radius: 0 10px 10px 0;
  font: italic 400 1.45rem/1.4 var(--font-serif); color: var(--text); }
.prose img { border-radius: 12px; border: 1px solid var(--line); }
.prose a { color: var(--accent-soft); }

/* Blog */
.post-card a { display: grid; gap: 1.1rem; text-decoration: none; }
.post-card img { aspect-ratio: 1; object-fit: contain; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); transition: transform .5s var(--ease-out), border-color .3s; }
.post-card a:hover img { transform: translateY(-4px); border-color: rgb(var(--accent-rgb) / .4); }
.post-card h2 { font-size: 1.3rem; letter-spacing: -.02em; line-height: 1.2; margin: .35rem 0 .5rem; transition: color .2s; }
.post-card a:hover h2 { color: var(--accent-soft); }
.post-card p:last-child { color: var(--muted); font-size: .95rem; }
.post-card-featured { margin-bottom: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--line); }
.post-card-featured h2 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 3rem); }
@media (min-width: 960px) { .post-card-featured a { grid-template-columns: 5fr 6fr; align-items: center; gap: 4rem; } }
.post-grid { display: grid; gap: 3rem 1.6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.post-header { padding-top: calc(68px + clamp(3rem, 7vw, 6rem)); }
.post-header h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); margin-top: .8rem; }
.post-cover { width: min(640px, 100% - 2 * var(--gutter)); margin: 2.5rem auto 3rem; aspect-ratio: 1; object-fit: contain; border-radius: var(--radius); border: 1px solid var(--line); }
.link-list { list-style: none; padding: 0; display: grid; gap: .2rem; }
.link-list a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: color .2s, padding .3s var(--ease-out); }
.link-list a:hover { color: var(--accent-soft); padding-left: .4rem; }

/* Shop */
.product-grid { display: grid; gap: 2rem 1.2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); list-style: none; padding: 0; margin-top: 2rem; }
.product-card[hidden] { display: none; }
.product-card a { display: block; text-decoration: none; }
.product-card .shot { aspect-ratio: 1; border-radius: var(--radius); border: 1px solid var(--line); background: radial-gradient(70% 70% at 50% 40%, #1b1e27, var(--panel)); padding: 1.6rem; margin-bottom: .9rem; display: grid; place-items: center; transition: border-color .3s, transform .5s var(--ease-out); }
.product-card .shot img { max-height: 100%; object-fit: contain; filter: drop-shadow(0 20px 30px rgba(0,0,0,.5)); }
.product-card a:hover .shot { border-color: rgb(var(--accent-rgb) / .4); transform: translateY(-4px); }
.product-card h2 { font-size: 1rem; letter-spacing: -.01em; line-height: 1.35; font-weight: 500; margin: .25rem 0 .4rem; }
.price { font: 500 1.05rem/1.2 var(--font-mono); color: var(--text); }
.product h1 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); margin: .6rem 0 1rem; }
.product .actions { margin: 1.6rem 0 2rem; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.gallery img { aspect-ratio: 1; object-fit: contain; border-radius: 12px; border: 1px solid var(--line); background: radial-gradient(70% 70% at 50% 40%, #1b1e27, var(--panel)); padding: .8rem; }
.gallery img:first-child { grid-column: 1 / -1; padding: 2rem; }
.specs { margin-top: 1.5rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.specs summary { cursor: pointer; font-weight: 500; }

/* Contact */
.contact-form { display: grid; gap: 1.1rem; padding: clamp(1.4rem, 3vw, 2.2rem); }
.field-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.contact-form label { display: grid; gap: .45rem; font-size: .85rem; color: var(--muted); }
.contact-form input, .contact-form textarea { width: 100%; padding: .8rem .9rem; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(0,0,0,.25); color: var(--text); font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: rgb(var(--accent-rgb) / .7); box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / .12); }
.contact-form [aria-invalid="true"] { border-color: rgb(var(--accent-rgb)); }
.contact-form .btn { justify-self: start; }
.form-status { min-height: 1.5em; font-size: .9rem; color: var(--accent-soft); }
.contact-card { padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; gap: 1.2rem; align-content: start; }
.contact-card .big { font-size: 1.35rem; letter-spacing: -.02em; line-height: 1.5; }
.contact-card a { text-decoration: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(3.5rem, 7vw, 6rem) 2rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 2.2fr 1fr 1fr 1fr; } }
.footer-title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); margin-bottom: 1rem; }
.footer-lead { font-size: 1.1rem; line-height: 1.7; }
.footer-lead a { text-decoration: none; }
.footer-grid h3 { font: 500 .72rem/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 1rem; }
.footer-grid li + li { margin-top: .45rem; }
.footer-grid li a { color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-grid li a:hover { color: var(--text); }
.copyright { margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .8rem; color: var(--faint); }

/* Scroll reveal (enabled by site.js; content stays visible without JS) */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
