/* oscarh.uk — holding page. Single deliberate dark, cinematic look (no light mode). */

:root {
  --bg: #0a0a0a;
  --fg: #f5f5f2;
  --dim: rgb(245 245 242 / 0.55);
  --faint: rgb(245 245 242 / 0.18);
  --accent: #ff3b30;
  --ease-settle: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 100%/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  overflow: hidden;
}

/* ---------- layout ---------- */

.stage {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.content {
  position: relative;
  z-index: 2;
  text-align: center;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  animation: materialize 900ms var(--ease-settle) 400ms forwards;
}

.wordmark {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.75rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.wordmark .accent {
  color: var(--accent);
}

.tagline {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  color: var(--dim);
  letter-spacing: 0.01em;
}

/* ---------- viewfinder frame (screen corners) ---------- */

.frame {
  position: fixed;
  inset: 28px;
  z-index: 3;
  pointer-events: none;
}

.bracket {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--faint);
}

.bracket.tl {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
}
.bracket.tr {
  top: 0;
  right: 0;
  border-left: none;
  border-bottom: none;
}
.bracket.bl {
  bottom: 0;
  left: 0;
  border-right: none;
  border-top: none;
}
.bracket.br {
  bottom: 0;
  right: 0;
  border-left: none;
  border-top: none;
}

/* ---------- reticle (viewfinder / lens motif) ---------- */

.reticle {
  position: absolute;
  z-index: 1;
  width: min(64vw, 520px);
  height: min(64vw, 520px);
  opacity: 0;
  animation: materialize 1100ms var(--ease-settle) 150ms forwards;
}

.ring {
  fill: none;
  stroke: var(--faint);
  stroke-width: 1;
}

.ring-outer {
  transform-origin: center;
  animation: breathe 6s ease-in-out infinite;
}

.crosshair {
  stroke: var(--faint);
  stroke-width: 1;
}

.focus-box {
  fill: none;
  stroke: var(--faint);
  stroke-width: 1;
  transform-origin: center;
  animation: breathe 6s ease-in-out infinite reverse;
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.035);
  }
}

@keyframes materialize {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- contact ---------- */

.contact {
  position: fixed;
  z-index: 3;
  bottom: 44px;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font: 500 0.75rem/1 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.04em;
}

.contact a {
  color: var(--dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 200ms var(--ease-settle), border-color 200ms var(--ease-settle);
}

.contact a:hover,
.contact a:focus-visible {
  color: var(--fg);
  border-color: var(--faint);
}

/* ---------- REC indicator ---------- */

.rec {
  position: fixed;
  z-index: 3;
  top: 44px;
  left: 44px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font: 500 0.75rem/1 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.06em;
  color: var(--dim);
}

.rec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 2s ease-in-out infinite;
}

.rec-label {
  color: var(--fg);
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

/* ---------- video texture: scanlines, grain, vignette ---------- */

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgb(255 255 255 / 0.025) 0px,
    rgb(255 255 255 / 0.025) 1px,
    transparent 1px,
    transparent 3px
  );
  animation: drift 9s linear infinite;
}

@keyframes drift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(3px);
  }
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 45%, rgb(0 0 0 / 0.55) 100%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .content,
  .reticle {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .ring-outer,
  .focus-box,
  .scanlines,
  .rec-dot {
    animation: none;
  }
}

/* ---------- small viewports ---------- */

@media (max-width: 480px) {
  .frame {
    inset: 16px;
  }
  .rec {
    top: 28px;
    left: 28px;
  }
  .contact {
    bottom: 28px;
  }
}
