:root {
  --bg: #0b0c0e;
  --text: #a1a7ae;
  --head: #eef0f2;
  --muted: #646b73;
  --line: #1f2328;
  --accent: #38bdf8;
  --accent-dim: rgba(56,189,248,.35);
  --sans: 'Geist', system-ui, sans-serif;
  --mono: 'DM Mono', ui-monospace, monospace;
  --pad: clamp(24px, 6vw, 96px);
  --top: clamp(20px, 6vh, 64px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 30% 30%, #000 10%, transparent 75%);
}
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0; transition: opacity .4s;
  background-image: linear-gradient(rgba(56,189,248,.4) 1px, transparent 1px), linear-gradient(90deg, rgba(56,189,248,.4) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(260px circle at var(--x, -999px) var(--y, -999px), #000, transparent 70%);
}
body.lit::after { opacity: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
strong { color: var(--head); font-weight: 500; }

.layout { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); }
@media (min-width: 1024px) { .layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 72px; } }

/* LEFT */
.side { padding: 64px 0 24px; }
@media (min-width: 1024px) { .side { position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; justify-content: space-between; padding: 64px 0 48px; } }
.brand { font: 400 16px var(--mono); color: #f0f0f0; }
.brand b { color: var(--accent); font-weight: 400; }
.side .name { font: 600 clamp(34px, 4vw, 44px)/1.08 var(--sans); color: var(--head); letter-spacing: -.035em; }
.side .lead { font: 400 clamp(17px, 1.6vw, 19px)/1.45 var(--sans); color: var(--head); margin-top: 14px; max-width: 22em; }
.side .tagline { max-width: 22em; margin-top: 8px; }
.status { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font: 13px var(--mono); color: var(--text); }
.status::before { content: ''; flex: none; box-sizing: border-box; width: 16px; height: 16px; padding: 4px; background: linear-gradient(var(--accent), var(--accent)) content-box, rgba(56,189,248,.14); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(56,189,248,.18); } 50% { box-shadow: 0 0 0 5px rgba(56,189,248,0); } }

/* PHONE: top bar with a menu button; tree, booking and contacts open as a panel */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; height: 56px; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); background: rgba(11,12,14,.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.menu-btn { display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px; font: 13px var(--mono); color: var(--head); background: none; border: 1px solid var(--line); cursor: pointer; }
.menu-btn i { position: relative; width: 16px; height: 10px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transition: border-color .15s; }
.menu-btn i::before, .menu-btn i::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; margin-top: -.75px; height: 1.5px; background: currentColor; transition: transform .15s; }
.menu-open .menu-btn { border-color: var(--accent-dim); }
.menu-open .menu-btn i { border-color: transparent; }
.menu-open .menu-btn i::before { transform: rotate(45deg); }
.menu-open .menu-btn i::after { transform: rotate(-45deg); }
.crumbs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-bottom: 28px; font: 12px/1.5 var(--mono); color: var(--muted); }
.crumbs a { color: var(--text); }
.crumbs a:hover { color: var(--head); }
.crumbs i { font-style: normal; }
.crumbs b { font-weight: 400; color: var(--accent); }
@media (max-width: 1023px) {
  .side { padding: 32px 0 24px; }
  .side-inner { padding: 0; }
  .side-inner .side-intro { display: none; }
  .side-nav { display: none; position: fixed; z-index: 19; top: 56px; left: 0; right: 0; bottom: 0; overflow-y: auto; padding: 24px var(--pad) 40px; background: var(--bg); border-top: 1px solid var(--line); }
  .menu-open { overflow: hidden; }
  .menu-open .side-nav { display: block; }
  .side-nav .tree { margin-top: 28px; }
  .side-nav .social { margin-top: 32px; }
}
@media (min-width: 1024px) {
  .topbar, .crumbs, .side-nav .menu-only { display: none; }
  .side-nav { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
}

/* TAG TREE */
.tree { margin-top: 32px; }
.tree ul { list-style: none; border-left: 1px solid var(--line); }
@media (min-width: 1024px) { .tree { margin-top: 40px; } }
.node { display: flex; align-items: center; gap: 12px; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 1px solid transparent; font: 14px var(--mono); color: var(--muted); transition: color .15s, border-color .15s; }
.node span { color: var(--muted); white-space: nowrap; }
.node em { font-style: normal; font-size: 10px; border: 1px solid var(--line); padding: 0 5px; }
a.node:hover { color: var(--head); }
.node.on { color: var(--head); border-left-color: var(--accent); }
.node.on span { color: var(--accent); }
.node.here { color: var(--head); }
.node.spy { color: var(--head); }
.tree > ul { border-left: none; }
.node.root { padding-left: 0; border-left: none; color: var(--head); }
.node.root .logo { font-style: normal; }
.node.root .logo b { color: var(--accent); font-weight: 400; }
.branch { margin: 2px 0 0 4px; }
.tree li:has(> .kids) > .node { color: var(--head); }
.kids { margin: 2px 0 6px 16px; }
.kids .node { font-size: 13px; padding: 5px 0 5px 14px; gap: 10px; }
.node.off { opacity: .4; cursor: default; }
.node-more { color: var(--muted); opacity: .7; }
.kids .delim { padding: 4px 0 2px 14px; font-size: 11px; }
.side .btn-book { margin-top: 24px; }

.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 24px; }
.filters button { font: 12px var(--mono); color: var(--muted); background: none; border: 1px solid var(--line); padding: 5px 10px; cursor: pointer; transition: color .15s, border-color .15s; }
.filters button:hover { color: var(--head); }
.filters button.on { color: var(--head); border-color: var(--accent-dim); }
.item[hidden] { display: none; }
.node-more:hover { opacity: 1; }

