/* =========================================================
   Luis Celiktemel — linktree
   Black & white. Braun functionalism, Bauhaus geometry,
   a faint Jodorowsky mysticism.
   ========================================================= */

:root {
  --ink: #0a0a0a;
  --paper: #f4f2ec;
  --line: #0a0a0a;
  --muted: #6b6b6b;
  /* Bauhaus palette */
  --accent-red: #9e1b16; /* blood red */
  --accent-yellow: #f2b705; /* Bauhaus yellow */
  --accent-petrol: #14555c; /* petrol */
  --grid-max: 640px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---------- Static modular grid backdrop ---------- */
.field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  /* Braun/Bauhaus hairline grid, 72px module */
  background-image: linear-gradient(
      to right,
      rgba(10, 10, 10, 0.045) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(10, 10, 10, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
}

/* Faint Bauhaus squares, asymmetric composition, aligned to module */
.field__sq {
  position: absolute;
  display: block;
}

.field__sq--a {
  top: 72px;
  left: 72px;
  width: 216px;
  height: 216px;
  border: 1px solid rgba(10, 10, 10, 0.08);
}

.field__sq--b {
  right: 144px;
  top: 30%;
  width: 144px;
  height: 144px;
  background: rgba(10, 10, 10, 0.035);
}

.field__sq--c {
  left: 18%;
  bottom: 144px;
  width: 288px;
  height: 288px;
  border: 1px solid rgba(10, 10, 10, 0.07);
}

/* ---------- Shell ---------- */
.shell {
  position: relative;
  z-index: 1;
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: 0 24px 96px;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 0 48px;
}

.hero__marks {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 40px;
}

.mark {
  display: block;
  width: 18px;
  height: 18px;
  background: var(--ink);
}

.mark--circle {
  border-radius: 50%;
  background: var(--accent-yellow);
}

.mark--square {
  border-radius: 0;
  background: var(--accent-petrol);
}

.mark--triangle {
  width: 0;
  height: 0;
  background: transparent;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 18px solid var(--accent-red);
}

.sigil {
  width: 132px;
  color: var(--ink);
  margin-bottom: 36px;
  animation: breathe 7s var(--ease) infinite;
}

.sigil svg {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.92;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

.hero__eyebrow {
  margin: 0 0 22px;
  font-family: "Space Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__name {
  margin: 0;
  font-weight: 900;
  font-size: clamp(48px, 14vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.hero__name span {
  display: block;
}

.hero__former {
  margin: 22px 0 0;
  font-family: "Space Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.hero__former span {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
}

.hero__tagline {
  max-width: 46ch;
  margin: 34px auto 0;
  font-size: clamp(16px, 2.4vw, 19px);
  line-height: 1.55;
  color: #222;
}

.hero__meta {
  margin: 40px 0 0;
  font-family: "Space Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  gap: 14px;
  align-items: center;
}

.hero__meta .dot {
  font-size: 8px;
}

/* ---------- Section labels ---------- */
.section__label {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
  font-weight: 700;
  font-size: clamp(22px, 5vw, 30px);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.section__label span {
  font-family: "Space Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink);
}

.section__label span.n--red {
  color: var(--accent-red);
}

.section__label span.n--yellow {
  color: var(--accent-yellow);
}

.section__label span.n--petrol {
  color: var(--accent-petrol);
}

.links,
.work,
.interests {
  margin-top: 96px;
}

/* ---------- Link rows ---------- */
.link {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 20px;
  border: 2px solid var(--ink);
  margin-top: -2px; /* collapse borders */
  color: var(--ink);
  text-decoration: none;
  background: transparent;
  transition: background 0.28s var(--ease), color 0.28s var(--ease),
    padding-left 0.28s var(--ease);
}

.link:hover,
.link:focus-visible {
  background: var(--ink);
  color: var(--paper);
  padding-left: 30px;
  outline: none;
}

.link__index {
  font-family: "Space Mono", monospace;
  font-size: 13px;
  opacity: 0.6;
}

.link__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.link__title {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.link__sub {
  font-family: "Space Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link:hover .link__sub,
.link:focus-visible .link__sub {
  color: rgba(244, 242, 236, 0.7);
}

.link__arrow {
  font-size: 22px;
  transition: transform 0.28s var(--ease);
}

.link:hover .link__arrow,
.link:focus-visible .link__arrow {
  transform: translateX(6px);
}

/* ---------- Work cards ---------- */
.card {
  border-left: 2px solid var(--ink);
  padding: 6px 0 6px 22px;
  margin-bottom: 34px;
}

.card__role {
  margin: 0;
  font-family: "Space Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.card__org {
  margin: 8px 0 0;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
}

.card__note {
  margin: 10px 0 0;
  max-width: 52ch;
  color: #222;
}

/* ---------- Interest grid ---------- */
.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 2px solid var(--ink);
}

.tile {
  padding: 26px 22px 30px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.28s var(--ease), color 0.28s var(--ease);
}

.tile:nth-child(2n) {
  border-right: none;
}

.tile:nth-child(n + 3) {
  border-bottom: none;
}

.tile:hover {
  background: var(--ink);
  color: var(--paper);
}

.tile__mark {
  display: block;
  width: 28px;
  height: 28px;
}

.tile__mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.tile__title {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.tile__text {
  font-family: "Space Mono", monospace;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.tile:hover .tile__text {
  color: rgba(244, 242, 236, 0.7);
}

/* ---------- Footer ---------- */
.foot {
  margin-top: 110px;
  padding-top: 40px;
  border-top: 2px solid var(--ink);
  text-align: center;
}

.foot__marks {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 26px;
}

.foot__name {
  margin: 0;
  font-weight: 900;
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.foot__line {
  margin: 10px 0 0;
  font-family: "Space Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.foot__up {
  display: inline-block;
  margin-top: 26px;
  font-family: "Space Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .tile {
    border-right: none;
    border-bottom: 2px solid var(--ink);
  }
  .tile:last-child {
    border-bottom: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cosmos__svg,
  .sigil {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}
