:root {
  --bg: #efefea;
  --fg: #0a0a0a;
  --mute: #7a7a74;
  --line: #0a0a0a;
  --ph: #dcdcd5;
  --accent: #ff3b00;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --pad: clamp(16px, 2vw, 28px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 16px; line-height: 1.4;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--fg); color: var(--bg); }
.mono { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .02em; }

/* ---------- Top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr 2fr 1fr auto; align-items: center; gap: var(--pad);
  padding: 12px var(--pad); background: var(--bg); border-bottom: 1px solid var(--line);
}
.bar-logo { font-weight: 700; font-size: 18px; letter-spacing: -0.04em; }
.bar-nav { display: flex; gap: 24px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; }
.bar-nav a:hover, .links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bar-clock { color: var(--mute); font-variant-numeric: tabular-nums; }
.lang { display: flex; gap: 6px; color: var(--mute); }
.lang a { color: var(--mute); text-transform: uppercase; text-decoration: none; }
.lang a[aria-current="true"] { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .bar { grid-template-columns: 1fr auto; }
  .bar-nav, .bar-clock { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 0 var(--pad); border-bottom: 1px solid var(--line); overflow: hidden; }
.wordmark {
  font-size: 21.6vw; line-height: .78; font-weight: 700; letter-spacing: -0.075em;
  margin-left: -0.05em; padding-top: .06em; white-space: nowrap;
}
.hero-grid {
  display: grid; grid-template-columns: 2fr 1fr; gap: var(--pad);
  padding: 28px 0 var(--pad); margin-top: 28px; border-top: 1px solid var(--line);
}
.hero-lead { font-size: clamp(22px, 2.6vw, 40px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 500; max-width: 24ch; }
.meta { display: grid; gap: 10px; align-content: start; }
.meta div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; }
.meta dt { color: var(--mute); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Section heads ---------- */
section { border-bottom: 1px solid var(--line); }
.head {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 12px var(--pad); border-bottom: 1px solid var(--line);
}
.head h2 { font-weight: 500; }
.head h2 span:first-child { color: var(--mute); }
.filters { display: flex; gap: 14px; flex-wrap: wrap; }
.filters button { text-transform: uppercase; color: var(--mute); }
.filters button:hover, .filters button[aria-pressed="true"] { color: var(--fg); }
.filters button[aria-pressed="true"]::before { content: "■ "; }

/* Image frame / placeholder */
.frame { position: relative; aspect-ratio: 16 / 10; background: var(--ph); overflow: hidden; }
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.frame.empty {
  background:
    linear-gradient(to top right, transparent calc(50% - .5px), #b9b9b1 50%, transparent calc(50% + .5px)),
    linear-gradient(to bottom right, transparent calc(50% - .5px), #b9b9b1 50%, transparent calc(50% + .5px)),
    var(--ph);
}
.frame.empty::after {
  content: attr(data-label); position: absolute; left: 10px; bottom: 8px;
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--mute);
}

/* ---------- Product rows (home) ---------- */
.prod {
  display: grid; grid-template-columns: 1.35fr 1fr; border-bottom: 1px solid var(--line);
}
#list .prod:last-child { border-bottom: 0; }
.prod-media { padding: var(--pad); border-right: 1px solid var(--line); }
.prod-media .frame img { transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.prod:hover .prod-media .frame img { transform: scale(1.03); }
.prod-body { padding: var(--pad); display: flex; flex-direction: column; gap: 14px; }
.prod-top { display: flex; justify-content: space-between; color: var(--mute); }
.prod-title { font-size: clamp(48px, 6.4vw, 104px); font-weight: 700; letter-spacing: -0.065em; line-height: .88; margin-top: 8px; }
.prod-tag { font-size: clamp(20px, 1.7vw, 26px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; }
.prod-sum { color: #3a3a37; max-width: 46ch; }
.prod-facts { display: grid; gap: 8px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.prod-facts div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.prod-facts dt { color: var(--mute); }
.prod-more { align-self: flex-start; padding: 10px 16px; background: var(--fg); color: var(--bg); }
.prod:hover .prod-more { background: var(--accent); }
.prod:hover .prod-title { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 8px; }
@media (max-width: 900px) {
  .prod { grid-template-columns: 1fr; }
  .prod-media { border-right: 0; padding-bottom: 0; }
}

/* ---------- Services ---------- */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); }
.cols article { padding: var(--pad); padding-bottom: clamp(48px, 7vw, 100px); display: grid; gap: 14px; align-content: start; }
.cols article + article { border-left: 1px solid var(--line); }
.cols h3 { font-size: clamp(26px, 2.8vw, 44px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.cols p { color: #3a3a37; max-width: 36ch; }
.cols .mono { color: var(--mute); }
@media (max-width: 760px) {
  .cols { grid-template-columns: 1fr; }
  .cols article + article { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Contact ---------- */
.mail {
  display: block; padding: var(--pad);
  font-size: 9.6vw; font-weight: 700; letter-spacing: -0.07em; line-height: .9;
  overflow-wrap: anywhere;
}
.mail:hover { color: var(--accent); }
.links { display: flex; gap: 24px; padding: 0 var(--pad) var(--pad); }
.inv-lead { padding: var(--pad) var(--pad) 0; font-size: clamp(22px, 2.4vw, 36px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; max-width: 30ch; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 14px 20px; background: var(--fg); color: var(--bg); font-family: var(--mono); font-size: 12px; text-transform: uppercase; border: 1px solid var(--fg); }
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn.ghost { background: transparent; color: var(--fg); }
.btn.ghost:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.ctas { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Product page ---------- */
.p-hero { padding: 0 var(--pad); border-bottom: 1px solid var(--line); }
.p-top { display: flex; justify-content: space-between; color: var(--mute); padding: 14px 0; }
.p-title { font-size: clamp(64px, 15vw, 260px); font-weight: 700; letter-spacing: -0.075em; line-height: .82; margin-left: -0.04em; padding-bottom: .04em; overflow-wrap: anywhere; }
.p-grid { display: grid; grid-template-columns: 2fr 1fr; gap: var(--pad); padding: 28px 0 var(--pad); margin-top: 24px; border-top: 1px solid var(--line); }
.p-tag { font-size: clamp(26px, 3vw, 48px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.02; max-width: 22ch; }
.p-sum { font-size: clamp(17px, 1.4vw, 20px); color: #3a3a37; max-width: 52ch; margin: 18px 0 26px; }
.p-cover { padding: var(--pad); border-bottom: 1px solid var(--line); }
.p-sec { display: grid; grid-template-columns: 1fr 3fr; border-bottom: 1px solid var(--line); }
.p-sec > h2 { padding: var(--pad); font-weight: 500; border-right: 1px solid var(--line); }
.p-sec > h2 span { color: var(--mute); }
.p-body { padding: var(--pad); padding-bottom: clamp(40px, 5vw, 72px); display: grid; gap: 24px; align-content: start; min-width: 0; }
.lead { font-size: clamp(22px, 2.2vw, 34px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.12; max-width: 36ch; }
.steps { list-style: none; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: clamp(17px, 1.4vw, 20px); }
.steps .mono { color: var(--mute); padding-top: 4px; }
.cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cell { padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.cell h4 { font-size: 20px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.cell p { color: #3a3a37; font-size: 15px; }
.tbl { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); }
.tbl th { font-weight: 600; width: 30%; }
.tbl td.mono { white-space: nowrap; width: 20%; }
.tbl td { color: #3a3a37; }
.road th { width: 22%; font-weight: 500; }
.road td:last-child { width: 90px; text-align: right; }
.road tr.done td:last-child { color: var(--fg); }
.tag { display: inline-block; border: 1px solid var(--mute); color: var(--mute); padding: 1px 6px; font-size: 10px; margin-left: 6px; }
.nums { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 45%), 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.nums div { padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.nums b { font-size: clamp(32px, 3.4vw, 56px); white-space: nowrap; font-weight: 700; letter-spacing: -0.06em; line-height: .9; }
.nums span { color: var(--mute); }
.bul { list-style: none; border-top: 1px solid var(--line); }
.bul li { padding: 12px 0 12px 28px; border-bottom: 1px solid var(--line); position: relative; font-size: 17px; }
.bul li::before { content: "■"; position: absolute; left: 0; top: 13px; font-size: 10px; }
.sub { color: var(--mute); font-weight: 500; margin-bottom: 10px; }
.txt { font-size: 17px; max-width: 60ch; color: #3a3a37; }
.funds td:nth-child(2) { width: 50%; padding-right: 16px; }
.funds td.mono { width: 60px; text-align: right; color: var(--fg); }
.funds th small { display: block; font-weight: 400; font-size: 14px; color: var(--mute); margin-top: 4px; }
.prod-facts .prod-ask dd { font-weight: 600; color: var(--fg); }
.src { list-style: decimal inside; color: var(--mute); display: grid; gap: 4px; font-size: 11px; text-transform: none; }
.src a { text-decoration: underline; text-underline-offset: 2px; }
.src a:hover { color: var(--fg); }
.bar-fill { display: block; height: 14px; background: var(--fg); margin-top: 4px; }
.gallery { display: grid; gap: var(--pad); }
.gallery .frame { aspect-ratio: auto; }
.gallery .frame img { height: auto; }
.p-next { display: block; padding: var(--pad); border-bottom: 1px solid var(--line); }
.p-next b { display: block; font-size: clamp(48px, 10vw, 170px); font-weight: 700; letter-spacing: -0.07em; line-height: .88; margin-top: 10px; }
.p-next:hover b { color: var(--accent); }
@media (max-width: 760px) {
  .p-grid { grid-template-columns: 1fr; gap: 28px; }
  .p-sec { grid-template-columns: 1fr; }
  .p-sec > h2 { border-right: 0; border-bottom: 1px solid var(--line); padding-block: 12px; }
  .tbl th, .tbl td { display: block; width: auto !important; padding: 4px 0; border: 0; }
  .tbl tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .road td:last-child { text-align: left; }
  .funds td:nth-child(2) { padding: 6px 0; }
}

.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px var(--pad); color: var(--mute); }

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