:root {
    --magenta: #C24D82;
    --magenta-deep: #9E3A67;
    --ink: #1A1A1D;
    --near-black: #0B0B0E;
    --paper: #FDFAF9;
    --gray-50: #F6F6F7;
    --gray-200: #E4E3E5;
    --gray-600: #5F5E63;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: var(--ink);
    background-color: #FBF9F7;
    background-image: linear-gradient(180deg, #FBF9F7 0%, #F7F2ED 100%);
    background-repeat: no-repeat;
  }
  header {
    background: var(--near-black);
    color: #fff;
    padding: 20px 6vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 99;
  }
  header img { height: 40px; display: block; }
  nav a {
    color: #ddd;
    text-decoration: none;
    margin-left: 28px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.02em;
  }
  nav a:hover { color: var(--magenta); }
  nav a.active { color: #fff; font-weight: 700; border-bottom: 2px solid var(--magenta); padding-bottom: 4px; }
  .hero {
    position: relative;
    overflow: hidden;
    background: var(--near-black);
    color: #fff;
    padding: 90px 6vw 100px;
    text-align: center;
    border-bottom: 3px solid var(--magenta-deep);
  }
  .hero > .hero-photo {
    position: absolute;
    inset: 0;
    background-image: url('images/hero-photo.jpg');
    background-size: cover;
    background-position: center 35%;
    z-index: 0;
  }
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11,11,14,0.82) 0%, rgba(11,11,14,0.58) 45%, rgba(11,11,14,0.88) 100%);
    z-index: 1;
    pointer-events: none;
  }
  .hero > * { position: relative; z-index: 2; }
  .hero > .hero-network {
    position: absolute;
    top: 0; right: -5%;
    width: 62%;
    height: 100%;
    z-index: 1;
    opacity: 0.3;
    pointer-events: none;
  }
  .hero.small .hero-network { opacity: 0.22; width: 48%; }
  .hero.small { padding: 60px 6vw 70px; }
  .hero .kicker {
    color: var(--magenta);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 18px;
  }
  .hero h1 {
    font-size: 42px;
    line-height: 1.2;
    max-width: 780px;
    margin: 0 auto 22px;
    font-weight: 700;
    color: #fff;
  }
  .hero.small h1 { font-size: 34px; }
  .hero p.sub {
    font-size: 18px;
    color: #c2c1c6;
    max-width: 660px;
    margin: 0 auto 36px;
    line-height: 1.55;
  }
  .cta-row { display: flex; gap: 16px; justify-content: center; }
  .btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    letter-spacing: 0.01em;
  }
  .btn-primary { background: var(--magenta-deep); color: #fff; }
  .btn-secondary { border: 1px solid #444; color: #fff; }
  .stat-bar {
    background:
      radial-gradient(rgba(158,58,103,0.06) 1px, transparent 1px),
      var(--gray-50);
    background-size: 24px 24px, auto;
    border-bottom: 1px solid var(--gray-200);
    padding: 34px 6vw;
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    text-align: center;
  }
  .stat-bar .stat strong { display: block; font-size: 26px; color: var(--ink); }
  .stat-bar .stat span { font-size: 13px; color: var(--gray-600); letter-spacing: 0.03em; }
  section.section { position: relative; overflow: hidden; padding: 80px 6vw; max-width: 1140px; margin: 0 auto; }
  section.section.narrow { max-width: 820px; }
  section.section > svg.section-graphic { display: none; }
  section.section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 6vw;
    right: 6vw;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, #12213A, #3A2A5C, #8C3A66, #C7793F);
    z-index: 0;
  }
  section.section > *:not(svg.section-graphic) { position: relative; z-index: 1; }
  .section h2 { font-size: 30px; text-align: center; margin-bottom: 12px; color: var(--ink); }
  .section p.lede { text-align: center; color: var(--gray-600); max-width: 640px; margin: 0 auto 50px; font-size: 16px; line-height: 1.6; }
  .cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .card { border: 1px solid var(--gray-200); border-radius: 6px; padding: 28px 22px; background: #fff; }
  .card h3 { font-size: 17px; margin: 0 0 10px; color: var(--ink); }
  .card h3::before { content: ""; display: block; width: 28px; height: 3px; background: var(--magenta); margin-bottom: 14px; }
  .card p { font-size: 14px; color: var(--gray-600); line-height: 1.55; margin: 0; }

  .service-block { background: #fff; border: 1px solid var(--gray-200); border-radius: 6px; padding: 32px 36px; margin-bottom: 20px; }
  .service-block:last-child { margin-bottom: 0; }
  .service-block h3 { font-size: 21px; margin: 0 0 12px; }
  .service-block h3::before { content: ""; display: inline-block; width: 22px; height: 3px; background: var(--magenta); margin-right: 12px; vertical-align: middle; }
  .service-block p { font-size: 15.5px; line-height: 1.7; color: var(--gray-600); margin: 0 0 0 34px; }
  .service-block .skills-grid { margin: 6px 0 0 34px; }
  .ai-band { background: var(--near-black); color: #fff; padding: 56px 6vw; text-align: center; border-top: 3px solid var(--magenta-deep); border-bottom: 3px solid var(--magenta-deep); }
  .ai-band .kicker { color: var(--magenta); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; }
  .ai-band p { max-width: 700px; margin: 0 auto 24px; color: #c9c7cd; font-size: 15.5px; line-height: 1.75; }
  .tag-row.center { justify-content: center; }
  .tag-accent { background: rgba(194,77,130,0.16); border: 1px solid var(--magenta); color: #fff; font-weight: 600; }
  .skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 6px 0 0 34px; }
  .skill-cat h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--magenta-deep); font-weight: 700; margin: 0 0 10px; }
  .tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
  .tag { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 4px; padding: 5px 11px; font-size: 13px; color: var(--ink); }

  .case-strip {
    background:
      radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
      var(--near-black);
    background-size: 26px 26px, auto;
    color: #fff; padding: 70px 6vw;
  }
  .case-strip h2 { color: #fff; }
  .case-strip p.lede { color: #a9a8ad; }
  .case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 1000px; margin: 0 auto; }
  .case { background: #151519; border: 1px solid #2a2a2e; border-radius: 6px; padding: 24px 26px; }
  .case h4 { color: #fff; font-size: 15px; margin: 0 0 10px; letter-spacing: 0.01em; font-weight: 600; }
  .case h4::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--magenta); margin-right: 8px; }
  .case p { font-size: 13.5px; color: #b4b3b8; line-height: 1.6; margin: 0; }

  .full-case { background: #fff; border: 1px solid var(--gray-200); border-radius: 6px; padding: 30px 32px; margin-bottom: 22px; }
  .full-case h4 { font-size: 18px; margin: 0 0 16px; color: var(--ink); }
  .full-case h4::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--magenta); margin-right: 10px; }
  .full-case dl { margin: 0; }
  .full-case dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--magenta-deep); font-weight: 700; margin-top: 14px; }
  .full-case dd { margin: 6px 0 0; font-size: 14.5px; color: var(--gray-600); line-height: 1.6; }

  .team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
  .team-card { background: #fff; border: 1px solid var(--gray-200); border-radius: 6px; padding: 32px; }
  .team-card .avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--near-black); color: var(--magenta); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 22px; margin-bottom: 18px; }
  .team-card h3 { font-size: 19px; margin: 0 0 4px; }
  .team-card .role { font-size: 13px; color: var(--magenta-deep); font-weight: 600; letter-spacing: 0.03em; margin-bottom: 14px; }
  .team-card p { font-size: 14.5px; color: var(--gray-600); line-height: 1.65; margin: 0; }

  .why-block { background: #fff; border: 1px solid var(--gray-200); border-radius: 6px; padding: 36px 40px; margin-top: 20px; }
  .why-block p { font-size: 15.5px; color: var(--gray-600); line-height: 1.75; margin: 0; }

  .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
  .contact-info { background: #fff; border: 1px solid var(--gray-200); border-radius: 6px; padding: 32px; }
  .contact-info h3 { font-size: 20px; margin: 0 0 6px; }
  .contact-info .role { color: var(--gray-600); font-size: 14px; margin-bottom: 24px; }
  .contact-info .line { font-size: 15px; margin-bottom: 10px; }
  .contact-info .line strong { display: inline-block; width: 90px; color: var(--gray-600); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
  .contact-form { background: #fff; border: 1px solid var(--gray-200); border-radius: 6px; padding: 32px; }
  .contact-form .field { margin-bottom: 16px; }
  .contact-form label { display: block; font-size: 13px; color: var(--gray-600); margin-bottom: 6px; font-weight: 600; }
  .contact-form input, .contact-form textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--gray-200); border-radius: 4px; font-size: 14px; font-family: inherit; }

  .closing { text-align: center; padding: 90px 6vw; background: #fff; border-top: 1px solid var(--gray-200); }
  .closing h2 { font-size: 30px; margin-bottom: 16px; color: var(--ink); }
  .closing p { color: var(--gray-600); max-width: 560px; margin: 0 auto 32px; line-height: 1.6; }
  .closing .btn-primary { padding: 16px 40px; font-size: 16px; }

  footer { background: var(--near-black); color: #918f96; padding: 40px 6vw; font-size: 13px; text-align: center; line-height: 1.8; }
  footer a { color: #c8c6ce; }

  @media (max-width: 900px) {
    .cards { grid-template-columns: repeat(2,1fr); }
    .case-grid, .team-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 32px; }
  }
