/* ============================================================================
   Skillium Studio — parent brand design system
   Premium-editorial: warm ivory on near-black, a bronze accent, Fraunces display
   serif + Inter body, generous whitespace, real motion, tactile grain.
   ========================================================================== */
:root {
  --bg:        #0a0a0b;
  --bg-soft:   #111013;
  --bg-card:   #141316;
  --ink:       #f4f1ea;   /* warm ivory */
  --ink-dim:   #b4afa4;
  --ink-mut:   #837d72;
  --line:      rgba(244, 241, 234, 0.12);
  --line-soft: rgba(244, 241, 234, 0.07);
  --accent:    #d9a441;   /* bronze / amber */
  --accent-hi: #efd9a8;
  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--accent); }
::selection { background: var(--accent); color: #1a1407; }

/* ---- tactile grain overlay -------------------------------------------- */
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 7s steps(6) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -3%); } 60% { transform: translate(-2%, 2%); }
  80% { transform: translate(2%, -1%); }
}

/* ---- scroll progress bar ---------------------------------------------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%; z-index: 60;
  background: linear-gradient(90deg, var(--accent), var(--accent-hi));
}

/* ---- nav -------------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 64px);
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding: 14px clamp(20px, 5vw, 64px);
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--line-soft);
}
.nav__brand {
  display: flex; align-items: center; gap: 11px;
  font-weight: 600; font-size: 16px; letter-spacing: 0.01em;
}
.nav__brand-light { color: var(--ink-mut); font-weight: 400; }
.nav__mark {
  width: 14px; height: 14px; border-radius: 3px;
  background: conic-gradient(from 220deg, var(--accent), var(--accent-hi), var(--accent));
  box-shadow: 0 0 0 1px rgba(217,164,65,0.3), 0 0 22px rgba(217,164,65,0.35);
}
.nav__links { display: flex; gap: 30px; }
.nav__links a {
  color: var(--ink-dim); font-size: 14.5px; font-weight: 500; position: relative; padding: 4px 0;
  transition: color 0.25s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--accent); transition: width 0.3s var(--ease);
}
.nav__links a:hover { color: var(--ink); } .nav__links a:hover::after { width: 100%; }
.nav__cta { font-size: 14px; }

/* ---- buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 100px; font-size: 15px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer; transition: all 0.3s var(--ease); white-space: nowrap;
}
.btn--solid { background: var(--ink); color: #0d0c0a; }
.btn--solid:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 14px 34px -12px rgba(217,164,65,0.5); }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(244,241,234,0.04); transform: translateY(-2px); }

/* ---- hero ------------------------------------------------------------- */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(150px, 22vh, 240px) clamp(20px, 5vw, 64px) 60px;
}
.hero__eyebrow {
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mut); margin-bottom: 30px;
}
.hero__title {
  font-family: "Fraunces", serif; font-weight: 360;
  font-size: clamp(46px, 8.4vw, 122px); line-height: 0.98; letter-spacing: -0.03em;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__lede {
  max-width: 540px; margin: 36px 0 40px; font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-dim); line-height: 1.55;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* kinetic marquee */
.marquee {
  margin-top: clamp(70px, 12vh, 140px); border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft); padding: 22px 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: inline-flex; align-items: center; gap: 26px; white-space: nowrap;
  font-family: "Fraunces", serif; font-size: clamp(26px, 4vw, 52px); font-weight: 340;
  color: var(--ink); will-change: transform; animation: scroll-x 26s linear infinite;
}
.marquee__track .dot { color: var(--accent); }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---- sections --------------------------------------------------------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(90px, 14vh, 170px) clamp(20px, 5vw, 64px); }
.section__head { margin-bottom: 56px; }
.section__index {
  display: inline-block; font-size: 13px; letter-spacing: 0.2em; color: var(--accent);
  margin-bottom: 18px; font-weight: 600;
}
.section__title {
  font-family: "Fraunces", serif; font-weight: 360; letter-spacing: -0.02em;
  font-size: clamp(34px, 5vw, 64px); line-height: 1.02;
}
.section__note { margin-top: 16px; color: var(--ink-mut); max-width: 440px; }

/* ---- product: flagship feature --------------------------------------- */
.product--feature {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 10px; align-items: stretch;
  background: var(--bg-card); border: 1px solid var(--line-soft); border-radius: 22px;
  overflow: hidden; transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.product--feature:hover { border-color: var(--line); transform: translateY(-4px); }
.product__body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; }
.product__tag {
  font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 22px;
}
.product__tag.muted { color: var(--ink-mut); }
.product__name { font-family: "Fraunces", serif; font-weight: 400; font-size: clamp(30px, 4vw, 50px); line-height: 1.02; letter-spacing: -0.02em; }
.product__name.sm { font-size: clamp(22px, 2.4vw, 27px); }
.product__desc { margin-top: 18px; color: var(--ink-dim); max-width: 460px; }
.product__cta {
  margin-top: auto; padding-top: 30px; display: inline-flex; align-items: center; gap: 12px;
  font-weight: 500; color: var(--ink);
}
.product__cta .arrow { transition: transform 0.3s var(--ease); color: var(--accent); font-style: normal; }
.product--feature:hover .product__cta .arrow { transform: translateX(8px); }

