:root {
  --bg: #000;
  --fg: #fff;
  --dim: rgba(255, 255, 255, 0.6);
  --pad: clamp(20px, 3vw, 40px);
  --frame: clamp(2px, 0.2vw, 3px); /* thickness of the white photo frame (set to 0 to remove) */
  --display: "Anton", "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
}

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

html { background: var(--bg); }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: var(--pad);
}
.brand {
  font-family: "Anton", "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}
.site-nav { display: flex; flex-wrap: wrap; gap: clamp(16px, 2.5vw, 36px); font-size: 0.95rem; }
.site-nav a { color: var(--dim); transition: color 0.2s; }
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--fg); }

/* Landing */
main { flex: 1; padding: 0 var(--pad) var(--pad); }
.landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vh, 32px);
}
.tiles {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2vw, 24px);
  width: 100%;
}
.tile {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  width: min(46vw, max(240px, calc((100vh - 250px) * 0.8)));
  background: #000;
  border: var(--frame) solid var(--fg);
}
.tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.72);
  transition: filter 0.5s ease, transform 0.8s ease;
}
.tile:hover img,
.tile:focus-visible img { filter: brightness(1); transform: scale(1.03); }
.tile-sports img { object-position: 55% 50%; } /* keeps the surfer centred in the 4:5 crop */
.tile-label {
  position: absolute;
  left: 20px;
  bottom: 18px;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

/* Category grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.4vw, 20px);
  max-width: 1600px;
  margin: 0 auto;
}
.project {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #000;
  border: var(--frame) solid var(--fg);
}
.project > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.project:hover > img,
.project:focus-visible > img { transform: scale(1.03); }
.project-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.4vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  flex-direction: column;
  gap: clamp(8px, 1vw, 14px);
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.35s ease;
}
/* brand logos shown on hover instead of the title text */
.logo { display: block; width: auto; max-width: 70%; }
.logo-mark { height: clamp(34px, 4.2vw, 60px); }
.logo-wide { width: min(72%, 280px); height: auto; }
.logo-mid { width: min(60%, 220px); height: auto; }
.logo-small { width: min(46%, 170px); height: auto; }
.logo-skull { height: clamp(48px, 5vw, 72px); width: auto; }
.logo-x { font-size: clamp(1rem, 1.6vw, 1.5rem); line-height: 1; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.project:hover .project-title,
.project:focus-visible .project-title { opacity: 1; }
@media (hover: none) {
  .project-title { opacity: 1; background: rgba(0, 0, 0, 0.4); }
}

/* Project page */
.project-page { max-width: 1600px; margin: 0 auto; }
.project-page h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  margin: 8px 0 28px;
}
.video {
  width: min(100%, 820px);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000;
  border: var(--frame) solid var(--fg);
}
.video iframe { display: block; width: 100%; height: 100%; border: 0; }
.video.video-vertical { width: min(100%, calc(78vh * 9 / 16)); aspect-ratio: 9 / 16; }
.project-text { max-width: 62ch; margin: 40px 0 48px; line-height: 1.6; }
.project-page h1 + .project-text { margin-top: 0; } /* pages with no video */
.project-text p + p { margin-top: 1em; }
.project-text .lead { font-size: 1.25rem; line-height: 1.4; }
.project-text .credit { color: var(--dim); }
.photos {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), 1fr);
  gap: clamp(10px, 1.4vw, 20px);
  align-items: start;
}
.photos img { display: block; width: 100%; height: auto; border: var(--frame) solid var(--fg); }

@media (max-width: 900px) {
  .project-grid, .photos { grid-template-columns: repeat(2, 1fr); }
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 5vw, 80px);
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}
.contact-photo img { display: block; width: 100%; height: auto; border: var(--frame) solid var(--fg); }
.contact-copy h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.contact-copy p { line-height: 1.6; max-width: 56ch; }
.contact-copy p + p { margin-top: 1em; }
.contact-form { display: grid; gap: 18px; max-width: 56ch; margin-top: 36px; }
.contact-form label { display: grid; gap: 6px; font-size: 0.9rem; color: var(--dim); }
.contact-form input,
.contact-form textarea {
  font: inherit;
  color: var(--fg);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 0;
  padding: 12px 14px;
}
.contact-form input:focus-visible,
.contact-form textarea:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form button {
  justify-self: start;
  font: inherit;
  font-weight: 500;
  color: #000;
  background: #fff;
  border: 1px solid #fff;
  padding: 12px 28px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.contact-form button:hover { background: #000; color: #fff; }
.thanks { max-width: 56ch; margin: 8vh auto; text-align: center; }
.thanks p { margin-left: auto; margin-right: auto; }
@media (max-width: 800px) { .contact { grid-template-columns: 1fr; } }

/* Footer */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: var(--pad);
  font-size: 0.9rem;
  color: var(--dim);
}
.social { display: flex; gap: 20px; }
.social a { display: flex; color: var(--fg); opacity: 0.7; transition: opacity 0.2s; }
.social a:hover { opacity: 1; }
.social svg { width: 22px; height: 22px; }

/* Mobile */
@media (max-width: 640px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .tiles { flex-direction: column; align-items: center; }
  .tile { width: min(100%, 420px); }
  .project-grid, .photos { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .tile img, .site-nav a, .social a { transition: none; }
  .tile:hover img, .tile:focus-visible img { transform: none; }
}
