:root {
  --bg: #141416;
  --panel: rgba(22, 22, 25, 0.86);
  --line: rgba(255, 255, 255, 0.08);
  --text: #ececee;
  --muted: #9a9aa2;
  --faint: #6b6b73;
  --magenta: #e0389d;
  --magenta-soft: rgba(224, 56, 157, 0.35);
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 48px);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ---------- Background maze ---------- */

.maze {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100lvh;
  z-index: -2;
  display: block;
}

/* Darkens the edges and the left side so text stays readable over the maze */
.veil {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 40%, rgba(12, 12, 14, 0.75) 100%),
    linear-gradient(90deg, rgba(14, 14, 16, 0.55) 0%, transparent 60%);
}

/* ---------- Top bar ---------- */

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 22px var(--gutter);
  z-index: 2;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 30px;
  height: auto;
  fill: var(--text);
}

.topbar-link {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(20, 20, 22, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: color 0.2s, border-color 0.2s;
}

.topbar-link:hover {
  color: var(--text);
  border-color: var(--magenta-soft);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px var(--gutter) 96px;
}

.hero-inner {
  position: relative;
  max-width: 760px;
}

/* Soft dark pool behind the title */
.hero-inner::before {
  content: "";
  position: absolute;
  inset: -80px -120px;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(14, 14, 16, 0.9), rgba(14, 14, 16, 0.6) 55%, transparent);
  filter: blur(10px);
}

.hero-mark {
  width: clamp(64px, 9vw, 96px);
  height: auto;
  fill: var(--magenta);
  margin-bottom: 28px;
  filter: drop-shadow(0 0 18px rgba(224, 56, 157, 0.25));
}

.hero h1 {
  margin: 0;
  font-size: clamp(48px, 9vw, 120px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.045em;
}


.scroll-hint {
  position: absolute;
  left: var(--gutter);
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.scroll-hint i {
  display: block;
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--faint), transparent);
}

/* ---------- Portfolio ---------- */

.portfolio {
  /* The bottom space is sized so that at the very bottom of the page the
     "Portfolio" label sits around mid-screen, where the maze route ends. */
  padding: 40vh var(--gutter) max(48px, calc(55vh - 330px));
}

.portfolio-inner {
  max-width: 560px;
  margin: 0 auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 20px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

/* Pill like the Contact button, solid enough that the maze doesn't show through */
.eyebrow-label {
  padding: 7px 14px;
  border: 1px solid var(--magenta-soft);
  border-radius: 999px;
  background: rgba(20, 20, 22, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Empty slot: the maze route's end dot becomes this bullet */
.bullet {
  width: 8px;
  height: 8px;
  flex: none;
}

.company {
  display: block;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  transition: border-color 0.25s, transform 0.25s;
}

.company:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.company-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.company-logo {
  width: 40px;
  height: 40px;
  fill: var(--text);
  flex: none;
}

.company-logo .tc-accent {
  fill: #ed1c24;
}

.company h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.tc-strong {
  font-weight: 600;
}

.company-index {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}

.company p {
  margin: 18px 0 22px;
  color: var(--muted);
}

.company-link {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}

.company:hover .company-link {
  border-color: var(--magenta);
}

/* ---------- Footer ---------- */

.footer {
  position: relative;
  border-top: 1px solid var(--line);
  background: rgba(17, 17, 19, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 28px var(--gutter);
}

.footer .brand-mark {
  width: 26px;
  fill: var(--magenta);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

.footer-meta a {
  transition: color 0.2s;
}

.footer-meta a:hover {
  color: var(--magenta);
}

@media (max-width: 640px) {
  .company {
    padding: 22px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta {
    flex-direction: column;
  }
}
