:root {
  --ink: #18242d;
  --muted: #68737a;
  --paper: #f1efe8;
  --line: rgba(24, 36, 45, .14);
  --white: #fffef9;
  --work: #3374ff;
  --play: #ef6b42;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body { min-height: 100vh; margin: 0; overflow-x: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 20; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.site-header { height: 92px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(24px, 5vw, 76px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--ink); text-decoration: none; font-family: "Aptos Display", "Segoe UI", sans-serif; font-weight: 700; font-size: 20px; letter-spacing: -.7px; }
.brand-mark { width: 26px; height: 26px; position: relative; display: inline-block; }
.brand-mark i { position: absolute; display: block; width: 10px; height: 10px; border: 2px solid var(--ink); transform: rotate(45deg); }
.brand-mark i:nth-child(1) { left: 1px; top: 7px; }
.brand-mark i:nth-child(2) { right: 1px; top: 1px; background: var(--work); border-color: var(--work); }
.brand-mark i:nth-child(3) { right: 1px; bottom: 1px; background: var(--play); border-color: var(--play); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.secure-pill { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; font-size: 12px; font-weight: 600; color: #4d5b62; background: rgba(255,255,255,.36); }
.secure-pill span, .pulse { width: 7px; height: 7px; border-radius: 50%; background: #3caa76; box-shadow: 0 0 0 4px rgba(60,170,118,.13); }
.icon-button { width: 38px; height: 38px; border: 1px solid var(--line); background: transparent; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.icon-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }

main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.landing { padding: clamp(58px, 8vh, 100px) 0 36px; }
.intro { max-width: 760px; }
.kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 28px; font-family: "Aptos Display", "Segoe UI", sans-serif; text-transform: uppercase; letter-spacing: 1.5px; font-size: 10px; font-weight: 700; color: #79838a; }
.kicker span:first-child { color: var(--ink); border-right: 1px solid #aeb4b4; padding-right: 12px; }
h1, h2 { font-family: "Aptos Display", "Segoe UI", sans-serif; font-weight: 500; letter-spacing: -4.5px; line-height: .98; margin: 0; }
h1 { font-size: clamp(54px, 7.4vw, 95px); }
h1 em { font-family: Georgia, serif; font-weight: 400; color: #6c7578; letter-spacing: -5px; }
.intro-copy { width: min(530px, 100%); font-size: 17px; line-height: 1.7; color: var(--muted); margin: 27px 0 50px; }

.space-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.space-card { position: relative; min-height: 470px; padding: 25px 27px 27px; overflow: hidden; border: 1px solid rgba(20,30,38,.15); text-align: left; color: var(--ink); cursor: pointer; transition: transform .3s ease, box-shadow .3s ease; display: flex; flex-direction: column; }
.space-card:hover { transform: translateY(-5px); box-shadow: 0 20px 45px rgba(24,36,45,.13); }
.space-card:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.work-card { background: #dfe9f6; }
.play-card { background: #eaded2; }
.card-topline { display: flex; justify-content: space-between; font-family: "Aptos Display", "Segoe UI", sans-serif; text-transform: uppercase; letter-spacing: 1.2px; font-size: 10px; font-weight: 700; z-index: 2; }
.space-number { border-right: 1px solid currentColor; padding-right: 11px; }
.lock-state { display: flex; align-items: center; gap: 7px; }
.lock-state::before { content: ""; width: 6px; height: 6px; background: #e5a331; border-radius: 50%; }
.lock-state.unlocked::before { background: #3caa76; }
.card-art { position: absolute; right: 18px; top: 45px; width: 52%; height: 52%; }
.card-art i { position: absolute; display: block; }
.work-art i:nth-child(1) { width: 142px; height: 142px; border-radius: 50%; border: 36px solid var(--work); top: 12px; right: 18px; box-shadow: 20px 20px 0 rgba(51,116,255,.13); }
.work-art i:nth-child(2) { width: 125px; height: 31px; background: #18242d; top: 102px; left: 0; transform: rotate(-35deg); }
.work-art i:nth-child(3) { width: 55px; height: 55px; background: #ffcf45; right: 8px; bottom: 3px; transform: rotate(18deg); }
.play-art i:nth-child(1) { width: 155px; height: 155px; border-radius: 50%; background: var(--play); right: 0; top: 8px; }
.play-art i:nth-child(2) { width: 115px; height: 115px; border-radius: 50%; border: 24px solid #8d67d8; left: 5px; bottom: 0; }
.play-art i:nth-child(3) { width: 125px; height: 34px; background: #ffd05b; right: 20px; bottom: 7px; transform: rotate(-32deg); }
.card-copy { margin-top: auto; display: flex; flex-direction: column; position: relative; z-index: 2; max-width: 370px; }
.space-label { text-transform: uppercase; letter-spacing: 1.5px; font-family: "Aptos Display", "Segoe UI", sans-serif; font-size: 10px; font-weight: 700; margin-bottom: 10px; }
.card-copy strong { font-family: "Aptos Display", "Segoe UI", sans-serif; font-size: 59px; letter-spacing: -3.5px; line-height: 1; font-weight: 600; }
.card-copy > span:last-child { font-size: 14px; line-height: 1.5; color: #536067; margin-top: 12px; }
.enter-link { display: flex; align-items: center; justify-content: space-between; margin-top: 27px; padding-top: 17px; border-top: 1px solid rgba(24,36,45,.2); text-transform: uppercase; letter-spacing: 1.2px; font-size: 10px; font-weight: 700; }
.enter-link i { font-style: normal; font-size: 22px; transition: transform .25s ease; }
.space-card:hover .enter-link i { transform: translateX(5px); }
.landing-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 25px; color: #727c81; text-transform: uppercase; letter-spacing: 1.3px; font-size: 9px; font-weight: 600; }
.landing-foot p { display: flex; align-items: center; gap: 11px; }

.workspace { padding: clamp(55px, 8vh, 94px) 0 55px; animation: viewIn .45s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(12px); } }
.workspace-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 48px; }
.workspace-head h2 { font-size: clamp(58px, 8vw, 100px); }
.workspace-head h2 em { font-family: Georgia, serif; font-weight: 400; color: var(--space-color, var(--work)); }
.workspace-head > div > p:last-child { color: var(--muted); font-size: 16px; margin: 18px 0 0; }
.text-button { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.35); border-radius: 999px; padding: 11px 17px; cursor: pointer; color: #4d595f; font-size: 12px; }
.text-button svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.app-card { min-height: 250px; border: 1px solid var(--line); background: rgba(255,255,255,.42); padding: 22px; color: inherit; text-decoration: none; display: flex; flex-direction: column; transition: transform .25s ease, background .25s ease; }
.app-card.ready:hover { transform: translateY(-4px); background: var(--white); }
.app-card.disabled { cursor: default; }
.app-top { display: flex; justify-content: space-between; align-items: flex-start; }
.app-icon { width: 48px; height: 48px; display: grid; place-items: center; background: var(--accent, var(--work)); color: white; }
.app-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.app-status { text-transform: uppercase; font-size: 9px; letter-spacing: 1.1px; font-weight: 700; color: #7d8589; }
.app-card h3 { font: 600 22px/1.2 "Aptos Display", "Segoe UI", sans-serif; letter-spacing: -.8px; margin: auto 0 8px; }
.app-card p { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 0; }
.app-card .eyebrow { color: var(--ink); text-transform: uppercase; font-size: 9px; letter-spacing: 1.2px; font-weight: 700; margin-bottom: 8px; }
.access-note { display: grid; grid-template-columns: auto 1fr auto; gap: 17px; align-items: center; border-top: 1px solid var(--line); margin-top: 38px; padding-top: 28px; }
.access-icon { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: white; display: grid; place-items: center; }
.access-icon svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.access-note div:nth-child(2) { display: flex; flex-direction: column; gap: 4px; }
.access-note strong { font: 600 13px "Aptos Display", "Segoe UI", sans-serif; }
.access-note span { font-size: 12px; color: var(--muted); }
.access-note a { color: var(--ink); text-decoration: none; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

.pin-dialog { width: min(440px, calc(100% - 34px)); border: 0; padding: 0; background: transparent; color: var(--ink); }
.pin-dialog::backdrop { background: rgba(19,29,37,.65); backdrop-filter: blur(8px); }
.pin-dialog form { position: relative; background: var(--paper); padding: 38px 39px 30px; border: 1px solid rgba(255,255,255,.2); box-shadow: 0 28px 90px rgba(0,0,0,.3); }
.dialog-close { position: absolute; right: 17px; top: 15px; border: 0; background: transparent; font-size: 24px; cursor: pointer; color: #657078; }
.dialog-symbol { width: 58px; height: 58px; margin: 0 0 28px; background: var(--space-color, var(--work)); display: grid; place-items: center; }
.dialog-symbol span { width: 20px; height: 20px; border: 3px solid white; transform: rotate(45deg); }
.pin-dialog .kicker { margin-bottom: 15px; }
.pin-dialog h2 { font-size: 45px; letter-spacing: -2.5px; }
.pin-dialog h2 span { color: var(--space-color, var(--work)); }
.dialog-copy { color: var(--muted); font-size: 14px; margin: 12px 0 26px; }
.pin-dialog label { display: block; text-transform: uppercase; letter-spacing: 1.2px; font-size: 9px; font-weight: 700; margin-bottom: 8px; }
.pin-input-wrap { display: flex; border: 1px solid #b9bfbd; background: var(--white); transition: border-color .2s, box-shadow .2s; }
.pin-input-wrap:focus-within { border-color: var(--space-color, var(--work)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--space-color, var(--work)) 18%, transparent); }
.pin-input-wrap input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 14px 15px; font-size: 17px; letter-spacing: 5px; }
.pin-input-wrap button { width: 49px; border: 0; background: transparent; cursor: pointer; color: #68747a; }
.pin-input-wrap svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.form-error { min-height: 20px; margin: 7px 0 2px; font-size: 12px; color: #b43b2c; }
.unlock-button { width: 100%; border: 0; padding: 15px 17px; background: var(--ink); color: white; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.unlock-button:disabled { opacity: .6; cursor: wait; }
.unlock-button span { font-size: 20px; }
.dialog-foot { display: flex; align-items: center; justify-content: center; gap: 8px; text-transform: uppercase; font-size: 8px; letter-spacing: 1.1px; color: #7d8589; margin: 19px 0 0; }
.dialog-foot span { width: 6px; height: 6px; border-radius: 50%; background: #3caa76; }
.toast { position: fixed; left: 50%; bottom: 25px; transform: translate(-50%, 20px); background: var(--ink); color: white; padding: 11px 17px; border-radius: 999px; font-size: 12px; opacity: 0; pointer-events: none; transition: .25s ease; z-index: 30; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 760px) {
  .site-header { height: 74px; padding: 0 20px; }
  .secure-pill { padding: 8px 10px; font-size: 10px; }
  main { width: min(100% - 30px, 600px); }
  .landing { padding-top: 48px; }
  h1 { font-size: clamp(45px, 14vw, 68px); letter-spacing: -3.5px; }
  h1 em { letter-spacing: -4px; }
  .intro-copy { font-size: 15px; margin-bottom: 35px; }
  .space-grid { grid-template-columns: 1fr; }
  .space-card { min-height: 390px; }
  .card-art { width: 48%; height: 48%; transform: scale(.8); transform-origin: top right; }
  .card-copy strong { font-size: 50px; }
  .identity { display: none !important; }
  .workspace-head { align-items: flex-start; flex-direction: column; }
  .workspace-head h2 { letter-spacing: -3.5px; }
  .app-grid { grid-template-columns: 1fr; }
  .app-card { min-height: 220px; }
  .access-note { grid-template-columns: auto 1fr; }
  .access-note a { grid-column: 2; }
  .pin-dialog form { padding: 34px 25px 25px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
