/* Colorbitor — static site styles */

@font-face {
  font-family: "Kumbh Sans";
  src: url(../fonts/kumbh-sans-latin-ext.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Kumbh Sans";
  src: url(../fonts/kumbh-sans-latin.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #28256C;
  --pink: #FD0092;
  --cyan: #4FD5D9;
  --text: #1E1E1E;
  --muted: #54595F;
  --link: #CC3366;
  --link-hover: #333366;
  --card: #F5F5F5;
  --line: #D5D8DC;
  --font: "Kumbh Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }
h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1; font-weight: 700; }
p { margin: 0 0 .9rem; }
p:last-child { margin-bottom: 0; }
b, strong { font-weight: 700; }
button { font: inherit; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: #fff; color: var(--text); padding: 10px 16px; }
.skip-link:focus { left: 10px; top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }

.wrap { width: min(var(--w, 1200px), 100% - 40px); margin-inline: auto; }
.wrap.full { width: 100%; max-width: none; }

.sec { padding-top: var(--pt, 0); padding-bottom: var(--pb, 0); }

/* ---------- glitch titles (three stacked copies: pink, cyan, navy) ---------- */
.glitch { position: relative; margin: 0; font-size: var(--fs, 96px); font-weight: 700; line-height: 1; color: var(--navy); }
.g-layer { position: absolute; inset: 0; pointer-events: none; user-select: none; will-change: transform; transition: transform .1s; }
.g-pink { color: var(--pink); transform: translateX(calc(var(--gx, 0px) * -1)); }
.g-cyan { color: var(--cyan); transform: translateX(var(--gx, 0px)); }
.g-main { position: relative; z-index: 1; display: block; }

.subtitle { margin: 20px 0 0; font-size: 22px; font-weight: 400; line-height: 1; color: var(--muted); }
.home .subtitle { font-weight: 500; }

/* ---------- hero ---------- */
.hero { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: var(--min-h, 0); overflow: hidden; color: #fff; background: #111; }
.hero-bg { position: absolute; inset: 0; z-index: 0; margin: 0; }
.hero-bg img, .hero-bg video { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-content { position: relative; z-index: 1; text-align: center; padding-block: 40px; }
.hero-title { font-size: 96px; line-height: 1.4; font-weight: 700; color: #fff; text-shadow: 0 0 10px rgba(0, 0, 0, .2); }
.hero--home .hero-title { line-height: 1; }
.hero-sub { margin: 10px 0 0; font-size: 22px; font-weight: 400; line-height: 1; text-shadow: 0 0 10px rgba(0, 0, 0, .4); }
.slideshow img { position: absolute; inset: 0; transform: translateX(100%); transition: transform .8s ease-in-out; }
.slideshow img.is-active { transform: translateX(0); }
.slideshow img.is-leaving { transform: translateX(-100%); }

/* ---------- split sections ---------- */
.split-grid { display: flex; align-items: flex-start; }
.split-head { width: 50%; }
.split-body { width: 50%; padding-left: 10px; }
.split .videos-list { margin-bottom: 40px; }
.split .split-grid + .videos-list { margin: 40px 0 0; }

.prose { font-size: 22px; line-height: 1.5; }
.prose ul { margin: 0 0 .9rem; padding-left: 40px; }
.prose ul:last-child { margin-bottom: 0; }
.prose.cols { columns: var(--c); width: max-content; max-width: 100%; margin-inline: auto; }
.prose.cols-2 { --c: 2; }
.prose.cols-4 { --c: 4; }
.prose.cols li { break-inside: avoid; }

/* ---------- buttons ---------- */
.btn-wrap { text-align: center; padding-top: 20px; }
.btn { display: inline-block; padding: 12px 24px; border: 2px solid var(--text); border-radius: 10px; background: transparent; color: var(--text); font-size: 15px; font-weight: 500; line-height: 1; transition: background .3s, color .3s; }
.btn:hover { background: var(--text); color: #fff; }

/* ---------- work grid ---------- */
.work .glitch { padding-bottom: 20px; }
.grid { display: flex; flex-wrap: wrap; margin-inline: -5px; }
.card { width: 33.333%; padding-inline: 5px; }
.card a { display: block; height: 100%; background: var(--card); color: var(--text); }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card a:hover .card-img img { transform: scale(1.04); }
.card-title { margin: 0; padding: 14px 10px 30px; font-size: 20px; font-weight: 400; line-height: 1.2; text-align: center; transition: color .3s; }
.card a:hover .card-title { color: var(--muted); }

/* ---------- carousels ---------- */
.carousel { position: relative; }
.c-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.c-track::-webkit-scrollbar { display: none; }
.c-slide { margin: 0; scroll-snap-align: start; }
.c-slide img, .c-slide video { width: 100%; height: auto; }
.c-slide figcaption { padding: 8px 0; font-size: 16px; text-align: center; }
.carousel--media .c-slide { height: var(--h, 600px); }
.carousel--media .c-slide img, .carousel--media .c-slide video, .carousel--media .c-slide a { width: 100%; height: 100%; object-fit: cover; }
.c-btn { position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; padding: 0; border: 0; background: none; cursor: pointer; filter: drop-shadow(0 0 3px rgba(0, 0, 0, .5)); }
.c-btn::before { content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 14px; border: solid #fff; border-width: 3px 3px 0 0; }
.c-prev { left: 10px; }
.c-prev::before { transform: translate(-30%, -50%) rotate(-135deg); }
.c-next { right: 10px; }
.c-next::before { transform: translate(-70%, -50%) rotate(45deg); }

/* ---------- videos ---------- */
.videos-list { display: flex; flex-direction: column; gap: 20px; }
.video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.video iframe, .video > img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video--hosted { aspect-ratio: auto; background: none; }
.video--hosted video { width: 100%; height: auto; }
.yt { cursor: pointer; }
.yt-play { position: absolute; top: 50%; left: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; padding: 0; border: 0; border-radius: 12px; background: rgba(33, 33, 33, .8); cursor: pointer; transition: background .2s; }
.yt-play::before { content: ""; position: absolute; top: 50%; left: 50%; margin: -9px 0 0 -6px; border-style: solid; border-width: 9px 0 9px 16px; border-color: transparent transparent transparent #fff; }
.yt:hover .yt-play, .yt-play:focus-visible { background: #f00; }

/* ---------- post navigation ---------- */
.postnav-grid { display: flex; align-items: stretch; }
.pn { flex: 1; display: flex; flex-direction: column; padding: 0 50px; color: var(--text); }
.pn:hover { color: var(--text); }
.pn-next { align-items: flex-end; text-align: right; }
.pn-label { font-size: 64px; font-weight: 700; line-height: 1.2; text-transform: uppercase; }
.pn-title { margin-top: 10px; font-size: 22px; line-height: 1.3; }
.pn:hover .pn-title { color: var(--muted); }
.pn-sep { width: 1px; background: var(--line); }

/* ---------- gallery + lightbox ---------- */
.gallery-sec .gallery { width: min(1200px, 100% - 40px); margin-inline: auto; display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: var(--gap); }
.g-item { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #eee; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .3s; }
.g-item:hover img { transform: scale(1.04); opacity: .85; }
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .92); }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox button { position: absolute; border: 0; background: none; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; padding: 16px; }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- footer ---------- */
.site-footer { padding: 30px 0 60px; background: #fff; overflow: hidden; }
.footer-grid { --w: 1400px; display: flex; gap: 10px; }
.f-col { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.f-head { margin-bottom: 14px; font-size: 22px; font-weight: 600; line-height: 1; color: var(--text); }
/* 4px padding makes each link a comfortable tap target (26px) without changing the visual rhythm */
.f-link, .f-text { padding: 4px 0; font-size: 18px; line-height: 1; color: var(--text); }
.f-link { text-decoration: underline; transition: transform .3s; align-self: flex-start; }
.f-link:hover { color: var(--text); transform: translateY(-2px); }
.f-col--links { justify-content: space-between; gap: 24px; }
.f-big { align-self: flex-start; padding: 2px 0; font-size: 22px; font-weight: 600; line-height: 1; color: var(--text); text-decoration: underline; transition: transform .3s; }
.f-big:hover { color: var(--text); transform: translateY(-2px); }
.lang-switch { position: relative; align-self: flex-end; width: 200px; margin-top: 16px; font-size: 14px; line-height: 1; }
.ls-current, .ls-menu a { display: block; padding: 15px 24px; border: 1px solid #949494; background: #fff; color: var(--text); cursor: pointer; }
.ls-current::after { content: ""; float: right; width: 6px; height: 6px; margin-top: 2px; border: solid var(--text); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.ls-menu { position: absolute; left: 0; right: 0; bottom: 100%; display: none; }
.ls-menu a { border-bottom: 0; }
.ls-menu a:hover { background: #f2f2f2; color: var(--text); }
.lang-switch:hover .ls-menu, .lang-switch:focus-within .ls-menu { display: block; }

/* sticky bottom bar */
.bottom-bar { position: sticky; bottom: 0; z-index: 50; display: flex; justify-content: space-around; align-items: center; background: #fff; border-top: 1px solid var(--text); }
.bb-link, .bb-logo { width: 25%; text-align: center; color: var(--text); transition: transform .3s; }
.bb-link { font-size: 22px; font-weight: 700; line-height: 1; padding: 19px 0; }
.bb-link:hover { color: var(--text); transform: scale(1.1); }
.bb-logo { display: flex; justify-content: center; padding: 5px 0; }
.bb-logo img { width: 50px; height: auto; }
.bb-logo:hover { transform: scale(1.1); }

/* ---------- responsive visibility (same breakpoints as before) ---------- */
@media (min-width: 1025px) { .hide-desktop { display: none !important; } }
@media (min-width: 768px) and (max-width: 1024px) { .hide-tablet { display: none !important; } }

/* ---------- tablet ---------- */
@media (max-width: 1024px) {
  .glitch { font-size: calc(var(--fs, 96px) * .7); }
  .hero-title { font-size: 64px; line-height: 1.2; }
  .pn-label { font-size: 44px; }
  .prose.cols-4 { --c: 3; }
  .gallery-sec .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- mobile ---------- */
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
  .sec { padding-top: var(--pt-m, var(--pt, 0)); padding-bottom: var(--pb-m, var(--pb, 0)); }
  .glitch { font-size: var(--fs-m, 48px); }
  .subtitle { font-size: 18px; }
  .hero { min-height: var(--min-h-m, var(--min-h, 0)); }
  .hero-title { font-size: 48px; line-height: 1.1; }
  .hero--home .hero-title { font-size: 40px; }
  .hero-sub { font-size: 18px; }
  .split-grid { flex-direction: column; align-items: stretch !important; }
  .split-head, .split-body { width: 100%; padding-left: 0; }
  .split-body { padding-top: 40px; }
  .prose { font-size: 18px; }
  .prose.cols-2, .prose.cols-4 { --c: 1; width: auto; }
  .prose.cols-m-2 { --c: 2; column-gap: 0; width: 100%; }
  .grid { margin-inline: 0; }
  .card { width: 50%; padding: 0 1px 2px; }
  .card-title { padding: 6px 4px 12px; font-size: 12px; }
  .work .wrap { width: calc(100% - 10px); }
  .work .glitch { padding: 0 15px 20px; }
  .c-track { grid-auto-columns: calc((100% - (var(--per-m) - 1) * var(--gap)) / var(--per-m)); }
  .carousel--media .c-slide { height: var(--h-m, var(--h, 300px)); }
  .pn { padding: 0 10px; }
  .pn-label { font-size: 20px; }
  .pn-title { font-size: 16px; }
  .gallery-sec .gallery { grid-template-columns: 1fr; }
  .site-footer { padding: 30px 0 60px; }
  .footer-grid { flex-wrap: wrap; gap: 25px; }
  .f-col { flex: 0 0 100%; gap: 0; }
  .f-head { margin-bottom: 1px; }
  .f-col--links { gap: 10px; }
  .lang-switch { align-self: flex-start; width: 300px; max-width: 100%; margin-top: 15px; }
  .bottom-bar { padding-bottom: 5px; }
  .bb-link { font-size: 16px; padding: 14px 0; }
  .bb-logo img { width: 40px; }
}

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