:root {
  --black: #000;
  --white: #fff;
  --gutter: clamp(16px, 4vw, 56px);
  --font: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html, body {
  margin: 0;
  height: 100%;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body { overflow: hidden; }

a { color: inherit; text-decoration: none; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
}

.panels {
  display: grid;
  grid-template-columns: 1fr;
  height: 100%;
}

.panel { display: block; height: 100%; min-width: 0; }

.panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.panel--repeat { display: none; }

/* Landscape desktop: the photograph three across, edge to edge. */
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .panels { grid-template-columns: repeat(3, 1fr); }
  .panel--repeat { display: block; }
}

/* ---------- Header (inverts against the photo) ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  padding: calc(env(safe-area-inset-top) + 28px) var(--gutter) 28px;
  color: var(--white);
}

/* Soft shade so white type holds over the bright wall at the top of the photo. */
.header::before {
  content: "";
  position: absolute;
  inset: 0 0 -60px 0;
  z-index: -1;
  background: linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,.25) 55%, transparent);
  pointer-events: none;
}

body.menu-open .header::before { display: none; }

/* Absolutely centred so it sits on the page's centre line, not the leftover space. */
.nav {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  justify-content: center;
  gap: clamp(40px, 7vw, 120px);
}

.nav a,
.menu-toggle,
.cta-link {
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav a { position: relative; padding: 6px 0; }

.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover::after,
.nav a:focus-visible::after { transform: scaleX(1); }

.social { display: none; line-height: 0; }

.menu-toggle {
  appearance: none;
  background: none;
  border: 0;
  padding: 8px 0;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
}

@media (min-width: 900px) {
  .nav, .social { display: flex; }
  .menu-toggle { display: none; }
}

:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* ---------- Mobile menu ---------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px var(--gutter) calc(env(safe-area-inset-bottom) + 32px);
  background: var(--black);
}

.menu[hidden] { display: none; }

.menu nav { display: flex; flex-direction: column; gap: 8px; }

.menu nav a {
  font-weight: 900;
  font-size: clamp(40px, 13vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.menu-foot {
  margin: auto 0 0;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.menu-open .cta { visibility: hidden; }

/* ---------- Call to action ---------- */

.cta {
  position: absolute;
  left: 0; right: 0;
  bottom: calc(env(safe-area-inset-bottom) + 6vh);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 var(--gutter);
  text-align: center;
}

.cta-link {
  display: inline-block;
  padding: 12px 22px 11px;
  background: var(--black);
  border: 2px solid var(--white);
  transition: background 0.2s ease, color 0.2s ease;
}

.cta-link:hover,
.cta-link:focus-visible { background: var(--white); color: var(--black); }

/* ---------- Contact modal ---------- */

.contact {
  width: min(440px, calc(100vw - 32px));
  padding: 0;
  border: 2px solid var(--white);
  background: var(--black);
  color: var(--white);
}

.contact::backdrop { background: rgba(0, 0, 0, 0.7); }

.contact[open] { animation: contact-in 0.2s ease; }

@keyframes contact-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.contact-box {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 40px 32px 28px;
}

.contact-close {
  position: absolute;
  top: 10px; right: 14px;
  appearance: none;
  background: none;
  border: 0;
  padding: 4px 6px;
  color: inherit;
  font: 400 28px/1 var(--font);
  cursor: pointer;
}

.contact-title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(32px, 8vw, 44px);
  line-height: 1;
  text-transform: uppercase;
}

.contact-email {
  align-self: flex-start;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.02em;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
  overflow-wrap: anywhere;
}

.contact-foot {
  margin: 8px 0 0;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  .nav a::after, .cta-link { transition: none; }
  .contact[open] { animation: none; }
}
