/* ============================================================
   Self-hosted Jost (replaces the former Google Fonts loader)
   ------------------------------------------------------------
   The Webflow CSS references `font-family: Jost` throughout, but
   its own @font-face is named "Jost Variablefont Wght" — the bare
   "Jost" family used to come from Google's webfont.js. That loader
   was removed for performance, so map "Jost" to the variable-font
   files already bundled in this repo. Fully self-hosted, no CDN.
   ============================================================ */
@font-face {
  font-family: 'Jost';
  src: url('/61f4e297ae5e661458335042/67fbc3a6018d8db0e47ed9fe_Jost-VariableFont_wght.woff2') format('woff2'),
       url('/61f4e297ae5e661458335042/67fbc3a6018d8db0e47ed9fe_Jost-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('/61f4e297ae5e661458335042/67fbc3a6286c19f6c0859ed6_Jost-Italic-VariableFont_wght.woff2') format('woff2'),
       url('/61f4e297ae5e661458335042/67fbc3a6286c19f6c0859ed6_Jost-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ============================================================
   Naoto Nakada — Light / Dark theme
   ------------------------------------------------------------
   Ports the light/dark toggle from naotonakada.org (Nakada
   Foundation). Here the theme swaps the hero painting between a
   daytime (light) and a nighttime (dark) edition. The site's
   text is light on both editions, so only the artwork changes.

   Loaded AFTER the Webflow shared stylesheet so these rules win.
   ============================================================ */

/* Daytime painting — the site's existing hero image.
   --bg-day       : plain JPG, the universal fallback.
   --bg-day-set   : WebP (preloaded, ~33% lighter) with the JPG inside
                    image-set() so older engines that ignore image-set()
                    fall back to the --bg-day line below. */
:root {
  --bg-day: url("/61f4e297ae5e661458335042/621f34cfb552ff45a4facfad_Thomas%20Cole%2C%20The%20Voyage%20of%20Life%20Youth%20%281842%29%20Compressed.jpg");
  --bg-day-set: image-set(
    url("/61f4e297ae5e661458335042/621f34cfb552ff45a4facfad_Thomas%20Cole%2C%20The%20Voyage%20of%20Life%20Youth%20%281842%29%20Compressed.webp") type("image/webp"),
    url("/61f4e297ae5e661458335042/621f34cfb552ff45a4facfad_Thomas%20Cole%2C%20The%20Voyage%20of%20Life%20Youth%20%281842%29%20Compressed.jpg") type("image/jpeg")
  );

  /* TODO — Nighttime edition of the painting (in progress):
     when the asset is ready, drop it in here, e.g.
       --bg-night: url("/61f4e297ae5e661458335042/<nighttime-file>.jpg");
     then in the [data-theme="dark"] rule below replace the
     linear-gradient + var(--bg-day) with `background-image: var(--bg-night)`
     and remove the `filter` line. */
}

/* ---- Light mode = daytime painting (unchanged original look) ----
   Two declarations: the first (plain JPG) is the fallback; the second
   (WebP image-set) wins wherever image-set() is supported. */
[data-theme="light"] .background-image {
  background-image: var(--bg-day);
  background-image: var(--bg-day-set);
  filter: none;
}

/* ---- Dark mode = nighttime painting ----
   Stand-in until the dedicated nighttime edition lands: darken the
   daytime painting beneath a cool, moonlit veil. See the TODO above
   to swap in the real artwork with a one-line change. */
[data-theme="dark"] .background-image {
  background-image:
    linear-gradient(rgba(8, 12, 28, 0.55), rgba(8, 12, 28, 0.62)),
    var(--bg-day);
  background-image:
    linear-gradient(rgba(8, 12, 28, 0.55), rgba(8, 12, 28, 0.62)),
    var(--bg-day-set);
  filter: brightness(0.55) saturate(0.82) contrast(1.02);
}

/* ============================================================
   Theme toggle button (ported from naotonakada.org)
   ============================================================ */
/* Fixed to the viewport so the control is always reachable and never depends
   on the Webflow navbar's box (which computes to zero width). A subtle glass
   chip keeps the white icon legible over the painting, the black Stories page
   and the white Talent page alike. */
.theme-toggle {
  position: fixed;
  top: 16px;
  right: 18px;
  z-index: 1000;
  width: 42px;
  height: 42px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;                              /* matches the white nav text */
  background: rgba(18, 18, 22, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: color .15s ease, background .2s ease, transform .15s ease;
}

.theme-toggle:hover { color: #ff8d1b; background: rgba(18, 18, 22, 0.55); }  /* same orange hover as the nav text */
.theme-toggle:active { transform: scale(0.92); }

.theme-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
  /* dark halo keeps the light icon legible on light backgrounds (e.g. Talent page) */
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.5));
}

/* Dark mode shows the sun (click → light); light mode shows the moon (click → dark). */
[data-theme="dark"]  .icon-sun  { display: block; }
[data-theme="dark"]  .icon-moon { display: none; }
[data-theme="light"] .icon-sun  { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* Fallback before data-theme is set: show the sun. */
.icon-sun  { display: block; }
.icon-moon { display: none; }

@media screen and (max-width: 479px) {
  .theme-toggle { top: 14px; right: 14px; }
}

/* Gentle crossfade on theme switch where View Transitions are supported. */
::view-transition-old(root),
::view-transition-new(root) { animation-duration: .4s; }

/* ============================================================
   Talent application form (talent.html)
   Styled for the light Talent page: dark text, subtle inputs,
   black submit with the site's orange accent on hover/focus.
   ============================================================ */
.talent-apply {
  font-family: Jost, sans-serif;
  color: #111;
  max-width: 640px;
  margin: 1.6rem auto 0;
  text-align: left;
}
.talent-apply-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.talent-apply label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 1rem;
}
.talent-apply label span { color: #ff8a1c; }
.talent-apply input,
.talent-apply select,
.talent-apply textarea {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.7rem 0.8rem;
  font-family: Jost, sans-serif;
  font-size: 1rem;
  color: #111;
  text-transform: none;
  letter-spacing: normal;
  background: #fff;
  border: 1px solid #d8d4cc;
  border-radius: 2px;
  box-sizing: border-box;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.talent-apply textarea { resize: vertical; min-height: 7rem; }
.talent-apply input:focus,
.talent-apply select:focus,
.talent-apply textarea:focus {
  outline: none;
  border-color: #ff8a1c;
  box-shadow: 0 0 0 2px rgba(255, 138, 28, 0.18);
}
.talent-apply button[type="submit"] {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.85rem 2.4rem;
  font-family: Jost, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: #141414;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background .2s ease;
}
.talent-apply button[type="submit"]:hover { background: #ff8a1c; }
.talent-apply button[type="submit"]:disabled { opacity: 0.6; cursor: default; }
.talent-apply-done,
.talent-apply-fail {
  margin-top: 1.1rem;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.talent-apply-done { color: #1c7a3c; }
.talent-apply-fail { color: #b0281a; }
@media screen and (max-width: 700px) {
  .talent-apply-row { grid-template-columns: 1fr; gap: 0; }
}

/* Visually-hidden text: available to screen readers and search engines,
   removed from the visual layout (used for per-page <h1> landmarks). */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   Endeavors page layout (endeavors.html)
   Moved out of the page's inline <style> for maintainability.
   Classes are unique to that page, so these are inert elsewhere.
   The !important flags override Webflow's fixed-height hero panel
   so the stacked ventures can grow to their natural height.
   ============================================================ */
.the-label-div.endeavors-wrap { height: auto !important; margin-top: 14vh; margin-bottom: 10vh; }
.main-section-div.the-label-text.endeavors-panel { height: auto !important; min-height: 0 !important; padding: 6vh 6vw; }
.endeavor-intro { font-size: 1.35em !important; line-height: 1.5 !important; margin-bottom: 2.2rem !important; opacity: .95; }
.endeavor-name { font-size: 2em !important; margin-bottom: .3rem !important; }
.endeavor-tag { font-size: 1.15em !important; line-height: 1.4 !important; margin-bottom: .5rem !important; opacity: .8; }
.endeavor-link { font-size: 1.15em !important; }
.endeavor-link a { color: #fff; }
.endeavor-gap { margin-bottom: 2.4rem !important; }
.about-sections.the-label.label-story { width: auto !important; max-width: 40rem; font-size: 1.1em !important; line-height: 1.7 !important; margin-bottom: 1.6rem !important; opacity: .95; }
.about-sections.the-label.label-signup-label { font-size: 1.05em !important; line-height: 1.4 !important; margin-bottom: 1rem !important; opacity: .9; }
.endeavors-panel .email-form { margin: 0 auto; }
.endeavors-divider { width: 40%; max-width: 15rem; height: 1px; background: rgba(255,255,255,.35); margin: 3rem auto; }
@media (max-width: 767px) {
  .main-section-div.the-label-text.endeavors-panel { padding: 5vh 8vw; }
  .endeavor-intro { font-size: 1.15em !important; }
  .endeavor-name { font-size: 1.5em !important; }
  .endeavor-tag, .endeavor-link { font-size: 1em !important; }
  .about-sections.the-label.label-story { font-size: 1.02em !important; }
}
