:root {
    color-scheme: light;
    --ink: #14110f;
    --ink-soft: #2b2622;
    --muted: #6b6259;
    --paper: #fbf7f2;
    --paper-warm: #f4ede2;
    --line: #e8dfd1;
    --line-strong: #d4c6b0;

    --flame-red: #d4351c;
    --flame-orange: #ee6b1f;
    --flame-amber: #f5a623;
    --flame-yellow: #f7c948;

    --grad-warm: linear-gradient(135deg, #d4351c 0%, #ee6b1f 40%, #f5a623 75%, #f7c948 100%);
    --grad-warm-soft: linear-gradient(135deg, rgba(212,53,28,0.08) 0%, rgba(245,166,35,0.08) 100%);

    --shadow-sm: 0 1px 2px rgba(20,17,15,0.04), 0 2px 8px rgba(20,17,15,0.04);
    --shadow-md: 0 4px 12px rgba(20,17,15,0.06), 0 12px 32px rgba(20,17,15,0.06);
    --shadow-lg: 0 12px 48px rgba(20,17,15,0.10), 0 24px 72px rgba(212,53,28,0.08);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;

    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  }

  /* Force light appearance even when OS / browser / app is in dark mode */
  @media (prefers-color-scheme: dark) {
    :root {
      color-scheme: light;
      --ink: #14110f;
      --ink-soft: #2b2622;
      --muted: #6b6259;
      --paper: #fbf7f2;
      --paper-warm: #f4ede2;
      --line: #e8dfd1;
      --line-strong: #d4c6b0;
    }
    html, body { background: #fbf7f2 !important; color: #14110f !important; }
  }

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

  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

  body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
  }

  /* Subtle paper grain across the whole page */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.07 0 0 0 0 0.06 0 0 0 0.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
  }

  a { color: inherit; text-decoration: none; }
  img { display: block; max-width: 100%; height: auto; }
  button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

  .container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 2;
  }
  @media (max-width: 640px) {
    .container { padding: 0 20px; }
  }

  /* ============ NAV ============ */
  .nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(251, 247, 242, 0.85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
  }
  .nav.scrolled { border-bottom-color: var(--line); }
  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
  }
  .nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .nav-logo img { height: 44px; width: auto; }
  .nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
  }
  .nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-soft);
    transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--flame-red); }
  .nav-cta {
    padding: 10px 20px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper);
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(20,17,15,0.18);
    color: var(--paper) !important;
  }
  .nav-menu-btn { display: none; }

  @media (max-width: 820px) {
    .nav-links { display: none; }
    .nav-menu-btn {
      display: block;
      padding: 8px 16px;
      border-radius: 999px;
      background: var(--ink);
      color: var(--paper);
      font-size: 13px;
      font-weight: 500;
    }
  }

  /* ============ HERO ============ */
  .hero {
    position: relative;
    padding: 100px 0 120px;
    overflow: hidden;
  }
  .hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
  }
  .hero-bg::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(245,166,35,0.22) 0%, rgba(238,107,31,0.10) 35%, transparent 70%);
    border-radius: 50%;
    filter: blur(20px);
  }
  .hero-bg::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212,53,28,0.12) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(20px);
  }
  .hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 80px;
    align-items: center;
  }
  @media (max-width: 980px) {
    .hero-inner { grid-template-columns: 1fr; gap: 48px; }
    .hero { padding: 50px 0 60px; }
  }
  @media (max-width: 640px) {
    .hero { padding: 36px 0 48px; }
    .hero-lede { font-size: 17px; margin-bottom: 28px; }
    .hero-stats { margin-top: 56px; padding-top: 28px; gap: 24px; }
    .stat-num { font-size: 30px; }
  }

  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--flame-red);
    margin-bottom: 28px;
    opacity: 0;
    animation: rise 0.7s 0.05s ease-out forwards;
  }
  .eyebrow::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--flame-red);
  }

  h1.hero-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(40px, 6vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin-bottom: 28px;
    opacity: 0;
    animation: rise 0.8s 0.15s ease-out forwards;
  }
  h1.hero-title em {
    font-style: italic;
    font-weight: 400;
    background: var(--grad-warm);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
  }
  .hero-lede {
    font-size: 19px;
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: 560px;
    margin-bottom: 40px;
    opacity: 0;
    animation: rise 0.8s 0.25s ease-out forwards;
  }
  .hero-ctas {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: rise 0.8s 0.35s ease-out forwards;
  }
  .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper);
    font-weight: 500;
    font-size: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(20,17,15,0.22);
    color: var(--paper);
  }
  .btn-primary svg { transition: transform 0.2s; }
  .btn-primary:hover svg { transform: translateX(4px); }
  .btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    border-radius: 999px;
    color: var(--ink);
    font-weight: 500;
    font-size: 15px;
    border: 1px solid var(--line-strong);
    transition: all 0.2s;
  }
  .btn-ghost:hover {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
  }

  /* Hero visual: code/terminal mock */
  .hero-visual {
    position: relative;
    opacity: 0;
    animation: rise 1s 0.4s ease-out forwards;
  }
  .code-card {
    background: #1a1714;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: rotate(1.5deg);
    position: relative;
  }
  @media (max-width: 980px) {
    .code-card { transform: none; }
  }
  @media (max-width: 640px) {
    .hero-visual { display: none; }
  }
  .code-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(245,166,35,0.04) 100%);
    pointer-events: none;
  }
  .code-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .code-dot { width: 11px; height: 11px; border-radius: 50%; }
  .code-dot:nth-child(1) { background: #ff5f57; }
  .code-dot:nth-child(2) { background: #febc2e; }
  .code-dot:nth-child(3) { background: #28c840; }
  .code-title {
    margin-left: 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: #888078;
  }
  .code-body {
    padding: 22px 24px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.75;
    color: #d4cbbf;
  }
  .c-key { color: #f5a623; }
  .c-str { color: #7ac490; }
  .c-com { color: #6b6259; font-style: italic; }
  .c-fn { color: #ee6b1f; }
  .c-num { color: #d4351c; }

  .hero-stats {
    grid-column: 1 / -1;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    opacity: 0;
    animation: rise 0.8s 0.55s ease-out forwards;
  }
  @media (max-width: 720px) {
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
  }
  .stat-num {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 6px;
  }
  .stat-label {
    font-size: 13px;
    color: var(--muted);
  }

  @keyframes rise {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ============ TECH STACK MARQUEE ============ */
  .tech-strip {
    padding: 36px 0;
    background: var(--paper-warm);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    position: relative;
  }
  .tech-label {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 22px;
  }
  .marquee {
    display: flex;
    gap: 56px;
    animation: scroll 40s linear infinite;
    width: max-content;
  }
  .marquee-item {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 500;
    color: var(--ink-soft);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 56px;
    letter-spacing: -0.01em;
  }
  .marquee-item::after {
    content: '◆';
    color: var(--flame-orange);
    font-size: 12px;
  }
  @keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }

  /* ============ SECTION GENERICS ============ */
  section { position: relative; z-index: 2; }
  .section-pad { padding: 120px 0; }
  @media (max-width: 820px) { .section-pad { padding: 72px 0; } }
  @media (max-width: 640px) { .section-pad { padding: 56px 0; } }

  .section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--flame-red);
    margin-bottom: 20px;
  }
  .section-eyebrow::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--flame-red);
  }
  h2.section-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(34px, 4.5vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 24px;
    max-width: 780px;
  }
  h2.section-title em {
    font-style: italic;
    font-weight: 400;
    color: var(--flame-red);
  }
  .section-lede {
    font-size: 18px;
    color: var(--ink-soft);
    max-width: 620px;
    line-height: 1.6;
  }

  /* ============ SERVICES ============ */
  .services { background: var(--paper); }
  .services-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 70px;
    align-items: end;
  }
  @media (max-width: 820px) {
    .services-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 50px; }
  }

  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  @media (max-width: 980px) {
    .services-grid { grid-template-columns: 1fr; }
  }

  .service-card {
    position: relative;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    transition: transform 0.4s cubic-bezier(.2,.7,.3,1), box-shadow 0.4s, border-color 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  @media (max-width: 640px) {
    .service-card { padding: 32px 26px; }
    .service-title { font-size: 24px; }
    .service-icon { margin-bottom: 20px; }
  }
  .service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
  }
  .service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad-warm);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(.2,.7,.3,1);
  }
  .service-card:hover::before { transform: scaleX(1); }

  .service-card.featured {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
  }
  .service-card.featured::before { transform: scaleX(1); }
  .service-card.featured .service-num,
  .service-card.featured .service-desc,
  .service-card.featured .service-list li { color: rgba(251,247,242,0.7); }
  .service-card.featured .service-title { color: var(--paper); }
  .service-card.featured .service-list li::before { color: var(--flame-amber); }

  .service-num {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 24px;
  }
  .service-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--grad-warm-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    position: relative;
  }
  .service-card.featured .service-icon {
    background: rgba(245,166,35,0.15);
  }
  .service-icon svg { width: 26px; height: 26px; }
  .service-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.015em;
    margin-bottom: 14px;
    line-height: 1.15;
  }
  .service-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink-soft);
    margin-bottom: 28px;
  }
  .service-list {
    list-style: none;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }
  .service-card.featured .service-list { border-top-color: rgba(251,247,242,0.12); }
  .service-list li {
    font-size: 14px;
    color: var(--ink-soft);
    padding: 8px 0 8px 22px;
    position: relative;
  }
  .service-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--flame-red);
    font-weight: 500;
  }

  /* Learn-more link at the bottom of each homepage service card */
  .service-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding-top: 16px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--flame-red);
    border-top: 1px solid var(--line);
    width: 100%;
    transition: color 0.2s, gap 0.2s;
  }
  .service-cta span {
    transition: transform 0.2s;
    display: inline-block;
  }
  .service-cta:hover { color: var(--flame-orange); }
  .service-cta:hover span { transform: translateX(4px); }

  /* On the dark "featured" card, the link uses the gold-amber accent for contrast */
  .service-card.featured .service-cta {
    color: var(--flame-amber);
    border-top-color: rgba(251,247,242,0.15);
  }
  .service-card.featured .service-cta:hover { color: #f7c948; }

  /* ============ PROCESS ============ */
  .process {
    background: var(--paper-warm);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    position: relative;
  }
  .process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 60px;
    position: relative;
  }
  @media (max-width: 640px) {
    .process-grid { margin-top: 36px; }
  }
  @media (max-width: 820px) {
    .process-grid { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 540px) {
    .process-grid { grid-template-columns: 1fr; }
  }
  .process-step {
    padding: 32px 28px 32px 0;
    position: relative;
  }
  .process-step:not(:last-child) {
    border-right: 1px dashed var(--line-strong);
    padding-right: 28px;
  }
  @media (max-width: 820px) {
    .process-step:nth-child(2n) { border-right: none; }
    .process-step:nth-child(1), .process-step:nth-child(2) { border-bottom: 1px dashed var(--line-strong); padding-bottom: 32px; margin-bottom: 0; }
  }
  @media (max-width: 540px) {
    .process-step { border-right: none !important; border-bottom: 1px dashed var(--line-strong); padding-bottom: 32px; }
    .process-step:last-child { border-bottom: none; }
  }
  .process-num {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 400;
    font-style: italic;
    background: var(--grad-warm);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    margin-bottom: 18px;
  }
  .process-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
  }
  .process-desc {
    font-size: 14.5px;
    color: var(--ink-soft);
    line-height: 1.6;
  }

  /* ============ CASE STUDY ============ */
  .case-section { background: var(--paper); }
  .case-card {
    background: var(--ink);
    border-radius: var(--radius-lg);
    padding: 80px 64px;
    color: var(--paper);
    position: relative;
    overflow: hidden;
  }
  @media (max-width: 720px) {
    .case-card { padding: 40px 24px; }
    .case-quote::before { font-size: 56px; margin-bottom: 8px; }
  }
  .case-card::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245,166,35,0.18) 0%, transparent 60%);
    pointer-events: none;
  }
  .case-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 64px;
    align-items: center;
  }
  @media (max-width: 820px) {
    .case-inner { grid-template-columns: 1fr; gap: 40px; }
  }
  .case-quote {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 28px;
    color: var(--paper);
  }
  .case-quote::before {
    content: '"';
    font-size: 80px;
    line-height: 0.5;
    color: var(--flame-amber);
    display: block;
    margin-bottom: 16px;
  }
  .case-attr {
    font-size: 14px;
    color: rgba(251,247,242,0.6);
    font-family: var(--font-mono);
  }
  .case-metrics {
    display: grid;
    gap: 24px;
  }
  .metric {
    padding: 24px 28px;
    background: rgba(251,247,242,0.05);
    border: 1px solid rgba(251,247,242,0.1);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
  }
  .metric-num {
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 6px;
    background: var(--grad-warm);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .metric-label {
    font-size: 13px;
    color: rgba(251,247,242,0.6);
  }

  /* ============ FAQ ============ */
  .faq-section { background: var(--paper-warm); border-top: 1px solid var(--line); }
  .faq-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: start;
  }
  @media (max-width: 820px) {
    .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  }
  .faq-list { display: flex; flex-direction: column; gap: 0; }
  .faq-item {
    border-bottom: 1px solid var(--line-strong);
    padding: 22px 0;
  }
  .faq-item:first-child { border-top: 1px solid var(--line-strong); }
  .faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--ink);
    list-style: none;
    transition: color 0.2s;
  }
  .faq-q::-webkit-details-marker { display: none; }
  .faq-q:hover { color: var(--flame-red); }
  .faq-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 16px;
    color: var(--ink-soft);
  }
  details[open] .faq-icon {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
    transform: rotate(45deg);
  }
  .faq-a {
    padding-top: 14px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-soft);
    max-width: 640px;
  }

  /* ============ CONTACT ============ */
  .contact { background: var(--paper); }
  .contact-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 64px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
  }
  @media (max-width: 720px) {
    .contact-card { padding: 32px 22px; }
  }
  .contact-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--grad-warm);
  }
  .contact-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
  }
  @media (max-width: 820px) {
    .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  }
  .contact-info h2 {
    font-family: var(--font-display);
    font-size: clamp(30px, 3.5vw, 42px);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 20px;
  }
  .contact-info p {
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 28px;
  }
  .contact-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 15px;
    color: var(--ink-soft);
    border-top: 1px solid var(--line);
  }
  .contact-detail svg { color: var(--flame-red); flex-shrink: 0; }

  .form { display: grid; gap: 18px; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  @media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }
  .form-group { display: flex; flex-direction: column; gap: 8px; }
  .form-group label {
    font-size: 12px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
  }
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-family: var(--font-body);
    font-size: 15px;
    padding: 14px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--paper);
    color: var(--ink);
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
  }
  .form-group textarea { resize: vertical; min-height: 110px; font-family: var(--font-body); }
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: var(--flame-red);
    box-shadow: 0 0 0 4px rgba(212,53,28,0.12);
  }
  .form-submit {
    margin-top: 8px;
    padding: 16px 28px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper);
    font-weight: 500;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    justify-self: start;
  }
  .form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(20,17,15,0.22);
  }
  .form-success {
    display: none;
    padding: 16px 20px;
    background: rgba(122, 196, 144, 0.15);
    border: 1px solid rgba(122, 196, 144, 0.4);
    border-radius: 10px;
    color: #2d6a3d;
    font-size: 14px;
  }
  .form-success.show { display: block; }

  /* ============ FOOTER ============ */
  footer {
    background: var(--ink);
    color: var(--paper);
    padding: 80px 0 40px;
    position: relative;
    z-index: 2;
  }
  @media (max-width: 640px) {
    footer { padding: 56px 0 32px; }
    .footer-inner { margin-bottom: 40px; }
  }
  .footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
  }
  @media (max-width: 820px) {
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  }
  @media (max-width: 540px) {
    .footer-inner { grid-template-columns: 1fr; }
  }
  .footer-brand img {
    height: 64px;
    width: auto;
    margin-bottom: 24px;
  }
  .footer-brand p {
    font-size: 14px;
    color: rgba(251,247,242,0.6);
    line-height: 1.6;
    max-width: 320px;
  }
  .footer-col h4 {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--flame-amber);
    margin-bottom: 20px;
    font-weight: 500;
  }
  .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
  .footer-col a {
    font-size: 14px;
    color: rgba(251,247,242,0.7);
    transition: color 0.2s;
  }
  .footer-col a:hover { color: var(--flame-amber); }
  .footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(251,247,242,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13px;
    color: rgba(251,247,242,0.5);
  }

  /* Smooth scroll-triggered reveals */
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(.2,.7,.3,1), transform 0.8s cubic-bezier(.2,.7,.3,1);
  }
  .reveal.in { opacity: 1; transform: translateY(0); }
