/* ── Headstrong Software — studio site ─────────────────────────
   Brand: lime green + charcoal, drawn from the hexagon-H logo.
   Geometric grotesque display echoes the mark's geometry.
   No gradients, no glass, no symmetric icon-card rows. */

:root {
  --charcoal: #2b2e33;        /* wordmark charcoal */
  --charcoal-deep: #23262b;   /* dark sections */
  --ink: #2b2e33;             /* body text */
  --ink-soft: #585d66;
  --ink-faint: #8b909a;

  --lime: #8cc63f;            /* brand accent — marks, fills, dark-bg, highlights */
  --lime-deep: #6a9e2e;       /* legible green for hover/links on light */
  --lime-soft: rgba(140, 198, 63, 0.22);

  --paper: #f6f7f4;
  --paper-2: #ecefe8;
  --card: #ffffff;
  --rule: #e3e6df;
  --rule-strong: #d0d4ca;

  --display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: 'Space Mono', 'SF Mono', ui-monospace, monospace;

  --max: 1180px;
  --gutter: clamp(1.25rem, 4.5vw, 3rem);

  --shadow: 0 1px 2px rgba(35, 38, 43, 0.05), 0 14px 40px -18px rgba(35, 38, 43, 0.20);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--lime); color: var(--charcoal); }

img, svg { display: block; max-width: 100%; }

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

h1, h2, h3, h4 { margin: 0; font-weight: 400; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ── Shared bits ─────────────────────────────────────────── */

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.eyebrow::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  background: var(--lime);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  flex: none;
}
.eyebrow.muted { color: var(--ink-faint); }
.eyebrow.muted::before { background: var(--rule-strong); }

/* mark highlight on emphasized words — legible charcoal on a lime swipe */
.hl {
  background: linear-gradient(180deg, transparent 62%, var(--lime-soft) 62%);
  padding: 0 0.08em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 3px;
  padding: 0.7rem 1.2rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn-ink { background: var(--charcoal); color: #fff; }
.btn-ink:hover { background: #000; transform: translateY(-1px); }

.btn-lime { background: var(--lime); color: var(--charcoal); }
.btn-lime:hover { background: #7fb834; transform: translateY(-1px); }

.btn-outline { border-color: var(--rule-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--charcoal); }

.btn-lg { padding: 0.9rem 1.5rem; font-size: 1rem; }

.arr { transition: transform 0.18s ease; }
.btn:hover .arr, .linkarrow:hover .arr { transform: translateX(3px); }

.linkarrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--lime-deep);
  border-bottom: 1.5px solid var(--lime);
  padding-bottom: 1px;
  transition: color 0.18s ease;
}
.linkarrow:hover { color: var(--charcoal); }

/* ── Header / brand lockup ───────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--rule); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.75rem;
}

.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand .brand-mark { width: 34px; height: 34px; flex: none; }
.brand .lockup { display: flex; flex-direction: column; line-height: 1; }
.brand .lockup .w1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--charcoal);
}
.brand .lockup .w2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--lime-deep);
  margin-top: 0.18rem;
}

.nav { display: flex; align-items: center; gap: 2.25rem; }
.nav a:not(.btn) {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.nav a:not(.btn):hover { color: var(--charcoal); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
  color: var(--charcoal);
}

/* ── Hero ────────────────────────────────────────────────── */

.hero {
  padding: clamp(4rem, 11vw, 8.5rem) 0 clamp(3rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--rule);
}

.hero-meta { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 2.25rem; }

.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.5rem, 7vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 17ch;
}

.hero-lede {
  margin: 2rem 0 0;
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-actions { margin-top: 2.5rem; display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ── Section frame ───────────────────────────────────────── */

.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section + .section { border-top: 1px solid var(--rule); }

.section-head { max-width: 52ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-top: 0.9rem;
}
.section-head p {
  margin: 1.1rem 0 0;
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

/* ── Beliefs ─────────────────────────────────────────────── */

.beliefs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.belief {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  position: relative;
}
.belief::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 3px;
  background: var(--lime);
  transition: width 0.4s ease;
}
.belief.in::before { width: 3.5rem; }
.belief .num {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--lime-deep);
}
.belief h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 1.1rem 0 0.6rem;
}
.belief p { margin: 0; font-size: 0.98rem; line-height: 1.6; color: var(--ink-soft); }

/* ── Work ────────────────────────────────────────────────── */

.work { display: flex; flex-direction: column; gap: clamp(2rem, 4vw, 3.25rem); }

.project {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: clamp(1.75rem, 4vw, 3.25rem);
}
.project:nth-child(even) .project-body { order: 2; }
.project:nth-child(even) .project-visual { order: 1; }

.project-head { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1.4rem; }
.project-logo {
  width: 46px; height: 46px;
  border-radius: 11px;
  flex: none;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--rule);
  background: var(--paper);
}
.project-logo img { width: 30px; height: 30px; }
.project-logo.neves { background: #1b1a14; border-color: #1b1a14; }
.project-logo.neves img { width: 26px; height: 26px; }

.project-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.015em;
  line-height: 1;
}
.project-platform {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.35rem;
}

