/* =========================================================
   AKMOAS — Under Construction
   Design system: drafting paper / monochrome / single accent
   ========================================================= */

:root {
  --bg: #f4f1ea;
  --bg-dim: #ebe7df;
  --bg-deep: #e3ddd2;
  --ink: #0d0d0d;
  --ink-soft: rgba(13, 13, 13, 0.62);
  --ink-faint: rgba(13, 13, 13, 0.32);
  --ink-ghost: rgba(13, 13, 13, 0.1);
  --ink-line: rgba(13, 13, 13, 0.06);
  --accent: #c4623f;
  --accent-soft: rgba(196, 98, 63, 0.14);

  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --col: 96px;
  --gutter: 48px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--accent); color: var(--bg); }

/* =========================================================
   BACKGROUND — drafting paper grid
   ========================================================= */
.grid-bg,
.grid-bg-fine {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.grid-bg {
  background-image:
    linear-gradient(to right, var(--ink-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--ink-line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 25%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 25%, transparent 95%);
}
.grid-bg-fine {
  background-image:
    linear-gradient(to right, var(--ink-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--ink-line) 1px, transparent 1px);
  background-size: 16px 16px;
  mask-image: radial-gradient(ellipse at center, black 15%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 15%, transparent 70%);
  opacity: 0.6;
}

/* =========================================================
   CURSOR — drafting crosshair
   ========================================================= */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.25s ease;
  mix-blend-mode: difference;
}
.cursor.active { opacity: 1; }
.cursor-h, .cursor-v {
  position: absolute;
  background: #ffffff;
}
.cursor-h {
  top: 50%; left: 0; right: 0;
  height: 1px;
  transform: translateY(-50%);
}
.cursor-v {
  left: 50%; top: 0; bottom: 0;
  width: 1px;
  transform: translateX(-50%);
}
.cursor-dot {
  position: absolute;
  top: 50%; left: 50%;
  width: 3px; height: 3px;
  background: #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

@media (hover: hover) and (pointer: fine) {
  body, a, button, input { cursor: none; }
}

/* =========================================================
   FRAME MARKS — sheet registration
   ========================================================= */
.frame-marks {
  position: fixed;
  inset: 14px;
  pointer-events: none;
  z-index: 100;
}
.mark {
  position: absolute;
  width: 14px;
  height: 14px;
}
.mark::before,
.mark::after {
  content: '';
  position: absolute;
  background: var(--ink-faint);
}
.mark::before { left: 0; right: 0; height: 1px; }
.mark::after { top: 0; bottom: 0; width: 1px; }
.mark-tl { top: 0; left: 0; }
.mark-tr { top: 0; right: 0; }
.mark-tr::before { right: 0; }
.mark-tr::after { right: 0; }
.mark-bl { bottom: 0; left: 0; }
.mark-bl::before { bottom: 0; top: auto; }
.mark-bl::after { bottom: 0; top: auto; }
.mark-br { bottom: 0; right: 0; }
.mark-br::before { bottom: 0; top: auto; right: 0; }
.mark-br::after { bottom: 0; top: auto; right: 0; }

/* =========================================================
   TOP BAR
   ========================================================= */
.top-bar {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px var(--gutter);
  border-bottom: 1px solid var(--ink-ghost);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  background: var(--bg);
}
.top-left, .top-right {
  display: flex;
  align-items: center;
  gap: 28px;
}
.top-label { color: var(--ink); }

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 12px;
  position: relative;
  box-shadow: 0 0 0 0 var(--accent-soft);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--accent-soft); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; }

main { position: relative; z-index: 5; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px var(--gutter) 60px;
  text-align: center;
  position: relative;
}

.hero-meta {
  position: absolute;
  top: 32px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 var(--gutter);
  color: var(--ink-faint);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin-bottom: 72px;
  position: relative;
}

.studio-label {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-left: 0.55em;
  display: flex;
  align-items: center;
  gap: 0.55em;
  opacity: 0;
  animation: fade-in 0.8s 0.1s forwards;
}
.studio-label .bracket {
  font-weight: 200;
  color: var(--ink-faint);
  font-size: 16px;
  letter-spacing: 0;
}

