/* OnlyOne Trimz — one screen, app-like: the clipper is the home screen, everything else opens in sheets from the bottom dock. */
:root {
  --bg: #08090b; --panel: #121418; --panel-2: #191c21; --ink: #eef0f2; --mute: #8b919a;
  --line: rgba(238,240,242,.09); --blue: #3aa8ff; --gold: #ffc53a;
  --display: "Anton", "Arial Narrow", Impact, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --spring: cubic-bezier(.2, 1.25, .35, 1);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); overflow: hidden; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

.app { position: fixed; inset: 0; display: grid; grid-template-rows: auto 1fr auto; }

/* top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; z-index: 3;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px)); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 10px; font-weight: 700; letter-spacing: .32em; }
.brand img { width: 32px; height: 32px; border-radius: 50%; }
.chip { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 7px 11px; border-radius: 999px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); transition: background .25s; }
.chip:hover { background: var(--panel-2); }
.chip svg { width: 12px; height: 12px; fill: var(--gold); }
.chip span { color: var(--mute); font-weight: 500; }

/* stage */
.stage { position: relative; min-height: 0; overflow: hidden; touch-action: none; cursor: grab; }
.stage:active { cursor: grabbing; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; transition: transform .7s var(--ease); }
.fallback { display: none; }
.no-webgl .fallback { display: block; position: absolute; z-index: 1; left: 50%; top: 50%; width: min(40vw, 220px); translate: -50% -50%; border-radius: 50%; }
.no-webgl .power, .no-webgl .hint, .no-webgl .status { display: none; }
.glow { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(42% 38% at 50% 52%, rgba(238,240,242,.08), transparent 70%); transition: background .6s ease; }
.app.is-on .glow { background: radial-gradient(42% 40% at 50% 52%, rgba(58,168,255,.22), transparent 70%); }
/* ONLYONE behind the clipper (size set from JS so it always fits; stacked on tall screens) */
.ghost { position: absolute; left: 50%; top: 50%; z-index: 0; translate: -50% -50%; pointer-events: none; user-select: none;
  display: flex; align-items: center; font-family: var(--display); line-height: .86; color: transparent; white-space: nowrap;
  -webkit-text-stroke: 1px rgba(238,240,242,.1); opacity: 0; transition: -webkit-text-stroke-color .6s, opacity .5s ease; }
.ghost.is-stack { flex-direction: column; }
.ghost.is-shown { opacity: 1; }
.app.is-on .ghost { -webkit-text-stroke-color: rgba(58,168,255,.3); }
.copy { position: absolute; z-index: 2; left: max(16px, env(safe-area-inset-left, 0px)); top: 8px; max-width: min(520px, 44vw); pointer-events: none;
  transition: opacity .5s ease, transform .6s var(--ease); }
.copy h1 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 7vw, 72px); line-height: .95; text-transform: uppercase; text-wrap: balance; }
.copy p { margin-top: 10px; font-size: 12px; color: var(--mute); }
.status { position: absolute; z-index: 2; right: max(16px, env(safe-area-inset-right, 0px)); top: 14px; text-align: right;
  font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.status b { display: block; margin-top: 6px; font-size: 13px; letter-spacing: .08em; color: var(--ink); }
.status i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3a3f46; margin-right: 6px; vertical-align: 1px; transition: background .3s, box-shadow .3s; }
.app.is-on .status i { background: var(--blue); box-shadow: 0 0 10px var(--blue); }

