/* GAGAT's store. Grounds of grit and bone, jet black, one amber; the name in Bahnschrift Light outlines, the text in
   Barlow (a free DIN like the labels' Bahnschrift). Every photograph has its negative underneath. No frames, no rules. */
@font-face { font-family: Barlow; font-weight: 300; font-display: swap; src: url(fonts/barlow-latin-300-normal.woff2) format('woff2'); }
@font-face { font-family: Barlow; font-weight: 400; font-display: swap; src: url(fonts/barlow-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow SC'; font-weight: 400; font-display: swap; src: url(fonts/barlow-semi-condensed-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow SC'; font-weight: 500; font-display: swap; src: url(fonts/barlow-semi-condensed-latin-500-normal.woff2) format('woff2'); }
@property --r { syntax: '<length>'; inherits: true; initial-value: 0px; }

:root { --jet: #141414; --bone: #f3f1ec; --ground: #e2e1dd; --grit: #c9c4ba; --amber: #b8561c; --olive: #8a8752;
  --pad: clamp(16px, 3.5vw, 56px); }
* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--ground); }
body { background: var(--ground); color: var(--jet); font-family: Barlow, 'DIN Alternate', Arial, sans-serif; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wm { display: block; fill: currentColor; aspect-ratio: 6904 / 1484; }
.cap { font-family: 'Barlow SC', Barlow, sans-serif; font-weight: 500; font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; line-height: 1.7; }
.dim { opacity: 0.55; }
.copy { font-size: 17px; line-height: 1.55; max-width: 34em; }
.copy.big { font-size: clamp(22px, 2.3vw, 32px); line-height: 1.3; font-weight: 300; max-width: 26em; }
.h2 { font-weight: 300; font-size: clamp(34px, 4.2vw, 64px); line-height: 1.04; letter-spacing: -0.005em; }
.h-touch { display: none; }
@media (hover: none) { .h-desk { display: none; } .h-touch { display: inline; } }

/* header: always the other of what is under it */
.top { position: fixed; z-index: 20; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 40px;
  padding: 22px var(--pad); color: #fff; mix-blend-mode: difference; }
.logo .wm { width: 118px; }
.top nav { display: flex; gap: 28px; margin-left: auto; }
.bag { background: none; border: 0; cursor: pointer; }
.bag span { display: inline-block; min-width: 1.4em; }

/* hero */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--jet); }
.hero-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-v.tall { display: none; }
.hero-ink { position: absolute; inset: 0; color: #fff; mix-blend-mode: difference; pointer-events: none; }
.hero-tl { position: absolute; left: var(--pad); top: 96px; }
.hero-tr { position: absolute; right: var(--pad); top: 96px; text-align: right; }
.hero-name { position: absolute; left: var(--pad); right: var(--pad); bottom: calc(var(--pad) * 0.8); }
.hero-name .wm { width: 100%; }

/* intro */
.intro { padding: clamp(90px, 13vw, 200px) var(--pad) clamp(70px, 9vw, 140px); background: var(--bone);
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; }
.intro-big { font-weight: 300; font-size: clamp(34px, 4.6vw, 72px); line-height: 1.04; max-width: 15em; }

/* lens: the negative under a circle that follows the pointer */
.lens { position: relative; overflow: hidden; --x: 50%; --y: 50%; --r: 0px; transition: --r 0.5s cubic-bezier(.2,.7,.2,1);
  cursor: none; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.lens img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.lens .neg { position: absolute; inset: 0; clip-path: circle(var(--r) at var(--x) var(--y)); }
.lens.on { --r: clamp(90px, 13vw, 190px); }
.lens.full { --r: 150%; transition-duration: 0.9s; }
@media (hover: none) { .lens { cursor: auto; } }

/* the pair */
.pair { display: grid; grid-template-columns: 1fr 1fr; background: var(--bone); padding: 0 var(--pad) 40px; gap: var(--pad); }
.prod .lens { aspect-ratio: 4 / 5; }
.prod-text { display: grid; grid-template-columns: 1fr; padding: 28px 0 12px; }
.prod-name { font-weight: 300; font-size: clamp(56px, 6.4vw, 104px); line-height: 0.9; margin: 6px 0 22px; letter-spacing: -0.01em; }
.buy { display: flex; align-items: center; gap: 18px; margin-top: 26px; }
.price { font-size: 22px; font-weight: 300; }
.add { margin-left: auto; background: var(--jet); color: var(--bone); border: 0; padding: 15px 26px; cursor: pointer;
  transition: background 0.3s, color 0.3s; }
.prod:nth-child(2) .add { background: var(--amber); }
.add:hover, .add.done { background: var(--bone); color: var(--jet); box-shadow: inset 0 0 0 1px var(--jet); }
.pair-hint { grid-column: 1 / -1; padding: 10px 0 40px; }

/* the line */
.line { position: relative; background: var(--jet); color: var(--bone); padding: 90px var(--pad) 80px; overflow: hidden; }
.line-src { opacity: 0.6; }
.rub { position: relative; margin-top: 30px; height: clamp(420px, 52vw, 680px); touch-action: pan-y; cursor: crosshair;
  -webkit-user-select: none; user-select: none; transition: height 1.1s cubic-bezier(.3,.7,.2,1); }
.line-latin { position: absolute; left: 0; top: 0; width: min(100%, 1180px); font-weight: 300;
  font-size: clamp(40px, 6.6vw, 104px); line-height: 1.02; letter-spacing: -0.01em; color: var(--bone); }
.line-latin .w { white-space: nowrap; }
.rub-heat { position: absolute; inset: -60px; width: calc(100% + 120px); height: calc(100% + 120px); pointer-events: none;
  mix-blend-mode: screen; }
.ch { display: inline-block; will-change: transform; pointer-events: none; transform-origin: 50% 60%; }
.line-after { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--pad); margin-top: 26px; opacity: 0;
  transform: translateY(14px); transition: opacity 1.2s 0.4s, transform 1.2s 0.4s; }
.line.set .line-after { opacity: 1; transform: none; }
.line-en { font-weight: 300; font-size: clamp(24px, 2.6vw, 40px); line-height: 1.2; max-width: 20em; }
.line-note { font-size: 15px; opacity: 0.7; }
.rub-hint { position: absolute; right: var(--pad); top: 90px; color: var(--amber); transition: opacity 0.6s; }
.line.set .rub-hint { opacity: 0; }

/* the boxes */
.boxes { position: relative; height: 260vh; background: var(--jet); }
.boxes-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.boxes-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.boxes-img.neg { clip-path: inset(0 0 0 var(--w, 100%)); }
.boxes-text { position: absolute; left: var(--pad); right: var(--pad); top: 108px; bottom: 48px; color: #fff; mix-blend-mode: difference; pointer-events: none; }
.boxes-text .copy { position: absolute; left: 0; bottom: 0; font-size: 16px; max-width: 26em; }

/* the label */
.label { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--pad); padding: clamp(90px, 10vw, 160px) var(--pad); align-items: start; }
.label-imgs { display: grid; grid-template-columns: 1fr 0.8fr; gap: 34px; }
.label-imgs img { width: 100%; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12); }
.l-jet { grid-column: 1 / -1; }
.l-tag { align-self: start; }
.label-text .copy { margin-top: 22px; }

