/* Owtex. One stylesheet, no webfonts, no dependencies. */
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

:root {
  --base: #0B1020;
  --plate: #121A31;
  --plate-2: #182244;
  --ink: #EAF2FF;
  --muted: #A7B4D0;
  --line: #26325A;
  --cyan: #2EE6FF;
  --magenta: #FF3DAE;
  --gold: #FFC94D;
  --grad: linear-gradient(100deg, var(--cyan), var(--magenta));
  --font: ui-sans-serif, Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 16px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--base); color: var(--ink);
  font: 400 clamp(1rem, 0.96rem + 0.2vw, 1.125rem)/1.6 var(--font);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #7df0ff; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--gold); color: #1a1300; padding: 12px 16px; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

/* Header */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.wordmark {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 800; letter-spacing: 0.22em; font-size: 1.05rem;
  color: var(--ink); text-decoration: none;
}
.wordmark:hover { color: var(--ink); }
.wordmark::first-letter { color: var(--cyan); }
.top-link {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px;
  color: var(--ink); text-decoration: none; font-size: 0.95rem;
}
.top-link:hover { color: var(--cyan); text-decoration: underline; }
.page-head { position: relative; border-bottom: 1px solid var(--line); background: var(--plate); }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--base); }
.hero-img {
  position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%;
  object-fit: cover; object-position: 72% 50%;
}
.hero::before { /* readability scrim */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(11,16,32,0.2) 0%, rgba(11,16,32,0.5) 60%, var(--base) 100%),
    linear-gradient(90deg, rgba(11,16,32,0.9) 0%, rgba(11,16,32,0.55) 45%, rgba(11,16,32,0) 80%);
}
.hero::after { /* slow gradient drift */
  content: ""; position: absolute; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 40% at 20% 30%, rgba(46,230,255,0.16), transparent 70%),
    radial-gradient(40% 35% at 80% 40%, rgba(255,61,174,0.16), transparent 70%);
  animation: drift 20s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(-4%, -2%, 0) scale(1); }
  to   { transform: translate3d(4%, 3%, 0) scale(1.08); }
}
.hero-inner { padding: 112px var(--gutter) 72px; min-height: min(86vh, 760px); display: flex; flex-direction: column; justify-content: center; }
.eyebrow { margin: 0 0 16px; font-weight: 700; letter-spacing: 0.3em; color: var(--cyan); font-size: 0.85rem; }
h1 {
  margin: 0 0 20px; max-width: 16ch;
  font-size: clamp(2.25rem, 1.2rem + 5.4vw, 5rem); line-height: 1.04; letter-spacing: -0.03em; font-weight: 800;
  text-wrap: balance;
}
.sub { margin: 0 0 32px; max-width: 46ch; color: #D3DDF2; font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 1.02rem;
  text-decoration: none; transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: scale(1.02); }
.btn-primary { background: var(--grad); color: #060914; box-shadow: 0 8px 32px rgba(255,61,174,0.28); }
.btn-primary:hover { color: #060914; box-shadow: 0 10px 40px rgba(46,230,255,0.35); }
.btn-ghost { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); padding-inline: 8px; }
.btn-ghost:hover { color: var(--cyan); }

/* Sections */
section { padding-block: clamp(48px, 8vw, 96px); }
h2 { margin: 0 0 20px; font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem); line-height: 1.12; letter-spacing: -0.02em; }
h3 { margin: 0 0 6px; font-size: 1.1rem; }

/* Project card with animated border */
.project { padding-top: clamp(24px, 4vw, 48px); }
.card {
  position: relative; isolation: isolate; border-radius: 24px; background: var(--plate);
  padding: clamp(20px, 4vw, 40px); display: grid; gap: 28px;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; z-index: -1;
  background: conic-gradient(from var(--angle), var(--cyan), var(--magenta), var(--gold), var(--cyan));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 8s linear infinite;
}
@keyframes spin { to { --angle: 360deg; } }
.card h2 { margin-bottom: 12px; }
.card p { margin: 0 0 20px; max-width: 52ch; color: #D3DDF2; }
.chips { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--plate-2); font-size: 0.9rem; }
.shot {
  position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  display: grid; place-items: center; background-color: #0E1530;
  background-image:
    linear-gradient(rgba(46,230,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,230,255,0.07) 1px, transparent 1px),
    radial-gradient(70% 90% at 50% 50%, rgba(255,61,174,0.14), transparent 70%);
  background-size: 28px 28px, 28px 28px, 100% 100%;
  border: 1px solid var(--line);
}
.shot span {
  font-weight: 900; letter-spacing: 0.18em; font-size: clamp(1.4rem, 1rem + 3vw, 2.6rem);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* About + small print */
.about p { max-width: 62ch; margin: 0 0 16px; color: #D3DDF2; }
.print-intro { color: var(--muted); max-width: 62ch; margin: 0 0 28px; }
.print { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.print li { border: 1px solid var(--line); border-left: 3px solid var(--cyan); border-radius: 12px; background: var(--plate); padding: 18px 20px; }
.print li p { margin: 0; color: #D3DDF2; max-width: 62ch; }
.print li:nth-child(3) { border-left-color: var(--gold); }
.print a { display: inline-block; padding-block: 10px; margin-right: 12px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--plate); padding-block: 32px; }
.foot { display: grid; gap: 12px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.foot nav a:hover { color: var(--cyan); }
.foot p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Legal prose */
.prose { max-width: calc(68ch + 2 * var(--gutter)); padding-block: 48px 72px; }
.prose h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.2rem); max-width: none; margin-bottom: 8px; }
.prose h2 { font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.6rem); margin: 40px 0 10px; }
.prose p, .prose li { color: #D3DDF2; }
.prose p { margin: 0 0 14px; }
.prose ul { padding-left: 1.2em; margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.updated { color: var(--muted); margin: 0 0 28px; }
.short { border: 1px solid var(--line); border-left: 3px solid var(--magenta); background: var(--plate); border-radius: 12px; padding: 18px 22px; margin-bottom: 8px; }
.short h2 { margin: 0 0 8px; font-size: 1.1rem; }
.short ul { margin: 0; }
.disclaimer { border: 1px solid var(--gold); border-radius: 12px; padding: 4px 22px 14px; margin-top: 40px; background: var(--plate); }
.disclaimer h2 { margin-top: 12px; }

/* Reveal */
.js-on .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js-on .reveal.in { opacity: 1; transform: none; }

@media (min-width: 840px) {
  :root { --gutter: 32px; }
  .card { grid-template-columns: 1fr 1.1fr; align-items: center; }
  .print { grid-template-columns: repeat(2, 1fr); }
  .foot { grid-template-columns: 1fr auto; align-items: center; }
  .foot nav { grid-column: 1 / -1; }
}
@media (max-width: 839px) {
  .hero-img { object-position: 68% 30%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero::after, .card::before { animation: none; }
  .js-on .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
