/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}



/* --- Moved from index.html --- */
    /* --- RESET & VARIABLES --- */
    :root {
      --primary-blue: #2563eb; /* Bright Royal Blue */
      --dark-blue: #1e3a8a;
      --light-blue-bg: #eff6ff;
      --text-dark: #111827;
      --text-gray: #6b7280;
      --white: #ffffff;
      --font-main: 'Inter', system-ui, -apple-system, sans-serif;
      --section-spacing: 100px;
      --safe-top: env(safe-area-inset-top, 0px);
      --safe-right: env(safe-area-inset-right, 0px);
      --safe-bottom: env(safe-area-inset-bottom, 0px);
      --safe-left: env(safe-area-inset-left, 0px);
      --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
      --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
      --duration-fast: 240ms;
      --duration-med: 520ms;
      --duration-slow: 900ms;
    }

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

    body {
      font-family: var(--font-main);
      color: var(--text-dark);
      background: #ffffff;
      overflow-x: hidden;
      position: relative;
      min-height: 100dvh;
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      background:
        radial-gradient(1200px 700px at 15% 10%, rgba(99, 102, 241, 0.18), transparent 60%),
        radial-gradient(900px 600px at 85% 20%, rgba(14, 165, 233, 0.16), transparent 55%),
        radial-gradient(800px 500px at 70% 80%, rgba(56, 189, 248, 0.12), transparent 60%),
        linear-gradient(160deg, rgba(11, 16, 32, 0.92) 0%, rgba(17, 22, 42, 0.92) 45%, rgba(10, 15, 31, 0.92) 100%);
      opacity: 0;
      transition: opacity 0.3s ease;
      pointer-events: none;
      z-index: 0;
    }

    body:has(.sparkle-btn:hover)::before {
      opacity: 1;
    }
    body:has(.sparkle-btn:hover) header {
      background: rgba(17, 24, 39, 0.85);
      border-bottom-color: rgba(30, 64, 175, 0.4);
    }
    body:has(.sparkle-btn:hover) header .nav-item,
    body:has(.sparkle-btn:hover) header .logo,
    body:has(.sparkle-btn:hover) header .btn-outline {
      color: var(--white);
    }
    body:has(.sparkle-btn:hover) header .btn-outline {
      border-color: rgba(255, 255, 255, 0.7);
    }

    body > * {
      position: relative;
      z-index: 1;
    }

    a { text-decoration: none; color: inherit; transition: 0.3s; }
    ul { list-style: none; }

    /* --- UTILITIES --- */
    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding-left: max(20px, var(--safe-left));
      padding-right: max(20px, var(--safe-right));
    }

    .btn {
      display: inline-block;
      padding: 12px 28px;
      border-radius: 4px;
      font-weight: 600;
      font-size: 0.95rem;
      transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
    }
    .btn:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12); }

    .btn-outline {
      border: 1px solid var(--text-dark);
      background: transparent;
    }
    .btn-outline:hover {
      background: var(--text-dark);
      color: var(--white);
    }

    .btn-blue {
      background: var(--primary-blue);
      color: var(--white);
    }
    .btn-blue:hover { opacity: 0.9; }

    /* --- SPARKLE BUTTON --- */
    .sparkle-btn {
      position: relative;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 12px 35px;
      background: var(--primary-blue);
      font-size: 0.95rem;
      font-weight: 600;
      color: var(--white);
      border: 3px solid var(--primary-blue);
      border-radius: 8px;
      box-shadow: 0 0 0 rgba(37, 99, 235, 0.55);
      transition: all 0.3s ease-in-out;
      cursor: pointer;
      overflow: visible;
    }

    .sparkle-btn:hover {
      background: transparent;
      color: var(--primary-blue);
      border-color: var(--primary-blue);
      box-shadow: 0 0 25px rgba(37, 99, 235, 0.55);
    }

    .sparkle-btn .star-1,
    .sparkle-btn .star-2,
    .sparkle-btn .star-3,
    .sparkle-btn .star-4,
    .sparkle-btn .star-5,
    .sparkle-btn .star-6 {
      position: absolute;
      filter: drop-shadow(0 0 0 var(--light-blue-bg));
      z-index: -5;
      transition: all 1s cubic-bezier(0.05, 0.83, 0.43, 0.96);
      pointer-events: none;
    }

    .sparkle-btn .star-1 { top: 20%; left: 20%; width: 25px; }
    .sparkle-btn .star-2 { top: 45%; left: 45%; width: 15px; transition: all 1s cubic-bezier(0, 0.4, 0, 1.01); }
    .sparkle-btn .star-3 { top: 40%; left: 40%; width: 5px; transition: all 1s cubic-bezier(0, 0.4, 0, 1.01); }
    .sparkle-btn .star-4 { top: 20%; left: 40%; width: 8px; transition: all 0.8s cubic-bezier(0, 0.4, 0, 1.01); }
    .sparkle-btn .star-5 { top: 25%; left: 45%; width: 15px; transition: all 0.6s cubic-bezier(0, 0.4, 0, 1.01); }
    .sparkle-btn .star-6 { top: 5%; left: 50%; width: 5px; transition: all 0.8s ease; }

    .sparkle-btn:hover .star-1 {
      top: -80%;
      left: -30%;
      width: 25px;
      filter: drop-shadow(0 0 10px var(--light-blue-bg));
      z-index: 2;
    }

    .sparkle-btn:hover .star-2 {
      top: -25%;
      left: 10%;
      width: 15px;
      filter: drop-shadow(0 0 10px var(--light-blue-bg));
      z-index: 2;
    }

    .sparkle-btn:hover .star-3 {
      top: 55%;
      left: 25%;
      width: 5px;
      filter: drop-shadow(0 0 10px var(--light-blue-bg));
      z-index: 2;
    }

    .sparkle-btn:hover .star-4 {
      top: 30%;
      left: 80%;
      width: 8px;
      filter: drop-shadow(0 0 10px var(--light-blue-bg));
      z-index: 2;
    }

    .sparkle-btn:hover .star-5 {
      top: 25%;
      left: 115%;
      width: 15px;
      filter: drop-shadow(0 0 10px var(--light-blue-bg));
      z-index: 2;
    }

    .sparkle-btn:hover .star-6 {
      top: 5%;
      left: 60%;
      width: 5px;
      filter: drop-shadow(0 0 10px var(--light-blue-bg));
      z-index: 2;
    }

    .sparkle-btn .sparkle-fill {
      fill: var(--light-blue-bg);
    }

    /* --- HEADER --- */
    header {
      padding: calc(25px + var(--safe-top)) 0 25px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      position: sticky;
      top: 0;
      z-index: 20;
      backdrop-filter: blur(12px);
      background: rgba(255, 255, 255, 0.72);
      border-bottom: 1px solid rgba(226, 232, 240, 0.7);
      width: 100vw;
      margin-left: calc(50% - 50vw);
      margin-right: calc(50% - 50vw);
      padding-left: max(20px, var(--safe-left), calc((100vw - 1200px) / 2));
      padding-right: max(20px, var(--safe-right), calc((100vw - 1200px) / 2));
    }

    .logo {
      font-size: 1.5rem;
      font-weight: 800;
      font-family: serif;
      font-style: italic;
    }

    .nav-menu {
      display: flex;
      gap: 40px;
      align-items: center;
    }

    .nav-item {
      font-weight: 500;
      position: relative;
      padding: 8px 16px;
    }

    /* THE PENCIL CIRCLE EFFECT */
    .nav-item.active {
      color: var(--primary-blue);
    }
    .nav-item::after {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      border: 2px solid var(--primary-blue);
      /* This weird radius creates the hand-drawn oval shape */
      border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
      pointer-events: none;
      opacity: 0;
      transform: scale(0.92);
      transition: opacity var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
    }
    .nav-item.active::after {
      opacity: 1;
      transform: scale(1);
      animation: nav-scribe 0.6s var(--ease-out);
    }

    /* --- HERO SECTION --- */
    .hero {
      padding: 40px 0 80px;
      position: relative;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1.2fr 1fr;
      grid-template-rows: auto auto;
      gap: 20px;
    }

    /* 1. Main Headline Area */
    .hero-headline {
      padding-top: 20px;
    }
    .hero-headline h1 {
      font-size: 5.5rem;
      line-height: 0.95;
      font-weight: 800;
      letter-spacing: -2px;
      margin-bottom: 30px;
    }
    .hero-headline h1 span { color: var(--primary-blue); }

    .sparkle { color: var(--primary-blue); vertical-align: super; font-size: 3rem; }
    .sparkle { animation: twinkle 2.8s ease-in-out infinite; }

    /* 2. Image Area */
    .hero-image-container {
      grid-row: 1 / 3;
      grid-column: 2;
      position: relative;
      height: 600px;
      display: flex;
      align-items: flex-end;
      justify-content: center;
      animation: float-slow 8.5s ease-in-out infinite;
    }

    .dark-shape {
      position: absolute;
      top: 10%; right: 10%;
      width: 80%; height: 85%;
      background: #111827;
      border-radius: 20px;
      transform: rotate(-3deg);
      z-index: 1;
    }

    .hero-photo {
      position: relative;
      z-index: 2;
      width: 90%;
      height: 90%;
      object-fit: cover;
      border-radius: 20px;
      background: #e5e7eb; /* Placeholder color */
      transition: transform var(--duration-med) var(--ease-soft), box-shadow var(--duration-med) var(--ease-soft);
    }
    .hero-image-container:hover .hero-photo {
      transform: translateY(-6px) scale(1.01);
      box-shadow: 0 30px 60px rgba(15, 23, 42, 0.2);
    }

    /* 3. Intro Text (Bottom Left) */
    .hero-intro {
      margin-top: 50px;
      padding-right: 40px;
    }

    .hero-intro h3 {
      font-size: 2.5rem;
      margin-bottom: 15px;
    }

    .hand-wave { font-size: 2rem; }

    .hero-intro p {
      font-size: 1.1rem;
      color: var(--text-gray);
      line-height: 1.6;
      margin-bottom: 30px;
    }

    /* --- SOCIAL WRAPPER (Uiverse) --- */
    .social-wrapper {
      display: inline-flex;
      list-style: none;
      height: 60px;
      width: 100%;
      padding-top: 20px;
      font-family: var(--font-main);
      justify-content: flex-start;
      gap: 12px;
    }

    .social-wrapper .icon {
      position: relative;
      background: #ffffff;
      border-radius: 50%;
      width: 46px;
      height: 46px;
      font-size: 18px;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
      box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
      cursor: pointer;
      transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    .social-wrapper .tooltip {
      position: absolute;
      top: 0;
      font-size: 0.8rem;
      background: #ffffff;
      color: #ffffff;
      padding: 5px 8px;
      border-radius: 5px;
      box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
      opacity: 0;
      pointer-events: none;
      transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
      white-space: nowrap;
    }

    .social-wrapper .tooltip::before {
      position: absolute;
      content: "";
      height: 8px;
      width: 8px;
      background: #ffffff;
      bottom: -3px;
      left: 50%;
      transform: translate(-50%) rotate(45deg);
      transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    .social-wrapper .icon:hover .tooltip {
      top: -40px;
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
    }

    .social-wrapper .icon:hover span,
    .social-wrapper .icon:hover .tooltip {
      text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.1);
    }

    .social-wrapper  .linkedin:hover,
    .social-wrapper .linkedin:hover .tooltip,
    .social-wrapper .linkedin:hover .tooltip::before {
      background: #0a66c2;
      color: #ffffff;
    }

    .social-wrapper .handshake:hover,
    .social-wrapper .handshake:hover .tooltip,
    .social-wrapper .handshake:hover .tooltip::before {
      background: #111827;
      color: #ffffff;
    }

    /* 4. The Blue Star Badge */
    .badge-star {
      position: absolute;
      bottom: 40px;
      right: -20px;
      background: var(--primary-blue);
      color: white;
      width: 140px; height: 140px;
      display: flex;
      align-items: center; justify-content: center;
      text-align: center;
      font-weight: bold;
      font-size: 0.8rem;
      z-index: 10;
      /* Creating a jagged burst shape using clip-path */
      clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
      transform: rotate(15deg);
    }

    /* --- STATS SECTION --- */
    .stats-bar {
      display: flex;
      justify-content: space-around;
      padding: 60px 0;
      border-top: 1px solid #f3f4f6;
      border-bottom: 1px solid #f3f4f6;
      margin-bottom: var(--section-spacing);
    }
    .stat-item { text-align: center; }
    .stat-num { font-size: 2.5rem; font-weight: 700; display: block; }
    .stat-label { font-size: 0.9rem; color: var(--text-gray); text-transform: uppercase; letter-spacing: 1px; }

    /* --- SERVICES SECTION --- */
    .section-title {
      font-size: 2.5rem;
      font-weight: 700;
      margin-bottom: 40px;
      max-width: 400px;
    }

    .services-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 20px;
      margin-bottom: var(--section-spacing);
    }

    .service-card {
      background: var(--light-blue-bg);
      padding: 40px;
      border-radius: 16px;
      min-height: 350px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      transition: transform var(--duration-med) var(--ease-soft), box-shadow var(--duration-med) var(--ease-soft);
    }
    .service-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 24px 40px rgba(15, 23, 42, 0.12);
    }

    .card-blue {
      background: var(--primary-blue);
      color: white;
    }
    .card-blue .tag-list li::before { color: #93c5fd; }

    .service-icon {
      font-size: 2rem; margin-bottom: 20px;
      display: inline-block;
      background: rgba(255,255,255,0.2);
      padding: 10px; border-radius: 8px;
    }

    .card-gray { background: #f9fafb; }

    .service-card h3 { font-size: 1.5rem; margin-bottom: 10px; }
    .service-desc { font-size: 0.9rem; margin-bottom: 20px; opacity: 0.8; }

    .tag-list li { margin-bottom: 8px; font-size: 0.9rem; }
    .tag-list li::before { content: "✓"; margin-right: 8px; color: var(--primary-blue); font-weight: bold; }

    /* --- PROJECTS SECTION --- */
    .projects-header {
      display: flex; justify-content: space-between; align-items: flex-end;
      margin-bottom: 50px;
    }

    .project-row {
      display: grid;
      grid-template-columns: 1fr 1.5fr;
      gap: 50px;
      margin-bottom: 80px;
      align-items: center;
    }

    /* Alternate row layout for visual interest */
    .project-row.reverse {
      grid-template-columns: 1.5fr 1fr;
    }
    .project-row.reverse .project-details { order: 2; }
    .project-row.reverse .project-img { order: 1; }

    .project-cat {
      font-size: 0.85rem; color: var(--text-gray); margin-bottom: 10px; display: block;
    }
    .project-title { font-size: 2.2rem; margin-bottom: 20px; line-height: 1.1; }
    .project-img {
      background: linear-gradient(120deg, #1f2937, #111827);
      border-radius: 16px;
      height: 350px;
      display: flex; align-items: center; justify-content: center;
      color: white; font-weight: bold; font-size: 1.5rem;
      box-shadow: 0 10px 30px rgba(0,0,0,0.1);
      transition: transform var(--duration-slow) var(--ease-soft);
    }
    .project-row:hover .project-img { transform: scale(1.03); }

    .project-gallery {
      display: flex;
      gap: 12px;
      margin-top: 16px;
    }

    .project-gallery img {
      width: 110px;
      height: 70px;
      border-radius: 12px;
      object-fit: cover;
      border: 1px solid #e5e7eb;
      transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
    }
    .project-gallery img:hover {
      transform: translateY(-4px) scale(1.05);
      box-shadow: 0 12px 18px rgba(15, 23, 42, 0.12);
    }

    /* --- WEBSITE GRID --- */
    .website-section-title {
      font-size: 1.3rem;
      font-weight: 700;
      margin: 20px 0 30px;
    }

    .websites-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 20px;
      margin-bottom: 60px;
    }

    .website-card {
      border: 1px solid #e5e7eb;
      border-radius: 16px;
      overflow: hidden;
      background: #fff;
      display: flex;
      flex-direction: column;
      transition: transform var(--duration-med) var(--ease-soft), box-shadow var(--duration-med) var(--ease-soft);
    }
    .website-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 22px 32px rgba(15, 23, 42, 0.12);
    }

    .website-thumb {
      background: #e5e7eb;
      height: 180px;
    }
    .website-thumb--lunarhq {
      background: url('../img/websites/LunarHQ-opt.jpg') center / cover;
    }
    .website-thumb--micks {
      background: url('../img/websites/Micks-opt.jpg') center / cover;
    }
    .website-thumb--tidewake-steam {
      background: url('../img/websites/TidewakeSteam-opt.jpg') center / cover;
    }

    .website-body {
      padding: 20px;
    }

    .website-meta {
      font-size: 0.8rem;
      color: var(--text-gray);
      margin-bottom: 8px;
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    .website-title {
      font-size: 1.4rem;
      margin-bottom: 10px;
    }

    .project-quick-links {
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
      margin-top: 16px;
    }

    /* --- ABOUT & CONTACT --- */
    .about-section,
    .contact-section {
      margin-bottom: var(--section-spacing);
    }

    .about-section p,
    .contact-section p {
      color: var(--text-gray);
      line-height: 1.7;
      max-width: 720px;
      margin-bottom: 24px;
      font-size: 1.05rem;
    }

    .contact-grid {
      display: grid;
      grid-template-columns: minmax(260px, 0.9fr) minmax(360px, 1.3fr);
      gap: 40px;
      align-items: start;
      margin-bottom: 28px;
    }

    .contact-copy p { margin-bottom: 24px; }

    .contact-actions {
      display: inline-flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-bottom: 0;
    }

    .contact-form {
      display: grid;
      gap: 16px;
      max-width: none;
      margin-bottom: 0;
      padding: 24px;
      border-radius: 18px;
      border: 1px solid rgba(226, 232, 240, 0.9);
      background: rgba(255, 255, 255, 0.9);
      box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    }

    .contact-form label {
      display: grid;
      gap: 8px;
      font-weight: 600;
      color: var(--text-dark);
    }

    .form-row {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 16px;
    }

    .contact-form input,
    .contact-form textarea {
      width: 100%;
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      padding: 14px 16px;
      font-size: 1rem;
      font-family: var(--font-main);
      background: #fff;
      color: var(--text-dark);
      transition: border-color var(--duration-fast) var(--ease-out),
        box-shadow var(--duration-fast) var(--ease-out);
    }

    .contact-form input:focus,
    .contact-form textarea:focus {
      outline: none;
      border-color: rgba(37, 99, 235, 0.7);
      box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    }

    .contact-form textarea {
      resize: vertical;
      min-height: 160px;
    }

    .contact-links {
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
    }

    /* --- PROJECTS PAGE --- */
    .projects-hero {
      padding: 40px 0 20px;
    }
    .projects-hero h1 {
      font-size: 3.5rem;
      margin-bottom: 16px;
      letter-spacing: -1px;
    }
    .projects-hero p {
      max-width: 680px;
      color: var(--text-gray);
      font-size: 1.1rem;
      line-height: 1.7;
    }

    .projects-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 24px;
      margin: 40px 0 var(--section-spacing);
    }

    .project-card {
      border: 1px solid #e5e7eb;
      border-radius: 18px;
      overflow: hidden;
      background: #fff;
      display: flex;
      flex-direction: column;
      transition: transform var(--duration-med) var(--ease-soft), box-shadow var(--duration-med) var(--ease-soft);
    }
    .project-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 22px 32px rgba(15, 23, 42, 0.12);
    }

    .project-card-thumb {
      height: 200px;
      background: linear-gradient(135deg, #0f172a, #1f2937);
      display: grid;
      place-items: center;
      color: rgba(255, 255, 255, 0.8);
      font-weight: 600;
      letter-spacing: 0.5px;
    }
    .project-card-thumb--tidewake {
      background: url('../img/tidewake/header.jpg') center / cover;
    }
    .project-card-thumb--harve {
      background: url('../img/harve/header.jpg') center / cover;
    }

    .project-card-body {
      padding: 22px;
      display: grid;
      gap: 10px;
    }

    .project-card-meta {
      font-size: 0.8rem;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--text-gray);
    }

    .project-card-title {
      font-size: 1.5rem;
    }

    .project-card-desc {
      color: var(--text-gray);
      line-height: 1.6;
    }

    .project-card-links {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
    }

    .project-page {
      padding: 30px 0 var(--section-spacing);
    }

    .project-hero {
      display: grid;
      grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.2fr);
      gap: 40px;
      align-items: center;
      margin-bottom: 40px;
    }

    .project-hero h1 {
      font-size: 3rem;
      margin-bottom: 12px;
    }

    .project-hero p {
      color: var(--text-gray);
      line-height: 1.7;
      font-size: 1.05rem;
    }

    .project-hero-media {
      height: 320px;
      border-radius: 20px;
      background: linear-gradient(135deg, #0f172a, #1f2937);
      display: grid;
      place-items: center;
      color: rgba(255, 255, 255, 0.85);
      font-weight: 600;
      letter-spacing: 0.5px;
      box-shadow: 0 26px 50px rgba(15, 23, 42, 0.2);
    }
    .project-hero-media--tidewake {
      background: url('../img/tidewake/header.jpg') center / cover;
      color: transparent;
    }
    .project-hero-media--harve {
      background: url('../img/harve/header.jpg') center / cover;
      color: transparent;
    }

    .project-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin: 16px 0 24px;
    }

    .project-meta span {
      background: #f1f5f9;
      border-radius: 999px;
      padding: 6px 14px;
      font-size: 0.85rem;
      color: var(--text-gray);
    }

    .project-sections {
      display: grid;
      gap: 28px;
      max-width: 900px;
    }

    .project-features {
      display: grid;
      gap: 10px;
      padding-left: 18px;
    }

    .project-features li {
      list-style: disc;
      color: var(--text-gray);
    }

    .project-page-gallery {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 16px;
    }

    .project-shot {
      height: 160px;
      border-radius: 16px;
      background: #e5e7eb;
      display: grid;
      place-items: center;
      color: #94a3b8;
      font-weight: 600;
    }
    .project-shot--tidewake-header {
      background: url('../img/tidewake/header.jpg') center / cover;
      color: transparent;
    }
    .project-shot--tidewake-rain {
      background: url('../img/tidewake/rain.jpg') center / cover;
      color: transparent;
    }
    .project-shot--tidewake-sunset {
      background: url('../img/tidewake/sunset.jpg') center / cover;
      color: transparent;
    }
    .project-shot--harve-header {
      background: url('../img/harve/header.jpg') center / cover;
      color: transparent;
    }
    .project-shot--harve-bears {
      background: url('../img/harve/bears.jpg') center / cover;
      color: transparent;
    }
    .project-shot--harve-forest {
      background: url('../img/harve/forest.jpg') center / cover;
      color: transparent;
    }

    @media (max-width: 900px) {
      .contact-grid {
        grid-template-columns: 1fr;
      }
    }

    /* --- FOOTER --- */
    .footer-cta {
      text-align: center;
      padding: 100px 0;
      background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="%23ddd" /></svg>'); /* subtle dots */
    }
    .footer-cta h2 { font-size: 3rem; margin-bottom: 30px; }

    .big-talk-btn {
      background: #000;
      color: #fff;
      width: 120px; height: 120px;
      border-radius: 50%;
      display: inline-flex;
      align-items: center; justify-content: center;
      font-weight: bold;
      cursor: pointer;
      transition: transform 0.3s;
    }
    .big-talk-btn:hover { transform: scale(1.1); }

    /* --- SCROLL REVEAL --- */
    .js .reveal {
      opacity: 0;
      transform: translateY(24px);
      transition:
        opacity var(--duration-med) var(--ease-out),
        transform var(--duration-med) var(--ease-out);
      transition-delay: var(--delay, 0ms);
      will-change: transform, opacity;
    }
    .js .reveal.reveal-left { transform: translateX(-28px); }
    .js .reveal.reveal-right { transform: translateX(28px); }
    .js .reveal.reveal-scale { transform: scale(0.97); }
    .js .reveal.in-view { opacity: 1; transform: none; }

    .js .stagger > * {
      opacity: 0;
      transform: translateY(12px);
      transition:
        opacity var(--duration-med) var(--ease-out),
        transform var(--duration-med) var(--ease-out);
      transition-delay: var(--delay, 0ms);
    }
    .js .stagger.in-view > * {
      opacity: 1;
      transform: none;
    }

    /* --- KEYFRAMES --- */
    @keyframes float-slow {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-10px); }
    }
    @keyframes twinkle {
      0%, 100% { transform: scale(1); opacity: 1; }
      50% { transform: scale(0.92); opacity: 0.7; }
    }
    @keyframes nav-scribe {
      0% { opacity: 0; transform: scale(0.9) rotate(-1deg); }
      100% { opacity: 1; transform: scale(1) rotate(0deg); }
    }

    /* --- RESPONSIVE --- */
    @media (max-width: 900px) {
      .hero-grid { grid-template-columns: 1fr; }
      .hero-image-container { grid-row: auto; grid-column: 1; height: 400px; order: 2; }
      .hero-headline { order: 1; }
      .hero-headline h1 {
        font-size: clamp(3rem, 12vw, 4.5rem);
        letter-spacing: -1px;
      }
      .hero-intro { order: 3; padding-right: 0; }
      .project-row, .project-row.reverse { grid-template-columns: 1fr; }
      .project-row.reverse .project-details { order: 1; }
      .badge-star { display: none; }
      .project-hero { grid-template-columns: 1fr; }
    }
    @media (max-width: 820px) {
      header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding-top: calc(16px + var(--safe-top));
        padding-bottom: 16px;
      }
      .logo { font-size: 1.25rem; }
      .nav-menu {
        flex-wrap: wrap;
        gap: 10px 16px;
      }
      .nav-item { padding: 6px 12px; }
      header .btn-outline { width: 100%; text-align: center; }
    }

    @media (max-width: 640px) {
      :root { --section-spacing: 72px; }

      .container {
        padding-left: max(14px, var(--safe-left));
        padding-right: max(14px, var(--safe-right));
      }

      header {
        gap: 12px;
        padding-bottom: 12px;
      }

      .nav-menu {
        width: 100%;
        gap: 8px;
      }

      .nav-item {
        font-size: 0.9rem;
        padding: 6px 10px;
      }

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

      .hero-image-container {
        height: 300px;
      }

      .hero-intro {
        margin-top: 24px;
      }

      .hero-intro h3 {
        font-size: 1.8rem;
      }

      .hero-intro p {
        font-size: 0.98rem;
      }

      .social-wrapper {
        gap: 10px;
        height: auto;
      }

      .stats-bar {
        flex-direction: column;
        gap: 18px;
        padding: 36px 0;
      }

      .stat-num {
        font-size: 2rem;
      }

      .section-title {
        font-size: 2rem;
        margin-bottom: 24px;
      }

      .projects-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
      }

      .services-grid,
      .projects-grid,
      .websites-grid {
        grid-template-columns: 1fr;
      }

      .service-card {
        min-height: 0;
        padding: 28px;
      }

      .project-title {
        font-size: 1.7rem;
      }

      .project-gallery {
        flex-wrap: wrap;
      }

      .project-gallery img {
        width: calc(50% - 6px);
        height: 88px;
      }

      .project-card-links {
        width: 100%;
      }

      .project-card-links .btn {
        width: 100%;
        text-align: center;
      }

      .project-hero h1 {
        font-size: 2.2rem;
      }

      .project-hero-media {
        height: 220px;
      }

      .project-page-gallery {
        grid-template-columns: 1fr;
      }

      .project-shot {
        height: 180px;
      }

      .contact-form {
        padding: 18px;
      }

      .form-row {
        grid-template-columns: 1fr;
      }

      .footer-cta {
        padding: 72px 0;
      }

      .footer-cta h2 {
        font-size: 2rem;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
      }
      .reveal { opacity: 1; transform: none; }
    }
  
    /* --- Inline styles moved from index.html --- */
    .sparkle-svg {
      shape-rendering: geometricPrecision;
      text-rendering: geometricPrecision;
      image-rendering: optimizeQuality;
      fill-rule: evenodd;
      clip-rule: evenodd;
    }

    .text-dark { color: var(--text-dark); }
    .service-card-arrow { text-align: right; }
    .section-title-tight { margin-bottom: 0; }
    .project-desc { color: #666; margin-bottom: 20px; }
    .website-desc { color: #666; margin-bottom: 16px; }
    .text-link { font-weight: bold; border-bottom: 2px solid #ccc; padding-bottom: 2px; }

    .project-img--tidewake { background: url('../img/tidewake/header.jpg') center / cover; }
    .project-img--harve { background: url('../img/harve/header.jpg') center / cover; }