.brand-logo {
  width: min(960px, 88vw);
  height: auto;
  fill: none;
  stroke: var(--ink);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand-logo path,
.brand-logo ellipse {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 2.4s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.brand-logo path:nth-of-type(1) { animation-delay: 0.35s; }     /* A */
.brand-logo path:nth-of-type(2) { animation-delay: 0.55s; }     /* K stem */
.brand-logo path:nth-of-type(3) { animation-delay: 0.75s; }     /* K up */
.brand-logo path:nth-of-type(4) { animation-delay: 0.95s; }     /* K down */
.brand-logo path:nth-of-type(5) { animation-delay: 1.15s; }     /* M */
.brand-logo ellipse             { animation-delay: 1.5s;  }    /* O */
.brand-logo path:nth-of-type(6) { animation-delay: 1.75s; }     /* A */
.brand-logo path:nth-of-type(7) { animation-delay: 2.0s;  }     /* S */

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }

.brand-callout {
  position: absolute;
  right: -160px;
  top: 50%;
  transform: translateY(-50%);
  transform-origin: right center;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  font-size: 9px;
  color: var(--ink-faint);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  animation: fade-in 0.6s 2.6s forwards;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.callout-line {
  display: inline-block;
  width: 1px;
  height: 80px;
  background: var(--ink-ghost);
}

.hero-text { max-width: 600px; }
.hero-line {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.012em;
  margin-bottom: 22px;
  opacity: 0;
  animation: fade-up 0.8s 2.4s forwards;
}
.hero-num {
  font-family: var(--font-mono);
  font-size: 11px;
  vertical-align: super;
  margin-right: 10px;
  color: var(--accent);
  letter-spacing: 0.1em;
  font-weight: 500;
}
.hero-sub {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 460px;
  margin: 0 auto;
  opacity: 0;
  animation: fade-up 0.8s 2.6s forwards;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--ink-faint);
  text-transform: uppercase;
  opacity: 0;
  animation: fade-in 0.8s 3s forwards;
}
.scroll-line {
  display: block;
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--ink-faint), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  animation: scroll-tick 2.4s infinite;
}
@keyframes scroll-tick {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* =========================================================
   SECTION HEAD
   ========================================================= */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--gutter) 22px;
  border-bottom: 1px solid var(--ink-ghost);
  margin-bottom: 56px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
/* =========================================================
   COUNTDOWN
   ========================================================= */
.countdown-section {
  padding: 100px var(--gutter);
  border-top: 1px solid var(--ink-ghost);
}
.countdown-section .section-head {
  padding: 0 0 22px;
  margin-bottom: 64px;
}
.countdown {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.cd-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 130px;
}
.cd-num {
  font-family: var(--font-mono);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  display: block;
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.cd-label {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.cd-sep {
  font-family: var(--font-mono);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 100;
  line-height: 1;
  color: var(--ink-ghost);
  align-self: flex-start;
  margin-top: 0;
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  border-top: 1px solid var(--ink-ghost);
  padding: 80px var(--gutter) 28px;
  position: relative;
  z-index: 5;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto 64px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--ink-ghost);
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.footer-meta { font-size: 13px; color: var(--ink); }
.footer-link {
  font-size: 13px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink-ghost);
  padding-bottom: 2px;
  width: fit-content;
  transition: border-color 0.2s, color 0.2s;
}
.footer-link:hover { border-color: var(--accent); color: var(--accent); }
.footer-socials { display: flex; gap: 18px; margin-top: 6px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 10px;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .top-bar { padding: 14px var(--gutter); flex-direction: column; gap: 8px; align-items: flex-start; }
  .top-left, .top-right { gap: 16px; font-size: 10px; }
  .hero { padding: 100px var(--gutter) 60px; min-height: auto; }
  .hero-meta { position: static; margin-bottom: 24px; }
  .brand-stack { margin-bottom: 48px; }
  .brand-callout { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding: 0 0 40px; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
  .cd-cell { min-width: 72px; }
  .cd-num { margin-bottom: 8px; }
}

@media (max-width: 540px) {
  :root { --gutter: 20px; }
  .studio-label { font-size: 11px; letter-spacing: 0.4em; padding-left: 0.4em; }
  .hero-line { font-size: 20px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .scroll-hint { display: none; }
  .countdown { gap: 4px; }
  .cd-cell { min-width: 56px; }
  .cd-num { font-size: 44px; }
  .cd-sep { font-size: 44px; }
  .cd-label { font-size: 9px; letter-spacing: 0.18em; }
}
