:root {
  --bg: #0b0c0e;
  --bg-2: #111316;
  --ink: #e6e4df;
  --ink-dim: #8b8983;
  --ink-faint: #4a4842;
  --accent: #e89b3c;
  --accent-soft: #c47a1f;
  --steel: #2a2d31;
  --line: rgba(230, 228, 223, 0.07);
  --line-strong: rgba(230, 228, 223, 0.16);
  --serif: "Fraunces", "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

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

html,
body {
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(20px, 3vw, 40px);
  background:
    radial-gradient(ellipse at top left, rgba(232, 155, 60, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(80, 100, 120, 0.04) 0%, transparent 55%),
    var(--bg);
}

#blueprint {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.55;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

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

.topbar,
.stage,
.bottombar {
  position: relative;
  z-index: 2;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: clamp(20px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
  animation: fadeDown 0.9s ease 0.1s both;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.mark {
  color: var(--accent);
  animation: spin 60s linear infinite;
}

.brand-text {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

.stage {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(40px, 7vh, 100px) 0;
}

.meta-top {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: clamp(28px, 5vh, 56px);
  animation: fadeUp 0.9s ease 0.3s both;
}

.meta-label {
  color: var(--ink-faint);
}

.meta-value {
  color: var(--accent);
}

.meta-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--ink-dim);
  font-size: 10px;
  letter-spacing: 0.2em;
  background: rgba(232, 155, 60, 0.04);
}

.flag-bar {
  display: inline-block;
  width: 18px;
  height: 8px;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--accent) 0 4px,
    transparent 4px 8px
  );
  border: 1px solid var(--accent-soft);
}

.headline {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 9vw, 124px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: clamp(28px, 5vh, 48px);
}

.headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.line {
  display: block;
  opacity: 0;
  transform: translateY(28px);
  animation: lineIn 1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.line-1 {
  animation-delay: 0.4s;
}

.line-2 {
  animation-delay: 0.55s;
  padding-left: clamp(20px, 6vw, 80px);
}

.line-3 {
  animation-delay: 0.7s;
  padding-left: clamp(40px, 12vw, 160px);
}

.sub {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 52ch;
  margin-bottom: clamp(40px, 6vh, 72px);
  animation: fadeUp 0.9s ease 0.95s both;
}

.name {
  color: var(--ink);
  font-style: italic;
}

.divider {
  display: flex;
  gap: 6px;
  margin-bottom: clamp(36px, 5vh, 56px);
  animation: fadeUp 0.9s ease 1.1s both;
}

.divider span {
  display: block;
  height: 1px;
  background: var(--line-strong);
}

.divider span:nth-child(1) {
  width: 48px;
}

.divider span:nth-child(2) {
  width: 12px;
  background: var(--accent);
}

.divider span:nth-child(3) {
  width: 24px;
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeUp 0.9s ease 1.25s both;
}

.contact-heading {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.contact-intro {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.55;
  color: var(--ink-dim);
  max-width: 48ch;
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.contact-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: baseline;
  font-family: var(--mono);
}

.contact-key {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.contact-value {
  font-size: clamp(14px, 1.3vw, 16px);
  color: var(--ink);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(14px, 1.3vw, 16px);
  color: var(--ink);
  text-decoration: none;
  padding: 2px 0;
  border-bottom: 1px solid var(--line-strong);
  width: fit-content;
  transition: color 0.3s ease, border-color 0.3s ease, gap 0.3s ease;
}

.contact-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  gap: 14px;
}

.contact-link svg {
  transition: transform 0.3s ease;
}

.contact-link:hover svg {
  transform: translate(2px, -2px);
}

.contact-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.bottombar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: clamp(20px, 3vw, 36px);
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  animation: fadeUp 0.9s ease 1.4s both;
}

.foot-sep {
  color: var(--ink-faint);
  opacity: 0.5;
}

.foot-coords {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

@keyframes lineIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 10px var(--accent);
  }
  50% {
    opacity: 0.55;
    box-shadow: 0 0 3px var(--accent);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 640px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .bottombar {
    flex-wrap: wrap;
  }

  .foot-coords {
    margin-left: 0;
    width: 100%;
    margin-top: 6px;
  }

  .line-2 {
    padding-left: 0;
  }

  .line-3 {
    padding-left: 0;
  }

  .contact-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .meta-flag {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .line {
    opacity: 1;
    transform: none;
  }
}
/* =========================
   TABLET RESPONSIVE
========================= */

@media (max-width: 1024px) {
  body {
    padding: 24px;
  }

  .stage {
    padding: 60px 0;
  }

  .headline {
    font-size: clamp(52px, 10vw, 92px);
  }

  .sub {
    max-width: 100%;
  }

  .contact-list {
    gap: 18px;
  }

  .contact-item {
    grid-template-columns: 100px 1fr;
  }

  .meta-top {
    gap: 12px;
  }

  .meta-flag {
    margin-left: 0;
  }
}

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

@media (max-width: 768px) {
  body {
    padding: 18px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .stage {
    padding: 48px 0;
  }

  .headline {
    font-size: clamp(42px, 13vw, 72px);
    line-height: 1;
    margin-bottom: 28px;
  }

  .line-2,
  .line-3 {
    padding-left: 0;
  }

  .sub {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 40px;
  }

  .meta-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 36px;
  }

  .meta-value {
    line-height: 1.5;
  }

  .meta-flag {
    width: fit-content;
  }

  .divider {
    margin-bottom: 40px;
  }

  .contact-block {
    gap: 16px;
  }

  .contact-intro {
    max-width: 100%;
    line-height: 1.7;
  }

  .contact-list {
    gap: 22px;
  }

  .contact-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .contact-key {
    font-size: 10px;
  }

  .contact-link,
  .contact-value {
    font-size: 15px;
    word-break: break-word;
  }

  .bottombar {
    flex-wrap: wrap;
    gap: 8px;
    line-height: 1.6;
  }

  .foot-coords {
    width: 100%;
    margin-left: 0;
  }

  #blueprint {
    opacity: 0.35;
  }
}

/* =========================
   SMALL MOBILE DEVICES
========================= */

@media (max-width: 480px) {
  body {
    padding: 16px;
  }

  .brand-text {
    font-size: 11px;
    letter-spacing: 0.18em;
  }

  .status {
    font-size: 10px;
    letter-spacing: 0.14em;
  }

  .headline {
    font-size: clamp(36px, 14vw, 56px);
  }

  .sub {
    font-size: 15px;
  }

  .contact-link,
  .contact-value {
    font-size: 14px;
  }

  .bottombar {
    font-size: 10px;
  }
}