/* KREO round: circular language everywhere, and the About / Contact pages that open as a growing circle. */

:root { --r: 26px; }
.frame, .slide, .case { border-radius: var(--r); }
.dock { border-radius: 999px; padding: 6px; }
.dock__main { padding-right: 22px; }
.dock__thumb, .dock__thumb::after { border-radius: 50%; }
.dock__thumb { width: 42px; height: 42px; }
.dock__menu { width: 42px; height: 42px; border-radius: 50%; }
.next { border-radius: 50%; }
.counter { width: 58px; height: 58px; padding: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); }
.counter svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.counter circle { fill: none; stroke-width: 2; }
.counter__track { stroke: rgba(255,255,255,.15); }
.counter__arc { stroke: var(--ember); stroke-linecap: round; stroke-dasharray: 132; stroke-dashoffset: 132; transition: stroke-dashoffset .8s var(--ease); }
.counter > span { position: relative; display: flex; flex-direction: column; align-items: center; line-height: 1.05; font-size: 11px; }
.counter > span i { font-style: normal; opacity: .55; font-size: 9px; }
.progress { display: none; }
.screen__cta { border-radius: 999px; }
.menu { border-radius: 28px; padding: 14px; }
.menu__works button { border-radius: 999px; padding: 5px 14px 5px 6px; grid-template-columns: 40px 22px 1fr auto; }
.menu__works img { width: 40px; height: 40px; border-radius: 50%; order: -1; }
.menu__row button { border-radius: 999px; }
.case__back, .tags span, .btn, .chat__enter, .chips button { border-radius: 999px; }
.case__frame { border-radius: 18px; }
.case__stills figure { border-radius: 18px; }
.brand svg { transition: transform .6s var(--ease); }
.brand:hover svg { transform: rotate(180deg); }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 500; transition: background .25s, color .25s, transform .3s var(--ease); }
.pill--dark { background: var(--ink); color: #fff; }
.pill--dark:hover { background: var(--ember); transform: translateY(-2px); }

/* ---------- Pages: open as a circle growing from where you clicked ---------- */
.page { position: fixed; inset: var(--gap); z-index: 50; border-radius: var(--r); overflow: hidden; background: #F3F1EC; color: var(--ink);
  clip-path: circle(0 at var(--ox, 50%) var(--oy, 90%)); transition: clip-path .9s cubic-bezier(.7,0,.2,1); }
.page.is-in { clip-path: circle(150% at var(--ox, 50%) var(--oy, 90%)); }
.page[hidden] { display: none; }
.page__in { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; }
.page__close { position: absolute; z-index: 5; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; transition: transform .4s var(--ease), background .25s; }
.page__close:hover { transform: rotate(90deg); background: var(--ember); }
.page .kicker { margin: 0; }

.about { min-height: 100%; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 5vw; padding: 6vh 5vw; }
.about__title { font-size: clamp(34px, 3.6vw, 60px); font-weight: 600; letter-spacing: -.045em; line-height: 1; color: var(--ink); margin: 12px 0 18px; }
.about__lead { font-size: 19px; line-height: 1.35; letter-spacing: -.015em; color: var(--ink); margin-bottom: 12px; }
.about__copy { color: #4a4a4d; max-width: 540px; }
.about__copy > p { line-height: 1.6; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 28px; }
.badges li { width: 104px; height: 104px; border-radius: 50%; border: 1px solid rgba(29,29,29,.14); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; transition: background .3s, color .3s, transform .4s var(--ease); }
.badges li:hover { background: var(--ink); color: #fff; transform: rotate(-8deg) scale(1.05); }
.badges b { font-size: 17px; font-weight: 600; letter-spacing: -.02em; color: inherit; }
.badges span { font-family: var(--mono); font-size: 9px; text-transform: uppercase; opacity: .6; margin-top: 2px; }

/* The orbit: skills ride the outer ring, the five works ride the inner ring */
.orbit { position: relative; width: min(42vw, 74vh); aspect-ratio: 1; justify-self: center; }
.orbit__rings { position: absolute; inset: 0; overflow: visible; }
.orbit__rings circle { fill: none; stroke: rgba(29,29,29,.14); stroke-width: .15; }
.orbit__rings .dash { stroke-dasharray: .6 1.2; stroke: rgba(29,29,29,.3); }
.orbit__spin { position: absolute; inset: 0; animation: spin 80s linear infinite; }
.orbit__spin--inner { animation-duration: 55s; animation-direction: reverse; }
.orbit.is-held .orbit__spin, .orbit.is-held .orbit__item > * { animation-play-state: paused; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit__item { position: absolute; width: 0; height: 0; }
.orbit__item > * { animation: unspin 80s linear infinite; }
.orbit__spin--inner .orbit__item > * { animation: unspin-r 55s linear infinite; }
@keyframes unspin { from { transform: translate(-50%, -50%) rotate(0); } to { transform: translate(-50%, -50%) rotate(-360deg); } }
@keyframes unspin-r { from { transform: translate(-50%, -50%) rotate(0); } to { transform: translate(-50%, -50%) rotate(360deg); } }
.skill { position: absolute; display: inline-flex; white-space: nowrap; padding: 9px 15px; border-radius: 999px; background: #fff; border: 1px solid rgba(29,29,29,.1); box-shadow: 0 6px 20px -8px rgba(0,0,0,.2); font-size: 14px; font-weight: 500; letter-spacing: -.01em; cursor: default; transition: background .25s, color .25s; }
.skill:hover, .skill.on { background: var(--ink); color: #fff; }
.work-dot { position: absolute; display: block; width: clamp(48px, 5.4vw, 74px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 3px #F3F1EC, 0 0 0 4px var(--acc), 0 10px 24px -8px rgba(0,0,0,.35); transition: opacity .35s, filter .35s, box-shadow .3s; }
.work-dot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.orbit.has-skill .work-dot:not(.hit) { opacity: .2; filter: grayscale(1); }
.orbit.has-skill .work-dot.hit { box-shadow: 0 0 0 3px #F3F1EC, 0 0 0 6px var(--acc), 0 0 30px var(--acc); }
.orbit__planet { position: absolute; inset: 0; animation: spin 14s linear infinite; pointer-events: none; }
.orbit__planet i { position: absolute; left: 50%; top: -9px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 24px var(--ember); }
.orbit__core { position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: var(--ink); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; box-shadow: 0 20px 60px -20px rgba(0,0,0,.5); }
.orbit__word { font-size: clamp(20px, 2.4vw, 38px); font-weight: 700; letter-spacing: -.04em; }
.orbit__mean { display: flex; flex-direction: column; font-size: 11px; opacity: .75; margin-top: 2px; }
.orbit__mean em { color: var(--ember); font-size: 15px; }
.orbit__hint { position: absolute; left: 50%; bottom: -38px; transform: translateX(-50%); white-space: nowrap; color: var(--mute); }

/* Contact page */
.contact { min-height: 100%; display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 5vw; padding: 6vh 5vw; }
.contact__disc { position: relative; width: min(38vw, 68vh); aspect-ratio: 1; justify-self: center; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; text-align: center; }
.contact__disc p { font-size: clamp(30px, 3.4vw, 56px); font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.contact__disc em { color: var(--ember); font-style: normal; }
.contact__ring { position: absolute; inset: -14px; border-radius: 50%; border: 1px dashed rgba(29,29,29,.25); animation: spin 18s linear infinite; }
.contact__ring i { position: absolute; left: 50%; top: -8px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 20px var(--ember); }
.contact__form { max-width: 560px; }
.page .chat { margin-top: 6px; }
.page .reach { border-top-color: rgba(29,29,29,.12); margin-top: 28px; }
.page .reach b { color: var(--ink); font-weight: 500; }

@media (max-width: 860px) {
  :root { --r: 20px; }
  .about, .contact { grid-template-columns: 1fr; padding: 90px 22px 60px; gap: 64px; }
  .orbit { width: min(62vw, 440px); margin: 30px 0 20px; }
  .orbit__hint { bottom: -64px; }
  .skill { font-size: 10.5px; padding: 5px 9px; }
  .contact__disc { width: min(70vw, 340px); }
  .badges li { width: 86px; height: 86px; }
  .orbit__core { width: 34%; }
  .orbit__word { font-size: 17px; }
  .orbit__mean { font-size: 8.5px; }
  .orbit__mean em { font-size: 11px; }
  .menu { border-radius: 24px; }
}

/* Slivers of the neighbouring works in the gutter at each edge */
.peek { position: fixed; top: 50%; z-index: 5; width: var(--gap); height: 22vh; transform: translateY(-50%); overflow: hidden; padding: 0; background: #0b0b0d; transition: width .4s var(--ease); }
.peek img { width: 30vw; max-width: none; height: 100%; object-fit: cover; object-position: top; filter: brightness(.7); }
.peek--l { left: 0; border-radius: 0 6px 6px 0; }
.peek--l img { margin-left: calc(var(--gap) - 30vw); }
.peek--r { right: 0; border-radius: 6px 0 0 6px; }
.peek:hover { width: 22px; }
body.has-sheet .peek { opacity: 0; pointer-events: none; }
