:root {
  --bg: #0e1114;
  --bg-2: #151a1f;
  --fg: #e9ecef;
  --muted: #9aa4ad;
  --line: #262d34;
  --accent: #d9b77e;
  --radius: 14px;
  --max: 1120px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

header.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(14, 17, 20, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 14px; }
.logo svg { width: 26px; height: 26px; }
nav a { margin-left: 28px; font-size: 14px; color: var(--muted); }
nav a.btn { color: var(--bg); background: var(--accent); padding: 8px 16px; border-radius: 999px; font-weight: 600; }
nav a.btn:hover { color: var(--bg); filter: brightness(1.08); }

.hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero svg.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .wrap { position: relative; padding-bottom: 72px; }
.eyebrow { color: var(--accent); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.hero h1 { font-size: clamp(36px, 6vw, 68px); line-height: 1.05; margin: 14px 0 18px; font-weight: 600; max-width: 14ch; }
.hero p { color: #c9d0d6; max-width: 52ch; font-size: 18px; margin: 0; }

section { padding: 96px 0; border-bottom: 1px solid var(--line); }
section h2 { font-size: 32px; font-weight: 600; margin: 8px 0 40px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card .thumb { aspect-ratio: 16 / 10; position: relative; }
.card .thumb svg { width: 100%; height: 100%; display: block; }
.card .thumb .dur { position: absolute; right: 10px; bottom: 10px; font-size: 12px; background: rgba(0,0,0,.6); padding: 2px 8px; border-radius: 6px; }
.card .body { padding: 18px 20px 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.services h3 { font-size: 18px; margin: 0 0 8px; }
.services p { color: var(--muted); margin: 0; }

.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.about p { color: #c4cbd1; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.stats div { border-top: 1px solid var(--line); padding-top: 14px; }
.stats b { display: block; font-size: 28px; font-weight: 600; color: var(--accent); }
.stats span { color: var(--muted); font-size: 13px; }

form.contact { display: grid; gap: 14px; max-width: 560px; }
input, textarea {
  width: 100%; background: var(--bg-2); color: var(--fg);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font: inherit;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); }
button {
  background: var(--accent); color: var(--bg); border: 0; border-radius: 999px;
  padding: 12px 22px; font: inherit; font-weight: 600; cursor: pointer; justify-self: start;
}
.note { color: var(--muted); font-size: 14px; }

footer { padding: 40px 0 56px; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* client portal */
.portal { min-height: 100vh; display: grid; place-items: center; padding: 24px; position: relative; overflow: hidden; }
.portal svg.scene { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.panel {
  position: relative; width: 100%; max-width: 400px;
  background: rgba(21, 26, 31, .92); border: 1px solid var(--line); border-radius: 18px; padding: 36px 32px;
}
.panel .logo { justify-content: center; margin-bottom: 22px; }
.panel h1 { font-size: 22px; text-align: center; margin: 0 0 6px; font-weight: 600; }
.panel p.sub { text-align: center; color: var(--muted); margin: 0 0 26px; font-size: 14px; }
.panel form { display: grid; gap: 12px; }
.panel button { justify-self: stretch; margin-top: 6px; }
.panel .err { display: none; color: #e8a0a0; font-size: 13px; text-align: center; }
.panel .links { display: flex; justify-content: space-between; margin-top: 18px; font-size: 13px; color: var(--muted); }

@media (max-width: 860px) {
  nav a:not(.btn) { display: none; }
  .grid, .services { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}
