:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
  color: #e5e5e7;
  background: #000;
  --ink: #e5e5e7;
}
* { box-sizing: border-box; }
body { margin: 0; background: #000; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:focus-visible, a:focus-visible { outline: 2px solid #a8b7ca; outline-offset: 6px; }
[hidden] { display: none !important; }
.system { min-height: 100svh; display: flex; flex-direction: column; position: relative; isolation: isolate; }
.corner-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 42px;
  padding: calc(6px + env(safe-area-inset-top)) 20px 6px;
  border-top: 1px solid #b6b6bb80;
  border-bottom: 1px solid #020203;
  background: linear-gradient(180deg, #626266 0%, #37373b 8%, #242427 48%, #0c0c0e 49%, #171719 100%);
  box-shadow: inset 0 1px 0 #ffffff38, inset 0 -1px 0 #bcbcc233, 0 2px 8px #000a;
  color: #eeeeef;
  text-shadow: 0 -1px 1px #000;
}
.site-name { padding: 3px 0; font-size: 14px; font-weight: bold; letter-spacing: 1.4px; text-decoration: none; }
.site-name:hover { color: #fff; }
.live-clock {
  padding: 3px 10px;
  border: 1px solid #020203;
  border-radius: 4px;
  background: linear-gradient(#030304, #151517);
  box-shadow: inset 0 1px 3px #000d, 0 1px 0 #bcbcc24d;
  color: #ececef;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 1.4px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-shadow: 0 0 3px #ffffff26;
}
/* Stálá vrstva mimo animované ikony; při návratu se znovu nevytváří. */
.wallpaper {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  contain: strict;
  background: #000;
  transform: translateZ(0);
}
/* Téměř černá tapeta s velmi jemným pomalým odleskem. */
.wallpaper:before {
 content: ''; position: absolute; inset: -15%; pointer-events: none;
 background: radial-gradient(ellipse at 30% 65%, #171923 0%, #090a10 28%, transparent 62%);
 opacity: .32; transform: translate3d(-2%, 0, 0);
 animation: chrome-drift 28s ease-in-out infinite alternate;
}
.wallpaper:after {
 content: ''; position: absolute; inset: -15%; pointer-events: none;
 background: radial-gradient(ellipse at 75% 30%, #13151d 0%, transparent 52%);
 opacity: .15; animation: chrome-light 24s ease-in-out infinite alternate;
}
@keyframes chrome-drift {
 from { transform: translate3d(-2%, -1%, 0); }
 to { transform: translate3d(2%, 1%, 0); }
}
@keyframes chrome-light {
 from { opacity: .1; transform: translate3d(1%, 0, 0); }
 to { opacity: .25; transform: translate3d(-1%, 1%, 0); }
}
.system:not(.home-visible) .wallpaper:before, .system:not(.home-visible) .wallpaper:after,
.page-hidden .wallpaper:before, .page-hidden .wallpaper:after { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
 .wallpaper:before, .wallpaper:after { animation: none; }
}
main { flex: 1; min-width: 0; padding: 48px 24px; background: #000; outline: none; }
main.home-screen {
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: clip;
  padding: 0;
  background: transparent;
  cursor: grab;
  touch-action: auto;
  user-select: none;
  -webkit-user-select: none;
}
.home-content { width: 100%; min-width: 0; display: flex; flex-direction: column; text-align: center; }
.home-viewport { width: 100%; flex: 1; min-height: 560px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; touch-action: pan-x pan-y; }
.home-viewport::-webkit-scrollbar { display: none; }
.home-track { display: flex; width: 100%; height: 100%; min-height: 100%; }
.home-screen.is-dragging, .home-screen.is-dragging * { cursor: grabbing !important; }
.home-screen.is-dragging .home-viewport { scroll-snap-type: none; }
.home-viewport a, .home-viewport img { -webkit-user-drag: none; }
.home-page { flex: 0 0 100%; width: 100%; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 28px 24px; scroll-snap-align: start; scroll-snap-stop: always; }
.home-page .app-grid { width: 100%; }
.page-dots { display: flex; align-items: center; justify-content: center; gap: 2px; margin-top: 0; padding-bottom: max(18px, env(safe-area-inset-bottom)); flex-shrink: 0; }
.page-dot { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; }
.page-dot span { width: 7px; height: 7px; border-radius: 50%; background: #414146; box-shadow: inset 0 1px 1px #000, 0 1px 0 #ffffff24; }
.page-dot[aria-current="page"] span { background: linear-gradient(#fff, #b9bac1); box-shadow: 0 0 5px #ffffff38, inset 0 1px 0 #fff; }
.page-dot:hover span { background: #a3a3ab; }
.page-dot[aria-current="page"]:hover span { background: #fff; }
.latest-widget { width: 100%; max-width: 550px; display: block; overflow: hidden; border: 1px solid #686871; border-top-color: #bdbdc699; border-radius: 22px; text-align: left; text-decoration: none; color: #eeeef1; background: linear-gradient(#303036, #101013); box-shadow: inset 0 1px 0 #ffffff4d, 0 4px 16px #0009; }
.widget-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; font-size: 14px; font-weight: bold; text-shadow: 0 -1px #000; background: linear-gradient(#55555c, #323238 48%, #17171b 49%, #24242a); border-bottom: 1px solid #09090c; }
.widget-badge { font-size: 10px; letter-spacing: 1px; padding: 4px 7px; border: 1px solid #ffffff2b; border-radius: 4px; background: #0006; color: #c5c5cf; }
.widget-art { position: relative; min-height: 250px; display: grid; place-items: center; padding: 28px; background: linear-gradient(135deg, #141416, #030304 55%, #1b1b20); border-bottom: 1px solid #38383f; }
.widget-art:before, .widget-art:after { content: ''; position: absolute; inset: 18px; border: 1px solid #ffffff30; pointer-events: none; }
.widget-art:after { inset: 23px; border-color: #ffffff0c; }
.widget-wordmark { display: block; max-width: 9ch; text-align: center; font-size: clamp(34px, 6vw, 52px); line-height: .96; font-weight: 900; letter-spacing: -1.5px; color: #ececef; text-shadow: 0 2px 0 #000; }
.widget-footer { padding: 18px 20px; background: linear-gradient(#29292f, #202025 48%, #111114 49%, #19191e); box-shadow: inset 0 1px 0 #ffffff1a; }
.widget-footer strong { display: block; font-size: 15px; margin-bottom: 6px; }
.widget-footer span { font-size: 12px; line-height: 1.6; color: #a6a6b2; }
.latest-widget:hover { border-color: #b7b7c0; }
.latest-widget:active { box-shadow: inset 0 2px 5px #000c; }
.latest-detail-art { margin-top: 24px; border: 1px solid #393940; border-radius: 10px; overflow: hidden; }
.home-launch--preparing .home-page:not([inert]) .latest-widget { opacity: 0; transform: translate3d(0, 20px, 0); }
.home-launch--active .home-page:not([inert]) .latest-widget { animation: widget-arrive 620ms cubic-bezier(.2, .65, .3, 1) both; }
@keyframes widget-arrive { from { opacity: 0; transform: translate3d(0, 20px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 62px; row-gap: 34px; max-width: 550px; margin: auto; }
.app { display: flex; flex-direction: column; align-items: center; gap: 12px; text-decoration: none; border-radius: 18px; }
/* Ikony mají stále stejnou velikost: animujeme pouze hotové malé vrstvy. */
.home-launch--preparing .app {
  opacity: 0;
  transform: translate3d(var(--launch-x), var(--launch-y), 0);
}
.home-launch--preparing .app, .home-launch--active .app {
  will-change: transform, opacity;
}
.home-launch--active .app {
  animation: springboard-launch 620ms cubic-bezier(.2, .65, .3, 1) both;
}
.home-page[inert] .app { animation: none; will-change: auto; opacity: 1; transform: none; }
.home-launch--preparing .wallpaper {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
}
.home-launch--preparing .wallpaper, .home-launch--active .wallpaper {
  will-change: transform, opacity;
}
.home-launch--active .wallpaper {
  animation: wallpaper-launch 620ms cubic-bezier(.2, .65, .3, 1) both;
}
.home-launch--preparing .app-icon, .home-launch--active .app-icon {
  transition: none;
  transform: none;
}
@keyframes springboard-launch {
  from { opacity: 0; transform: translate3d(var(--launch-x), var(--launch-y), 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes wallpaper-launch {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
.app-label { font-size: 15px; font-weight: bold; color: #c6c6cd; white-space: nowrap; text-shadow: 0 1px 2px #000; }
.app-icon {
  --top: #383b43;
  --bottom: #15171d;
  width: 112px;
  height: 112px;
  border: 1px solid #ffffff38;
  border-radius: 25px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(var(--top), var(--bottom));
  box-shadow: 0 5px 16px #000;
  transition: transform .17s;
}
/* Stejný statický odlesk zespodu u všech devíti ikon. */
.app-icon:before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 -2px 2px #ffffffe6, inset 1px 0 1px #ffffff35, inset -1px 0 1px #ffffff35, inset 0 1px 2px #00000066;
}
.app-icon:after {
  content: '';
  position: absolute;
  inset: 48% 0 0;
  z-index: 1;
  pointer-events: none;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(to top, #ffffff99, #ffffff30 48%, #ffffff08);
  box-shadow: inset 0 1px 0 #ffffff26;
}
.app-icon svg { width: 70%; height: 70%; position: relative; }
.app-icon img { display: block; width: 100%; height: 100%; object-fit: cover; }
.app:hover .app-icon { transform: translateY(-4px); border-color: #ffffff80; }
.app:active .app-icon { transform: scale(.97); border-color: #ffffffb3; }
.icon-identity {
  --top: #120610;
  --bottom: #030103;
}
.icon-video {
  --top: #081333;
  --bottom: #020719;
}
.icon-web {
  --top: #052a2c;
  --bottom: #010909;
}
.icon-music {
  --top: #8bb9ec;
  --bottom: #092b72;
}
.icon-archive {
  --top: #26374f;
  --bottom: #0d1522;
}
.icon-about {
  --top: #3c080d;
  --bottom: #100102;
}
.icon-contact {
  --top: #4d2618;
  --bottom: #180c08;
}
.icon-instagram {
  --top: #82421e;
  --bottom: #2e160d;
}
.icon-email {
  --top: #20252d;
  --bottom: #050609;
}
.section-back { max-width: 760px; margin: 0 auto 24px; }
.glass-button {
  display: inline-block;
  padding: 10px 17px;
  min-height: 42px;
  border: 1px solid #65656e;
  border-top-color: #b9b9c18c;
  border-radius: 7px;
  color: #eeeef1;
  background: linear-gradient(180deg, #62626a 0%, #3c3c44 9%, #2b2b32 48%, #141418 49%, #25252c 100%);
  box-shadow: inset 0 1px 0 #ffffff5c, inset 0 -1px 0 #ffffff1f, 0 2px 5px #0009;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  text-shadow: 0 -1px 1px #000;
  transition: transform .12s;
}
.glass-button:hover, .glass-button:focus-visible {
  border-color: #a5a5b0;
  background: linear-gradient(180deg, #72727b 0%, #494952 9%, #34343c 48%, #1b1b20 49%, #303038 100%);
}
.glass-button:active {
  transform: translateY(1px);
  background: linear-gradient(180deg, #151519 0%, #292930 52%, #38383f 100%);
  box-shadow: inset 0 2px 4px #000b, 0 1px 0 #ffffff26;
}
.content { max-width: 760px; margin: 0 auto; animation: arrive .22s ease-out; }
.section-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 4px 7px 17px; }
.section-heading h2 { font-size: 15px; margin: 0; color: #c4c4cf; }
.section-heading span { font-size: 12px; color: #9999a6; }
.list { overflow: hidden; border: 1px solid #4d4d56; border-top-color: #8e8e985c; border-radius: 12px; background: #131316; box-shadow: 0 1px 0 #ffffff12, 0 3px 8px #0009; }
.list-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #09090c;
  background: linear-gradient(180deg, #45454c 0%, #2d2d33 7%, #222227 48%, #121215 49%, #1a1a1f 100%);
  box-shadow: inset 0 1px 0 #ffffff26, inset 0 -1px 0 #ffffff0a;
  padding: 16px 19px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: var(--ink);
  text-shadow: 0 1px 1px #0009;
}
.list-row:last-child { border-bottom: 0; }
.list-row:hover, .list-row:focus-visible {
  background: linear-gradient(180deg, #555560 0%, #3a3a45 7%, #2d2d37 48%, #1e1e26 49%, #292933 100%);
  color: white;
}
.list-row:focus-visible { outline-offset: -3px; }
.list-row:active {
  background: linear-gradient(180deg, #111115 0%, #222229 52%, #2d2d36 100%);
  box-shadow: inset 0 2px 5px #0009;
}
.row-thumb {
  width: 51px;
  height: 51px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid #64646f;
  border-radius: 9px;
  color: #eee;
  font-family: Georgia, serif;
  font-size: 26px;
  background: linear-gradient(180deg, #5b5b68 0%, #383843 10%, #2d2d37 48%, #17171e 49%, #24242e 100%);
  box-shadow: inset 0 1px 0 #ffffff5c, inset 0 -1px 0 #ffffff14, 0 2px 4px #0008;
}
.row-copy { flex: 1; }
.row-copy strong { display: block; font-size: 17px; margin-bottom: 5px; }
.row-copy small { font-size: 13px; color: #a0a0ad; }
.list-row:hover small { color: #c7c7d3; }
.chevron { width: 9px; height: 9px; border-right: 3px solid #747480; border-top: 3px solid #747480; transform: rotate(45deg); margin: 0 4px; }
.list-row:hover .chevron { border-color: #c7c7d3; }
.helper { font-size: 13px; color: #a0a0ac; line-height: 1.7; padding: 0 8px; margin-top: 17px; }
.detail-card { padding: 25px; background: #141417; border: 1px solid #33333b; border-radius: 12px; box-shadow: 0 2px 4px #0008; }
.detail-card h2 { font-size: 28px; margin: 9px 0 12px; letter-spacing: -.8px; }
.detail-card p { font-size: 16px; line-height: 1.7; color: #ababba; }
.detail-tag { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: #a1a1af; }
.project-art { min-height: 270px; margin-top: 25px; border-radius: 5px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; color: #d9d9e0; background: linear-gradient(135deg, #08080b, #2b2b35); overflow: hidden; }
.project-art .art-type { font-family: Georgia, serif; font-style: italic; font-size: clamp(48px, 10vw, 88px); letter-spacing: -5px; }
.project-art small { letter-spacing: 5px; font-size: 11px; }
.meta { display: flex; gap: 30px; border-top: 1px solid #33333b; margin-top: 22px; padding-top: 16px; flex-wrap: wrap; }
.meta span { font-size: 13px; color: #a0a0ae; }
.meta strong { display: block; font-size: 14px; color: #d6d6df; margin-top: 5px; }
.portrait-placeholder { width: 100px; height: 100px; border-radius: 15px; background: linear-gradient(#3a3a46, #202029); display: grid; place-items: center; margin-bottom: 20px; }
.portrait-placeholder svg { width: 72px; filter: saturate(.2) brightness(.75); }
.inline-notice { margin-top: 20px; border-top: 1px solid #33333b; padding-top: 15px; }
.detail-card .glass-button { margin: 8px 0; }
.contact-title { padding: 3px 5px 15px; font-size: 26px; letter-spacing: -.7px; margin: 0; }
.contact-intro { margin: 0 5px 24px; color: #ababba; line-height: 1.6; font-size: 16px; }
@keyframes arrive { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }
@media (min-height: 900px) and (min-width: 700px) {
  .home-viewport { min-height: 610px; }
  .app-grid { row-gap: 40px; }
  .app-icon { width: 126px; height: 126px; border-radius: 28px; }
}
@media (max-width: 600px) {
  .corner-header { min-height: 40px; padding: calc(6px + env(safe-area-inset-top)) 12px 6px; }
  .site-name { font-size: 12px; letter-spacing: 1px; }
  .live-clock { font-size: 12px; letter-spacing: 1px; padding: 3px 8px; }
  main { padding: 30px 17px; }
  .app-grid { column-gap: 10px; row-gap: 28px; max-width: 380px; }
  .app-icon { width: 84px; height: 84px; border-radius: 20px; }
  .app-label { font-size: 12px; }
  .app { gap: 9px; }
  .home-viewport { min-height: 430px; }
  .home-page { padding: 24px 17px; }
  .widget-header, .widget-footer { padding: 15px 17px; }
  .widget-art { min-height: 235px; }
  .section-heading { padding-left: 2px; padding-right: 2px; }
  .section-heading span { font-size: 11px; }
  .list-row { padding: 15px 13px; gap: 12px; }
  .row-copy strong { font-size: 16px; }
  .row-copy small { font-size: 12px; }
  .detail-card { padding: 20px; }
  .detail-card h2 { font-size: 25px; }
  .project-art { min-height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-launch--preparing .latest-widget { opacity: 1; transform: none; }
  .home-launch--preparing .app, .home-launch--preparing .wallpaper { opacity: 1; transform: none; }
  .home-launch--preparing .app, .home-launch--active .app,
  .home-launch--preparing .wallpaper, .home-launch--active .wallpaper { will-change: auto; }
  *, *:before, *:after { animation: none !important; transition: none !important; }
}

/* Compact glass language control beside the clock. */
.header-tools { display: flex; align-items: center; gap: 10px; }
.language-switch { display: flex; border: 1px solid #070708; border-radius: 5px; overflow: hidden; box-shadow: inset 0 1px 0 #ffffff30, 0 1px 0 #ffffff25; }
.language-switch button { border: 0; border-right: 1px solid #080809; padding: 5px 8px; color: #aaaab2; font-size: 11px; font-weight: 700; background: linear-gradient(#3b3b40 0%, #252529 48%, #111114 49%, #202024 100%); text-shadow: 0 -1px #000; }
.language-switch button:last-child { border-right: 0; }
.language-switch button[aria-pressed="true"] { color: white; background: linear-gradient(#66666e 0%, #414149 48%, #242429 49%, #35353d 100%); box-shadow: inset 0 1px 0 #ffffff60; }
.language-switch button:focus-visible { outline-offset: -3px; }
@media (max-width: 420px) { .corner-header { gap: 8px; padding-left: 10px; padding-right: 10px; } .header-tools { gap: 5px; } .site-name { font-size: 11px; letter-spacing: .6px; } .language-switch button { padding: 5px 6px; } }

.about-card .about-birth { margin-top: -8px; font-size: 16px; }
.about-section { margin-top: 32px; padding-top: 24px; border-top: 1px solid #33333b; }
.about-section h3 { margin: 0 0 22px; font-size: 18px; }
.about-entry + .about-entry { margin-top: 26px; }
.about-entry h4 { margin: 6px 0; font-size: 16px; line-height: 1.6; color: #e5e5e7; }
.about-entry p { margin: 4px 0; font-size: 15px; line-height: 1.6; }
.about-entry .about-period { font-size: 13px; color: #a0a0ae; }

.about-intro { display: grid; grid-template-columns: 1fr minmax(180px, 300px); gap: 28px; align-items: center; }
.about-photo { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid #55555f; box-shadow: 0 6px 24px #0008; }
@media (max-width: 600px) { .about-intro { grid-template-columns: 1fr; gap: 16px; } .about-photo { max-width: 360px; } }

/* Stejné tmavé sklo jako horní lišta a ovládací prvky. */
.about-card {
  background: linear-gradient(160deg, #ffffff0c, transparent 42%), linear-gradient(180deg, #34343b 0, #222228 95px, #111115 210px, #19191e 100%);
  border-color: #55555f;
  border-top-color: #9696a0;
  box-shadow: inset 0 1px 0 #ffffff55, inset 0 -1px 0 #ffffff16, 0 12px 32px #0009;
  text-shadow: 0 1px 1px #0009;
}
.about-photo-frame {
  position: relative; overflow: hidden; padding: 5px; border-radius: 17px;
  border: 1px solid #777781;
  background: linear-gradient(180deg, #73737e, #393941 12%, #141418 50%, #41414b);
  box-shadow: inset 0 1px 0 #ffffff85, inset 0 -1px 0 #ffffff35, 0 7px 20px #0009;
}
.about-photo-frame .about-photo { border: 1px solid #101014; border-radius: 11px; box-shadow: none; }
.about-photo-frame:after {
  content: ''; position: absolute; inset: 5px; border-radius: 11px; pointer-events: none;
  background: linear-gradient(170deg, transparent 45%, #ffffff05 62%, #ffffff28 100%);
  box-shadow: inset 0 -1px 0 #ffffff65;
}
.about-section { padding: 0; border: 1px solid #50505b; border-radius: 12px; overflow: hidden; background: #141418; box-shadow: inset 0 -1px 0 #ffffff14, 0 3px 10px #0006; }
.about-section h3 {
  padding: 13px 18px; margin: 0; border-bottom: 1px solid #09090c;
  background: linear-gradient(180deg, #55555f 0%, #35353e 10%, #2c2c33 48%, #17171c 49%, #25252c 100%);
  box-shadow: inset 0 1px 0 #ffffff50, inset 0 -1px 0 #ffffff12;
}
.about-entry { padding: 17px 18px; background: linear-gradient(180deg, #ffffff04, transparent 55%, #ffffff05); }
.about-entry + .about-entry { margin-top: 0; border-top: 1px solid #08080b; box-shadow: inset 0 1px 0 #ffffff18; }
@media (max-width: 600px) { .about-photo-frame { max-width: 360px; } }

.gmt-project { background: linear-gradient(160deg, #303037, #111115 250px, #19191e); border-color: #62626d; box-shadow: inset 0 1px 0 #ffffff55, 0 8px 28px #0008; }
.gmt-project h2 { font-size: clamp(22px, 5vw, 34px); overflow-wrap: anywhere; }
.project-facts { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 22px; }
.project-facts span { padding: 6px 11px; border: 1px solid #55555f; border-radius: 7px; font-size: 12px; color: #c9c9d1; background: linear-gradient(#45454e, #27272e 48%, #16161b 49%, #25252d); box-shadow: inset 0 1px 0 #ffffff38; }
.project-preview { display: block; padding: 12px; border: 1px solid #575761; border-radius: 12px; background: #050506; box-shadow: inset 0 1px 0 #ffffff25; }
.project-preview img { display: block; width: 100%; height: auto; }
.gmt-project h3 { font-size: 20px; line-height: 1.5; margin-top: 26px; }
.project-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.project-actions .glass-button { font-size: 14px; text-align: center; }
.widget-project-preview { display: flex; flex-direction: column; gap: 12px; padding: 24px 18px; background: #050506; }
.widget-project-preview:before, .widget-project-preview:after { display: none; }
.widget-project-preview img { display: block; width: 100%; height: auto; }
.widget-project-name { font-size: clamp(20px, 4vw, 28px); font-weight: 700; letter-spacing: -.5px; }

.project-row-thumb { position: relative; width: 90px; height: 62px; padding: 4px; overflow: hidden; background: #060607; }
.project-row-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.project-row-thumb:after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(170deg, transparent 40%, #ffffff07 65%, #ffffff26); box-shadow: inset 0 1px 0 #ffffff40; }
@media (max-width: 420px) { .project-row-thumb { width: 68px; height: 54px; } .row-copy { min-width: 0; } .row-copy strong { overflow-wrap: anywhere; } }

.project-video { overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid #666670; border-radius: 12px; background: #050506; box-shadow: 0 1px 0 #ffffff20; }
.project-video iframe { display: block; width: 100%; height: 100%; border: 0; }

.project-gallery { display: grid; gap: 20px; }

.section-back { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.project-layout-switch { display: flex; gap: 6px; }
.project-layout-switch .glass-button { display: grid; place-items: center; width: 43px; height: 42px; padding: 10px; color: #aaaab5; }
.project-layout-switch svg { display: block; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.project-layout-switch [aria-pressed="true"] { color: #fff; border-color: #a5a5b0; background: linear-gradient(#73737e, #4b4b56 48%, #282831 49%, #3c3c48); box-shadow: inset 0 1px 0 #ffffff80, 0 1px 4px #0009; }
.projects-grid .list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; overflow: visible; background: none; border: 0; box-shadow: none; }
.projects-grid .list-row { display: flex; flex-direction: column; align-items: stretch; gap: 13px; padding: 12px; border: 1px solid #555560; border-radius: 12px; overflow: hidden; min-width: 0; box-shadow: inset 0 1px 0 #ffffff45, 0 4px 10px #0008; }
.projects-grid .row-thumb { width: 100%; height: auto; aspect-ratio: 1; padding: 5px; font-size: 42px; }
.projects-grid .row-thumb img { width: 100%; height: 100%; object-fit: contain; }
.projects-grid .row-copy { min-width: 0; }
.projects-grid .row-copy strong { font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.projects-grid .row-copy small { display: block; font-size: 12px; line-height: 1.5; }
.projects-grid .chevron { display: none; }
@media (max-width: 600px) { .projects-grid .list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 340px) { .projects-grid .list { gap: 8px; } .projects-grid .list-row { padding: 9px; } .projects-grid .row-copy strong { font-size: 13px; } }

/* Dock stays below both home pages, outside the swipe area. */
.home-dock { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; column-gap: 62px; width: min(600px, calc(100% - 20px)); box-sizing: border-box; margin: 0 auto max(16px, env(safe-area-inset-bottom)); padding: 18px 24px 12px; border: 1px solid #64646e; border-top-color: #a5a5af; border-radius: 28px; background: linear-gradient(180deg, #515159 0%, #2b2b32 9%, #202026 48%, #09090d 49%, #19191f 100%); box-shadow: inset 0 1px 0 #ffffff65, inset 0 -1px 0 #ffffff28, 0 8px 26px #000b; cursor: default; }
.home-dock .app { min-width: 0; }
.icon-browse { background: linear-gradient(145deg, #606775, #292d38 48%, #0b0d13); }
.icon-browse svg { fill: #e4e9f2; stroke: #ffffff55; stroke-width: 1; }
.icon-secret { background: linear-gradient(145deg, #36363e, #0b0b10 60%, #202029); }
.home-content .page-dots { padding-bottom: 5px; }
.browse-year + .browse-year { margin-top: 30px; }
.browse-year > h2 { font-size: 18px; margin: 0 4px 14px; color: #c6c6d0; }
.secret-placeholder { text-align: center; padding: 50px 25px; }
@media (max-width: 600px) { .home-dock { width: calc(100% - 12px); max-width: 402px; gap: 10px; padding: 14px 10px 10px; border-radius: 24px; } .home-viewport { min-height: 430px; } }

.trash-game { max-width: 520px; }
.game-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.game-heading h2 { font-size: 26px; margin: 0; letter-spacing: -1px; }
.game-pause { font-size: 13px; padding: 10px 15px; }
.game-pause:disabled { opacity: .4; cursor: default; }
.game-intro, .game-help { color: #aab0c0; line-height: 1.5; font-size: 13px; }
.game-hud { display: grid; grid-template-columns: repeat(3,1fr); margin: 18px 0 12px; border: 1px solid #626673; border-radius: 10px; overflow: hidden; background: linear-gradient(#474a55,#282c36 48%,#11151e 49%,#202633); box-shadow: inset 0 1px 0 #ffffff60; }
.game-hud span { padding: 10px; font-size: 11px; color: #c0c6d3; text-align: center; border-right: 1px solid #ffffff18; }
.game-hud span:last-child { border: 0; }
.game-hud strong { display: block; margin-top: 5px; color: #f1f4ff; font-size: 20px; font-variant-numeric: tabular-nums; }
.game-stage { position: relative; border: 1px solid #737b8d; border-radius: 15px; overflow: hidden; background: #080b12; box-shadow: 0 10px 35px #0009; }
.game-stage canvas { display: block; width: 100%; height: auto; aspect-ratio: 480 / 560; touch-action: none; cursor: none; }
.game-stage canvas:focus-visible { outline: 2px solid #c4d2ee; outline-offset: -4px; }
.game-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px; text-align: center; background: #080b12dc; }
.game-overlay h3 { font-size: 24px; margin: 0 0 14px; }
.game-overlay p { max-width: 320px; color: #bdc5d8; font-size: 14px; line-height: 1.7; margin: 0 0 22px; }
.game-help { text-align: center; font-size: 12px; }
@media (max-width: 600px) { main:has(.trash-game) { padding-top: 18px; } #detail-view:has(.trash-game) .section-back { margin-bottom: 18px; } .game-intro { margin: 8px 0; } .game-hud { margin-top: 12px; } }

/* Simple colourful dock glyphs under the shared bottom glass reflection. */
.home-dock { padding-bottom: 18px; }
.home-dock .app-icon svg { width: 72%; height: 72%; fill: #fff; filter: drop-shadow(0 2px 1px #0005); }
.dock-contact { background: linear-gradient(155deg, #8df975 0%, #41c34e 45%, #148a37 53%, #0c5928 100%); }
.dock-browse { background: linear-gradient(155deg, #ffce75 0%, #f89532 45%, #d85c0e 53%, #943409 100%); }
.dock-secret { background: linear-gradient(155deg, #cf9dff 0%, #9858df 45%, #6c2bab 53%, #3d146d 100%); }

.software-list { list-style: none; margin: 0; padding: 0; }
.software-list li { display: flex; align-items: center; gap: 16px; padding: 14px 18px; font-size: 16px; color: #e5e5ed; background: linear-gradient(180deg, #ffffff05, transparent 60%); }
.software-list li + li { border-top: 1px solid #08080b; box-shadow: inset 0 1px 0 #ffffff14; }
.software-icon { position: relative; isolation: isolate; flex-shrink: 0; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 11px; border: 1px solid var(--software-color); color: var(--software-color); background: linear-gradient(155deg, var(--software-top), var(--software-base) 55%, #080810); font-size: 25px; font-weight: 700; letter-spacing: -1px; text-shadow: 0 1px 2px #000; box-shadow: inset 0 1px 0 #ffffff55, inset 0 -1px 0 #ffffff30, 0 3px 7px #0008; overflow: hidden; }
.software-icon:after { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(170deg, #ffffff18, transparent 42%, transparent 60%, #ffffff12 78%, #ffffff45); }
.software-photoshop { --software-color: #52c0ff; --software-top: #183b63; --software-base: #061b35; }
.software-illustrator { --software-color: #ffb343; --software-top: #60401d; --software-base: #301700; }
.software-indesign { --software-color: #ff6299; --software-top: #62213f; --software-base: #31081c; }
.software-premiere { --software-color: #bd9cff; --software-top: #402066; --software-base: #170a35; }
.software-aftereffects { --software-color: #b5a4ff; --software-top: #332d67; --software-base: #110d3a; }

/* Archive: uncropped posters, directly browsable without project detail pages. */
.archive-content { max-width: 1000px; }
.archive-gallery { columns: 3; column-gap: 18px; }
.archive-tile { display: block; width: 100%; padding: 5px; margin: 0 0 18px; break-inside: avoid; border: 1px solid #62626d; border-radius: 12px; overflow: hidden; background: linear-gradient(#45454e,#111115 60%,#303038); box-shadow: inset 0 1px 0 #ffffff55, 0 5px 15px #0008; cursor: zoom-in; }
.archive-tile img { display: block; width: 100%; height: auto; border-radius: 7px; }
.archive-tile:hover { border-color: #c4c4d2; }
.archive-lightbox { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; box-sizing: border-box; margin: 0; padding: max(12px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left)); border: 0; background: #050506f5; color: #eeeef4; }
.archive-lightbox[open] { display: flex; flex-direction: column; gap: 12px; }
.archive-lightbox::backdrop { background: #000e; }
.lightbox-toolbar, .lightbox-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-shrink: 0; }
.lightbox-counter, .lightbox-caption { font-size: 13px; color: #bcbcc8; }
.lightbox-caption { text-align: center; }
.lightbox-picture { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.lightbox-picture img { display: block; width: 100%; height: 100%; object-fit: contain; }
.archive-lightbox .glass-button { min-width: 44px; min-height: 44px; padding: 6px 14px; font-size: 27px; line-height: 1; }
@media (max-width:600px) { .archive-gallery { columns: 2; column-gap: 12px; } .archive-tile { margin-bottom: 12px; padding: 3px; border-radius: 9px; } .archive-lightbox { padding-left: 10px; padding-right: 10px; } }