.product__art {
  position: relative; background:
    radial-gradient(120% 120% at 80% 10%, rgba(217,164,65,0.16), transparent 55%),
    linear-gradient(160deg, #16151a, #0c0b0e);
  min-height: 280px; display: grid; place-items: center; overflow: hidden;
}
.panelstack { position: relative; width: 180px; height: 200px; }
.panelstack .panel {
  position: absolute; border-radius: 8px; border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(244,241,234,0.06), rgba(244,241,234,0.01));
  backdrop-filter: blur(2px);
}
.panel.p1 { inset: 0 60px 90px 0; transform: rotate(-5deg); animation: float 7s var(--ease) infinite; }
.panel.p2 { inset: 60px 20px 30px 50px; transform: rotate(3deg); background: linear-gradient(135deg, rgba(217,164,65,0.18), rgba(217,164,65,0.02)); animation: float 7s var(--ease) infinite 0.8s; }
.panel.p3 { inset: 120px 70px -10px 30px; transform: rotate(-2deg); animation: float 7s var(--ease) infinite 1.6s; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(var(--r,0)); } 50% { transform: translateY(-12px); } }

/* ---- upcoming products grid ------------------------------------------ */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.product--soon {
  background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: 18px;
  padding: 28px; transition: border-color 0.35s, transform 0.35s var(--ease);
}
.product--soon:hover { border-color: var(--line); transform: translateY(-3px); }
.product--soon .product__desc { font-size: 15px; }

/* ---- studio / manifesto ---------------------------------------------- */
.studio { border-top: 1px solid var(--line-soft); }
.manifesto {
  font-family: "Fraunces", serif; font-weight: 340; font-size: clamp(26px, 3.6vw, 46px);
  line-height: 1.25; letter-spacing: -0.02em; max-width: 920px; margin-bottom: 80px;
}
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.value { border-top: 1px solid var(--line); padding-top: 22px; }
.value__no { font-family: "Fraunces", serif; color: var(--accent); font-size: 22px; }
.value h4 { font-size: 18px; font-weight: 600; margin: 14px 0 8px; }
.value p { color: var(--ink-mut); font-size: 15.5px; }

/* ---- contact ---------------------------------------------------------- */
.contact { text-align: center; border-top: 1px solid var(--line-soft); }
.contact__title {
  font-family: "Fraunces", serif; font-weight: 360; letter-spacing: -0.025em;
  font-size: clamp(40px, 7vw, 96px); line-height: 1.0; margin: 18px 0 36px;
}
.contact__mail {
  display: inline-block; font-size: clamp(18px, 2.4vw, 26px); color: var(--accent);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, letter-spacing 0.3s;
}
.contact__mail:hover { border-color: var(--accent); letter-spacing: 0.02em; }

/* ---- footer ----------------------------------------------------------- */
.footer { max-width: var(--maxw); margin: 0 auto; padding: 50px clamp(20px, 5vw, 64px) 60px; border-top: 1px solid var(--line-soft); }
.footer__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer__brand { font-weight: 600; }
.footer__links { display: flex; gap: 26px; }
.footer__links a { color: var(--ink-mut); font-size: 14px; transition: color 0.25s; }
.footer__links a:hover { color: var(--ink); }
.footer__row--fine { margin-top: 26px; color: var(--ink-mut); font-size: 13px; }

