/* cinkoooo0 — site styles */
:root {
  --ink: #05070f;
  --muted: rgba(5, 7, 15, 0.6);
  --faint: rgba(5, 7, 15, 0.05);
  --accent: #dc2626;
  --bg: #ffffff;
  --line: rgba(5, 7, 15, 0.25);
  color-scheme: light;
  --font: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-hl: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-sys: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-name: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --gutter: 15px;
  --tabs-bottom: 20px;
}
html[data-theme="dark"] {
  --ink: #f2f2f0;
  --muted: rgba(242, 242, 240, 0.6);
  --faint: rgba(255, 255, 255, 0.07);
  --accent: #f05252;
  --bg: #0a0a0b;
  --line: rgba(242, 242, 240, 0.3);
  color-scheme: dark;
}
@media (min-width: 480px) { :root { --gutter: 40px; } }
@media (min-width: 768px) { :root { --tabs-bottom: 28px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--bg);
}
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 24px;
}
@media (min-width: 768px) { .site-header__bar { padding: 16px 24px; } }
.site-header__name { font-family: var(--font-name); font-weight: 300; color: var(--muted); }
.site-header__name:hover { opacity: .8; }
.nav { display: none; gap: 32px; }
@media (min-width: 768px) { .nav { display: flex; } }
.nav a { font-size: 12px; text-transform: lowercase; color: var(--muted); transition: color .15s; }
.hl { font-family: var(--font-hl); font-weight: 800; letter-spacing: -0.03em; font-size: 1.08em; }
.display { font-family: var(--font-hl); font-weight: 900; letter-spacing: -0.065em; line-height: .9; font-size: clamp(44px, 7vw, 88px); margin: 0 0 28px; }
/* 3D spinning wordmark */
.logo3d { display: inline-block; perspective: 520px; font-family: "Rubik", var(--font-sys); font-weight: 800; font-size: 28px; letter-spacing: -0.06em; line-height: 1; color: var(--ink); padding: 4px 6px; }
.logo3d:hover { opacity: 1 !important; }
.logo3d__spin { position: relative; display: inline-block; transform-style: preserve-3d; animation: logo-spin 9s linear infinite; }
.logo3d:hover .logo3d__spin { animation-duration: 3s; }
.logo3d__layer { position: absolute; inset: 0; white-space: nowrap; color: var(--ink); -webkit-text-stroke: 4.4px var(--ink); paint-order: stroke fill; }
.logo3d__face { position: relative; display: block; white-space: nowrap; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.logo3d__back { position: absolute; inset: 0; }
.logo3d__face .o1 { display: block; color: var(--ink); -webkit-text-stroke: 4.4px var(--ink); paint-order: stroke fill; }
.logo3d__face .o2 { position: absolute; inset: 0; color: var(--bg); -webkit-text-stroke: 2.6px var(--bg); paint-order: stroke fill; }
@keyframes logo-spin { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
@media (prefers-reduced-motion: reduce) { .logo3d__spin { animation: none; } }
.nav a:hover, .nav a.is-active { color: var(--accent); }
.menu-btn {
  display: flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; margin: -4px -12px -4px 0;
}
@media (min-width: 768px) { .menu-btn { display: none; } }
.site-header__right { display: flex; align-items: center; gap: 32px; }
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin: -10px -8px; border-radius: 999px;
  color: var(--ink); transition: background-color .15s;
  -webkit-tap-highlight-color: transparent;
}
.theme-toggle:hover { background-color: var(--faint); }
.theme-toggle svg { width: 20px; height: 20px; stroke-width: 1.6; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
.fx { will-change: transform, filter, opacity; transform-origin: center center; }
body { transition: background-color .25s, color .25s; }
.menu-panel {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); padding: 16px 24px; box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.menu-panel.is-open { display: block; }
.menu-panel nav { display: flex; flex-direction: column; gap: 16px; }
.menu-panel a { text-transform: lowercase; color: var(--muted); }
.menu-panel a.is-active, .menu-panel a:hover { color: var(--accent); }
@media (min-width: 768px) { .menu-panel { display: none !important; } }

/* ---------- Splash curtain ---------- */
.splash {
  position: fixed; inset: 0; z-index: 999999; overflow: hidden; cursor: pointer;
  background: var(--bg);
  transition: transform .9s cubic-bezier(.7,0,.2,1);
}
.splash.is-leaving { transform: translateY(-100%); }
.splash img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.splash__name {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  text-align: center; color: #fff; font-family: var(--font-sys); font-weight: 700; text-transform: uppercase;
  font-size: clamp(28px, 6vw, 80px); line-height: 1.05; letter-spacing: -0.02em;
  padding-bottom: max(clamp(0.08em, 2vw, 0.35em), env(safe-area-inset-bottom));
  pointer-events: none;
}
.splash__chevron {
  position: absolute; left: 50%; transform: translateX(-50%); z-index: 2;
  top: max(14px, calc(env(safe-area-inset-top) + 8px));
  animation: nudge 2.4s ease-in-out infinite; pointer-events: none;
}
@keyframes nudge { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 5px); } }
body.splash-open { overflow: hidden; }