/* Left side scales with screen height so it fits without scrolling */
@media (min-width: 1024px) {
  .side { padding: var(--top) 0 clamp(16px, 4vh, 48px); }
  .brand { font-size: clamp(13px, 2vh, 16px); }
  .side .name { font-size: clamp(26px, min(4vw, 5.4vh), 44px); }
  .side .lead { font-size: clamp(14px, min(1.6vw, 2.3vh), 19px); margin-top: clamp(6px, 1.6vh, 14px); }
  .side .tagline { font-size: clamp(13px, 2vh, 16px); }
  .status { font-size: clamp(11px, 1.6vh, 13px); margin-top: clamp(10px, 2.6vh, 24px); }
  .side .btn-book { margin-top: clamp(10px, 2.6vh, 24px); padding: clamp(6px, 1.2vh, 10px) 16px; font-size: clamp(12px, 1.7vh, 14px); }
  .tree { margin-top: clamp(12px, 4vh, 40px); }
  .node { font-size: clamp(12px, 1.75vh, 14px); padding-top: clamp(3px, .8vh, 7px); padding-bottom: clamp(3px, .8vh, 7px); }
  .kids .node { font-size: clamp(11px, 1.6vh, 13px); padding-top: clamp(2px, .5vh, 5px); padding-bottom: clamp(2px, .5vh, 5px); }
  .kids .delim { font-size: clamp(10px, 1.4vh, 11px); padding-top: clamp(2px, .5vh, 4px); }
  .social { margin-top: clamp(12px, 3vh, 32px); }
  .social a { font-size: clamp(11px, 1.6vh, 13px); padding: clamp(4px, .8vh, 6px) 12px; }
}

.social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(12px, 3vh, 32px); }
.social a { font: 13px var(--mono); color: var(--text); border: 1px solid var(--line); padding: 6px 12px; transition: color .15s, border-color .15s; }
.social a:hover { color: var(--head); border-color: var(--accent-dim); }

