/* Layout and palette modelled on the AngelList homepage (dark teal hero, lavender accents,
   stacked light cards with large rounded top corners). Content and artwork are original. */

:root {
  --bg: #001d21;
  --bg-2: #0a2a2e;
  --light: #f9f9f7;
  --lav: #bdbbff;
  --card: #f3f4f2;
  --inner: #ebeceb;
  --ink: #001d21;
  --muted: #6b7c7e;
  --muted-light: #b2bfc1;
  --ease: 0.2s ease;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px; line-height: 24px; letter-spacing: -0.03px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 400; }

/* ---------- header ---------- */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 14px 28px; pointer-events: none; }
.header > * { pointer-events: auto; }
.logo { color: var(--light); font-size: 21px; letter-spacing: -0.4px; display: flex; align-items: center; gap: 8px; }
.header .logo { background: rgba(10,42,46,.92); backdrop-filter: blur(8px); border-radius: 16px; padding: 5px 16px 5px 5px; font-size: 18px; }
.logo, .hright, .navpill { white-space: nowrap; }
.logo-img { width: 38px; height: 36px; border-radius: 3px; flex: none; }
.navpill { display: flex; align-items: center; gap: 4px; background: rgba(10,42,46,.92); backdrop-filter: blur(8px); border-radius: 16px; padding: 8px 12px; color: var(--light); font-size: 13px; }
.navpill a { padding: 8px 12px; border-radius: 8px; transition: background var(--ease); }
.navpill a:hover { background: rgba(255,255,255,.08); }
.navpill hr { width: 1px; height: 22px; border: 0; background: rgba(255,255,255,.2); margin: 0 8px; }
.hright { display: flex; align-items: center; gap: 16px; color: var(--light); font-size: 14px; background: rgba(10,42,46,.92); backdrop-filter: blur(8px); border-radius: 16px; padding: 6px 6px 6px 18px; }
.btn { display: inline-block; border-radius: 4px; padding: 10px 16px; transition: background var(--ease), transform var(--ease); }
.btn-lav { background: var(--lav); color: var(--ink); }
.btn-lav:hover { background: #cfceff; }
.btn-white { background: var(--light); color: var(--ink); }
.btn-white:hover { background: #fff; }
.btn-dark { background: var(--bg); color: var(--light); }
.btn-dark:hover { background: #0a2a2e; }
.btn-line { border: 1px solid rgba(0,29,33,.25); }
.btn-line:hover { background: rgba(0,29,33,.06); }

/* ---------- hero ---------- */
.hero { background: var(--bg); color: var(--light); text-align: center; padding: 168px 24px 0; position: relative; }
.hero h1 {
  font-size: clamp(42px, 7.2vw, 69.6px); line-height: 1.05; letter-spacing: -0.01em;
  color: var(--lav); max-width: 860px; margin: 0 auto 28px;
}
.hero p.lede { color: var(--muted-light); font-size: 18px; line-height: 28.8px; max-width: 640px; margin: 0 auto 40px; }
.hero .btn { padding: 14px 20px; }
.facts { max-width: 1080px; margin: 96px auto 0; display: grid; grid-template-columns: repeat(6, 1fr); align-items: center; padding-bottom: 72px; }
.fact { text-align: center; color: var(--muted-light); font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; padding: 8px 12px; border-left: 1px solid rgba(255,255,255,.15); }
.fact:first-child { border-left: 0; text-transform: none; letter-spacing: -0.5px; font-size: 30px; color: var(--muted-light); }
.fact:first-child small { display: block; font-size: 11px; letter-spacing: 0; text-transform: none; margin-top: 4px; }

/* ---------- stacked cards ---------- */
.stack { background: var(--bg); }
.card {
  position: sticky; top: 0;
  background: var(--card);
  border-radius: 40px 40px 0 0;
  padding: 32px 28px 56px;
  min-height: 92vh;
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px;
  margin-top: -1px;
  box-shadow: 0 -1px 0 rgba(0,29,33,.04);
}
.card:nth-child(1) { top: 0; }
.card:nth-child(2) { top: 14px; }
.card:nth-child(3) { top: 28px; }
.card:nth-child(4) { top: 42px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 15px; margin-bottom: 72px; }
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.card h2 { font-size: clamp(40px, 5.2vw, 53.5px); line-height: 1.15; letter-spacing: -0.8px; margin-bottom: 28px; }
.card .copy p { color: var(--muted); font-size: 18px; line-height: 28.8px; max-width: 460px; margin-bottom: 28px; }
.card .acts { display: flex; gap: 10px; flex-wrap: wrap; }
.card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.card .tags span { background: var(--inner); border-radius: 999px; padding: 6px 14px; font-size: 14px; }

.panel { background: var(--bg); border-radius: 12px; padding: 36px; display: grid; place-items: center; min-height: 440px; align-self: stretch; overflow: hidden; }
.mock { background: #fff; border-radius: 8px; width: 100%; max-width: 560px; padding: 22px 24px; color: var(--ink); box-shadow: 0 30px 60px rgba(0,0,0,.35); font-size: 13px; }
.mock .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mock .badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: #3c7a52; }
.mock .badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4cae6d; }
.mock h4 { font-weight: 400; font-size: 22px; letter-spacing: -0.4px; margin-bottom: 4px; }
.mock .sub { color: var(--muted); font-size: 12px; margin-bottom: 18px; }
.mock .tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--inner); font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.mock .tabs span { padding-bottom: 8px; }
.mock .tabs .on { color: var(--ink); border-bottom: 1.5px solid var(--ink); }
.mock .line { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--inner); }
.mock .line:last-child { border-bottom: 0; }
.mock .pill { font-size: 11px; border-radius: 999px; padding: 3px 10px; background: var(--inner); }
.mock .pill.lav { background: var(--lav); }
.mock .pill.ok { background: #d9efe0; color: #2d6a45; }
.mock .bar { height: 6px; border-radius: 3px; background: var(--inner); overflow: hidden; margin-top: 6px; }
.mock .bar i { display: block; height: 100%; background: var(--lav); }
.mock .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.mock .stat { background: var(--card); border-radius: 8px; padding: 12px; }
.mock .stat small { color: var(--muted); display: block; margin-bottom: 4px; }
.mock .stat b { font-weight: 400; font-size: 20px; letter-spacing: -0.4px; }
.mock svg { width: 100%; height: auto; }

/* ---------- process + cta ---------- */
.process { background: var(--card); border-radius: 0; padding: 40px 28px 96px; position: relative; }
.process .wrap { max-width: 1080px; margin: 0 auto; }
.process h2 { font-size: clamp(36px, 4.6vw, 53.5px); line-height: 1.15; letter-spacing: -0.8px; max-width: 700px; margin-bottom: 56px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.step { background: var(--inner); border-radius: 12px; padding: 24px; min-height: 230px; display: flex; flex-direction: column; justify-content: space-between; }
.step span { font-size: 14px; color: var(--muted); }
.step h3 { font-size: 24px; line-height: 28px; letter-spacing: -0.4px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; line-height: 22px; }

.cta { background: var(--bg); color: var(--light); text-align: center; padding: 140px 24px 120px; border-radius: 40px 40px 0 0; margin-top: -1px; position: relative; }
.cta h2 { font-size: clamp(40px, 6vw, 69.6px); line-height: 1.05; letter-spacing: -0.01em; color: var(--lav); max-width: 820px; margin: 0 auto 28px; }
.cta p { color: var(--muted-light); font-size: 18px; line-height: 28.8px; max-width: 520px; margin: 0 auto 36px; }
.cta .acts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta .btn { padding: 14px 20px; }
.cta .btn-ghost { border: 1px solid rgba(255,255,255,.28); color: var(--light); }
.cta .btn-ghost:hover { background: rgba(255,255,255,.08); }

/* ---------- footer ---------- */
.footer { background: var(--bg); color: var(--muted-light); padding: 0 28px 48px; font-size: 13px; line-height: 20px; }
.footer .row { max-width: 1080px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,.12); padding-top: 36px; display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer .links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer .links a:hover { color: var(--light); }
.footer .fine { max-width: 1080px; margin: 28px auto 0; font-size: 12px; opacity: .75; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .navpill { display: none; }
  .card { grid-template-columns: 1fr; gap: 32px; min-height: 0; position: relative; top: 0 !important; margin-top: -24px; }
  .eyebrow { margin-bottom: 36px; }
  .panel { min-height: 0; padding: 20px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: repeat(3, 1fr); row-gap: 16px; }
  .fact:nth-child(4) { border-left: 0; }
  .hright a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  .header { padding: 12px 16px; }
  .hero { padding-top: 128px; }
  .steps { grid-template-columns: 1fr; }
  .card { padding: 24px 16px 40px; border-radius: 28px 28px 0 0; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(4) { border-left: 1px solid rgba(255,255,255,.15); }
  .fact:nth-child(odd) { border-left: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card { position: relative; } }

/* ---------- text-message modal ---------- */
.modal { margin: auto; border: 0; padding: 0; background: transparent; max-width: min(520px, calc(100vw - 32px)); width: 100%; max-height: calc(100vh - 32px); overflow: visible; color: var(--ink); }
.modal::backdrop { background: rgba(0, 20, 23, .72); backdrop-filter: blur(4px); }
.modal-box { position: relative; background: var(--card); border-radius: 24px; padding: 32px 28px 24px; max-height: calc(100vh - 32px); overflow-y: auto; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--inner); font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); }
.modal-x:hover { background: #dfe0df; }
.modal-eyebrow { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 14px; }
.modal-eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.modal h2 { font-size: 32px; line-height: 1.1; letter-spacing: -0.6px; margin-bottom: 10px; }
.modal-lead { color: var(--muted); font-size: 15px; line-height: 22px; margin-bottom: 22px; }
.field { display: block; font-size: 14px; margin: 14px 0 6px; }
.field span { color: var(--muted); }
.modal input, .modal textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #d4d8d6; border-radius: 8px; padding: 12px 14px; resize: vertical; }
.modal input:focus, .modal textarea:focus { outline: 2px solid var(--lav); outline-offset: 1px; border-color: var(--ink); }
.modal input[aria-invalid="true"] { border-color: #b3261e; }
.field-error { color: #b3261e; font-size: 13px; margin-top: 6px; }
.preview { background: var(--inner); border-radius: 8px; padding: 12px 14px; font-size: 15px; line-height: 22px; word-break: break-word; }
.modal-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.modal-acts .btn { padding: 12px 18px; }
.modal-note { color: var(--muted); font-size: 12.5px; line-height: 18px; margin-top: 14px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; }
@media (max-width: 560px) { .modal-box { padding: 28px 18px 20px; } .modal h2 { font-size: 26px; } }

/* ---------- photo panels, work gallery, about ---------- */
.panel.photo { position: relative; padding: 0; background: var(--bg); }
.panel.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cap { position: absolute; left: 14px; bottom: 14px; background: rgba(10,42,46,.88); color: var(--light); font-size: 13px; padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(6px); }

.work { background: var(--card); border-radius: 40px 40px 0 0; padding: 96px 28px 40px; margin-top: -1px; position: relative; }
.wrap { max-width: 1080px; margin: 0 auto; }
.work .eyebrow, .about .eyebrow { margin-bottom: 20px; }
.work h2, .about h2 { font-size: clamp(36px, 4.6vw, 53.5px); line-height: 1.15; letter-spacing: -0.8px; margin-bottom: 16px; }
.lead { color: var(--muted); font-size: 18px; line-height: 28.8px; max-width: 520px; margin-bottom: 40px; }
.gallery { display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: 280px 280px; gap: 12px; }
.gallery figure, .gallery .empty { margin: 0; border-radius: 12px; overflow: hidden; position: relative; background: var(--bg); }
.gallery .g1 { grid-row: 1 / span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(10,42,46,.88); color: var(--light); font-size: 13px; padding: 6px 12px; border-radius: 999px; }
.empty { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 28px; border: 1px dashed rgba(0,29,33,.3); background: transparent !important; color: var(--ink); }
.empty span { color: var(--muted); font-size: 15px; line-height: 22px; }

.about { background: var(--card); padding: 56px 28px 40px; position: relative; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-photo { min-height: 340px; border-radius: 12px; }
.about p { color: var(--muted); font-size: 18px; line-height: 28.8px; margin-bottom: 24px; max-width: 480px; }

@media (max-width: 900px) {
  .gallery { grid-template-columns: 1fr; grid-template-rows: 260px 220px auto; }
  .gallery .g1 { grid-row: auto; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-photo { min-height: 220px; }
  .panel.photo { min-height: 260px; }
}
