:root {
  color-scheme: dark; --bg: #0f1715; --fg: #f0f1eb;
  --muted: #b3c2b8; --accent: #a1cbb7; --line: rgba(174,214,189,.19);
}
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 280px; overflow-x: clip; }
body {
  margin: 0; min-width: 280px; min-height: 100%; overflow-x: clip;
  color: var(--fg); background: var(--bg);
  font: 400 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 65% 65% at 84% 53%, rgba(89,155,118,.115), transparent 80%),
              radial-gradient(ellipse 52% 50% at 4% 110%, rgba(69,118,90,.05), transparent 83%);
}
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(180,225,196,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180,225,196,.07) 1px, transparent 1px),
    radial-gradient(circle, rgba(180,225,196,.17) .8px, transparent 1.4px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 83% 52%, #000 3%, transparent 95%);
  mask-image: radial-gradient(ellipse 72% 70% at 83% 52%, #000 3%, transparent 95%);
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
::selection { background: var(--accent); color: var(--bg); }
.skip-link { position: absolute; top: -90px; left: 20px; z-index: 10; padding: 11px 15px; color: var(--bg); background: var(--accent); }
.skip-link:focus { top: 12px; }
.site-frame {
  isolation: isolate; position: relative;
  width: min(calc(100% - 112px),1440px); min-height: 100vh; min-height: 100dvh;
  margin-inline: auto; display: flex; flex-direction: column;
}
.site-header { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-block: 42px 23px; }
.wordmark { font-size: 26px; line-height: 1; font-weight: 680; letter-spacing: -.085em; }
.wordmark span { color: var(--accent); }
.header-label { display: inline-flex; align-items: center; gap: 9px; color: #a9b7ab; font-size: 10px; letter-spacing: .21em; font-weight: 610; white-space: nowrap; }
.presence-dot { display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.main-content { flex: 1 0 auto; position: relative; display: flex; align-items: center; padding-block: 70px; }
.identity { width: 100%; position: relative; z-index: 1; }
.eyebrow { margin: 0 0 27px; display: flex; align-items: center; gap: 14px; color: #a1cbb7; font-size: 10px; font-weight: 640; letter-spacing: .26em; }
h1 { margin: 0; font-size: clamp(74px,11vw,154px); font-weight: 500; line-height: .97; letter-spacing: -.082em; }
h1 em { color: var(--accent); font: italic 400 1em/.95 Georgia, "Times New Roman", serif; letter-spacing: -.073em; }
.mantra { margin: 39px 0 0; color: #d8e5d9; font: 400 clamp(23px,2.4vw,31px)/1.6 Georgia, "Times New Roman", serif; letter-spacing: -.02em; }
.mobile-break { display: none; }
.quiet-orbit {
  position: absolute; z-index: 0; top: 50%; right: 0;
  width: min(51vw,630px); aspect-ratio: 1; transform: translateY(-50%); opacity: .55; pointer-events: none;
}
.quiet-orbit::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(137,193,161,.09), transparent 69%); }
.quiet-orbit span { position: absolute; border: 1px solid rgba(174,214,189,.13); border-radius: 50%; }
.quiet-orbit span:nth-child(1) { inset: 4%; }
.quiet-orbit span:nth-child(2) { inset: 20%; opacity: .65; }
.quiet-orbit span:nth-child(3) { inset: 39%; opacity: .45; }
.quiet-orbit span:first-child::before { content: ""; position: absolute; right: 13%; top: 17%; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.site-footer { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); padding-block: 19px 27px; font-size: 12px; }
.copyright { color: #9daf9e; }
.contact { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #c9dacf; font-size: 14px; }
.contact span { color: var(--accent); }
.contact:hover { color: white; }
.error-page .main-content { align-items: center; }
.error-content { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.error-content h1 { font-size: clamp(58px,10vw,130px); }
.error-content p { color: var(--muted); }
.error-content a { color: var(--accent); border-bottom: 1px solid var(--accent); padding-bottom: 7px; }
@media (max-width: 900px) {
  .site-frame { width: calc(100% - 2 * clamp(20px,4.5vw,34px)); }
  .quiet-orbit { right: 0; width: 90%; opacity: .26; }
}
@media (max-width: 620px) {
  .site-frame { width: calc(100% - 36px); }
  .site-header { padding-block: 25px 18px; border-bottom: 1px solid rgba(174,214,189,.12); }
  .wordmark { font-size: 24px; }
  .header-label { font-size: 11px; letter-spacing: .10em; gap: 8px; }
  .main-content { flex: 1 0 auto; padding-block: 18px 22px; }
  .eyebrow { margin-bottom: 16px; font-size: 11px; letter-spacing: .17em; }
  h1 { font-size: clamp(64px,18.5vw,78px); line-height: .96; letter-spacing: -.09em; }
  h1 em { letter-spacing: -.085em; }
  .mantra { margin-top: 18px; font-size: clamp(21px,5.65vw,27px); line-height: 1.43; }
  .mobile-break { display: none; }
  .quiet-orbit { width: 100%; right: 2%; top: 52%; opacity: .22; }
  .site-footer { min-height: 72px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; padding-block: 9px max(12px,env(safe-area-inset-bottom)); }
  .contact { font-size: 14px; }
}
@media (max-width: 360px) {
  .site-frame { width: calc(100% - 36px); }
  .wordmark { font-size: 22px; }
  .header-label { font-size: 10px; letter-spacing: .06em; }
  h1 { font-size: clamp(52px,17.8vw,64px); }
  .site-footer { flex-wrap: wrap; gap: 8px; }
  .error-content h1 { font-size: clamp(48px,13vw,64px); }
}
@media (max-width: 620px) and (max-height: 720px) {
  .main-content { padding-block: 18px 20px; }
  .mantra { margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* 9×9 Matrix Loang / Silent Tide
   Sage-coloured light diffuses outward through a restrained Matrix field.
   Decorative layers are behind the name and never shift the layout. */
.main-content { isolation: isolate; }
.loang-veil {
  position: absolute; inset: -7% 0; z-index: 0;
  overflow: hidden; pointer-events: none;
}
.loang-veil::before, .loang-veil::after {
  content: ""; position: absolute; inset: -18%; pointer-events: none;
}
.loang-veil::before {
  background: radial-gradient(ellipse 41% 52% at 69% 52%,
    rgba(129, 208, 164, .18) 0%, rgba(81, 159, 123, .10) 32%,
    rgba(54, 115, 91, .035) 56%, transparent 76%);
  opacity: .70;
}
.loang-veil::after {
  background-image: radial-gradient(circle, rgba(177, 236, 194, .54) 1.15px, transparent 2.15px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 24% 34% at 69% 51%, #000 4%, transparent 98%);
  mask-image: radial-gradient(ellipse 24% 34% at 69% 51%, #000 4%, transparent 98%);
  opacity: .54;
}
.quiet-orbit::after {
  content: ""; position: absolute; inset: 3%;
  border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 12deg,
    transparent 0deg 225deg,
    rgba(170, 234, 195, .03) 245deg,
    rgba(170, 234, 195, .7) 266deg,
    rgba(170, 234, 195, .13) 297deg,
    transparent 324deg 360deg);
  -webkit-mask-image: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 1px));
  mask-image: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 1px));
  opacity: .78;
}
.quiet-orbit span.loang-ripple {
  inset: 5%;
  border-color: rgba(172, 228, 194, .43);
  opacity: 0;
  transform: scale(.39);
}
@keyframes loang-sage-tide {
  0%, 100% { opacity: .48; transform: translate3d(-3%, 2%, 0) scale(.86); }
  50% { opacity: .95; transform: translate3d(3%, -2%, 0) scale(1.08); }
}
@keyframes loang-sage-nodes {
  0%, 100% { opacity: .24; transform: translate3d(9px, -6px, 0); }
  50% { opacity: .78; transform: translate3d(-12px, 10px, 0); }
}
@keyframes loang-sage-orbit {
  0%, 100% { transform: translateY(-50%) translate3d(0, 0, 0); }
  50% { transform: translateY(-50%) translate3d(6px, -8px, 0); }
}
@keyframes loang-sage-trace {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes loang-sage-ripple {
  0% { opacity: 0; transform: scale(.4); }
  21% { opacity: .30; }
  84%, 100% { opacity: 0; transform: scale(1.03); }
}
@media (prefers-reduced-motion: no-preference) {
  .loang-veil::before { animation: loang-sage-tide 33s ease-in-out infinite; }
  .loang-veil::after { animation: loang-sage-nodes 34s ease-in-out infinite; }
  .quiet-orbit { animation: loang-sage-orbit 38s ease-in-out infinite; }
  .quiet-orbit::after { animation: loang-sage-trace 190s linear infinite; }
  .quiet-orbit span:first-child { animation: loang-sage-trace 260s linear infinite reverse; }
  .quiet-orbit span.loang-ripple { animation: loang-sage-ripple 29s ease-out infinite; }
}
@media (max-width: 620px) {
  .loang-veil { inset: -6% 0; }
  .quiet-orbit { opacity: .34; }
  .loang-veil::before { opacity: .72; }
  .loang-veil::after { opacity: .62; }
}
@media (max-width: 620px) and (prefers-reduced-motion: no-preference) {
  /* Retain the tide and orbit, simplify the decorative traces. */
  .quiet-orbit::after, .quiet-orbit span:first-child,
  .quiet-orbit span.loang-ripple { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .loang-veil::before, .loang-veil::after, .quiet-orbit, .quiet-orbit::after,
  .quiet-orbit span:first-child, .quiet-orbit span.loang-ripple {
    animation: none !important;
  }
  .quiet-orbit span.loang-ripple { opacity: 0; }
}

/* Text-only BQK header: quiet wordmark with K as the defining accent. */
.wordmark { display: inline-flex; align-items: center; line-height: 1; letter-spacing: normal; }
.wordmark .wordmark-type { color: #c2d2c9; font-size: 26px; font-weight: 590;
  line-height: 1; letter-spacing: -.035em; }
.wordmark .wordmark-k { color: var(--accent); font-weight: 750; }
@media (max-width: 620px) {
  .wordmark .wordmark-type { font-size: 24px; letter-spacing: -.035em; }
}