/* RIGHT */
.content { padding: 24px 0 96px; }
@media (min-width: 1024px) { .content { padding: var(--top) 0 88px; } }
.content > section { margin-bottom: 88px; scroll-margin-top: 64px; }
.item.soon h3 { color: var(--text); }
.sec-label { display: flex; align-items: center; gap: 14px; font: 400 13px var(--mono); color: var(--head); margin-bottom: 28px; }
.sec-label span { color: var(--accent); }
.sec-label em { font-style: normal; font-size: 10px; color: var(--muted); border: 1px solid var(--line); padding: 0 5px; margin-left: -4px; }
.sec-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.about p { margin-bottom: 16px; }
.about-photo { display: flex; gap: 16px; align-items: center; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.about-photo img { width: 88px; height: 88px; object-fit: cover; }
.about-photo span { font: 12px/1.6 var(--mono); color: var(--muted); }

/* ITEMS */
.items { list-style: none; border-top: 1px solid var(--line); }
.item { position: relative; display: grid; gap: 6px 28px; padding: 24px 0 24px 0; border-bottom: 1px solid var(--line); transition: padding .2s; }
@media (min-width: 640px) { .item { grid-template-columns: 136px 1fr; } }
.item::before { content: ''; position: absolute; left: 0; top: -1px; bottom: -1px; width: 2px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform .2s; }
.item:hover { padding-left: 16px; }
.item:hover::before { transform: scaleY(1); }
.item .meta { font: 12px/1.7 var(--mono); color: var(--muted); }
.item .meta b { display: block; font: 400 14px var(--mono); color: var(--head); padding-left: 10px; }
.item .meta .tag { display: block; font-size: 11px; color: var(--muted); opacity: .45; }
.item .meta .ptag { display: block; font-size: 12px; color: var(--text); padding-left: 10px; margin-bottom: 6px; }
.creator { font: 11px var(--mono); color: var(--muted); opacity: .7; margin: -18px 0 18px; }
.item h3 { font: 500 17px/1.4 var(--sans); color: var(--head); letter-spacing: -.01em; }
.item h3 a::after { content: ''; position: absolute; inset: 0; }
.item h3 .arr { display: inline-block; margin-left: 6px; color: var(--muted); transition: transform .15s, color .15s; }
.item:hover h3 .arr { transform: translateX(4px); color: var(--accent); }
.item p { font-size: 15px; margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; list-style: none; }
.chips li { font: 12px var(--mono); color: var(--text); border: 1px solid var(--line); padding: 2px 8px; }
.sec-intro { margin-bottom: 28px; }

.more { display: inline-flex; gap: 8px; margin-top: 28px; font: 14px var(--mono); color: var(--head); border-bottom: 1px solid var(--accent-dim); padding-bottom: 2px; }
.more:hover { color: var(--accent); border-color: var(--accent); }

/* CASE REPORT */
.report { margin-bottom: 64px; }
.r-head { padding-bottom: 28px; }
.r-kind { font: 13px var(--mono); color: var(--muted); }
.delim { font: 11px var(--mono); color: var(--muted); opacity: .55; padding: 14px 0 0; }
.report h1 { font: 600 clamp(30px, 4.4vw, 44px)/1.1 var(--sans); color: var(--head); letter-spacing: -.03em; margin-top: 12px; }

.r-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); border: 1px solid var(--line); background: rgba(11,12,14,.75); }
.r-fields div { padding: 14px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.r-fields dt { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text); }
.r-fields dt i { font: normal 11px var(--mono); color: var(--muted); opacity: .6; cursor: help; }
.r-fields dd { font-size: 16px; color: var(--head); margin-top: 4px; }
.r-ok { display: inline-flex; align-items: center; gap: 8px; font: 14px var(--mono); }
.r-ok::before { content: ''; width: 7px; height: 7px; background: var(--accent); }

