/* Tane — Outlier Studios site
   Fonts loaded via Adobe Fonts web project (Gravesend Sans + Warbler Display) */

:root {
  --black: #0a0a0a;
  --offwhite: #d6d6d7;
  --white: #f5f4f0;
  --line: rgba(245, 244, 240, 0.35);
  --btn-bg: rgba(245, 244, 240, 0.08); /* experimenting with transparency */

  --nav-size: clamp(11px, 1vw, 13px);
  --tracking-wide: 0.18em;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--black);
  color: var(--white);
  font-family: "gravesend-sans", Arial, sans-serif;
}

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

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

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

/* The photo — fixed to the viewport, stays put while the content scrolls over it.
   Same background-size/position values as before, so the initial framing is unchanged. */
.hero-photo {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100svh;
  z-index: 0;
  background-image: url("assets/hero-bg.jpg");
  background-size: auto 290vh;
  background-size: auto 290svh;
  background-position: center -72vh;
  background-position: center -72svh;
  background-repeat: no-repeat;
}

/* The overlay — normal document flow now, this is what scrolls over the fixed photo */
.hero-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding-bottom: 70px;
}

.hero__tagline,
.book-btn {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
}

.hero__top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 56px 0;
}

.hero__logo img {
  width: clamp(120px, 12vw, 180px);
  height: auto;
}

.hero__nav {
  display: flex;
  gap: clamp(24px, 3vw, 48px);
  margin-left: auto;
}

.nav-toggle,
.nav-toggle-label {
  display: none;
}

.hero__nav a {
  font-size: var(--nav-size);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--offwhite);
  transition: color 0.2s ease;
}

.hero__nav a:hover,
.hero__nav a:focus-visible {
  color: var(--white);
}

.hero__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 8vh;
}

.hero__wordmark-full {
  display: flex;
  justify-content: center;
  margin-bottom: 4vh;
}

.hero__wordmark-full img {
  width: clamp(320px, 38vw, 600px);
  height: auto;
}

.hero__tagline {
  margin-top: 16px;
  font-size: 10px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--white);
  text-align: center;
}

/* Button sits over the console, roughly a third of the way down the photo */
.hero__cta {
  margin-top: 32vh;
  text-align: center;
}

.book-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 12px 44px 24px;
  border: 1px solid var(--white);
  outline: 1px solid var(--white);
  outline-offset: 4px;
  background: var(--btn-bg);
  backdrop-filter: blur(1px);
  font-family: "warbler-display", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: 0.06em;
  color: var(--white);
  transition: background 0.25s ease;
}

.book-btn:hover,
.book-btn:focus-visible {
  background: rgba(245, 244, 240, 0.16);
}

.ticker {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 52px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: rgba(10, 10, 10, 0.55);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(2px);
}

.ticker__track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker-scroll 50s linear infinite;
  will-change: transform;
}

.ticker__track span {
  font-size: var(--nav-size);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--white);
}

.ticker__track span::after {
  content: "\2022";
  margin: 0 28px;
  color: var(--offwhite);
  font-size: 0.7em;
  vertical-align: middle;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- About page ---------- */

.about-page {
  position: relative;
  min-height: 100vh;
  background: var(--black);
  display: flex;
  flex-direction: column;
}

.about-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100svh;
  background-image: url("assets/about-bg.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  z-index: 0;
}

.about-page > .hero__top {
  position: relative;
  z-index: 2;
}

.about-page > .about__content {
  position: relative;
  z-index: 1;
}

.about__content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(40px, 6vw, 100px);
  padding: 6vh 56px 80px;
  max-width: 1300px;
  margin: 0 auto;
}

.about__photo {
  flex: 0 0 auto;
  width: min(360px, 38vw);
}

.about__photo img {
  width: 100%;
  height: auto;
}

.about__text {
  flex: 1 1 420px;
  max-width: 520px;
}

.about__text h1 {
  font-family: "warbler-display", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: 0.04em;
  margin: 0 0 28px;
  color: var(--white);
}

.about__text p {
  font-family: "gravesend-sans", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.9;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--white);
  margin: 0 0 20px;
}

.about__text p:last-child {
  margin-bottom: 0;
}

/* ---------- Let's Work page ---------- */

.work-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100svh;
  background-image: url("assets/work-bg.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  z-index: 0;
}

