@font-face {
  font-family: Sora;
  src: local("Sora");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --paper: #101112;
  --ink: #eeeae2;
  --muted: #92968f;
  --line: #30332e;
  --acid: #d8fb78;
  --display: Sora, "Avenir Next", "Century Gothic", sans-serif;
  --body: "PingFang SC", "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  opacity: .055;
  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='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' opacity='.6' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
a { -webkit-tap-highlight-color: transparent; }
a:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 5px;
}
[hidden] { display: none !important; }
::selection { background: var(--acid); color: var(--paper); }

/* The header, artwork and compact contact footer share one available viewport. */
.site-shell {
  width: 100%;
  max-width: 1920px;
  height: 100vh;
  height: 100svh;
  margin: 0 auto;
  padding: env(safe-area-inset-top, 0px)
    max(5%, env(safe-area-inset-right, 0px))
    env(safe-area-inset-bottom, 0px)
    max(5%, env(safe-area-inset-left, 0px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.header {
  height: clamp(64px, 10svh, 104px);
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 3;
}
.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  font: 600 21px/1 var(--display);
  letter-spacing: -.7px;
}
.brand-mark { width: 30px; height: 30px; color: var(--acid); }
.brand-domain { color: #aeb0a8; font-weight: 400; }
.header-note {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #bcc0b5;
  font: 500 8px/1.6 var(--display);
  letter-spacing: 1.5px;
}
.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 12px #d8fb7850;
}
main {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
}

.hero { min-width: 0; min-height: 0; position: relative; isolation: isolate; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, #10111230, transparent 64%),
    linear-gradient(0deg, var(--paper), transparent 22%);
}
.hero-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(18px, 3svh, 40px) 0;
  position: relative;
  z-index: 2;
  pointer-events: none;
}
.eyebrow {
  margin: 0;
  font: 500 9px/1.5 var(--display);
  letter-spacing: 1.7px;
  color: #bcc0b5;
}
.hero-content .eyebrow { display: flex; align-items: center; gap: 10px; }
.tiny-cross { color: var(--acid); font: 18px/1 var(--display); }
h1 {
  margin: clamp(16px, 2.5svh, 28px) 0 clamp(18px, 3svh, 34px);
  font: 500 clamp(84px, min(17vw, 20svh), 208px)/.83 var(--display);
  letter-spacing: -.075em;
}
.title-first, .title-second { display: block; }
.title-second { margin-top: .065em; }
h1 em { color: var(--acid); font-style: normal; }
.hero-description {
  margin: 0;
  color: #b1b4aa;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 2px;
}
.artwork {
  position: absolute;
  inset: 0 0 0 22%;
  z-index: -2;
  overflow: hidden;
  contain: layout paint;
  pointer-events: none;
}
.artwork-halo {
  position: absolute;
  inset: 10% 3% 10% 7%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #c3fb7910, transparent 67%);
}
#orb { display: block; width: 100%; height: 100%; opacity: .95; }
.orbit-label {
  position: absolute;
  color: #99a585;
  font: 500 7px/1 var(--display);
  letter-spacing: 1.4px;
}
.orbit-label-top { right: 9%; top: 17%; writing-mode: vertical-rl; }
.orbit-label-bottom { right: 7%; bottom: 13%; }

.footer {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding: clamp(12px, 2svh, 21px) 0;
  color: var(--muted);
  font: 400 11px/1.5 var(--display);
  letter-spacing: .2px;
}
.footer-contact { min-width: 0; text-align: center; }
.email-link, .email-pending {
  margin: 0;
  color: #b1b4aa;
  font: inherit;
  letter-spacing: inherit;
  overflow-wrap: anywhere;
}
.email-link:hover { color: var(--acid); }
.footer-tagline {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 10px;
  color: #cbd0c0;
  font-size: inherit;
  letter-spacing: inherit;
}
.footer-star { color: var(--acid); font-size: 21px; line-height: 1; }
.skip-link {
  position: fixed;
  top: 15px;
  left: 20px;
  z-index: 20;
  transform: translateY(-160%);
  padding: 12px 18px;
  border-radius: 2px;
  background: var(--acid);
  color: var(--paper);
  font-size: 14px;
}
.skip-link:focus { transform: translateY(0); }

@media (max-width: 1000px) {
  .header-note { font-size: 7px; letter-spacing: 1px; gap: 8px; }
  .brand { font-size: 19px; gap: 9px; }
  .brand-mark { width: 27px; height: 27px; }
  .artwork { left: 18%; }
}

@media (max-width: 640px) {
  .site-shell {
    padding-right: max(6%, env(safe-area-inset-right, 0px));
    padding-left: max(6%, env(safe-area-inset-left, 0px));
  }
  .header { height: clamp(64px, 9svh, 78px); gap: 12px; }
  .brand { font-size: 18px; letter-spacing: -.65px; }
  .brand-mark { width: 25px; height: 25px; }
  .header-note { display: none; }
  .hero-content { justify-content: flex-start; padding-top: clamp(28px, 5svh, 54px); padding-bottom: 16px; }
  .eyebrow { font-size: 8px; letter-spacing: 1.4px; }
  .hero-content .eyebrow { gap: 8px; }
  .tiny-cross { font-size: 16px; }
  h1 { font-size: clamp(72px, min(25vw, 18svh), 128px); margin-top: 20px; margin-bottom: 20px; }
  .hero-description { font-size: 11px; letter-spacing: 1.3px; }
  .artwork { inset: 14% 0 0; }
  #orb { transform: translateX(12%); }
  .orbit-label { font-size: 6px; letter-spacing: 1px; }
  .orbit-label-top { top: 25%; right: 5%; }
  .orbit-label-bottom { right: 6%; bottom: 13%; }
  .footer { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; padding: 12px 0; font-size: 10px; letter-spacing: .2px; }
  .footer-contact { grid-column: 1 / -1; grid-row: 1; }
  .email-link, .email-pending { font-size: 10px; }
  .footer-tagline { gap: 7px; }
  .footer-star { font-size: 18px; }
}

/* Compact phones need less space around the same complete composition. */
@media (max-width: 640px) and (max-height: 640px) {
  .header { height: 60px; }
  .hero-content { padding-top: 24px; }
  h1 { font-size: clamp(66px, 22vw, 88px); margin-top: 15px; margin-bottom: 16px; }
  .hero-description { font-size: 10px; }
  .artwork { top: 17%; }
  .footer { padding: 9px 0; row-gap: 7px; }
}

/* A short landscape viewport keeps the contact footer compact. */
@media (max-height: 520px) {
  .header { height: 48px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand-mark { width: 23px; height: 23px; }
  .header-note { display: none; }
  .hero-content { justify-content: center; padding: 10px 0; }
  .eyebrow { font-size: 7px; letter-spacing: 1.2px; }
  .tiny-cross { font-size: 13px; }
  h1 { font-size: clamp(48px, min(13vw, 20svh), 92px); margin-top: 10px; margin-bottom: 12px; }
  .hero-description { font-size: 10px; line-height: 1.4; letter-spacing: 1px; }
  .artwork { inset: 0 0 0 24%; }
  #orb { transform: none; }
  .orbit-label { display: none; }
  .footer { padding: 7px 0; font-size: 10px; }
  .email-link, .email-pending { font-size: 10px; }
  .footer-tagline { gap: 6px; }
  .footer-star { font-size: 16px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-content { animation: reveal .85s both; }
  .artwork { animation: art-reveal 1.8s both; }
  @keyframes reveal {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes art-reveal {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