/* it goes on anything */
.anything { position: relative; background: var(--bone); }
.anything-h { position: absolute; z-index: 2; left: var(--pad); top: 40px; pointer-events: none; }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip figure { position: relative; }
.strip .lens { height: min(92vh, 900px); }
.strip figcaption { position: absolute; left: 20px; bottom: 22px; color: #fff; mix-blend-mode: difference; pointer-events: none; }

/* the stone */
.stone { background: var(--jet); color: var(--bone); padding-bottom: clamp(70px, 8vw, 130px); }
.stone-img { aspect-ratio: 16 / 9; max-height: 100vh; width: 100%; }
.stone-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pad); padding: 60px var(--pad) 0; }
.stone-cols .copy { margin-top: 12px; opacity: 0.82; }

/* the name */
.name { padding: clamp(100px, 12vw, 200px) var(--pad); background: var(--grit); }
.gagat-def { font-weight: 300; font-size: clamp(80px, 13vw, 220px); line-height: 0.85; letter-spacing: -0.02em; }
.gagat-def span { font-size: 0.2em; letter-spacing: 0; vertical-align: top; opacity: 0.6; }
.name .copy { margin-top: 36px; }

/* letters */
.letters { padding: clamp(80px, 9vw, 140px) var(--pad); background: var(--bone); display: grid; grid-template-columns: 1fr 1fr; gap: var(--pad); align-items: end; }
.letters-form { display: flex; flex-wrap: wrap; gap: 10px; }
.letters-form input { flex: 1 1 220px; background: var(--ground); border: 0; padding: 16px 18px; font-size: 16px; outline: none; }
.letters-form input:focus { background: #fff; }
.letters-form button { background: var(--jet); color: var(--bone); border: 0; padding: 0 28px; cursor: pointer; min-height: 52px; }
.sent-msg { display: none; width: 100%; }
.letters-form.sent input, .letters-form.sent button { display: none; }
.letters-form.sent .sent-msg { display: block; }

/* footer */
.foot { background: var(--jet); color: var(--bone); padding: 90px var(--pad) 34px; }
.foot-name { width: 100%; }
.foot-row { display: flex; justify-content: space-between; gap: 20px; margin-top: 36px; opacity: 0.7; }
.foot-row a { text-decoration: underline; text-underline-offset: 3px; }

/* phones: their own layout, not the desk one cropped */
@media (max-width: 760px) {
  .top { padding: 16px; gap: 16px; }
  .logo .wm { width: 96px; }
  .top nav { display: none; }
  .bag { margin-left: auto; }
  .hero-v.wide { display: none; }
  .hero-v.tall { display: block; }
  .hero-tl, .hero-tr { top: 70px; font-size: 10px; }
  .hero-name { bottom: 20px; }
  .intro { grid-template-columns: 1fr; padding: 80px 16px 56px; gap: 28px; }
  .intro-big { font-size: 34px; }
  .pair { grid-template-columns: 1fr; padding: 0 0 20px; gap: 0; }
  .prod .lens { aspect-ratio: 3 / 4; }
  .prod-text { padding: 22px 16px 56px; }
  .prod-name { font-size: 64px; }
  .copy { font-size: 16px; }
  .pair-hint { order: -1; padding: 0 16px 16px; }
  .line { padding: 72px 16px 64px; }
  .rub { height: 620px; margin-top: 18px; }
  .line-latin { font-size: 52px; line-height: 1.0; }
  .line-after { grid-template-columns: 1fr; gap: 22px; }
  .rub-hint { position: static; margin-top: 18px; }
  .boxes { height: 220vh; }
  .boxes-img { object-position: 50% 62%; }
  .boxes-text { left: 16px; right: 16px; top: 76px; bottom: 32px; }
  .label { grid-template-columns: 1fr; padding: 80px 16px; gap: 40px; }
  .label-text { order: -1; }
  .anything-h { top: 24px; left: 16px; right: 16px; font-size: 36px; color: #fff; mix-blend-mode: difference; }
  .strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .strip::-webkit-scrollbar { display: none; }
  .strip figure { flex: 0 0 82vw; scroll-snap-align: start; }
  .strip .lens { height: 120vw; touch-action: pan-x pan-y; }
  .stone-img { aspect-ratio: 4 / 5; }
  .stone-img img { object-position: 50% 50%; }
  .stone-cols { grid-template-columns: 1fr; padding: 40px 16px 0; gap: 36px; }
  .name { padding: 90px 16px; }
  .gagat-def { font-size: 96px; }
  .letters { grid-template-columns: 1fr; padding: 72px 16px; gap: 28px; }
  .h2 { font-size: 36px; }
  .foot { padding: 64px 16px 28px; }
  .foot-row { flex-direction: column; gap: 4px; margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) { .lens { transition: none; } }
