/* Atelier Social */

@font-face {
  font-family: 'Editorial New';
  src: url('fonts/EditorialNew-Regular.woff2') format('woff2'),
       url('fonts/EditorialNew-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aktiv Grotesk';
  src: url('fonts/AktivGrotesk-Medium.woff2') format('woff2'),
       url('fonts/AktivGrotesk-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #1420f0;
  --white: #ffffff;
  --maroon: #36060f;
  --red: #ff020b;
}

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

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--blue);
  color: var(--white);
  font-family: Helvetica, Arial, sans-serif;
}

/* ---------- Connected canvas: About | Main | Contact ---------- */

.canvas {
  display: flex;
  width: 300vw;
  height: 100%;
  transform: translateX(-100vw);
  transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

.canvas.resizing {
  transition: none;
}

.canvas.show-about {
  transform: translateX(0);
}

.canvas.show-contact {
  transform: translateX(-200vw);
}

.panel {
  width: 100vw;
  height: 100%;
  flex-shrink: 0;
  overflow-y: auto;
  position: relative;
}

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

/* ---------- Intro: prints flash through, then fade to logo ---------- */

#intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  display: none;
  overflow: hidden;
}

.print {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}

/* each photo keeps its own dimensions, just capped to the screen */
.print img {
  display: block;
  width: auto;
  height: auto;
  max-width: 84vw;
  max-height: 72vh;
}

/* ---------- Logo ---------- */

.logo img {
  width: clamp(250px, 30vw, 430px);
  height: auto;
  display: block;
}

/* ---------- Main panel ---------- */

.hero {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(4rem, 14vh, 9rem);
  padding: 2rem;
}

.nav-buttons {
  display: flex;
  gap: clamp(1.5rem, 5vw, 5rem);
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- Nav links (sans serif, underline on hover) ---------- */

.btn {
  font-family: 'Aktiv Grotesk', Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
  text-align: center;
}

.btn:hover,
.btn:focus-visible,
.btn:active {
  text-decoration: underline;
}

.site-footer {
  position: absolute;
  left: clamp(1.5rem, 4vw, 3.5rem);
  bottom: clamp(1.5rem, 4vw, 3.5rem);
}

/* ---------- Back buttons ---------- */

.back-btn {
  position: absolute;
  top: clamp(1.25rem, 3vw, 2.5rem);
  right: clamp(1.5rem, 4vw, 3.5rem);
  font-family: 'Aktiv Grotesk', Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
  z-index: 2;
}

.back-btn:hover,
.back-btn:focus-visible,
.back-btn:active {
  text-decoration: underline;
}

.back-btn-blue {
  color: var(--blue);
  right: auto;
  left: clamp(1.5rem, 4vw, 3.5rem);
}

/* ---------- About panel ---------- */

.about {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.25rem, 3vh, 3rem) clamp(1.5rem, 4vw, 3.5rem);
  gap: clamp(1rem, 3vh, 3rem);
  background: var(--maroon);
}

.statement {
  font-family: 'Editorial New', 'Times New Roman', Times, Georgia, serif;
  text-transform: uppercase;
  font-size: min(6.5vw, 7.5vh);
  line-height: 1.04;
  letter-spacing: 0.01em;
  color: var(--red);
  margin-top: clamp(1.5rem, 4vh, 4rem);
}

.about-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.instagram {
  color: var(--white);
  display: block;
}

.instagram svg {
  width: clamp(2.5rem, 4vw, 3.25rem);
  height: auto;
  display: block;
}

.instagram:hover {
  opacity: 0.75;
}

.logo-small {
  width: min(clamp(110px, 12vw, 160px), 18vh);
  height: auto;
  display: block;
}

/* ---------- Contact panel ---------- */

.contact {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(1rem, 2.5vh, 3rem);
  padding: clamp(1.25rem, 3vh, 3rem) clamp(1.5rem, 4vw, 3.5rem);
  background: var(--white);
  color: var(--blue);
}

.contact-title {
  font-family: 'Editorial New', 'Times New Roman', Times, Georgia, serif;
  text-transform: uppercase;
  font-style: italic;
  text-align: right;
  font-size: min(11vw, 10.5vh);
  line-height: 0.95;
  letter-spacing: 0.02em;
  font-weight: 400;
  margin-top: clamp(1rem, 3vh, 2.5rem);
}

.contact-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  gap: clamp(1rem, 3.5vh, 3rem);
  width: 100%;
}

.contact-form input,
.contact-form textarea {
  font-family: 'Editorial New', 'Times New Roman', Times, Georgia, serif;
  font-size: clamp(1.4rem, min(3.4vw, 4.2vh), 3.5rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--blue);
  background: transparent;
  border: none;
  border-bottom: 3px solid var(--blue);
  border-radius: 0;
  padding: 0.3em 0 0.2em;
  outline: none;
  resize: none;
  width: 100%;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--blue);
  opacity: 0.35;
}

.send-btn {
  font-family: 'Editorial New', 'Times New Roman', Times, Georgia, serif;
  font-size: clamp(1.3rem, min(2.6vw, 3.2vh), 2.4rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--blue);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  align-self: flex-start;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 10px;
  transition: opacity 0.15s ease;
}

.send-btn:hover {
  opacity: 0.7;
}

.email-link {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
  transition: opacity 0.15s ease;
}

.email-link:hover {
  opacity: 0.7;
}

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

@media (max-width: 640px) {
  .hero {
    gap: 4rem;
  }

  .nav-buttons {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .statement {
    /* capped by screen height too, so the page never scrolls */
    font-size: min(clamp(1.5rem, 11vw, 3.2rem), 4.6vh);
    font-size: min(clamp(1.5rem, 11vw, 3.2rem), 4.6svh);
    margin-top: clamp(1rem, 2.5vh, 2rem);
  }
}
