/* ═══════════════════════════════════════════════════════════════
   TUTORIALS — PAGE LAYER (v2)
   Sits on top of core-v2.css. Editorial reading path, not a
   scroll-jacked slideshow — the user always keeps control of
   scroll. No new colors — tokens only.
   ═══════════════════════════════════════════════════════════════ */

/* ─── READING PROGRESS RAIL ─── */
#tutProgress{position:fixed;top:0;left:0;height:2px;width:0%;background:var(--accent-gradient);z-index:1001;transition:width .1s linear}

/* ─── HERO — side-by-side: copy ≈ one-third, image ≈ two-thirds ───
   Client req (reverting the earlier full-bleed-background attempt):
   the cover image was cropping/distorting its illustration content.
   Source image (2752x1536) has its meaningful artwork concentrated
   toward the left/right edges with an empty band through the middle,
   so it is placed in its own column with object-fit:contain (never
   cropped/stretched) instead of as a cover-cropped background. Text
   and image sit in a real two-column grid so they can never overlap,
   collapsing to a single stacked column on mobile. */
.tut-hero{
  position:relative;overflow:hidden;
  padding:calc(var(--nav-h) + var(--sp-6)) 0 var(--sp-6);
}
.tut-hero-bg{
  background:
    radial-gradient(ellipse at 35% 45%, rgba(18,107,120,0.14) 0%, transparent 55%),
    linear-gradient(to right, rgba(0,0,0,0.26) 0%, rgba(0,0,0,0.10) 55%, rgba(0,0,0,0.05) 100%),
    url('../IMAGES/Tutorials/00%20%E2%80%94%20Intro.png?v=6') center/cover no-repeat;
  filter:contrast(1.06) brightness(1.04);
}
.tut-hero-inner{
  display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
  text-align:left;max-width:var(--container);margin:0;padding-left:clamp(20px,5vw,48px);padding-right:clamp(20px,5vw,48px);
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;
}
.tut-hero-copy{
  display:flex;flex-direction:column;justify-content:center;
  text-align:left;max-width:36%;margin:0 0 0 8%;overflow:visible;
}
.tut-hero-copy .gv-h1{margin-top:16px;overflow:visible;color:#fff;-webkit-font-smoothing:antialiased}
.tut-hero-headline{
  display:flex;flex-direction:column;align-items:flex-start;gap:6px;
}
.tut-hero-word{
  display:block;white-space:nowrap;line-height:1.1;
  font-size:clamp(2.4rem,5vw,4.2rem);
  font-weight:800;letter-spacing:-.015em;
  text-shadow:0 1px 2px rgba(0,0,0,0.2);
  -webkit-font-smoothing:antialiased;
}
.tut-hero-copy .gv-lead{margin-top:40px;color:rgba(255,255,255,0.92);margin-left:0;margin-right:0;max-width:48ch;line-height:1.75;-webkit-font-smoothing:antialiased;text-align:left}
.tut-hero-meta{
  display:flex;flex-wrap:wrap;justify-content:flex-start;gap:6px 22px;margin-top:30px;
  font-family:'JetBrains Mono',monospace;font-size:11px;letter-spacing:.5px;color:rgba(255,255,255,0.82);
}
.tut-hero-meta span{display:inline-flex;align-items:center;gap:8px}
.tut-hero-meta span::before{content:'';width:5px;height:5px;border-radius:50%;background:var(--accent-bright)}
.tut-hero-actions{display:flex;justify-content:center;margin-top:34px}
@media(max-width:900px){
  .tut-hero{padding:calc(var(--nav-h) + var(--sp-5)) 0 var(--sp-5)}
  .tut-hero-copy{max-width:80%;margin:0 0 0 10%}
  .tut-hero-word{font-size:clamp(1.8rem,7vw,2.8rem)}
}
@media(max-width:480px){
  .tut-hero{padding:calc(var(--nav-h) + var(--sp-4)) 0 var(--sp-4)}
  .tut-hero-copy{padding:0 6px;max-width:92%;margin:0 0 0 4%}
  .tut-hero-word{font-size:clamp(1.6rem,8vw,2.2rem)}
}

/* ─── PATH INTRO ─── */
.tut-path-intro{max-width:640px;margin:0 auto;text-align:center}

/* ─── PATH LIST ─── */
.tut-path-list{display:flex;flex-direction:column;gap:var(--sp-6);margin-top:var(--sp-6)}
.tut-module{display:grid;grid-template-columns:1fr 1fr;gap:var(--sp-5);align-items:center}
.tut-module.rev .tut-module-media{order:2}
.tut-module.rev .tut-module-copy{order:1}
.tut-module-media{position:relative;border-radius:var(--r-lg);overflow:hidden;border:1px solid var(--hair);aspect-ratio:16/9}
.tut-module-media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .8s var(--ease);filter:contrast(1.04) brightness(1.03)}
.tut-module:hover .tut-module-media img{transform:scale(1.04)}
.tut-module-num{
  position:absolute;top:16px;left:16px;
  font-family:'Sora',sans-serif;font-weight:700;font-size:13px;letter-spacing:.5px;
  color:var(--paper);background:rgba(14,14,13,0.55);backdrop-filter:blur(6px);
  padding:6px 13px;border-radius:999px;
}
.tut-module-copy h3{margin-top:12px}
.tut-module-copy .gv-body{margin-top:14px}
.tut-module-tagline{
  font-family:'Sora',sans-serif;font-style:italic;font-weight:500;font-size:14px;
  color:var(--accent);margin-top:16px;
}
@media(max-width:900px){
  .tut-module,.tut-module.rev{grid-template-columns:1fr}
  .tut-module.rev .tut-module-media,.tut-module.rev .tut-module-copy{order:initial}
}

