/* =================================================================
   SKILLERY — "skills that matter"
   Design language: Quiet Luxury / Editorial
   Graphite + Pearl + Platinum accent · Fraunces (display) + Poppins (body)
   ================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Graphite dark palette (neutral, faintly cool) */
  --ink:        #0E0F11;   /* rich near-black */
  --ink-2:      #15171A;   /* raised surface */
  --ink-3:      #1C1E22;   /* card on dark */
  --espresso:   #25282D;   /* deep graphite */

  /* Light / pearl paper */
  --ivory:      #F2F1ED;   /* pearl paper */
  --ivory-2:    #E8E6E0;
  --bone:       #D8D6CE;

  /* Platinum / silver metallic accent */
  --gold:       #C0BCB3;   /* bright platinum (legacy var name) */
  --gold-soft:  #E4E0D8;   /* metal highlight */
  --gold-deep:  #797670;   /* metal shadow / accent on light */
  --gold-line:  rgba(192,188,179,.30);

  /* Neutrals from brand logo gray */
  --stone:      #8C887F;
  --taupe:      #9C988F;

  /* Text */
  --tx-dark:    #EAE8E2;   /* on ink */
  --tx-dark-mut:#97948D;
  --tx-light:   #1A1B1E;   /* on pearl */
  --tx-light-mut:#66635E;

  /* Hairlines */
  --line-dark:  rgba(234,232,226,.12);
  --line-light: rgba(26,27,30,.14);

  /* Type */
  --display: "Fraunces", Georgia, serif;
  --body:    "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  /* Layout */
  --pad: clamp(1.25rem, 5vw, 6rem);
  --maxw: 1320px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--body);
  background: var(--ink);
  color: var(--tx-dark);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 300;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }

/* Premium black & white treatment for all photography.
   Logos and brand marks are excluded so the platinum/pearl identity stays intact. */
img, video { filter: grayscale(1) contrast(1.05); }
.nav-logo img, .footer-brand img { filter: none; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--gold); color: var(--ink); }

/* Grain overlay */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9000;
  opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Typography ---------- */
.display, h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.04; letter-spacing: -.015em; font-optical-sizing: auto; }
h1 { font-size: clamp(2.7rem, 6.2vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.9rem); }
em, .italic { font-style: italic; }
.serif { font-family: var(--display); }

.kicker {
  font-family: var(--body);
  font-size: .72rem; font-weight: 500;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold);
  display: inline-flex; align-items: center;
}

.lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.65; color: var(--tx-dark); font-weight: 300; }
.muted { color: var(--tx-dark-mut); }
.gold { color: var(--gold); }

/* brushed-platinum gradient text */
.gilt {
  background: linear-gradient(100deg, var(--gold-soft) 0%, var(--gold) 40%, #9E9A91 70%, var(--gold-soft) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.section-light .gilt {
  background: linear-gradient(100deg, var(--gold-deep) 0%, #6A675F 55%, var(--gold-deep) 100%);
  -webkit-background-clip: text; background-clip: text;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
section { position: relative; padding-block: clamp(5rem, 11vw, 10rem); }
.section-light { background: var(--ivory); color: var(--tx-light); }
.section-light .muted { color: var(--tx-light-mut); }
.section-light .lead { color: var(--tx-light); }
.section-light .kicker { color: var(--gold-deep); }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.75rem); }
.divider { height: 1px; background: var(--line-dark); border: 0; }
.section-light .divider { background: var(--line-light); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--gold); --fg: var(--ink);
  display: inline-flex; align-items: center; gap: .7rem;
  padding: 1.05rem 2rem; border-radius: 100px;
  font-size: .82rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  background: linear-gradient(176deg, var(--gold-soft) 0%, var(--gold) 52%, #ABA79E 100%);
  color: var(--fg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -1px 0 rgba(0,0,0,.08);
  position: relative; overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), color .4s;
  will-change: transform;
}
.btn span { position: relative; z-index: 1; transition: color .4s; }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--ink); transform: translateY(101%);
  transition: transform .55s var(--ease-out);
}
.btn:hover { box-shadow: 0 20px 50px -18px rgba(168,163,154,.6); transform: translateY(-2px); }
.btn:hover::after { transform: translateY(0); }
.btn:hover span { color: var(--gold); }
.btn .arrow { transition: transform .45s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-ghost {
  --fg: var(--tx-dark);
  background: transparent; color: var(--fg);
  border: 1px solid var(--gold-line);
}
.btn-ghost::after { background: var(--gold); }
.btn-ghost:hover span { color: var(--ink); }
.btn-ghost:hover { box-shadow: none; }
.section-light .btn-ghost { color: var(--tx-light); border-color: rgba(26,27,30,.2); }

/* text link with underline sweep */
.link-u { position: relative; display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); padding-bottom: 2px; }
.link-u::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.link-u:hover::after { transform: scaleX(1); transform-origin: left; }
.link-u .arrow { transition: transform .4s var(--ease-out); }
.link-u:hover .arrow { transform: translateX(4px); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem var(--pad);
  transition: background .5s var(--ease), padding .5s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(14,15,17,.82);
  backdrop-filter: blur(18px) saturate(1.2);
  padding-block: 1rem;
  border-bottom: 1px solid var(--line-dark);
}
.nav-logo img { height: 38px; width: auto; transition: opacity .3s; }
.nav.scrolled .nav-logo img { height: 34px; }
.nav-links { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 2.75rem); }
.nav-links a:not(.btn) {
  font-size: .8rem; font-weight: 400; letter-spacing: .08em; text-transform: uppercase;
  color: var(--tx-dark); position: relative; padding: .3rem 0; opacity: .85;
  transition: opacity .3s;
}
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out); }
.nav-links a:not(.btn):hover { opacity: 1; }
.nav-links a:not(.btn):hover::after, .nav-links a:not(.btn).active::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { padding: .8rem 1.5rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 30px; z-index: 1100; }
.nav-toggle span { height: 1.5px; width: 100%; background: var(--tx-dark); transition: transform .4s var(--ease), opacity .3s; }