/* ---- reveal-on-scroll ------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---- responsive ------------------------------------------------------- */
@media (max-width: 880px) {
  .nav__links { display: none; }
  .product--feature { grid-template-columns: 1fr; }
  .product__art { min-height: 220px; }
  .product-grid, .values { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Multi-page components (added for the multi-page / SEO restructure)
   ========================================================================== */

/* active nav link */
.nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a[aria-current="page"]::after { width: 100%; }

/* mobile menu */
.nav__toggle { display: none; background: none; border: 1px solid var(--line); color: var(--ink);
  width: 42px; height: 38px; border-radius: 9px; cursor: pointer; font-size: 17px; }
.mobile-menu { position: fixed; inset: 0; z-index: 49; background: rgba(8,8,9,0.97);
  backdrop-filter: blur(10px); display: none; flex-direction: column; align-items: center;
  justify-content: center; gap: 8px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: "Fraunces", serif; font-size: 32px; color: var(--ink-dim); padding: 8px 0; }
.mobile-menu a:hover { color: var(--accent); }

/* page hero (interior pages) */
.page-hero { max-width: var(--maxw); margin: 0 auto; padding: clamp(140px, 20vh, 210px) clamp(20px,5vw,64px) 40px; }
.page-hero__eyebrow { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 22px; }
.page-hero__title { font-family: "Fraunces", serif; font-weight: 350; letter-spacing: -0.03em;
  font-size: clamp(42px, 7vw, 92px); line-height: 0.98; }
.page-hero__lede { max-width: 620px; margin-top: 28px; font-size: clamp(17px,1.9vw,20px); color: var(--ink-dim); }

/* breadcrumb */
.breadcrumb { max-width: var(--maxw); margin: 0 auto; padding: 96px clamp(20px,5vw,64px) 0; font-size: 13px; color: var(--ink-mut); }
.breadcrumb a { color: var(--ink-mut); } .breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { color: var(--ink-dim); }

/* generic prose for content/SEO copy */
.prose { max-width: 720px; }
.prose p { color: var(--ink-dim); margin: 0 0 20px; }
.prose h3 { font-family: "Fraunces", serif; font-weight: 400; font-size: clamp(24px,3vw,34px); margin: 44px 0 14px; letter-spacing: -0.02em; }
.prose ul { color: var(--ink-dim); margin: 0 0 20px; padding-left: 20px; }
.prose li { margin: 8px 0; }

/* feature rows */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.feature { background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: 16px; padding: 28px;
  transition: border-color .35s, transform .35s var(--ease); }
.feature:hover { border-color: var(--line); transform: translateY(-3px); }
.feature__icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(217,164,65,.2), rgba(217,164,65,.04)); color: var(--accent); font-size: 18px; margin-bottom: 16px; }
.feature h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.feature p { color: var(--ink-mut); font-size: 15px; }

/* numbered steps */
.steps { counter-reset: s; display: grid; gap: 2px; max-width: 820px; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.step::before { counter-increment: s; content: "0" counter(s); font-family: "Fraunces", serif; color: var(--accent); font-size: 24px; }
.step h3 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.step p { color: var(--ink-mut); }

/* pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.price { background: var(--bg-card); border: 1px solid var(--line-soft); border-radius: 18px; padding: 30px; display: flex; flex-direction: column; }
.price--featured { border-color: rgba(217,164,65,.4); box-shadow: 0 24px 60px -30px rgba(217,164,65,.4); }
.price__name { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mut); }
.price__amt { font-family: "Fraunces", serif; font-size: 44px; margin: 14px 0 2px; }
.price__amt small { font-size: 15px; color: var(--ink-mut); font-family: "Inter"; }
.price__list { list-style: none; margin: 20px 0 24px; display: grid; gap: 10px; }
.price__list li { color: var(--ink-dim); font-size: 15px; padding-left: 22px; position: relative; }
.price__list li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }
.price .btn { margin-top: auto; justify-content: center; }

/* FAQ accordion */
.faq { max-width: 820px; }
.faq__item { border-top: 1px solid var(--line); }
.faq__q { width: 100%; text-align: left; background: none; border: none; color: var(--ink); cursor: pointer;
  font: inherit; font-size: 18px; font-weight: 500; padding: 24px 0; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq__q span { color: var(--accent); transition: transform .3s var(--ease); flex: none; }
.faq__item.open .faq__q span { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq__a p { color: var(--ink-mut); padding-bottom: 24px; max-width: 680px; }

/* CTA band */
.cta-band { max-width: var(--maxw); margin: 0 auto clamp(40px,10vh,90px); padding: clamp(48px,7vw,80px) clamp(20px,5vw,64px);
  background: radial-gradient(120% 140% at 80% 0%, rgba(217,164,65,.14), transparent 60%), var(--bg-card);
  border: 1px solid var(--line-soft); border-radius: 24px; text-align: center; }
.cta-band h2 { font-family: "Fraunces", serif; font-weight: 360; font-size: clamp(30px,5vw,58px); letter-spacing: -.02em; line-height: 1.02; }
.cta-band p { color: var(--ink-dim); margin: 18px auto 30px; max-width: 520px; }

/* products listing */
.products-list { display: grid; gap: 12px; }
.plist-item { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  padding: 30px clamp(20px,3vw,40px); background: var(--bg-soft); border: 1px solid var(--line-soft);
  border-radius: 18px; transition: border-color .35s, transform .35s var(--ease); }
.plist-item:hover { border-color: var(--line); transform: translateY(-3px); }
.plist-item__no { font-family: "Fraunces", serif; color: var(--accent); font-size: 22px; }
.plist-item h3 { font-family: "Fraunces", serif; font-weight: 400; font-size: clamp(24px,3vw,34px); letter-spacing: -.02em; }
.plist-item p { color: var(--ink-mut); margin-top: 6px; font-size: 15.5px; max-width: 560px; }
.plist-item__cta { color: var(--accent); white-space: nowrap; }

@media (max-width: 880px) {
  .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .features, .pricing { grid-template-columns: 1fr; }
  .plist-item { grid-template-columns: 1fr; gap: 10px; }
  .step { grid-template-columns: 40px 1fr; gap: 14px; }
}
