@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/inter.woff2") format("woff2");
}

:root {
  --bg: #0a0a0a;
  --fg: #ffffff;
  --fg-2: rgba(255, 255, 255, 0.68);
  --fg-3: rgba(255, 255, 255, 0.48);
  --line: rgba(255, 255, 255, 0.16);
  --measure: 640px;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* Staggered reveal on load. Header is not animated so first paint still registers. */
.hero h1, .hero p, .rows li, .cta, .foot {
  animation: reveal 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero p { animation-delay: 0.08s; }
.rows li:nth-child(1) { animation-delay: 0.18s; }
.rows li:nth-child(2) { animation-delay: 0.24s; }
.cta { animation-delay: 0.34s; }
.foot { animation-delay: 0.46s; }
@keyframes reveal {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1, .hero p, .rows li, .cta, .foot { animation: none; }
}

::selection { background: #ffffff; color: #0a0a0a; }

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover { text-decoration: underline; }
.go span { display: inline-block; transition: transform 0.15s ease; }
.go:hover span { transform: translate(2px, 0); }
.rows li:hover .go span { transform: translate(1px, -1px); }
a:focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: 3px;
  border-radius: 1px;
}

h1, h2, p, ul { margin: 0; }

.wrap {
  width: 100%;
  max-width: calc(var(--measure) + 48px);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* pointer effects (enabled by app.js on fine pointers only) */
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor .copy { cursor: none; }
.cur {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000;
  pointer-events: none;
  border-radius: 50%;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 0.3s ease, width 0.25s ease, height 0.25s ease, background-color 0.25s ease;
}
.cur-on .cur { opacity: 1; }
.cur-dot { width: 6px; height: 6px; background: #ffffff; }
.cur-ring { width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, 0.8); }
.cur-hover .cur-ring { width: 52px; height: 52px; background: rgba(255, 255, 255, 0.16); }
.cur-hover .cur-dot { width: 4px; height: 4px; }
.cur-press .cur-ring { width: 26px; height: 26px; }

[data-magnet] {
  display: inline-block;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}
[data-magnet].is-magnet { transition-duration: 0.12s; }
[data-magnet-inner] { display: inline-block; transition: inherit; }

[data-depth] {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-style: preserve-3d;
}
[data-depth].is-depth { transition-duration: 0.1s; }
[data-depth] > * {
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
[data-depth].is-depth > * { transition-duration: 0.1s; }

/* keyboard: skip to content */
.skip {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 8px 12px;
  background: #ffffff;
  color: #0a0a0a;
  border-radius: 999px;
  font-size: 13px;
  transform: translateY(-200%);
  transition: transform 0.15s ease;
  z-index: 10;
}
.skip:focus-visible { transform: none; outline: none; text-decoration: none; }

/* nav */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 28px;
  padding-bottom: 28px;
  font-size: 13px;
}
.brand { color: var(--fg); font-weight: 500; display: inline-flex; align-items: center; gap: 9px; }
.mark { width: 13px; height: 13px; flex-shrink: 0; position: relative; top: -0.5px; }
.nav nav { display: flex; gap: 20px; }
.nav nav a { color: var(--fg-2); }
.nav nav a:hover { color: var(--fg); }

/* main */
main { flex: 1; }

.hero {
  padding-top: 96px;
  padding-bottom: 80px;
}
.hero h1 {
  text-wrap: balance;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.012em;
  margin-bottom: 16px;
}
.hero p {
  text-wrap: pretty;
  font-size: 16px;
  color: var(--fg-2);
  max-width: 34em;
}

section + section { margin-top: 72px; }
section[id] { scroll-margin-top: 32px; }

@media (max-width: 560px) {
  .hero { padding-top: 64px; padding-bottom: 64px; }
  section + section { margin-top: 56px; }
  .foot { margin-top: 88px; }
}

/* section headings kept for screen readers and anchors, not shown */
.label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* product rows */
.rows { list-style: none; padding: 0; }
.rows li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
}
.rows .name { font-weight: 500; flex-shrink: 0; }
.rows .desc { color: var(--fg-2); transition: color 0.15s ease; }
.rows li:hover .desc { color: var(--fg); }
.rows .go { margin-left: auto; flex-shrink: 0; white-space: nowrap; }

@media (max-width: 560px) {
  .rows li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 12px;
  }
  .rows .desc { grid-column: 1 / -1; }
  .rows .go { grid-row: 1; grid-column: 2; margin-left: 0; }
}

/* consulting: call to action */
.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  border: 0.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.cta-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--fg-2);
  margin-bottom: 10px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}
/* when taking projects again: .dot { background: #fff; animation: pulse 2.4s ease-out infinite; } */
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45); }
  70%  { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
.copy {
  all: unset;
  cursor: pointer;
  position: relative;
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.copy:hover { text-decoration: underline; }
.copy:focus-visible { outline: 1px solid #ffffff; outline-offset: 3px; border-radius: 1px; }
.copy::after {
  content: "copied";
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  font-size: 12px;
  color: var(--fg-2);
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none;
}
.copy[data-state="copied"]::after { opacity: 1; transform: translateY(-50%); }
.cta-title { font-size: 16px; font-weight: 500; }
.cta-sub { font-size: 14px; color: var(--fg-2); margin-top: 2px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #ffffff;
  color: #0a0a0a;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn span { display: inline-block; transition: transform 0.15s ease; }
.btn:hover { text-decoration: none; background: #e6e6e6; }
.btn:hover span { transform: translateX(2px); }
.btn:focus-visible { outline-color: #ffffff; }
@media (max-width: 560px) {
  .cta { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px; }
}

/* scene: fixed page background, sunrise on load */
.scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
}
.scene > * { position: absolute; inset: 0; }
.scene picture, .scene img { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene img { object-fit: cover; object-position: 30% 70%; display: block; }

/* legibility: keep the bright horizon from fighting the text */
.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0) 0%, rgba(10,10,10,0.25) 45%, rgba(10,10,10,0.6) 100%);
}

/* the scene lights up on load */
.dawn {
  background: #0a0a0a;
  animation: dawn 2.4s ease-out 0.2s both;
}
@keyframes dawn { from { opacity: 0.92; } to { opacity: 0.45; } }
.grain {
  inset: -40%;
  width: 180%;
  height: 180%;
  opacity: 0.28;
  mix-blend-mode: overlay;
  animation: jitter 0.9s steps(5) infinite;
}
@keyframes jitter {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-2%, 1%); }
  40%  { transform: translate(1%, -2%); }
  60%  { transform: translate(-1%, -1%); }
  80%  { transform: translate(2%, 2%); }
  100% { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .dawn { animation: none; opacity: 0.45; }
  .grain { animation: none; }
  .dot { animation: none; }
  .go span, .rows .desc, .btn, .btn span { transition: none; }
}

/* footer */
.foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 120px;
  padding-top: 24px;
  padding-bottom: 40px;
  position: relative;
  font-size: 12px;
  color: var(--fg-3);
}
.foot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  border-top: 0.5px solid var(--line);
}
.foot a:hover { color: var(--fg); }

/* print: black on white, no scene */
@media print {
  :root { --bg: #ffffff; --fg: #0a0a0a; --fg-2: #6b6b6b; --fg-3: #9a9a9a; --line: #e5e5e5; }
  .scene, .skip, .dot { display: none; }
  .cta { border-color: #e5e5e5; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .btn { background: none; color: #0a0a0a; padding: 0; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 12px; color: #9a9a9a; }
  .hero h1, .hero p, .rows li, .cta, .foot { animation: none; }
}
