/* =====================================================
       TDG — PREMIUM ARCHITECTURAL PLATFORM
       Production Ready | Fully Responsive | Mobile-First
       ===================================================== */

    :root {
      --bg-main: #f5f6f4;
      --bg-light: #ffffff;
      --text-main: #1a1a1a;
      --text-muted: #5b5e68;
      --accent: #7CB342;
      --accent-dark: #5C8C2E;
      --accent-light: #DCEDC8;
      --border-soft: #e1e3ea;
      --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.09);
      --shadow-hover: 0 20px 35px -12px rgba(0, 0, 0, 0.15);
      --radius: 16px;
      --transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    }

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

    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Helvetica Neue', Arial, sans-serif;
      background: var(--bg-main);
      color: var(--text-main);
      line-height: 1.6;
      scroll-behavior: smooth;
      overflow-x: hidden;
    }

    img {
      max-width: 100%;
      height: auto;
      display: block;
    }

    a {
      text-decoration: none;
      color: inherit;
    }

    .container {
      width: 100%;
      max-width: 1280px;
      margin: 0 auto;
      padding: 0 1.5rem;
    }

    /* ===============================
       NAVBAR
       =============================== */
    .navbar {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      background: rgba(255, 255, 255, 0.96);
      backdrop-filter: blur(14px);
      border-bottom: 1px solid rgba(0, 0, 0, 0.06);
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
      z-index: 1000;
      transition: var(--transition);
    }

    .navbar-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 70px;
      transition: height 0.2s ease;
    }

    .navbar.shrink .navbar-inner {
      height: 56px;
    }

    .logo-img {
      height: 70px;
      width: auto;
      transition: height 0.2s ease;
      object-fit: contain;
    }

    .navbar.shrink .logo-img {
      height: 34px;
    }

    .navbar-logo {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      flex-shrink: 0;
    }

    .navbar-logo-text {
      font-size: 0.85rem;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      background: linear-gradient(135deg, #1e2a3a 0%, #2c3e4e 100%);
      background-clip: text;
      -webkit-background-clip: text;
      color: transparent;
    }

    .navbar-nav {
      display: flex;
      gap: 2rem;
      text-transform: uppercase;
      font-size: 0.85rem;
      letter-spacing: 0.12em;
      font-weight: 500;
    }

    .navbar-nav a {
      color: #2c3e4e;
      position: relative;
      padding-bottom: 6px;
      transition: color 0.2s;
    }

    .navbar-nav a::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: 0;
      width: 0;
      height: 2px;
      background: var(--accent);
      transition: width 0.25s ease;
    }

    .navbar-nav a:hover::after,
    .navbar-nav a.active::after {
      width: 100%;
    }

    .navbar-nav a.active {
      color: #000;
      font-weight: 600;
    }

    .mobile-menu-btn {
      display: none;
      border: none;
      background: none;
      width: 28px;
      height: 24px;
      flex-direction: column;
      justify-content: space-between;
      cursor: pointer;
      padding: 0;
    }

    .mobile-menu-btn span {
      width: 100%;
      height: 2.5px;
      background: #1e2a3a;
      border-radius: 2px;
      transition: 0.2s;
    }

    .mobile-menu {
      display: none;
      flex-direction: column;
      background: rgba(255, 255, 255, 0.98);
      backdrop-filter: blur(12px);
      padding: 1.2rem 1.8rem;
      gap: 1.2rem;
      border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .mobile-menu.open {
      display: flex;
    }

    .mobile-menu a {
      font-size: 1rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      font-weight: 500;
      padding: 0.5rem 0;
      border-bottom: 1px solid #eceef2;
    }

    @media (max-width: 860px) {
      .navbar-nav {
        display: none;
      }

      .mobile-menu-btn {
        display: flex;
      }

      .navbar-logo-text {
        font-size: 0.7rem;
      }
    }

    @media (max-width: 480px) {
      .navbar-logo-text {
        display: none;
      }

      .logo-img {
        height: 38px;
      }

      .container {
        padding: 0 1rem;
      }
    }

    /* ===============================
       HERO
       =============================== */
    .hero {
      position: relative;
      height: 85vh;
      min-height: 500px;
      max-height: 800px;
      display: flex;
      justify-content: center;
      align-items: center;
      text-align: center;
      color: white;
      overflow: hidden;
    }

    .hero-bg {
      position: absolute;
      inset: 0;
      background-image: url("images/eagleslndg.jpeg");
      background-size: cover;
      background-position: center 30%;
      filter: brightness(0.7);
      transform: scale(1.02);
      transition: transform 6s ease;
    }

    .hero-video {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: none;
    }

    .hero.has-video .hero-bg {
      display: none;
    }

    .hero.has-video .hero-video {
      display: block;
    }

    .hero:hover .hero-bg {
      transform: scale(1.05);
    }

    .hero-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
    }

    .hero-inner {
      position: relative;
      z-index: 3;
      max-width: 800px;
      padding: 0 1.5rem;
      animation: fadeUp 0.9s ease;
    }

    @keyframes fadeUp {
      from {
        opacity: 0;
        transform: translateY(28px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .hero-title {
      font-size: clamp(2rem, 6vw, 3.8rem);
      letter-spacing: 0.1em;
      text-transform: uppercase;
      font-weight: 800;
      margin-bottom: 1rem;
      text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    }

    .hero-subtitle {
      font-size: clamp(0.95rem, 3vw, 1.15rem);
      margin-bottom: 2rem;
      color: #f0f2f8;
      max-width: 600px;
      margin-left: auto;
      margin-right: auto;
    }

    .btn-primary {
      padding: 0.85rem 2rem;
      border-radius: 60px;
      background: var(--accent);
      color: #1f2a36;
      text-transform: uppercase;
      font-weight: 700;
      letter-spacing: 0.08em;
      border: none;
      cursor: pointer;
      transition: var(--transition);
      box-shadow: 0 12px 22px rgba(0, 0, 0, 0.25);
      display: inline-block;
      font-size: 0.9rem;
    }

    .btn-primary:hover {
      background: var(--accent-dark);
      transform: translateY(-3px);
      box-shadow: 0 20px 28px -8px rgba(0, 0, 0, 0.35);
    }

    @media (max-width: 768px) {
      .hero {
        height: 70vh;
        min-height: 450px;
      }

      .btn-primary {
        padding: 0.7rem 1.6rem;
        font-size: 0.85rem;
      }
    }

    /* ===============================
       SECTIONS
       =============================== */
    .section {
      padding: 5rem 0;
    }

    .section-light {
      background: #ffffff;
    }

    .section-title {
      text-align: center;
      font-size: clamp(1.6rem, 5vw, 2.2rem);
      letter-spacing: 0.08em;
      text-transform: uppercase;
      margin-bottom: 3rem;
      position: relative;
    }

    .section-title:after {
      content: '';
      display: block;
      width: 60px;
      height: 3px;
      background: var(--accent);
      margin: 0.8rem auto 0;
    }

    @media (max-width: 768px) {
      .section {
        padding: 3.5rem 0;
      }

      .section-title {
        margin-bottom: 2rem;
      }
    }

    /* ===============================
       SERVICES GRID
       =============================== */
    .services-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 2rem;
    }

    .service-card {
      background: white;
      border-radius: var(--radius);
      border: 1px solid var(--border-soft);
      overflow: hidden;
      box-shadow: var(--shadow-soft);
      transition: var(--transition);
      display: flex;
      flex-direction: column;
    }

    .service-card:hover {
      transform: translateY(-6px);
      box-shadow: var(--shadow-hover);
    }

    a.service-card-link {
      display: block;
      color: inherit;
      text-decoration: none;
    }

    a.service-card-link .service-card {
      cursor: pointer;
    }

    a.service-card-link .service-card .service-title::after {
      content: ' ↗';
      font-size: 0.8em;
      opacity: 0.6;
    }

    .service-image {
      height: 220px;
      overflow: hidden;
      background: #eef2f5;
    }

    .service-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s ease;
    }

    .service-card:hover .service-image img {
      transform: scale(1.05);
    }

    .service-content {
      padding: 1.5rem;
      display: flex;
      flex-direction: column;
    }

    .service-title {
      font-weight: 700;
      font-size: 1.2rem;
      letter-spacing: 0.05em;
      margin-bottom: 0.6rem;
      text-transform: uppercase;
    }

    .service-text {
      color: var(--text-muted);
      font-size: 0.95rem;
      line-height: 1.5;
      min-height: 4.5em;
      /* reserves space for 3 lines so all cards match */
    }

    @media (max-width: 640px) {
      .services-grid {
        gap: 1.2rem;
      }

      .service-image {
        height: 200px;
      }

      .service-content {
        padding: 1.2rem;
      }
    }

    /* ===============================
       DIY DROPDOWN MODAL
       =============================== */
    .diy-options-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.55);
      z-index: 2000;
      justify-content: center;
      align-items: center;
      padding: 1rem;
    }

    .diy-options-overlay.open {
      display: flex;
    }

    .diy-options-box {
      background: #fff;
      border-radius: 24px;
      padding: 2.5rem 2rem;
      max-width: 480px;
      width: 100%;
      box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
      position: relative;
      animation: popIn 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    }

    @keyframes popIn {
      from {
        opacity: 0;
        transform: scale(0.9);
      }

      to {
        opacity: 1;
        transform: scale(1);
      }
    }

    .diy-options-box h3 {
      text-transform: uppercase;
      letter-spacing: 0.08em;
      font-size: 1.2rem;
      margin-bottom: 0.5rem;
    }

    .diy-options-box p {
      color: var(--text-muted);
      font-size: 0.9rem;
      margin-bottom: 1.5rem;
    }

    .diy-option-btn {
      display: flex;
      align-items: center;
      gap: 1rem;
      width: 100%;
      padding: 1rem 1.2rem;
      margin-bottom: 0.8rem;
      background: var(--bg-main);
      border: 2px solid var(--border-soft);
      border-radius: 14px;
      cursor: pointer;
      font-family: inherit;
      font-size: 0.95rem;
      font-weight: 500;
      text-align: left;
      transition: var(--transition);
      color: var(--text-main);
      text-decoration: none;
    }

    .diy-option-btn:hover {
      border-color: var(--accent);
      background: #fffbee;
      transform: translateX(4px);
    }

    .diy-option-label {
      width: 32px;
      height: 32px;
      background: var(--accent);
      color: #1a1a1a;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      font-size: 0.85rem;
      flex-shrink: 0;
    }

    .diy-close-btn {
      position: absolute;
      top: 1rem;
      right: 1.2rem;
      background: none;
      border: none;
      font-size: 1.5rem;
      cursor: pointer;
      color: #999;
      line-height: 1;
    }

    .diy-close-btn:hover {
      color: #333;
    }

    /* ===============================
       ABOUT
       =============================== */
    .about-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2.8rem;
      align-items: center;
    }

    .about-image {
      border-radius: 28px;
      overflow: hidden;
      box-shadow: 0 20px 32px -12px rgba(0, 0, 0, 0.2);
    }

    .about-image img {
      width: 100%;
      height: auto;
      object-fit: cover;
      transition: 0.4s;
    }

    .about-text h2 {
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-bottom: 1rem;
      font-size: clamp(1.4rem, 4vw, 1.8rem);
    }

    .about-text p {
      margin-bottom: 1rem;
      color: var(--text-muted);
    }

    @media (max-width: 800px) {
      .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
      }

      .about-text {
        text-align: center;
      }
    }

    /* ===============================
       PROJECTS GALLERY — DARK MASONRY
       =============================== */
    #projects {
      background: #14181a;
      padding: 5rem 0 6rem;
    }

    #projects .section-title {
      color: #ffffff;
    }

    #projects .section-title:after {
      background: var(--accent);
    }

    .gallery-filters {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 0.6rem;
      margin-bottom: 2.8rem;
    }

    .filter-btn {
      padding: 0.5rem 1.3rem;
      border-radius: 40px;
      border: 1.5px solid rgba(255, 255, 255, 0.18);
      background: transparent;
      color: rgba(255, 255, 255, 0.65);
      font-size: 0.78rem;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      cursor: pointer;
      font-family: inherit;
      transition: all 0.22s ease;
    }

    .filter-btn:hover,
    .filter-btn.active {
      background: var(--accent);
      border-color: var(--accent);
      color: #1a1a1a;
    }

    .gallery-masonry {
      columns: 4 260px;
      column-gap: 14px;
    }

    .gallery-item {
      break-inside: avoid;
      margin-bottom: 14px;
      border-radius: 14px;
      overflow: hidden;
      position: relative;
      cursor: pointer;
      display: block;
    }

    .gallery-item img {
      width: 100%;
      height: auto;
      display: block;
      transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      border-radius: 14px;
    }

    .gallery-item-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0) 55%);
      opacity: 0;
      transition: opacity 0.35s ease;
      border-radius: 14px;
      display: flex;
      align-items: flex-end;
      padding: 1rem 1.1rem;
    }

    .gallery-item-caption {
      color: #fff;
      font-size: 0.78rem;
      font-weight: 600;
      letter-spacing: 0.07em;
      text-transform: uppercase;
      transform: translateY(6px);
      transition: transform 0.3s ease;
    }

    .gallery-zoom-icon {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%) scale(0.7);
      width: 44px;
      height: 44px;
      background: rgba(245, 179, 0, 0.95);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #1a1a1a;
      font-size: 1rem;
      opacity: 0;
      transition: all 0.3s ease;
    }

    .gallery-item:hover img {
      transform: scale(1.06);
    }

    .gallery-item:hover .gallery-item-overlay {
      opacity: 1;
    }

    .gallery-item:hover .gallery-item-caption {
      transform: translateY(0);
    }

    .gallery-item:hover .gallery-zoom-icon {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
    }

    .gallery-item.hidden {
      display: none;
    }

    /* Lightbox */
    .lightbox {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.94);
      z-index: 9999;
      justify-content: center;
      align-items: center;
      padding: 1.5rem;
      cursor: zoom-out;
    }

    .lightbox.open {
      display: flex;
    }

    .lightbox-img-wrap {
      position: relative;
      max-width: 90vw;
      max-height: 90vh;
      animation: lbFadeIn 0.25s ease;
    }

    @keyframes lbFadeIn {
      from {
        opacity: 0;
        transform: scale(0.93);
      }

      to {
        opacity: 1;
        transform: scale(1);
      }
    }

    .lightbox-img-wrap img {
      max-width: 90vw;
      max-height: 85vh;
      object-fit: contain;
      border-radius: 10px;
      box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
      display: block;
    }

    .lightbox-close {
      position: fixed;
      top: 1.2rem;
      right: 1.5rem;
      width: 44px;
      height: 44px;
      background: rgba(255, 255, 255, 0.12);
      border: none;
      border-radius: 50%;
      color: #fff;
      font-size: 1.4rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s;
      z-index: 10000;
    }

    .lightbox-close:hover {
      background: rgba(245, 179, 0, 0.9);
      color: #1a1a1a;
    }

    .lightbox-nav {
      position: fixed;
      top: 50%;
      transform: translateY(-50%);
      width: 48px;
      height: 48px;
      background: rgba(255, 255, 255, 0.1);
      border: 1.5px solid rgba(255, 255, 255, 0.2);
      border-radius: 50%;
      color: #fff;
      font-size: 1.1rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
      z-index: 10000;
    }

    .lightbox-nav:hover {
      background: var(--accent);
      border-color: var(--accent);
      color: #1a1a1a;
    }

    .lightbox-prev {
      left: 1.2rem;
    }

    .lightbox-next {
      right: 1.2rem;
    }

    .lightbox-counter {
      position: fixed;
      bottom: 1.5rem;
      left: 50%;
      transform: translateX(-50%);
      color: rgba(255, 255, 255, 0.5);
      font-size: 0.8rem;
      letter-spacing: 0.1em;
      font-weight: 500;
    }

    @media (max-width: 768px) {
      .gallery-masonry {
        columns: 2 140px;
        column-gap: 10px;
      }

      .gallery-item {
        margin-bottom: 10px;
        border-radius: 10px;
      }

      .gallery-item img {
        border-radius: 10px;
      }

      .gallery-item-overlay {
        border-radius: 10px;
      }

      .lightbox-nav {
        display: none;
      }
    }

    @media (max-width: 440px) {
      .gallery-masonry {
        columns: 2 120px;
      }
    }

    /* ===============================
       CONTACT FORM
       =============================== */
    .contact-wrapper {
      max-width: 620px;
      margin: auto;
    }

    .contact-form {
      background: white;
      padding: 2.5rem;
      border-radius: 28px;
      box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.08);
      border: 1px solid #eef0f5;
    }

    .form-group {
      margin-bottom: 1.2rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
      width: 100%;
      padding: 0.9rem 1rem;
      font-size: 0.95rem;
      border-radius: 18px;
      border: 1.5px solid #e2e6ef;
      transition: var(--transition);
      background: #fefefe;
      font-family: inherit;
    }

    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
      border-color: var(--accent);
      outline: none;
      box-shadow: 0 0 0 3px rgba(245, 179, 0, 0.2);
    }

    .status-success,
    .status-error {
      padding: 0.8rem 1rem;
      border-radius: 40px;
      margin-bottom: 1rem;
      display: none;
      font-weight: 500;
      text-align: center;
    }

    .status-success {
      background: #e3f7e8;
      color: #1f6e43;
      border-left: 5px solid #2b8c4e;
    }

    .status-error {
      background: #ffe6e5;
      color: #b13b2d;
      border-left: 5px solid #e55a4a;
    }

    @media (max-width: 640px) {
      .contact-form {
        padding: 1.5rem;
      }

      .form-group input,
      .form-group select,
      .form-group textarea {
        padding: 0.75rem 0.9rem;
      }
    }

    /* ===============================
       FOOTER
       =============================== */
    .footer {
      background: #14181a;
      color: #cbd5e1;
      padding: 2.5rem 0;
      margin-top: 1rem;
    }

    .footer-inner {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 1.5rem;
    }

    .footer a {
      color: var(--accent);
      transition: 0.2s;
    }

    .footer a:hover {
      color: #ffcf4a;
      text-decoration: underline;
    }

    .footer-links {
      display: flex;
      gap: 12px;
      margin-top: 8px;
      flex-wrap: wrap;
      align-items: center;
    }

    .footer-links a {
      color: var(--accent);
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-size: 0.88rem;
    }

    @media (max-width: 640px) {
      .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
      }

      .footer-links {
        justify-content: center;
      }
    }

    .seo-keywords {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
    }

    /* ===============================
       RESOURCES
       =============================== */
    .resources-intro {
      max-width: 720px;
      margin: 0 auto 2.5rem;
      text-align: center;
      color: var(--text-muted);
    }

    .resource-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 1.5rem;
    }

    .resource-card {
      background: var(--bg-light);
      border: 1px solid var(--border-soft);
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: var(--shadow-soft);
      transition: var(--transition);
      display: flex;
      flex-direction: column;
    }

    .resource-card:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-hover);
    }

    .resource-thumb {
      width: 100%;
      height: 150px;
      overflow: hidden;
      background: linear-gradient(135deg, #1c231e 0%, #14181a 100%);
    }

    .resource-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.4s ease;
    }

    .resource-card:hover .resource-thumb img {
      transform: scale(1.05);
    }

    /* Used for sources without a usable public thumbnail (e.g. LinkedIn posts) */
    .resource-thumb.resource-thumb-icon {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 0.4rem;
      color: var(--accent);
      font-size: 2.2rem;
    }

    .thumb-placeholder-label {
      font-size: 0.68rem;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: #6b7280;
      font-weight: 600;
    }

    .resource-content {
      padding: 1.5rem;
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
      flex-grow: 1;
    }

    .resource-tag {
      align-self: flex-start;
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      padding: 0.25rem 0.6rem;
      border-radius: 999px;
      background: var(--accent-light);
      color: #33691E;
    }

    .resource-content h3 {
      font-size: 1.1rem;
    }

    .resource-content p {
      color: var(--text-muted);
      font-size: 0.92rem;
      flex-grow: 1;
    }

    .resource-content a.resource-link {
      font-weight: 600;
      font-size: 0.85rem;
      color: var(--accent-dark);
    }

    .resource-content a.resource-link:hover {
      text-decoration: underline;
    }

    /* ===============================
       SCOTCYD VIDEO SERIES
       =============================== */
    #scotcyd {
      background: #171c1a;
      color: #fff;
    }

    #scotcyd .section-title {
      color: #ffffff;
    }

    #scotcyd .section-title:after {
      background: var(--accent);
    }

    .scotcyd-intro {
      max-width: 720px;
      margin: 0 auto 2.5rem;
      text-align: center;
      color: #c4c9d4;
    }

    /* Two-column row: video on the left, cartoon image + copy on the right */
    .scotcyd-layout {
      display: flex;
      flex-wrap: wrap;
      gap: 2.5rem;
      align-items: center;
      justify-content: center;
      margin-top: 2rem;
    }

    /* Left column — video, sized so it doesn't dwarf the right side */
    .scotcyd-video-col {
      flex: 0 0 260px;
      max-width: 260px;
      width: 100%;
    }

    /* 9:16 vertical ratio box. box-sizing:border-box + padding-top:0 keeps
       this from ever stacking with older padding-hack aspect ratio rules. */
    .video-embed-wrap {
      position: relative;
      display: block;
      width: 100%;
      aspect-ratio: 9 / 16;
      padding-top: 0;
      box-sizing: border-box;
      border-radius: var(--radius);
      overflow: hidden;
      background: #000;
      box-shadow: var(--shadow-soft);
    }

    .video-embed-wrap iframe {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      border: none;
    }

    .video-thumb-btn {
      position: absolute;
      inset: 0;
      display: block;
      width: 100%;
      height: 100%;
      border: none;
      padding: 0;
      margin: 0;
      cursor: pointer;
      background: #000;
    }

    .video-thumb-btn img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      display: block;
      opacity: 0.85;
      transition: opacity 0.2s ease;
    }

    .video-thumb-btn:hover img {
      opacity: 1;
    }

    .video-play-icon {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 56px;
      height: 56px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.92);
      color: #1a1a1a;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.1rem;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
      transition: transform 0.2s ease, background 0.2s ease;
      pointer-events: none;
      z-index: 2;
    }

    .video-thumb-btn:hover .video-play-icon {
      transform: translate(-50%, -50%) scale(1.08);
      background: var(--accent);
    }

    /* Right column — a balanced card: cartoon image next to the description */
    .scotcyd-side {
      flex: 1 1 420px;
      max-width: 540px;
      display: flex;
      flex-direction: row;
      align-items: flex-start;
      gap: 1.5rem;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 16px;
      padding: 1.75rem;
    }

    .scotcyd-cartoon-img {
      flex: 0 0 170px;
      width: 170px;
      height: auto;
      border-radius: 12px;
      display: block;
    }

    .scotcyd-text {
      flex: 1 1 200px;
      display: flex;
      flex-direction: column;
      gap: 0.85rem;
      min-width: 0;
    }

    .scotcyd-text h3 {
      margin: 0;
    }

    .scotcyd-text p {
      color: #c4c9d4;
      margin: 0;
    }

    .platform-links {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
    }

    .platform-btn {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.65rem 1.1rem;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.14);
      font-size: 0.85rem;
      font-weight: 600;
      transition: var(--transition);
    }

    .platform-btn:hover {
      background: var(--accent);
      color: #1a1a1a;
    }

    @media (max-width: 900px) {
      .scotcyd-layout {
        flex-direction: column;
        align-items: center;
        text-align: left;
      }

      .scotcyd-video-col {
        flex: 0 0 auto;
        max-width: 260px;
      }

      .scotcyd-side {
        flex-direction: column;
        max-width: 100%;
      }

      .scotcyd-cartoon-img {
        flex: 0 0 auto;
        width: 140px;
      }
    }

    /* ===============================
       3D MODEL VIEWER (LOCAL DXF, THREE.JS)
       =============================== */
    #model-viewer {
      background: #14181a;
      color: #fff;
    }

    #model-viewer .section-title {
      color: #ffffff;
    }

    #model-viewer .section-title:after {
      background: var(--accent);
    }

    .model-viewer-intro {
      max-width: 720px;
      margin: 0 auto 2.5rem;
      text-align: center;
      color: #c4c9d4;
    }

    .model-viewer-shell {
      max-width: 960px;
      margin: 0 auto;
    }

    .model-toolbar {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      margin-bottom: 1rem;
    }

    .model-select {
      padding: 0.65rem 1.1rem;
      border-radius: 12px;
      border: 1.5px solid rgba(255, 255, 255, 0.18);
      background: #1c231e;
      color: #fff;
      font-size: 0.88rem;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      max-width: 100%;
    }

    .model-hint {
      font-size: 0.78rem;
      color: #838c9b;
      display: flex;
      align-items: center;
      gap: 0.4rem;
    }

    .model-canvas-wrap {
      position: relative;
      width: 100%;
      padding-top: 62%;
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: var(--shadow-soft);
      background: radial-gradient(circle at 50% 40%, #232b25 0%, #0f120f 100%);
      border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .model-canvas-wrap canvas {
      position: absolute;
      inset: 0;
      width: 100% !important;
      height: 100% !important;
      display: block;
      cursor: grab;
    }

    .model-canvas-wrap canvas:active {
      cursor: grabbing;
    }

    .model-loading {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 0.75rem;
      color: #c4c9d4;
      font-size: 0.85rem;
      background: rgba(10, 13, 19, 0.85);
      z-index: 5;
      transition: opacity 0.25s ease;
    }

    .model-loading.hidden {
      opacity: 0;
      pointer-events: none;
    }

    .model-spinner {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      border: 3px solid rgba(245, 179, 0, 0.2);
      border-top-color: var(--accent);
      animation: modelSpin 0.8s linear infinite;
    }

    @keyframes modelSpin {
      to {
        transform: rotate(360deg);
      }
    }

    .model-error {
      position: absolute;
      inset: 0;
      display: none;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 2rem;
      color: #ffb4a8;
      font-size: 0.88rem;
      background: rgba(10, 13, 19, 0.9);
      z-index: 6;
    }

    .model-error.visible {
      display: flex;
    }