.project-body h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  max-width: 18ch;
}
.project-body p {
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.62;
  max-width: 44ch;
}

.project-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1.5rem 0 1.75rem; }
.tag {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  background: var(--paper-2);
  border-radius: 3px;
  padding: 0.28rem 0.6rem;
}

.project-visual { display: flex; justify-content: center; }

.vignette {
  width: 100%;
  max-width: 380px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--rule-strong);
  box-shadow: var(--shadow);
  background: #fff;
}
.vig-bar {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 0.8rem;
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
}
.vig-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--rule-strong); }
.vig-bar .vig-title {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint);
}
.vig-body { padding: 1.1rem 1.2rem; }

.vig-row {
  display: flex; gap: 0.6rem; align-items: flex-start;
  padding: 0.55rem 0;
  border-top: 1px solid var(--rule);
  font-size: 0.82rem;
}
.vig-row:first-child { border-top: 0; }
.vig-row .pri {
  font-family: var(--mono);
  font-size: 0.58rem; font-weight: 700;
  padding: 0.1rem 0.38rem; border-radius: 3px; margin-top: 0.1rem; flex: none;
}
.pri-0 { background: rgba(140,198,63,0.22); color: #4d7019; }
.pri-1 { background: rgba(196,121,74,0.16); color: #9a5a2f; }
.pri-2 { background: rgba(94,114,139,0.16); color: #455a76; }
.vig-row b { font-weight: 600; display: block; }
.vig-row span { color: var(--ink-faint); font-size: 0.74rem; }
.vig-cap {
  font-family: var(--mono);
  font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 0.7rem;
}

.vig-url {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.74rem; color: var(--ink-soft);
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: 5px; padding: 0.45rem 0.65rem;
}
.vig-url .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); flex: none; }
.vig-convert {
  text-align: center; font-family: var(--mono); font-size: 0.72rem;
  color: var(--lime-deep); margin: 0.85rem 0; letter-spacing: 0.04em;
}
.vig-app { border: 1px solid var(--rule); border-radius: 7px; overflow: hidden; }
.vig-app .app-chrome {
  display: flex; align-items: center; gap: 0.35rem;
  padding: 0.45rem 0.6rem; background: var(--paper-2); border-bottom: 1px solid var(--rule);
}
.vig-app .app-chrome i { width: 7px; height: 7px; border-radius: 50%; background: var(--rule-strong); }
.vig-app .app-chrome .menubar {
  margin-left: auto; display: flex; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.55rem; color: var(--ink-faint);
}
.vig-app .app-screen { padding: 0.9rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; }
.vig-app .app-screen .blk { height: 26px; border-radius: 4px; background: var(--paper-2); }
.vig-app .app-screen .blk.wide { grid-column: span 2; height: 16px; }
.vig-app .app-screen .blk.accent { background: rgba(140,198,63,0.30); }

/* ── Upcoming (dark) ─────────────────────────────────────── */

.upcoming { background: var(--charcoal-deep); color: #eceee9; }
.upcoming .section-head h2 { color: #fff; }
.upcoming .eyebrow { color: #cfe6a6; }
.upcoming .eyebrow::before { background: var(--lime); }
.upcoming p { color: #a7adb3; }
.upcoming .linkarrow { color: var(--lime); border-color: var(--lime); }
.upcoming .linkarrow:hover { color: #fff; }

.upcoming-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: end; }
.upcoming h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.12; letter-spacing: -0.02em;
}
.upcoming .note { font-size: 1.05rem; line-height: 1.6; }

/* ── Studio ──────────────────────────────────────────────── */

.studio-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); }
.studio-statement p {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin: 0 0 1.4rem;
}
.studio-statement p:last-child { margin-bottom: 0; }

.studio-facts { margin: 0; padding: 0; list-style: none; }
.studio-facts li {
  display: grid; grid-template-columns: 9rem 1fr; gap: 1rem;
  padding: 0.95rem 0; border-top: 1px solid var(--rule); font-size: 0.96rem;
}
.studio-facts li:first-child { border-top: 0; padding-top: 0; }
.studio-facts .k {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint); padding-top: 0.15rem;
}
.studio-facts .v { color: var(--ink); }
.studio-facts .v span { color: var(--ink-soft); display: block; font-size: 0.88rem; }

/* ── Contact ─────────────────────────────────────────────── */

.contact { text-align: center; }
.contact .eyebrow { display: inline-flex; }
.contact h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08; letter-spacing: -0.025em;
  margin: 1rem auto 0; max-width: 18ch;
}
.contact-email {
  display: inline-block;
  margin-top: 2rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.25rem, 3vw, 1.9rem);
  letter-spacing: -0.01em;
  border-bottom: 2px solid var(--lime);
  padding-bottom: 3px;
  transition: color 0.18s ease;
}
.contact-email:hover { color: var(--lime-deep); }
.contact .sub { margin: 1.5rem auto 0; color: var(--ink-soft); max-width: 40ch; }

