/* Kashio — jigsaw bento in the logo's yellow, blue and navy. Light only, on purpose. */
:root {
  --yellow: #FEBE24;
  --blue: #067DFD;
  --navy: #041632;
  --bg: #FFFFFF;
  --fg: #041632;
  --muted: #4B5B74;
  --paper: #F3F6FB;
  --line: #DCE3EE;
  --ghost: #9AA9BF;
  --tile-4: #D6E8FF;
  --shadow: rgba(4, 22, 50, .16);
  --fog-glow: rgba(255, 255, 255, .35);
  --f-display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.5 var(--f-body);
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: 1240px; margin: 0 auto; padding-inline: clamp(16px, 3vw, 32px); }

/* nav */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.brand img { height: 40px; width: auto; display: block; }
.nl { display: flex; gap: 22px; align-items: center; font-weight: 600; font-size: 15px; }
.nl a { text-decoration: none; color: var(--muted); }
.nl a:hover { color: var(--fg); }
.nl .btn { display: inline-flex; align-items: center; padding: 11px 18px; border-radius: 999px; font-weight: 700; background: var(--fg); color: var(--bg); }
.nl .btn:hover { color: var(--bg); opacity: .9; }

/* hero */
.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; padding-block: 40px 72px; }
h1 { font: 800 clamp(42px, 6.4vw, 82px)/.98 var(--f-display); letter-spacing: -.035em; margin: 0 0 22px; text-wrap: balance; }
h1 .fit { background: linear-gradient(transparent 62%, var(--yellow) 62% 92%, transparent 92%); padding-inline: .04em; }
.lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--muted); max-width: 34ch; margin: 0 0 26px; }

