:root {
    --bg: #f1f4f8;
    --ink: #3a4a61;
    --muted: #6f7d92;
    --line: #d3dce6;
    --accent: #68a0d3;
    --card: #fbfcfe;
  }

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

  html { scroll-behavior: smooth; scroll-padding-top: 120px; }

  body {
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', system-ui, sans-serif;
    font-weight: 300;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  .wrap { max-width: 1080px; margin: 0 auto; padding: 0 32px; }

  /* --- Header --- */
  .topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(241, 244, 248, 0.82);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
  }
  .topbar.scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 6px 24px -18px rgba(58,74,97,0.5);
  }
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
  }
  .logo img {
    height: 120px;
    width: auto;
    display: block;
  }
  @media (max-width: 600px) { .logo img { height: 80px; } }
  nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-left: 28px;
    transition: color 0.25s ease;
  }
  nav a:hover { color: var(--ink); }
  @media (max-width: 600px) { nav { display: none; } }

  /* --- Hero --- */
  .hero { padding: 80px 0 100px; }
  .eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 28px;
  }
  .hero h1 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    font-size: clamp(2.6rem, 7vw, 5.2rem);
    line-height: 1.04;
    letter-spacing: -0.02em;
    max-width: 14ch;
  }
  .hero h1 em {
    font-style: italic;
    color: var(--accent);
  }
  .hero p {
    margin-top: 32px;
    max-width: 48ch;
    font-size: 1.12rem;
    color: var(--muted);
  }

  /* --- Reveal animation --- */
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }
  @keyframes rise {
    to { opacity: 1; transform: translateY(0); }
  }
  .d1 { animation-delay: 0.05s; }
  .d2 { animation-delay: 0.18s; }
  .d3 { animation-delay: 0.31s; }
  .d4 { animation-delay: 0.44s; }

  /* --- Divider --- */
  .rule { height: 1px; background: var(--line); margin: 0; }

  /* --- Story --- */
  .story {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 64px;
    padding: 90px 0;
    align-items: start;
  }
  .story h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 500;
    font-size: 2rem;
    line-height: 1.15;
    letter-spacing: -0.01em;
  }
  .story .body p { margin-bottom: 20px; color: #424f63; font-size: 1.05rem; }
  .story .body p:last-child { margin-bottom: 0; }
  @media (max-width: 760px) {
    .story { grid-template-columns: 1fr; gap: 28px; padding: 64px 0; }
  }

  /* --- Values --- */
  .values { padding: 90px 0; }
  .values h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 500;
    font-size: 2rem;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 40px;
  }
  .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
  .card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 34px 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px -22px rgba(58,74,97,0.4);
  }
  .card .num {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    color: var(--accent);
    font-size: 1.4rem;
    margin-bottom: 16px;
  }
  .card h3 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 500;
    font-size: 1.3rem;
    margin-bottom: 10px;
  }
  .card p { color: var(--muted); font-size: 0.98rem; }
  @media (max-width: 760px) {
    .values { padding: 64px 0; }
    .grid { grid-template-columns: 1fr; }
  }

  /* --- What we do --- */
  .whatwedo { padding: 90px 0; }
  .whatwedo h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 500;
    font-size: 2rem;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 18px;
  }
  .whatwedo-intro {
    max-width: 58ch;
    color: var(--muted);
    font-size: 1.05rem;
    margin-bottom: 48px;
  }
  .whatwedo-intro strong { color: var(--ink); font-weight: 500; }

  .wwd-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: start;
  }
  .wwd-col { display: flex; flex-direction: column; gap: 12px; }
  .wwd-head {
    text-align: center;
    background: rgba(104, 160, 211, 0.10);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 28px 20px 22px;
  }
  .wwd-icon { color: var(--accent); display: inline-flex; margin-bottom: 12px; }
  .wwd-icon svg { width: 34px; height: 34px; }
  .wwd-head h3 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 500;
    font-size: 1.2rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--ink);
  }
  .wwd-items { list-style: none; display: flex; flex-direction: column; gap: 12px; }
  .wwd-items li {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
    text-align: center;
    font-size: 0.97rem;
    color: #424f63;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  }
  .wwd-items li:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 14px 32px -22px rgba(58,74,97,0.45);
  }
  /* Items that expand to show an image */
  .wwd-items li.has-img { padding: 0; }
  .wwd-items li.has-img summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    color: var(--ink);
    transition: color 0.2s ease;
  }
  .wwd-items li.has-img summary::-webkit-details-marker { display: none; }
  .wwd-items li.has-img summary::after {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 1.5px solid var(--accent);
    border-bottom: 1.5px solid var(--accent);
    transform: rotate(45deg);
    transition: transform 0.25s ease;
    flex: none;
  }
  .wwd-items li.has-img details[open] summary::after { transform: rotate(-135deg); }
  .wwd-items li.has-img summary:hover { color: var(--accent); }
  .wwd-items li.has-img img {
    display: block;
    width: 100%;
    height: auto;
    border-top: 1px solid var(--line);
    border-radius: 0 0 11px 11px;
  }
  .wwd-items li.has-img:hover { transform: none; }
  .wwd-items li.has-img:has(details[open]) {
    border-color: var(--accent);
    box-shadow: 0 14px 32px -22px rgba(58,74,97,0.45);
    overflow: hidden;
  }
  @media (max-width: 760px) {
    .whatwedo { padding: 64px 0; }
    .wwd-grid { grid-template-columns: 1fr; gap: 22px; }
  }

  /* --- CTA --- */
  .cta {
    text-align: center;
    padding: 110px 0 90px;
  }
  .cta h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    font-size: clamp(2rem, 5vw, 3.2rem);
    letter-spacing: -0.02em;
    margin-bottom: 36px;
  }
  .btn {
    display: inline-block;
    background: var(--ink);
    color: var(--bg);
    text-decoration: none;
    padding: 16px 38px;
    border-radius: 100px;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
    transition: background 0.25s ease, transform 0.25s ease;
  }
  .btn:hover { background: var(--accent); transform: translateY(-2px); }

  /* --- Footer --- */
  footer {
    padding: 40px 0 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 0.85rem;
  }
  footer a { color: var(--muted); text-decoration: none; }
  footer a:hover { color: var(--ink); }
  @media (max-width: 600px) { footer { flex-direction: column; gap: 12px; text-align: center; } }

  /* --- Subpage prose --- */
  .page { padding: 80px 0 40px; }
  .page .eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
  }
  .page h1 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 36px;
  }
  .prose { max-width: 68ch; }
  .prose h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 500;
    font-size: 1.45rem;
    margin: 40px 0 14px;
    letter-spacing: -0.01em;
  }
  .prose p { margin-bottom: 18px; color: #424f63; font-size: 1.05rem; }
  .prose a { color: var(--accent); text-decoration: none; }
  .prose a:hover { text-decoration: underline; }
  .prose .meta { color: var(--muted); font-size: 0.92rem; }

  /* --- Form --- */
  .form { max-width: 520px; margin-top: 8px; }
  .form label {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    margin: 18px 0 7px;
    letter-spacing: 0.01em;
  }
  .form input, .form textarea {
    width: 100%;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 13px 15px;
    font: inherit;
    font-weight: 300;
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  .form input:focus, .form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(104,160,211,0.18);
  }
  .form textarea { resize: vertical; min-height: 130px; }
  .form .btn { margin-top: 24px; border: none; cursor: pointer; }

  /* --- Captcha --- */
  .captcha {
    margin-top: 24px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px 18px 16px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
  }
  .captcha.verified {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(104,160,211,0.16);
  }
  .captcha-label {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    letter-spacing: 0.01em;
    margin-bottom: 12px;
  }
  .captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }
  .captcha-q {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.15rem;
    color: var(--ink);
    letter-spacing: 0.02em;
    user-select: none;
  }
  .captcha-row input {
    width: 90px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 11px 14px;
    font: inherit;
    font-weight: 300;
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  .captcha-row input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(104,160,211,0.18);
  }
  .captcha-row input:disabled { opacity: 0.6; }
  .captcha-btn {
    background: var(--ink);
    color: var(--bg);
    border: none;
    border-radius: 100px;
    padding: 11px 24px;
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
  }
  .captcha-btn:hover { background: var(--accent); transform: translateY(-1px); }
  .captcha-btn:disabled { opacity: 0.5; cursor: default; transform: none; background: var(--muted); }
  .captcha-msg {
    display: block;
    min-height: 1.2em;
    margin-top: 10px;
    font-size: 0.85rem;
  }
  .captcha-msg.success { color: #2f9e63; }
  .captcha-msg.error { color: #c0506a; }

  /* Send button stays hidden until the captcha is solved */
  .btn.hidden { display: none; }

  /* Honeypot: visually & functionally hidden from real users, still in the DOM for bots */
  .hp-field {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
