/* officadia.com. The page's background is the same as the office picture's, so the office stands on the page itself. */
:root {
  color-scheme: light dark;
  --bg: #eff3f4;
  --card: #ffffff;
  --ink: #0f2a2e;
  --muted: #47595e;
  --line: #d3dfe0;
  --teal: #0b8a82;
  --teal-ink: #ffffff;
  --link: #08706a;
  --warm: #fff6e4;
  --night: #0f2a2e;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d171f;
    --card: #121d24;
    --ink: #e6eef0;
    --muted: #9fb1b8;
    --line: #24343d;
    --teal: #3cc8bd;
    --teal-ink: #04201e;
    --link: #6bd8cf;
    --warm: #17201f;
    --night: #070d11;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, -apple-system, Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.9rem); font-weight: 750; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.16rem; font-weight: 650; }
p { margin: 0; }
a { color: var(--link); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; margin: 0; padding: 0; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--card); padding: 8px 12px; z-index: 9; }
.fine { color: var(--muted); font-size: 0.88rem; max-width: 68ch; }
.btn { display: inline-block; border: 0; border-radius: 12px; padding: 13px 22px; background: var(--teal); color: var(--teal-ink); font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.07); }
.btn.quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px clamp(16px, 4vw, 48px); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(8px); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.16rem; white-space: nowrap; }
.brand i { font-style: normal; font-weight: 400; color: var(--teal); }
.m-body { fill: #0b8a82; } .m-screen { fill: #f6f8f8; } .m-base, .m-hub { fill: #0f2a2e; }
@media (prefers-color-scheme: dark) { .m-body, .m-base, .m-hub { fill: #fff; } .m-screen { fill: #0f2a2e; } }
.top nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 24px); font-size: 0.95rem; }
.top nav a { color: var(--ink); text-decoration: none; white-space: nowrap; }
.top nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.top nav .signin { padding: 8px 14px; border-radius: 10px; box-shadow: inset 0 0 0 1.5px var(--line); }

section { padding: clamp(48px, 8vw, 96px) clamp(16px, 4vw, 48px); max-width: 1280px; margin: 0 auto; }
.lead { color: var(--muted); font-size: 1.12rem; margin-top: 8px; }

.hero { max-width: none; padding-top: clamp(28px, 4vw, 52px); padding-bottom: 0; overflow: hidden; text-align: center; }
.hero-text { max-width: 900px; margin: 0 auto; }
.hero-text > p { margin: 18px auto 0; max-width: 60ch; color: var(--muted); font-size: 1.12rem; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-pic { display: block; max-width: 1400px; margin: 8px auto 0; -webkit-mask-image: linear-gradient(#000 84%, transparent); mask-image: linear-gradient(#000 84%, transparent); }
.hero-pic img { width: 100%; }
/* A moving scene: the still stays underneath and shows until the film plays (and when motion is off). */
.film { position: relative; overflow: hidden; }
.film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.5s; }
.film video.on { opacity: 1; }
figure .film { border-radius: 18px; }
.offices .film { aspect-ratio: 16 / 10; }
.offices .film img { height: 100%; }
/* Places to look at. */
.spots li { position: absolute; }
.spots li:nth-child(1) { left: 29%; top: 17%; }
.spots li:nth-child(2) { left: 36.5%; top: 27%; }
.spots li:nth-child(3) { left: 51%; top: 33%; }
.spots li:nth-child(4) { left: 6.5%; top: 38%; }
.spots li:nth-child(5) { left: 40%; top: 50%; }
.spots li:nth-child(6) { left: 74.5%; top: 69%; }
.spots button { all: unset; box-sizing: border-box; position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; cursor: pointer; font-size: 0; }
.spots button::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #fff; border: 3px solid #0b8a82; box-shadow: 0 1px 6px rgb(0 0 0 / 0.4); }
.spots button::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; border: 2px solid #5ff0a8; animation: spot 2.2s ease-out infinite; }
@keyframes spot { from { transform: scale(0.6); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.spots button:focus-visible { outline: 3px solid var(--teal); }
.spots button:is(:hover, .open) { z-index: 3; }
.spots li:has(button:is(:hover, :focus-visible, .open)) { z-index: 3; }
.spots span, .spots .tip { display: none; }
.spots button:is(:hover, :focus-visible, .open) span { display: block; position: absolute; left: 50%; bottom: 36px; translate: -50% 0; width: max-content; max-width: 220px; padding: 9px 13px; border-radius: 11px; background: var(--card); color: var(--ink); font-size: 14px; line-height: 1.35; text-align: left; box-shadow: 0 8px 26px rgb(10 30 34 / 0.28); }
.spots button span::before { content: attr(data-name); display: block; font-weight: 650; }
.spots li:nth-child(4) button:is(:hover, :focus-visible, .open) span { left: 0; translate: 0 0; }
.motion { position: absolute; right: 16px; top: 12px; border: 0; border-radius: 99px; padding: 7px 14px; background: color-mix(in srgb, var(--card) 88%, transparent); color: var(--ink); font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; box-shadow: 0 1px 6px rgb(0 0 0 / 0.18); z-index: 4; }

.day { max-width: none; background: var(--warm); }
.day > * { max-width: 1180px; margin-inline: auto; }
.day ol { display: grid; gap: clamp(36px, 6vw, 76px); margin-top: clamp(28px, 5vw, 56px); }
.day li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 64px); align-items: center; }
.day li:nth-child(even) .words { order: 2; }
.day li:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.day time { display: block; font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 300; letter-spacing: -0.02em; color: var(--teal); font-variant-numeric: tabular-nums; line-height: 1; margin-bottom: 12px; }
.day h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.day .words p { margin-top: 8px; color: var(--muted); max-width: 46ch; }
figure { margin: 0; position: relative; }
figure img { width: 100%; border-radius: 18px; }
.note { position: absolute; left: 16px; bottom: 16px; max-width: calc(100% - 32px); background: var(--card); color: var(--ink); border-radius: 12px; padding: 10px 14px; font-size: 0.88rem; line-height: 1.4; box-shadow: 0 8px 26px rgb(10 30 34 / 0.22); }
.note b { display: block; font-weight: 650; }
.pill { display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 99px; font-size: 0.8rem; box-shadow: inset 0 0 0 1px var(--line); }
.pill.ok { background: var(--teal); color: var(--teal-ink); box-shadow: none; }
.note.live i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #d93848; margin-right: 3px; }
.day .night { background: var(--night); color: #e9f3f3; border-radius: 24px; padding: clamp(20px, 3.4vw, 44px); }
.day .night time { color: #7ff5d8; }
.day .night .words p { color: #b9cfd1; }
.day .fine { margin-top: 28px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 28px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 3px solid var(--teal); padding-top: 16px; }
.steps h3::before { content: counter(s) ". "; color: var(--teal); }
.steps p, .grid p { color: var(--muted); margin-top: 6px; }
#bots { padding-top: 0; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 28px; margin: 28px 0; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.control { max-width: none; background: var(--night); color: #e9f3f3; }
.control > * { max-width: 1180px; margin-inline: auto; }
.control .grid { margin-inline: auto; }
.control .grid p, .control .fine { color: #b9cfd1; }
.control h3 { color: #7ff5d8; }

.offices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 28px 0 16px; }
.offices li { background: var(--card); border-radius: 18px; overflow: hidden; }
.offices img { width: 100%; object-fit: cover; }
.offices .wide { grid-column: 1 / -1; }
.offices li:not(.wide) { transition: transform 0.25s; }
.offices li:not(.wide):hover { transform: translateY(-4px); }
.city-view { position: relative; }
.city-window { overflow: hidden; }
.offices .city .film { aspect-ratio: 1600 / 926; transition: transform 1.1s cubic-bezier(0.3, 0.7, 0.2, 1); transform-origin: 50% var(--cy, 50%); }
.city.in .film { transform: translateY(calc(50% - var(--cy))) scale(2.5); }
.city-say { position: absolute; left: 16px; bottom: 16px; max-width: calc(100% - 32px); padding: 9px 14px; border-radius: 12px; background: var(--card); color: var(--ink); font-weight: 600; font-size: 0.95rem; opacity: 0; transition: opacity 0.3s; }
.city.in .city-say { opacity: 1; box-shadow: 0 8px 26px rgb(10 30 34 / 0.25); }
.city-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; padding-right: 12px; }
.floors { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0 8px 16px; }
.floors button { border: 0; border-radius: 9px; padding: 8px 13px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); font: inherit; font-size: 0.9rem; cursor: pointer; }
.floors button[aria-pressed="true"] { background: var(--teal); color: var(--teal-ink); box-shadow: none; }
.offices b { display: block; padding: 12px 16px; font-weight: 600; }

.price { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.amount { margin: 14px 0 10px; font-size: 1.1rem; }
.amount b { font-size: clamp(3rem, 8vw, 4.6rem); font-weight: 750; letter-spacing: -0.04em; margin-right: 6px; line-height: 1; }
.price ul li { padding: 13px 0; border-top: 1px solid var(--line); }
.price ul li:last-child { border-bottom: 1px solid var(--line); }

.faq { padding-top: 0; max-width: 900px; }
.faq h2 { margin-bottom: 18px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; }
.faq details p { padding: 0 0 18px; color: var(--muted); max-width: 66ch; }

.join { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); max-width: none; background: var(--warm); padding-inline: max(clamp(16px, 4vw, 48px), calc((100% - 1180px) / 2)); }
.join > div p { margin-top: 10px; color: var(--muted); }
form { display: grid; gap: 14px; }
label { display: block; font-weight: 600; font-size: 0.95rem; }
label input:not([type="checkbox"]), label textarea { margin-top: 5px; }
label span { font-weight: 400; color: var(--muted); }
input:not([type="checkbox"]), textarea { width: 100%; font: inherit; color: var(--ink); background: var(--card); border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px; }
input[aria-invalid="true"] { border-color: #c9303f; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-weight: 400; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--teal); }
.trap { position: absolute; left: -9999px; }
form .btn { justify-self: start; }
form .btn[disabled] { opacity: 0.6; cursor: default; }
#answer { min-height: 1.6em; font-weight: 600; }
#answer.bad { color: #b4321f; }
@media (prefers-color-scheme: dark) { #answer.bad { color: #ff8a76; } }

footer { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 28px clamp(16px, 4vw, 48px); font-size: 0.9rem; color: var(--muted); }
footer span { margin-right: auto; }

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .top nav a:not(.signin) { display: none; }
  .day li, .day li:nth-child(even), .price, .join { grid-template-columns: minmax(0, 1fr); }
  .day li:nth-child(even) .words { order: 0; }
  .steps, .grid.three { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .offices { grid-template-columns: minmax(0, 1fr); }
  .city.in .film { transform: translateY(calc(50% - var(--cy))) scale(3); }
  .city-say { position: static; max-width: none; border-radius: 0; background: transparent; box-shadow: none; padding: 10px 16px 0; min-height: 3.6em; opacity: 1; }
  .city.in .city-say { box-shadow: none; }
  .hero-pic { margin-inline: -16px; width: calc(100% + 32px); }
  .spots button::before { inset: 10px; border-width: 2px; }
  .spots button:is(:hover, :focus-visible, .open) span { max-width: 170px; font-size: 13px; }
}
@media (max-width: 460px) {
  .grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .spots button::after { animation: none; opacity: 0.6; } .offices .city .film, .offices li:not(.wide), .film video { transition: none; } }
.still .spots button::after { animation: none; opacity: 0.6; }
