/* ============================================================
   ANTTOORA STUDIO
   Monochrome, Phantom-inspired one-pager.
   Near-black bg, off-white type, neo-grotesque headlines,
   monospace micro-text. No color accent.
   ============================================================ */

/* ----------------------------- Tokens ----------------------------- */
:root {
  --bg:        #0B0B0B;   /* near-black background */
  --fg:        #EDEDED;   /* off-white text */
  --muted:     #8A8A8A;   /* dimmed mono micro-text */
  --faint:     #3A3A3A;   /* hairlines, pill outlines */
  --hair:      rgba(237, 237, 237, 0.12);

  --mono: "Space Mono", ui-monospace, "JetBrains Mono", Menlo, monospace;
  --grotesk: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;

  /* Shared rhythm */
  --gutter: clamp(20px, 5vw, 80px);   /* horizontal page padding */
  --section-y: clamp(80px, 14vh, 200px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----------------------------- Reset ----------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* Lenis owns scrolling once JS loads; this guards the no-JS case */
html.lenis { scroll-behavior: auto; }
html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--grotesk);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
sup { font-size: 0.4em; vertical-align: super; top: -0.1em; }

/* --------------------- Film-grain / noise overlay --------------------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.04;
  /* Inline SVG fractal noise — no extra request */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* --------------------------- Custom cursor --------------------------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--fg);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s var(--ease), transform 0.18s var(--ease);
  mix-blend-mode: difference;
}
.cursor.is-active { opacity: 1; }
.cursor.is-hovering { transform: scale(3.2); }

/* ============================ HEADER ============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px var(--gutter);
  backdrop-filter: blur(8px);
  background: linear-gradient(to bottom, rgba(11, 11, 11, 0.85), rgba(11, 11, 11, 0));
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

/* Generic pill — fully rounded outline */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--faint);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 9px 16px;
  white-space: nowrap;
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease),
              background 0.4s var(--ease);
}

.wordmark {
  justify-self: start;
  font-weight: 700;
}
.wordmark:hover { border-color: var(--fg); }

.header-tag {
  justify-self: center;
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: center;
}

.header-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
}

.clock {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  display: flex;
  gap: 10px;
  white-space: nowrap;
}
.clock-time { color: var(--fg); font-variant-numeric: tabular-nums; }

.pill-cta { color: var(--fg); }
.pill-cta:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ============================ LAYOUT ============================ */
.section {
  padding: var(--section-y) var(--gutter);
}

/* The defining Phantom move: tiny mono label to the LEFT of big content.
   A two-column grid; label is a narrow fixed-ish column. */
.row {
  display: grid;
  grid-template-columns: minmax(120px, 200px) 1fr;
  gap: clamp(24px, 6vw, 96px);
  align-items: start;
  max-width: 1600px;
  margin: 0 auto;
}

.col { min-width: 0; }

/* Tiny mono section label */
.label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-top: 0.65em;   /* nudge down to sit beside cap-height of headline */
}

/* Thin hairline between sections */
.hairline {
  border: 0;
  height: 1px;
  background: var(--hair);
  margin: 0 var(--gutter);
}

/* ============================ TYPE ============================ */

/* HUGE neo-grotesque display headline, near full-width, cropped feel */
.display {
  margin: 0;
  font-weight: 700;
  font-size: clamp(3rem, 13vw, 12rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.display .line { display: block; }

.display-sub {
  margin: clamp(20px, 3vw, 40px) 0 0;
  font-weight: 600;
  font-size: clamp(1.4rem, 4.5vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--fg);
}

.mono-sub {
  margin: clamp(24px, 3vw, 40px) 0 0;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* Mid-size section headline (hiring) */
.headline {
  margin: 0 0 clamp(16px, 2vw, 28px);
  font-weight: 600;
  font-size: clamp(2.2rem, 7vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.025em;
  text-transform: none;
}

/* Body statement */
.statement {
  margin: 0;
  font-weight: 400;
  font-size: clamp(1.3rem, 3.2vw, 2.6rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  max-width: 22ch;
}
.about .statement { max-width: 18ch; }

/* The enormous figure */
.figure {
  margin: 0;
  font-weight: 700;
  font-size: clamp(5rem, 22vw, 20rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
}
.figure-caption {
  margin: clamp(16px, 2vw, 28px) 0 0;
  padding-top: 0;
  color: var(--muted);
}
.quiet {
  margin: clamp(28px, 3vw, 44px) 0 0;
  font-size: clamp(1rem, 2vw, 1.5rem);
  line-height: 1.35;
  color: var(--muted);
  max-width: 30ch;
}
.quiet em { color: var(--fg); font-style: italic; }

/* ----------------------- Capability tags ----------------------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.tag {
  cursor: default;
  color: var(--fg);
  border-color: var(--faint);
}
.tag:hover { border-color: var(--fg); }

/* ----------------------------- Links ----------------------------- */
/* Quiet underline-draw on hover */
.link {
  position: relative;
  color: var(--fg);
  white-space: nowrap;
}
.link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.08em;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.link:hover::after { transform: scaleX(1); }

/* ============================ FOOTER ============================ */
.footer { padding-bottom: clamp(40px, 8vh, 100px); }

.footer-cta {
  display: block;
  font-size: clamp(3rem, 16vw, 15rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  font-weight: 700;
  transition: opacity 0.4s var(--ease);
}
.footer-cta:hover { opacity: 0.6; }

.footer-email {
  display: inline-block;
  margin-top: clamp(16px, 2vw, 28px);
  font-family: var(--mono);
  font-size: clamp(13px, 1.4vw, 16px);
  color: var(--muted);
}

.footer-meta {
  margin-top: clamp(48px, 8vh, 120px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-meta .label { padding-top: 0; }

/* ============================ MOTION ============================ */
/* Reveal initial state — JS animates to visible.
   Guarded so no-JS / reduced-motion users see content immediately. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  clip-path: inset(0 0 100% 0);
  will-change: opacity, transform, clip-path;
}

/* ====================== RESPONSIVE ====================== */

/* Tablet & down: stack the label ABOVE the content */
@media (max-width: 820px) {
  .row {
    grid-template-columns: 1fr;
    gap: clamp(14px, 4vw, 28px);
  }
  .label { padding-top: 0; }

  .header-inner { grid-template-columns: auto auto; gap: 12px; }
  .header-tag { display: none; }          /* drop center tagline on small */
}

/* Phone */
@media (max-width: 520px) {
  .header-right { flex-direction: column; align-items: flex-end; gap: 8px; }
  .clock { font-size: 10px; gap: 6px; }
  .wordmark { font-size: 11px; padding: 7px 12px; }
  .pill-cta { font-size: 11px; padding: 7px 12px; }

  .statement, .about .statement { max-width: none; }
  .tags { gap: 8px; }
  .tag { font-size: 11px; padding: 8px 13px; }
}

/* ============== Reduced motion: kill the heavy stuff ============== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
  .grain { display: none; }
  .cursor { display: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
