/* ============================================================
   Startup Speaks — simplified editorial stylesheet
   One markup set, both themes via CSS variables (tokens.css)
   Crimson accent only · no shadows · sharp edges · hairlines
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: 1.1; margin: 0; }
p { margin: 0 0 1rem; color: var(--text-secondary); }
ul { list-style: none; margin: 0; padding: 0; }
blockquote { margin: 0; }
::selection { background: var(--accent); color: var(--on-accent); }

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-size: 1.15em;
  line-height: 1;
  vertical-align: middle;
}

.container {
  width: min(var(--container-max), 100%);
  margin-inline: auto;
  padding-inline: var(--margin-mobile);
}
@media (min-width: 1024px) {
  .container { padding-inline: var(--margin-desktop); }
}

.section { padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.section--alt { background: var(--surface-container-low); }

.eyebrow {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 1.25rem;
}
.section-head {
  display: grid;
  gap: 1rem;
  margin-bottom: 3rem;
}
@media (min-width: 900px) {
  .section-head {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
    gap: 3rem;
  }
}
.section-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.section-lead {
  max-width: 34rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.005em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn--primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn--primary:hover { filter: brightness(1.08); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { padding: 0.55rem 1rem; font-size: 0.85rem; }
.btn .material-symbols-outlined { font-size: 1.1rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand img { width: 32px; height: 32px; }
.brand span { color: var(--accent); }

.nav-desktop { display: none; align-items: center; gap: 2rem; }
.nav-desktop a {
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.005em;
  color: var(--text-secondary);
  position: relative;
  padding-bottom: 4px;
}
.nav-desktop a:hover,
.nav-desktop a.is-active { color: var(--text); }
.nav-desktop a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
}

.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.theme-toggle {
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text);
  width: 40px; height: 40px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.theme-toggle:focus-visible,
.nav-toggle:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

.header-cta { display: none; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 18px; background: var(--text); margin-inline: auto; }

.nav-mobile {
  display: none;
  border-top: 1px solid var(--border-subtle);
  padding: 1rem var(--margin-mobile) 1.25rem;
  flex-direction: column;
  gap: 0.5rem;
}
.nav-mobile a {
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.nav-mobile .btn { margin-top: 0.75rem; border-bottom: 1px solid var(--accent); }
.site-header.is-open .nav-mobile { display: flex; }

@media (min-width: 900px) {
  .header-cta { display: inline-flex; }
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 7rem;
}
.hero__grid { display: grid; gap: 3rem; align-items: end; }
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1.35fr 0.65fr; }
}
.hero__title {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin-bottom: 1.5rem;
}
.hero__title em { font-style: normal; color: var(--accent); }
.hero__lead { font-size: 1.1rem; max-width: 34rem; color: var(--text-secondary); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.hero__stats {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-subtle);
}
.hero__stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}
.hero__stat:last-child { border-bottom: 0; }
.hero__stat strong {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--stat-num);
  letter-spacing: -0.02em;
}
.hero__stat span {
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: right;
}

/* ---------- Services (asymmetric) ---------- */
.services { display: grid; grid-template-columns: 1fr; gap: var(--gutter); }
@media (min-width: 900px) {
  .services { grid-template-columns: repeat(12, 1fr); }
  .service--wide { grid-column: span 7; }
  .service--narrow { grid-column: span 5; }
}
.service {
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  padding: 2rem;
  transition: border-color 0.2s, background 0.2s;
}
.section--alt .service { background: var(--surface); }
.service:hover { border-color: var(--accent); }
.service__num {
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  display: block;
  margin-bottom: 1.5rem;
}
.service h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.65rem; }
.service p { font-size: 0.95rem; margin: 0; }
.service__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.5rem; }
.service__tags li {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

/* ---------- Product: awarabuddy ---------- */
.product__grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) {
  .product__grid { grid-template-columns: 0.9fr 1.1fr; }
}
.product__media {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone {
  width: 200px;
  aspect-ratio: 9 / 19.5;
  margin: 0;
  padding: 5px;
  border: 1px solid var(--border);
  background: var(--surface-container);
  position: relative;
  display: block;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 11px;
}
.phone--back {
  transform: translate(34px, -20px) rotate(4deg);
  opacity: 0.85;
}
.phone--front {
  transform: translate(-26px, 16px) rotate(-3deg);
  border-color: var(--accent);
  z-index: 1;
}
.product__lead { font-size: 1.05rem; max-width: 34rem; }
.product__tags { margin-top: 0; margin-bottom: 1.75rem; }
.product__tags li:first-child { border-color: var(--accent); color: var(--accent); }
.product__actions { margin-top: 0.5rem; }

/* ---------- Work ---------- */
.work-grid { display: grid; gap: var(--gutter); }
@media (min-width: 900px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }
.work-card {
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  display: flex;
  flex-direction: column;
}
.work-card__thumb {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  filter: grayscale(1);
  transition: filter 0.35s ease;
}
.work-card:hover .work-card__thumb { filter: grayscale(0); }
.work-card__thumb--1 { background: var(--thumb-1); color: #fff; }
.work-card__thumb--2 { background: var(--thumb-2); color: #fff; }
.work-card__thumb--3 { background: var(--thumb-3); color: #fff; }
.work-card__thumb strong { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: -0.03em; }
.work-card__thumb small {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-top: 0.35rem;
}
.work-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.work-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.9rem; }
.work-pill {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.5rem;
  color: var(--text-secondary);
}
.work-card__body > p { font-size: 0.9rem; flex: 1; }
.work-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}
.work-metrics div strong { display: block; font-family: var(--font-display); color: var(--accent); font-size: 1.05rem; }
.work-metrics div span { font-family: var(--font-label); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.work-card__cta { margin: 1.25rem 0 0; }

/* ---------- Story ---------- */
.story__grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 900px) { .story__grid { grid-template-columns: 0.8fr 1.2fr; } }
.story__media { position: relative; }
.story__photo {
  width: 100%;
  border: 1px solid var(--border-subtle);
  filter: grayscale(1);
  transition: filter 0.5s ease;
}
.story__media:hover .story__photo { filter: grayscale(0); }
.story__body p { font-size: 1rem; }
.story__quote {
  border-left: 2px solid var(--accent);
  padding: 0.25rem 0 0.25rem 1.5rem;
  margin: 1.75rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--text);
}
.founder { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.founder__name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.founder__role { font-family: var(--font-label); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.skills { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.75rem; }
.skills li {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

/* ---------- Connect ---------- */
.connect-layout { display: grid; gap: 2rem; }
@media (min-width: 900px) { .connect-layout { grid-template-columns: 1fr 1fr; align-items: start; } }
.contact-links { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  background: var(--surface);
  transition: border-color 0.2s;
}
.contact-link:hover { border-color: var(--accent); }
.contact-link__icon {
  width: 44px; height: 44px;
  border: 1px solid var(--border-subtle);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--accent);
}
.contact-link__label { display: block; font-family: var(--font-label); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.contact-link__value { display: block; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; margin-top: 0.15rem; }
.qr-card {
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 520px) { .qr-card { flex-direction: row; align-items: center; } }
.qr-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.qr-card p { font-size: 0.9rem; margin-bottom: 0.75rem; }
.qr-card__url { font-family: var(--font-display); font-weight: 700; color: var(--accent); font-size: 0.9rem; }
.qr-card__body .btn { margin-top: 0.25rem; }
.qr-card__img {
  border: 1px solid var(--border-subtle);
  padding: 0.5rem;
  background: var(--bg);
  align-self: center;
  flex-shrink: 0;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border-subtle); padding-block: 3rem; }
.site-footer__inner { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .site-footer__inner { grid-template-columns: 1.4fr 2fr; } }
.site-footer__brand p { font-size: 0.9rem; color: var(--text-muted); margin: 1rem 0 0; max-width: 20rem; }
.site-footer__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.site-footer__nav h5 {
  font-family: var(--font-label);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.9rem;
}
.site-footer__nav a { display: block; text-decoration: none; font-size: 0.85rem; color: var(--text-secondary); padding: 0.2rem 0; }
.site-footer__nav a:hover { color: var(--accent); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}
.site-footer__bottom small { color: var(--text-muted); font-size: 0.8rem; }
.site-footer__links { display: flex; gap: 1.25rem; }
.site-footer__links a { text-decoration: none; font-size: 0.8rem; color: var(--text-secondary); }
.site-footer__links a:hover { color: var(--accent); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- Rounded corners ---------- */
.service,
.work-card,
.qr-card,
.contact-link,
.hero__stats,
.phone,
.story__photo,
.connect-visual {
  border-radius: var(--radius);
  overflow: hidden;
}
.btn,
.theme-toggle,
.nav-toggle,
.contact-link__icon,
.qr-card__img,
.qr-card .btn {
  border-radius: var(--radius-sm);
}
.service__tags li,
.product__tags li,
.work-pill,
.skills li {
  border-radius: var(--radius-pill);
}
.work-card__thumb { border-radius: 0; }
