/* =========================================
   TOTO — Turn Off Turn On Ventures
   Minimal, editorial, photography-forward
   ========================================= */

/* --- RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #0e0e0e;
  --white: #f5f4f0;
  --grey-light: #e8e7e3;
  --grey-mid: #9e9b94;
  --grey-dark: #3a3835;
  --accent: #c8a96e;       /* warm gold — like late afternoon on a cycling road */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --max-width: 1200px;
  --section-gap: clamp(80px, 12vw, 160px);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
}

/* --- SCROLL REVEAL --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* --- NAVIGATION --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(24px, 5vw, 80px);
  transition: background 0.4s ease, padding 0.4s ease;
}

.nav.scrolled {
  background: rgba(245, 244, 240, 0.96);
  backdrop-filter: blur(8px);
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--grey-light);
}

.nav-logo {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  color: var(--white);
  transition: color 0.4s ease;
}

.nav.scrolled .nav-logo {
  color: var(--black);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,244,240,0.8);
  transition: color 0.3s ease;
}

.nav.scrolled .nav-links a {
  color: var(--grey-dark);
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: background 0.4s ease;
}
.nav.scrolled .nav-toggle span {
  background: var(--black);
}

/* --- HERO --- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(60px, 10vh, 120px);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--black);
}

.hero-img {
  position: absolute;
  inset: 0;
  opacity: 0.65;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.hero-img.loaded {
  transform: scale(1);
}

/* When no image is provided, use a gradient */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    #1a1a1a 0%,
    #2d2a24 40%,
    #3a3530 70%,
    #1a1a1a 100%
  );
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.3) 50%,
    rgba(0,0,0,0.1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(24px, 5vw, 80px);
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  transition-delay: 0.1s;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 9vw, 9rem);
  font-weight: 900;
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 32px;
  transition-delay: 0.2s;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: rgba(245,244,240,0.75);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 48px;
  transition-delay: 0.3s;
}

.hero-cta {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--white);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
  transition: color 0.3s ease, border-color 0.3s ease;
  transition-delay: 0.4s;
}

.hero-cta:hover {
  color: var(--accent);
}

.hero-scroll-hint {
  position: absolute;
  right: clamp(24px, 5vw, 80px);
  bottom: 60px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-scroll-hint span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,244,240,0.5);
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(245,244,240,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50% { transform: scaleY(0.6); opacity: 1; }
}

/* --- STATEMENT --- */
.statement {
  padding: var(--section-gap) 0;
  background: var(--black);
}

.statement-text {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: var(--white);
  max-width: 800px;
}

/* --- SHARED SECTION ELEMENTS --- */
.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 32px;
}

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

.section-sub {
  font-size: 1.05rem;
  color: var(--grey-mid);
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: clamp(48px, 8vw, 96px);
}

/* --- PLACEHOLDER PHOTOS --- */
.placeholder-photo {
  background: var(--grey-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.placeholder-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(0,0,0,0.025) 20px,
    rgba(0,0,0,0.025) 21px
  );
}

.placeholder-photo span {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-mid);
  z-index: 1;
}

/* --- STORY --- */
.story {
  padding: var(--section-gap) 0;
}

.story-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(60px, 10vw, 120px);
  margin-top: 64px;
}

.story-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.story-block--reverse {
  direction: rtl;
}

.story-block--reverse > * {
  direction: ltr;
}

.story-photo {
  aspect-ratio: 4/5;
  border-radius: 2px;
}

.story-text h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.story-text p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--grey-dark);
}

/* --- JOURNEY --- */
.journey {
  padding: var(--section-gap) 0;
  background: var(--black);
  color: var(--white);
}

.journey .section-label {
  padding: 0 clamp(24px, 5vw, 80px);
}
.journey .container {
  margin-bottom: 80px;
}

.journey .section-title {
  color: var(--white);
}

.journey .section-sub {
  color: rgba(245,244,240,0.6);
}

.timeline {
  position: relative;
  padding: 0 clamp(24px, 5vw, 80px);
  max-width: var(--max-width);
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: clamp(24px, 5vw, 80px);
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.1);
  margin-left: 11px;
}

.timeline-stop {
  position: relative;
  padding-left: 56px;
  margin-bottom: 80px;
}

.stop-dot {
  position: absolute;
  left: 0;
  top: 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--black);
  transition: background 0.3s ease;
}

