/*
  ============================================================
  THE STUDIO — hero styles
  Palette: Paper #F4F1EA · Ink #0A0A0A · Flame #FF3B1D
  ============================================================
*/

:root {
  --ink: #0a0a0a;
  --paper: #f4f1ea;
  --accent: #ff3b1d;
}

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

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--paper);
  font-family: "Söhne", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.brik {
  font-family: "Söhne Breit Kräftig", "GT Walsheim Black", "Arial Black", "Helvetica Neue", Helvetica, sans-serif;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  -webkit-text-stroke: 0.012em currentColor;
  font-stretch: 100%;
}
.brik .i-dot { position: relative; display: inline-block; }
.brik .i-dot::after {
  content: "";
  position: absolute;
  top: -0.02em;
  left: 0.06em;
  width: 0.26em;
  height: 0.12em;
  background: currentColor;
  transform: skewX(-24deg) rotate(-8deg);
  border-radius: 0.03em;
}

#bg { position: fixed; inset: 0; z-index: 0; }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(120% 120% at 50% 40%, transparent 55%, rgba(0,0,0,0.28) 100%);
  mix-blend-mode: multiply;
}

header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 30px;
  color: var(--paper);
  mix-blend-mode: difference;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
header .logo { font-weight: 800; letter-spacing: 0.02em; font-size: 20px; }
header nav { display: flex; gap: 26px; }
header nav span { opacity: 0.85; }

.hero {
  position: fixed;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--paper);
  mix-blend-mode: difference;
  padding-bottom: 40px;
}

.title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-size: clamp(48px, 12vw, 190px);
  line-height: 1;
  white-space: nowrap;
}

.word-the { transform: translateX(0); transition: transform 0.9s cubic-bezier(.16,1,.3,1); }
.word-studio { transform: translateX(0); transition: transform 0.9s cubic-bezier(.16,1,.3,1); }
.title.pulled .word-the    { transform: translateX(-0.14em); }
.title.pulled .word-studio { transform: translateX(0.14em); }

.rotator {
  position: relative;
  display: inline-block;
  height: 1em;
  line-height: 1;
  overflow: hidden;
  width: 0;
  transition: width 0.7s cubic-bezier(.16,1,.3,1), margin 0.7s cubic-bezier(.16,1,.3,1);
  color: var(--accent);
  mix-blend-mode: normal;
  vertical-align: baseline;
}
.title.pulled .rotator { width: var(--rot-w, 4.6em); margin: 0 0.12em; }

.rotator .word {
  position: absolute;
  left: 50%;
  top: 0;
  height: 1em;
  line-height: 1;
  transform: translate(-50%, 115%);
  opacity: 0;
  white-space: nowrap;
  transition: transform 0.55s cubic-bezier(.16,1,.3,1), opacity 0.45s ease;
  font-style: italic;
  font-weight: 900;
  -webkit-text-stroke: 0;
}
.rotator .word.in  { transform: translate(-50%, 0);     opacity: 1; }
.rotator .word.out { transform: translate(-50%, -115%); opacity: 0; }

.tagline {
  margin-top: 34px;
  max-width: 540px;
  font-size: clamp(13px, 1.5vw, 17px);
  line-height: 1.5;
  letter-spacing: 0.01em;
  opacity: 0.9;
  padding: 0 20px;
}

.cta {
  margin-top: 30px;
  display: inline-block;
  padding: 13px 30px;
  border: 1.5px solid var(--paper);
  border-radius: 40px;
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.cta:hover { transform: scale(1.05); }

footer {
  position: fixed;
  bottom: 56px; left: 0; right: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 8px;
  color: var(--paper);
  mix-blend-mode: difference;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
}

@media (max-width: 760px) {
  header { padding: 16px 18px; }
  header .logo { font-size: 17px; }
  header nav { gap: 14px; font-size: 10px; letter-spacing: 0.1em; }
}

@media (max-width: 560px) {
  header { flex-direction: column; align-items: center; gap: 10px; padding: 16px 14px; }
  header nav { gap: 18px; }

  .hero { padding: 84px 16px 96px; justify-content: center; }

  .title {
    flex-direction: column;
    align-items: center;
    gap: 0.02em;
    font-size: clamp(40px, 15vw, 74px);
    letter-spacing: -0.02em;
  }
  .title.pulled .word-the    { transform: none; }
  .title.pulled .word-studio { transform: none; }

  .rotator { display: block; height: 1.05em; }
  .title.pulled .rotator { width: auto; margin: 0.02em 0; }

  .tagline { margin-top: 22px; font-size: 14px; max-width: 340px; }
  .cta { margin-top: 22px; padding: 12px 26px; }

  footer { bottom: 60px; font-size: 10px; }
}

@media (max-height: 560px) and (orientation: landscape) {
  .hero { padding: 70px 16px 70px; }
  .title { font-size: clamp(34px, 9vh, 70px); }
  .tagline { margin-top: 16px; }
  .cta { margin-top: 16px; }
  footer { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .word-the, .word-studio, .rotator, .rotator .word { transition: none !important; }
}
