/* artemlabs.me */

:root {
  --bg: #f6f5f1;
  --bg-2: #ecebe5;
  --card: #ffffff;
  --ink: #12131a;
  --ink-2: #4b4d5a;
  --muted: #8a8c97;
  --line: #dddbd3;
  --blue: #2747f5;
  --yellow: #ffd23f;
  --pink: #ff4f8b;
  --violet: #7b5cff;
  --green: #18a873;
  --accent: var(--blue);
  --shadow: 0 1px 2px rgba(18,19,26,.05), 0 18px 40px -22px rgba(18,19,26,.35);

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
  --w: 1040px;
  --gutter: 24px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1222;
    --bg-2: #171b31;
    --card: #161a2e;
    --ink: #f2f1ec;
    --ink-2: #c3c4cf;
    --muted: #8b8ea3;
    --line: #262b45;
    --blue: #6f86ff;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 22px 44px -22px rgba(0,0,0,.8);
  }
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 18px/1.55 var(--display);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--yellow); color: #12131a; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── bar ── */
.bar {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 10;
  width: min(calc(100% - 2 * var(--gutter)), var(--w));
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 8px 8px 18px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.logo { font: 500 15px/1 var(--mono); text-decoration: none; }
.logo b { font-weight: 500; color: var(--blue); }
.bar-cta {
  font-weight: 600; font-size: 15px; text-decoration: none;
  background: var(--ink); color: var(--bg); padding: 9px 16px; border-radius: 999px;
}

main { width: min(calc(100% - 2 * var(--gutter)), var(--w)); margin: 0 auto; }
section { padding: 96px 0 0; scroll-margin-top: 80px; }
.label {
  font: 500 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 24px; display: flex; align-items: center; gap: 12px;
}
.label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ── hero ── */
.hero { position: relative; padding-top: 150px; min-height: 92vh; display: flex; flex-direction: column; justify-content: center; }
.hello { font: 500 16px/1 var(--mono); color: var(--ink-2); margin: 0 0 6px; }
.wave { display: inline-block; transform-origin: 70% 70%; animation: wave 2.4s ease-in-out 0.6s 2; }
@keyframes wave { 0%,60%,100% { transform: rotate(0); } 10%,30% { transform: rotate(14deg); } 20% { transform: rotate(-8deg); } 40% { transform: rotate(-4deg); } 50% { transform: rotate(10deg); } }
h1 {
  font: 800 clamp(88px, 19vw, 230px)/.86 var(--display); letter-spacing: -.055em;
  margin: 0 0 18px; margin-left: -.04em;
}
h1 .dot { color: var(--yellow); }
.rotator { font: 600 clamp(28px, 4.6vw, 52px)/1.1 var(--display); letter-spacing: -.02em; margin: 0 0 18px; }
.rot {
  display: inline-block; color: var(--blue);
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--yellow) 70%, transparent) 62%);
  transition: opacity .35s ease, transform .35s ease, filter .35s ease;
}
.rot.out { opacity: 0; transform: translateY(-.35em); filter: blur(4px); }
.rot.in { opacity: 0; transform: translateY(.35em); filter: blur(4px); }
.sub { font-size: 20px; color: var(--ink-2); max-width: 28em; margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-weight: 600; font-size: 17px; padding: 14px 22px; border-radius: 999px;
  background: var(--blue); color: #fff; transition: background .2s, box-shadow .2s;
  box-shadow: 0 10px 24px -12px var(--blue);
}
.btn:hover { background: color-mix(in srgb, var(--blue) 85%, #000); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.magnet { transition: transform .25s cubic-bezier(.2,.8,.2,1), background .2s, box-shadow .2s; will-change: transform; }

.me {
  position: absolute; right: 0; top: 160px; width: min(30vw, 320px); margin: 0;
  aspect-ratio: 4/5; border-radius: 28px; overflow: hidden; transform: rotate(3deg);
  box-shadow: var(--shadow); border: 6px solid var(--card);
}
.me img { width: 100%; height: 100%; object-fit: cover; }

/* Ukrainian cross-stitch border, a small nod to vyshyvanka */
.stitch {
  height: 22px; margin-top: 64px; opacity: .9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22' viewBox='0 0 44 22'%3E%3Cg fill='%232747f5'%3E%3Crect x='9' y='1' width='4' height='4'/%3E%3Crect x='5' y='5' width='4' height='4'/%3E%3Crect x='13' y='5' width='4' height='4'/%3E%3Crect x='1' y='9' width='4' height='4'/%3E%3Crect x='17' y='9' width='4' height='4'/%3E%3Crect x='5' y='13' width='4' height='4'/%3E%3Crect x='13' y='13' width='4' height='4'/%3E%3Crect x='9' y='17' width='4' height='4'/%3E%3C/g%3E%3Crect x='9' y='9' width='4' height='4' fill='%23ffd23f'/%3E%3Cg fill='%23ffd23f'%3E%3Crect x='31' y='5' width='4' height='4'/%3E%3Crect x='27' y='9' width='4' height='4'/%3E%3Crect x='35' y='9' width='4' height='4'/%3E%3Crect x='31' y='13' width='4' height='4'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x; background-size: 44px 22px;
  animation: stitch 30s linear infinite;
}
@keyframes stitch { to { background-position: 440px 0; } }

/* ── sides (tabs) ── */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tabs button {
  font: 600 17px/1 var(--display); cursor: pointer;
  padding: 12px 18px; border-radius: 999px; border: 1.5px solid var(--line);
  background: transparent; color: var(--ink-2); transition: all .25s ease;
}
.tabs button:hover { border-color: var(--ink); color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--tab, var(--blue)); border-color: var(--tab, var(--blue)); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 24px -14px var(--tab, var(--blue)); }
.tabs [data-c="blue"] { --tab: var(--blue); }
.tabs [data-c="ink"] { --tab: #12131a; }
.tabs [data-c="pink"] { --tab: var(--pink); }
.tabs [data-c="violet"] { --tab: var(--violet); }
.tabs [data-c="green"] { --tab: var(--green); }
@media (prefers-color-scheme: dark) { .tabs [data-c="ink"] { --tab: #3a4170; } }

.panels {
  position: relative; background: var(--card); border-radius: 28px; padding: 36px 40px;
  box-shadow: var(--shadow); min-height: 220px; overflow: hidden;
}
.panels::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: var(--panel-c, var(--blue)); opacity: .12; transition: background .4s ease, transform .6s ease;
}
.panel { position: relative; animation: rise .45s cubic-bezier(.2,.8,.2,1); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.panel .big { font: 600 clamp(24px, 3.2vw, 36px)/1.2 var(--display); letter-spacing: -.02em; margin: 0 0 12px; max-width: 24em; }
.panel p { margin: 0 0 14px; color: var(--ink-2); }
.arrow-link { font: 500 15px/1 var(--mono); color: var(--blue); text-decoration: none; border-bottom: 1.5px solid transparent; }
.arrow-link:hover { border-color: currentColor; }

/* ── built ── */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 6px; text-decoration: none;
  background: var(--card); border-radius: 24px; padding: 28px; min-height: 250px;
  box-shadow: var(--shadow); overflow: hidden; isolation: isolate;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--brand) 22%, transparent), transparent 60%);
}
.tile:hover::before { opacity: 1; }
.tile img { width: 56px; height: 56px; border-radius: 14px; margin-bottom: auto; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.tile img.contain { object-fit: contain; border-radius: 0; }
.tile:hover img { transform: rotate(-8deg) scale(1.08); }
.t-name { font: 800 34px/1 var(--display); letter-spacing: -.03em; margin-top: 28px; }
.t-line { color: var(--ink-2); max-width: 24em; }
.t-tag { font: 500 13px/1 var(--mono); color: var(--brand); margin-top: 10px; }

/* ── music ── */
.records { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.record {
  display: flex; align-items: center; gap: 22px; text-align: left; cursor: pointer;
  background: var(--card); color: var(--ink); border: 0; border-radius: 24px; padding: 22px;
  box-shadow: var(--shadow); font: inherit; transition: transform .25s ease;
}
.record:hover { transform: translateY(-3px); }
.vinyl {
  flex: none; position: relative; width: 120px; height: 120px; border-radius: 50%;
  background:
    radial-gradient(circle, var(--label) 0 27%, #111 27.5% 29%, transparent 29.5%),
    repeating-radial-gradient(circle, #1b1b1f 0 2px, #26262c 2px 3px);
  box-shadow: 0 10px 24px -10px rgba(0,0,0,.6);
  display: grid; place-items: center;
}
.vinyl::after { content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--bg); }
.vinyl .lbl { font: 800 10px/1.05 var(--display); text-align: center; color: #12131a; text-transform: uppercase; letter-spacing: .02em; transform: translateY(-11px); }
.record[data-embed="sp"] .lbl { color: #fff; }
.record:hover .vinyl, .record.playing .vinyl { animation: spin 1.8s linear infinite; }
.record.playing { box-shadow: 0 0 0 2px var(--blue), var(--shadow); }
@keyframes spin { to { transform: rotate(360deg); } }
.r-meta { display: flex; flex-direction: column; gap: 4px; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.r-meta b { font: 500 12px/1 var(--mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.player { margin-top: 16px; animation: rise .4s ease; }
.player .yt { position: relative; aspect-ratio: 16/9; border-radius: 20px; overflow: hidden; background: #000; }
.player iframe { display: block; width: 100%; border: 0; }
.player .yt iframe { position: absolute; inset: 0; height: 100%; }
.player .sp iframe { border-radius: 16px; }
.more { display: flex; gap: 22px; flex-wrap: wrap; margin: 18px 0 0; }
.more a { font: 500 14px/1 var(--mono); color: var(--ink-2); text-decoration: none; }
.more a:hover { color: var(--blue); }

/* ── now marquee ── */
.now { padding-top: 110px; }
.marquee {
  overflow: hidden; background: var(--yellow); color: #12131a;
  margin: 0 calc(50% - 50vw); transform: rotate(-1.5deg);
  border-top: 2px solid #12131a; border-bottom: 2px solid #12131a;
}
.track { display: flex; gap: 22px; width: max-content; padding: 16px 0; animation: marquee 40s linear infinite; font: 600 22px/1 var(--display); white-space: nowrap; }
.track span:first-child, .track span:nth-child(12) { font-family: var(--mono); font-weight: 500; font-size: 16px; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── say hi ── */
.hi { padding: 120px 0 40px; }
.hi h2 { font: 800 clamp(40px, 7vw, 84px)/1 var(--display); letter-spacing: -.04em; margin: 0 0 30px; max-width: 13em; }
.hl { color: var(--blue); }
.mail-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.mail {
  font: 600 clamp(24px, 4vw, 38px)/1.2 var(--display); text-decoration: none; word-break: break-all;
  background: linear-gradient(var(--yellow), var(--yellow)) 0 100% / 100% 8px no-repeat;
  transition: background-size .3s ease;
}
.mail:hover { background-size: 100% 100%; color: #12131a; }
.copy {
  font: 500 14px/1 var(--mono); cursor: pointer; color: var(--ink-2); background: transparent;
  border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 14px; transition: all .2s;
}
.copy:hover { border-color: var(--ink); color: var(--ink); }
.copy.done { background: var(--green); border-color: var(--green); color: #fff; }

/* ── footer ── */
.foot {
  width: min(calc(100% - 2 * var(--gutter)), var(--w)); margin: 40px auto 0; padding: 26px 0 40px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  border-top: 1px solid var(--line); font: 400 14px/1.4 var(--mono); color: var(--muted);
}
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { text-decoration: none; color: var(--ink-2); }
.foot a:hover { color: var(--blue); }
.foot p { margin: 0; }

/* ── reveal ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ── small screens ── */
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 17px; }
  .bar { top: 10px; }
  .hero { padding-top: 120px; min-height: auto; }
  .me { position: relative; top: 0; width: 70%; max-width: 280px; margin: 36px 0 0; }
  section { padding-top: 80px; }
  .panels { padding: 26px 22px; border-radius: 22px; }
  .tabs button { font-size: 15px; padding: 10px 14px; }
  .grid, .records { grid-template-columns: 1fr; }
  .tile { min-height: 0; padding: 22px; }
  .t-name { margin-top: 18px; font-size: 30px; }
  .vinyl { width: 92px; height: 92px; }
  .vinyl .lbl { font-size: 8px; transform: translateY(-8px); }
  .r-meta { font-size: 19px; }
  .track { font-size: 18px; }
  .foot { flex-direction: column; }
}

[hidden] { display: none !important; }
.vinyl .lbl { display: none; }
