/* fnky v7: дух Mr. Funkylover, подача по teenage engineering ep-133 k.o. II.
   шрифты dinamo (пробные, купить до выкладки наружу): акцидентный меняется переключателем, система постоянна. */
@font-face { font-family: "Gramercy"; src: url("assets/fonts/gramercy-black.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Gramercy"; src: url("assets/fonts/gramercy-lightitalic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Gramercy"; src: url("assets/fonts/gramercy-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Gaisyr"; src: url("assets/fonts/gaisyr-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Gaisyr"; src: url("assets/fonts/gaisyr-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Pelikan"; src: url("assets/fonts/pelikan-cond-black.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Diatype"; src: url("assets/fonts/diatype-light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Diatype"; src: url("assets/fonts/diatype-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Diatype"; src: url("assets/fonts/diatype-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Monument"; src: url("assets/fonts/monument-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Monument Mono"; src: url("assets/fonts/monument-mono.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root { --bg: #f0f0ef; --ink: #0f0e12; --mute: #6e6e73; --line: #d7d7d4; --acc: #ff5a1f; --gold: #d8a650;
  --sans: "Diatype", "Helvetica Neue", Arial, sans-serif; --caps: "Monument", "Diatype", sans-serif; --mono: "Monument Mono", ui-monospace, monospace;
  --disp: "Gramercy", Georgia, serif; --disp-w: 900; --disp-it: "Gramercy"; --disp-it-w: 300; }
body.p-ring { --disp: "Pelikan", "Arial Narrow", sans-serif; --disp-it: "Gramercy"; }
body.p-funk { --disp: "Gaisyr", Georgia, serif; --disp-w: 700; --disp-it: "Gaisyr"; --disp-it-w: 400; }
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
body { margin: 0; font: 400 16px/1.5 var(--sans); }
a { color: inherit; }
img { display: block; max-width: 100%; }

/* навигация te поверх героя */
.nav { position: absolute; z-index: 10; top: 0; left: 0; right: 0; display: flex; align-items: flex-start; gap: clamp(16px, 2.6vw, 40px); padding: 16px clamp(16px, 2.4vw, 32px); color: #e9e6df; }
.nav .brand { display: flex; flex-direction: column; text-decoration: none; font: 400 13px/15px var(--sans); color: #bdb8ae; }
.nav .brand b { font-weight: 500; color: #f4f1ea; }
.nav .it { display: flex; gap: 8px; text-decoration: none; font: 300 11px/12.5px var(--sans); color: #a8a39a; }
.nav .it svg { width: 28px; height: 28px; fill: none; stroke: #a8a39a; stroke-width: 1.2; }
.nav .it b { display: block; font: 400 15px/17px var(--sans); color: #e9e6df; margin-bottom: 2px; }
.nav .buy { margin-left: auto; align-self: center; padding: 8px 15px; border-radius: 20px; background: #f4f1ea; color: var(--ink); text-decoration: none; font: 500 13px/1 var(--sans); }

/* f0. герой во весь экран, огромное слово, оранжевый автограф вместо катаканы */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; background: #120d09; color: #f4f1ea; }
.hero .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 68% 38%; transform: scale(1.06); animation: settle 2.4s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes settle { to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,8,5,.72) 0%, rgba(12,8,5,.35) 42%, rgba(12,8,5,0) 70%); }
.lockup { position: absolute; z-index: 2; left: clamp(18px, 5vw, 80px); bottom: 15vh; }
.big { font: var(--disp-w) clamp(150px, 22vw, 360px)/.8 var(--disp); letter-spacing: -.03em; margin: 0; color: #f4f1ea; }
body.p-ring .big { font-size: clamp(190px, 30vw, 480px); letter-spacing: 0; color: transparent; -webkit-text-stroke: 2px #f4f1ea; line-height: .78; }
.lockup .sig { position: absolute; left: 4%; bottom: -10%; width: clamp(240px, 26vw, 420px); filter: sepia(1) saturate(6) hue-rotate(-18deg) brightness(1.05); transform: rotate(-6deg);
  -webkit-mask: linear-gradient(90deg, #000 var(--d, 0%), transparent calc(var(--d, 0%) + 6%)); mask: linear-gradient(90deg, #000 var(--d, 0%), transparent calc(var(--d, 0%) + 6%)); }
.lockup .side { position: absolute; left: .06em; bottom: calc(100% + 22px); width: 340px; font: 500 15px/1.15 var(--caps); letter-spacing: .02em; text-transform: uppercase; color: #f4f1ea; }
.hero .foot { position: absolute; z-index: 2; left: 0; right: 0; bottom: 22px; display: flex; justify-content: space-between; padding: 0 clamp(18px, 2.4vw, 32px); font: 400 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #bdb8ae; }

/* бирки: оранжевая, чёрная, серая, как у ep-133 */
.tag { display: inline-block; padding: 6px 14px 5px; font: 500 clamp(20px, 2vw, 30px)/1.05 var(--caps); text-transform: uppercase; letter-spacing: .01em; transform: rotate(var(--r, 0deg)); transition: transform .3s cubic-bezier(.3,1.6,.4,1); }
.tag:hover { transform: rotate(calc(var(--r, 0deg) - 2deg)) scale(1.04); }
.tag.o { background: var(--acc); color: #fff; } .tag.k { background: var(--ink); color: #fff; } .tag.g { background: #8f8f93; color: #fff; }
.caps { font: 500 15px/1.38 var(--caps); text-transform: uppercase; letter-spacing: .01em; }

/* f1. продукт срезан сверху, бирка, абзац капсом, живое поле */
.s1 { text-align: center; padding: 0 20px 120px; }
.s1 .top { height: clamp(240px, 38vw, 520px); overflow: hidden; margin: 0 auto 50px; width: min(1100px, 100%); }
.s1 .top img { width: 100%; transform: translateY(-4%); }
.s1 .caps { max-width: 760px; margin: 26px auto 30px; }
.demo { width: min(620px, 100%); margin: 0 auto; text-align: left; border-radius: 12px; background: #fff; padding: 14px 16px; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgba(0,0,0,.45); }
.demo .bar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font: 400 11px/1 var(--mono); text-transform: uppercase; color: var(--mute); }
.demo .bar .dot { width: 8px; height: 8px; border-radius: 50%; background: #cfcfcb; }
.demo.live .bar .dot { background: var(--acc); box-shadow: 0 0 0 4px rgba(255,90,31,.18); }
.demo.live .bar .st { color: var(--acc); }
.demo .keys { margin-left: auto; display: flex; gap: 4px; }
.demo .keys kbd { min-width: 28px; padding: 5px 6px 4px; border-radius: 5px; text-align: center; font: 500 11px/1 var(--sans); background: #f1f1ee; box-shadow: 0 0 0 1px #d2d2cf, 0 2px 0 #d2d2cf; transition: transform .08s, background .08s; }
.demo .keys kbd.on { transform: translateY(2px); box-shadow: 0 0 0 1px #d2d2cf; background: var(--acc); color: #fff; }
.demo .field { min-height: 64px; font: 400 17px/1.45 var(--sans); }
.demo .ph { color: #b0b0ac; }
.demo .cur { display: inline-block; width: 2px; height: 1.2em; vertical-align: -3px; background: var(--ink); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.pill { display: inline-flex; align-items: center; height: 42px; padding: 0 20px; border-radius: 22px; text-decoration: none; font: 500 14px/1 var(--sans); box-shadow: inset 0 0 0 1px #b8b8b4; transition: background .2s, transform .2s; }
.pill.k { background: var(--ink); color: #fff; box-shadow: none; } .pill.k:hover { background: var(--acc); }
.row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 26px; }
.micro { margin-top: 12px; font: 400 11px/1.4 var(--mono); text-transform: uppercase; color: var(--mute); }

/* f2-f4. макро во весь экран с биркой и строкой капсом */
.macro { position: relative; text-align: center; padding-bottom: 110px; }
.macro .img { overflow: hidden; height: clamp(300px, 46vw, 640px); background: #1a1410; }
.macro .img img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--z, 1.08)); transition: transform .2s linear; }
.macro .tag { margin-top: -26px; position: relative; z-index: 2; }
.macro .caps { max-width: 700px; margin: 22px auto 0; }
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 40px; max-width: 900px; margin: 26px auto 0; text-align: left; }
.feat li { list-style: none; } .feat li::before { content: "● "; color: var(--ink); font-size: 9px; vertical-align: 2px; }
.dark { background: var(--ink); color: #f4f1ea; } .dark .tag.g { background: #f4f1ea; color: var(--ink); } .dark .caps a { color: #fff; }

/* f5. лор: сетка кадров с наклейкой «фанк!» */
.lore { padding: 100px 20px 120px; }
.lore .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; width: min(1180px, 100%); margin: 0 auto; }
.lore figure { position: relative; margin: 0; background: #fff; padding: 14px 14px 16px; }
.lore figure img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; }
.lore figcaption { margin-top: 12px; font: 500 13px/1.3 var(--caps); text-transform: uppercase; }
.sticker { position: absolute; z-index: 3; display: grid; place-items: center; width: 150px; height: 150px; border-radius: 50%; background: var(--acc); color: #fff;
  font: var(--disp-w) 25px/1 var(--disp); transform: rotate(-12deg); box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); transition: transform .4s cubic-bezier(.3,1.6,.4,1); cursor: default; }
.sticker:hover { transform: rotate(8deg) scale(1.08); }
.lore .sticker { right: -20px; top: -34px; }
.quote { width: min(1180px, 100%); margin: 0 auto 50px; font: italic var(--disp-it-w) clamp(30px, 3.6vw, 56px)/1.1 var(--disp-it); letter-spacing: -.01em; }

/* f6. цена и характеристики на чёрном */
.end { background: var(--ink); color: #f4f1ea; padding: 120px clamp(18px, 4vw, 64px) 60px; }
.end .price { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; width: min(1180px, 100%); margin: 0 auto; }
.end .num { margin: 0; font: var(--disp-w) clamp(120px, 15vw, 240px)/.82 var(--disp); letter-spacing: -.03em; }
body.p-ring .end .num { color: transparent; -webkit-text-stroke: 2px #f4f1ea; }
.end .r .caps { color: #cfcac0; }
.end .pill { box-shadow: inset 0 0 0 1px #6b6b70; color: #f4f1ea; } .end .pill.k { background: var(--acc); }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; width: min(1180px, 100%); margin: 90px auto 0; padding-top: 24px; border-top: 1px solid #2c2b31; }
.specs dt { font: 400 11px/1.4 var(--mono); text-transform: uppercase; color: #8d8a84; margin-top: 16px; } .specs dt:first-child { margin-top: 0; }
.specs dd { margin: 3px 0 0; font: 300 14px/1.45 var(--sans); color: #e2ded6; }
.foot2 { display: flex; flex-wrap: wrap; gap: 8px 24px; width: min(1180px, 100%); margin: 70px auto 0; font: 400 11px/1.4 var(--mono); text-transform: uppercase; color: #8d8a84; }
.foot2 a { text-decoration: none; } .foot2 a:hover { color: #fff; }

/* переключатель пар шрифтов: только для выбора */
.pairs { position: fixed; z-index: 50; right: 14px; bottom: 14px; display: flex; gap: 3px; padding: 4px; border-radius: 12px; background: rgba(15,14,18,.92); font: 400 11px/1 var(--mono); text-transform: uppercase; }
.pairs button { all: unset; cursor: pointer; padding: 9px 11px; border-radius: 9px; color: #bdb8ae; }
.pairs button.on { background: #f4f1ea; color: var(--ink); }

.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s, transform 1s cubic-bezier(.2,.7,.2,1); } .rv.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .nav .it span { display: none; }
  .hero .ph { object-position: 72% 30%; }
  .hero::after { background: linear-gradient(0deg, rgba(12,8,5,.85) 0%, rgba(12,8,5,.2) 55%, rgba(12,8,5,0) 75%); }
  .lockup { left: 16px; right: 16px; bottom: 9vh; } .big { font-size: 25vw; } body.p-ring .big { font-size: 35vw; } body.p-funk .big { font-size: 23vw; }
  .lockup .side { position: static; width: auto; margin-top: 22vw; font-size: 13px; }   /* автограф не наезжает на подпись (24.11) */
  .lockup .sig { width: 58vw; bottom: auto; top: 13vw; left: 6vw; }
  body.p-ring .lockup .sig { top: 19vw; }
  .feat { grid-template-columns: 1fr; } .lore .grid { grid-template-columns: 1fr; } .lore .sticker { right: 6px; width: 112px; height: 112px; font-size: 19px; }
  .end .price { grid-template-columns: 1fr; } .specs { grid-template-columns: 1fr; }
}

/* печать одобрения: крутится медленно, как наклейка */
.stamp { position: absolute; z-index: 3; right: clamp(18px, 5vw, 80px); bottom: 16vh; width: clamp(120px, 11vw, 170px); fill: none; animation: spin 24s linear infinite; }
.stamp circle { fill: var(--acc); }
.stamp text { fill: #fff; font: 500 15.5px var(--caps); letter-spacing: .1em; text-transform: uppercase; }
.stamp .ok { font: var(--disp-w) 46px var(--disp); letter-spacing: 0; text-transform: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.quote small { display: block; margin-top: 14px; font: 500 13px/1.3 var(--caps); font-style: normal; text-transform: uppercase; color: var(--mute); }

/* f1: два окна mac рядом */
.s1 { padding-top: 110px; }
.duo { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; align-items: start; width: min(1180px, 100%); margin: 40px auto 0; text-align: left; }
.win { margin: 0; position: relative; }
.win .chrome { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 12px 12px 0 0; background: linear-gradient(#ecebe8, #e1e0dc); box-shadow: inset 0 -1px 0 #cfcecb; font: 500 12px/1 var(--sans); color: #6b6a66; }
.win .chrome i { width: 11px; height: 11px; border-radius: 50%; background: #d1d0cc; } .win .chrome i:nth-child(1) { background: #ff6058; } .win .chrome i:nth-child(2) { background: #ffbd2e; } .win .chrome i:nth-child(3) { background: #28c940; }
.win .chrome span { margin: 0 auto; transform: translateX(-24px); }
.win.app .frame { position: relative; height: clamp(420px, 44vw, 600px); overflow: hidden; border-radius: 0 0 12px 12px; background: #0e0a07; box-shadow: 0 40px 80px -40px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.18); }
.win.app iframe { position: absolute; left: 0; top: 0; width: 760px; border: 0; display: block; }
.win figcaption { margin-top: 12px; font: 400 11px/1.4 var(--mono); text-transform: uppercase; color: var(--mute); }
.win.mail .mailbody { padding: 18px 20px 16px; border-radius: 0 0 12px 12px; background: #fff; box-shadow: 0 40px 80px -40px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.12); }
.mail .hd { margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px solid #ecebe8; font: 400 14px/1.3 var(--sans); color: #55544f; } .mail .hd b { font-weight: 500; color: var(--ink); }
.mail .field { min-height: clamp(200px, 22vw, 320px); padding: 8px 0; font: 400 18px/1.5 var(--sans); }
.mail .field .ph { color: #b0b0ac; }
.mail .field .cur { display: inline-block; width: 2px; height: 1.2em; vertical-align: -3px; background: var(--ink); animation: blink 1s steps(1) infinite; }
.mail .st { display: flex; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid #ecebe8; font: 400 11px/1 var(--mono); text-transform: uppercase; color: var(--mute); }
.mail .st .dot { width: 8px; height: 8px; border-radius: 50%; background: #cfcfcb; }
.mail .field.live ~ .st .dot { background: var(--acc); box-shadow: 0 0 0 4px rgba(255,90,31,.18); } .mail .field.live ~ .st { color: var(--acc); }
.mail .keys { margin-left: auto; display: flex; gap: 4px; }
.mail .keys kbd { min-width: 28px; padding: 5px 6px 4px; border-radius: 5px; text-align: center; font: 500 11px/1 var(--sans); color: var(--ink); background: #f1f1ee; box-shadow: 0 0 0 1px #d2d2cf, 0 2px 0 #d2d2cf; transition: transform .08s, background .08s; }
.mail .keys kbd.on { transform: translateY(2px); background: var(--acc); color: #fff; box-shadow: 0 0 0 1px #d2d2cf; }
.mic { all: unset; cursor: pointer; display: inline-block; margin-top: 18px; padding: 10px 16px; border-radius: 22px; box-shadow: inset 0 0 0 1px #b8b8b4; font: 500 13px/1 var(--sans); }
.mic:hover { box-shadow: inset 0 0 0 1px var(--ink); }
@media (max-width: 860px) {
  .duo { grid-template-columns: 1fr; } .win.app .frame { height: 118vw; }
  .stamp { right: 14px; top: 92px; bottom: auto; width: 96px; }
}

/* лампа на макро клавиш вспыхивает дважды, как fn fn */
.macro .lamp { position: relative; }
.macro .lamp .glow { position: absolute; left: 9.6%; top: 18%; width: 7%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,210,120,.95) 0 14%, rgba(255,160,40,.55) 30%, rgba(255,140,30,0) 70%); mix-blend-mode: screen; opacity: 0; animation: fnfn 4.2s infinite 1s; }
@keyframes fnfn { 0%, 100% { opacity: 0; } 4% { opacity: 1; } 9% { opacity: 0; } 14% { opacity: 1; } 22% { opacity: 0; } }

.end .num.free { font-size: clamp(90px, 10.5vw, 170px); line-height: .86; }
.end .then { margin: 0 0 14px; font: 400 22px/1.2 var(--sans); color: #cfcac0; } .end .then b { font-weight: 500; color: #f4f1ea; }
@media (max-width: 860px) { .end .num.free { font-size: 19vw; } .end .then { font-size: 19px; } }

/* переключатель языка (i18n, 24.11): мелко, строчными, как подписи TE */
.nav .lang { margin-left: auto; align-self: center; display: flex; gap: 6px; font: 400 12px/1 var(--sans); color: #a8a39a; text-shadow: 0 1px 6px rgba(0,0,0,.45); letter-spacing: .02em; white-space: nowrap; }
.nav .lang a { color: #d6d1c7; text-decoration: none; } .nav .lang a:hover { color: #f4f1ea; }
.nav .lang b { font-weight: 500; color: #f4f1ea; }
.nav .lang + .buy { margin-left: 0; }

/* ── типографика по отзыву Пети Вирджина (24.11): одна шкала вместо ~15 кеглей, абзацы без капса, отступы на телефоне ──
   S 12 служебные моноподписи · M 16 текст и кнопки · L 18–22 описания · H 22–32 бирки. Крупные акцидентные слова отдельно. */
:root { --t-s: 12px; --t-m: 16px; --t-l: clamp(18px, 1.55vw, 22px); --t-h: clamp(22px, 2.3vw, 32px); }
body { font-size: var(--t-m); }
.caps { font: 400 var(--t-l)/1.45 var(--sans); text-transform: none; letter-spacing: 0; }
.feat.caps { font-size: var(--t-m); max-width: 1000px; }
.lockup .side { font: 500 var(--t-l)/1.2 var(--caps); width: 440px; }
.tag { font-size: var(--t-h); }
.nav .brand, .nav .it, .nav .lang, .hero .foot, .micro, .specs dt, .foot2, .demo .bar, .mail .st, .win figcaption, .win .chrome,
.demo .keys kbd, .mail .keys kbd, .quote small { font-size: var(--t-s); }
.nav .brand, .nav .it { line-height: 1.25; }
.nav .it b, .nav .buy, .pill, .mic, .mail .hd, .lore figcaption { font-size: var(--t-m); }
.specs dd { font-size: var(--t-m); font-weight: 400; }
.demo .field, .mail .field, .end .then { font-size: var(--t-l); }
@media (max-width: 860px) {
  .lockup .side { font-size: var(--t-l); width: auto; }
  .macro .caps, .macro .feat { padding-left: 20px; padding-right: 20px; }
  .macro .tag { max-width: calc(100% - 32px); }
  .end .num.free { font-size: 17vw; }
  .end .then { font-size: var(--t-l); }
}