/* ── Footer ──────────────────────────────────────────────── */

.site-footer { border-top: 1px solid var(--rule); background: var(--paper-2); padding: 3.25rem 0 2.5rem; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; }
.footer-brand .brand-mark { width: 30px; height: 30px; }
.footer-brand .w1 {
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--charcoal);
}
.footer-tag { margin: 0.85rem 0 0; font-size: 0.9rem; color: var(--ink-soft); max-width: 32ch; line-height: 1.55; }
.footer-cols { display: flex; gap: clamp(2.5rem, 6vw, 5rem); }
.footer-cols h4 {
  font-family: var(--mono); font-size: 0.66rem; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 0.9rem;
}
.footer-cols ul { margin: 0; padding: 0; list-style: none; }
.footer-cols li { margin-bottom: 0.5rem; }
.footer-cols a { font-size: 0.92rem; color: var(--ink-soft); }
.footer-cols a:hover { color: var(--charcoal); }
.footer-bottom {
  margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.03em; color: var(--ink-faint);
}

/* ── Reveal ──────────────────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

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

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 880px) {
  .beliefs { grid-template-columns: 1fr; }
  .project { grid-template-columns: 1fr; gap: 2rem; }
  .project:nth-child(even) .project-body { order: 1; }
  .project:nth-child(even) .project-visual { order: 2; }
  .project-visual { order: 2; }
  .upcoming-inner, .studio-grid { grid-template-columns: 1fr; }
  .upcoming-inner { gap: 1.5rem; }
}

@media (max-width: 680px) {
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 0.5rem var(--gutter) 1.25rem; display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 0.75rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--rule); }
  .nav .btn { margin-top: 0.85rem; justify-content: center; }
  .nav-toggle { display: block; }
  .studio-facts li { grid-template-columns: 1fr; gap: 0.25rem; padding: 0.8rem 0; }
}