/* =================================================== */
/* ============ SUBPAGE-SPECIFIC STYLES =============== */
/* =================================================== */

/* Subpage hero — smaller than homepage hero, page-title only */
.page-hero {
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245,166,35,0.18) 0%, rgba(238,107,31,0.06) 40%, transparent 70%);
  border-radius: 50%;
  filter: blur(20px);
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(212,53,28,0.08) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(20px);
  pointer-events: none;
}
.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 880px;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 24px;
}
.page-hero h1 em {
  font-style: italic;
  font-weight: 400;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-hero p.lede {
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 680px;
  margin-bottom: 32px;
}
.page-hero .crumbs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.page-hero .crumbs a { color: var(--muted); transition: color 0.2s; }
.page-hero .crumbs a:hover { color: var(--flame-red); }
.page-hero .crumbs .sep { opacity: 0.5; }

@media (max-width: 640px) {
  .page-hero { padding: 64px 0 48px; }
  .page-hero p.lede { font-size: 17px; }
}

/* Content prose — for service page bodies */
.content-section { padding: 80px 0; background: var(--paper); }
@media (max-width: 640px) { .content-section { padding: 56px 0; } }

.content-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
}
@media (max-width: 820px) {
  .content-grid { grid-template-columns: 1fr; gap: 24px; }
}

