/* ================================================
   HessWare Signal — Main Stylesheet
   Dark-signal design, Sora + JetBrains Mono
   ================================================ */

:root {
  --bg:          #0F1E1D;
  --bg2:         #132523;
  --cobalt:      #3D5AFE;
  --cobalt-h:    #5471ff;
  --text:        #E7ECEA;
  --muted:       #8FA19E;
  --card:        #152A28;
  --border:      rgba(231, 236, 234, 0.08);
  --green:       #6fbf8b;
  --amber:       #d9b45c;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Sora', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
}

/* ------------------------------------------------
   PULSE BACKGROUND
------------------------------------------------ */
.pulse-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 400px at 80% -10%, rgba(61,90,254,0.18), transparent 60%),
    radial-gradient(500px 500px at 0% 100%,  rgba(61,90,254,0.10), transparent 60%);
}

/* ------------------------------------------------
   HEADER / NAV
------------------------------------------------ */
header {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 56px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.01em;
  margin: -10px 0 0 -30px; /* pull logo up/left independent of header padding & nav position */
}

.logo-img {
  height: 100px;
  width: auto; /* auto keeps the logo's native aspect ratio */
  object-fit: contain;
}

.logo-wrap {
  display: inline-block;
  height: 66px; /* crop bottom to hide the wordmark — scales with .logo-img height (~2/3 of it) */
  overflow: hidden;
  line-height: 0;
}

.wordmark .dot { color: var(--cobalt); }

nav {
  display: flex;
  align-items: center;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  margin-left: 30px;
  opacity: 0.72;
  font-weight: 500;
  transition: opacity 0.18s, color 0.18s;
  letter-spacing: 0.01em;
}

nav a:hover { opacity: 1; }

nav a.active {
  opacity: 1;
  color: var(--cobalt);
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  border-radius: 8px;
  padding: 6px 10px;
  line-height: 1;
}

/* ------------------------------------------------
   MAIN WRAPPER
------------------------------------------------ */
main {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 56px;
}

/* ------------------------------------------------
   TYPOGRAPHY UTILITIES
------------------------------------------------ */
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--cobalt);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

h1 {
  font-weight: 700;
  font-size: 50px;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

h1 .accent { color: var(--cobalt); }

h2 { font-size: 24px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 600; }

/* ------------------------------------------------
   BUTTONS
------------------------------------------------ */
.btn {
  font-weight: 600;
  font-size: 14px;
  padding: 13px 24px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.18s, border-color 0.18s, transform 0.14s;
  font-family: 'Sora', sans-serif;
  cursor: pointer;
  border: none;
}

.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-h); transform: translateY(-1px); }

.btn-ghost {
  color: var(--text);
  border: 1px solid rgba(231, 236, 234, 0.25);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--text); transform: translateY(-1px); }

/* ------------------------------------------------
   HERO — Homepage
------------------------------------------------ */
.hero {
  padding: 100px 0 60px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero .hero-copy p {
  margin-top: 20px;
  font-size: 17px;
  color: var(--muted);
  max-width: 460px;
  line-height: 1.65;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---- Signal Pulse Animation ---- */
.signal-viz {
  position: relative;
  height: 280px;
}

.ring {
  position: absolute;
  border: 1px solid rgba(61, 90, 254, 0.35);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-ring 3.2s ease-out infinite;
}

.ring.r1 { animation-delay: 0s; }
.ring.r2 { animation-delay: 1.06s; }
.ring.r3 { animation-delay: 2.12s; }

.core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cobalt);
  box-shadow: 0 0 24px 4px rgba(61, 90, 254, 0.6);
}

@keyframes pulse-ring {
  0%   { width: 16px;  height: 16px;  opacity: 1; }
  100% { width: 280px; height: 280px; opacity: 0; }
}