/* power button (press and hold) */
.power { position: absolute; z-index: 2; left: 50%; bottom: 18px; translate: -50% 0; display: grid; justify-items: center; gap: 8px; }
.power button { position: relative; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line), 0 10px 30px rgba(0,0,0,.5); touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.power svg.ic { width: 24px; height: 24px; stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; transition: stroke .3s; }
.power svg.ring { position: absolute; inset: -5px; width: 74px; height: 74px; rotate: -90deg; }
.power svg.ring circle { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 220; stroke-dashoffset: 220; }
.app.is-on .power button { background: var(--blue); box-shadow: 0 0 0 6px rgba(58,168,255,.18), 0 0 40px rgba(58,168,255,.5); }
.app.is-on .power svg.ic { stroke: #04121f; }
.power span { font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.hint { position: absolute; z-index: 2; left: 0; right: 0; bottom: 104px; text-align: center; font-size: 11px; color: var(--mute); pointer-events: none; transition: opacity .4s; }

/* dock */
.dock { position: relative; z-index: 5; display: grid; grid-template-columns: repeat(2, 1fr) auto repeat(2, 1fr); align-items: center; gap: 4px;
  margin: 0 auto; width: min(100%, 640px);
  padding: 8px max(12px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 10px) max(12px, env(safe-area-inset-left, 0px)); }
.tab { display: grid; justify-items: center; gap: 5px; padding: 8px 4px; border-radius: 14px; font-size: 11px; font-weight: 600; color: var(--mute); transition: color .25s, background .25s; }
.tab svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tab:hover { color: var(--ink); }
.tab[aria-expanded="true"] { color: var(--ink); background: var(--panel); }
.book { display: grid; place-items: center; height: 56px; padding: 0 22px; margin: 0 6px; border-radius: 18px; background: var(--ink); color: #000;
  font-family: var(--display); font-size: 20px; letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 8px 30px rgba(58,168,255,.25); transition: transform .3s var(--spring); }
.book:active { transform: scale(.94); }

/* sheet */
.scrim { position: fixed; inset: 0; z-index: 6; background: rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: opacity .4s ease; }
.sheet { position: fixed; z-index: 7; left: 50%; bottom: 0; width: min(100%, 560px); max-height: 78%; translate: -50% 104%;
  display: flex; flex-direction: column; background: var(--panel); border-radius: 26px 26px 0 0;
  box-shadow: 0 -20px 60px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06);
  transition: translate .55s var(--spring), visibility 0s linear .55s; visibility: hidden; }
.app.sheet-open .sheet { translate: -50% 0; visibility: visible; transition: translate .55s var(--spring), visibility 0s; }
.app.sheet-open .scrim { opacity: 1; pointer-events: auto; }
.app.sheet-open .stage canvas { transform: translateY(-16%) scale(.72); }
.app.sheet-open .copy, .app.sheet-open .hint { opacity: 0; }
.grab { display: grid; justify-items: center; gap: 12px; padding: 10px 20px 6px; touch-action: none; cursor: grab; }
.grab > i { width: 40px; height: 5px; border-radius: 3px; background: rgba(238,240,242,.2); }
.grab__row { justify-self: stretch; display: flex; align-items: center; justify-content: space-between; }
.grab h2 { font-family: var(--display); font-weight: 400; font-size: 34px; text-transform: uppercase; line-height: 1; outline: none; }
.x { width: 36px; height: 36px; border-radius: 50%; font-size: 22px; line-height: 1; background: var(--panel-2); color: var(--ink); }
.body { overflow-y: auto; overscroll-behavior: contain; padding: 8px 20px calc(env(safe-area-inset-bottom, 0px) + 24px); }

/* services */
.svc { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 6px 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.svc h3 { font-size: 15px; font-weight: 600; }
.svc h3 em { font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8fd0ff; margin-left: 8px; padding: 3px 7px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(143,208,255,.4); vertical-align: 2px; }
.svc .t { margin-top: 3px; font-size: 12px; color: var(--mute); }
.svc .d { grid-column: 1 / -1; font-size: 12px; line-height: 1.5; color: var(--mute); }
.svc .th { grid-column: 1 / -1; display: flex; gap: 6px; }
.svc .th img { width: 44px; height: 44px; object-fit: cover; border-radius: 9px; }
.svc .pr { font-family: var(--display); font-size: 24px; font-variant-numeric: tabular-nums; }
.svc a { padding: 10px 14px; border-radius: 12px; background: var(--ink); color: #000; font-size: 12px; font-weight: 700; }
.note { margin-top: 14px; font-size: 12px; color: var(--mute); }

/* work */
.strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 4px 20px 10px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip button { flex: 0 0 64%; scroll-snap-align: center; position: relative; border-radius: 16px; overflow: hidden; cursor: zoom-in; text-align: left; }
.strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.strip span { position: absolute; inset: auto 0 0; padding: 30px 12px 10px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.more { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 600; border-bottom: 1px solid rgba(238,240,242,.3); }

/* reviews */
.score { display: flex; align-items: end; gap: 14px; margin-bottom: 14px; }
.score b { font-size: 64px; font-weight: 400; line-height: .85; letter-spacing: -.04em; }
.stars { display: flex; gap: 3px; } .stars svg { width: 14px; height: 14px; fill: var(--gold); }
.score p { font-size: 12px; color: var(--mute); margin-top: 6px; }
.rev { padding: 16px; border-radius: 16px; background: var(--panel-2); margin-top: 10px; }
.rev q { display: block; margin: 10px 0; font-size: 16px; line-height: 1.4; quotes: "“" "”"; }
.rev small { font-size: 11px; color: var(--mute); } .rev small b { color: var(--ink); }

/* visit */
.photo { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; display: block; margin-bottom: 8px; }
.facts div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.facts dt { font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); padding-top: 3px; }
.facts a { border-bottom: 1px solid rgba(238,240,242,.3); }
.facts small { display: block; color: var(--mute); font-size: 12px; margin-top: 4px; }
.cta { display: block; margin-top: 18px; padding: 16px; border-radius: 16px; text-align: center; background: var(--ink); color: #000; font-weight: 700; }

/* full-size photo viewer */
.viewer { position: fixed; inset: 0; z-index: 9; display: grid; place-items: center; padding: 6vh 4vw; background: rgba(4,4,5,.94); opacity: 0; transition: opacity .3s ease; }
.viewer[hidden] { display: none; }
.viewer.is-open { opacity: 1; }
.viewer figure { display: grid; gap: 12px; justify-items: center; }
.viewer img { max-width: 92vw; max-height: 80vh; border-radius: 14px; transform: scale(.96); transition: transform .45s var(--ease); }
.viewer.is-open img { transform: none; }
.viewer figcaption { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.viewer .x { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 14px); right: max(16px, env(safe-area-inset-right, 0px)); }

/* entrance */
.intro { position: fixed; inset: 0; z-index: 20; background: var(--bg); overflow: hidden; cursor: pointer; transition: background-color .9s ease; }
.intro__word { position: absolute; left: 50%; top: 50%; translate: 0 0; transform: translate(-50%, -50%);
  display: flex; align-items: baseline; font-family: var(--display); line-height: .86; white-space: nowrap; color: var(--ink);
  clip-path: inset(-10% calc(100% - var(--p, 0%)) -10% 0); opacity: 0; }
.intro.is-live .intro__word { opacity: 1; }
.intro__word.is-stack { flex-direction: column; align-items: center; }
.ig-a { display: flex; transform-origin: 50% 50%; transition: transform 1s cubic-bezier(.65, 0, .25, 1), color .7s ease .2s, -webkit-text-stroke-color .7s ease .2s; -webkit-text-stroke: 1px transparent; }
.intro__word.is-stack .ig-a { flex-direction: column; align-items: center; }
.ig-b { color: transparent; -webkit-text-stroke: 1.5px var(--blue); transition: transform .8s cubic-bezier(.5, 0, .2, 1), opacity .5s ease, filter .6s ease; }
.intro.is-buzz .intro__word { text-shadow: 0 0 24px rgba(58,168,255,.35); }
.intro__blade { position: absolute; left: 0; top: 0; width: 2px; margin-left: -1px; background: #cfe9ff; border-radius: 2px; pointer-events: none;
  box-shadow: 0 0 10px 2px var(--blue), 0 0 40px 8px rgba(58,168,255,.45); }
.intro__blade::after { content: ""; position: absolute; right: 2px; top: 0; bottom: 0; width: 90px; background: linear-gradient(90deg, transparent, rgba(58,168,255,.22)); }
.intro__skip { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); text-align: center;
  font-size: 10px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--mute); opacity: .6; }
.intro.is-out { background-color: rgba(8,9,11,0); pointer-events: none; }
.intro.is-out .ig-a { color: transparent; -webkit-text-stroke-color: rgba(238,240,242,.1); }
.intro.is-out .ig-b { opacity: 0; filter: blur(6px); }
.intro.is-out .intro__skip { opacity: 0; }

/* page chrome waits for the entrance, then slides in */
.intro-run .top, .intro-run .copy, .intro-run .status, .intro-run .power, .intro-run .hint, .intro-run .dock { opacity: 0; transform: translateY(16px); }
.top, .copy, .status, .power, .hint, .dock { transition: opacity .7s ease var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.top { --d: .35s; } .copy { --d: .5s; } .status { --d: .6s; } .power { --d: .75s; } .hint { --d: .9s; } .dock { --d: .8s; }

.nojs { position: fixed; inset: auto 0 0; z-index: 30; padding: 16px; background: var(--panel); text-align: center; }
.nojs a { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .sheet, .stage canvas, .viewer img { transition-duration: .01s; }
}
