/* ==========================================================================
   Mauritius D'Silva Portfolio
   mauritiusdsilva.com
   global.css
   Version: 1.0.0
   Last updated: May 2026

   Notes:
   - Global styles for homepage, about page, contact page, project cards,
     shared layout, navigation, footer, animation, and responsive behaviour.
   - GitHub is the source of truth. Avoid editing live host files directly.
   ========================================================================== */


/* ==========================================================================
   1. Tokens
   ========================================================================== */

   :root {
    --ink: #0A0A0A;
    --ink-2: #1F1F1F;
    --muted: #72706E;
    --muted-2: #9D9B98;
    --link: #1573DD;
    --link-hover: #0F5BB8;
  
    --line: rgba(10, 10, 10, 0.06);
    --line-strong: rgba(10, 10, 10, 0.1);
  
    --bg: #FFFFFF;
    --card-bg: #F7F7F7;
  
    --c-campaign: linear-gradient(135deg, #D6206E 0%, #B01A5C 100%);
    --c-orderhelp: linear-gradient(135deg, #1A1530 0%, #0E1422 60%, #2D1538 100%);
    --c-assist: linear-gradient(135deg, #FCE4EE 0%, #EDE5FF 50%, #DCE6FF 100%);
    --c-khibra: linear-gradient(135deg, #1B3A5C 0%, #0F2845 100%);
    --c-cari: linear-gradient(135deg, #FFE8DC 0%, #FFD4C0 100%);
    --c-sihaty: linear-gradient(135deg, #E6F4F1 0%, #C8E6E0 100%);
  
    --radius: 24px;
    --radius-sm: 12px;
    --status-green: #10B981;
  
    --ease-out-soft: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quick: cubic-bezier(0.22, 1, 0.36, 1);
  }
  
  
  /* ==========================================================================
     2. Reset and base
     ========================================================================== */
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: "Inter Tight", -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  img,
  svg {
    display: block;
  }
  
  a {
    color: inherit;
  }
  
  
  /* ==========================================================================
     3. Layout
     ========================================================================== */
  
  .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
  }
  
  
  /* ==========================================================================
     4. Header and navigation
     ========================================================================== */
  
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 24px 0;
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid transparent;
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    transition: border-color 0.2s ease;
  }
  
  .site-header.scrolled {
    border-bottom-color: var(--line);
  }
  
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
  
  .logo {
    display: inline-flex;
    align-items: center;
    color: var(--ink);
    text-decoration: none;
  }
  
  .logo svg {
    width: auto;
    height: 48px;
  }
  
  .logo svg path {
    fill: var(--ink);
  }
  
  .nav {
    display: flex;
    align-items: center;
    gap: 28px;
  }
  
  .nav a {
    position: relative;
    padding-bottom: 6px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.15s ease;
  }
  
  .nav a:hover {
    opacity: 0.6;
  }
  
  .nav a.active {
    font-weight: 600;
    opacity: 1;
  }
  
  .nav a.active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
  }
  
  
  /* ==========================================================================
     5. Shared links and buttons
     ========================================================================== */
  
  .text-link,
  a.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--link);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition:
      gap 180ms ease,
      color 150ms ease,
      border-color 150ms ease,
      opacity 180ms ease;
  }
  
  .text-link:hover,
  a.text-link:hover {
    gap: 10px;
    color: var(--link-hover);
    border-bottom-color: var(--link-hover);
  }
  
  .contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition:
      background 0.2s ease,
      border-color 0.2s ease,
      transform 0.2s ease;
  }
  
  .contact-btn:hover {
    transform: translateY(-1px);
  }
  
  .contact-btn-primary {
    background: var(--ink);
    color: #FFFFFF;
  }
  
  .contact-btn-primary:hover {
    background: var(--ink-2);
  }
  
  .contact-btn-secondary {
    background: var(--bg);
    color: var(--ink);
    border: 1px solid var(--line-strong);
  }
  
  .contact-btn-secondary:hover {
    border-color: var(--ink);
  }
  
  
  /* ==========================================================================
     6. Homepage hero
     ========================================================================== */
  
  .hero {
    padding: 88px 0 72px;
  }
  
  .hero-name {
    margin-bottom: 4px;
    color: var(--ink);
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.02em;
  }
  
  .hero-role {
    margin-bottom: 56px;
    color: var(--ink);
    font-size: clamp(48px, 7.4vw, 92px);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.035em;
  }
  
  .hero-bio {
    max-width: 920px;
    margin-bottom: 40px;
    font-size: clamp(20px, 2.1vw, 26px);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.015em;
  }
  
  .hero-bio .lead {
    color: var(--ink);
  }
  
  .hero-bio .trail {
    color: var(--muted);
  }
  
  .hero-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--muted);
    background: var(--card-bg);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
  }
  
  .status-dot {
    width: 8px;
    height: 8px;
    background: var(--status-green);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
    animation: pulse 2.4s ease-in-out infinite;
  }
  
  .status-sep {
    color: var(--muted-2);
    opacity: 0.5;
  }
  
  @keyframes pulse {
    0%,
    100% {
      box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
    }
  
    50% {
      box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.08);
    }
  }
  
  
  /* ==========================================================================
     7. Homepage about bridge
     ========================================================================== */
  
  .about-bridge {
    padding: 72px 0 88px;
    border-top: 1px solid var(--line);
  }
  
  .about-eyebrow {
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  
  .about-copy {
    max-width: 1100px;
    margin-bottom: 32px;
    font-size: clamp(24px, 2.6vw, 36px);
    font-weight: 500;
    line-height: 1.28;
    letter-spacing: -0.02em;
  }
  
  .about-copy .lead {
    color: var(--ink);
  }
  
  .about-copy .trail {
    color: var(--muted);
  }
  
  .capabilities-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--line-strong);
  }
  
  .capability {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  
  .capability-name {
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.005em;
  }
  
  .capability-context {
    color: var(--muted);
    font-family: "JetBrains Mono", monospace;
    font-size: 11.5px;
    line-height: 1.4;
    letter-spacing: 0.01em;
  }
  
  
  /* ==========================================================================
     8. Homepage work and project cards
     ========================================================================== */
  
  .work {
    padding: 72px 0 96px;
  }
  
  .section-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    color: var(--ink);
    font-size: 18px;
    font-weight: 600;
  }
  
  .section-label-meta {
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
  }
  
  .project-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }
  
  .project-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 460px;
    overflow: hidden;
    background: var(--card-bg);
    border-radius: var(--radius);
    transition:
      transform 0.5s var(--ease-out-soft),
      box-shadow 0.5s ease;
  }
  
  .project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px -16px rgba(10, 10, 10, 0.08);
  }
  
  .project-card.flip {
    grid-template-columns: 1fr 1fr;
  }
  
  .project-card.flip .card-cover {
    order: 2;
  }
  
  .project-card.flip .card-content {
    order: 1;
  }
  
  .project-card:hover .card-cta-arrow {
    transform: translateX(4px);
  }
  
  .project-card:hover .card-cover img,
  .project-card:hover .card-cover .cover-fallback {
    transform: scale(1.04);
  }
  
  .card-link {
    position: absolute;
    inset: 0;
    z-index: 5;
    overflow: hidden;
    text-indent: -9999px;
  }
  
  .card-cover {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  
  .card-cover img,
  .card-cover .cover-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out-soft);
  }
  
  .card-cover img {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0;
    transition:
      opacity 0.5s ease,
      transform 0.8s var(--ease-out-soft);
  }
  
  .card-cover img.loaded {
    opacity: 1;
  }
  
  .card-cover img.broken,
  .cover-img.broken {
    display: none;
  }
  
  .cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .cover-fallback {
    display: none;
  }
  
  .cover-img.broken + .cover-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--muted);
    background: var(--card-bg);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  
  .project-card[data-project="campaign"] .cover-fallback {
    background: var(--c-campaign);
    color: rgba(255, 255, 255, 0.7);
  }
  
  .project-card[data-project="orderhelp"] .cover-fallback {
    background: var(--c-orderhelp);
    color: rgba(255, 255, 255, 0.5);
  }
  
  .project-card[data-project="assist"] .cover-fallback {
    background: var(--c-assist);
    color: rgba(10, 10, 10, 0.5);
  }
  
  .project-card[data-project="khibra"] .cover-fallback {
    background: var(--c-khibra);
    color: rgba(255, 255, 255, 0.6);
  }
  
  .project-card[data-project="cari"] .cover-fallback {
    background: var(--c-cari);
    color: rgba(10, 10, 10, 0.5);
  }
  
  .project-card[data-project="sihaty"] .cover-fallback {
    background: var(--c-sihaty);
    color: rgba(10, 10, 10, 0.5);
  }
  
  .card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    padding: 56px;
  }
  
  .card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }
  
  .card-meta-num {
    color: var(--muted-2);
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    font-weight: 500;
  }
  
  .card-meta-sep {
    width: 24px;
    height: 1px;
    background: var(--muted-2);
    opacity: 0.5;
  }
  
  .card-meta-cat {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  
  .card-title {
    margin: 18px 0 14px;
    color: var(--ink);
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.025em;
  }
  
  .card-sentence {
    max-width: 480px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
  }
  
  .card-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 22px 0;
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
  }
  
  .metric-value {
    margin-bottom: 6px;
    color: var(--ink);
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.025em;
  }
  
  .metric-label {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
  }
  
  .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
  }
  
  .card-cta {
    position: relative;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    color: #FFFFFF;
    background: var(--ink);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease;
  }
  
  .card-cta:hover {
    background: var(--ink-2);
  }
  
  .card-cta-arrow {
    display: inline-block;
    font-size: 14px;
    transition: transform 0.2s ease;
  }
  
  .card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    list-style: none;
  }
  
  .card-tag {
    padding: 6px 12px;
    color: var(--muted);
    background: var(--bg);
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
  }
  
  
  /* ==========================================================================
     9. Read more link
     ========================================================================== */
  
     .read-more-link {
      position: relative;
      display: flex;
      align-items: center;
      width: fit-content;
      gap: 7px;
      margin: 36px 0 48px;
      padding-bottom: 5px;
      color: var(--ink);
      font-size: 15px;
      font-weight: 500;
      line-height: 1;
      letter-spacing: -0.01em;
      text-decoration: none;
      transition:
        gap 180ms ease,
        opacity 180ms ease;
    }
    
    .read-more-link::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: 0;
      width: 100%;
      height: 1px;
      background: currentColor;
      opacity: 0.45;
      transform: scaleX(1);
      transform-origin: left;
      transition:
        transform 220ms ease,
        opacity 220ms ease;
    }
    
    .read-more-link:hover {
      gap: 11px;
      opacity: 0.72;
    }
    
    .read-more-link:hover::after {
      transform: scaleX(1.08);
      opacity: 0.85;
    }
    
    .read-more-link span {
      display: inline-block;
      line-height: 1;
      transition: transform 180ms ease;
    }
    
    .read-more-link:hover span {
      transform: translateX(2px);
    }
  
  /* ==========================================================================
     10. Homepage contact CTA
     ========================================================================== */
  
  .contact {
    padding: 96px 0 32px;
    border-top: 1px solid var(--line);
  }
  
  .contact-inner {
    max-width: 1100px;
  }
  
  .contact-headline {
    margin-bottom: 8px;
    font-size: clamp(28px, 3.6vw, 44px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
  }
  
  .contact-headline .trail {
    display: block;
    color: var(--muted);
  }
  
  .contact-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 36px;
  }
  
  
  /* ==========================================================================
     11. About page
     ========================================================================== */
  
  .about-page .nav a.active {
    font-weight: 600;
  }
  
  .about-hero {
    padding: 88px 0 76px;
  }

  .about-hero-links {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 44px;
    flex-wrap: wrap;
  }
  
  .about-hero-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.01em;
    text-decoration: none;
    padding-bottom: 5px;
    transition:
      gap 180ms ease,
      opacity 180ms ease;
  }
  
  .about-hero-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(1);
    transform-origin: left;
    opacity: 0.45;
    transition:
      transform 220ms ease,
      opacity 220ms ease;
  }
  
  .about-hero-link:hover {
    gap: 11px;
    opacity: 0.72;
  }
  
  .about-hero-link:hover::after {
    transform: scaleX(1.08);
    opacity: 0.85;
  }
  
  .about-hero-link span {
    display: inline-block;
    line-height: 1;
    transition: transform 180ms ease;
  }
  
  .about-hero-link:hover span {
    transform: translateX(2px);
  }

  .about-hero-link:hover::after {
    transform: scaleX(0.72);
    opacity: 0.85;
  }
  
  .about-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.95fr);
    align-items: center;
    gap: 80px;
  }
  
  .about-hero-copy {
    min-width: 0;
  }
  
  .about-hero-title {
    max-width: 760px;
    margin-bottom: 36px;
    font-size: clamp(48px, 6vw, 82px);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.055em;
  }
  
  .about-hero-body {
    max-width: 640px;
    font-size: clamp(20px, 1.8vw, 24px);
    font-weight: 500;
    line-height: 1.42;
    letter-spacing: -0.018em;
  }
  
  .about-hero-body p:first-child {
    color: var(--ink);
  }
  
  .about-hero-body p + p {
    margin-top: 18px;
    color: var(--muted);
  }
  
  .about-hero-links {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: 36px;
  }
  
  .about-photo {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4 / 5;
    justify-self: end;
    overflow: hidden;
    background: var(--card-bg);
    border-radius: 28px;
  }
  
  .about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .about-section {
    padding: 72px 0;
    border-top: 1px solid var(--line);
  }
  
  .about-section-title {
    max-width: 880px;
    margin-bottom: 32px;
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.035em;
  }
  
  .about-section-body {
    max-width: 720px;
    color: var(--ink);
    font-size: clamp(18px, 1.35vw, 20px);
    line-height: 1.58;
    letter-spacing: -0.01em;
  }
  
  .about-section-body p {
    margin-bottom: 18px;
  }
  
  .about-section-body p + p {
    margin-top: 22px;
  }
  
  .about-section-body p:last-child {
    margin-bottom: 0;
  }
  
  
  /* About skill cards */
  
  .about-skill-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 1120px;
  }
  
  .about-skill-card {
    min-height: 240px;
    padding: 28px;
    background: var(--card-bg);
    border-radius: 28px;
    box-shadow: inset 0 0 0 1px rgba(10, 10, 10, 0.06);
  }
  
  .about-skill-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 34px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
  }
  
  .about-skill-number {
    color: var(--muted-2);
    font-family: "JetBrains Mono", monospace;
  }
  
  .about-skill-label {
    color: var(--muted);
  }
  
  .about-skill-card h3 {
    max-width: 420px;
    margin-bottom: 14px;
    color: var(--ink);
    font-size: clamp(24px, 2vw, 30px);
    font-weight: 650;
    line-height: 1.08;
    letter-spacing: -0.035em;
  }
  
  .about-skill-card p {
    max-width: 520px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.55;
  }
  
  
  /* About statement */
  
  .about-statement-section {
    padding: 72px 0;
    border-top: 1px solid var(--line);
  }
  
  .about-statement {
    max-width: 1080px;
  }
  
  .about-statement p {
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 600;
    line-height: 1.14;
    letter-spacing: -0.04em;
  }
  
  .statement-lead {
    color: var(--ink);
  }
  
  .statement-muted {
    color: var(--muted);
  }
  
  
  /* About outside work */
  
  .about-outside-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    gap: 72px;
    align-items: start;
  }
  
  .pexels-card {
    display: block;
    overflow: hidden;
    color: var(--ink);
    background: var(--card-bg);
    border: 0;
    border-radius: 28px;
    box-shadow: inset 0 0 0 1px rgba(10, 10, 10, 0.06);
    text-decoration: none;
    transition:
      transform 220ms ease,
      box-shadow 220ms ease;
  }
  
  .pexels-card:hover {
    transform: translateY(-3px);
    box-shadow:
      inset 0 0 0 1px rgba(10, 10, 10, 0.08),
      0 18px 48px rgba(10, 10, 10, 0.06);
  }
  
  .pexels-image-wrap {
    position: relative;
    aspect-ratio: 16 / 8;
    overflow: hidden;
    background: var(--card-bg);
  }
  
  .pexels-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
  }
  
  .pexels-card:hover .pexels-image {
    transform: scale(1.025);
  }
  
  .pexels-badge {
    position: absolute;
    bottom: 18px;
    left: 18px;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(10, 10, 10, 0.08);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
  }
  
  .pexels-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    background: var(--card-bg);
    border-top: 1px solid rgba(10, 10, 10, 0.06);
    font-size: 15px;
    font-weight: 500;
  }
  
  .pexels-card-footer span:first-child,
  .pexels-card-footer span:last-child {
    color: var(--ink);
  }
  
  .pexels-card-footer span:last-child {
    white-space: nowrap;
  }
  
  
  /* About CTA */
  
  .about-cta {
    padding: 96px 0 40px;
    border-top: 1px solid var(--line);
  }
  
  .about-cta-inner {
    max-width: 900px;
  }
  
  .about-cta h2 {
    margin-bottom: 18px;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
  }
  
  .about-cta p {
    max-width: 680px;
    margin-bottom: 36px;
    color: var(--muted);
    font-size: clamp(17px, 1.4vw, 19px);
    line-height: 1.55;
  }
  
  .about-cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
  }
  
  
  /* ==========================================================================
     12. Contact page
     ========================================================================== */
  
  .contact-page .nav a.active {
    font-weight: 600;
  }
  
  .contact-hero {
    padding: 96px 0 88px;
  }
  
  .contact-eyebrow {
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  
  .contact-title {
    max-width: 920px;
    margin-bottom: 32px;
    font-size: clamp(48px, 7vw, 96px);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.045em;
  }
  
  .contact-intro {
    max-width: 760px;
    color: var(--muted);
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.02em;
  }
  
  .contact-primary {
    margin-top: 48px;
  }
  
  .contact-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 6px;
    color: var(--ink);
    border-bottom: 2px solid var(--ink);
    font-size: clamp(24px, 3vw, 42px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-decoration: none;
    transition:
      gap 180ms ease,
      opacity 180ms ease;
  }
  
  .contact-email:hover {
    gap: 16px;
    opacity: 0.72;
  }
  
  .contact-details {
    padding: 72px 0 96px;
    border-top: 1px solid var(--line);
  }
  
  .contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
  
  .contact-card {
    position: relative;
    min-height: 260px;
    padding: 28px;
    overflow: hidden;
    background: var(--card-bg);
    border-radius: 28px;
    box-shadow: inset 0 0 0 1px rgba(10, 10, 10, 0.06);
  }
  
  .contact-card::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(10, 10, 10, 0.05);
    border-radius: 999px;
    pointer-events: none;
  }
  
  .contact-card h2 {
    margin-bottom: 18px;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -0.015em;
  }
  
  .contact-card p {
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.5;
  }
  
  .contact-card p:last-child {
    margin-bottom: 0;
  }
  
  .contact-card-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  
  .contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--ink);
    background: #FFFFFF;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(10, 10, 10, 0.08);
  }
  
  .contact-icon svg {
    width: 15px;
    height: 15px;
  }
  
  .contact-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
  }
  
  .contact-pill-list span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 11px;
    color: var(--ink);
    background: #FFFFFF;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(10, 10, 10, 0.08);
    font-size: 13px;
    font-weight: 500;
  }
  
  .contact-link-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  
  .contact-link-list a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    color: var(--ink);
    border-bottom: 1px solid rgba(10, 10, 10, 0.08);
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    transition:
      opacity 180ms ease,
      gap 180ms ease;
  }
  
  .contact-link-list a:hover {
    opacity: 0.7;
  }
  
  .contact-link-list a span:last-child {
    transition: transform 180ms ease;
  }
  
  .contact-link-list a:hover span:last-child {
    transform: translateX(4px);
  }
  
  
  /* ==========================================================================
     13. Footer
     ========================================================================== */
  
  .site-footer {
    padding: 56px 0 48px;
    border-top: 1px solid var(--line);
  }
  
  .footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
  }
  
  .footer-left,
  .footer-right {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  
  .footer-right {
    align-items: flex-end;
    text-align: right;
  }
  
  .footer-line {
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
  }
  
  .footer-line-soft {
    color: var(--muted);
    font-size: 13px;
  }
  
  .footer-line-soft em {
    font-style: italic;
  }
  
  .footer-location {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
  }
  
  .footer-flag {
    display: inline-block;
    flex: 0 0 auto;
    width: 20px;
    height: 12px;
    border-radius: 1px;
    transform: translateY(1px);
  }
  
  .footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }
  
  .footer-links a {
    color: var(--ink);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.15s ease;
  }
  
  .footer-links a:hover {
    opacity: 0.6;
  }
  
  .footer-links span {
    color: var(--muted-2);
    font-size: 12px;
  }
  
  
  /* ==========================================================================
     14. Scroll reveal and animation
     ========================================================================== */
  
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 0.7s var(--ease-out-quick),
      transform 0.7s var(--ease-out-quick);
    will-change: opacity, transform;
  }
  
  .reveal.in {
    opacity: 1;
    transform: translateY(0);
  }
  
  .reveal[data-delay="1"] {
    transition-delay: 0.05s;
  }
  
  .reveal[data-delay="2"] {
    transition-delay: 0.12s;
  }
  
  .reveal[data-delay="3"] {
    transition-delay: 0.2s;
  }
  
  .reveal[data-delay="4"] {
    transition-delay: 0.28s;
  }
  
  .reveal-card {
    opacity: 0;
    transform: translateY(32px) scale(0.99);
    transition:
      opacity 0.8s var(--ease-out-soft),
      transform 0.8s var(--ease-out-soft);
    will-change: opacity, transform;
  }
  
  .reveal-card.in {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  
  .capability {
    opacity: 0;
    transform: translateY(8px);
    transition:
      opacity 0.5s var(--ease-out-quick),
      transform 0.5s var(--ease-out-quick);
  }
  
  .capability.in {
    opacity: 1;
    transform: translateY(0);
  }
  
  
  /* ==========================================================================
     15. Reduced motion
     ========================================================================== */
  
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  
    .reveal,
    .reveal-card,
    .capability {
      opacity: 1 !important;
      transform: none !important;
    }
  
    .pexels-card,
    .pexels-image {
      transition: none;
    }
  
    .pexels-card:hover,
    .pexels-card:hover .pexels-image {
      transform: none;
    }
  }
  
  
  /* ==========================================================================
     16. Responsive
     ========================================================================== */
  
  @media (max-width: 1080px) {
    .capabilities-row {
      grid-template-columns: repeat(3, 1fr);
      gap: 28px 32px;
    }
  }
  
  @media (max-width: 980px) {
    .container {
      padding: 0 24px;
    }
  
    .hero {
      padding: 56px 0;
    }
  
    .hero-role {
      margin-bottom: 40px;
    }
  
    .hero-bio {
      margin-bottom: 32px;
    }
  
    .about-bridge {
      padding: 56px 0 64px;
    }
  
    .about-copy {
      margin-bottom: 56px;
      font-size: clamp(22px, 3.6vw, 28px);
    }
  
    .work {
      padding: 48px 0 64px;
    }
  
    .project-list {
      gap: 32px;
    }
  
    .project-card,
    .project-card.flip {
      grid-template-columns: 1fr;
      min-height: auto;
    }
  
    .project-card.flip .card-cover {
      order: 1;
    }
  
    .project-card.flip .card-content {
      order: 2;
    }
  
    .card-cover {
      min-height: 280px;
      aspect-ratio: 16 / 10;
    }
  
    .card-cover img,
    .card-cover .cover-fallback {
      position: relative;
      inset: auto;
    }
  
    .card-content {
      padding: 36px 28px;
    }
  
    .card-title {
      font-size: 26px;
    }
  
    .card-metrics {
      gap: 20px;
    }
  
    .card-footer {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .contact {
      padding: 64px 0 24px;
    }
  
    .about-hero {
      padding: 56px 0;
    }
  
    .about-hero-grid {
      grid-template-columns: 1fr;
      gap: 48px;
    }
  
    .about-photo {
      max-width: 420px;
      aspect-ratio: 5 / 6;
      justify-self: start;
    }
  
    .about-section {
      padding: 56px 0;
    }
  
    .about-section-title {
      margin-bottom: 24px;
    }
  
    .about-statement-section {
      padding: 56px 0;
    }
  
    .about-statement p {
      font-size: clamp(30px, 6vw, 46px);
    }
  
    .about-outside-grid {
      grid-template-columns: 1fr;
      gap: 40px;
    }
  
    .pexels-card {
      max-width: 720px;
    }
  
    .about-cta {
      padding: 64px 0 32px;
    }
  
    .contact-hero {
      padding: 64px 0 72px;
    }
  
    .contact-details {
      padding: 56px 0 72px;
    }
  
    .contact-grid {
      grid-template-columns: 1fr;
    }
  
    .contact-card {
      min-height: auto;
    }
  
    .footer-inner {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .footer-right {
      align-items: flex-start;
      text-align: left;
    }
  
    .footer-location {
      justify-content: flex-start;
    }
  }
  
  @media (max-width: 800px) {
    .about-skill-cards {
      grid-template-columns: 1fr;
    }
  
    .about-skill-card {
      min-height: auto;
      padding: 24px;
      border-radius: 22px;
    }
  
    .about-skill-card-top {
      margin-bottom: 24px;
    }
  }
  
  @media (max-width: 600px) {
    .nav {
      gap: 16px;
    }
  
    .nav a {
      font-size: 13px;
    }
  
    .logo svg {
      height: 32px;
    }
  
    .hero {
      padding: 40px 0;
    }
  
    .card-content {
      padding: 32px 24px;
    }
  
    .metric-value {
      font-size: 22px;
    }
  
    .card-cta,
    .contact-btn,
    .about-cta-actions .contact-btn {
      width: 100%;
      justify-content: center;
    }
  
    .capabilities-row {
      grid-template-columns: repeat(2, 1fr);
      gap: 24px 20px;
    }
  
    .about-hero {
      padding: 40px 0 48px;
    }
  
    .about-hero-grid {
      gap: 36px;
    }
  
    .about-hero-title {
      margin-bottom: 28px;
    }
  
    .about-hero-links {
      gap: 20px;
      margin-top: 28px;
    }
  
    .about-photo {
      aspect-ratio: 4 / 5;
      border-radius: 22px;
    }
  
    .about-section {
      padding: 48px 0;
    }
  
    .about-statement-section {
      padding: 48px 0;
    }
  
    .about-statement p {
      font-size: 30px;
      line-height: 1.16;
      letter-spacing: -0.035em;
    }
  
    .pexels-image-wrap {
      aspect-ratio: 4 / 3;
    }
  
    .pexels-badge {
      bottom: 14px;
      left: 14px;
      padding: 7px 10px;
      font-size: 12px;
    }
  
    .pexels-card-footer {
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
    }
  
    .contact-hero {
      padding: 48px 0 56px;
    }
  
    .contact-primary {
      margin-top: 36px;
    }
  
    .contact-email {
      font-size: 24px;
      word-break: break-word;
    }
  
    .contact-details {
      padding: 48px 0 56px;
    }
  
    .contact-card {
      padding: 24px;
      border-radius: 22px;
    }
  }


  .text-arrow-link {
    --arrow-space: 26px;
  
    position: relative;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 10px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.01em;
    text-decoration: none;
    padding-bottom: 7px;
    transition:
      color 180ms ease,
      gap 180ms ease;
  }
  
  .text-arrow-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    opacity: 0.5;
    transform: scaleX(1);
    transform-origin: left;
    transition:
      width 220ms ease,
      opacity 220ms ease;
  }
  
  .text-arrow-link span {
    display: inline-block;
    line-height: 1;
    transition: transform 180ms ease;
  }
  
  .text-arrow-link:hover {
    gap: 14px;
    color: var(--muted);
  }
  
  .text-arrow-link:hover::after {
    width: calc(100% - var(--arrow-space));
    opacity: 0.65;
  }
  
  .text-arrow-link:hover span {
    transform: translateX(2px);
  }


  .read-more-link {
    margin: 36px 0 48px;
  }