:root {
  --ink: #0b0b0b;
  --paper: #f1f1f1;
  --footer: #e6e6e6;
  --muted: #605e5e;
  --soft: #adadac;
  --white: #fff;
  --accent: #29abe2;
  --header-h: 72px;
  --gutter: clamp(16px, 2.2vw, 32px);
  --text: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --brand: "Quicksand", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--text);
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  height: var(--header-h);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(rgba(0, 0, 0, .35), rgba(0, 0, 0, 0));
  pointer-events: none;
}
.site-header.solid { background: #2b2b2b; }
.site-header > * { pointer-events: auto; }

.wordmark {
  font-family: var(--brand);
  font-weight: 300;
  font-size: 30px;
  letter-spacing: .02em;
  text-decoration: none;
  color: var(--white);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  padding: 10px 7px;
  border: 0;
  background: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  transition: transform .3s ease, opacity .2s ease;
  transform-origin: center;
}
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* Full-screen menu */
.site-menu {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  background: rgba(20, 20, 20, .93);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.menu-open .site-menu { opacity: 1; visibility: visible; }
.menu-open { overflow: hidden; }

.menu-links,
.menu-social,
.social-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px clamp(28px, 6vw, 72px);
}
.menu-links a {
  font-weight: 700;
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
}
.menu-links a:hover,
.menu-links a:focus-visible { color: var(--soft); }

.menu-social { display: flex; gap: 22px; align-items: center; }
.menu-social a {
  color: var(--soft);
  text-decoration: none;
  font-size: 14px;
  display: block;
}
.menu-social a:hover,
.menu-social a:focus-visible { color: var(--white); }
.menu-social svg { width: 22px; height: 22px; fill: currentColor; display: block; }

/* Side dots */
.dots {
  position: fixed;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dots a {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 0 4px rgba(0, 0, 0, .4);
  transition: background .2s ease;
}
.dots a.active,
.dots a:hover { background: var(--white); }

/* Video slides */
.slide {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 420px;
  overflow: hidden;
  background: var(--ink);
}
.slide-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pill {
  position: absolute;
  left: 50%;
  bottom: clamp(48px, 9vh, 96px);
  transform: translateX(-50%);
  padding: 9px 28px;
  border: 1px solid var(--white);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  background: rgba(0, 0, 0, .25);
  transition: background .2s ease, color .2s ease;
}
.pill:hover,
.pill:focus-visible { background: var(--white); color: var(--ink); }

/* All projects */
.all-projects {
  background: var(--paper);
  color: var(--muted);
  padding: calc(var(--header-h) + 16px) var(--gutter) 72px;
}
.all-projects h2 {
  margin: 0 0 28px;
  font-weight: 300;
  font-size: 22px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #ddd;
  text-decoration: none;
}
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.card span {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 16px 14px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .6));
}
.card:hover img,
.card:focus-visible img { transform: scale(1.04); }
.more { margin: 28px 0 0; font-size: 16px; }

/* Footer */
.site-footer {
  background: var(--footer);
  color: var(--muted);
  padding: 56px var(--gutter) 96px;
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 1fr 1fr;
  gap: 32px;
}
.site-footer .invite { margin: 0; max-width: 24ch; font-size: 16px; }
.site-footer h3 {
  margin: 0 0 12px;
  font-weight: 300;
  font-size: 22px;
  color: var(--soft);
}
.site-footer .mail { font-size: 22px; text-decoration: none; }
.site-footer .mail:hover { text-decoration: underline; }
.social-list { columns: 2; column-gap: 32px; max-width: 320px; }
.social-list li { margin-bottom: 8px; }

/* Chat button */
.chat {
  position: fixed;
  right: var(--gutter);
  bottom: 20px;
  z-index: 15;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.chat:hover,
.chat:focus-visible { filter: brightness(1.08); }

/* About */
.about-main {
  min-height: 100vh;
  padding: calc(var(--header-h) + 48px) var(--gutter) 72px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(260px, 1.1fr) minmax(240px, 1.6fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.about-side h1 {
  margin: 0 0 40px;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.45;
}
.about-side p { margin: 0; font-size: 18px; }
.about-text p {
  margin: 0 0 40px;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
}
.about-logo { align-self: center; justify-self: center; }
.about-logo img { width: min(420px, 100%); height: auto; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 820px) {
  .site-footer { grid-template-columns: 1fr; }
  .site-footer .invite { max-width: none; }
  .about-main { grid-template-columns: 1fr; }
  .about-logo { order: -1; }
  .about-logo img { width: min(260px, 70%); }
  .dots { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
