/* ============================================
   PROTYPA COUNCIL™ — DESIGN SYSTEM
   protypa.com
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&family=Jost:wght@200;300;400;500&display=swap');

/* ── TOKENS ────────────────────────────────── */
:root {
  --bg:           #0e0e0e;
  --bg-elevated:  #181818;
  --bg-card:      #141414;
  --text:         #f0ebe0;
  --text-muted:   #7a7163;
  --text-dim:     #4a453e;
  --gold:         #c8b89a;
  --gold-bright:  #d4c4a8;
  --gold-dim:     #8a7a66;
  --border:       #2a2520;
  --border-light: #352f28;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-ui:      'Jost', sans-serif;

  --max-w:        1200px;
  --max-w-prose:  760px;
  --gap:          clamp(2rem, 5vw, 5rem);
  --section-pad:  clamp(5rem, 10vw, 10rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ── RESET ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 18px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
}

/* Grain overlay on body */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── TYPOGRAPHY ────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); font-weight: 300; font-style: italic; }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 300; }
h3 { font-size: clamp(1.3rem, 2.5vw, 2rem); font-weight: 400; }
h4 { font-size: clamp(1rem, 1.8vw, 1.4rem); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; font-family: var(--font-ui); }

p { font-size: clamp(1rem, 1.2vw, 1.15rem); font-weight: 300; line-height: 1.85; }

.label {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 300;
  color: var(--gold);
  line-height: 1.45;
}

/* ── LAYOUT ────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.container--narrow {
  max-width: var(--max-w-prose);
}

section {
  padding: var(--section-pad) 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}

/* ── NAVIGATION ────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.6rem clamp(1.5rem, 5vw, 4rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(14, 14, 14, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease-out);
}

.nav.scrolled {
  border-bottom-color: var(--border);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.nav__logo span {
  font-size: 0.7em;
  vertical-align: super;
}

.nav__links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav__links a {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--gold);
}

.nav__cta {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  padding: 0.6rem 1.4rem;
  transition: background 0.2s;
}

.nav__cta:hover { background: var(--gold-bright); }

/* Mobile nav toggle */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--gold);
  transition: transform 0.3s, opacity 0.3s;
}

/* ── HAIRLINE RULE ─────────────────────────── */
.rule {
  width: 3rem;
  height: 1px;
  background: var(--gold-dim);
  margin: 2rem 0;
}

.rule--full {
  width: 100%;
  background: var(--border);
  margin: 0;
}

.rule--center {
  margin: 2rem auto;
}

/* ── BUTTONS ───────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 2.2rem;
  transition: all 0.25s var(--ease-out);
  cursor: pointer;
}

.btn--primary {
  background: var(--gold);
  color: var(--bg);
}

.btn--primary:hover {
  background: var(--gold-bright);
  transform: translateY(-1px);
}

.btn--ghost {
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--gold);
  background: rgba(200, 184, 154, 0.06);
  transform: translateY(-1px);
}

.btn--text {
  color: var(--gold);
  padding: 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.btn--text:hover { border-bottom-color: var(--gold-dim); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-items: center;
  margin-top: 2.5rem;
}

/* ── CARDS ─────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: clamp(2rem, 4vw, 3rem);
  transition: border-color 0.3s;
}

.card:hover {
  border-color: var(--border-light);
}

.card__number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  font-style: italic;
  color: var(--gold-dim);
  line-height: 1;
  margin-bottom: 1.2rem;
}

/* ── STAT STRIP ────────────────────────────── */
.stat-strip {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-strip .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stat-item {
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
  border-right: 1px solid var(--border);
}

.stat-item:last-child { border-right: none; }

.stat-item__number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.8rem;
}

.stat-item__text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── SECTION LABEL ─────────────────────────── */
.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--gold-dim);
  flex-shrink: 0;
}

/* ── FRAMEWORK STAGES ──────────────────────── */
.stages {
  display: flex;
  gap: 0;
  margin: 3rem 0;
}