/* ---------- Artworks grid ---------- */
.grid {
  display: grid; grid-template-columns: 1fr; gap: 84px;
  max-width: 1600px; margin: 0 auto; padding: 20px var(--gutter) 40vh;
}
@media (min-width: 480px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 45px; padding-top: 48px; } }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.tile { display: flex; flex-direction: column; }
.tile__frame {
  position: relative; width: 100%; aspect-ratio: 3 / 4; overflow: hidden;
  margin: 0 auto; max-width: 320px;
}
@media (min-width: 480px) { .tile__frame { max-width: 420px; } }
@media (min-width: 768px) { .tile__frame { max-width: 720px; } }
.tile__frame.is-landscape { aspect-ratio: 4 / 3; }
.tile__frame img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  opacity: 0; transition: opacity .3s;
}
.tile__frame img.is-loaded { opacity: 1; }
.tile:hover .tile__frame img.is-loaded { opacity: .85; }
.tile__placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: var(--faint); color: var(--muted); text-align: center; padding: 16px;
}
.tile__caption { margin-top: 4px; padding: 4px 0; text-align: center; }
@media (min-width: 768px) { .tile__caption { margin-top: 12px; padding: 8px 0; } }
.tile:hover .tile__caption { color: var(--accent); }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 80px 0; }

/* ---------- Bottom category tabs ---------- */
.tabs {
  position: fixed; left: 0; right: 0; bottom: var(--tabs-bottom); z-index: 40;
}
.tabs__inner { display: flex; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.tab {
  position: relative; display: flex; align-items: center;
  border: 1px solid var(--ink); border-bottom: 0; border-radius: 8px 8px 0 0;
  background: var(--bg); padding: 2px 16px; margin-left: -8px;
  font-size: 10px; letter-spacing: 1px; line-height: 20px; font-weight: 300;
  color: var(--muted); text-transform: none; transition: color .15s;
}
.tab:first-child { margin-left: 0; }
@media (min-width: 768px) { .tab { padding-top: 4px; margin-left: -12px; } }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--accent); }
.tabs__line {
  position: fixed; left: 0; right: 0; bottom: var(--tabs-bottom); height: 1px;
  background: var(--ink); z-index: 39; pointer-events: none;
}
.tabs__foot {
  position: fixed; left: 0; right: 0; bottom: 0; height: var(--tabs-bottom);
  background: var(--bg); z-index: 20;
}

/* ---------- Horizontal carousels (Commissions / Projects) ---------- */
.carousel {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 48px var(--gutter) 32px calc(50vw - min(40vw, 360px));
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel::after { content: ""; flex: 0 0 calc(50vw - min(40vw, 360px) - 24px); }
.slide { flex: 0 0 min(80vw, 720px); scroll-snap-align: center; }
.slide__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--faint); }
.slide__ph { width: 100%; aspect-ratio: 4 / 3; background: var(--faint); display:flex; align-items:center; justify-content:center; color: var(--muted); }
.slide__title { text-align: center; margin-top: 8px; }
.slide:hover .slide__title { color: var(--accent); }
.slide:hover .slide__img { opacity: .9; }
.carousel-hint { text-align: center; color: var(--muted); font-size: 12px; padding-bottom: 32px; }