/* ─── DETAILS / GO DEEPER (native disclosure, no JS needed) ─── */
.tut-detail{margin-top:18px;border-top:1px solid var(--hair);padding-top:14px}
.tut-detail summary{
  display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;
  list-style:none;font-family:'Inter',sans-serif;font-weight:600;font-size:12px;
  letter-spacing:.8px;text-transform:uppercase;color:var(--ink);user-select:none;
}
.tut-detail summary::-webkit-details-marker{display:none}
.tut-detail summary .tut-chevron{
  width:22px;height:22px;border-radius:50%;border:1px solid var(--hair-strong);
  display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:transform .35s var(--ease),border-color .3s var(--ease);
}
.tut-detail summary .tut-chevron svg{width:11px;height:11px}
.tut-detail[open] summary .tut-chevron{transform:rotate(45deg);border-color:var(--accent);color:var(--accent)}
/* Content per module grew substantially (explanation + examples + tips +
   production notes + a real workflow) — the outer module card must stay
   the same footprint, so the expanded detail scrolls internally instead
   of pushing the page layout taller. */
.tut-detail-body{
  padding-top:12px;margin-top:4px;max-height:280px;overflow-y:auto;
  padding-right:14px;scrollbar-width:thin;scrollbar-color:var(--hair-strong) transparent;
}
.tut-detail-body::-webkit-scrollbar{width:6px}
.tut-detail-body::-webkit-scrollbar-track{background:transparent}
.tut-detail-body::-webkit-scrollbar-thumb{background:var(--hair-strong);border-radius:999px}
.tut-detail-body p{font-size:14px;color:var(--ink-dim);line-height:1.75;max-width:60ch}
.tut-detail-body p + p{margin-top:10px}
.tut-detail-sub{
  font-family:'Inter',sans-serif;font-weight:600;font-size:11px;letter-spacing:.8px;
  text-transform:uppercase;color:var(--ink);margin-top:16px !important;margin-bottom:2px;
}
.tut-detail-body ul{margin-top:8px;display:flex;flex-direction:column;gap:8px;max-width:60ch}
.tut-detail-body li{
  font-size:14px;color:var(--ink-dim);line-height:1.65;padding-left:16px;position:relative;
}
.tut-detail-body li::before{
  content:'';position:absolute;left:0;top:9px;width:5px;height:5px;border-radius:50%;background:var(--accent);
}
.tut-detail-body li strong{color:var(--ink);font-weight:600}
.tut-detail-body li em{color:var(--ink);font-style:italic}

