:root {
    --cream: #fffaf0;
    --sky: #dff4ff;
    --green: #7f9c78;
    --brown: #8b6f47;
    --text: #262626;
    --white: #ffffff;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(var(--sky), var(--cream));
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    padding: 24px 32px;
    background: rgba(255, 250, 240, 0.72);
    backdrop-filter: blur(16px);
  }
  
  nav div {
    display: flex;
    gap: 24px;
  }

  nav div a {
    font-size: 1.375rem;
    font-weight: 500;
  }

  #work {
    scroll-margin-top: 100px;
  }
  
  .logo {
    font-weight: 800;
  }
  
  body {
    font-family: "Poppins", "Inter", sans-serif;
    background:
      linear-gradient(
        to bottom,
        #f7f7f5,
        #efeee9
      );
    color: #111;
    overflow-x: hidden;
  }
  
  /* BACKGROUND */
  
  .city-background {
    position: fixed;
    inset: 0;
    z-index: -10;
    overflow: hidden;
  }
  
  /* GRID */
  
  .grid-overlay {
    position: absolute;
    inset: 0;
  
    background-image:
      linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  
    background-size: 40px 40px;
  
    opacity: 0.5;
  }
  
  /* LIGHT BLOBS */
  
  .light {
    position: absolute;
    border-radius: 999px;
    filter: blur(120px);
    opacity: 0.4;
    animation: floatLight 14s ease-in-out infinite;
  }
  
  .light-1 {
    width: 420px;
    height: 420px;
    background: rgba(255, 215, 120, 0.18);
    top: 10%;
    left: -5%;
  }
  
  .light-2 {
    width: 500px;
    height: 500px;
    background: rgba(110, 140, 255, 0.12);
    top: 30%;
    right: -10%;
  }
  
  .light-3 {
    width: 380px;
    height: 380px;
    background: rgba(255, 120, 160, 0.08);
    bottom: 0%;
    left: 30%;
  }
  
  /* SKYLINE */
  
  .skyline {
    position: absolute;
    left: 0;
    width: 100%;
    background-repeat: repeat-x;
    opacity: 0.08;
  }
  
  .skyline-back {
    bottom: 0;
    height: 260px;
  
    background-image:
      linear-gradient(
        to top,
        rgba(0,0,0,0.08),
        transparent
      );
  
    clip-path: polygon(
      0% 100%,
      0% 40%,
      5% 38%,
      5% 60%,
      10% 60%,
      10% 20%,
      15% 20%,
      15% 50%,
      20% 50%,
      20% 30%,
      28% 30%,
      28% 75%,
      34% 75%,
      34% 45%,
      40% 45%,
      40% 15%,
      48% 15%,
      48% 55%,
      54% 55%,
      54% 25%,
      62% 25%,
      62% 70%,
      70% 70%,
      70% 35%,
      78% 35%,
      78% 58%,
      86% 58%,
      86% 18%,
      94% 18%,
      94% 100%
    );
  }
  
  .skyline-front {
    bottom: 0;
    height: 180px;
  
    background:
      linear-gradient(
        to top,
        rgba(0,0,0,0.12),
        transparent
      );
  
    opacity: 0.12;
  
    clip-path: polygon(
      0% 100%,
      0% 65%,
      8% 65%,
      8% 30%,
      15% 30%,
      15% 55%,
      22% 55%,
      22% 25%,
      32% 25%,
      32% 80%,
      42% 80%,
      42% 40%,
      52% 40%,
      52% 18%,
      64% 18%,
      64% 60%,
      76% 60%,
      76% 30%,
      88% 30%,
      88% 50%,
      100% 50%,
      100% 100%
    );
  }
  
  /* FLOATING LIGHT MOTION */
  
  @keyframes floatLight {
    0% {
      transform: translateY(0px) translateX(0px);
    }
  
    50% {
      transform: translateY(-30px) translateX(20px);
    }
  
    100% {
      transform: translateY(0px) translateX(0px);
    }
  }
  .home-hero {
    /* fill the viewport below the sticky nav so it reads as a full hero */
    min-height: calc(100vh - 84px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px 80px;
    gap: 40px;
  }

  @media (min-width: 900px) {
    .home-hero {
      flex-direction: row;
      text-align: left;
      gap: 60px;
      padding: 40px 60px 80px;
    }
    .home-hero .eyebrow { text-align: left; }
    .home-hero .quick-facts { margin-left: 0; text-align: left; }
    .home-hero .treasure { align-self: flex-start; }
  }

  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 auto;
  }

  @media (min-width: 900px) {
    .hero-text {
      align-items: flex-start;
    }
  }

  .hero-photo-wrap {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
  }

  .hero-photo {
    width: min(480px, 45vw);
    aspect-ratio: 4 / 3.5;
    object-fit: cover;
    object-position: center top;
    border-radius: 18px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    display: block;
  }

  @media (max-width: 899px) {
    .hero-photo {
      width: min(360px, 88vw);
    }
  }
  
  .eyebrow {
    color: var(--brown);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
  }
  
  .home-hero h1 {
    max-width: 1100px;
    font-size: clamp(2.4rem, 5.5vw, 5.8rem);
    line-height: 1.12;
    letter-spacing: -0.06em;
    font-weight: 500;
  }
  
  .role-line {
    margin-top: 22px;
    font-size: clamp(1.05rem, 2vw, 1.4rem);
    font-weight: 800;
    letter-spacing: 0.01em;
    color: var(--text);
  }

  .quick-facts {
    margin: 14px auto 0;
    max-width: 720px;
    font-size: 0.92rem;
    font-weight: 500;
    color: rgba(38, 38, 38, 0.62);
  }

  .home-hero p:last-child,
  .brain-hero p:last-child {
    max-width: 620px;
    margin-top: 24px;
    font-size: 1.2rem;
  }
  
  .filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 24px 48px;
  }
  
  .filters button {
    border: 1.5px solid var(--text);
    border-radius: 999px;
    padding: 12px 18px;
    background: white;
    cursor: pointer;
    font-weight: 700;
  }
  
  .filters button.active,
  .filters button:hover {
    background: var(--green);
    color: white;
  }
  
  .bento-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 230px;
    gap: 14px;
    padding: 0 24px 80px;
  }
  
  .tile {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #ddd;
    /* every tile is the same size — 2 columns × 2 rows */
    grid-column: span 2;
    grid-row: span 2;
  }
  
  .tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.95);
    transition: 0.3s ease;
  }
  
  .tile:hover img {
    transform: scale(1.06);
  }
  
  .tile span {
    position: absolute;
    left: 20px;
    bottom: 18px;
    color: white;
    font-size: clamp(1.4rem, 3vw, 2.5rem);
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-shadow: 0 4px 20px rgba(0,0,0,0.45);
  }
  
  .tile.hide {
    display: none;
  }
  
  .about-page {
    min-height: 85vh;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 64px;
    align-items: center;
    padding: 80px 8vw;
  }
  
  .about-image {
    position: relative;
    aspect-ratio: 5 / 6;
  }

  .about-image .about-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 32px;
    opacity: 0;
    transition: opacity 1.1s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
    will-change: opacity, transform;
  }

  .about-image .about-photo.is-active {
    opacity: 1;
  }

  .about-image:hover .about-photo.is-active {
    transform: translateY(-8px) scale(1.02) rotate(-1deg);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.22);
  }

  .about-copy h1,
  .brain-hero h1 {
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
  }

  .about-copy p {
    font-size: 1.25rem;
    max-width: 680px;
    margin: 24px 0;
  }

  .about-pov {
    max-width: 680px;
    margin: 28px 0 8px;
    padding: 12px 24px;
    border-left: 4px solid var(--green);
    background: rgba(127, 156, 120, 0.08);
    border-radius: 0 12px 12px 0;
  }

  .pov-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 6px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
  }

  .about-pov .pov-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.5;
    transition: opacity 0.2s ease;
  }

  .pov-toggle:hover .pov-label { opacity: 0.9; }

  .pov-caret {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
    color: var(--green);
    transition: transform 0.3s ease;
  }

  .about-pov.open .pov-caret { transform: rotate(45deg); }

  .pov-reveal {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
  }

  .about-pov.open .pov-reveal { grid-template-rows: 1fr; }

  .about-pov .pov-text {
    overflow: hidden;
    margin: 0;
    max-width: none;
    font-size: 1.3rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.4;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .about-pov.open .pov-text {
    opacity: 1;
    padding-top: 10px;
  }

  .about-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
  }
  
  .about-links a {
    background: white;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 700;
  }
  
  .brain-hero {
    text-align: center;
    padding: 120px 24px 60px;
  }
  
  .dump-board {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding: 40px 8vw 100px;
    justify-content: center;
  }
  
  .dump-board div {
    padding: 28px 36px;
    border-radius: 28px;
    background: white;
    border: 2px dashed var(--green);
    font-size: 1.3rem;
    font-weight: 800;
  }
  
  footer {
    padding: 56px 32px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    background: var(--text);
    color: white;
  }
  
  footer a {
    text-decoration: underline;
    margin-left: 16px;
  }
  
  @media (max-width: 900px) {
    .bento-grid {
      grid-template-columns: repeat(2, 1fr);
      grid-auto-rows: 220px;
    }

    .tile {
      grid-column: span 2;
      grid-row: span 1;
    }

    .about-page {
      grid-template-columns: 1fr;
    }
  
    nav {
      flex-direction: column;
      gap: 14px;
    }
  
    nav div {
      flex-wrap: wrap;
    }
  }
  body {
    font-family: "Poppins", "Inter", Arial, sans-serif;
  }
  
  .cursive-name {
    font-family: "Great Vibes", cursive;
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    background: linear-gradient(100deg, #7f9c78, #c15f3c 35%, #4a6fa5 60%, #7f9c78);
    background-size: 250% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: nameGradient 6s linear infinite;
  }

  @keyframes nameGradient {
    to { background-position: 250% center; }
  }

  .typewriter-heading {
    min-height: 2.8em;
  }

  .grad-word {
    background: linear-gradient(100deg, #7f9c78, #c15f3c 55%, #4a6fa5);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
  
  .typing-cursor {
    animation: blink 0.8s infinite;
    font-weight: 300;
  }
  
  @keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
  }
  
  .bento-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 230px;
    gap: 14px;
    padding: 0 24px 80px;
  }
  
  .tile {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #ddd;
    transition:
      transform 0.35s ease,
      box-shadow 0.35s ease,
      grid-column 0.35s ease,
      grid-row 0.35s ease;
    cursor: pointer;
  }
  
  .tile:hover {
    transform: scale(1.025);
    z-index: 8;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  }
  
  .tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to top,
      rgba(0,0,0,0.65),
      rgba(0,0,0,0.15),
      rgba(0,0,0,0)
    );
    opacity: 0.9;
    transition: 0.3s ease;
  }
  
  .tile:hover::after {
    opacity: 1;
  }
  
  .tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.95);
    transition: transform 0.55s ease, filter 0.35s ease;
  }
  
  .tile:hover img {
    transform: scale(1.12);
    filter: saturate(1.1) contrast(1.05);
  }
  
  .tile span {
    position: absolute;
    left: 22px;
    bottom: 20px;
    z-index: 3;
    color: white;
    font-size: clamp(1.2rem, 2.4vw, 2.4rem);
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-shadow: 0 4px 20px rgba(0,0,0,0.45);
    transition: transform 0.35s ease;
  }
  
  .tile:hover span {
    transform: translateY(-14px);
  }
  
  .tile .tile-info {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 20px;
    z-index: 3;
    color: white;
    opacity: 0;
    transform: translateY(18px);
    transition: 0.35s ease;
    font-size: 0.95rem;
    max-width: 420px;
  }
  
  .tile:hover .tile-info {
    opacity: 1;
    transform: translateY(0);
  }
  
  .tile:hover span {
    bottom: 88px;
  }

  .about-title {
    font-size: clamp(4rem, 9vw, 8rem);
    line-height: 0.9;
    letter-spacing: -0.07em;
    font-weight: 500;
    min-height: 2.2em;
  }

  /* name is solid black until hovered, then a color-shifting gradient
     flows across whatever part of it you're over */
  .about-title #typedAbout {
    color: #1a1a1a;
    cursor: default;
  }

  .about-title #typedAbout:hover {
    background: linear-gradient(100deg, #7f9c78, #c15f3c 30%, #4a6fa5 55%, #c15f3c 80%, #7f9c78);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: nameGradient 4s linear infinite;
  }

  .typing-cursor {
    animation: blinkCursor 0.8s infinite;
    font-weight: 300;
  }
  
  @keyframes blinkCursor {

    0%, 50% {
      opacity: 1;
    }

    51%, 100% {
      opacity: 0;
    }
  }

  /* MINDSET & METHODOLOGIES */
  .approach {
    padding: 24px 8vw 96px;
    max-width: 1100px;
    margin: 0 auto;
  }

  .approach-head {
    text-align: center;
    margin-bottom: 48px;
  }

  .approach-head h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: -0.04em;
    line-height: 1;
    font-weight: 600;
  }

  .approach-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
  }

  .approach-sub {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 20px;
  }

  .approach-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .approach-list li {
    font-size: 1.02rem;
    line-height: 1.5;
    color: var(--text);
    opacity: 0.85;
    padding-left: 18px;
    border-left: 3px solid var(--green);
  }

  .approach-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .approach-tag {
    background: #fff;
    border: 1.5px solid var(--text);
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: default;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease,
      box-shadow 0.2s ease;
  }

  .approach-tag:hover {
    transform: scale(1.08);
    background: var(--green);
    color: #fff;
    border-color: var(--green);
    box-shadow: 0 6px 16px rgba(127, 156, 120, 0.35);
  }

  @media (max-width: 760px) {
    .approach-cols {
      grid-template-columns: 1fr;
      gap: 40px;
    }
  }

  /* FLOATING SPOTIFY MINI-PLAYER */
  .music-player {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
  }

  .music-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 18px;
    border: none;
    border-radius: 999px;
    background: var(--text);
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, background 0.2s ease;
  }

  .music-toggle:hover {
    transform: translateY(-2px);
    background: var(--green);
  }

  .music-note {
    font-size: 1.1rem;
    animation: notePulse 1.6s ease-in-out infinite;
  }

  @keyframes notePulse {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50%      { transform: scale(1.22); opacity: 1; }
  }

  .music-body {
    width: 320px;
    max-width: 78vw;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
    animation: musicIn 0.28s ease;
  }

  .music-body[hidden] { display: none; }

  .music-body iframe { display: block; border: 0; }

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

  /* JOYFUL CURSOR — sparkle trail */
  .sparkle {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    user-select: none;
    transform: translate(-50%, -50%);
    animation: sparkleFloat 0.85s ease-out forwards;
    will-change: transform, opacity;
  }

  @keyframes sparkleFloat {
    0% {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
    100% {
      opacity: 0;
      transform: translate(calc(-50% + var(--sx)), calc(-50% - 20px))
        scale(0.3) rotate(40deg);
    }
  }

  /* TREASURE BOX */

  .treasure {
    position: relative;
    z-index: 5;
    margin-top: 36px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 6px;
  }

  .chest {
    position: relative;
    width: 64px;
    height: 52px;
    perspective: 320px;
    transition: transform 0.25s ease;
  }

  .treasure:hover .chest {
    transform: translateY(-3px) scale(1.05);
  }

  .chest-body {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 64px;
    height: 34px;
    background: linear-gradient(#b07c44, #8b5a2b);
    border: 3px solid #5f3d1f;
    border-radius: 6px 6px 8px 8px;
  }

  /* vertical gold band + base trim */
  .chest-body::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -3px;
    transform: translateX(-50%);
    width: 12px;
    height: calc(100% + 6px);
    background: linear-gradient(#ffd76a, #e0a93b);
    border-left: 2px solid #5f3d1f;
    border-right: 2px solid #5f3d1f;
  }

  .chest-lock {
    position: absolute;
    left: 50%;
    top: 8px;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #ffd76a;
    border: 2px solid #5f3d1f;
    border-radius: 3px;
    z-index: 2;
  }

  .chest-lid {
    position: absolute;
    top: 0;
    left: 0;
    width: 64px;
    height: 22px;
    background: linear-gradient(#c08850, #9a6531);
    border: 3px solid #5f3d1f;
    border-radius: 10px 10px 0 0;
    transform-origin: bottom center;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
  }

  .chest.open .chest-lid {
    transform: rotateX(-125deg);
  }

  .treasure-hint {
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    color: var(--brown, #8b6f47);
    background: rgba(255, 250, 240, 0.85);
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
    animation: treasureBob 1.8s ease-in-out infinite;
  }

  @keyframes treasureBob {
    0%, 100% { transform: translateY(0); opacity: 0.85; }
    50%      { transform: translateY(-3px); opacity: 1; }
  }

  /* artifact stickers/pins that fly out — appended to <body> by JS.
     They start at the chest and transition to a resting spot, staying
     on screen until the box is closed again. */
  .artifact-img {
    position: fixed;
    z-index: 40;
    width: 104px;
    height: auto;
    pointer-events: none;
    user-select: none;
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg) scale(0.15);
    transition:
      transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
      opacity 0.45s ease;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.18));
    will-change: transform, opacity;
  }

  @media (prefers-reduced-motion: reduce) {
    .treasure-hint { animation: none; }
    .artifact-img { transition-duration: 0.3s; }
  }

  /* Featured logo-cover tile (e.g. Addison) — shows a brand wordmark
     on a soft background instead of a cropped photo */
  .tile.cover-logo {
    background: #ffffff;
  }

  .tile.cover-logo img {
    object-fit: contain;
    padding: 6%;
    filter: none;
  }

  .tile.cover-logo:hover img {
    transform: scale(1.05);
    filter: none;
  }

  /* fill variant — wordmark image already carries its own background,
     so let it bleed to the tile edges instead of contain + white padding */
  .tile.cover-logo--fill { background: transparent; }
  .tile.cover-logo--fill img { object-fit: cover; padding: 0; }

  /* navy-field variant — a portrait brand logo centered on its own
     background colour so a landscape tile reads as a clean banner */
  .tile.cover-logo--mccarthy { background: #0f181f; }
  .tile.cover-logo--mccarthy img { object-fit: contain; padding: 0; }
  .tile.cover-logo--mccarthy .cover-tag {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: max-content;
    max-width: 90%;
    color: #fff;
    background: rgba(15, 24, 31, 0.82);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    padding: 7px 16px;
    border-radius: 999px;
  }

  /* drop the dark photo gradient; show a clear "what is this" caption */
  .tile.cover-logo::after { display: none; }

  .tile.cover-logo .cover-tag {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    text-align: center;
    color: var(--brown);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    text-shadow: none;
  }

  /* TOOLS — grouped skill cards */

  .tools {
    padding: 24px 0 56px;
  }

  /* scroll reveal — fade sections up as they enter the viewport (JS adds .in) */
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal.in {
    opacity: 1;
    transform: none;
  }

  @media (prefers-reduced-motion: reduce) {
    .reveal {
      opacity: 1;
      transform: none;
      transition: none;
    }
  }

  .tools-head {
    text-align: center;
    margin-bottom: 28px;
    padding: 0 24px;
  }

  .work-head {
    margin-top: 48px;
  }

  .tools-head h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: -0.04em;
    line-height: 1;
    font-weight: 600;
  }

  /* grouped skill chips — label above each row for a chunked, scannable feel */
  .tool-groups {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .tool-group-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8a8a82;
    text-align: left;
    margin: 0 0 10px;
  }

  .tool-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
  }

  .tool-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.07);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
  }

  .tool-chip:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.16);
  }

  .tool-chip img,
  .tool-chip svg {
    height: 20px;
    width: 20px;
    object-fit: contain;
    flex: none;
  }

  /* inline icons for tools without a brand logo */
  .tool-chip svg {
    color: #555;
  }