/* Mobile menu */
.nav-mobile {
  position: fixed; inset: 0; z-index: 1050;
  background: var(--ink); display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start; gap: 1.2rem;
  padding: var(--pad);
  clip-path: circle(0% at calc(100% - 3rem) 3rem);
  transition: clip-path .7s var(--ease-out);
  pointer-events: none;
}
.nav-mobile.open { clip-path: circle(150% at calc(100% - 3rem) 3rem); pointer-events: auto; }
.nav-mobile a { font-family: var(--display); font-size: clamp(2rem,9vw,3rem); color: var(--tx-dark); }
.nav-mobile a .num { font-family: var(--body); font-size: .8rem; color: var(--gold); margin-right: 1rem; letter-spacing: .2em; }

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

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: flex-end; position: relative; overflow: hidden; padding-top: clamp(6.5rem, 13vh, 9rem); padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: heroZoom 14s var(--ease-out) forwards; filter: grayscale(1) contrast(1.05); }
.hero-bg .hero-video { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; filter: grayscale(1) contrast(1.05); }
.hero-bg .hero-fallback { display: none; animation: none; transform: none; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(14,15,17,.96) 2%, rgba(14,15,17,.5) 38%, rgba(14,15,17,.35) 70%, rgba(14,15,17,.66) 100%),
    linear-gradient(105deg, rgba(14,15,17,.7), transparent 55%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.6rem); max-width: 18ch; }
.hero .lead { max-width: 46ch; margin-top: 1.3rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: clamp(1.75rem,4vw,4rem); margin-top: clamp(1.75rem,4vh,3rem); padding-top: 1.4rem; border-top: 1px solid var(--line-dark); }
.hero-meta .stat .n { font-family: var(--display); font-size: clamp(2rem,3vw,2.8rem); line-height: 1; color: var(--gold-soft); }
.hero-meta .stat .l { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--tx-dark-mut); margin-top: .55rem; }

/* Shorter laptop screens — compress the hero so nothing collides with the nav or clips */
@media (max-height: 820px) {
  .hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.7rem); }
  .hero .lead { margin-top: 1rem; }
  .hero-cta { margin-top: 1.3rem; }
  .hero-meta { margin-top: 1.3rem; padding-top: 1.1rem; gap: clamp(1.5rem,3.5vw,3rem); }
  .hero-meta .stat .n { font-size: clamp(1.8rem,2.6vw,2.4rem); }
}

/* Phones — stack stats 2×2 and ease the heading down */
@media (max-width: 600px) {
  .hero { padding-top: 6rem; }
  .hero h1 { font-size: clamp(2.1rem, 8.4vw, 3rem); max-width: 100%; }
  .hero .lead { font-size: 1rem; margin-top: 1rem; }
  .hero-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1.5rem; }
  /* Instructor stands on the right of the frame — keep them visible when the
     portrait viewport crops the sides. */
  .hero-bg .hero-video,
  .hero-bg img,
  .hero-bg .hero-fallback { object-position: 80% center; }
}

