/* ============================================================
   Studio2Solutions dark cinematic research theme
   Palette: deep charcoal/ink base, warm gold + clay accent
   nodding to Filipino textile/heritage warmth against film-dark
   ============================================================ */

:root {
  --bg:        #0b0c10;
  --bg-2:      #111319;
  --bg-3:      #15181f;
  --ink:       #f4f1ea;
  --muted:     #a7a29a;
  --muted-2:   #7c776f;
  --gold:      #d9a441;
  --gold-soft: #e7c37a;
  --clay:      #c76b4a;
  --line:      rgba(244, 241, 234, 0.09);
  --line-2:    rgba(244, 241, 234, 0.16);

  --maxw: 1120px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--gold); color: #1a1a1a; padding: .6rem 1rem; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; }

h1 { font-size: clamp(2.4rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; }

.grad {
  background: linear-gradient(100deg, var(--gold-soft), var(--gold) 45%, var(--clay));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.eyebrow, .section-eyebrow {
  font-family: var(--sans); font-size: .78rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold);
}
.section-eyebrow { display: inline-block; margin-bottom: .9rem; }

.lede, .section-lede {
  color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 62ch; line-height: 1.7;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 12, 16, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--serif); font-weight: 600; font-size: 1.25rem; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: conic-gradient(from 140deg, var(--gold), var(--clay), var(--gold-soft), var(--gold));
  box-shadow: 0 0 18px rgba(217, 164, 65, 0.35);
}
.brand-accent { color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a { font-size: .93rem; color: var(--muted); transition: color .2s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  color: var(--ink) !important; border: 1px solid var(--line-2);
  padding: .5rem 1rem; border-radius: 999px; transition: all .25s var(--ease);
}
.nav-cta:hover { border-color: var(--gold); color: var(--gold) !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(4rem, 12vh, 9rem) 0 clamp(3.5rem, 9vh, 6rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 500px at 78% -8%, rgba(199, 107, 74, 0.20), transparent 60%),
    radial-gradient(760px 460px at 12% 0%, rgba(217, 164, 65, 0.16), transparent 62%);
}
.hero-grain {
  position: absolute; inset: 0; z-index: 0; opacity: .5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.hero-inner { position: relative; z-index: 1; }
.hero h1 { margin: 1.1rem 0 1.4rem; max-width: 16ch; }
.hero .lede { margin-bottom: 2.2rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 3.2rem; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  border-top: 1px solid var(--line); padding-top: 1.75rem; max-width: 760px;
}
.hero-stats strong { font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--gold-soft); display: block; }
.hero-stats span { font-size: .88rem; color: var(--muted); line-height: 1.4; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .95rem; font-weight: 500; padding: .85rem 1.6rem; border-radius: 999px;
  transition: transform .2s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn-primary { background: linear-gradient(100deg, var(--gold), var(--clay)); color: #1a1108; font-weight: 600; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(217, 164, 65, 0.5); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.inline-link { color: var(--gold-soft); border-bottom: 1px solid rgba(217,164,65,.4); transition: color .2s var(--ease), border-color .2s var(--ease); }
.inline-link:hover { color: var(--gold); border-color: var(--gold); }

.placeholder-tag {
  font-size: .62rem; letter-spacing: .05em; text-transform: uppercase;
  background: rgba(255,255,255,.12); color: var(--ink); padding: .1rem .4rem; border-radius: 4px; font-weight: 500;
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 9vh, 6.5rem) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section > .wrap > h2 { max-width: 20ch; }
.section-lede { margin-top: 1rem; }
.section-lede.lineage { margin-top: 1.1rem; padding-left: 1.1rem; border-left: 2px solid var(--line-2); font-size: 1rem; }

/* ---------- Approach cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.8rem; }
.card {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.8rem 1.6rem; position: relative; transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.card-num { font-family: var(--serif); font-size: 1rem; color: var(--gold); opacity: .8; }
.card h3 { margin: .7rem 0 .6rem; }
.card p { color: var(--muted); font-size: .96rem; }

/* ---------- Collaboration journey ---------- */
.journey {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: .75rem; align-items: center; margin-top: 3rem;
}
.journey-step { text-align: center; display: grid; justify-items: center; gap: .42rem; }
.journey-icon {
  display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%;
  color: var(--gold-soft); border: 1px solid var(--gold); font-family: var(--serif); font-size: .92rem;
}
.journey-step strong { font-family: var(--serif); font-size: 1.15rem; }
.journey-step small { color: var(--muted); font-size: .78rem; }
.journey-arrow { color: var(--gold); font-size: 1.5rem; }
.visual-caption { margin-top: 1.25rem; color: var(--muted-2); font-size: .84rem; text-align: center; }

/* ---------- Work grid ---------- */
.work-grid, .possibility-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2.5rem; margin-top: 2.8rem; }
.possibility-grid { grid-template-columns: repeat(5, 1fr); gap: .85rem; }
.work-item { border-top: 1px solid var(--line-2); padding-top: 1.2rem; }
.possibility-grid .work-item { border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem 1rem; min-height: 186px; }
.work-item h3 { color: var(--ink); margin-bottom: .5rem; }
.work-item p { color: var(--muted); font-size: .96rem; }
.possibility-icon { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-bottom: 1.2rem; color: var(--gold-soft); }
.possibility-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: 320px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.founder-media { position: relative; }
.founder-photo {
  aspect-ratio: 4 / 5; border-radius: 18px; display: grid; place-items: center;
  background:
    radial-gradient(120% 120% at 30% 10%, rgba(217,164,65,.35), transparent 55%),
    linear-gradient(160deg, #1c1e26, #0e1014);
  border: 1px solid var(--line-2); overflow: hidden;
}
.founder-initials { font-family: var(--serif); font-size: 5rem; font-weight: 600; color: var(--gold-soft); opacity: .9; }
.founder-badge {
  position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%);
  white-space: nowrap; background: var(--bg-3); border: 1px solid var(--line-2);
  padding: .5rem 1rem; border-radius: 999px; font-size: .8rem; color: var(--muted);
}
.founder-text p { color: var(--muted); margin-bottom: 1rem; max-width: 60ch; }
.founder-text blockquote {
  margin-top: 1.6rem; padding-left: 1.3rem; border-left: 3px solid var(--gold);
  font-family: var(--serif); font-size: 1.2rem; font-style: italic; color: var(--ink); line-height: 1.5;
}

/* ---------- Context ---------- */
.context-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 2.6rem 0 2rem; }
.context-stat { background: var(--bg-3); border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; }
.context-stat strong { font-family: var(--serif); font-size: 1.35rem; color: var(--gold-soft); display: block; margin-bottom: .5rem; }
.context-stat p { color: var(--muted); font-size: .92rem; }
.context-note { color: var(--muted); max-width: 66ch; font-size: 1.02rem; }
.compact-grid { margin-top: 2rem; }
.matters-map {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem;
  margin-top: 2.8rem; padding: 4.75rem 1rem 1.5rem; border-block: 1px solid var(--line);
}
.matters-map > span { border: 1px solid var(--line-2); border-radius: 999px; padding: .45rem .7rem; color: var(--muted); font-size: .82rem; text-align: center; }
.matters-centre {
  position: absolute; top: .8rem; left: 50%; transform: translateX(-50%); text-align: center;
  font-family: var(--serif); line-height: 1.1; color: var(--gold-soft); font-size: 1.12rem;
}

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact h2 { max-width: 22ch; }
.contact .section-lede { margin-inline: auto; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin: 2rem 0 1rem; }
.contact-fineprint { color: var(--muted-2); font-size: .85rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0; background: var(--bg-2); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: end; }
.footer-brand .brand-name { font-family: var(--serif); font-size: 1.2rem; }
.footer-brand p { color: var(--muted); font-size: .9rem; margin-top: .4rem; max-width: 40ch; }
.footer-meta p { color: var(--muted-2); font-size: .82rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: flex-start;
    gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 1rem var(--pad); transform: translateY(-120%); transition: transform .35s var(--ease); z-index: 40;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav-cta { border: 0; padding: .85rem 0; }
  .nav-toggle { display: flex; }

  .cards, .work-grid, .possibility-grid, .context-grid { grid-template-columns: 1fr; }
  .journey { grid-template-columns: 1fr; max-width: 280px; margin-inline: auto; }
  .journey-arrow { transform: rotate(90deg); margin: -.25rem auto; }
  .possibility-grid .work-item { min-height: auto; display: grid; grid-template-columns: 3.25rem 1fr; column-gap: .8rem; align-items: center; }
  .possibility-grid .work-item h3, .possibility-grid .work-item p { grid-column: 2; }
  .possibility-icon { grid-row: span 2; margin: 0; }
  .matters-map { grid-template-columns: repeat(2, 1fr); padding-top: 5.25rem; }
  .hero-stats { grid-template-columns: 1fr; gap: 1.2rem; }
  .founder { grid-template-columns: 1fr; }
  .founder-media { max-width: 280px; margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