/* ---------- Detail page ---------- */
.detail { max-width: 1200px; margin: 0 auto; padding: 32px var(--gutter) 30vh; }
.detail__back { display: inline-block; color: var(--muted); margin-bottom: 24px; }
.detail__back:hover { color: var(--accent); }
.detail__media { display: flex; flex-direction: column; gap: 32px; align-items: center; }
.detail__media img { max-height: 82vh; width: auto; max-width: 100%; object-fit: contain; }
.video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.detail__info { text-align: center; max-width: 640px; margin: 24px auto 40px; }
.detail__title { margin: 0; font-size: 15px; font-weight: 400; }
.detail__meta { color: var(--muted); }
.detail__desc { margin-top: 12px; white-space: pre-line; }
.detail__gallery { display: flex; flex-direction: column; gap: 32px; align-items: center; }
.detail__gallery img { max-height: 90vh; width: auto; max-width: 100%; }
.detail__nav { display: flex; justify-content: space-between; margin-top: 56px; color: var(--muted); }
.detail__nav a:hover { color: var(--accent); }

/* ---------- About ---------- */
.about {
  max-width: 1200px; margin: 0 auto; padding: 32px var(--gutter) 80px;
  display: grid; grid-template-columns: 1fr; gap: 40px;
}
@media (min-width: 900px) { .about { grid-template-columns: 5fr 7fr; gap: 64px; padding-top: 48px; } }
.about__img img { width: 100%; height: auto; }
@media (min-width: 900px) { .about__img { position: sticky; top: 90px; align-self: start; } }
.about__text p { margin: 0 0 16px; max-width: 62ch; }
.about__credits { margin-top: 40px; }
.about__credits h2 { font-size: 16px; margin: 28px 0 8px; }
.about__credits ul { list-style: none; margin: 0; padding: 0; }
.about__credits li { margin: 0 0 4px; }
.credit-link { border-bottom: 1px solid var(--line); }
.credit-link:hover { color: var(--accent); border-color: currentColor; }
.about__contact { margin-top: 40px; display: flex; gap: 24px; flex-wrap: wrap; }
.about__contact a, .link { color: var(--ink); border-bottom: 1px solid currentColor; }
.about__contact a:hover, .link:hover { color: var(--accent); }