.scroll-cue { position: absolute; bottom: 2rem; right: var(--pad); z-index: 2; display: flex; align-items: center; gap: .8rem; font-size: .68rem; letter-spacing: .25em; text-transform: uppercase; color: var(--tx-dark-mut); writing-mode: vertical-rl; }
.scroll-cue .bar { width: 1px; height: 50px; background: var(--gold-line); position: relative; overflow: hidden; }
.scroll-cue .bar::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 40%; background: var(--gold); animation: scrollBar 2.2s var(--ease) infinite; }
@keyframes scrollBar { 0%{transform:translateY(-100%)} 100%{transform:translateY(250%)} }
@media (max-width: 600px){ .scroll-cue { display: none; } }

/* ---------- Marquee (trusted by) ---------- */
.marquee { padding-block: clamp(2.5rem,5vw,3.5rem); border-block: 1px solid var(--line-dark); overflow: hidden; background: var(--ink-2); }
.marquee-label { text-align: center; font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; color: var(--tx-dark-mut); margin-bottom: 2rem; }
.marquee-track { display: flex; gap: clamp(3rem,6vw,6rem); width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--display); font-size: clamp(1.4rem,3vw,2.2rem); color: var(--tx-dark-mut); white-space: nowrap; transition: color .4s; letter-spacing: .02em; }
.marquee-track span:hover { color: var(--gold-soft); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
/* Image reveal: opacity + subtle photographic scale.
   NOTE: must NOT use a geometry-collapsing clip-path here — Chrome factors an
   element's own clip into IntersectionObserver ratios, which deadlocks the
   reveal (clipped → ratio 0 → threshold never met → stays clipped forever). */
.reveal-img { opacity: 0; transform: scale(1.06); transform-origin: center; transition: opacity 1s var(--ease-out), transform 1.4s var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal-img.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-img { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .hero-bg img { animation: none; transform: none; }
  .hero-bg .hero-video { display: none; }
  .hero-bg .hero-fallback { display: block; }
}

/* line reveal for headings (mask) */
.line-mask { display: block; overflow: hidden; }
.line-mask > span { display: block; transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: var(--d,0ms); }
.in .line-mask > span, .line-mask.in > span { transform: none; }

/* ---------- Section heading block ---------- */
.sec-head { max-width: 760px; }
.sec-head h2 { margin-top: 1.4rem; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .kicker { justify-content: center; }
.sec-head .lead { margin-top: 1.5rem; }
.sec-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }

/* ---------- Cards / shared ---------- */
.idx { font-family: var(--display); font-size: .95rem; color: var(--gold); letter-spacing: .05em; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); padding-top: clamp(4rem,8vw,7rem); border-top: 1px solid var(--line-dark); position: relative; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; padding-bottom: 4rem; }
.footer-brand img { height: 48px; margin-bottom: 1.5rem; }
.footer-brand p { color: var(--tx-dark-mut); max-width: 34ch; font-size: .95rem; }
.footer-col h4 { font-family: var(--body); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.5rem; font-weight: 500; }
.footer-col a { display: block; color: var(--tx-dark-mut); padding: .42rem 0; font-size: .95rem; transition: color .3s, transform .3s; }
.footer-col a:hover { color: var(--tx-dark); transform: translateX(4px); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-block: 2rem; border-top: 1px solid var(--line-dark); font-size: .8rem; color: var(--tx-dark-mut); letter-spacing: .03em; }
.footer-cta { font-family: var(--display); font-size: clamp(2.4rem,7vw,5.5rem); line-height: 1; padding-bottom: 3rem; display: block; }
.footer-cta a { color: var(--tx-dark); transition: color .4s; }
.footer-cta a:hover { color: var(--gold); }
@media (max-width: 820px){ .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px){ .footer-top { grid-template-columns: 1fr; } }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.eyebrow-num { font-family: var(--display); font-size: clamp(3rem,8vw,7rem); color: var(--gold-line); line-height: .8; }
.tag { display: inline-block; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold-line); border-radius: 100px; padding: .4rem .9rem; }
/* on pearl sections the light platinum tag is invisible — darken text + border */
.section-light .tag { color: var(--gold-deep); border-color: rgba(121,118,112,.45); }
.noscroll { overflow: hidden; }
