/* ============================================================================
   Tosset — High-Fashion Editorial Homepage
   Dark/luxe, full-bleed editorial photography, refined serif display + clean
   sans body, cinematic spacing, subtle motion. Self-hosted/system fonts only.
   ============================================================================ */

:root {
  --ed-ink:    #0d0d0f;
  --ed-ink-2:  #16161a;
  --ed-paper:  #f6f4f1;     /* warm off-white */
  --ed-line:   rgba(255,255,255,.14);
  --ed-gold:   #c9a96a;     /* understated luxe accent */
  /* Display = refined system serif (no CDN; matches the Tosset wordmark).
     Body = self-hosted Manrope (already bundled in style.css). */
  --ed-serif:  Georgia, 'Times New Roman', 'Noto Serif', serif;
  --ed-sans:   'Manrope', -apple-system, 'Segoe UI', sans-serif;
}

/* The editorial homepage runs edge-to-edge; neutralise the template main padding. */
.ts-ed main, main.ts-ed-main { background: var(--ed-ink); }
.ts-ed-section { position: relative; }

/* Display type helper */
.ed-display { font-family: var(--ed-serif); font-weight: 600; letter-spacing: .5px; line-height: 1.02; }
.ed-eyebrow { font-family: var(--ed-sans); text-transform: uppercase; letter-spacing: 4px; font-size: 11px; font-weight: 700; color: var(--ed-gold); }

/* ---- HERO ---------------------------------------------------------------- */
.ed-hero {
  position: relative; min-height: 92vh; display: flex; align-items: flex-end;
  background: var(--ed-ink); overflow: hidden;
}
.ed-hero-bg { position: absolute; inset: 0; z-index: 0; }
.ed-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%;
  transform: scale(1.04); animation: edKenburns 18s ease-out forwards; }
@keyframes edKenburns { to { transform: scale(1.12); } }
.ed-hero-overlay { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(13,13,15,.55) 0%, rgba(13,13,15,.25) 38%, rgba(13,13,15,.82) 88%, var(--ed-ink) 100%); }
.ed-hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1240px; margin: 0 auto;
  padding: 0 40px 72px; color: #fff; }
.ed-hero h1 { font-family: var(--ed-serif); font-weight: 600; color: #fff;
  font-size: clamp(2.8rem, 7vw, 6rem); line-height: .98; letter-spacing: .5px; margin: 0 0 18px;
  text-shadow: 0 2px 40px rgba(0,0,0,.4); max-width: 16ch; }
.ed-hero h1 em { font-style: italic; color: var(--ed-gold); }
.ed-hero-sub { font-family: var(--ed-sans); font-size: clamp(1rem, 1.6vw, 1.2rem); color: rgba(255,255,255,.82);
  max-width: 46ch; margin: 0 0 32px; line-height: 1.6; }

/* Hero search — glassy, refined */
.ed-search { display: flex; gap: 10px; flex-wrap: wrap; max-width: 760px;
  background: rgba(255,255,255,.08); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--ed-line); border-radius: 16px; padding: 12px; }
