:root { color-scheme: dark; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }

/* Layout: dark-first gallery. Sticky bar linking back to tinktek.com, filterable grid of browser-frame previews, closing CTA. */
:root {
  --bg: #0D1015;
  --surface: #151922;
  --fg: #E8EBF0;
  --muted: #8D97A7;
  --line: #272D38;
  --accent: #8FA2FF;
  --accent-fg: #0D1015;
  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #EDF0F4; --surface: #F8F9FB; --fg: #11151C; --muted: #566070; --line: #CAD1DB;
    --accent: #2540E8; --accent-fg: #FFFFFF; color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #EDF0F4; --surface: #F8F9FB; --fg: #11151C; --muted: #566070; --line: #CAD1DB;
  --accent: #2540E8; --accent-fg: #FFFFFF; color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font: 400 1.0625rem/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 30; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.mono { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.03em; }
.brand svg { width: 26px; height: 26px; flex: none; }
.brand .tld { color: var(--accent); }
.hdr-links { display: flex; align-items: center; gap: 14px; }
.back { text-decoration: none; font-size: 0.95rem; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; padding: 8px 4px; }
.back:hover { color: var(--fg); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 0.95rem var(--font-body); text-decoration: none; cursor: pointer; padding: 12px 20px; border-radius: 6px; border: 1px solid var(--fg); background: transparent; color: var(--fg); transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--fg)); }
.btn.small { padding: 9px 14px; font-size: 0.875rem; }

.hero { padding-block: clamp(48px, 8vw, 96px) clamp(28px, 4vw, 44px); }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 0.98; font-stretch: 88%; letter-spacing: -0.035em; margin-top: 20px; max-width: 14em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { margin-top: 24px; max-width: 36em; font-size: 1.2rem; color: var(--muted); }

.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 500 0.875rem var(--font-body); color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 99px; padding: 8px 16px; cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.chip:hover { color: var(--fg); border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 36px); padding-block: clamp(28px, 4vw, 48px) clamp(56px, 8vw, 96px); }
.card { display: flex; flex-direction: column; gap: 18px; text-decoration: none; min-width: 0; }
.shot { position: relative; aspect-ratio: 16 / 10; max-width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); display: flex; align-items: center; justify-content: center; transition: transform .25s, box-shadow .25s; }
.card:hover .shot { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(0,0,0,.55); }
.frame { width: 88%; height: 84%; border-radius: 8px 8px 0 0; overflow: hidden; background: var(--p-bg); align-self: flex-end; display: flex; flex-direction: column; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.frame .top { flex: none; height: 22px; background: var(--p-soft); display: flex; align-items: center; gap: 5px; padding: 0 10px; }
.frame .top i { width: 7px; height: 7px; border-radius: 50%; background: var(--p-ink); opacity: .25; }
.frame .top b { margin-left: 10px; height: 8px; width: 34%; border-radius: 4px; background: var(--p-ink); opacity: .12; }
.page { flex: 1; min-height: 0; position: relative; display: flex; }
.l { display: block; height: 7px; border-radius: 4px; background: var(--p-ink); opacity: .85; }
.l.s { opacity: .25; height: 5px; }
.acc { background: var(--p-acc); }
.soft { background: var(--p-soft); }
.nav { display: flex; align-items: center; gap: 8px; padding: 9px 12px; }
.nav .logo { width: 26px; height: 8px; border-radius: 4px; background: var(--p-acc); }
.nav .l { width: 18px; opacity: .3; height: 5px; }
.nav .push { margin-left: auto; width: 34px; height: 12px; border-radius: 3px; }

/* dash */
.dash { width: 100%; }
.dash .side { width: 22%; background: var(--p-ink); padding: 12px 9px; display: flex; flex-direction: column; gap: 9px; }
.dash .side i { display: block; height: 6px; border-radius: 3px; background: #fff; opacity: .28; }
.dash .side i:first-child { opacity: .9; background: var(--p-acc); }
.dash .main { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dash .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dash .stats span { height: 30px; border-radius: 5px; background: var(--p-soft); }
.dash .chart { flex: 1; min-height: 0; border-radius: 5px; background: var(--p-soft); display: flex; align-items: flex-end; gap: 5%; padding: 10px 12px 0; }
.dash .chart i { flex: 1; border-radius: 3px 3px 0 0; background: var(--p-acc); }
/* shop */
.shop { flex-direction: column; width: 100%; }
.shop .hero-s { margin: 0 12px; border-radius: 6px; background: var(--p-acc); padding: 14px; display: flex; flex-direction: column; gap: 7px; height: 38%; justify-content: center; }
.shop .hero-s .l { background: #fff; width: 55%; opacity: .95; }
.shop .hero-s .l.s { width: 38%; opacity: .6; }
.shop .tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 10px 12px 0; flex: 1; }
.shop .tiles span { border-radius: 5px 5px 0 0; background: var(--p-soft); }
/* site */
.site { flex-direction: column; width: 100%; }
.site .body { flex: 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; padding: 12px 16px; align-items: center; }
.site .copy { display: flex; flex-direction: column; gap: 8px; }
.site .copy .l:nth-child(1) { width: 92%; height: 11px; }
.site .copy .l:nth-child(2) { width: 70%; height: 11px; }
.site .copy .btn-s { width: 44px; height: 12px; border-radius: 3px; margin-top: 6px; }
.site .art { aspect-ratio: 1; border-radius: 50% 50% 8px 50%; background: var(--p-acc); opacity: .9; max-height: 100%; justify-self: center; width: 78%; }
/* phone */
.phone-wrap { width: 100%; justify-content: center; align-items: flex-end; background: var(--p-soft); }
.phone { width: 38%; height: 92%; background: var(--p-bg); border: 3px solid var(--p-ink); border-bottom: 0; border-radius: 14px 14px 0 0; padding: 9px; display: flex; flex-direction: column; gap: 7px; overflow: hidden; }
.phone .hd { height: 22px; border-radius: 5px; background: var(--p-acc); }
.phone .row { display: flex; gap: 6px; align-items: center; }
.phone .row i { width: 16px; height: 16px; border-radius: 4px; background: var(--p-soft); flex: none; }
.phone .row span { flex: 1; display: flex; flex-direction: column; gap: 3px; }

.info { display: flex; flex-direction: column; gap: 8px; }
.info .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.info h3 { font-size: 1.45rem; line-height: 1.15; }
.info .go { color: var(--accent); font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.info p { color: var(--muted); max-width: 40em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 2px; }
.tags span { font: 400 0.8125rem var(--font-mono); color: var(--muted); }

.cta { border-top: 1px solid var(--line); padding-block: clamp(56px, 9vw, 104px); }
.cta .in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; }
.cta h2 { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.02; font-stretch: 90%; max-width: 14em; }
.cta p { margin-top: 16px; color: var(--muted); max-width: 30em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.site-footer { border-top: 1px solid var(--line); padding-block: 32px 40px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.foot a { text-decoration: none; color: var(--muted); font-size: 0.95rem; }
.foot a:hover { color: var(--fg); }

@media (max-width: 760px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .back .full { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .chip, .shot { transition: none; }
  .card:hover .shot { transform: none; }
}