.work-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-bottom: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.work__heading {
  text-align: center;
  margin-top: 8vh;
}

.work__heading h1 {
  font-family: "warbler-display", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  letter-spacing: 0.04em;
  margin: 0;
  color: var(--white);
}

.work__heading p {
  margin: 10px 0 0;
  line-height: 1;
  font-size: var(--nav-size);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--offwhite);
}

.work-form {
  width: 100%;
  max-width: 560px;
  margin-top: 6vh;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.work-form__row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.work-form__row label {
  font-size: var(--nav-size);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--offwhite);
}

.work-form__row input,
.work-form__row textarea {
  background: rgba(245, 244, 240, 0.06);
  border: 1px solid var(--line);
  color: var(--white);
  font-family: "gravesend-sans", Arial, sans-serif;
  font-size: 15px;
  padding: 14px 16px;
  resize: vertical;
}

.work-form__row input:focus,
.work-form__row textarea:focus {
  outline: none;
  border-color: var(--white);
}

.work-form__field-error {
  font-size: 12px;
  color: #d98c6a;
  letter-spacing: 0.02em;
}

.work-form__success {
  display: none;
  font-size: var(--nav-size);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--white);
}

.work-form__success[data-fs-active] {
  display: block;
  margin-bottom: 8px;
}

.work-form__error {
  display: none;
  font-size: 13px;
  color: #d98c6a;
}

.work-form__error[data-fs-active] {
  display: block;
}

.work-form__submit {
  align-self: center;
  margin-top: 12px;
  cursor: pointer;
  background: var(--btn-bg);
}

.work-form__honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Clients page ---------- */

.clients-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100svh;
  background-image: url("assets/clients-bg.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  z-index: 0;
}

.clients-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-bottom: 100px;
}

.clients__wordmark {
  display: flex;
  justify-content: center;
  margin-top: 8vh;
}

.clients__wordmark img {
  width: clamp(220px, 24vw, 360px);
  height: auto;
}

.clients__columns {
  display: flex;
  justify-content: center;
  gap: clamp(60px, 10vw, 160px);
  margin-top: 8vh;
  flex-wrap: wrap;
  padding: 0 40px;
}

.clients__column {
  text-align: center;
}

.clients__column h2 {
  font-family: "warbler-display", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.6;
  letter-spacing: 0.18em;
  margin: 0 0 36px;
  color: var(--white);
}

.clients__column p {
  margin: 0;
  font-size: var(--nav-size);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--white);
  line-height: 2.2;
}

.clients__ellipsis {
  letter-spacing: var(--tracking-wide);
}

/* ---------- Placeholder inner pages ---------- */

.placeholder {
  min-height: 100vh;
  background: var(--black);
  color: var(--offwhite);
  display: flex;
  flex-direction: column;
}

.placeholder__body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--nav-size);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

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

@media (max-width: 640px) {
  .work__heading p {
    font-size: 8px;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }

  .hero__main {
    padding-top: calc(8vh + 25px);
  }

  .hero__top {
    position: relative;
    padding: 24px 20px 0;
  }

  .hero__logo img {
    width: 130px;
  }

  .nav-toggle {
    display: none;
  }

  .nav-toggle-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 5px;
    width: 28px;
    height: 24px;
    margin-left: auto;
    cursor: pointer;
  }

  .nav-toggle-label span {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--white);
    transition: transform 0.2s ease, opacity 0.2s ease, width 0.2s ease;
  }

  .nav-toggle-label span:nth-child(2) {
    width: 70%;
  }

  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
    width: 100%;
  }

  .hero__nav {
    position: absolute;
    top: calc(100% + 16px);
    right: 20px;
    flex-direction: column;
    align-items: flex-end;
    gap: 18px;
    padding: 20px 24px;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .nav-toggle:checked ~ .hero__nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .hero__nav a {
    font-size: 11px;
  }

  .hero__cta {
    margin-top: calc(34vh + 10px);
  }

  .book-btn {
    padding: 15px 44px 21px;
  }

  .ticker {
    height: 44px;
  }

  .ticker__track span::after {
    margin: 0 18px;
  }

  .about__content {
    flex-direction: column;
    padding: 4vh 24px 60px;
    text-align: center;
  }

  .about__photo {
    width: min(280px, 60vw);
  }

  .about__text {
    max-width: 100%;
  }
}
