/* tinomachristi.com: the shell around the 3D room, the page overlay and the plain site.
   Layout: full-screen canvas, a thin top nav, a right-hand paper sheet for pages; the plain site is one column. */
:root {
  --teal: #0F3B40; --teal2: #1E5A5E; --brass: #C59A52; --brass-d: #8A6527; --ink: #13201F;
  --muted: #55605F; --hair: #DCE2E1; --paper: #FFFFFF; --night: #05070d; --ivory: #F3F6F5;
  --c-automation: #1E6A6B; --c-websites: #B4553A; --c-data: #2D5C8C; --c-3d: #8A6527; --c-agents: #0F3B40; --c-finance: #5b5f63;
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { background: var(--night); color: var(--ivory); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body.mode-room { overflow: hidden; }
button { font: inherit; color: inherit; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--brass); color: var(--teal); padding: 8px 12px; }
.skip:focus { left: 8px; }

/* nav */
.nav { position: fixed; z-index: 20; inset: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding-block: calc(14px + env(safe-area-inset-top, 0px)) 14px; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px));
  pointer-events: none; }
.nav > * { pointer-events: auto; }
.nav-name { background: none; border: 0; padding: 0; font-weight: 700; font-size: 17px; letter-spacing: -.2px; cursor: pointer; color: var(--ivory); }
.nav nav { display: flex; flex-wrap: wrap; gap: 6px; }
.nav nav button { background: rgba(5, 7, 13, .5); border: 1px solid rgba(243, 246, 245, .22); color: var(--ivory); padding: 7px 12px; font-size: 13px; cursor: pointer;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .25s, color .25s, border-color .25s; }
.nav nav button:hover, .nav nav button[aria-current="true"] { background: var(--brass); color: var(--teal); border-color: var(--brass); }
.nav button:focus-visible, .btn:focus-visible, .page-close:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
body.mode-plain .nav { position: sticky; background: var(--teal); }