/* ---------- Book ---------- */
.book { max-width: 1000px; margin: 0 auto; padding: 32px var(--gutter) 80px; }
.book__heading { text-align: center; margin-top: 24px; }
.book__intro { text-align: center; max-width: 560px; margin: 16px auto 24px; }
.book__contact { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.book__frame { width: 100%; height: 900px; border: 0; }
@media (min-width: 768px) { .book__frame { height: 760px; } }

/* ---------- Footer (non-home pages) ---------- */
.site-footer { padding: 24px; display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.site-footer a:hover { color: var(--accent); }

.loading { text-align: center; color: var(--muted); padding: 120px 0; }

/* ---------- Coverflow (Artworks / Commissions / Projects) ---------- */
.cf-wrap { --h: min(60svh, 100vw, 720px); --maxw: 76vw; }
@media (min-width: 768px) { .cf-wrap { --h: min(64svh, 760px); --maxw: 54vw; } }
.cf {
  position: relative; display: flex; align-items: center;
  height: calc(100svh - 64px - var(--tabs-bottom) - 8px); min-height: calc(var(--h) + 90px);
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  padding: 0 50vw 0 50vw; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  outline: none; overscroll-behavior-x: contain;
}
.cf::-webkit-scrollbar { display: none; }
.cf__item {
  position: relative; flex: 0 0 auto; scroll-snap-align: center;
  margin: 0 calc(var(--h) * -0.13);
  transform-origin: center center; will-change: transform, filter;
}
.cf__frame { position: relative; height: min(var(--h), calc(var(--maxw) / var(--ar, .75))); aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg); box-shadow: 0 10px 40px rgba(0,0,0,.18); }
.cf__frame img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.cf__frame img.is-loaded { opacity: 1; }
.cf__frame::after { content: ""; position: absolute; inset: 0; background: var(--bg); opacity: var(--fade, 0); pointer-events: none; }
.cf__cap {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  margin-top: 14px; white-space: nowrap; text-align: center;
  opacity: var(--cap, 0); pointer-events: none;
}
.cf__item.is-active:hover .cf__cap { color: var(--accent); }
.cf .empty { flex: 0 0 auto; transform: translateX(-50%); }

/* ---------- Long reading text in sans (mono stays for menu, captions, tabs, credits) ---------- */
.about__text p, .book__intro, .detail__desc {
  font-family: var(--font-sys); font-size: 15px; line-height: 1.6; letter-spacing: -0.005em;
}
.about__text p .hl, .book__intro .hl, .detail__desc .hl { font-size: 1.02em; letter-spacing: -0.02em; }
.about__text p { font-size: 13.5px; line-height: 1.6; }
/* About: wider side margins, smaller polaroid */
.about { padding-left: max(32px, 9vw); padding-right: max(32px, 9vw); max-width: 1100px; }
.about__img { max-width: 240px; margin: 0 auto; width: 100%; }
@media (min-width: 900px) {
  .about { padding-left: clamp(56px, 9vw, 150px); padding-right: clamp(56px, 9vw, 150px); grid-template-columns: 4fr 8fr; }
  .about__img { max-width: 300px; margin: 0; }
}
/* ---------- Back to the original lettering everywhere; static logo A ---------- */
:root { --font: var(--font-sys); }
body { font-size: 14px; line-height: 20px; }
.nav a, .menu-panel a { text-transform: none; font-weight: 300; font-size: 14px; }
.hl { font-family: inherit; font-weight: 600; letter-spacing: normal; font-size: inherit; }
.display { font-family: inherit; font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; font-size: clamp(30px, 4.2vw, 52px); margin: 0 0 24px; }
.about__text p, .book__intro, .detail__desc { font-family: inherit; letter-spacing: normal; }
.book__intro, .detail__desc { font-size: 14px; line-height: 20px; }
.about__credits h2 { font-size: 14px; }
.detail__title { font-size: 14px; }
.logo-a { font-family: var(--font-hl); font-weight: 900; font-size: 26px; letter-spacing: -0.075em; line-height: 1; text-transform: lowercase; color: var(--ink); padding-right: .08em; }
.logo-a:hover { opacity: .7; }
/* ---------- Name in the reference's fonts (header: Arial light; cover: system bold caps) ---------- */
.logo-a { font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-weight: 300; font-size: 14px; line-height: 20px; letter-spacing: normal; text-transform: capitalize; color: var(--muted); padding-right: 0; }
.logo-a:hover { opacity: .8; }
.splash__name { font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-weight: 700; letter-spacing: -0.02em; line-height: 20px; -webkit-font-smoothing: antialiased; }
/* ---------- Cover: full-bleed photo + the reference's curtain motion ---------- */
.splash { transition: transform .75s cubic-bezier(.86, 0, .07, .995); will-change: transform; transform: translateY(0); }
.splash.is-leaving { transform: translateY(100%); }
.splash.is-peeking { animation: splashPeek 1.5s cubic-bezier(.86, 0, .07, .995) both; }
@keyframes splashPeek { 0% { transform: translateY(0); } 50% { transform: translateY(40%); } 100% { transform: translateY(0); } }
.splash img { transform: scale(1.07); transform-origin: center; }
.splash__chevron { opacity: .72; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .24)); animation: splashChevron 2.8s ease-in-out infinite; }
@keyframes splashChevron { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 4px); } }
@keyframes splashHeaderIn { 0% { opacity: 0; transform: translateY(-80%); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes splashTabsIn { 0% { opacity: 0; transform: translateY(100%); } 100% { opacity: 1; transform: translateY(0); } }
html.splash-dismissing .site-header { animation: splashHeaderIn 1.6s cubic-bezier(.86, 0, .07, .995) both; }
html.splash-dismissing .tabs { animation: splashTabsIn 1.45s cubic-bezier(.86, 0, .07, .995) .15s both; }
@media (prefers-reduced-motion: reduce) { .splash, .splash__chevron { animation: none !important; } html.splash-dismissing .site-header, html.splash-dismissing .tabs { animation: none; } }
.splash__name { font-weight: 300; }