.live { display: inline-flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 12px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); font-size: 15px; text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.live:hover { border-color: var(--blue); transform: translateY(-1px); }
.live b { font-weight: 700; font-variant-numeric: tabular-nums; }
.live .dot { width: 9px; height: 9px; border-radius: 50%; background: #22A35A; box-shadow: 0 0 0 4px rgba(34, 163, 90, .18); animation: pulse 2.4s ease-in-out infinite; }
.live .play { font-weight: 700; color: var(--blue); }
.hero-copy .live { display: flex; width: fit-content; max-width: 100%; }
.hero-copy .live + .live { margin-top: 10px; }
.live-yt .dot { background: #FF0033; box-shadow: 0 0 0 4px rgba(255, 0, 51, .16); animation-name: pulse-yt; }
.live-yt .js-latest-title b { font-weight: 700; }
.latest-txt { min-width: 0; flex: 1 1 200px; }
@keyframes pulse-yt { 50% { box-shadow: 0 0 0 7px rgba(255, 0, 51, 0); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(34, 163, 90, 0); } }

.hero::before { content: ""; position: absolute; z-index: -1; inset: -40px 0 -10px 40%; background: radial-gradient(38% 45% at 35% 55%, rgba(254, 190, 36, .22), transparent 70%), radial-gradient(38% 45% at 62% 45%, rgba(6, 125, 253, .16), transparent 70%); pointer-events: none; }

/* hero puzzle pieces */
.pieces { width: 100%; max-width: 560px; height: auto; justify-self: center; overflow: visible; }
.pc path { stroke: var(--bg); stroke-width: 6; stroke-linejoin: round; paint-order: stroke; }
.pc { transform-box: fill-box; transform-origin: 50% 50%; }
.pc-y, .pc-b { filter: drop-shadow(0 14px 18px var(--shadow)); }
.pc-y { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
.pc-b { animation: snap 1.05s cubic-bezier(.3, 1.45, .45, 1) .35s both; }
.pc-g path { fill: transparent; stroke: var(--ghost); stroke-width: 2.5; stroke-dasharray: 7 7; paint-order: normal; }
.pc-g text { font: 800 40px var(--f-display); fill: var(--ghost); }
.ghost-pos { transform: translate(30px, -36px) rotate(9deg); transform-box: fill-box; transform-origin: 50% 50%; transition: transform .6s cubic-bezier(.3, 1.3, .5, 1); }
.pc-g { animation: appear .6s ease 1.3s both, bob 6s ease-in-out 1.9s infinite; }
.hero:hover .ghost-pos { transform: translate(14px, -20px) rotate(4deg); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes snap {
  0% { opacity: 0; transform: translate(70px, -60px) rotate(16deg); }
  25% { opacity: 1; }
  100% { transform: none; }
}
@keyframes appear { from { opacity: 0; } }
@keyframes bob { 50% { transform: translateY(-7px) rotate(-3deg); } }

/* projects */
h2 { font: 800 clamp(30px, 3.6vw, 44px)/1.05 var(--f-display); letter-spacing: -.025em; margin: 0 0 24px; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); border-radius: 28px; margin-bottom: 80px; }
.t { position: relative; padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 14px; min-width: 0; text-decoration: none; }
.t .k { position: absolute; width: 56px; height: 56px; border-radius: 50%; background-color: inherit; z-index: 3; pointer-events: none; }
.t .k.r { right: -28px; top: calc(50% - 28px); }
.t .k.d { bottom: -28px; left: calc(50% - 28px); }
.t-tap { grid-column: span 3; background: var(--blue); color: #fff; border-radius: 28px 0 0 0; }
.t-2 { grid-column: span 3; background: var(--yellow); color: var(--navy); border-radius: 0 28px 0 0; }
.t-3 { grid-column: span 3; background: var(--paper); color: var(--fg); border-radius: 0 0 0 28px; }
.t-4 { grid-column: span 3; background: var(--tile-4); color: var(--navy); border-radius: 0 0 28px 0; }
/* Keep content clear of the side knob: its outer half pokes into the right tile, its inner half sits in the left tile. */
.t-2, .t-4 { padding-left: max(clamp(22px, 3vw, 34px), 46px); }
.t-tap, .t-3 { padding-right: max(clamp(22px, 3vw, 34px), 46px); }

.t .shot { width: 100%; height: auto; display: block; border-radius: 16px; background: #E8EEF6; transition: transform .3s ease; }
.t:hover .shot { transform: scale(1.015); }
.cap { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.name { font: 800 clamp(28px, 3vw, 40px)/1 var(--f-display); letter-spacing: -.03em; display: flex; align-items: center; gap: 12px; }
.name img { width: 44px; height: 44px; border-radius: 12px; background: #fff; }
.kind { font: 700 12px/1 var(--f-body); letter-spacing: .09em; text-transform: uppercase; opacity: .85; }
.yt-ic { width: 44px; height: 44px; flex: none; transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); }
.t:hover .yt-ic { transform: scale(1.08) rotate(-4deg); }
.go { position: relative; z-index: 4; margin-top: auto; font-weight: 700; align-self: flex-start; border-bottom: 2px solid currentColor; padding-bottom: 2px; }

/* Flat tile colors only, so the round knobs blend into their tile. The glow stays clear of the knob edges. */
.fog { min-height: 190px; justify-content: space-between; }
.t-3.fog { background-image: radial-gradient(40% 60% at 70% 40%, var(--fog-glow), transparent 70%); }
.t-4.fog { background-image: radial-gradient(30% 80% at 75% 50%, rgba(255, 255, 255, .6), transparent 70%); }
.qm { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font: 800 24px/1 var(--f-display); border: 2px dashed currentColor; opacity: .55; flex: none; }
.rd { display: inline-block; height: .62em; border-radius: .3em; background: currentColor; opacity: .16; max-width: 100%; }
.soon { align-self: flex-start; font: 700 12px/1 var(--f-body); padding: 7px 11px; border-radius: 999px; border: 1.5px solid currentColor; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }

/* footer */
.foot { border-top: 1px solid var(--line); padding-block: 28px 34px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 14px; }
.foot img { height: 30px; width: auto; display: block; }
.foot nav { display: flex; gap: 18px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--fg); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-block: 24px 56px; }
  .pieces { max-width: 420px; }
  .hero::before { inset: 45% -16px 0 -16px; }
  .hide-sm { display: none; }
  .bento { grid-template-columns: 1fr; }
  .t-tap, .t-2, .t-3, .t-4 { grid-column: auto; grid-row: auto; border-radius: 0; }
  .t-tap { border-radius: 28px 28px 0 0; }
  .t-4 { border-radius: 0 0 28px 28px; }
  .t-tap, .t-3 { padding-right: clamp(22px, 3vw, 34px); }
  .t-2, .t-3, .t-4 { padding-top: 44px; padding-left: clamp(22px, 3vw, 34px); }
  .t.t-3 .k.r { display: block; top: auto; right: auto; bottom: -28px; left: calc(50% - 28px); }
  .t .k.r { display: none; }
}

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