/* Souly Staffing — combined theme
   Fonts: Editorial (Newsreader serif dominant, Manrope body/labels)
   Nav: Editorial header chrome
   Menu caps: Inspired (UPPERCASE Manrope tracked)
   Layouts: Inspired structure
*/

body {
  font-family: 'Manrope', sans-serif;
  background-color: #fbfaf6;
  color: #141514;
  -webkit-font-smoothing: antialiased;
}

.font-serif { font-family: 'Newsreader', serif; }

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 24;
}

/* Hero headline — Editorial-scale serif */
.display {
  font-family: 'Newsreader', serif;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

/* Menu label — Inspired uppercase treatment */
.nav-link {
  font-family: 'Manrope', sans-serif;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  font-weight: 500;
  color: #6b6b6b;
  transition: color 200ms ease;
}
.nav-link:hover { color: #1a1c1c; }
.nav-link.active {
  color: #1a1c1c;
  border-bottom: 1px solid #1a1c1c;
  padding-bottom: 4px;
}

/* Hero video / image container — editorial treatment matching the
   warm taupe founder portrait (grayscale + subtle warm cast) */
.hero-media {
  /* Positioning comes from the `absolute inset-0` utilities in the markup so the
     video layers behind the hero copy. Do not set `position` here — it would tie
     with the `.absolute` utility and (depending on stylesheet order) drop the
     video into normal flow, pushing the hero text below it. */
  overflow: hidden;
  background: #2a2724;
}
.hero-media video,
.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: grayscale(1) sepia(0.12) brightness(1.02) contrast(1.04);
}

/* Full-bleed hero section */
.hero-full {
  min-height: clamp(560px, 78vh, 860px);
  background: #2a2724;
}
/* Editorial scrim — warm dark gradient on the left for text legibility,
   fading to a lighter warm tint on the right so the video reads */
.hero-scrim {
  background:
    linear-gradient(
      90deg,
      rgba(20,21,20,0.78) 0%,
      rgba(20,21,20,0.62) 28%,
      rgba(20,21,20,0.28) 55%,
      rgba(20,21,20,0.10) 78%,
      rgba(20,21,20,0.00) 100%
    ),
    /* subtle top→bottom warm vignette */
    linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.00) 30%, rgba(0,0,0,0.00) 70%, rgba(0,0,0,0.28) 100%);
}
/* Text colors inside the hero overlay */
.hero-copy .display,
.hero-copy .eyebrow {
  color: #fbfaf6;
}
.hero-copy .eyebrow {
  color: rgba(251,250,246,0.72);
}
.hero-lede {
  color: rgba(251,250,246,0.84);
}
.hero-italic-link {
  color: #fbfaf6;
  border-bottom-color: rgba(251,250,246,0.45);
}
.hero-italic-link:hover {
  border-bottom-color: #fbfaf6;
}

/* Editorial rectangular inquiry button */
.btn-inquiry {
  background: #000;
  color: #e5e2e1;
  padding: 10px 28px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-weight: 600;
  transition: opacity 240ms ease;
}
.btn-inquiry:hover { opacity: 0.78; }

/* Small label — editorial micro-label */
.eyebrow {
  font-family: 'Manrope', sans-serif;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-weight: 500;
  color: #6b6b6b;
}

.rule { height: 1px; background: rgba(0,0,0,0.12); }

/* Editorial-style nav wrapper.
   The header flows in normal document order and sticks on scroll (rather than
   bleeding the hero up behind a fixed header). This keeps the header from ever
   overlapping — and clipping — the hero video, on every viewport. */
