/* Design tokens come from Open Props (loaded before this file). */
:root {
  --bg: #000;
  --text: var(--gray-0);
  --muted: var(--gray-5);
  --rule: var(--gray-9);
  --max: 1200px;
  --gutter: var(--size-5);
  --header-h: var(--size-10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

section[id] { scroll-margin-top: var(--header-h); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Archivo", var(--font-sans);
  font-size: var(--font-size-2);
  line-height: var(--font-lineheight-3);
}

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--layer-3);
  background: rgb(0 0 0 / 90%);
  backdrop-filter: blur(6px);
  border-bottom: var(--border-size-1) solid var(--rule);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.site-header .logo img { height: var(--size-8); width: auto; }
.site-header nav a {
  margin-left: var(--size-6);
  text-decoration: none;
  font-size: var(--font-size-1);
  letter-spacing: var(--font-letterspacing-1);
  transition: color 0.2s var(--ease-2);
}
.site-header nav a:hover { color: var(--muted); }

/* Intro */
.intro { padding: var(--size-11) 0 var(--size-10); }
.intro p {
  max-width: 900px;
  margin: 0;
  font-size: var(--font-size-fluid-1);
  line-height: var(--font-lineheight-3);
}

/* Experience grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--size-8) var(--size-7);
  padding-bottom: var(--size-11);
}
.card a { text-decoration: none; }
.card img {
  aspect-ratio: var(--ratio-widescreen);
  object-fit: cover;
  width: 100%;
  transition: opacity 0.2s var(--ease-2);
}
.card a:hover img { opacity: 0.85; }
.card h3 {
  margin: var(--size-4) 0 var(--size-2);
  font-size: var(--font-size-4);
  font-weight: var(--font-weight-7);
  line-height: var(--font-lineheight-1);
}
.card p { margin: 0 0 var(--size-3); color: var(--muted); font-size: var(--font-size-1); }
.card .more {
  font-size: var(--font-size-0);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Project detail */
.project { padding: var(--size-10) 0 var(--size-11); }
.project .partner { height: var(--size-9); width: auto; margin-bottom: var(--size-5); }
.project h1 {
  margin: 0 0 var(--size-4);
  font-size: var(--font-size-fluid-2);
  font-weight: var(--font-weight-7);
  line-height: var(--font-lineheight-1);
}
.project .desc { max-width: 860px; margin: 0 0 var(--size-8); }
.project h4 { margin: var(--size-8) 0 var(--size-3); font-size: var(--font-size-2); }
.project ul { margin: 0; padding-left: var(--size-4); columns: 2 320px; column-gap: var(--size-8); }
.project li { margin-bottom: var(--size-1); break-inside: avoid; }

.video {
  position: relative;
  aspect-ratio: var(--ratio-widescreen);
  background: var(--gray-12);
}
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.back {
  display: inline-block;
  margin-top: var(--size-7);
  font-size: var(--font-size-0);
  color: var(--muted);
}

/* Privacy page */
.policy { padding: var(--size-10) 0 var(--size-11); max-width: 860px; }
.policy h2 { font-size: var(--font-size-6); margin-top: 0; }
.policy h3 { margin: var(--size-8) 0 var(--size-2); font-size: var(--font-size-3); }
.policy p, .policy li { color: var(--gray-3); font-size: var(--font-size-1); }

/* Footer */
.site-footer {
  border-top: var(--border-size-1) solid var(--rule);
  padding: var(--size-8) 0;
  font-size: var(--font-size-0);
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--size-3) var(--size-7);
  align-items: center;
  justify-content: space-between;
}
.site-footer nav a { margin-right: var(--size-5); }

@media (max-width: 600px) {
  :root { --gutter: var(--size-3); }
  body { font-size: var(--font-size-1); }
  .site-header nav a { margin-left: var(--size-3); }
  .intro { padding: var(--size-9) 0 var(--size-8); }
  .project { padding: var(--size-9) 0; }
  .grid { grid-template-columns: 1fr; }
}
