/* Fixed Air — site styles */
:root {
  --ink: #0A0A0A;
  --ground: #FFFFFF;
  --muted: #6B6B6B;
  --rule: #CFCFCF;
  --tile: #1C1C1C;
  --gap: clamp(10px, 0.75vw, 16px);
  --text: clamp(15px, 1.15vw, 24px);
  --small: clamp(12px, 0.8vw, 16px);
  --body: clamp(13px, 0.9vw, 18px);
  --row: clamp(220px, 27vw, 560px);
  --sans: 'Special Gothic', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --display: 'Special Gothic Expanded One', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--text);
  line-height: 1.12;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: #555555; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

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

.page {
  min-height: 100vh;
  padding: var(--gap);
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1vw, 20px);
}
.page > main { margin-top: clamp(6px, 0.8vw, 16px); }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font-family: var(--display); font-weight: 400; font-size: clamp(16px, 1.2vw, 24px); line-height: 1; letter-spacing: 0; }
.logo:hover { color: var(--ink); }
.nav a { display: inline-block; padding: 6px 0; font-size: var(--small); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* Five-column grid shared by intro, tiles and project layout */
.grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: var(--gap);
}
.intro { row-gap: 24px; line-height: 1.02; }
.intro .col { display: flex; flex-direction: column; }
.intro .desc { grid-column: span 3; margin: 0; min-width: 0; padding-right: calc(3.4 * var(--small) + 2 * var(--gap)); }

/* Project tiles */
.tiles { grid-auto-rows: var(--row); gap: var(--gap); }
.tile { position: relative; display: block; overflow: hidden; background: var(--tile); }
.tile.span-1 { grid-column: span 1; }
.tile.span-2 { grid-column: span 2; }
.tile.span-3 { grid-column: span 3; }
.tile .media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.25s ease; }
.tile:hover .media { opacity: 0.85; }
.tile .label {
  position: absolute; top: 10px; left: 10px; right: 10px;
  color: #FFFFFF; font-size: var(--small); text-transform: uppercase; letter-spacing: -0.005em;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
}
.tile .by { display: block; text-transform: none; opacity: 0.85; }

/* Placeholder surfaces until media arrives */
.ph { background: var(--tile); }
.ph-1 { background: #1C1C1C; } .ph-2 { background: #3A3A3A; } .ph-3 { background: #0E0E0E; }
.ph-4 { background: #2A2A2A; } .ph-5 { background: #141414; } .ph-6 { background: #333333; }

/* About */
.team { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px var(--gap); }
.person { flex: 0 0 calc((100% - 4 * var(--gap)) / 5); display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.person .portrait { position: relative; height: var(--row); overflow: hidden; }
.person .portrait img { width: 100%; height: 100%; object-fit: cover; }
.person h2 {
  position: absolute; top: 10px; left: 10px; right: 10px; margin: 0;
  color: #FFFFFF; font-size: var(--small); font-weight: 500; text-transform: uppercase; letter-spacing: -0.005em;
}
.person p { margin: 0; font-size: var(--body); line-height: 1.2; }

/* Project page */
.project { display: flex; flex-direction: column; gap: var(--gap); }
.project { gap: clamp(20px, 2vw, 40px); }
.project-meta { line-height: 1.02; row-gap: 4px; }
.project-meta h1 { margin: 0; font: inherit; text-transform: uppercase; }
.project-meta .place { grid-column: span 3; }
.project-body { row-gap: clamp(20px, 2vw, 40px); }
.hero { position: relative; grid-column: 2 / span 3; aspect-ratio: 16 / 9; overflow: hidden; }
.hero img, .hero video { width: 100%; height: 100%; object-fit: cover; }
.project-text p { margin: 0; }
.project-text { grid-column: 2 / span 3; min-width: 0; display: flex; flex-direction: column; gap: 14px; font-size: var(--body); line-height: 1.25; }
.details { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 4px 24px; font-size: var(--body); line-height: 1.25; }
.details dt { color: var(--muted); }
.details dd { margin: 0; }
.soon { color: var(--muted); }

.player { display: flex; align-items: center; gap: 16px; padding-top: 12px; border-top: 1px solid var(--ink); max-width: 520px; }
.player button {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%;
  border: 1px solid var(--ink); background: none; color: var(--ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.player button:hover { background: var(--ink); color: #FFFFFF; }
.player .track { flex: 1 1 auto; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.player .track span { font-size: var(--small); text-transform: uppercase; }
.player .bar { height: 1px; background: var(--rule); cursor: pointer; padding: 6px 0; background-clip: content-box; }
.player .fill { height: 1px; width: 0%; background: var(--ink); }
.player time { font-size: var(--small); color: var(--muted); font-variant-numeric: tabular-nums; }
.player .pause-icon { display: none; }
.player.playing .play-icon { display: none; }
.player.playing .pause-icon { display: block; }

.gallery { grid-auto-rows: var(--row); gap: var(--gap); }
.gallery .item { position: relative; overflow: hidden; }
.gallery .item img, .gallery .item video { width: 100%; height: 100%; object-fit: cover; }
.gallery .wide { grid-column: 1 / -1; }

.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: clamp(20px, 2vw, 40px); }
.pager a { padding: 12px 0; }

/* Footer */
.site-footer { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; font-size: 12px; font-weight: 400; }

/* 404 */
.notfound { flex-grow: 1; display: flex; flex-direction: column; gap: 12px; padding: 10vh 0; }

/* Phones */
@media (max-width: 760px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro .desc,
  .tile, .tile.span-1, .tile.span-2, .tile.span-3,
  .hero, .project-text, .project-meta .place,
  .gallery .item { grid-column: 1 / -1; }
  .person { flex-basis: 100%; }
  .intro .desc { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .tile .media { transition: none; }
}
