/* Main portfolio stylesheet. All page styling lives here. */
:root {
      --bg: #080808;
      --panel: rgba(10, 10, 10, 0.84);
      --panel-soft: rgba(14, 14, 14, 0.68);
      --line: rgba(255,255,255,.12);
      --text: #f2f2f0;
      --muted: #aaa9a5;
      --accent: #d6a14a;
      --accent-soft: #e0b56a;
      --danger: #c92a2a;
      --max: 1220px;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      color: var(--text);
      background: var(--bg);
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      overflow-x: hidden;
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      z-index: -5;
      background:
        radial-gradient(circle at 78% 20%, rgba(214,161,74,.16), transparent 26%),
        radial-gradient(circle at 20% 85%, rgba(120,120,120,.10), transparent 34%),
        linear-gradient(180deg, #121212 0%, #080808 58%, #050505 100%);
    }

    /* Animated fallback background. Replace with a <video> if desired. */
    .ambient {
      position: fixed;
      inset: -10%;
      z-index: -4;
      opacity: .55;
      filter: blur(1px);
      pointer-events: none;
      background:
        linear-gradient(120deg, transparent 20%, rgba(214,161,74,.08) 47%, transparent 73%),
        radial-gradient(circle at 68% 32%, rgba(255,255,255,.08), transparent 17%),
        radial-gradient(circle at 35% 72%, rgba(214,161,74,.08), transparent 19%);
      animation: drift 16s ease-in-out infinite alternate;
    }

    .ambient::after {
      content: "";
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
      background-size: 56px 56px;
      mask-image: linear-gradient(to bottom, rgba(0,0,0,.6), transparent);
    }

    @keyframes drift {
      0% { transform: translate3d(-1%, -1%, 0) scale(1.02); }
      100% { transform: translate3d(2%, 1.5%, 0) scale(1.06); }
    }

    .noise {
      position: fixed;
      inset: 0;
      z-index: -3;
      opacity: .035;
      pointer-events: none;
      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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
    }


    .bg-video {
      position: fixed;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: -6;
      filter: grayscale(1) brightness(.32) contrast(1.08);
    }

    a { color: inherit; text-decoration: none; }
    button, a.button { font: inherit; }

    header {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 40;
      border-bottom: 1px solid rgba(255,255,255,.08);
      background: rgba(4,4,4,.66);
      backdrop-filter: blur(14px);
    }

    .nav {
      max-width: var(--max);
      height: 72px;
      margin: auto;
      padding: 0 26px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 28px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 14px;
      min-width: max-content;
      letter-spacing: .18em;
      text-transform: uppercase;
      font-size: 13px;
      font-weight: 650;
    }

    .mark {
      width: 34px; height: 34px;
      border: 1px solid rgba(255,255,255,.75);
      display: grid;
      place-items: center;
      font-weight: 800;
      letter-spacing: -.12em;
      color: #fff;
    }

    .navlinks {
      display: flex;
      gap: 15px;
      align-items: center;
      font-size: 13px;
      color: #d8d8d5;
    }

    .navlinks a {
      position: relative;
      padding: 8px 0;
    }

    .navlinks a.active::after {
      content: "";
      position: absolute;
      height: 2px;
      background: var(--accent);
      left: 0; right: 0; bottom: 0;
    }

    .cta {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      border: 1px solid var(--accent);
      color: #fff;
      background: transparent;
      padding: 11px 17px;
      cursor: pointer;
      transition: .2s ease;
    }

    .cta:hover { background: var(--accent); color: #0a0a0a; }

    main { padding-top: 72px; }

    section {
      min-height: 92vh;
      display: flex;
      align-items: center;
      position: relative;
      border-bottom: 1px solid rgba(255,255,255,.08);
      scroll-margin-top: 70px;
    }

    .section-inner {
      width: min(var(--max), calc(100% - 44px));
      margin: 0 auto;
      padding: 74px 26px;
      background: linear-gradient(180deg, rgba(10,10,10,.80), rgba(10,10,10,.72));
      border: 1px solid rgba(255,255,255,.08);
      backdrop-filter: blur(10px);
      box-shadow: 0 30px 80px rgba(0,0,0,.18);
    }

    .section-kicker {
      display: flex;
      align-items: center;
      gap: 12px;
      letter-spacing: .22em;
      text-transform: uppercase;
      color: var(--muted);
      font-size: 11px;
      margin-bottom: 24px;
    }

    .section-kicker span:first-child { color: var(--accent); }

    h1, h2, h3 {
      margin: 0;
      font-family: Georgia, "Times New Roman", serif;
      font-weight: 500;
      line-height: .98;
    }

    h1 { font-size: clamp(58px, 7vw, 100px); max-width: 820px; }
    h2 { font-size: clamp(44px, 5vw, 70px); }
    h3 { font-size: 28px; line-height: 1.05; }

    .accent { color: var(--accent-soft); }

    .lede {
      max-width: 750px;
      font-size: clamp(18px, 2vw, 23px);
      line-height: 1.55;
      color: #d4d4d0;
      margin-top: 28px;
    }

    .micro {
      color: var(--muted);
      line-height: 1.65;
    }

    .actions {
      display: flex;
      gap: 14px;
      flex-wrap: wrap;
      margin-top: 34px;
    }

    .button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 14px 20px;
      border: 1px solid rgba(255,255,255,.22);
      background: rgba(0,0,0,.35);
      min-width: 160px;
      transition: .2s ease;
    }

    .button.primary {
      background: var(--accent);
      color: #111;
      border-color: var(--accent);
      font-weight: 700;
    }

    .button:hover { transform: translateY(-1px); border-color: var(--accent); }

    .hero-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
      gap: 56px;
      align-items: center;
    }

    .hero-side {
      border-left: 1px solid var(--line);
      padding-left: 34px;
      display: grid;
      gap: 24px;
    }

    .hero-point {
      display: grid;
      grid-template-columns: 34px 1fr;
      gap: 14px;
      align-items: start;
    }

    .hero-point strong { display: block; margin-bottom: 5px; font-size: 17px; }
    .hero-point .icon { color: var(--accent); font-size: 24px; }

    .statusline {
      margin-top: 22px;
      display: inline-flex;
      align-items: center;
      gap: 9px;
      color: #c8c8c5;
      font-size: 13px;
    }
    .dot {
      width: 8px; height: 8px;
      border-radius: 50%;
      background: #49c66c;
      box-shadow: 0 0 18px rgba(73,198,108,.45);
    }

    .stats {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
      margin-top: 46px;
    }
    .stat {
      padding: 24px 20px;
      border-right: 1px solid var(--line);
    }
    .stat:last-child { border-right: 0; }
    .stat .big { color: var(--accent-soft); font-family: Georgia, serif; font-size: 32px; }
    .stat small { display: block; color: var(--muted); margin-top: 6px; line-height: 1.45; }

    .timeline {
      display: grid;
      gap: 18px;
      margin-top: 36px;
    }

    .job {
      display: grid;
      grid-template-columns: 170px 1fr;
      gap: 26px;
      padding: 22px 0;
      border-top: 1px solid var(--line);
    }
    .job .years { color: var(--accent-soft); font-size: 14px; letter-spacing: .06em; }
    .job h3 { font-size: 26px; font-family: Georgia, serif; }
    .job p { margin: 9px 0 0; color: #c1c1bd; line-height: 1.55; }
    .job .tags { margin-top: 12px; }

    .tags {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }
    .tag {
      border: 1px solid rgba(255,255,255,.14);
      padding: 6px 9px;
      color: #c4c4c0;
      font-size: 11px;
    }

    .skills-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1px;
      background: var(--line);
      margin-top: 36px;
      border: 1px solid var(--line);
    }
    .skill {
      background: rgba(9,9,9,.94);
      padding: 24px;
      min-height: 145px;
    }
    .skill strong { display: block; font-size: 18px; margin-bottom: 9px; }
    .skill p { color: var(--muted); margin: 0; line-height: 1.5; font-size: 14px; }
    .skill .glyph { color: var(--accent); font-size: 24px; margin-bottom: 18px; }

    .projects {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
      margin-top: 36px;
    }
    .project {
      background: rgba(6,6,6,.86);
      border: 1px solid var(--line);
      padding: 24px;
      min-height: 280px;
      position: relative;
      overflow: hidden;
      transition: .25s ease;
    }
    .project:hover { transform: translateY(-4px); border-color: rgba(214,161,74,.6); }
    .project::before {
      content: "";
      position: absolute;
      left: 0; top: 0; right: 0;
      height: 4px;
      background: linear-gradient(90deg, var(--accent), transparent);
    }
    .project h3 { font-size: 28px; margin-top: 20px; }
    .project p { color: #bdbdb9; line-height: 1.55; }
    .project .mini-link { color: var(--accent-soft); margin-top: 20px; display: inline-block; }

    .tech-strip {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 34px;
    }
    .tech {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      min-width: 110px;
      padding: 12px 14px;
      border: 1px solid var(--line);
      background: rgba(0,0,0,.28);
    }
    .tech b { color: var(--accent-soft); }

    .engagements {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
      margin-top: 36px;
    }
    .engagement {
      padding: 24px;
      border: 1px solid var(--line);
      background: rgba(5,5,5,.74);
    }
    .engagement h3 { font-size: 24px; }
    .engagement p { color: var(--muted); line-height: 1.55; }

    .contact-grid {
      display: grid;
      grid-template-columns: 1.2fr .8fr;
      gap: 42px;
      align-items: center;
    }
    .contact-card {
      border-left: 1px solid var(--line);
      padding-left: 32px;
      display: grid;
      gap: 18px;
    }

    .rail {
      position: fixed;
      right: 20px;
      top: 50%;
      transform: translateY(-50%);
      z-index: 35;
      display: grid;
      gap: 14px;
    }
    .rail button {
      width: 10px; height: 10px;
      padding: 0;
      border: 1px solid rgba(255,255,255,.55);
      border-radius: 50%;
      background: rgba(0,0,0,.4);
      cursor: pointer;
    }
    .rail button.active { background: var(--accent); border-color: var(--accent); }

    footer {
      max-width: var(--max);
      margin: 0 auto;
      padding: 28px 26px 42px;
      color: #8f8f8b;
      display: flex;
      justify-content: space-between;
      gap: 20px;
      font-size: 12px;
    }

    @media (max-width: 900px) {
      .navlinks { display: none; }
      .hero-grid, .contact-grid { grid-template-columns: 1fr; }
      .hero-side, .contact-card { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 28px; }
      .stats { grid-template-columns: 1fr 1fr; }
      .stat:nth-child(2) { border-right: 0; }
      .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
      .skills-grid { grid-template-columns: 1fr 1fr; }
      .projects, .engagements { grid-template-columns: 1fr 1fr; }
      .job { grid-template-columns: 1fr; gap: 7px; }
      .rail { display: none; }
      section { min-height: auto; }
      .section-inner { margin-block: 26px; }
    }

    @media (max-width: 620px) {
      .nav { padding-inline: 16px; }
      .brand span:last-child { display: none; }
      .section-inner { width: calc(100% - 20px); padding: 52px 20px; }
      .stats, .skills-grid, .projects, .engagements { grid-template-columns: 1fr; }
      .stat { border-right: 0; border-bottom: 1px solid var(--line); }
      .stat:last-child { border-bottom: 0; }
      h1 { font-size: 53px; }
      .tech { min-width: calc(50% - 6px); }
    }
  
    .compact-section { min-height: 56vh; }

    .path-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 18px;
    }

    .path-card {
      min-height: 270px;
      display: grid;
      grid-template-columns: 54px 1fr;
      gap: 24px;
      padding: 34px;
      background: rgba(6,6,6,.75);
      border: 1px solid var(--line);
      transition: .22s ease;
    }

    .path-card:hover {
      border-color: rgba(214,161,74,.7);
      transform: translateY(-3px);
      background: rgba(10,10,10,.88);
    }

    .path-number {
      color: var(--accent);
      font-family: Georgia, serif;
      font-size: 22px;
    }

    .path-card h3 {
      font-size: 34px;
      margin-bottom: 16px;
    }

    .path-card p {
      color: #bdbdb9;
      line-height: 1.6;
      max-width: 520px;
    }

    .path-link {
      display: inline-block;
      margin-top: 28px;
      color: var(--accent-soft);
    }

    .service-intro {
      display: grid;
      grid-template-columns: 1.05fr .95fr;
      gap: 70px;
      align-items: end;
    }

    .service-lede { margin-top: 0; }

    .service-detail-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 18px;
      margin-top: 48px;
    }

    .service-detail {
      position: relative;
      padding: 32px;
      background: rgba(5,5,5,.76);
      border: 1px solid var(--line);
      min-height: 430px;
    }

    .service-detail:hover {
      border-color: rgba(214,161,74,.48);
    }

    .service-index {
      color: var(--accent);
      font-size: 12px;
      letter-spacing: .16em;
      margin-bottom: 25px;
    }

    .service-detail h3 {
      font-size: 31px;
      margin-bottom: 16px;
    }

    .service-detail > p {
      color: #c2c2be;
      line-height: 1.58;
    }

    .service-detail ul {
      margin: 24px 0;
      padding-left: 18px;
      color: #b3b3af;
      line-height: 1.8;
    }

    .service-detail li::marker { color: var(--accent); }

    .best-for {
      border-top: 1px solid var(--line);
      padding-top: 18px;
      color: #aaa9a5;
      font-size: 13px;
      line-height: 1.55;
    }

    .best-for strong { color: var(--text); }

    .engagement-models {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 14px;
      margin-top: 44px;
    }

    .engagement-model {
      border: 1px solid var(--line);
      background: rgba(5,5,5,.77);
      padding: 28px;
      min-height: 325px;
      display: flex;
      flex-direction: column;
    }

    .featured-model {
      border-color: rgba(214,161,74,.62);
      box-shadow: inset 0 0 0 1px rgba(214,161,74,.08);
    }

    .model-label {
      color: var(--accent);
      text-transform: uppercase;
      letter-spacing: .16em;
      font-size: 10px;
      margin-bottom: 22px;
    }

    .engagement-model h3 {
      font-size: 27px;
      margin-bottom: 16px;
    }

    .engagement-model p {
      color: #b8b8b4;
      line-height: 1.62;
      flex: 1;
    }

    .model-footer {
      border-top: 1px solid var(--line);
      padding-top: 17px;
      color: #d0d0cb;
      font-size: 12px;
      line-height: 1.5;
    }

    .human-ai-band {
      margin-top: 36px;
      display: grid;
      grid-template-columns: .8fr 1.2fr;
      gap: 46px;
      padding: 32px;
      border: 1px solid var(--line);
      background: linear-gradient(90deg, rgba(214,161,74,.07), rgba(5,5,5,.7));
      align-items: center;
    }

    .human-ai-band h3 { font-size: 31px; }
    .human-ai-band p {
      margin: 0;
      color: #bebeba;
      line-height: 1.65;
    }

    @media (max-width: 900px) {
      .path-grid,
      .service-intro,
      .service-detail-grid,
      .human-ai-band { grid-template-columns: 1fr; }
      .engagement-models { grid-template-columns: 1fr 1fr; }
    }

    @media (max-width: 620px) {
      .path-grid,
      .service-detail-grid,
      .engagement-models { grid-template-columns: 1fr; }
      .path-card { grid-template-columns: 1fr; }
    }

  
    .tech-strip {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 10px;
    }
    .tech {
      min-width: 0;
      padding: 11px 12px;
      justify-content: flex-start;
      background: rgba(0,0,0,.34);
      transition: .18s ease;
    }
    .tech:hover {
      border-color: rgba(214,161,74,.55);
      transform: translateY(-1px);
    }
    .tech-badge {
      display: inline-grid;
      place-items: center;
      min-width: 38px;
      height: 28px;
      padding: 0 7px;
      border: 1px solid rgba(214,161,74,.35);
      color: var(--accent-soft);
      font-size: 10px;
      font-weight: 700;
      background: rgba(214,161,74,.05);
    }
    .consult-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin-top: 44px;
    }
    .consult-card {
      padding: 28px;
      border: 1px solid var(--line);
      background: rgba(5,5,5,.74);
      min-height: 255px;
    }
    .consult-card h3 { font-size: 28px; margin: 15px 0 14px; }
    .consult-card p { color: #b7b7b3; line-height: 1.6; margin: 0; }
    .consult-label {
      color: var(--accent);
      text-transform: uppercase;
      letter-spacing: .16em;
      font-size: 10px;
    }
    .consult-note {
      margin-top: 20px;
      padding: 22px 26px;
      border-left: 3px solid var(--accent);
      background: rgba(214,161,74,.05);
      display: grid;
      grid-template-columns: 220px 1fr;
      gap: 22px;
      align-items: start;
    }
    .consult-note span { color: #bdbdb9; line-height: 1.6; }
    @media (max-width: 1100px) { .tech-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
    @media (max-width: 900px) {
      .tech-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .consult-grid, .consult-note { grid-template-columns: 1fr; }
    }
    @media (max-width: 620px) { .tech-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

  
    .skill-heading-row {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 32px;
      align-items: end;
    }
    .skill-carousel-controls { display:flex; align-items:center; gap:12px; }
    .carousel-btn {
      width: 46px; height: 46px; border:1px solid var(--line); background:rgba(0,0,0,.35);
      color:var(--text); cursor:pointer; font-size:20px; transition:.2s ease;
    }
    .carousel-btn:hover { border-color:var(--accent); color:var(--accent-soft); }
    #skillCounter { color:var(--muted); font-size:12px; letter-spacing:.12em; min-width:58px; text-align:center; }
    .skills-carousel { margin-top:36px; overflow:hidden; }
    .skill-page { display:none; }
    .skill-page.active { display:block; animation: skillFade .24s ease; }
    @keyframes skillFade { from {opacity:.25; transform:translateY(5px)} to {opacity:1; transform:none} }
    .skill-page-title { display:flex; gap:14px; align-items:center; margin-bottom:14px; color:var(--muted); }
    .skill-page-title span { color:var(--accent); font-size:11px; }
    .skill-page-title strong { text-transform:uppercase; letter-spacing:.16em; font-size:11px; }
    .skill-matrix {
      display:grid;
      grid-template-columns:repeat(6, 1fr);
      grid-template-rows:repeat(3, minmax(78px, auto));
      border-top:1px solid var(--line);
      border-left:1px solid var(--line);
    }
    .skill-chip {
      min-height:86px;
      padding:15px;
      display:flex; align-items:center; gap:12px;
      border-right:1px solid var(--line); border-bottom:1px solid var(--line);
      background:rgba(5,5,5,.72);
    }
    .skill-logo {
      min-width:42px; height:36px; padding:0 6px;
      display:grid; place-items:center;
      color:var(--accent-soft); border:1px solid rgba(214,161,74,.34);
      font-size:10px; font-weight:800;
      background:rgba(214,161,74,.045);
    }
    .skill-copy { display:grid; gap:3px; min-width:0; }
    .skill-copy strong { font-size:13px; line-height:1.15; }
    .skill-copy small { color:var(--muted); font-size:10px; }
    .skill-dots { display:flex; gap:7px; margin-top:16px; flex-wrap:wrap; }
    .skill-dot { width:24px; height:3px; border:0; background:rgba(255,255,255,.14); cursor:pointer; padding:0; }
    .skill-dot.active { background:var(--accent); }
    .skills-note { margin-top:14px; }

    .work-grid { display:grid; grid-template-columns:1fr 1fr 1fr; gap:16px; margin-top:44px; }
    .work-card {
      min-height:300px; padding:28px; border:1px solid var(--line); background:rgba(5,5,5,.76);
    }
    .work-card.featured-work { grid-column:span 2; background:linear-gradient(135deg, rgba(214,161,74,.08), rgba(5,5,5,.82)); }
    .work-kicker { color:var(--accent); text-transform:uppercase; letter-spacing:.14em; font-size:10px; }
    .work-card h3 { margin:18px 0 14px; font-size:30px; }
    .work-card p { color:#b9b9b5; line-height:1.6; }
    .human-engineered-panel {
      margin-top:24px; display:grid; grid-template-columns:.65fr 1.35fr; gap:36px;
      padding:30px; border:1px solid var(--line); background:rgba(7,7,7,.78);
    }
    .human-engineered-panel h3 { font-size:34px; }
    .quality-list { display:grid; grid-template-columns:1fr 1fr; gap:1px; background:var(--line); }
    .quality-list > div { padding:22px; background:rgba(5,5,5,.94); }
    .quality-list strong { display:block; margin-bottom:7px; color:var(--text); }
    .quality-list span { color:var(--muted); line-height:1.55; font-size:13px; }

    .inline-price-button {
      margin-top:18px; padding:10px 0; border:0; background:transparent; color:var(--accent-soft);
      cursor:pointer; font:inherit; font-size:13px;
    }
    .modal-backdrop {
      position:fixed; inset:0; z-index:100; display:none; align-items:center; justify-content:center;
      padding:24px; background:rgba(0,0,0,.78); backdrop-filter:blur(12px);
    }
    .modal-backdrop.open { display:flex; }
    .pricing-modal {
      width:min(1120px, 96vw); max-height:92vh; overflow:auto; position:relative;
      padding:42px; border:1px solid rgba(214,161,74,.35); background:#0a0a0a;
      box-shadow:0 40px 120px rgba(0,0,0,.65);
    }
    .modal-close {
      position:absolute; right:18px; top:12px; border:0; background:transparent; color:var(--text);
      font-size:34px; cursor:pointer;
    }
    .price-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:32px; }
    .price-card { padding:26px; border:1px solid var(--line); background:#080808; }
    .price-featured { border-color:rgba(214,161,74,.65); background:linear-gradient(180deg,rgba(214,161,74,.07),#080808); }
    .price-label { color:var(--accent); text-transform:uppercase; letter-spacing:.15em; font-size:10px; }
    .price { font-family:Georgia,serif; font-size:42px; margin:14px 0 6px; }
    .price span { font-family:Inter,system-ui,sans-serif; font-size:13px; color:var(--muted); }
    .price-capacity { color:#c9c9c5; font-size:12px; margin-bottom:18px; }
    .price-card ul { padding-left:18px; color:var(--muted); line-height:1.75; }
    .price-card li::marker { color:var(--accent); }

    @media(max-width:1100px) {
      .skill-matrix { grid-template-columns:repeat(3,1fr); grid-template-rows:auto; }
      .work-grid { grid-template-columns:1fr 1fr; }
      .work-card.featured-work { grid-column:span 2; }
    }
    @media(max-width:760px) {
      .skill-heading-row, .human-engineered-panel { grid-template-columns:1fr; }
      .skill-carousel-controls { justify-content:flex-start; }
      .skill-matrix { grid-template-columns:1fr 1fr; }
      .work-grid { grid-template-columns:1fr; }
      .work-card.featured-work { grid-column:span 1; }
      .quality-list { grid-template-columns:1fr; }
      .price-grid { grid-template-columns:1fr; }
      .pricing-modal { padding:28px 20px; }
    }


    .display-word {
      font-size: clamp(48px, 6vw, 76px);
      line-height: .92;
      margin: 0 0 12px;
    }
    .display-subtitle {
      margin: 0;
      max-width: 720px;
      color: #d2d2ce;
      font-size: clamp(18px, 2vw, 25px);
      line-height: 1.35;
      font-weight: 450;
    }

    .skill-logo {
      width: 48px;
      min-width: 48px;
      height: 36px;
      padding: 0 4px;
      font-size: 8px;
      line-height: 1;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: clip;
      letter-spacing: -.02em;
    }
    .skill-chip {
      overflow: hidden;
      min-width: 0;
    }
    .skill-copy {
      min-width: 0;
    }
    .skill-copy strong,
    .skill-copy small {
      overflow-wrap: anywhere;
    }

    .service-intro {
      align-items: start;
    }

    @media(max-width:760px) {
      .display-word { font-size: 50px; }
      .display-subtitle { font-size: 18px; }
      .skill-logo { width: 44px; min-width: 44px; font-size: 7px; }
    }


    .mobile-menu-toggle {
      display: none;
      width: 42px;
      height: 42px;
      border: 1px solid var(--line);
      background: rgba(0,0,0,.32);
      padding: 9px;
      cursor: pointer;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 5px;
    }
    .mobile-menu-toggle span {
      width: 20px;
      height: 1px;
      background: var(--text);
      transition: transform .22s ease, opacity .22s ease;
    }
    .mobile-menu-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .mobile-menu-toggle.open span:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

    .mobile-menu {
      display: none;
      position: fixed;
      top: 72px;
      left: 0;
      right: 0;
      z-index: 39;
      padding: 16px 22px 22px;
      background: rgba(5,5,5,.97);
      border-bottom: 1px solid var(--line);
      backdrop-filter: blur(18px);
      box-shadow: 0 20px 50px rgba(0,0,0,.35);
    }
    .mobile-menu.open { display: grid; }
    .mobile-menu a {
      padding: 14px 4px;
      border-bottom: 1px solid rgba(255,255,255,.07);
      color: #dddcd8;
      font-size: 15px;
    }
    .mobile-menu a:last-child { border-bottom: 0; }
    .mobile-menu-contact {
      color: var(--accent-soft) !important;
      font-weight: 700;
    }

    @media (max-width: 1100px) {
      .navlinks { display: none; }
      .mobile-menu-toggle { display: flex; }
      .nav > .cta { display: none; }
    }


/* Resource teaser: content and presentation kept separate. */
.resource-teaser {
  margin-top: 26px;
  padding: 24px 28px;
  border: 1px solid rgba(214, 161, 74, .35);
  background: rgba(214, 161, 74, .045);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.resource-teaser-copy { max-width: 710px; }
.resource-teaser-kicker { margin-bottom: 12px; }
.resource-teaser-title { display: block; font: normal 27px Georgia, serif; }
.resource-teaser-description { margin: 9px 0 0; }
.resource-teaser-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Accessible interaction states */
:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 4px;
}
[hidden] { display: none !important; }
body.modal-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Keep the expanded navigation from clipping on laptop-sized screens. */
@media (max-width: 1180px) {
  .navlinks { display: none; }
  .mobile-menu-toggle { display: flex; }
  .nav > .cta { display: none; }
}
.skip-link {
  position: fixed; top: -6rem; left: 1rem; z-index: 200;
  background: var(--accent); color: #080808; padding: .75rem 1rem;
}
.skip-link:focus { top: 1rem; }
