/* ==========================================================================
   the studio local — shared styles
   ========================================================================== */

:root {
  --color-bg: #f5f3ee;
  --color-grid: #cfe3ef;
  --color-accent: #ff3b30;
  --color-yellow: #f5e000;
  --color-ink: #111111;

  --font-heading: "Archivo", "Inter", sans-serif;
  --font-mono: "Space Mono", "IBM Plex Mono", monospace;

  --grid-size: 44px;
  --book-btn-height: 64px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--color-bg);
  background-image:
    linear-gradient(var(--color-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-grid) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  color: var(--color-ink);
  font-family: var(--font-mono);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* --------------------------------------------------------------------------
   BOOK button — persistent pill CTA
   -------------------------------------------------------------------------- */

.book-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--book-btn-height);
  padding: 0 2.4rem;
  border-radius: 999px;
  background: var(--color-yellow);
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-weight: 800;
  font-style: italic;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: 0 0 0 0 rgba(245, 224, 0, 0);
  filter: drop-shadow(0 0 18px rgba(245, 224, 0, 0.75));
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, filter 0.25s ease;
  white-space: nowrap;
}

.book-btn:hover,
.book-btn:focus-visible {
  transform: translateY(-2px) scale(1.03);
  filter: drop-shadow(0 0 26px rgba(245, 224, 0, 0.95));
}

.book-btn:active {
  transform: translateY(0) scale(0.98);
}

/* Fixed/persistent book button used site-wide */
.book-btn--fixed {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 100;
}

@media (max-width: 640px) {
  :root {
    --book-btn-height: 52px;
  }
  .book-btn--fixed {
    top: 1rem;
    right: 1rem;
    padding: 0 1.5rem;
    font-size: 1.1rem;
  }
}

/* Scroll-revealed fixed BOOK button (landing page only) */
.book-btn--scroll-reveal {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.book-btn--scroll-reveal.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Scroll-revealed wordmark — click to return to top */
.wordmark {
  position: fixed;
  top: 1.4rem;
  left: 1.4rem;
  z-index: 100;
  display: inline-flex;
  align-items: baseline;
  gap: 0.3em;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-accent);
  text-transform: lowercase;
  letter-spacing: -0.01em;
  line-height: 1;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(245, 243, 238, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.wordmark__studio {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  font-weight: 800;
}

.wordmark__local {
  font-style: italic;
  font-weight: 500;
}

.wordmark__asterisk {
  color: var(--color-yellow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.5em;
  height: 0.5em;
  margin-left: 0.04em;
}

.wordmark__asterisk svg {
  width: 100%;
  height: 100%;
  display: block;
  animation: spin-slow 8s linear infinite;
  transform-origin: 50% 50%;
}

.wordmark--scroll-reveal {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
}

.wordmark--scroll-reveal.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .wordmark {
    top: 0.75rem;
    left: 0.75rem;
    font-size: 1rem;
    padding: 0.45rem 0.75rem;
  }
}

/* --------------------------------------------------------------------------
   Top bar (work pages)
   -------------------------------------------------------------------------- */

.topbar {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 2rem clamp(1.5rem, 5vw, 4rem);
  z-index: 10;
}

.topbar--inline {
  padding-top: 4.5rem;
}

.topbar--inline {
  justify-content: flex-start;
  padding-bottom: 0;
}

.topbar__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--color-accent);
  margin: 0;
}

.topbar__heading em {
  font-style: italic;
  font-weight: 400;
}

.topbar__heading strong {
  font-weight: 800;
  font-style: normal;
}

/* --------------------------------------------------------------------------
   Landing page hero
   -------------------------------------------------------------------------- */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 3rem;
  gap: 2.5rem;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  line-height: 0.92;
  color: var(--color-accent);
  font-family: var(--font-heading);
}

.logo__the {
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  font-weight: 400;
  font-style: normal;
}

.logo__studio {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  font-size: clamp(4.5rem, 14vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.logo__asterisk {
  color: var(--color-yellow);
  margin-left: 0.05em;
  margin-top: -0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.5em;
  height: 0.5em;
}

.logo__asterisk svg {
  width: 100%;
  height: 100%;
  display: block;
  animation: spin-slow 8s linear infinite;
  transform-origin: 50% 50%;
}

@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

.logo__local {
  font-size: clamp(3rem, 9.5vw, 6rem);
  font-style: italic;
  font-weight: 500;
}

.tagline {
  font-family: var(--font-mono);
  font-size: clamp(0.8rem, 1.6vw, 1rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tagline span {
  color: var(--color-ink);
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-ink);
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.25s ease;
  animation: bob 2.4s ease-in-out infinite;
}

.scroll-indicator:hover {
  opacity: 0.7;
}

.scroll-indicator__chevron {
  font-size: 1.1rem;
  line-height: 1;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* --------------------------------------------------------------------------
   Work showcase pages
   -------------------------------------------------------------------------- */

.work-page {
  min-height: 100vh;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 45%,
    rgba(245, 224, 0, 0.55) 75%,
    rgba(245, 224, 0, 0.95) 100%
  );
}

.work-content {
  padding: 4rem clamp(1.5rem, 5vw, 4rem) 6rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.media-placeholder {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.media-placeholder__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: rgba(17, 17, 17, 0.06);
  border: 1px dashed rgba(17, 17, 17, 0.3);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(17, 17, 17, 0.5);
  overflow: hidden;
}

.media-placeholder img,
.media-placeholder video {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.5rem;
}

.media-placeholder--video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 0.5rem;
  background: #000;
}

.caption {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  max-width: 40ch;
}

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */

.contact-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem;
}

.contact-box {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 36rem;
}

.contact-box__heading {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 800;
  color: var(--color-accent);
  margin: 0;
}

.contact-box__copy {
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.contact-box .book-btn {
  position: static;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.5);
}
