/* =========================================================
   PHASE — styles
   ========================================================= */

@property --accent      { syntax: '<color>'; inherits: true; initial-value: #9EC3DA; }
@property --accent-deep { syntax: '<color>'; inherits: true; initial-value: #3F86B5; }
@property --r           { syntax: '<length>'; inherits: false; initial-value: 0px; }

:root {
  --bg: #000;
  --surface: #0d0d0e;
  --ink: #ECEAE6;
  --mute: #8b8a88;
  --dim: #4a4948;
  --line: rgba(236, 234, 230, .14);
  --cool: #1b1c1e;            /* "cold" fabric grey for buttons */

  --f-display: 'Michroma', 'Noto Sans Georgian', sans-serif;
  --f-body: 'Inter', 'Noto Sans Georgian', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', 'Noto Sans Georgian', ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --header-h: 72px;
  --ease: cubic-bezier(.22, .8, .2, 1);

}
:root.cw-ready { transition: --accent 1.2s var(--ease), --accent-deep 1.2s var(--ease); }
:root[data-cw="cherry"] { --accent: #E3A49C; --accent-deep: #C2574D; }
:root[data-cw="bone"]   { --accent: #D9D4CE; --accent-deep: #A39C93; }
:root[data-cw="ice"]    { --accent: #9EC3DA; --accent-deep: #3F86B5; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--accent); color: #000; }

.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow { color: var(--accent); margin: 0 0 20px; }
.display {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.08;
  margin: 0;
}
:lang(ka) .display { text-transform: none; font-weight: 800; letter-spacing: 0; line-height: 1.2; }
:lang(ka) .mono { letter-spacing: .02em; }

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: -50%;
  z-index: 90; pointer-events: none;
  opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .9s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-6%, 4%); }
  40% { transform: translate(5%, -7%); } 60% { transform: translate(-3%, 8%); }
  80% { transform: translate(7%, 2%); } 100% { transform: translate(0, 0); }
}

/* =========================================================
   THERMO BUTTON — heat bloom like the fabric
   ========================================================= */
.thermo {
  --mx: 50%; --my: 50%;
  --b1: var(--accent); --b2: var(--accent-deep);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cool);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  white-space: nowrap;
  transition: color .5s var(--ease) .05s, border-color .6s var(--ease), transform .4s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.thermo > span { position: relative; z-index: 2; }
/* two offset blobs = uneven, organic heat spread */
.thermo::before,
.thermo::after {
  content: '';
  position: absolute; inset: -40%;
  z-index: 0;
  pointer-events: none;
  transition: --r 1.6s var(--ease);        /* slow cool-down */
}
.thermo::before {
  background: radial-gradient(circle var(--r) at var(--mx) var(--my),
              var(--b2) 0%, var(--b1) 45%, transparent 100%);
  filter: blur(6px);
}
.thermo::after {
  background: radial-gradient(circle calc(var(--r) * .7) at calc(var(--mx) + 14%) calc(var(--my) + 22%),
              var(--b1) 0%, color-mix(in srgb, var(--b1) 50%, transparent) 50%, transparent 100%);
  filter: blur(10px);
  opacity: .9;
}
.thermo:hover, .thermo:focus-visible, .thermo.is-hot {
  color: #0b0b0b;
  border-color: transparent;
}
.thermo:hover::before, .thermo:focus-visible::before, .thermo.is-hot::before { --r: 260px; transition-duration: .9s; }
.thermo:hover::after,  .thermo:focus-visible::after,  .thermo.is-hot::after  { --r: 220px; transition-duration: 1.1s; }
.thermo:active { transform: scale(.97); }
.thermo.is-flash::before { --r: 700px; transition-duration: .35s; }
.thermo.is-flash::after  { --r: 600px; transition-duration: .35s; }
.thermo:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

.thermo--sm { padding: 10px 20px; }
.thermo--lg { padding: 20px 34px; font-size: 13px; width: 100%; }

.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { padding: 12px 20px 12px 34px; }
.swatch::marker { content: none; }
.swatch > span::before {
  content: ''; position: absolute; left: -18px; top: 50%;
  width: 8px; height: 8px; margin-top: -4px; border-radius: 50%;
  background: var(--b1);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--b1) 25%, transparent);
  transition: background .4s;
}
.swatch:hover > span::before, .swatch.is-hot > span::before { background: #0b0b0b; box-shadow: none; }
.swatch[data-set-cw="cherry"] { --b1: #E3A49C; --b2: #C2574D; }
.swatch[data-set-cw="bone"]   { --b1: #D9D4CE; --b2: #A39C93; }
.swatch[data-set-cw="ice"]    { --b1: #9EC3DA; --b2: #3F86B5; }

/* =========================================================
   LOADER
   ========================================================= */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: #000;
  display: grid; place-items: center;
}
.loader__logo { width: min(520px, 72vw); overflow: visible; }
.loader__logo #horizon { stroke: var(--ink); stroke-width: 3; }
.loader__logo .stop-a { stop-color: var(--accent-deep); }
.loader__logo .stop-b { stop-color: #ECEAE6; }
.loader__meta {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px;
  display: flex; justify-content: space-between; color: var(--mute);
}

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  background: linear-gradient(#000c, #0000);
  transition: transform .6s var(--ease);
}
.header.is-hidden { transform: translateY(-100%); }
.header__logo svg { width: 104px; height: 35px; fill: var(--ink); }
.header__nav { display: flex; gap: 36px; color: var(--mute); }
.header__nav a { position: relative; transition: color .3s; }
.header__nav a:hover { color: var(--ink); }
.header__nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.header__nav a:hover::after { transform: scaleX(1); }
.header__right { display: flex; align-items: center; gap: 18px; }
.lang { display: flex; gap: 6px; color: var(--dim); }
.lang i { font-style: normal; }
.lang span { transition: color .3s; }
html[lang="en"] .lang [data-l="en"], html[lang="ka"] .lang [data-l="ka"] { color: var(--ink); }

/* =========================================================
   HERO — scroll = heat
   ========================================================= */
.heat { position: relative; height: 520vh; }
.heat__stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
}
.heat__glow {
  position: absolute; left: 58%; top: 52%;
  width: 70vh; height: 70vh; margin: -35vh 0 0 -35vh;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-deep) 0%, transparent 65%);
  filter: blur(40px);
  opacity: 0;
}
.heat__frame {
  position: absolute; left: 58%; top: 50%;
  height: min(86vh, 1112px); aspect-ratio: 836 / 1112;
  transform: translate(-50%, -48%);
  mix-blend-mode: screen;   /* black frame bg disappears, heat glow shows through */
}
.heat__frame canvas {
  width: 100%; height: 100%;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%);
}