.r-sec { padding: 36px 0; border-bottom: 1px solid var(--line); }
.r-sec h2 { display: flex; gap: 14px; font: 400 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--head); margin-bottom: 16px; }
.r-sec h2 span { color: var(--accent); }
.r-sec p { max-width: 40em; }
.r-list { list-style: none; counter-reset: f; display: grid; gap: 14px; }
.r-list li { counter-increment: f; position: relative; padding-left: 36px; max-width: 40em; }
.r-list li::before { content: counter(f, decimal-leading-zero); position: absolute; left: 0; font: 13px/1.9 var(--mono); color: var(--muted); }
.r-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); background: rgba(11,12,14,.75); }
.r-table th { font: 400 11px var(--mono); color: var(--muted); text-align: left; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.r-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.r-table td:first-child { width: 1%; white-space: nowrap; font: 13px var(--mono); color: var(--muted); border-right: 1px solid var(--line); cursor: help; }
.r-table td:last-child { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; }
.r-table td span { font-size: 14px; }
.r-table td b { font: 400 14px var(--mono); color: var(--head); }

.r-sign { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 16px; padding: 32px 0; font: 13px var(--mono); color: var(--muted); }
.r-sign .more { margin-top: 0; }
.r-next a { display: block; padding: 22px 24px; border: 1px solid var(--line); color: var(--head); font-weight: 500; transition: border-color .15s; }
.r-next a:hover { border-color: var(--accent-dim); }
.r-next span { display: block; font: 12px var(--mono); color: var(--muted); font-weight: 400; margin-bottom: 4px; }

.r-lede { font-size: 17px; margin-top: 14px; max-width: 36em; }
.btn-book { display: inline-flex; align-items: center; gap: 8px; font: 14px var(--mono); color: var(--head); border: 1px solid var(--accent-dim); padding: 10px 16px; transition: border-color .15s, background .15s; }
.btn-book::after { content: '→'; transition: transform .15s; }
.btn-book:hover { border-color: var(--accent); background: rgba(56,189,248,.08); }
.btn-book:hover::after { transform: translateX(3px); }

.about-hero { display: grid; gap: 24px; align-items: start; }
@media (min-width: 720px) { .about-hero { grid-template-columns: 240px 1fr; } }
.about-hero img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border: 1px solid var(--line); }
.about-fig img { width: 220px; border: 1px solid var(--line); }
.about-fig figcaption { font: 12px var(--mono); color: var(--muted); margin-top: 10px; }
.r-sec p + p { margin-top: 12px; }
.r-code { margin: 14px 0 18px; padding: 14px 16px; border: 1px solid var(--line); background: rgba(255,255,255,.015); font: 12.5px/1.6 var(--mono); color: var(--head); white-space: pre; overflow-x: auto; }
.r-code + p { margin-top: 12px; }

.svc-table td:first-child { font-family: var(--sans); font-size: 14px; cursor: default; }
.svc-table td:last-child { display: table-cell; }

.r-bullets { margin: 12px 0 16px; padding-left: 18px; list-style: square; }
.r-bullets li { margin: 6px 0; }
.r-bullets li::marker { color: var(--accent); }
.r-fig { margin: 28px 0 8px; padding: 20px; border: 1px solid var(--line); background: rgba(255,255,255,.015); }
.r-fig figcaption { margin-top: 14px; font: 12px var(--mono); color: var(--muted); }
.r-fig pre.mermaid { margin: 0; padding: 0; background: none; border: 0; text-align: center; color: transparent; overflow-x: auto; }
.r-fig pre.mermaid[data-processed] { color: inherit; }
.r-fig pre.mermaid svg { max-width: 100%; height: auto; }
.r-sec h2.faq-q { font: 500 17px/1.4 var(--sans); letter-spacing: 0; text-transform: none; margin-bottom: 8px; }

.site-foot { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.foot-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 32px; }
.foot-nav h4 { font: 400 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.foot-nav a { display: block; font-size: 13px; color: var(--text); padding: 3px 0; transition: color .15s; }
.foot-nav a:hover { color: var(--head); }
@media (max-width: 560px) { .foot-nav { grid-template-columns: 1fr 1fr; } }
.foot { font: 12px var(--mono); color: var(--muted); }
.foot a { color: var(--text); }
.foot a:hover { color: var(--accent); }