.content-grid .side-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--flame-red);
  padding-top: 8px;
  position: sticky;
  top: 100px;
  align-self: start;
}
@media (max-width: 820px) {
  .content-grid .side-eyebrow { position: static; padding-top: 0; }
}

.prose h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.5vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin-bottom: 20px;
}
.prose h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--flame-red);
}
.prose h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  margin-top: 40px;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.prose p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 18px;
  max-width: 680px;
}
.prose p strong { color: var(--ink); font-weight: 600; }
.prose ul {
  list-style: none;
  margin: 8px 0 24px;
  max-width: 680px;
}
.prose ul li {
  font-size: 16px;
  color: var(--ink-soft);
  padding: 10px 0 10px 28px;
  position: relative;
  line-height: 1.6;
  border-bottom: 1px solid var(--line);
}
.prose ul li:last-child { border-bottom: none; }
.prose ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--flame-red);
  font-weight: 500;
}

/* Feature blocks — 3-up rows used on service pages */
.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 0;
}
@media (max-width: 820px) {
  .feature-row { grid-template-columns: 1fr; gap: 16px; }
}
.feature-block {
  padding: 28px 26px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.feature-block:hover {
  transform: translateY(-3px);
  border-color: var(--flame-orange);
  box-shadow: var(--shadow-md);
}
.feature-block .feature-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--flame-red);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.feature-block h4 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.feature-block p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* Pull quote / callout */
.callout {
  background: var(--paper-warm);
  border-left: 3px solid var(--flame-red);
  padding: 28px 32px;
  margin: 36px 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.45;
  font-style: italic;
  color: var(--ink);
  max-width: 720px;
}
@media (max-width: 640px) {
  .callout { padding: 22px 24px; font-size: 19px; }
}

