/* Stoneferry agency styles + Astryx-inspired rhythm */

    :root {
      --ink: #161814;
      --pine: #16352c;
      --pine-2: #1f4a3e;
      --moss: #3d6a58;
      --copper: #c0562a;
      --copper-2: #a64620;
      --sand: #f3ede2;
      --paper: #faf7f1;
      --card: #fffcf7;
      --line: rgba(22, 24, 20, 0.12);
      --muted: #5b5a52;
      --max: 1120px;
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      font-family: "Outfit", system-ui, sans-serif;
      color: var(--ink);
      background: var(--paper);
      line-height: 1.6;
      font-size: 17px;
    }
    img { max-width: 100%; display: block; }
    a { color: inherit; }
    .wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
    .btn {
      display: inline-flex; align-items: center; justify-content: center; gap: 8px;
      background: var(--copper); color: #fff; text-decoration: none;
      font-weight: 600; letter-spacing: .01em;
      padding: 14px 22px; border-radius: 999px; border: 0; cursor: pointer;
      font-family: inherit; font-size: 15px; transition: background .2s, transform .2s;
    }
    .btn:hover { background: var(--copper-2); }
    .btn-ghost {
      background: transparent; color: var(--ink);
      border: 1px solid var(--line);
    }
    .btn-ghost:hover { background: #fff; }
    .btn-light { background: #fff; color: var(--pine); }
    .btn-light:hover { background: var(--sand); }
    /* Header */
    header {
      position: sticky; top: 0; z-index: 20;
      background: rgba(250, 247, 241, .9);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--line);
    }
    .nav {
      display: flex; align-items: center; justify-content: space-between;
      height: 72px;
    }
    .logo {
      display: flex; align-items: center; gap: 10px;
      font-weight: 700; text-decoration: none; letter-spacing: -.02em;
      font-size: 18px;
    }
    .mark {
      width: 32px; height: 32px; border-radius: 9px;
      background: var(--pine); color: var(--sand);
      display: grid; place-items: center;
    }
    .mark svg { width: 18px; height: 18px; }
    nav ul { display: flex; gap: 26px; list-style: none; }
    nav a { text-decoration: none; font-size: 14.5px; color: var(--muted); font-weight: 500; }
    nav a:hover { color: var(--ink); }
    .nav-cta { display: flex; align-items: center; gap: 10px; }
    .menu-btn {
      display: none; background: none; border: 1px solid var(--line);
      width: 42px; height: 42px; border-radius: 10px; cursor: pointer;
    }
    /* Hero */
    .hero {
      background:
        radial-gradient(900px 420px at 85% -10%, rgba(192,86,42,.16), transparent 55%),
        linear-gradient(180deg, #ece6d8 0%, var(--paper) 100%);
      padding: 72px 0 56px;
      overflow: hidden;
    }
    .hero-grid {
      display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
    }
    .eyebrow {
      display: inline-flex; align-items: center; gap: 8px;
      font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
      color: var(--moss);
      margin-bottom: 16px;
    }
    h1, h2, h3 { font-family: "Fraunces", Georgia, serif; letter-spacing: -.03em; line-height: 1.12; }
    h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 600; max-width: 16ch; }
    .lede { margin: 20px 0 28px; color: var(--muted); font-size: 19px; max-width: 42ch; }
    .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
    .fine { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
    .hero-card {
      background: var(--pine); color: #e8efe9; border-radius: 24px;
      padding: 28px; box-shadow: 0 24px 50px rgba(22, 53, 44, .28);
      position: relative;
    }
    .hero-card h2, .hero-card h3 { color: #fff; font-size: 22px; margin-bottom: 8px; }
    .hero-card p { color: #c5d4cc; font-size: 14.5px; }
    .mock {
      margin-top: 20px; background: #10241e; border-radius: 14px; overflow: hidden;
      border: 1px solid rgba(255,255,255,.08);
    }
    .mock-bar { display: flex; gap: 6px; padding: 10px 12px; background: #0c1c18; }
    .mock-bar i { width: 8px; height: 8px; border-radius: 50%; background: #3c5c52; display: block; }
    .mock-body { padding: 16px; }
    .mock-line { height: 10px; border-radius: 6px; background: #2a4a40; margin-bottom: 8px; }
    .mock-line.w80 { width: 80%; } .mock-line.w60 { width: 60%; } .mock-line.w40 { width: 40%; }
    .mock-cta { margin-top: 12px; height: 28px; width: 110px; border-radius: 20px; background: var(--copper); }
    .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
    .chip {
      font-size: 12px; padding: 6px 10px; border-radius: 999px;
      background: rgba(255,255,255,.08); color: #d5e2db;
    }
    /* Sections */
    section { padding: 84px 0; }
    .section-head { max-width: 620px; margin-bottom: 40px; }
    .section-head h2 { font-size: clamp(32px, 4vw, 46px); margin: 8px 0 12px; }
    .section-head p { color: var(--muted); }
    .label { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--copper); }
    /* Services */
    #services { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .card {
      background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px;
    }
    .card h3 { font-size: 22px; margin: 10px 0 8px; }
    .card p { color: var(--muted); font-size: 15.5px; }
    .icon {
      width: 42px; height: 42px; border-radius: 12px;
      background: var(--sand); color: var(--pine);
      display: grid; place-items: center;
    }
    .icon svg { width: 22px; height: 22px; }
    /* Pricing */
    .plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
    .plan {
      background: #fff; border: 1px solid var(--line); border-radius: 20px;
      padding: 28px 24px; display: flex; flex-direction: column;
    }
    .plan.featured {
      background: var(--pine); color: #fff; border-color: var(--pine);
      transform: translateY(-8px); box-shadow: 0 20px 40px rgba(22,53,44,.22);
    }
    .plan.featured p, .plan.featured li { color: #d4e0d9; }
    .badge {
      display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em;
      text-transform: uppercase; background: var(--copper); color: #fff;
      padding: 5px 9px; border-radius: 999px; margin-bottom: 10px;
    }
    .price { font-family: "Fraunces", serif; font-size: 40px; letter-spacing: -.03em; margin: 6px 0 2px; }
    .price span { font-size: 18px; font-family: Outfit, sans-serif; font-weight: 500; opacity: .8; }
    .cadence { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
    .plan.featured .cadence { color: #c5d4cc; }
    .plan ul { list-style: none; margin: 8px 0 24px; flex: 1; }
    .plan li { padding: 7px 0 7px 22px; position: relative; font-size: 14.5px; }
    .plan li:before { content: ""; position: absolute; left: 0; top: 14px; width: 10px; height: 6px; border-left: 2px solid var(--moss); border-bottom: 2px solid var(--moss); transform: rotate(-45deg); }
    .plan.featured li:before { border-color: #e2b08a; }
    .plan .btn { width: 100%; }
    .pricing-note { margin-top: 22px; font-size: 14px; color: var(--muted); max-width: 70ch; }
    /* Process */
    .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
    .step { padding: 8px 8px 0 0; }
    .num {
      font-family: "Fraunces", serif; font-size: 36px; color: var(--copper); line-height: 1;
      margin-bottom: 10px;
    }
    .step h3 { font-size: 20px; margin-bottom: 8px; }
    .step p { color: var(--muted); font-size: 15px; }
    /* Portfolio */
    #work { background: var(--pine); color: #eef3f0; }
    #work .label { color: #e2b08a; }
    #work .section-head p { color: #c5d4cc; }
    .sample-banner {
      display: inline-block; background: #c0562a; color: #fff;
      font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
      padding: 6px 10px; border-radius: 999px; margin-bottom: 12px;
    }
    .samples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .sample { background: #10241e; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); }
    .sample-art { height: 180px; padding: 18px; }
    .sample figcaption, .sample-caption { padding: 16px 18px 20px; }
    .sample h3 { font-size: 20px; color: #fff; margin: 0 0 6px; }
    .sample p { color: #b7c7bf; font-size: 14px; }
    /* FAQ */
    details {
      border-bottom: 1px solid var(--line); padding: 16px 0;
    }
    summary {
      cursor: pointer; font-weight: 600; list-style: none;
      display: flex; justify-content: space-between; align-items: center; gap: 16px;
    }
    summary::-webkit-details-marker { display: none; }
    summary:after { content: "+"; font-size: 22px; color: var(--copper); font-weight: 400; }
    details[open] summary:after { content: "–"; }
    details p { color: var(--muted); margin-top: 10px; max-width: 70ch; }
    /* Contact */
    #contact { background: var(--sand); }
    .contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
    form {
      background: #fff; border-radius: 20px; padding: 28px; border: 1px solid var(--line);
      display: grid; gap: 14px;
    }
    label { font-size: 13px; font-weight: 600; }
    input, select, textarea {
      width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 10px;
      border: 1px solid var(--line); font: inherit; background: var(--paper); color: var(--ink);
    }
    textarea { min-height: 120px; resize: vertical; }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .form-note {
      font-size: 13px; color: var(--muted); background: var(--sand);
      border-radius: 10px; padding: 10px 12px;
    }
    .form-status { font-size: 14px; color: var(--moss); display: none; }
    footer {
      background: var(--ink); color: #c9c6bc; padding: 36px 0;
      font-size: 14px;
    }
    .foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
    footer a { color: #eeeae2; }
    .logo { white-space: nowrap; }
    @media (max-width: 900px) {
      nav ul, .nav-cta .btn-ghost { display: none; }
      .menu-btn { display: grid; place-items: center; }
      nav.open ul {
        display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 72px;
        background: var(--paper); padding: 16px 20px 20px; border-bottom: 1px solid var(--line); gap: 14px;
      }
      .hero-grid, .cards, .plans, .steps, .samples, .contact-grid, .form-row { grid-template-columns: 1fr; }
      .plan.featured { transform: none; }
      .hero { padding: 48px 0 40px; }
      section { padding: 64px 0; }
    }
    @media (max-width: 640px) {
      .nav-cta .btn { display: none; }
    }
  
    .sample-caption { padding: 16px 18px 20px; }
    .sample figcaption, .sample-caption { padding: 16px 18px 20px; }


    /* Quality-pass additions: Astryx control rhythm, modern-web focus, forms, FAQ, samples */
    :root {
      --space-0: 0; --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem;
      --space-4: 1rem; --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem;
      --control-min: 2.75rem; --measure: 65ch;
      --label: #8a3a18;
    }
    .label { color: var(--label); }
    .btn, .btn-ghost, .btn-light, .menu-btn, button.btn {
      min-height: var(--control-min);
      min-width: var(--control-min);
    }
    nav a { min-height: var(--control-min); display: inline-flex; align-items: center; }
    nav ul { list-style: none; }
    header { z-index: 30; }
    :focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
    .btn:focus-visible { outline-color: var(--copper); }
    .plan.featured .btn:focus-visible,
    #work :focus-visible { outline-color: #e2b08a; }
    input, select, textarea { min-height: var(--control-min); }
    textarea { min-height: 7.5rem; }
    input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: #8b1e0e; }
    .field-error { color: #8b1e0e; font-size: 13px; margin-top: 4px; }
    summary { min-height: var(--control-min); }
    .section-head p, .lede, details p, .pricing-note { max-width: var(--measure); }
    .sample-link { display: block; color: inherit; text-decoration: none; height: 100%; }
    .sample-link:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
    .sample { transition: transform .2s ease, box-shadow .2s ease; }
    .sample:hover { transform: translateY(-2px); }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      .sample, .btn, .plan.featured { transition: none; transform: none; }
    }