/* ------------------------------------------------
   MISSION SECTION
------------------------------------------------ */
.mission {
  padding: 20px 0 70px;
  border-top:    1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.mission-top {
  max-width: 600px;
  margin-bottom: 36px;
  padding-top: 44px;
}

.mission-top p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.pillar { padding: 24px 4px; }

.pillar .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--cobalt);
}

.pillar h3  { margin-top: 14px; font-size: 17px; font-weight: 600; }

.pillar p {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}

/* ------------------------------------------------
   GRID / CARDS — Homepage + Ventures
------------------------------------------------ */
.grid-section { padding: 60px 0 90px; }

.grid-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 28px;
}

.grid-head span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--card);
  border-radius: 16px;
  padding: 26px;
  border: 1px solid var(--border);
  transition: transform 0.18s, border-color 0.18s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(61, 90, 254, 0.4);
}

.card .tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--cobalt);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card h3   { margin-top: 12px; font-size: 18px; font-weight: 600; }

.card p {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}

.status-line {
  margin-top: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--green);
}

.status-line.soon { color: var(--amber); }

.card-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--cobalt);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: letter-spacing 0.15s;
}
.card-link:hover { letter-spacing: 0.04em; }

/* ------------------------------------------------
   PAGE HERO — inner pages
------------------------------------------------ */
.page-hero {
  padding: 80px 0 52px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 60px;
}

.page-hero h1 { font-size: 40px; }

.page-hero p {
  margin-top: 16px;
  font-size: 16px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.65;
}

/* ------------------------------------------------
   VENTURES PAGE
------------------------------------------------ */
.ventures-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding-bottom: 90px;
}

.venture-card {
  background: var(--card);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--border);
  transition: transform 0.18s, border-color 0.18s;
  display: flex;
  flex-direction: column;
}

.venture-card:hover {
  transform: translateY(-4px);
  border-color: rgba(61, 90, 254, 0.4);
}

.vc-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--cobalt);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.venture-card h3 { font-size: 22px; font-weight: 700; }

.venture-card > p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

.vc-footer {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.vc-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.status-dot.soon { background: var(--amber); }

.vc-status-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--green);
}

.vc-status-text.soon { color: var(--amber); }

.vc-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--cobalt);
  text-decoration: none;
  padding: 7px 14px;
  border: 1px solid rgba(61, 90, 254, 0.4);
  border-radius: 8px;
  transition: background 0.18s, transform 0.14s;
}

.vc-link:hover {
  background: rgba(61, 90, 254, 0.12);
  transform: translateY(-1px);
}

/* ------------------------------------------------
   WRITING / FIELD NOTES PAGE
------------------------------------------------ */
.writing-list {
  display: flex;
  flex-direction: column;
  padding-bottom: 60px;
}

.writing-item {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.18s;
}

.writing-item:last-child { border-bottom: none; }
.writing-item:hover      { padding-left: 6px; }
.writing-item:hover .wi-title { color: var(--cobalt); }

.wi-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--cobalt);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.wi-title {
  font-size: 20px;
  font-weight: 600;
  transition: color 0.18s;
}

.writing-item p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 600px;
}

.wi-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 4px;
}

.writing-cta {
  padding: 44px;
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--border);
  text-align: center;
  margin-bottom: 90px;
}

.writing-cta h3 { font-size: 20px; font-weight: 700; }

.writing-cta p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.writing-cta .btn { margin-top: 24px; }

/* ------------------------------------------------
   AD SLOT
   Quiet by design: hairline rules, muted label, no
   card fill — reads as a footnote, not a banner.
------------------------------------------------ */
.ad-slot {
  margin: 0 0 60px;
  padding: 20px 0 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.ad-slot-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 14px;
}

/* Never let a unit push past the content column. */
.ad-slot .adsbygoogle {
  display: block;
  max-width: 100%;
  overflow: hidden;
}

/* ------------------------------------------------
   ABOUT PAGE
------------------------------------------------ */
.about-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 60px;
  padding-bottom: 90px;
  align-items: start;
}