/* ============================================================
   TESTIMONIAL (home page)
   ============================================================ */
.testimonial {
  padding: 80px 8vw;
  display: flex;
  justify-content: center;
}

.testimonial-card {
  max-width: 980px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: clamp(28px, 5vw, 56px);
  background: #ffffff;
  border: 3px solid transparent;
  border-radius: 28px;
  padding: clamp(32px, 5vw, 56px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.10);
  text-align: left;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.testimonial-card:hover {
  background-image:
    linear-gradient(#ffffff, #ffffff),
    linear-gradient(120deg, #7f9c78, #c15f3c 35%, #4a6fa5 60%, #7f9c78);
  background-size: auto, 250% auto;
  background-origin: border-box;
  background-clip: padding-box, border-box;
  animation: nameGradient 6s linear infinite;
  box-shadow: 0 30px 84px rgba(0, 0, 0, 0.16);
  transform: translateY(-3px);
}

.testimonial-photo {
  margin: 0;
  flex: 0 0 auto;
  width: clamp(180px, 26vw, 280px);
}

.testimonial-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

.testimonial-body {
  flex: 1 1 auto;
}

.testimonial-card .eyebrow {
  color: var(--green);
}

.testimonial-quote {
  margin: 14px 0 26px;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1f1f1f;
}

.testimonial-quote::before {
  content: "\201C";
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.5rem;
  line-height: 0.3;
  color: var(--green);
  opacity: 0.45;
  margin-bottom: 14px;
}

.testimonial-name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: #1f1f1f;
  transition: color 0.2s ease;
}

.testimonial-name:hover {
  color: var(--green);
}

.testimonial-role {
  display: block;
  margin-top: 8px;
  max-width: 560px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.5;
  opacity: 0.55;
}

@media (max-width: 760px) {
  .testimonial-card {
    flex-direction: column;
    text-align: center;
  }
  .testimonial-photo { width: clamp(180px, 60vw, 240px); }
  .testimonial-role { margin-inline: auto; }
}

@media (max-width: 600px) {
  .testimonial { padding: 56px 18px; }
  .testimonial-card { padding: 32px 22px; }
}

/* ============================================================
   PICK YOUR LENS (home hero)
   ============================================================ */
.lens {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.lens-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  opacity: 0.5;
  margin-right: 4px;
}

.lens-btn {
  border: 1.5px solid rgba(0, 0, 0, 0.16);
  background: #fff;
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.lens-btn:hover {
  border-color: var(--green);
  transform: translateY(-1px);
}

.lens-btn.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.lens-desc {
  margin: 16px auto 0;
  max-width: 620px;
  min-height: 1.6em;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(38, 38, 38, 0.72);
  transition: opacity 0.25s ease;
}

/* dim the tiles that don't match the chosen lens */
.tile.lens-dim {
  opacity: 0.3;
  filter: saturate(0.45);
}

.tile {
  transition: opacity 0.35s ease, filter 0.35s ease, transform 0.3s ease;
}

/* lens bar placed above the work grid */
.lens-wrap {
  text-align: center;
  padding: 8px 24px 4px;
}

.lens-wrap .lens {
  margin-top: 0;
}

.lens-wrap .lens-desc {
  margin-bottom: 4px;
}

/* ============================================================
   HIRE-ME CTA TILE + CONTACT MODAL
   ============================================================ */
.tile.tile--cta {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  border: 2px dashed rgba(0, 0, 0, 0.2);
  background: rgba(127, 156, 120, 0.06);
  cursor: pointer;
  font-family: inherit;
  padding: 28px 24px;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

/* full-width banner variant (spans the whole grid row) */
.tile.tile--full {
  grid-column: 1 / -1;
}

.tile.tile--cta::after { display: none; }

.tile.tile--cta:hover {
  background: rgba(127, 156, 120, 0.12);
  border-color: var(--green);
  transform: translateY(-2px);
}

/* reset the global ".tile span { position:absolute }" for CTA contents */
.tile--cta span {
  position: static;
  left: auto;
  bottom: auto;
  text-shadow: none;
  text-transform: none;
  letter-spacing: normal;
  color: inherit;
}

.tile--cta .cta-icon {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--green);
  border-radius: 999px;
  font-size: 1.9rem;
  font-weight: 300;
  line-height: 1;
  color: var(--green);
  transition: background 0.3s ease, color 0.3s ease;
}

.tile.tile--cta:hover .cta-icon { background: var(--green); color: #fff; }

.tile--cta .cta-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 2px;
}

.tile--cta .cta-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1f1f1f;
}

.tile--cta .cta-sub {
  font-size: 0.95rem;
  font-weight: 600;
  color: #555;
}

/* modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 18, 20, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: modalFade 0.25s ease;
}

.modal-overlay[hidden] { display: none; }

@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
  position: relative;
  max-width: 480px;
  width: 100%;
  background: #fff;
  border-radius: 24px;
  padding: 44px clamp(28px, 5vw, 48px);
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop { from { transform: translateY(12px) scale(0.97); opacity: 0; } to { transform: none; opacity: 1; } }

.modal-card .eyebrow { color: var(--green); }

.modal-card h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  min-height: 3.75em;
}

.modal-card .modal-body {
  font-size: 1.05rem;
  opacity: 0.7;
  margin-bottom: 28px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.modal-btn {
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1.5px solid rgba(0, 0, 0, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.modal-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16); }

.modal-btn--primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: #777;
  transition: color 0.2s ease;
}

.modal-close:hover { color: #111; }

/* cream-background logo tile (El Tigre Café sign blends into its own bg) */
.tile.cover-logo--cream { background: #fefaef; }

  /* Text-wordmark tiles for the connected full-stack apps (no logo art).
     A clean wordmark on a soft branded field, with a "connected suite" badge
     so the three read as one system at a glance. */
  .tile.cover-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 22px;
    text-align: center;
  }
  .tile.cover-text::after { display: none; }
  .tile.cover-text .ct-badge {
    position: static;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(0,0,0,0.06);
    color: inherit;
    opacity: 0.85;
  }
  .tile.cover-text .ct-wordmark {
    position: static;
    color: inherit;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    text-transform: none;
    text-shadow: none;
    line-height: 1;
  }
  .tile.cover-text .cover-tag {
    position: static;
    color: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.72;
    max-width: 24ch;
    margin: 0 auto;
  }
  .tile.cover-text:hover { transform: scale(1.025); }

  /* one accent per app, drawn from the site palette */
  .tile.cover-text--prosper   { background: #eef4ec; color: #3f6b3a; }
  .tile.cover-text--godspeed  { background: #eaf0f8; color: #37557f; }
  .tile.cover-text--provision { background: #f9efe8; color: #b04f2d; }

/* handwritten "coded with love" note in the hero */
.home-hero p.handwritten-note {
  font-family: "Great Vibes", cursive;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 400;
  color: var(--brown);
  opacity: 0.9;
  margin-top: 32px;
  max-width: none;
}

.home-hero p.handwritten-note span { color: #e0556b; }

/* "coded with love" handwritten trinket from the treasure box */
.artifact-note {
  width: auto;
  white-space: nowrap;
  font-family: "Caveat", "Comic Sans MS", cursive;
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--brown);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.18));
}

/* circular photo trinket from the treasure box */
.artifact-photo {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 60% 40%;
  border: 4px solid #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

/* discoverability hint for the tools proficiency tooltip */
.tools-hint {
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--green);
  animation: hintPulse 2.6s ease-in-out infinite;
}

@keyframes hintPulse {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 0.9; }
}