/* callout dots (inside frame, % positioned) */
.heat__dots { position: absolute; inset: 0; pointer-events: none; }
.dot {
  position: absolute; width: 0; height: 0;
  opacity: 0; transform: scale(.3);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.dot::before, .dot::after {
  content: ''; position: absolute; left: 50%; top: 50%; border-radius: 50%;
}
.dot::before { width: 9px; height: 9px; margin: -4.5px; background: var(--ink); box-shadow: 0 0 12px var(--accent); }
.dot::after  { width: 28px; height: 28px; margin: -14px; border: 1px solid var(--accent); animation: ping 2.2s var(--ease) infinite; }
.dot.is-on { opacity: 1; transform: scale(1); }
@keyframes ping { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

/* leader lines + labels (stage-space, positioned in JS) */
.heat__leaders { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.heat__leaders polyline {
  fill: none; stroke: var(--accent); stroke-width: 1;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset .8s var(--ease);
}
.heat__leaders polyline.is-on { stroke-dashoffset: 0; }
.heat__labels { position: absolute; inset: 0; pointer-events: none; }
.label {
  position: absolute; width: 230px;
  transform: translateY(-50%);
  opacity: 0; translate: 12px 0;
  transition: opacity .5s var(--ease) .25s, translate .6s var(--ease) .25s;
}
.label.is-on { opacity: 1; translate: 0 0; }
.label b { display: block; font-family: var(--f-mono); font-weight: 500; font-size: 11px; letter-spacing: .14em; color: var(--accent); margin-bottom: 4px; }
.label span { display: block; font-size: 14px; line-height: 1.4; color: var(--ink); }
.label i { display: block; font-style: normal; font-family: var(--f-mono); font-size: 10px; color: var(--dim); margin-bottom: 6px; }

/* copy beats */
.heat__copy {
  position: absolute; left: var(--gutter); top: 50%;
  width: min(36vw, 520px);
  transform: translateY(-50%);
}
.beat {
  position: absolute; left: 0; top: 50%; width: 100%;
  transform: translateY(-50%);
  opacity: 0; visibility: hidden;
}
.beat .display { font-size: clamp(30px, 3.6vw, 58px); }
.beat .lede { margin: 22px 0 0; max-width: 36ch; color: var(--mute); font-size: 16px; }
.beat .swatches { margin-top: 30px; }

/* HUD */
.hud {
  position: absolute; left: var(--gutter); bottom: 32px;
  width: 230px; color: var(--mute);
}
.hud__temp { font-size: 44px; color: var(--ink); letter-spacing: 0; line-height: 1; font-variant-numeric: tabular-nums; }
.hud__temp small { font-size: 16px; margin-left: 4px; color: var(--accent); }
.hud__bar { height: 2px; background: var(--line); margin: 14px 0 10px; overflow: hidden; }
.hud__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-deep), var(--accent)); transform-origin: left; transform: scaleX(0); }
.hud__row { display: flex; justify-content: space-between; font-size: 10px; }

