/* VELAR — quiet, considered, and deliberately simple. */
:root {
  color-scheme: dark;
  --bg: #080a0b;
  --ink: #f4f5f3;
  --muted: #a1a6a5;
  --dim: #737a78;
  --line: rgba(239, 245, 242, 0.11);
  --accent: #c8e2d5;
  --curve: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: Manrope, "Avenir Next", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  background: var(--bg);
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 16px;
  left: 16px;
  padding: 12px 16px;
  color: #080a0b;
  background: var(--ink);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 500ms var(--curve);
}

.skip-link:focus { transform: translateY(0); outline: 3px solid var(--accent); outline-offset: 4px; }

.page-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.page-shell::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background: radial-gradient(ellipse 43% 48% at 76% 48%, rgba(105, 145, 125, 0.105), transparent 72%);
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 160px, 1280px);
  margin-inline: auto;
}

.site-header {
  min-height: 112px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark { display: block; width: 36px; height: 36px; }

.brand-name {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.header-note,
.eyebrow,
.hero-index,
.site-footer p {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.header-note { color: var(--dim); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(400px, 0.96fr);
  align-items: center;
  width: min(100% - 160px, 1280px);
  min-height: 650px;
  flex: 1 0 auto;
  margin-inline: auto;
  padding-block: 64px 80px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding-bottom: 28px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 32px;
  color: var(--muted);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(200, 226, 213, 0.58);
}

h1 {
  max-width: 680px;
  margin: 0;
  color: var(--ink);
  background: linear-gradient(104deg, #ffffff 2%, #a5aaa8 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 72px;
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 1;
  text-wrap: balance;
}

.hero-subtitle {
  max-width: 420px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  text-wrap: pretty;
}

.hero-visual {
  position: relative;
  width: min(100%, 600px);
  justify-self: end;
  aspect-ratio: 1;
  margin-right: -20px;
  animation: settle-in 1200ms var(--curve) both;
}

.hero-visual::after {
  position: absolute;
  inset: 20%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(151, 192, 170, 0.1), transparent 67%);
  filter: blur(48px);
  content: "";
  animation: breathe 12s var(--curve) 1200ms infinite alternate;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.92;
  animation: drift 18s var(--curve) 1200ms infinite alternate;
}

.hero-index {
  position: absolute;
  right: 0;
  bottom: 36px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.hero-index > span:first-child { color: var(--accent); }
.index-line { width: 32px; height: 1px; background: var(--line); }

.site-footer {
  min-height: 80px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 0.13em;
}

.site-footer p span { padding-left: 4px; }
.footer-note { letter-spacing: 0.08em !important; text-transform: uppercase; }

.footer-ornament { display: inline-flex; align-items: center; gap: 4px; }
.footer-ornament span {
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.32;
}
.footer-ornament span:nth-child(2) { opacity: 0.64; }

@keyframes settle-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes drift {
  from { transform: translateY(0) rotate(-1deg); }
  to { transform: translateY(-9px) rotate(1deg); }
}

@keyframes breathe {
  from { opacity: 0.45; transform: scale(0.96); }
  to { opacity: 0.85; transform: scale(1.04); }
}

@media (max-width: 1040px) {
  .site-header,
  .site-footer,
  .hero { width: min(100% - 96px, 1280px); }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(320px, 0.88fr); }
  h1 { font-size: 60px; }
}

@media (max-width: 720px) {
  .site-header,
  .site-footer,
  .hero { width: min(100% - 56px, 1280px); }
  .site-header { min-height: 88px; }
  .header-note { display: none; }
  .hero {
    display: flex;
    align-items: center;
    min-height: calc(100svh - 168px);
    padding-block: 64px 80px;
    overflow: visible;
  }
  .hero-copy { max-width: 100%; padding-bottom: 0; }
  .eyebrow { margin-bottom: 24px; font-size: 10px; }
  h1 { max-width: 560px; font-size: 48px; letter-spacing: -0.06em; }
  .hero-subtitle { max-width: 360px; margin-top: 20px; font-size: 16px; line-height: 24px; }
  .hero-visual {
    position: absolute;
    z-index: 0;
    top: 50%;
    right: -31%;
    width: 108%;
    max-width: none;
    margin: 0;
    opacity: 0.44;
    transform: translateY(-44%);
    animation: none;
  }
  .hero-visual img { animation-duration: 24s; }
  .hero-index { right: 0; bottom: 24px; font-size: 9px; }
  .site-footer { min-height: 80px; }
  .footer-note { display: none; }
}

@media (max-width: 380px) {
  .site-header,
  .site-footer,
  .hero { width: min(100% - 48px, 1280px); }
  h1 { font-size: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
  .hero-visual::after,
  .hero-visual img { animation: none; }
}