/* canvas + hover label */
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; opacity: 0; transition: opacity 1.2s var(--ease); touch-action: none; cursor: grab; }
#gl.ready { opacity: 1; }
#gl:active { cursor: grabbing; }
/* the live page on a focused screen: a CSS 3D layer over the canvas, under the nav */
.screen-layer { position: fixed !important; inset: 0; z-index: 12; pointer-events: none; }
.screen-layer * { pointer-events: none; }
.screen-frame { opacity: 0; transition: opacity .25s var(--ease); background: #000; }
.screen-frame.shown { opacity: 1; }
.screen-layer.active .screen-frame.shown, .screen-layer.active .screen-frame.shown iframe { pointer-events: auto; }
/* CSS3DObject writes pointer-events: auto inline on every frame: a frame that is not on show must never catch a click */
.screen-layer:not(.active) .screen-frame, .screen-frame:not(.shown) { pointer-events: none !important; }
.screen-frame iframe { display: block; border: 0; background: #000; }
.label { position: fixed; z-index: 15; pointer-events: none; padding: 5px 9px; background: rgba(5, 7, 13, .72); border: 1px solid rgba(197, 154, 82, .6);
  color: var(--ivory); font-size: 12px; font-weight: 700; letter-spacing: 1.2px; white-space: nowrap; transform: translate(14px, 16px); }
.hint { position: fixed; z-index: 15; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); max-width: calc(100vw - 32px);
  padding: 8px 14px; background: rgba(5, 7, 13, .6); border: 1px solid rgba(243, 246, 245, .15); font-size: 12px; color: rgba(243, 246, 245, .8); text-align: center;
  transition: opacity .6s; }

/* splash */
.splash { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(120% 90% at 70% 20%, #16264a 0%, #05070d 60%); transition: opacity 1.2s var(--ease); }
.splash.gone { opacity: 0; pointer-events: none; }
.splash-card { max-width: 560px; text-align: left; }
.kicker { margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase; color: var(--brass); }
.splash h1 { margin: 0 0 12px; font-size: clamp(40px, 8vw, 72px); line-height: 1; letter-spacing: -2px; font-weight: 700; }
.splash-line { margin: 0 0 26px; font-size: 18px; line-height: 1.45; color: rgba(243, 246, 245, .85); text-wrap: balance; }
.splash-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--brass); font-size: 14px; font-weight: 700;
  text-decoration: none; cursor: pointer; transition: background .25s, color .25s, transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn-brass { background: var(--brass); color: var(--teal); }
.btn-ghost { background: transparent; color: var(--ivory); border-color: rgba(243, 246, 245, .35); }
.loader { margin-top: 22px; height: 2px; background: rgba(243, 246, 245, .12); overflow: hidden; }
.loader span { display: block; height: 100%; width: 0; background: var(--brass); transition: width .4s var(--ease); }

/* page overlay: a paper sheet on the right */
.page { position: fixed; z-index: 25; top: 0; right: 0; bottom: 0; width: min(720px, 100vw); background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column; box-shadow: -24px 0 60px rgba(0, 0, 0, .35); animation: sheet .55s var(--ease) both; }
@keyframes sheet { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.page-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--teal); color: var(--ivory);
  padding-block: calc(16px + env(safe-area-inset-top, 0px)) 16px; padding-left: 28px; padding-right: max(20px, env(safe-area-inset-right, 0px)); border-bottom: 3px solid var(--brass); }
.page-bar h2 { margin: 0; font-size: 20px; letter-spacing: -.3px; }
.page-close { background: transparent; border: 1px solid rgba(243, 246, 245, .4); color: var(--ivory); min-height: 36px; padding: 0 12px; cursor: pointer; font-size: 13px; }
.page-close:hover { background: var(--brass); color: var(--teal); border-color: var(--brass); }
.page-body { flex: 1; overflow-y: auto; padding: 26px 28px 48px; -webkit-overflow-scrolling: touch; }

/* shared content styles (pages + plain site) */
.prose { font-size: 15px; line-height: 1.6; max-width: 62ch; }
.prose p { margin: 0 0 14px; }
.lead { font-size: 18px; line-height: 1.5; margin: 0 0 20px; }
.h3 { display: flex; align-items: center; gap: 10px; margin: 26px 0 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--teal); }
.h3::before { content: ""; width: 22px; height: 3px; background: var(--brass); flex: none; }
.h3::after { content: ""; flex: 1; height: 1px; background: var(--hair); }
.status { display: inline-block; padding: 2px 8px; font-size: 11px; font-weight: 700; letter-spacing: .5px; border: 1px solid currentColor; }
.status-live { color: #1E6A6B; } .status-delivered { color: #2D5C8C; } .status-internal { color: #5b5f63; } .status-prototype { color: #B4553A; } .status-development { color: #8A6527; }
.facts { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.facts li { padding-left: 16px; position: relative; font-size: 14.5px; line-height: 1.5; }
.facts li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; background: var(--brass); }
.tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.tools li { font-size: 12px; padding: 3px 8px; background: #EEF3F2; color: var(--teal); }
.job { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 4px 18px; padding: 14px 0; border-top: 1px solid var(--hair); }
.job .when { font-size: 12.5px; font-weight: 700; color: var(--teal); }
.job .when small { display: block; font-weight: 400; color: var(--muted); margin-top: 3px; }
.job h4 { margin: 0 0 2px; font-size: 15px; }
.job .org { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.job ul { margin: 6px 0 0; padding-left: 16px; font-size: 14px; line-height: 1.5; }
.job li::marker { color: var(--brass); }
.role { margin-top: 8px; font-weight: 700; font-size: 13.5px; color: var(--teal2); }
.glance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.glance div { padding: 12px 14px; border-top: 2px solid var(--brass); background: #F6F8F7; }
.glance strong { display: block; font-size: 30px; font-weight: 300; color: var(--teal2); letter-spacing: -1px; }
.glance span { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.card { border-top: 3px solid var(--teal); background: #F6F8F7; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.card h4 { margin: 0; font-size: 15px; }
.card p { margin: 0; font-size: 13.5px; line-height: 1.45; color: #36413f; }
.pdfs { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.pdfs a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border: 1px solid var(--teal); color: var(--teal); text-decoration: none; font-size: 13px; font-weight: 700; }
.pdfs a:hover { background: var(--teal); color: var(--ivory); }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 16px; }
.contact-list b { display: inline-block; min-width: 92px; color: var(--teal); font-size: 12px; letter-spacing: .6px; text-transform: uppercase; }
.figure { margin: 6px 0 16px; }
.figure img { width: 100%; display: block; background: #eef2f1; }
.figure figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
.note { font-size: 12.5px; color: var(--muted); }

/* plain site */
body.mode-plain { background: var(--paper); color: var(--ink); }
.plain { max-width: 980px; margin: 0 auto; padding-block: 24px 64px; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.plain-hero { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 24px; align-items: center; padding: 24px 0 8px; }
.plain-hero img { width: 150px; height: 186px; object-fit: cover; object-position: 50% 18%; box-shadow: 9px 9px 0 var(--brass); }
.plain-hero h1 { margin: 0 0 8px; font-size: clamp(34px, 6vw, 54px); letter-spacing: -1.5px; line-height: 1.02; }
.plain-hero .hl { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--teal); }
.plain-hero .hl span { display: block; color: var(--brass-d); }
.plain section { scroll-margin-top: 80px; }
.room-cta { margin: 14px 0 0; }
@media (max-width: 640px) {
  .plain-hero { grid-template-columns: 1fr; }
  .plain-hero img { order: -1; width: 120px; height: 148px; }
  .job { grid-template-columns: 1fr; }
  .glance { grid-template-columns: 1fr 1fr; }
  .page-body { padding: 20px 18px 40px; }
  .page-bar { padding-left: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.noscript { padding: 24px; }

/* agents page: a replay of the real room between the builder and the critic */
.room-log { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 10px; }
.msg { max-width: 88%; padding: 10px 14px; border-left: 3px solid var(--teal); background: #F2F6F5; animation: msgIn .5s var(--ease) both; animation-delay: calc(var(--i) * 140ms); }
.msg-codex { align-self: flex-end; border-left-color: var(--brass); background: #FBF5EA; }
.msg-who { font-size: 11.5px; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.msg-who b { color: var(--ink); letter-spacing: 0; text-transform: none; font-size: 13px; margin-right: 4px; }
.msg p { margin: 0; font-size: 14px; line-height: 1.5; }
@keyframes msgIn { from { opacity: .2; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* the speaker: a small radio panel to the right of the JBL, and a "now playing" pill once you walk away */
.player { position: fixed; z-index: 22; right: max(24px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); width: 352px;
  padding: 16px 18px 14px; background: rgba(8, 11, 18, .82); border: 1px solid rgba(197, 154, 82, .45); color: var(--ivory);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  animation: playerIn .45s var(--ease) both; }
@keyframes playerIn { from { opacity: 0; transform: translate(16px, -50%); } to { opacity: 1; transform: translateY(-50%); } }
.player button { cursor: pointer; }
.player button:focus-visible, .player input:focus-visible, .nowplaying button:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.player-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.player-kicker { font-size: 11px; font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase; color: var(--brass); }
.player-close { background: transparent; border: 1px solid rgba(243, 246, 245, .3); color: var(--ivory); min-height: 30px; padding: 0 10px; font-size: 12px; }
.player-close:hover { background: var(--brass); color: var(--teal); border-color: var(--brass); }
/* preset keys, like an old radio */
.player-channels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-bottom: 14px; }
.player-channels button { min-height: 40px; padding: 0 4px; font-size: 12px; font-weight: 700; color: rgba(243, 246, 245, .78);
  background: linear-gradient(#20242c, #14171d); border: 1px solid rgba(243, 246, 245, .14); border-bottom-width: 3px; transition: background .2s, color .2s, transform .1s; }
.player-channels button:hover { color: var(--ivory); border-color: rgba(197, 154, 82, .6); }
.player-channels button[aria-checked="true"] { background: linear-gradient(#d3ab66, var(--brass)); color: var(--teal); border-color: var(--brass-d); transform: translateY(2px); border-bottom-width: 1px; }
.player-now { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: end; padding: 12px; margin-bottom: 12px;
  background: #06080c; border: 1px solid rgba(243, 246, 245, .08); }
.player-meter { width: 144px; height: 44px; display: block; }
.player-title { margin: 0 0 3px; font-size: 15px; font-weight: 700; line-height: 1.25; }
.player-by { margin: 0; font-size: 12px; color: rgba(243, 246, 245, .62); line-height: 1.3; }
.player-controls { display: flex; align-items: center; gap: 6px; }
.player-controls > button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: transparent; color: var(--ivory);
  border: 1px solid rgba(243, 246, 245, .22); transition: background .2s, color .2s, border-color .2s; }
.player-controls > button:hover { border-color: var(--brass); color: var(--brass); }
.player-controls > .pc-play { width: 52px; height: 52px; background: var(--brass); color: var(--teal); border-color: var(--brass); }
.player-controls > .pc-play:hover { background: #d3ab66; color: var(--teal); }
.player-controls svg, .nowplaying svg { width: 20px; height: 20px; fill: currentColor; }
.player-vol { flex: 1; display: flex; flex-direction: column; gap: 4px; margin-left: 8px; font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(243, 246, 245, .55); }
.player-vol input { width: 100%; accent-color: var(--brass); }
.player-credit { margin: 10px 0 0; font-size: 11px; color: rgba(243, 246, 245, .5); }
.player-credit a { color: rgba(243, 246, 245, .75); }
.nowplaying { position: fixed; z-index: 16; left: max(20px, env(safe-area-inset-left, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: stretch;
  background: rgba(8, 11, 18, .78); border: 1px solid rgba(197, 154, 82, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nowplaying button { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; background: transparent; border: 0; color: var(--ivory); cursor: pointer; font-size: 12.5px; }
.nowplaying button + button { border-left: 1px solid rgba(243, 246, 245, .12); }
.nowplaying button:hover { color: var(--brass); }
.np-title { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.np-eq i { width: 3px; height: 30%; background: var(--brass); }
.nowplaying.playing .np-eq i { animation: eq .9s ease-in-out infinite alternate; }
.nowplaying.playing .np-eq i:nth-child(2) { animation-delay: -.3s; } .nowplaying.playing .np-eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { from { height: 25%; } to { height: 100%; } }
@media (max-width: 640px) {
  .player { left: 12px; right: 12px; top: auto; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: auto; transform: none; animation: none; }
}
