/* Urban Tech Hub — website UI kit styles.
   Pairs with ../../colors_and_type.css (tokens). */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.app { overflow-x: clip; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ---------- shared bits ---------- */
.eyebrow {
  font-family: var(--font-sans); font-weight: 600; font-size: 12px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
}
.arw { display:inline-block; transition: transform .16s cubic-bezier(.2,0,0,1); }
.btn {
  font-family: var(--font-sans); font-weight: 600; font-size: 15px; white-space: nowrap;
  border-radius: var(--radius-md); padding: 12px 22px; border: 1.5px solid transparent;
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: background .16s cubic-bezier(.2,0,0,1), color .16s cubic-bezier(.2,0,0,1), box-shadow .16s cubic-bezier(.2,0,0,1), transform .12s cubic-bezier(.2,0,0,1);
}
.btn:active { transform: scale(.985); }
.btn-primary { background: var(--carnelian); color: #fff; }
.btn-primary:hover { background: var(--carnelian-dark); }
.btn-primary:hover .arw { transform: translateX(3px); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--carnelian); padding-left: 4px; padding-right: 4px; }
.btn-ghost:hover .arw { transform: translateX(3px); }
.btn-white { background:#fff; color: var(--ink); }
.btn-white:hover { background: var(--cloud); }
:focus-visible { outline: none; box-shadow: var(--ring-focus); border-radius: var(--radius-sm); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .wm { display:flex; flex-direction:column; line-height:1; }
.brand .wm .t { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; }
.brand .wm .s { font-family: var(--font-sans); font-weight: 600; font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); margin-top: 3px; }
.brand .tick { width: 10px; height: 26px; background: var(--carnelian); border-radius: 1px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--text-secondary);
  padding: 8px 13px; border-radius: var(--radius-sm); transition: color .14s cubic-bezier(.2,0,0,1), background .14s cubic-bezier(.2,0,0,1);
}
.nav-links a:hover { color: var(--ink); background: var(--cloud); }
.nav-links a.active { color: var(--carnelian); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-burger { display:none; background:none; border:0; cursor:pointer; padding:8px; }
.nav-burger span { display:block; width:22px; height:2px; background:var(--ink); margin:4px 0; transition:.2s; }
.mobile-menu { display:none; }

/* ---------- hero ---------- */
.hero { padding: 84px 0 72px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.35fr .9fr; gap: 56px; align-items: center; }
.hero h1 {
  font-family: var(--font-display); font-weight: 600; margin: 18px 0 0;
  font-size: clamp(2.8rem, 1.9rem + 4.2vw, 5.2rem); line-height: 1.08; letter-spacing: -0.01em;
  color: var(--ink); text-wrap: balance;
}
.hero h1 .hl { color: var(--carnelian); }
.hero .lead { font-size: 19px; line-height: 1.5; color: var(--text-secondary); max-width: 46ch; margin: 22px 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
/* hero side panel: stacked color blocks w/ pillar words */
.hero-stack { display: grid; gap: 12px; }
.hstack-card { border-radius: var(--radius-lg); padding: 22px 22px 18px; min-height: 104px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.hstack-card .k { font-family: var(--font-sans); font-weight: 600; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; }
.hstack-card .v { font-family: var(--font-display); font-weight: 600; font-size: 30px; letter-spacing: -0.01em; line-height: 1; }
.hstack-card .big { position: absolute; right: 14px; bottom: -10px; font-family: var(--font-display); font-weight: 500; font-size: 84px; line-height: 1; opacity: .12; }
.hs-red { background: var(--carnelian); color: #fff; }
.hs-ink { background: var(--ink); color: #fff; }
.hs-ink .k { color: var(--sun); }
.hs-paper { background: var(--cloud); color: var(--ink); }
.hs-paper .k { color: var(--carnelian); }

/* ---------- generic section ---------- */
.section { padding: 80px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 38px; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem);
  letter-spacing: -0.005em; line-height: 1.12; margin: 12px 0 0; color: var(--ink); text-wrap: balance; max-width: 18ch;
}
.section-head p { font-size: 16px; color: var(--text-muted); max-width: 40ch; line-height: 1.55; margin: 0; }

/* ---------- pillars band ---------- */
.band-ink { background: var(--ink); color: #fff; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); }
.pillar { padding: 8px 32px; border-left: 1px solid rgba(255,255,255,.14); }
.pillar:first-child { border-left: 0; padding-left: 0; }
.pillar .k { font-family: var(--font-sans); font-weight: 600; font-size: 11px; letter-spacing: .18em; }
.pillar:nth-child(1) .k { color: var(--carnelian); }
.pillar:nth-child(2) .k { color: var(--sun); }
.pillar:nth-child(3) .k { color: var(--sky); }
.pillar h3 { font-family: var(--font-display); font-weight: 500; font-size: 34px; letter-spacing: 0; margin: 16px 0 12px; }
.pillar p { font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.66); margin: 0; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { border-left: 3px solid var(--border); padding-left: 16px; }
.stat:first-child { border-left-color: var(--carnelian); }
.stat .n { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.6rem,1.8rem+2vw,3.6rem); line-height: 1.04; letter-spacing: -0.01em; color: var(--ink); }
.stat:first-child .n { color: var(--carnelian); }
.stat .n .u { font-size: .55em; }
.stat .l { font-family: var(--font-sans); font-weight: 600; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); line-height: 1.4; margin-top: 10px; }

/* ---------- projects ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  font-family: var(--font-sans); font-weight: 600; font-size: 12px; letter-spacing: .10em; text-transform: uppercase;
  padding: 7px 14px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong);
  background: transparent; color: var(--text-muted); cursor: pointer; transition: color .14s cubic-bezier(.2,0,0,1), background .14s cubic-bezier(.2,0,0,1), border-color .14s cubic-bezier(.2,0,0,1);
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.proj {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer; transition: box-shadow .16s cubic-bezier(.2,0,0,1), transform .16s cubic-bezier(.2,0,0,1), border-color .16s cubic-bezier(.2,0,0,1);
  display: flex; flex-direction: column;
}
.proj:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--mist); }
.proj-cover { height: 150px; position: relative; display: flex; align-items: flex-end; padding: 16px; }
.proj-cover .tag { font-family: var(--font-sans); font-weight: 600; font-size: 10px; letter-spacing: .10em; text-transform: uppercase; padding: 4px 9px; border-radius: var(--radius-sm); background: rgba(255,255,255,.92); color: var(--ink); }
.proj-cover .ghostnum { position: absolute; right: 14px; top: 10px; font-family: var(--font-display); font-weight: 500; font-size: 40px; color: rgba(255,255,255,.2); line-height: 1; }
.proj-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.proj-body h3 { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; line-height: 1.1; margin: 0; color: var(--ink); }
.proj-body p { font-size: 13.5px; line-height: 1.5; color: var(--text-muted); margin: 0; flex: 1; }
.proj-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 6px; }
.proj-foot .dt { font-family: var(--font-mono); font-size: 11px; color: var(--text-subtle); }
.proj-foot .go { color: var(--carnelian); font-weight: 600; transition: transform .15s cubic-bezier(.2,0,0,1); }
.proj:hover .proj-foot .go { transform: translateX(3px); }

/* ---------- fellows ---------- */
.fellows-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fellow { display: flex; flex-direction: column; gap: 12px; }
.fellow .ph { aspect-ratio: 1/1; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 500; font-size: 42px; color: rgba(255,255,255,.9); }
.fellow .nm { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; color: var(--ink); }
.fellow .rl { font-size: 12.5px; color: var(--text-muted); line-height: 1.45; margin-top: 3px; }

/* ---------- CTA / newsletter ---------- */
.cta-band { background: var(--carnelian); color: #fff; border-radius: var(--radius-lg); padding: 52px 48px; display: grid; grid-template-columns: 1.2fr .9fr; gap: 40px; align-items: center; }
.cta-band h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem,1.4rem+2vw,3rem); letter-spacing: -0.01em; line-height: 1.12; margin: 14px 0 0; }
.cta-band .eyebrow { color: rgba(255,255,255,.7); }
.cta-band p { color: rgba(255,255,255,.85); font-size: 16px; line-height: 1.5; margin: 16px 0 0; }
.signup { display: flex; gap: 10px; }
.signup input { flex: 1; font-family: var(--font-sans); font-size: 15px; padding: 13px 16px; border-radius: var(--radius-md); border: 1.5px solid transparent; background: rgba(255,255,255,.16); color: #fff; outline: none; }
.signup input::placeholder { color: rgba(255,255,255,.7); }
.signup input:focus { background: rgba(255,255,255,.24); border-color: rgba(255,255,255,.6); }
.signup-done { font-family: var(--font-sans); font-size: 16px; font-weight: 500; display:flex; align-items:center; gap:10px; }
.signup-done .ck { width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--carnelian); display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #fff; padding: 64px 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.14); }
.footer img.fl { height: 64px; }
.footer .col h4 { font-family: var(--font-sans); font-weight: 600; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--steel); margin: 0 0 16px; }
.footer .col a { display: block; font-size: 14px; color: rgba(255,255,255,.8); padding: 5px 0; transition: color .14s cubic-bezier(.2,0,0,1); }
.footer .col a:hover { color: #fff; }
.footer-tag { font-size: 14px; color: rgba(255,255,255,.66); line-height: 1.55; margin: 18px 0 0; max-width: 30ch; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 26px; }
.footer-bottom .cc { font-family: var(--font-mono); font-size: 11px; color: var(--steel); letter-spacing: .03em; }
.footer-seals { display: flex; gap: 16px; align-items: center; }
.footer-seals img { height: 44px; opacity: .85; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); opacity: 0; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; padding: 13px 20px; border-radius: var(--radius-pill); box-shadow: var(--shadow-lg); z-index: 100; transition: opacity .2s, transform .2s; display:flex; align-items:center; gap:10px; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .d { width: 8px; height: 8px; border-radius: 50%; background: var(--grass); }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .pillars { grid-template-columns: 1fr; gap: 0; }
  .pillar { border-left: 0; border-top: 1px solid rgba(255,255,255,.14); padding: 22px 0; }
  .pillar:first-child { border-top: 0; padding-top: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .fellows-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band { grid-template-columns: 1fr; padding: 36px 28px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-burger { display: block; }
}
@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .proj-grid, .fellows-grid, .footer-top { grid-template-columns: 1fr; }
  .nav-cta .btn-secondary { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