.heat__cue {
  position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--mute);
}
.heat__cue i { width: 1px; height: 44px; background: linear-gradient(var(--accent), transparent); animation: cue 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.heat__caption { display: none; }

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden; padding: 22px 0;
  background: var(--bg);
  position: relative; z-index: 2;
}
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span {
  font-family: var(--f-display); font-size: clamp(22px, 2.6vw, 40px); text-transform: uppercase;
  white-space: nowrap; padding-right: 48px;
  color: transparent; -webkit-text-stroke: 1px var(--ink);
}
.marquee__track span:nth-child(even) { color: var(--accent); -webkit-text-stroke: 0; }
.marquee__track span::after { content: '◆'; font-size: .4em; vertical-align: middle; margin-left: 48px; color: var(--accent); -webkit-text-stroke: 0; }
:lang(ka) .marquee__track span { font-weight: 800; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   PRODUCT
   ========================================================= */
.product {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 110px);
  padding: 140px var(--gutter);
  align-items: start;
}
.product__media {
  position: sticky; top: calc(var(--header-h) + 20px);
  aspect-ratio: 3375 / 4219;
  background: #111; overflow: hidden;
}
.product__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04);
  transition: opacity 1s var(--ease), transform 1.6s var(--ease);
}
.product__media img.is-on { opacity: 1; transform: scale(1); }
.product__tag { position: absolute; left: 18px; top: 18px; color: var(--mute); z-index: 2; }
.product__tag b { color: var(--accent); font-weight: 500; }

.product__info { padding-top: 20px; max-width: 560px; }
.product__title { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(28px, 3vw, 46px); line-height: 1.1; margin: 0 0 16px; }
:lang(ka) .product__title { text-transform: none; font-weight: 800; }
.product__tagline { color: var(--mute); margin: 0 0 40px; font-size: 18px; }
.product__price, .product__colors {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 22px 0; border-top: 1px solid var(--line);
}
.product__price > .mono, .product__colors > .mono { color: var(--mute); }
.product__price strong { font-family: var(--f-display); font-weight: 400; font-size: 26px; }
.product__colors { border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.product__note { color: var(--mute); text-align: center; margin: 14px 0 50px; }
.product__body p { margin: 0 0 16px; color: #c9c7c3; }
.features { list-style: none; padding: 0; margin: 40px 0 0; }
.features li { display: flex; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); line-height: 1.5; }
.features li:last-child { border-bottom: 1px solid var(--line); }
.features b { color: var(--accent); font-weight: 500; }

/* =========================================================
   GALLERY — pinned horizontal film strip
   ========================================================= */
.gallery { position: relative; }
.gallery__pin {
  height: 100vh; height: 100svh;
  display: flex; align-items: center; gap: 6vw;
  padding-left: var(--gutter);
  overflow: hidden;
}
.gallery__head { flex: 0 0 min(30vw, 420px); }
.gallery__head .display { font-size: clamp(26px, 2.8vw, 44px); }
.gallery__count { color: var(--mute); margin-top: 28px; }
.gallery__track { display: flex; gap: 24px; padding-right: var(--gutter); will-change: transform; }
.tile {
  position: relative; flex: 0 0 auto;
  height: min(72vh, 760px); aspect-ratio: 4 / 5;
  background: #0b0b0b; overflow: hidden; cursor: zoom-in;
  padding: 0; border: 0;
}
.tile--video { aspect-ratio: 836 / 1112; }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .8s; }
.tile:hover img, .tile:hover video { transform: scale(1.04); }
.tile__idx {
  position: absolute; left: 14px; bottom: 12px; z-index: 2;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--ink);
  mix-blend-mode: difference;
}
.tile:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

/* =========================================================
   ABOUT
   ========================================================= */