/* ─── FUTURE / TRANSITION STATEMENT ─── */
.tut-future{position:relative;overflow:hidden}
.tut-future-bg{position:absolute;inset:0;z-index:0}
.tut-future-bg img{width:100%;height:100%;object-fit:cover;display:block;filter:grayscale(1) contrast(1.1) brightness(.55)}
.tut-future-bg::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(10,10,10,0.65) 0%,rgba(10,10,10,0.88) 100%)}
.tut-future .gv-container{position:relative;z-index:1;text-align:center;max-width:760px}
.tut-future .gv-h2{margin-top:16px}
.tut-future .gv-lead{margin:20px auto 0;color:var(--on-ink-dim)}
.tut-future-tagline{font-family:'Sora',sans-serif;font-style:italic;font-size:15px;color:var(--accent-bright);margin-top:22px}

/* ─── CTA ─── */
.tut-cta-grid{display:grid;grid-template-columns:1fr .85fr;gap:var(--sp-5);align-items:center}
.tut-cta-copy .gv-h2{margin-top:14px}
.tut-cta-copy .gv-body{margin-top:16px}
.tut-cta-btns{display:flex;gap:14px;flex-wrap:wrap;margin-top:30px}
.tut-cta-contacts{display:flex;gap:22px;flex-wrap:wrap;margin-top:26px}
.tut-cta-contact{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--ink-dim);transition:color .3s}
.tut-cta-contact:hover{color:var(--accent)}
.tut-cta-contact svg{width:16px;height:16px}
.tut-cta-quote{font-family:'Sora',sans-serif;font-style:italic;font-size:14px;color:var(--ink-muted);margin-top:26px;max-width:44ch}

/* ─── CTA BRAND PANEL — logo mark + wordmark, centered ───
   Dark treatment on purpose: it echoes the hero's dark showcase card
   further up this same page, so the white mark + soft glow reads as
   an intentional bookend rather than a new visual language. */
.tut-cta-media{
  border-radius:var(--r-lg);border:1px solid var(--hair);aspect-ratio:16/9;
  background:linear-gradient(160deg,var(--brand-teal-light) 0%,var(--brand-teal) 60%,var(--brand-teal-dark) 100%);
  box-shadow:0 30px 70px -40px rgba(14,14,13,0.32);
  display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;
}
.tut-cta-media::before{
  content:'';position:absolute;inset:0;
  background:radial-gradient(60% 60% at 50% 42%,rgba(250,249,246,0.06) 0%,transparent 70%);
  pointer-events:none;
}
.tut-cta-brand{display:flex;flex-direction:column;align-items:center;gap:18px;position:relative;z-index:1}
.tut-cta-brand-glow{
  position:absolute;top:50%;left:50%;width:220px;height:220px;
  transform:translate(-50%,-50%);
  background:radial-gradient(circle,rgba(250,249,246,0.22) 0%,rgba(250,249,246,0.08) 45%,transparent 72%);
  filter:blur(6px);pointer-events:none;z-index:0;
}
.tut-cta-brand-mark{
  height:64px;width:auto;object-fit:contain;
  filter:drop-shadow(0 0 22px rgba(250,249,246,0.35)) drop-shadow(0 10px 24px rgba(0,0,0,0.4));
  transition:transform .5s var(--ease);position:relative;z-index:1;
}
.tut-cta-media:hover .tut-cta-brand-mark{transform:translateY(-3px) scale(1.03)}
.tut-cta-brand-word{
  font-family:'Sora',sans-serif;font-weight:600;font-size:19px;letter-spacing:.4px;
  color:var(--on-ink);position:relative;z-index:1;
}
@media(max-width:900px){.tut-cta-grid{grid-template-columns:1fr}.tut-cta-media{order:-1;aspect-ratio:5/4}}
@media(max-width:480px){.tut-cta-brand-mark{height:52px}.tut-cta-brand-word{font-size:16px}}

@media(max-width:576px){
  .tut-path-list{gap:var(--sp-5)}
}

/* ─── HERO ANIMATION ─── */
.tut-hero .gv-h1{opacity:0;transform:translateY(30px);animation:tutHeroIn 1s var(--ease) 0.3s forwards}
@keyframes tutHeroIn{to{opacity:1;transform:translateY(0)}}
.tut-hero .gv-lead{opacity:0;transform:translateY(20px);animation:tutHeroLeadIn 0.8s var(--ease) 0.6s forwards}
@keyframes tutHeroLeadIn{to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){
  .tut-hero .gv-h1,.tut-hero .gv-lead{animation:none;opacity:1;transform:none}
}