.stage {
  flex: 1;
  padding: 1.8rem 1.4rem;
  border: 1px solid var(--border);
  border-right: none;
  text-align: center;
  transition: background 0.3s, border-color 0.3s;
}

.stage:last-child { border-right: 1px solid var(--border); }

.stage:hover {
  background: var(--bg-elevated);
  border-color: var(--border-light);
}

.stage__letter {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
}

.stage__name {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── DIVIDER BAND ──────────────────────────── */
.band {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(3rem, 6vw, 5rem) 0;
}

/* ── FOOTER ────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.8rem;
  max-width: 28ch;
}

.footer__tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 1rem;
  margin-top: 1.5rem;
}

.footer__col h5 {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.footer__col ul { list-style: none; }

.footer__col li + li { margin-top: 0.6rem; }

.footer__col a {
  font-size: 0.9rem;
  color: var(--text-dim);
  transition: color 0.2s;
}

.footer__col a:hover { color: var(--gold); }

.footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__bottom p {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

/* ── ANIMATIONS ────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes lineGrow {
  from { width: 0; }
  to   { width: 100%; }
}

.animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }
.animate-delay-5 { transition-delay: 0.5s; }

/* ── RESPONSIVE ────────────────────────────── */
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .stat-strip .container { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
  .stages { flex-direction: column; }
  .stage { border-right: 1px solid var(--border); border-bottom: none; }
  .stage:last-child { border-bottom: 1px solid var(--border); }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; gap: 0.8rem; text-align: center; }
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
}

@media (max-width: 600px) {
  html { font-size: 16px; }
  .btn-row { flex-direction: column; align-items: flex-start; }
}

/* ── PAGE TOP OFFSET ───────────────────────── */
.page-top {
  padding-top: 7rem;
}

/* ── HERO SPECIFIC ─────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--border);
}

/* Vertical text decoration */
.hero__vertical-text {
  position: absolute;
  right: clamp(1.5rem, 4vw, 3.5rem);
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center center;
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}

/* ── INTERNAL PAGE HERO ────────────────────── */
.page-hero {
  padding: clamp(8rem, 14vw, 12rem) 0 clamp(4rem, 8vw, 7rem);
  border-bottom: 1px solid var(--border);
}

/* ── SERVICE CARDS ─────────────────────────── */
.service-card {
  border: 1px solid var(--border);
  padding: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1px;
  position: relative;
  transition: border-color 0.3s;
}

.service-card:hover { border-color: var(--border-light); }

.service-card__price {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 300;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.service-card__price .label {
  display: block;
  margin-bottom: 0.3rem;
}

/* ── RESOURCE CARD ─────────────────────────── */
.resource-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.resource-card:first-of-type { border-top: 1px solid var(--border); }

.resource-card__cover {
  background: var(--bg-elevated);
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  overflow: hidden;
}

.resource-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 700px) {
  .resource-card { grid-template-columns: 1fr; }
  .resource-card__cover { max-width: 200px; }
}

/* ── LEGAL PAGE ────────────────────────────── */
.legal-content h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.legal-content h3 {
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 400;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  color: var(--gold);
}

.legal-content p + p { margin-top: 1rem; }

.legal-content a { color: var(--gold); border-bottom: 1px solid var(--gold-dim); }

/* ── CONTACT PAGE ──────────────────────────── */
.contact-intro {
  max-width: 52ch;
}

.calendly-placeholder {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 4rem 3rem;
  text-align: center;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* ── SCROLL PROGRESS ───────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--gold);
  z-index: 101;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.1s linear;
}

/* Mobile nav overlay */
.nav__mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(14,14,14,0.98);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.nav__mobile-menu.open { display: flex; }

.nav__mobile-menu a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-style: italic;
  color: var(--text);
  transition: color 0.2s;
}

.nav__mobile-menu a:hover { color: var(--gold); }