site-nav {
  display: block;
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-wrap {
  background: rgba(235,232,227,0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 0.5px solid rgba(0,0,0,0.18);
}
/* Header now occupies its own space in flow, so neither the top padding that
   reserved room for a fixed header nor the hero's behind-header bleed is
   needed. */
main.pt-28 {
  padding-top: 0;
}
section.hero-full {
  margin-top: 0;
  padding-top: 0;
}

/* --- Mobile-only refinements --- */
@media (max-width: 767px) {
  /* Push the hero copy down into the lower (blurred) area so it clears the
     subject's face on the tall mobile crop. */
  .hero-full .hero-copy {
    margin-top: 8rem;
  }
  /* Keep the header on one compact line so it doesn't wrap to a taller bar. */
  .nav-wrap a.font-serif {
    font-size: 1.25rem;
    letter-spacing: 0.12em;
    white-space: nowrap;
  }
  .nav-wrap .btn-inquiry {
    white-space: nowrap;
    letter-spacing: 0.18em;
    padding: 9px 18px;
  }
}

/* Image placeholder — striped */
.ph {
  background-image:
    repeating-linear-gradient(
      45deg,
      #d9d5cf 0 8px,
      #e2ded7 8px 16px
    );
  position: relative;
  overflow: hidden;
}
.ph::after {
  content: attr(data-ph);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #7c7870;
  text-align: center;
  padding: 2rem;
  line-height: 1.6;
}

/* Step card hover-fill (inspired) */
.step-card {
  background: #ffffff;
  padding: 2.5rem 2.25rem;
  min-height: 280px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background 500ms ease, color 500ms ease;
  border: 0.5px solid rgba(0,0,0,0.06);
}
.step-card .num {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 6rem;
  line-height: 1;
  position: absolute;
  right: -6px;
  top: -18px;
  color: #ededeb;
  transition: color 500ms ease;
}
.step-card:hover { background: #0a0a0a; color: #ededed; }
.step-card:hover .num { color: #2a2a2a; }
.step-card:hover .sub { color: rgba(255,255,255,0.65); }

/* On mobile the fixed height + bottom-anchored content leaves a large empty
   gap under the watermark number. Let cards hug their content and flow the
   number inline above the title instead. */
@media (max-width: 767px) {
  .step-card {
    min-height: 0;
    padding: 1.75rem 1.5rem;
  }
  .step-card .num {
    position: static;
    display: block;
    font-size: 3rem;
    margin-bottom: 0.25rem;
  }
}

/* Role row — collapsible */
.role-row {
  border-top: 1px solid rgba(0,0,0,0.1);
  padding: 28px 0;
  display: grid;
  grid-template-columns: 64px 1.6fr 1fr 1fr 0.7fr 32px;
  gap: 24px;
  align-items: center;
  cursor: pointer;
  transition: background 220ms ease, padding-left 220ms ease, padding-right 220ms ease;
}
.role-row:hover {
  background: #f1efec;
  padding-left: 16px;
  padding-right: 16px;
}
.role-row .idx {
  font-family: 'Manrope', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  color: #8a8883;
}
.role-row .title {
  font-family: 'Newsreader', serif;
  font-size: 1.75rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.role-row .meta {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #555;
}
.role-row .chev {
  text-align: right;
  color: #999;
  transition: transform 220ms ease, color 220ms ease;
}
.role-row.open .chev { transform: rotate(90deg); color: #000; }
.role-detail {
  grid-column: 1 / -1;
  display: none;
  padding: 8px 0 28px 88px;
}
.role-row.open .role-detail { display: block; }

.tag {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  border: 1px solid rgba(0,0,0,0.25);
  padding: 5px 11px;
  margin-right: 6px;
  margin-bottom: 6px;
}

/* Form field (contact) */
.field label {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: #6b6b6b;
  margin-bottom: 10px;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(0,0,0,0.18);
  padding: 12px 0;
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  color: #1a1c1c;
  outline: none;
  transition: border-color 200ms ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-bottom-color: #000;
}
.field textarea { resize: none; min-height: 120px; }

/* Filter chip */
.chip {
  font-family: 'Manrope', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 9px 16px;
  border: 1px solid rgba(0,0,0,0.18);
  background: transparent;
  cursor: pointer;
  transition: all 180ms ease;
  color: #555;
}
.chip:hover { border-color: #000; color: #000; }
.chip.active { background: #000; color: #fff; border-color: #000; }

/* Italic link */
.italic-link {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 1.125rem;
  border-bottom: 1px solid rgba(0,0,0,0.25);
  padding-bottom: 3px;
  transition: border-color 200ms ease;
}
.italic-link:hover { border-bottom-color: #000; }

/* ----- Footer ----- */
.footer {
  background: #ddd8d0;
  border-top: 0.5px solid rgba(0,0,0,0.14);
  padding: 80px 32px 40px;
}
.footer h4 {
  font-family: 'Manrope', sans-serif;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-weight: 600;
  margin-bottom: 20px;
  color: #1a1c1c;
}
.footer a {
  display: block;
  font-size: 0.9rem;
  color: #5a5a5a;
  padding: 5px 0;
  transition: color 180ms ease;
}
.footer a:hover { color: #000; }

/* Darker neutrals to match Editorial / Inspired warmth.
   Override Tailwind's off-whites so alt sections feel like bone, not paper. */
.bg-neutral-100 { background-color: #e3dfd8 !important; }
main a.hover\:bg-neutral-100:hover { background-color: #ddd8d0 !important; }
.role-row:hover { background: #ddd8d0; }

/* =====================================================
   Scroll reveal system
   Elements start hidden, animate on .is-inview
   ===================================================== */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transition:
      opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
      filter 900ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
  }
  /* variants */
  [data-reveal="up"]      { transform: translate3d(0, 28px, 0); }
  [data-reveal="up-lg"]   { transform: translate3d(0, 56px, 0); }
  [data-reveal="down"]    { transform: translate3d(0, -20px, 0); }
  [data-reveal="left"]    { transform: translate3d(-40px, 0, 0); }
  [data-reveal="right"]   { transform: translate3d(40px, 0, 0); }
  [data-reveal="fade"]    { transform: none; }
  [data-reveal="blur"]    { filter: blur(10px); transform: translate3d(0, 16px, 0); }
  [data-reveal="scale"]   { transform: scale(0.96) translate3d(0, 16px, 0); transform-origin: bottom left; }

  [data-reveal].is-inview {
    opacity: 1;
    transform: none;
    filter: none;
  }

  /* Rule-line draws itself */
  .rule[data-reveal-rule] {
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 1100ms cubic-bezier(0.76, 0, 0.24, 1);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .rule[data-reveal-rule].is-inview { transform: scaleX(1); }

  /* Word-by-word serif reveal for displays */
  .reveal-words .rw {
    display: inline-block;
    opacity: 0;
    transform: translate3d(0, 0.5em, 0);
    transition:
      opacity 800ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--rw-i, 0) * 80ms + var(--reveal-delay, 0ms));
  }
  .reveal-words.is-inview .rw {
    opacity: 1;
    transform: none;
  }

  /* Character shimmer for eyebrows */
  .eyebrow[data-reveal] {
    letter-spacing: 0.55em;
  }
  .eyebrow[data-reveal].is-inview {
    letter-spacing: 0.4em;
    transition:
      opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
      letter-spacing 1200ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
  }

  /* Counter number — quiet pulse on reveal */
  [data-count] {
    display: inline-block;
  }
}
