/* ---------- Self-hosted fonts ---------- */
@font-face {
  font-family: "Archivo Black";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/archivo-black-400.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/barlow-condensed-300.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/barlow-condensed-400.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/barlow-condensed-600.woff2") format("woff2");
}

/* ---------- Design tokens ---------- */
:root {
  --background: oklch(0.14 0.005 20);
  --foreground: oklch(0.96 0.004 90);
  --primary: oklch(0.55 0.215 27.5);
  --primary-foreground: oklch(0.98 0 0);
  --muted-foreground: oklch(0.66 0.012 40);
  --font-display: "Archivo Black", system-ui, sans-serif;
  --font-body: "Barlow Condensed", system-ui, sans-serif;
}

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

html,
body {
  height: 100%;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}

h1 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

img {
  display: block;
  max-width: 100%;
}

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

/* ---------- Layout ---------- */
.page {
  position: relative;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background-color: var(--background);
}

.texture {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.7;
  background-image: url("assets/concrete.jpg");
  background-size: 760px;
}

.grain {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

.hatch {
  pointer-events: none;
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1rem;
  width: 100%;
  background: repeating-linear-gradient(45deg, var(--primary) 0 8px, transparent 8px 16px);
  opacity: 0.6;
}

.content {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  padding: 1.5rem 1.5rem;
}

@media (min-width: 640px) {
  .content {
    padding: 1.5rem 2.5rem;
  }
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 4px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.18em;
}

@media (min-width: 640px) {
  .brand-name {
    font-size: 1.125rem;
  }
}

.accent {
  color: var(--primary);
}

.contact-btn {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  transition: opacity 0.2s ease;
}

.contact-btn:hover {
  opacity: 0.85;
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin-bottom: 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.6em;
  color: var(--primary);
}

.title {
  font-size: 16vw;
  line-height: 0.78;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .title {
    font-size: 12vw;
  }
}

@media (min-width: 1024px) {
  .title {
    font-size: 9rem;
  }
}

.lede {
  margin-top: 1.75rem;
  max-width: 28rem;
  font-size: 1.125rem;
  line-height: 1.3;
  color: var(--muted-foreground);
}

.phases {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
  margin-top: 2rem;
  font-size: 0.875rem;
  letter-spacing: 0.35em;
}

.phase {
  color: var(--muted-foreground);
}

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .site-footer {
    font-size: 0.75rem;
  }
}

/* ---------- Glitch portrait ---------- */
.portrait {
  position: absolute;
  inset-block: 0;
  right: 0;
  display: block;
  width: 100vw;
  overflow: hidden;
}

@media (min-width: 768px) {
  .portrait {
    width: 44vw;
  }
}

.portrait-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-base {
  opacity: 0.3;
  mix-blend-mode: luminosity;
  transition: opacity 0.3s ease;
}

.portrait:hover .portrait-base {
  opacity: 0.45;
}

.portrait-glitch-a {
  opacity: 0;
  mix-blend-mode: screen;
  filter: grayscale(1) sepia(1) hue-rotate(-25deg) saturate(6);
  transition: opacity 0.15s ease;
}

.portrait-glitch-b {
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 0.15s ease;
}

.portrait.is-burst .portrait-glitch-a {
  opacity: 0.7;
  animation: glitch-a 0.42s steps(2, end) infinite;
}

.portrait.is-burst .portrait-glitch-b {
  opacity: 0.5;
  animation: glitch-b 0.36s steps(2, end) infinite reverse;
}

@keyframes glitch-a {
  0% {
    clip-path: inset(8% 0 72% 0);
    transform: translate3d(-14px, 0, 0);
  }
  25% {
    clip-path: inset(42% 0 38% 0);
    transform: translate3d(12px, 0, 0);
  }
  50% {
    clip-path: inset(66% 0 18% 0);
    transform: translate3d(-8px, 0, 0);
  }
  75% {
    clip-path: inset(24% 0 60% 0);
    transform: translate3d(16px, 0, 0);
  }
  100% {
    clip-path: inset(80% 0 4% 0);
    transform: translate3d(-10px, 0, 0);
  }
}

@keyframes glitch-b {
  0% {
    clip-path: inset(60% 0 22% 0);
    transform: translate3d(10px, 0, 0);
  }
  30% {
    clip-path: inset(14% 0 68% 0);
    transform: translate3d(-16px, 0, 0);
  }
  60% {
    clip-path: inset(48% 0 34% 0);
    transform: translate3d(8px, 0, 0);
  }
  100% {
    clip-path: inset(30% 0 54% 0);
    transform: translate3d(-12px, 0, 0);
  }
}

.scanlines {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image: repeating-linear-gradient(
    to bottom,
    color-mix(in oklab, var(--primary) 22%, transparent) 0 1px,
    transparent 1px 4px
  );
}

.portrait-fade {
  pointer-events: none;
  position: absolute;
  inset-block: 0;
  left: 0;
  width: 10rem;
  background: linear-gradient(to right, var(--background), transparent);
}

a.link-card {
	margin-bottom: 0.875rem;
    display: block;
}

.card-url {
	font-weight: bold;
}

.links_wrapper {
    max-height: 50vh;
	width: calc(100vw - (2.5rem) * 2);
    overflow: auto;
    box-shadow: inset 0 0 50px black;
    padding: 0.875rem;
}

@media (min-width: 768px) {
	.links_wrapper {
		width: 56vw;
	}
}
	
@media (min-width: 1024px) {
	.links_wrapper {
		width: 50vw;
	}
}