:root {
  --red: #d9201f;
  --ink: #1a1a1a;
  --text: #7a7a7a;
  --muted: #9a9a9a;
  --tile: #e6e6e6;
  --heading: "proxima-nova", "Montserrat", system-ui, sans-serif;
  --body: "proxima-nova", "Nunito Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--body);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
}

a { color: inherit; }
a:hover { color: var(--red); }
img, iframe, video { display: block; max-width: 100%; }

/* ---------- Layout ---------- */

.layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 40px;
  max-width: 1800px;
  margin: 0 auto;
  padding: 56px 56px 96px;
}

/* ---------- Sidebar ---------- */

.sidebar { position: sticky; top: 56px; align-self: start; }

.logo {
  display: inline-block;
  margin: 0 0 28px;
  color: var(--red);
  font-family: var(--heading);
  font-style: italic;
  font-weight: 900;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-group + .nav-group { margin-top: 18px; }

.nav-group h2 {
  margin: 0 0 4px;
  color: var(--ink);
  font-family: var(--heading);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav-group ul { list-style: none; margin: 0; padding: 0; }

.nav-group a {
  display: block;
  padding: 3px 0;
  color: var(--text);
  font-size: 18px;
  text-decoration: none;
  transition: color 0.15s;
}

.nav-group a:hover { color: var(--red); }
.nav-group a[aria-current="page"] { color: var(--ink); font-weight: 400; }

.nav-toggle { display: none; }

/* ---------- Home timeline ---------- */

.intro { max-width: 860px; margin: -6px 0 48px; }

.intro h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--heading);
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.intro p {
  margin: 12px 0 0;
  color: var(--text);
  font-size: clamp(18px, 1.8vw, 22px);
}

.timeline {
  --tl-year: 56px;
  --tl-gap: 32px;
  max-width: 860px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: var(--tl-year) minmax(0, 1fr);
  column-gap: var(--tl-gap);
  padding-bottom: 44px;
}

/* the line */
.tl-item::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--tl-year) + var(--tl-gap) / 2);
  width: 1px;
  background: #e6e6e6;
}

.tl-item:first-child::before { top: 10px; }
.tl-end::before { bottom: auto; height: 10px; }
.tl-end { padding-bottom: 0; }

/* the dot */
.tl-item::after {
  content: "";
  position: absolute;
  top: 6px;
  left: calc(var(--tl-year) + var(--tl-gap) / 2 - 4px);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cfcfcf;
}

.tl-project::after { background: var(--red); }

.tl-year {
  color: var(--ink);
  font-family: var(--heading);
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  text-align: right;
}

.tl-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  min-width: 0;
  margin: 0;
  color: inherit;
  text-decoration: none;
}

.tl-thumb {
  position: relative;
  flex: none;
  width: 280px;
  aspect-ratio: 1024 / 800;
  overflow: hidden;
  background: var(--tile);
}

.tl-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tl-logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 12px;
  background: #0d0d0d;
}

.tl-logo img { width: 100%; height: 100%; object-fit: cover; }

.tl-text h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--heading);
  font-weight: 700;
  font-size: 18px;
  line-height: 20px;
  transition: color 0.15s;
}

.tl-text p { margin: 4px 0 0; color: var(--muted); font-size: 15px; line-height: 1.4; }

a.tl-card:hover h3 { color: var(--red); }
a.tl-card:hover .tl-thumb img { transform: scale(1.03); }

.tl-end .tl-card { color: var(--muted); font-size: 15px; line-height: 20px; }

/* ---------- Project pages ---------- */

.project {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.project-header { margin: 8px auto 64px; max-width: 1000px; }

.project-header h1 {
  margin: 0;
  color: var(--red);
  font-family: var(--heading);
  font-weight: 900;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.1;
  text-transform: uppercase;
}

.project-header .years {
  margin: 14px 0 4px;
  color: var(--text);
  font-family: var(--heading);
  font-weight: 700;
  font-size: 16px;
}

.project-header .summary { margin: 0; font-size: 18px; }

.project-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--ink);
  font-family: var(--heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.15s;
}

.project-link:hover .press-arrow { transform: translate(2px, -2px); }

.block { margin: 0 auto 72px; }
.block--wide { max-width: 1170px; }
.block--medium { max-width: 840px; }
.block--narrow { max-width: 660px; }

.shot { width: 100%; height: auto; }
.shot--shadow { box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.35); border-radius: 6px; }

.caption { margin: 14px 0 0; color: var(--muted); font-size: 15px; }

.embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
}

.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.press h2 {
  margin: 0 0 20px;
  color: var(--ink);
  font-family: var(--heading);
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
}

.press ul {
  display: grid;
  gap: 28px;
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.press-item { display: block; text-decoration: none; }

.press-quote {
  display: block;
  color: #444;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  transition: color 0.15s;
}

.press-source {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--heading);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.15s;
}

.press-arrow { display: inline-block; transition: transform 0.15s; }

a.press-item:hover .press-quote,
a.press-item:hover .press-source { color: var(--red); }
a.press-item:hover .press-arrow { transform: translate(2px, -2px); }

.press--outlets ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 40px;
}

.press--outlets .press-source { margin: 0; color: #555; font-size: 14px; }

.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 10px;
}

.phones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.phones img { width: calc((100% - 48px) / 4); }

.block:has(+ .block-caption) { margin-bottom: 0; }
.block-caption { margin: 14px auto 72px; }

.placeholder {
  padding: 64px 24px;
  background: #f5f5f5;
  color: var(--muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 24px 16px 64px;
  }

  .sidebar {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding-bottom: 16px;
  }

  .logo { margin: 0; font-size: 22px; }

  .nav-toggle {
    display: block;
    padding: 6px 0 6px 12px;
    border: 0;
    background: none;
    color: var(--ink);
    font-family: var(--heading);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .nav { display: none; flex-basis: 100%; padding-top: 16px; }
  .sidebar.is-open .nav { display: block; }

  .project-header { margin-bottom: 40px; }
  .block { margin-bottom: 48px; }
  .block-caption { margin-bottom: 48px; }
  .intro { margin: 0 0 32px; }
}

@media (max-width: 560px) {
  .timeline { --tl-year: 40px; --tl-gap: 20px; }
  .tl-item { padding-bottom: 36px; }
  .tl-project .tl-card { flex-direction: column; gap: 12px; }
  .tl-thumb { width: 100%; }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .phones { gap: 10px; }
  .phones img { width: calc((100% - 10px) / 2); }
}
