@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin.woff2") format("woff2"); font-weight: 400 800; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plexmono-400-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plexmono-600-latin.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ink: #0e0f11;
  --ink-2: #16181c;
  --ink-3: #1d2025;
  --line: #2a2d33;
  --text: #ecebe7;
  --muted: #9a9ca3;
  --paper: #e6e3db;
  --paper-ink: #1b1b1b;
  --accent: #e8b04a;
  --accent-ink: #1a1408;
  --radius: 16px;
  --wrap: 1180px;
  --display: "Archivo", system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 16px/1.5 var(--display); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.eyebrow { margin: 0 0 6px; font: 600 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
h1 { margin: 0; font: 800 clamp(52px, 9vw, 124px)/.92 var(--display); font-stretch: 72%; letter-spacing: -.01em; }
p { margin: 0; }

/* buttons + chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text); font: 650 15px/1 var(--display); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { background: #f2c063; }
.btn-lg { padding: 16px 26px; font-size: 17px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.chip, .chips li { font: 600 12px/1 var(--mono); padding: 8px 11px; border-radius: 999px; border: 1px solid var(--line); color: #c9c8c3; background: rgba(14,15,17,.6); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; justify-content: center; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(14,15,17,.82); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(42,45,51,.6); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font: 800 20px/1 var(--display); font-stretch: 80%; text-decoration: none; }
.brand-mark { width: 26px; height: 26px; border-radius: 6px; background: var(--paper); display: grid; place-items: center; color: var(--paper-ink); font: 600 13px/1 var(--mono); }
.nav { display: flex; gap: 26px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--text); }
@media (max-width: 820px) { .nav { display: none; } }

/* hero: the photo is the page */
.hero { position: relative; min-height: min(88vh, 860px); display: grid; align-items: end; overflow: hidden; background: #0a0a0b; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 45%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,11,.85) 0%, rgba(10,10,11,.35) 45%, rgba(10,10,11,0) 70%), linear-gradient(0deg, rgba(14,15,17,1) 0%, rgba(14,15,17,0) 30%); }
.hero-text { position: relative; z-index: 1; padding: 0 0 clamp(40px, 8vh, 90px); display: grid; gap: 28px; }
.hero-buy { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
@media (max-width: 700px) {
  .hero { min-height: 0; display: block; }
  .hero-img { position: relative; height: 70vh; object-position: 60% 40%; }
  .hero::after { background: linear-gradient(0deg, rgba(14,15,17,1) 0%, rgba(14,15,17,.2) 38%, rgba(14,15,17,0) 60%); bottom: auto; height: 70vh; }
  .hero-text { margin-top: -150px; padding-bottom: 32px; }
}

/* facts */
.facts { border-block: 1px solid var(--line); background: var(--ink-2); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 22px 16px; text-align: center; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; }
.fact b { display: block; font: 750 28px/1 var(--display); font-stretch: 78%; }
.fact span { font: 400 12px/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 600px) { .facts .wrap { grid-template-columns: 1fr 1fr; } .fact:nth-child(3) { border-left: 0; } .fact:nth-child(n+3) { border-top: 1px solid var(--line); } }

section { padding: clamp(48px, 7vw, 96px) 0; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 300px; grid-auto-flow: dense; gap: 12px; }
.tile { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--ink-2); border: 1px solid var(--line); }
.tile-wide { grid-column: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tile:hover img { transform: scale(1.03); }
.tile figcaption { position: absolute; left: 12px; bottom: 12px; font: 600 12px/1 var(--mono); padding: 8px 10px; border-radius: 8px; background: rgba(0,0,0,.6); color: #e8e8e8; }
@media (max-width: 900px) { .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; grid-auto-rows: 320px; } .tile-wide { grid-column: auto; } }

/* screen tour */
.tour { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.device-col { display: grid; gap: 14px; justify-items: center; }
/* Case modelled on the real 3D-printed TornHub: matte black, two top screws, grey TORN wordmark. */
.case { --cw: 250px; position: relative; width: var(--cw); aspect-ratio: 40 / 70; border-radius: calc(var(--cw) * .09); padding: calc(var(--cw) * .11) calc(var(--cw) * .17) 0; background: radial-gradient(120% 80% at 30% 10%, #2a2b2e 0%, #151618 55%, #0d0e0f 100%); box-shadow: 0 30px 70px rgba(0,0,0,.55), inset 0 0 0 1px #2b2d31, inset 0 2px 0 rgba(255,255,255,.05); background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px), radial-gradient(120% 80% at 30% 10%, #2a2b2e 0%, #151618 55%, #0d0e0f 100%); }
.screw { position: absolute; top: 11px; width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #d9d9d9, #8c8c8c 60%, #5a5a5a); box-shadow: 0 1px 1px rgba(0,0,0,.6); }
.screw::after { content: ""; position: absolute; left: 2px; right: 2px; top: 5.5px; height: 2px; background: #3a3a3a; transform: rotate(-35deg); border-radius: 1px; }
.screw.l { left: 11px; } .screw.r { right: 11px; }
.bezel { background: #050505; padding: 6px; border-radius: 4px; box-shadow: inset 0 0 0 1px #1f2023; }
.bezel canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; border-radius: 1px; }
.wordmark { position: absolute; left: 0; right: 0; bottom: 4%; text-align: center; font: 800 calc(var(--cw) * .22)/1 var(--display); font-stretch: 74%; letter-spacing: .02em; color: #bdbdbd; text-shadow: 0 -1px 0 rgba(255,255,255,.25), 0 2px 2px rgba(0,0,0,.8); }
.try { display: flex; gap: 8px; width: 290px; }
.try input { flex: 1; min-width: 0; background: var(--ink-3); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 11px 16px; font: 500 14px/1 var(--mono); }
.try .btn { padding: 11px 16px; font-size: 14px; }
.try-note { font: 400 12px/1.3 var(--mono); color: var(--muted); text-align: center; max-width: 290px; }
.try-note.err { color: #e98b7d; }
.tour-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.tour-list li { font: 750 clamp(26px, 3.6vw, 44px)/1.1 var(--display); font-stretch: 78%; color: #45484f; padding: 6px 0; cursor: default; transition: color .2s; }
.tour-list li.on { color: var(--text); }
@media (max-width: 820px) { .tour { grid-template-columns: 1fr; justify-items: center; text-align: center; } .case { --cw: 230px; } }

/* buy */
.buy { background: var(--ink-2); border-block: 1px solid var(--line); }
.buy-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(20px, 4vw, 48px); align-items: stretch; }
.buy-photo { margin: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); min-height: 420px; }
.buy-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.card { background: var(--ink); border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: grid; gap: 18px; align-content: start; }
.card-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.card-price { font: 750 52px/1 var(--display); font-stretch: 76%; }
.status { font: 600 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; background: #2a2219; color: var(--accent); }
.status.ok { background: #18261b; color: #8fd19a; }
label.field { display: grid; gap: 6px; font: 400 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
select, input[type=number] { appearance: none; width: 100%; background: var(--ink-3); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; font: 500 16px/1.2 var(--display); text-transform: none; letter-spacing: 0; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.fields { display: grid; grid-template-columns: 1fr 90px; gap: 10px; }
.totals { display: grid; gap: 6px; font-size: 15px; border-top: 1px solid var(--line); padding-top: 14px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-weight: 700; font-size: 20px; }
.methods { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.methods span { font: 600 12px/1 var(--mono); padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; color: #c9c8c3; }
.pay-note { font-size: 13px; color: var(--muted); text-align: center; }
@media (max-width: 860px) { .buy-grid { grid-template-columns: 1fr; } .buy-photo { min-height: 0; aspect-ratio: 4 / 3; } }

/* footer */
.foot-site { border-top: 1px solid var(--line); padding: 32px 0 44px; font-size: 13px; color: var(--muted); }
.foot-site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-site a { color: var(--text); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