.about-body section { margin-bottom: 44px; }

.about-body h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
}

.about-body p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.about-body p:last-child { margin-bottom: 0; }

.timeline {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.timeline li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  align-items: baseline;
}

.tl-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--cobalt);
  letter-spacing: 0.04em;
}

.tl-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

/* Sidebar */
.about-sidebar {
  position: sticky;
  top: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-card {
  background: var(--card);
  border-radius: 16px;
  padding: 26px;
  border: 1px solid var(--border);
}

.sc-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--cobalt);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.sidebar-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 5px 10px;
  background: rgba(61, 90, 254, 0.10);
  border: 1px solid rgba(61, 90, 254, 0.28);
  border-radius: 6px;
  color: var(--text);
}

/* ------------------------------------------------
   CONTACT PAGE
------------------------------------------------ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding-bottom: 90px;
  align-items: start;
}

.contact-intro p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.contact-channels {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.18s, transform 0.14s;
}

.channel:hover {
  border-color: rgba(61, 90, 254, 0.45);
  transform: translateX(4px);
}

.ch-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--cobalt);
  min-width: 72px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ch-value { flex: 1; }

.ch-arrow {
  color: var(--muted);
  font-size: 16px;
  transition: transform 0.14s, color 0.14s;
}
.channel:hover .ch-arrow { transform: translateX(3px); color: var(--cobalt); }

/* Contact form */
.contact-form-wrap h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--cobalt);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--card);
  border: 1px solid rgba(231, 236, 234, 0.14);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text);
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.18s;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--cobalt);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.55;
}

.form-group select option { background: var(--bg2); }

.form-submit-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.form-note {
  font-size: 12px;
  color: var(--muted);
}

.alert {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  margin-bottom: 20px;
}

.alert-success {
  background: rgba(111, 191, 139, 0.10);
  border: 1px solid rgba(111, 191, 139, 0.30);
  color: var(--green);
}

.alert-error {
  background: rgba(255, 80, 80, 0.10);
  border: 1px solid rgba(255, 80, 80, 0.30);
  color: #ff6b6b;
}

/* ------------------------------------------------
   FOOTER
------------------------------------------------ */
footer {
  position: relative;
  z-index: 1;
  padding: 36px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.footer-left { line-height: 1.6; }

.footer-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  margin-top: 3px;
  opacity: 0.75;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.18s;
}

.footer-links a:hover { color: var(--text); }

/* ------------------------------------------------
   RESPONSIVE
------------------------------------------------ */
@media (max-width: 900px) {
  header { padding: 22px 24px; }
  main   { padding: 0 24px; }
  footer { padding: 28px 24px; flex-direction: column; gap: 20px; align-items: flex-start; }

  .hero        { grid-template-columns: 1fr; padding: 60px 0 40px; }
  .signal-viz  { height: 180px; margin-top: 20px; }
  h1           { font-size: 34px; }
  .hero .hero-copy p { max-width: 100%; }

  .pillars     { grid-template-columns: 1fr; }
  .cards       { grid-template-columns: 1fr; }
  .ventures-grid   { grid-template-columns: 1fr; }
  .about-layout    { grid-template-columns: 1fr; }
  .contact-layout  { grid-template-columns: 1fr; }

  nav { display: none; }
  nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--bg2);
    padding: 20px 24px;
    gap: 14px;
    z-index: 20;
    border-bottom: 1px solid var(--border);
  }
  nav.open a { margin-left: 0; font-size: 16px; }
  .nav-mobile-toggle { display: block; }

  .about-sidebar { position: static; }

  .footer-links { flex-wrap: wrap; gap: 14px; }
}

@media (max-width: 540px) {
  .writing-item { grid-template-columns: 1fr; }
  .wi-date      { display: none; }
  .hero-actions { flex-direction: column; }
  .ventures-grid { gap: 16px; }
}