.about { padding: 180px var(--gutter) 160px; }
.about__big { font-size: clamp(44px, 9vw, 150px); line-height: .98; max-width: 12ch; }
.about__manifesto {
  font-size: clamp(22px, 2.6vw, 40px); line-height: 1.3; font-weight: 300;
  max-width: 30ch; margin: 80px 0 0 auto;
}
.about__manifesto .w { opacity: .14; transition: opacity .2s; }
.about__grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 120px; border-top: 1px solid var(--line); }
.about__grid div { padding: 22px 0; display: flex; gap: 14px; color: var(--mute); }
.about__grid b { color: var(--accent); font-weight: 500; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { padding: 80px var(--gutter) 36px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__motto { font-size: clamp(14px, 1.4vw, 20px); color: var(--accent); letter-spacing: .3em; margin-bottom: 40px; }
.footer__logo { width: 100%; height: auto; aspect-ratio: 1744 / 585; fill: var(--ink); margin: -12% 0 -2%; }
.footer__row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--mute); margin-top: 40px; }
.footer__row a:hover { color: var(--accent); }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(0, 0, 0, .94);
  backdrop-filter: blur(10px);
  display: grid; grid-template-columns: 80px 1fr 80px; align-items: center;
  opacity: 0; transition: opacity .4s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__media { height: 100svh; display: grid; place-items: center; padding: 70px 0; }
.lightbox__media img, .lightbox__media video { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox__nav { font-size: 26px; height: 100%; color: var(--mute); transition: color .3s; }
.lightbox__nav:hover { color: var(--accent); }
.lightbox__close { position: absolute; top: 22px; right: var(--gutter); color: var(--mute); z-index: 2; }
.lightbox__close:hover { color: var(--ink); }
.lightbox__count { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); color: var(--mute); margin: 0; }

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(26px); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .heat__frame { left: 62%; }
  .heat__copy { width: 40vw; }
}

@media (max-width: 820px) {
  :root { --header-h: 60px; }
  .header__nav { display: none; }
  .header__logo svg { width: 84px; height: 28px; }

  .heat { height: 440vh; }
  .heat__glow { left: 50%; top: 46%; width: 90vw; height: 90vw; margin: -45vw 0 0 -45vw; }
  .heat__frame { left: 50%; top: 47%; height: auto; width: min(88vw, 62svh); }
  .heat__leaders, .heat__labels { display: none; }
  .heat__copy { left: var(--gutter); right: var(--gutter); top: calc(var(--header-h) + 8px); width: auto; transform: none; }
  .beat { top: 0; transform: none; }
  .beat .display { font-size: clamp(24px, 7.4vw, 34px); }
  .beat .lede { font-size: 14px; margin-top: 10px; }
  .beat .swatches { margin-top: 18px; gap: 8px; }
  .beat .swatch { padding: 10px 14px 10px 28px; }
  .beat .swatch > span::before { left: -14px; }
  .beat[data-beat="0"] .eyebrow { margin-bottom: 10px; }
  .hud { left: var(--gutter); right: var(--gutter); bottom: 22px; width: auto; display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: 18px; }
  .hud__temp { font-size: 30px; grid-row: span 2; }
  .hud__bar { margin: 0 0 8px; }
  .heat__cue { display: none; }
  .heat__caption {
    display: block; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 88px;
    text-align: center; color: var(--ink); min-height: 2.8em;
    opacity: 0; transition: opacity .4s;
  }
  .heat__caption.is-on { opacity: 1; }
  .heat__caption b { color: var(--accent); font-weight: 500; display: block; margin-bottom: 4px; }
  .heat__caption span { text-transform: none; letter-spacing: 0; font-family: var(--f-body); font-size: 14px; }
  .heat.is-end .heat__caption { opacity: 0; }

  .product { grid-template-columns: 1fr; padding: 100px var(--gutter); }
  .product__media { position: relative; top: 0; }

  .gallery__pin { height: auto; flex-direction: column; align-items: stretch; gap: 36px; padding: 100px 0; overflow: visible; }
  .gallery__head { flex: none; padding: 0 var(--gutter); }
  .gallery__track {
    overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter);
    scrollbar-width: none; gap: 12px;
  }
  .gallery__track::-webkit-scrollbar { display: none; }
  .tile { height: auto; width: 80vw; scroll-snap-align: center; }

  .about { padding: 110px var(--gutter); }
  .about__manifesto { margin-top: 50px; }
  .about__grid { grid-template-columns: 1fr; margin-top: 70px; }
  .about__grid div { border-bottom: 1px solid var(--line); }

  .lightbox { grid-template-columns: 1fr; }
  .lightbox__nav { position: absolute; bottom: 10px; height: 56px; width: 56px; z-index: 2; }
  .lightbox__nav--prev { left: 10px; } .lightbox__nav--next { right: 10px; }
  .lightbox__media { padding: 64px 12px 80px; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .marquee__track, .dot::after, .heat__cue i { animation: none; }
  [data-reveal] { opacity: 1; transform: none; }
}
