:root {
      --navy: #1F3A5F;
      --navy-deep: #152A45;
      --navy-dark: #111D2E;
      --brass: #A8874A;
      --brass-light: #C9AE78;
      --brass-text: #86683A;
      --paper: #F8F6F1;
      --white: #FFFFFF;
      --card: #EFEBE1;
      --ink: #1B2433;
      --ink-soft: #4E5663;
      --line: #DDD6C6;

      --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
      --sans: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
      scroll-padding-top: 80px;
    }

    body {
      margin: 0;
      background: var(--paper);
      color: var(--ink);
      font-family: var(--sans);
      font-size: 17px;
      line-height: 1.65;
      -webkit-font-smoothing: antialiased;
    }

    h1,
    h2,
    h3,
    h4 {
      font-family: var(--serif);
      font-weight: 500;
      color: var(--ink);
      margin: 0;
      line-height: 1.2;
    }

    a {
      color: inherit;
    }

    img {
      max-width: 100%;
      display: block;
    }

    .wrap {
      max-width: 1140px;
      margin: 0 auto;
      padding: 0 32px;
    }

    @media (max-width:520px) {
      .wrap {
        padding: 0 20px;
      }
    }

    /* ---------- header ---------- */
    header {
      position: sticky;
      top: 0;
      z-index: 50;
      background: rgba(248, 246, 241, 0.94);
      backdrop-filter: blur(6px);
      border-bottom: 1px solid var(--line);
    }

    .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      padding: 14px 32px;
      max-width: 1140px;
      margin: 0 auto;
    }

    .logo-lockup {
      display: flex;
      align-items: center;
      gap: 14px;
      text-decoration: none;
      color: var(--ink);
    }

    .logo-mark {
      width: 38px;
      height: 38px;
      fill: none;
      stroke: var(--navy);
      stroke-width: 1.6;
      stroke-linecap: round;
      stroke-linejoin: round;
      flex-shrink: 0;
    }

    .wordmark {
      display: flex;
      flex-direction: column;
      line-height: 1.1;
    }

    .wordmark-name {
      font-family: var(--serif);
      font-weight: 500;
      font-size: 1.3rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--ink);
      white-space: nowrap;
    }

    .wordmark-sub {
      font-family: var(--serif);
      font-size: 0.72rem;
      letter-spacing: 0.34em;
      text-transform: uppercase;
      color: var(--brass);
      margin-top: 4px;
    }

    .nav-links-desktop {
      display: flex;
      align-items: center;
      gap: 28px;
    }

    nav ul {
      display: flex;
      gap: 26px;
      list-style: none;
      margin: 0;
      padding: 0;
    }

    nav a {
      text-decoration: none;
      font-size: 0.92rem;
      color: var(--ink-soft);
      font-weight: 500;
      position: relative;
      padding-bottom: 3px;
      white-space: nowrap;
    }

    nav a:hover {
      color: var(--ink);
    }

    nav a::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: 0;
      width: 0;
      height: 1px;
      background: var(--brass);
      transition: width .25s ease;
    }

    nav a:hover::after {
      width: 100%;
    }

    .nav-cta {
      display: inline-block;
      font-size: 0.85rem;
      font-weight: 600;
      letter-spacing: 0.03em;
      background: var(--navy);
      color: #fff !important;
      padding: 10px 18px;
      border-radius: 2px;
      text-decoration: none;
      white-space: nowrap;
      transition: background .2s ease;
    }

    .nav-cta:hover {
      background: var(--navy-deep);
    }

    /* Drop the section links first so the header never wraps; keep the phone number longer */
    @media (max-width:900px) {
      nav li.nav-section {
        display: none;
      }
    }

    @media (max-width:780px) {
      .nav-links-desktop ul {
        display: none;
      }
    }

    @media (max-width:560px) {
      .header-inner {
        padding: 12px 20px;
      }

      .wordmark {
        display: none;
      }

      .logo-mark {
        width: 34px;
        height: 34px;
      }
    }

    /* ---------- sections ---------- */
    section {
      padding: 88px 0;
      border-bottom: 1px solid var(--line);
    }

    @media (max-width:640px) {
      section {
        padding: 60px 0;
      }
    }

    .kicker {
      display: block;
      font-family: var(--serif);
      font-size: 1.1rem;
      font-weight: 500;
      font-variant: small-caps;
      text-transform: lowercase;
      letter-spacing: 0.16em;
      color: var(--brass-text);
      margin-bottom: 14px;
    }

    .kicker::before {
      content: "";
      display: inline-block;
      width: 28px;
      height: 1px;
      background: var(--brass);
      vertical-align: middle;
      margin-right: 12px;
    }

    .split h2 {
      font-size: clamp(1.9rem, 3vw, 2.4rem);
      text-wrap: balance;
    }

    .nowrap {
      white-space: nowrap;
    }

    /* ---------- hero ---------- */
    .hero {
      padding: 72px 0;
      background:
        linear-gradient(to bottom, rgba(248, 246, 241, 0) 60%, var(--paper)),
        var(--white);
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1.1fr 0.9fr;
      gap: 48px;
      align-items: center;
    }

    .hero-art {
      width: 100%;
      height: auto;
      max-width: 520px;
      justify-self: end;
    }

    h1.headline {
      font-size: clamp(2.1rem, 3.6vw, 3rem);
      font-weight: 500;
      letter-spacing: -0.01em;
      line-height: 1.12;
      text-wrap: balance;
      margin-bottom: 28px;
    }

    .hero-sub {
      color: var(--ink-soft);
      font-size: 1.2rem;
      line-height: 1.6;
      margin: 0;
      max-width: 48ch;
    }

    @media (max-width:860px) {
      .hero {
        padding: 56px 0 48px;
      }

      .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
      }

      /* Headline and intro share one measure so they wrap in proportion */
      .hero-text {
        max-width: 620px;
      }

      .hero-sub {
        max-width: none;
      }

      .hero-art {
        justify-self: center;
        max-width: 400px;
      }
    }

    .btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-family: var(--sans);
      font-weight: 600;
      font-size: 0.95rem;
      letter-spacing: 0.03em;
      padding: 14px 26px;
      border-radius: 2px;
      text-decoration: none;
      border: 1px solid transparent;
      cursor: pointer;
      transition: background .2s ease, color .2s ease, border-color .2s ease;
    }

    .btn-primary {
      background: var(--navy);
      color: #fff;
    }

    .btn-primary:hover {
      background: var(--navy-deep);
    }

    /* ---------- closing call to action ---------- */
    .cta-final {
      padding: 72px 0;
      text-align: center;
      border-bottom: none;
    }

    .cta-final .btn {
      font-size: 1.05rem;
      padding: 16px 34px;
    }

    /* ---------- paired sections (turnkey / consulting) ---------- */
    .split {
      display: grid;
      grid-template-columns: 0.8fr 1.2fr;
      gap: 56px;
      align-items: start;
    }

    .split-body {
      border-left: 1px solid var(--brass);
      padding-left: 36px;
    }

    .split-body p {
      color: var(--ink-soft);
      font-size: 1.08rem;
      margin: 0 0 18px;
    }

    .split-body p.lead {
      font-family: var(--serif);
      font-style: italic;
      font-size: 1.45rem;
      color: var(--ink);
      line-height: 1.4;
      margin-bottom: 22px;
    }

    @media (max-width:820px) {
      .split {
        grid-template-columns: 1fr;
        gap: 32px;
      }

      .split-body {
        padding-left: 24px;
      }
    }

    .services-list {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .services-list li {
      position: relative;
      padding-left: 26px;
      font-size: 1.08rem;
      line-height: 1.5;
      color: var(--ink-soft);
    }

    .service-note {
      display: block;
      font-size: 0.92rem;
      color: #6F7682;
    }

    /* Brass diamond bullet */
    .services-list li::before {
      content: "";
      position: absolute;
      left: 3px;
      top: 0.62em;
      width: 7px;
      height: 7px;
      background: var(--brass);
      transform: rotate(45deg);
    }

    /* ---------- founder ---------- */
    .founder {
      display: grid;
      grid-template-columns: 150px 1fr;
      gap: 40px;
      align-items: start;
    }

    .avatar-mark {
      width: 130px;
      height: 130px;
      border: 1px solid var(--navy);
      outline: 1px solid var(--brass);
      outline-offset: -8px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .avatar-mark span {
      font-family: var(--serif);
      font-size: 2rem;
      color: var(--navy);
    }

    .founder h3 {
      font-size: 1.6rem;
      margin-bottom: 4px;
    }

    .founder .role {
      font-size: 0.8rem;
      color: var(--ink-soft);
      letter-spacing: 0.1em;
      text-transform: uppercase;
      margin-bottom: 16px;
      display: block;
    }

    .founder p {
      color: var(--ink-soft);
      max-width: 64ch;
      margin: 0 0 14px;
    }

    @media (max-width:700px) {
      .founder {
        grid-template-columns: 1fr;
      }

      .avatar-mark {
        width: 100px;
        height: 100px;
      }
    }

    /* ---------- footer ---------- */
    footer {
      background: var(--navy-dark);
      color: #8E9AAB;
      padding: 56px 0 32px;
      font-size: 0.92rem;
    }

    .footer-grid {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 24px;
      padding-bottom: 32px;
    }

    .footer-name {
      font-family: var(--serif);
      font-size: 1.35rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #fff;
    }

    .footer-tag {
      margin-top: 4px;
      color: var(--brass-light);
      font-family: var(--serif);
      font-style: italic;
      font-size: 1.02rem;
    }

    .footer-contact {
      display: flex;
      flex-direction: column;
      gap: 2px;
      text-align: right;
      font-style: normal;
      color: #D5DCE6;
    }

    .footer-contact a {
      color: #D5DCE6;
      text-decoration: none;
    }

    .footer-contact a:hover {
      color: #fff;
      text-decoration: underline;
    }

    @media (max-width:640px) {
      .footer-contact {
        text-align: left;
      }
    }

    .sig-block {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      flex-wrap: wrap;
      gap: 16px 40px;
      border-top: 1px solid #2A3A50;
      padding-top: 24px;
    }

    .footer-disclaimer {
      margin: 0;
      max-width: 70ch;
      font-size: 0.8rem;
      line-height: 1.55;
      color: #7D899A;
    }

    .footer-fine {
      font-size: 0.8rem;
      color: #7D899A;
    }

    a:focus-visible,
    button:focus-visible,
    .btn:focus-visible {
      outline: 2px solid var(--brass);
      outline-offset: 2px;
    }

    /* ===== Contact Dialog ===== */

    .floating-backdrop {
      position: fixed;
      inset: 0;
      z-index: 9998;
      background-color: rgba(17, 29, 46, 0.45);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.25s ease;
    }

    .floating-backdrop.active {
      opacity: 1;
      pointer-events: auto;
    }

    .floating-panel {
      position: fixed;
      top: 50%;
      left: 50%;
      z-index: 9999;
      width: 460px;
      max-width: calc(100vw - 2rem);
      max-height: calc(100vh - 4rem);
      background: var(--white);
      border-radius: 2px;
      border-top: 3px solid var(--brass);
      box-shadow: 0 24px 60px -12px rgba(17, 29, 46, 0.35);
      display: flex;
      flex-direction: column;
      overflow: hidden;

      /* Closed state */
      opacity: 0;
      pointer-events: none;
      transform: translate(-50%, calc(-50% + 12px));
      transition:
        opacity 0.25s ease,
        transform 0.25s ease;
    }

    .floating-panel.active {
      opacity: 1;
      pointer-events: auto;
      transform: translate(-50%, -50%);
    }

    /* Panel Header */
    .panel-head {
      padding: 1.5rem 1.75rem 1.25rem;
      background: var(--white);
      border-bottom: 1px solid var(--line);
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 1rem;
      flex-shrink: 0;
    }

    .panel-head-title {
      font-size: 1.6rem;
      margin: 0;
      color: var(--ink);
    }

    .panel-head-subtitle {
      font-size: 0.9rem;
      color: var(--ink-soft);
      margin-top: 2px;
    }

    .panel-close-btn {
      background: transparent;
      border: 1px solid transparent;
      cursor: pointer;
      color: var(--ink-soft);
      display: flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
      border-radius: 2px;
      transition: border-color 0.2s ease, color 0.2s ease;
      flex-shrink: 0;
    }

    .panel-close-btn:hover {
      color: var(--ink);
      border-color: var(--line);
    }

    .panel-close-btn svg {
      width: 16px;
      height: 16px;
    }

    /* Panel Body */
    .panel-form-wrap {
      flex: 1 1 auto;
      overflow-y: auto;
      padding: 1.5rem 1.75rem 1.75rem;
      background: var(--white);
    }

    .panel-form-wrap .form-group {
      margin-bottom: 1.15rem;
    }

    .panel-form-wrap .form-group:last-of-type {
      margin-bottom: 0;
    }

    .panel-form-wrap label {
      display: block;
      font-size: 0.75rem;
      font-weight: 600;
      color: var(--ink-soft);
      margin-bottom: 0.4rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }

    .panel-form-wrap label .required {
      color: var(--brass);
      margin-left: 2px;
    }

    .panel-form-wrap input,
    .panel-form-wrap textarea {
      width: 100%;
      padding: 0.7rem 0.85rem;
      border: 1px solid var(--line);
      border-radius: 2px;
      background: var(--paper);
      color: var(--ink);
      font-size: 0.98rem;
      font-family: inherit;
      transition: border-color 0.2s ease, background 0.2s ease;
      outline: none;
    }

    .panel-form-wrap input:focus,
    .panel-form-wrap textarea:focus {
      border-color: var(--navy);
      background: var(--white);
      box-shadow: 0 0 0 3px rgba(31, 58, 95, 0.08);
    }

    .panel-form-wrap input::placeholder,
    .panel-form-wrap textarea::placeholder {
      color: #9AA1AB;
    }

    .panel-form-wrap textarea {
      resize: vertical;
      min-height: 110px;
    }

    .panel-form-wrap input.error,
    .panel-form-wrap textarea.error {
      border-color: #9B2C2C;
      background: #FBF3F2;
    }

    /* Submit Button */
    .panel-submit-btn {
      width: 100%;
      padding: 0.85rem 1.5rem;
      margin-top: 1.4rem;
      background: var(--navy);
      color: #ffffff;
      border: none;
      border-radius: 2px;
      font-size: 0.95rem;
      font-weight: 600;
      letter-spacing: 0.03em;
      font-family: inherit;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      transition: background 0.2s ease;
    }

    .panel-submit-btn:hover:not(:disabled) {
      background: var(--navy-deep);
    }

    .panel-submit-btn:disabled {
      opacity: 0.65;
      cursor: not-allowed;
    }

    .panel-submit-btn svg {
      width: 16px;
      height: 16px;
    }

    /* Spinner inside button */
    .btn-spinner {
      width: 18px;
      height: 18px;
      border: 2px solid rgba(255, 255, 255, 0.3);
      border-top-color: #ffffff;
      border-radius: 50%;
      animation: formSpin 0.6s linear infinite;
      display: none;
    }

    .panel-submit-btn.loading .btn-spinner {
      display: block;
    }

    .panel-submit-btn.loading .btn-label {
      display: none;
    }

    .panel-submit-btn.loading svg {
      display: none;
    }

    @keyframes formSpin {
      to {
        transform: rotate(360deg);
      }
    }

    /* Success / Error messages */
    .form-feedback {
      display: none;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 3rem 2rem;
      gap: 1rem;
      height: 100%;
      min-height: 300px;
    }

    .form-feedback.active {
      display: flex;
    }

    .form-feedback .feedback-icon {
      width: 56px;
      height: 56px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .form-feedback .feedback-icon svg {
      width: 26px;
      height: 26px;
    }

    .form-feedback.success .feedback-icon {
      border: 1px solid var(--navy);
      color: var(--navy);
    }

    .form-feedback.error .feedback-icon {
      border: 1px solid #9B2C2C;
      color: #9B2C2C;
    }

    .form-feedback h4 {
      font-size: 1.5rem;
      color: var(--ink);
      margin: 0;
    }

    .form-feedback p {
      font-size: 0.95rem;
      color: var(--ink-soft);
      margin: 0;
      line-height: 1.5;
      max-width: 300px;
    }

    .form-feedback p a {
      color: var(--navy);
    }

    .form-feedback .feedback-btn {
      margin-top: 0.5rem;
      padding: 0.55rem 1.4rem;
      font-size: 0.88rem;
      font-weight: 600;
      font-family: inherit;
      border: 1px solid var(--ink);
      border-radius: 2px;
      background: var(--white);
      color: var(--ink);
      cursor: pointer;
      transition: background 0.15s ease;
    }

    .form-feedback .feedback-btn:hover {
      background: var(--card);
    }

    @media (max-width: 480px) {
      .panel-head,
      .panel-form-wrap {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      html {
        scroll-behavior: auto;
      }

      .floating-panel,
      .floating-backdrop {
        transition: none;
      }
    }