/* Cross-link banner — appears at bottom of service pages */
.cross-link {
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 64px 0;
}
.cross-link-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 720px) {
  .cross-link-inner { grid-template-columns: 1fr; }
}
.cross-card {
  display: block;
  padding: 32px 30px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.cross-card:hover {
  transform: translateY(-4px);
  border-color: var(--flame-orange);
  box-shadow: var(--shadow-md);
}
.cross-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-warm);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(.2,.7,.3,1);
}
.cross-card:hover::after { transform: scaleX(1); }
.cross-card .cross-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.cross-card h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.cross-card p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.cross-card .arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--flame-red);
  margin-top: 14px;
}

/* Final CTA on subpages */
.subpage-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0;
  text-align: center;
}
.subpage-cta h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--paper);
  margin-bottom: 18px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.subpage-cta h2 em {
  font-style: italic;
  font-weight: 400;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.subpage-cta p {
  font-size: 17px;
  color: rgba(251,247,242,0.75);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.subpage-cta .btn-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.subpage-cta .btn-primary {
  background: var(--paper);
  color: var(--ink);
}
.subpage-cta .btn-primary:hover {
  background: var(--flame-amber);
  color: var(--ink);
}
.subpage-cta .btn-ghost {
  border-color: rgba(251,247,242,0.3);
  color: var(--paper);
}
.subpage-cta .btn-ghost:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

/* Active nav state */
.nav-links a.active {
  color: var(--flame-red);
}
