@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #14181a;
  --bg-lift: #222a2d;
  --ink: #f9faf4;
  --muted: #98a1a5;
  --line: rgba(249, 250, 244, 0.1);
  --red: #c62d44; /* logo crimson #a01f31, lifted for contrast on dark */
  --wrap: 1120px;
  --pad: clamp(22px, 5vw, 56px);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
p, h1, h2 { margin: 0; }
::selection { background: var(--red); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; border-radius: 2px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--pad));
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- Brand ---------- */
.brand {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
}
.brand span { color: var(--red); }

.motto {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.motto::before { content: "•\00a0\00a0"; }
.motto::after { content: "\00a0\00a0•"; }

/* ---------- Header ---------- */
.top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  padding: 30px 0;
}
/* brand must stay clear of the navigation strip zone (7% + gap) */
.top .wrap { padding-left: max(var(--pad), calc(7vw + 20px)); }
.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav { display: flex; gap: clamp(20px, 3vw, 36px); }
.nav a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s ease;
}
.nav a:hover, .nav a.active { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: 150px 0 clamp(56px, 10vh, 112px);
  overflow: hidden;
  background: radial-gradient(110% 70% at 50% 0%, var(--bg-lift) 0%, var(--bg) 70%);
}

.ghost {
  position: absolute;
  top: clamp(92px, 14vh, 160px);
  left: 50%;
  transform: translateX(-50%);
  font-size: min(25.5vw, 30rem);
  font-weight: 800;
  line-height: 0.82;
  white-space: nowrap;
  color: rgba(249, 250, 244, 0.15);
  -webkit-mask-image: linear-gradient(180deg, #000 12%, transparent 94%);
  mask-image: linear-gradient(180deg, #000 12%, transparent 94%);
  pointer-events: none;
  user-select: none;
}
.ghost span { color: rgba(176, 36, 56, 0.85); }

.hero--short { min-height: 62svh; padding-bottom: clamp(48px, 8vh, 88px); }
.hero--short .ghost { top: clamp(76px, 10vh, 130px); font-size: min(17vw, 20rem); }

.hero-body { position: relative; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

.hero .eyebrow::before { content: none; }

h1 {
  margin-bottom: 32px;
  font-size: clamp(2.2rem, 11vw, 7.5rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.lead {
  max-width: 34rem;
  margin-bottom: 42px;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
}
.btn {
  padding: 14px 30px;
  border: 1px solid rgba(249, 250, 244, 0.3);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.arrow-link svg { transition: transform 0.25s ease; }
.arrow-link:hover svg { transform: translateX(5px); }

/* ---------- Sections ---------- */
.section {
  padding: clamp(88px, 14vh, 160px) 0;
  border-top: 1px solid var(--line);
}

.statement {
  max-width: 21em;
  font-size: clamp(1.6rem, 3.8vw, 3rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--muted);
}
.statement strong { font-weight: inherit; color: var(--ink); }

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px clamp(32px, 5vw, 72px);
  margin-top: clamp(64px, 10vh, 112px);
}
.num {
  display: block;
  margin-bottom: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.principles h2 {
  margin-bottom: 12px;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.principles p { font-size: 0.98rem; color: var(--muted); }

/* ---------- Work row ---------- */
.work {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: clamp(48px, 8vh, 80px) 0;
  border-top: 1px solid var(--line);
}
.work .eyebrow { margin-bottom: 16px; }
.work-title {
  display: block;
  font-size: clamp(1.6rem, 4.4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.work-arrow {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(249, 250, 244, 0.3);
  border-radius: 50%;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.work:hover .work-arrow { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* ---------- Apps list ---------- */
.apps { border-top: 1px solid var(--line); }
.app-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(22px, 4vw, 48px);
  padding: clamp(42px, 7vh, 68px) 0;
  border-bottom: 1px solid var(--line);
}
.app-icon {
  width: clamp(64px, 8vw, 92px);
  height: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.status::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.status--live { color: var(--red); }
.status--in-development::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
.app-name {
  margin-top: 14px;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.app-tag { margin-top: 8px; font-size: 1.05rem; }
.app-desc {
  max-width: 44rem;
  margin-top: 12px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
}
.app-meta {
  margin-top: 16px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.app-row:hover .work-arrow { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* ---------- Contact ---------- */
.mail {
  font-size: clamp(1.5rem, 5.2vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  padding-bottom: 6px;
  background: linear-gradient(var(--red), var(--red)) 0 100% / 0 2px no-repeat;
  transition: background-size 0.4s ease;
}
.mail:hover { background-size: 100% 2px; }
.contact-note { max-width: 30rem; margin-top: 28px; color: var(--muted); }

/* ---------- Footer ---------- */
.foot {
  padding: 44px 0 52px;
  border-top: 1px solid var(--line);
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}
.foot .brand { display: inline-block; margin-bottom: 12px; }
.copy { margin-top: 36px; font-size: 0.8rem; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .principles { grid-template-columns: 1fr; }
  .work-arrow { width: 48px; height: 48px; }
}

@media (max-width: 640px) {
  .app-row { grid-template-columns: auto 1fr; }
  .app-row .work-arrow { display: none; }
}

/* ---------- Motion: one quiet entrance, nothing else ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-body { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .ghost { animation: fade 1.6s ease both; }
  .status--live::before { animation: pulse 2.4s ease-out infinite; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(198, 45, 68, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(198, 45, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(198, 45, 68, 0); }
}
