/* DodsWorks Software: a holding page while the studio's site is built.
   A drafting table: blueprint grid, a crosshair, one warm accent. */

@font-face {
  font-family: 'Instrument Serif';
  src: url('fonts/instrument-serif.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('fonts/instrument-serif-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: #0b0c0f;
  --grid: rgb(237 233 225 / 0.045);
  --grid-major: rgb(237 233 225 / 0.08);
  --line: rgb(237 233 225 / 0.1);
  --text: #ede9e1;
  --muted: #8e8f97;
  --amber: #f0a63a;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', 'SF Mono', Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(20px, 5vw, 56px);
  color-scheme: dark;
}

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--amber); color: var(--bg); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; border-radius: 6px; }

/* ------------------------------------------------------------ blueprint */

.blueprint {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 50% 45%, rgb(240 166 58 / 0.07), transparent 70%),
    linear-gradient(var(--grid-major) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 30%, transparent 100%);
}

/* A drafting crosshair that follows the pointer (desktop only). */
.cross { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 0.4s; }
.cross.on { opacity: 1; }
.cx, .cy { position: absolute; background: rgb(240 166 58 / 0.22); }
.cx { left: 0; right: 0; height: 1px; top: var(--y, 50%); }
.cy { top: 0; bottom: 0; width: 1px; left: var(--x, 50%); }
.coords {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  transform: translate(10px, 8px);
  color: rgb(240 166 58 / 0.7);
  font: 11px/1 var(--mono);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ------------------------------------------------------------ top + bottom */

.top, .bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: baseline;
  justify-content: space-between;
  padding: 28px var(--gutter);
}
.name { font: 400 26px/1 var(--serif); letter-spacing: -0.01em; }
.bottom { justify-content: center; }
.tag, .bottom > span { color: var(--muted); font: 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }


/* ------------------------------------------------------------ middle */

.center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px var(--gutter);
  text-align: center;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  color: var(--muted);
  font: 12px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.25; } }

h1 {
  margin: 0;
  font: 400 clamp(52px, 9.5vw, 136px)/0.95 var(--serif);
  letter-spacing: -0.035em;
}
.line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.word { display: inline-block; transform: translateY(105%); animation: rise 1.2s var(--ease) forwards; }
.line + .line .word { animation-delay: 0.12s; }
h1 em {
  font-style: italic;
  background: linear-gradient(100deg, var(--amber) 20%, #ffd89b 50%, var(--amber) 80%) 0 0 / 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise 1.2s 0.12s var(--ease) forwards, shimmer 8s 1.5s linear infinite;
  padding-right: 0.06em;
}
@keyframes rise { to { transform: none; } }
@keyframes shimmer { to { background-position: -200% 0; } }

/* A progress line that never quite finishes. */
.progress {
  position: relative;
  width: min(280px, 70vw);
  height: 2px;
  margin: 44px 0 0;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}
.progress i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--amber);
  animation: build 9s 1.2s var(--ease) infinite;
}
@keyframes build {
  0% { width: 0; opacity: 1; }
  70% { width: 82%; opacity: 1; }
  90% { width: 86%; opacity: 0; }
  100% { width: 86%; opacity: 0; }
}

.now {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 52px;
  padding: 8px 18px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(11 12 15 / 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--muted);
  font-size: 15px;
  text-align: left;
  transition: border-color 0.3s, color 0.3s;
}
.now img { flex: none; border-radius: 50%; }
.now b { color: var(--text); font-weight: 600; }
.now:hover { border-color: rgb(240 166 58 / 0.45); color: var(--text); }
.arrow { color: var(--amber); transition: transform 0.3s var(--ease); }
.now:hover .arrow { transform: translateX(4px); }

/* ------------------------------------------------------------ entrance */

.fade { opacity: 0; animation: fade 1s 0.6s var(--ease) forwards; }
.now.fade { animation-delay: 0.9s; }
@keyframes fade { from { transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .progress i { width: 60%; }
}