.ed-search input, .ed-search select {
  flex: 1; min-width: 140px; background: rgba(255,255,255,.06); border: 1px solid var(--ed-line);
  color: #fff; border-radius: 10px; padding: 13px 16px; font: 500 15px var(--ed-sans); }
.ed-search input::placeholder { color: rgba(255,255,255,.6); }
.ed-search select option { color: #111; }
.ed-search input:focus, .ed-search select:focus { outline: none; border-color: var(--ed-gold); background: rgba(255,255,255,.12); }
.ed-search .ed-search-btn { flex: 0 0 auto; background: var(--ed-gold); color: #1a1408; border: 0;
  font: 700 15px var(--ed-sans); border-radius: 10px; padding: 13px 30px; cursor: pointer; transition: .2s; }
.ed-search .ed-search-btn:hover { background: #d8bd86; }
.ed-hero-ctas { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.ed-btn-line { font: 600 14px var(--ed-sans); letter-spacing: .5px; color: #fff; text-decoration: none;
  border: 1px solid rgba(255,255,255,.5); border-radius: 30px; padding: 12px 26px; transition: .2s; }
.ed-btn-line:hover { background: #fff; color: var(--ed-ink); }
.ed-hero-scroll { position: absolute; left: 50%; bottom: 22px; z-index: 3; transform: translateX(-50%);
  color: rgba(255,255,255,.6); font: 600 11px var(--ed-sans); letter-spacing: 3px; text-transform: uppercase; animation: edBob 2.4s ease-in-out infinite; }
@keyframes edBob { 0%,100%{transform:translate(-50%,0)} 50%{transform:translate(-50%,8px)} }

/* ---- Section frame (dark) ------------------------------------------------ */
.ed-dark { background: var(--ed-ink); color: #fff; padding: 96px 0; }
.ed-wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.ed-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 40px; }
.ed-head h2 { font-family: var(--ed-serif); font-weight: 600; font-size: clamp(2rem, 4vw, 3.2rem); margin: 8px 0 0; color: #fff; line-height: 1; }
.ed-head .ed-sub { color: rgba(255,255,255,.6); font: 400 15px/1.6 var(--ed-sans); margin: 8px 0 0; }
.ed-viewall { flex: 0 0 auto; font: 600 13px var(--ed-sans); letter-spacing: 1px; text-transform: uppercase;
  color: var(--ed-gold); text-decoration: none; border-bottom: 1px solid var(--ed-gold); padding-bottom: 3px; transition: .2s; }
.ed-viewall:hover { color: #fff; border-color: #fff; }

/* ---- TOP MODELS gallery (horizontal model book) ------------------------- */
.ed-gallery-wrap { position: relative; }
.ed-gallery { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 0 14px; scrollbar-width: none; }
.ed-gallery::-webkit-scrollbar { display: none; }
.ed-portrait { position: relative; flex: 0 0 clamp(220px, 24vw, 300px); aspect-ratio: 3/4.2;
  border-radius: 6px; overflow: hidden; scroll-snap-align: start; background: var(--ed-ink-2);
  text-decoration: none; display: block; }
.ed-portrait img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.ed-portrait:hover img { transform: scale(1.07); }
.ed-portrait .ed-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #2a2a30, #16161a); color: rgba(255,255,255,.25); font-family: var(--ed-serif); font-size: 3rem; }
.ed-portrait-grad { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(13,13,15,.85) 100%); }
.ed-portrait-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 18px 16px; color: #fff;
  transform: translateY(8px); opacity: .92; transition: .3s; }
.ed-portrait:hover .ed-portrait-meta { transform: translateY(0); opacity: 1; }
.ed-portrait-name { font-family: var(--ed-serif); font-weight: 600; font-size: 1.4rem; line-height: 1; }
.ed-portrait-cat { font: 600 11px var(--ed-sans); letter-spacing: 2px; text-transform: uppercase; color: var(--ed-gold); margin-top: 6px; }
.ed-gnav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1px solid var(--ed-line); color: #fff; cursor: pointer; backdrop-filter: blur(6px); transition: .2s; }
.ed-gnav:hover { background: #fff; color: var(--ed-ink); }
.ed-gnav.prev { left: -10px; } .ed-gnav.next { right: -10px; }

/* ---- CATEGORY tiles (image-backed) -------------------------------------- */
.ed-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ed-cat { position: relative; aspect-ratio: 4/5; border-radius: 6px; overflow: hidden; text-decoration: none;
  display: flex; align-items: flex-end; background: var(--ed-ink-2); }
.ed-cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .68; transition: .6s; }
.ed-cat:hover img { opacity: .85; transform: scale(1.06); }
.ed-cat-fallback { position: absolute; inset: 0; background: linear-gradient(135deg, #232329, #15151a); }
.ed-cat-grad { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(13,13,15,.9)); }
.ed-cat span { position: relative; z-index: 2; padding: 18px; color: #fff; font-family: var(--ed-serif); font-weight: 600; font-size: 1.5rem; line-height: 1; }

/* ---- FEATURED grid + casting cards (reuse template cards, lift on hover) - */
.ed-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ed-grid .ts-talent-card, .ed-grid > * { transition: transform .3s ease, box-shadow .3s ease; }
.ed-grid > *:hover { transform: translateY(-6px); }
.ed-cast-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* On dark sections, reused light cards get a subtle dark treatment wrapper */
.ed-card-dark { background: var(--ed-ink-2); border: 1px solid var(--ed-line); border-radius: 8px; overflow: hidden; }

/* ---- TRUST band ---------------------------------------------------------- */
.ed-trust { background: var(--ed-paper); color: var(--ed-ink); padding: 64px 0; }
.ed-trust .ed-trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.ed-trust h3 { font-family: var(--ed-serif); font-weight: 600; font-size: 1.5rem; margin: 0 0 6px; }
.ed-trust .ed-trust-num { font-family: var(--ed-serif); font-size: 2.4rem; color: var(--ed-gold); line-height: 1; }
.ed-trust p { font: 400 14px/1.6 var(--ed-sans); color: #55555c; margin: 6px 0 0; }

/* ---- CTA finale ---------------------------------------------------------- */
.ed-finale { background: var(--ed-ink); color: #fff; padding: 110px 0; text-align: center; }
.ed-finale h2 { font-family: var(--ed-serif); font-weight: 600; font-size: clamp(2.4rem, 5vw, 4rem); margin: 0 0 14px; }
.ed-finale p { color: rgba(255,255,255,.7); font: 400 17px/1.6 var(--ed-sans); max-width: 48ch; margin: 0 auto 30px; }
.ed-finale .ed-cta-btn { display: inline-block; background: var(--ed-gold); color: #1a1408; font: 700 16px var(--ed-sans);
  letter-spacing: .5px; border-radius: 32px; padding: 16px 40px; text-decoration: none; transition: .2s; }
.ed-finale .ed-cta-btn:hover { background: #fff; }

/* ---- Scroll reveal ------------------------------------------------------- */
.ed-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.ed-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .ed-reveal { opacity: 1; transform: none; transition: none; }
  .ed-hero-bg img { animation: none; transform: none; }
  .ed-hero-scroll { animation: none; }
}

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 991.98px) {
  .ed-cats { grid-template-columns: repeat(2, 1fr); }
  .ed-grid { grid-template-columns: repeat(2, 1fr); }
  .ed-cast-grid { grid-template-columns: repeat(2, 1fr); }
  .ed-trust .ed-trust-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
}
@media (max-width: 575.98px) {
  .ed-hero { min-height: 88vh; }
  .ed-hero-inner { padding: 0 20px 48px; }
  .ed-dark, .ed-finale { padding: 64px 0; }
  .ed-wrap { padding: 0 20px; }
  .ed-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ed-search { padding: 10px; }
  .ed-search .ed-search-btn { width: 100%; }
  .ed-cats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ed-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ed-cast-grid { grid-template-columns: 1fr; }
  .ed-gnav { display: none; }
  .ed-portrait { flex-basis: 64vw; }
}