.timeline-stop:hover .stop-dot {
  background: var(--accent);
}

.stop-content {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
}

.stop-photo.small {
  aspect-ratio: 3/4;
  border-radius: 2px;
}

.stop-location {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.stop-text h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--white);
}

.stop-text p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(245,244,240,0.6);
}

.timeline-cta {
  text-align: center;
  padding: 40px 0;
  color: rgba(245,244,240,0.4);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

/* --- WORK --- */
.work {
  padding: var(--section-gap) 0;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.work-card {
  background: var(--grey-light);
  padding: clamp(32px, 5vw, 56px);
  position: relative;
  transition: background 0.3s ease;
}

.work-card:hover {
  background: var(--black);
  color: var(--white);
}

.work-card-number {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 32px;
  font-weight: 500;
}

.work-card h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.work-card p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--grey-dark);
  margin-bottom: 32px;
}

.work-card:hover p {
  color: rgba(245,244,240,0.7);
}

.work-link {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.3s ease;
}

.work-link:hover {
  border-color: var(--accent);
}

/* --- NUMBERS BAND --- */
.numbers {
  padding: clamp(60px, 8vw, 100px) 0;
  background: var(--accent);
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.number-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(24px, 4vw, 48px);
  background: rgba(0,0,0,0.06);
}

.number-big {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  color: var(--black);
  line-height: 1;
  margin-bottom: 12px;
}

.number-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.6);
  font-weight: 500;
}

@media (max-width: 640px) {
  .numbers-grid {
    grid-template-columns: 1fr 1fr;
  }
}


/* --- INVESTMENT THESIS --- */
.thesis {
  padding: var(--section-gap) 0;
  background: var(--black);
  color: var(--white);
}

.thesis-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}

.thesis .section-label {
  color: var(--accent);
}

.thesis .section-title {
  color: var(--white);
}

.thesis-right p {
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(245,244,240,0.7);
  margin-bottom: 32px;
}

.thesis-list {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.thesis-list li {
  font-size: 1rem;
  color: var(--white);
  padding-left: 20px;
  position: relative;
}

.thesis-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.thesis-note {
  font-size: 0.9rem;
  font-style: italic;
  color: rgba(245,244,240,0.5);
}

@media (max-width: 900px) {
  .thesis-inner {
    grid-template-columns: 1fr;
  }
}


/* --- PULL QUOTE --- */
.pullquote {
  padding: var(--section-gap) 0;
  background: var(--accent);
}

.pullquote blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--black);
}

.pullquote blockquote em {
  font-style: italic;
}

/* --- CONTACT --- */
.contact {
  padding: var(--section-gap) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
  margin-top: 64px;
}

.contact-info p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--grey-dark);
  margin-bottom: 40px;
  max-width: 380px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
  color: var(--black);
  transition: color 0.3s ease;
}

.contact-item:hover {
  color: var(--accent);
}

.contact-icon {
  font-size: 1rem;
  width: 24px;
  text-align: center;
  color: var(--accent);
}

/* FORM */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-mid);
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--grey-light);
  padding: 12px 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--black);
  transition: border-color 0.3s ease;
  outline: none;
  resize: none;
  -webkit-appearance: none;
  border-radius: 0;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239e9b94' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
}

.form-group select option {
  font-family: var(--font-sans);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--grey-mid);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-bottom-color: var(--black);
}

.form-submit {
  align-self: flex-start;
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 18px 40px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.3s ease;
  border-radius: 0;
}

.form-submit:hover {
  background: var(--accent);
  color: var(--black);
}

.form-note {
  font-size: 0.75rem;
  color: var(--grey-mid);
  line-height: 1.6;
  font-style: italic;
}

/* --- FOOTER --- */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 60px 0 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--white);
}

.footer-tagline {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-mid);
  margin-top: 8px;
}

.footer-nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

.footer-credit {
  font-style: italic;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .story-block,
  .story-block--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .story-photo {
    aspect-ratio: 16/9;
  }

  .work-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .stop-content {
    grid-template-columns: 140px 1fr;
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-title {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .footer-top {
    flex-direction: column;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .stop-content {
    grid-template-columns: 1fr;
  }

  .stop-photo.small {
    aspect-ratio: 16/9;
    max-height: 200px;
  }
}
