/* 3ddesign.ca – V2 clean rebuild (2026) */
:root{
  --bg: #000000;
  --card: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.14);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.72);
  --muted2: rgba(255,255,255,0.58);
  --radius: 16px;
  --shadow: 0 12px 40px rgba(0,0,0,0.45);
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #000;
  color: var(--text);
  line-height: 1.45;
}

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

a{ color: var(--text); text-decoration: none; }
a:hover{ text-decoration: underline; }

.wrap{
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.section{ padding: 30px 0; }
#document-management.section{
  padding-top:10px;
}

#document-management.section{ padding-bottom: 0 !important; }
#testimonials.section{ padding-top: 0 !important; }
#document-management p{ margin-bottom: 0 !important; }

.section.alt{ background: transparent; }

h2{ margin: 0 0 14px; font-size: 28px; letter-spacing: 0.2px; }
h3{ margin: 0 0 10px; font-size: 18px; }

.lead{
  font-size: 1.35em;
  line-height: 1.15;
  font-family: 'Gotham-Book', Arial, sans-serif;
  font-weight: 400;
  color: rgba(255,255,255,0.92);
}
.sub{ color: var(--muted); margin: 0 0 18px; }
.tiny{ color: var(--muted2); font-size: 12.5px; }

/* HERO (match OLD site: big centered wallpaper on black stage) */
.hero{
  background: #000;
  min-height: 92vh;
  display: grid;
  place-items: center;
  padding: 40px 0;
}

.hero-media{
  width: 100%;
  display: grid;
  place-items: center;
}

.hero-media picture,
.hero-media img{
  width: auto;
  max-width: min(1600px, 96vw);
}

.hero-media img{
  height: auto;
  max-height: 84vh;
  object-fit: contain; /* NO CROP */
}

/* HERO wallpaper intro animation */

.hero-media img{
  opacity:0;
  transform:scale(1.04);
  filter:blur(6px);

  transition:
    opacity 1000ms ease,
    transform 1400ms ease,
    filter 1400ms ease;
}

body.is-loaded .hero-media img{
  opacity:1;
  transform:scale(1);
  filter:blur(0);
}
    


.hero-under{
  width: min(900px, 100%);
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

/* Brand block */
.brand{
  display:flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.brand-mark{
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  display:grid;
  place-items:center;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.brand-name{ font-weight: 700; font-size: 16px; }
.brand-tag{ color: var(--muted); font-size: 13px; margin-top: 3px; }

.hero-cta{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Cards & grids */
.card{
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.grid{ display:grid; gap: 14px; }
.grid.two{ grid-template-columns: 1fr; }

.bullets{ margin: 12px 0 0; padding-left: 18px; color: var(--muted); }
.bullets li{ margin: 6px 0; }

.pill-row{ display:flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; justify-content: center; }
.pill{
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12.5px;
}

/* Gallery */
.gallery{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.gallery .g{
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}
.gallery img{
  width:100%;
  height: 140px;
  object-fit: cover;
  transition: transform 180ms ease;
}
.gallery .g:hover img{ transform: scale(1.03); }

/* Quote */
.quote{ display:flex; gap: 12px; align-items:flex-start; }
.quote-mark{ width: 30px; height: 30px; opacity: 0.9; margin-top: 4px; }

/* Buttons */
.btn{
  border: 1px solid rgba(120,200,255,0.45);
  background: rgba(120,200,255,0.18);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow: var(--shadow);
}
.btn.ghost{
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
}
.btn:hover{ text-decoration:none; filter: brightness(1.06); }

/* Contact form */
.contact-form{ display:grid; gap: 12px; }
.row2{ display:grid; grid-template-columns: 1fr; gap: 12px; }
input, textarea{
  width:100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  outline: none;
}
input::placeholder, textarea::placeholder{ color: rgba(255,255,255,0.55); }
input:focus, textarea:focus{
  border-color: rgba(120,200,255,0.65);
  box-shadow: 0 0 0 3px rgba(120,200,255,0.16);
}
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

.note{
  margin-top: 12px;
  border: 1px dashed rgba(255,255,255,0.22);
  border-radius: 14px;
  padding: 12px;
  background: rgba(0,0,0,0.18);
}

/* Footer */
.footer{
  padding: 0 0 15px 0;
  background: transparent; /* seamless black stage */
}
.footer-inner{
  display:flex;
  justify-content:flex-start;
  align-items:center;
}
.footer-brand{
  display:flex;
  gap: 14px;
  align-items:center;
  flex-wrap: wrap;
}
.footer-logo{
  width: 220px;
  height:auto;
  opacity: 0.95;
}

.footer-address-img{

width:600px;
margin:0 0 10px;
display:block;

opacity:0.95;

filter:
brightness(0.95)
contrast(1.05)
drop-shadow(0 0 10px rgba(255,255,255,0.18));
animation: footerFloat 6s ease-in-out infinite;
transition:all 0.6s ease;

}

@keyframes footerFloat{

0% { transform:translateY(0px); }

50% { transform:translateY(-4px); }

100% { transform:translateY(0px); }

}

body.is-loaded .footer-address-img{
opacity:0.95;
transform:translateY(0);
}

.footer-meta{ display:flex; flex-direction:column; gap: 6px; }
.footer-address a{ color: inherit; text-decoration: none; }
.footer-address a:hover{ text-decoration: underline; }

@media (max-width: 640px){
  .footer-inner{ justify-content:center; }
  .footer-brand{ justify-content:center; text-align:center; }
  .footer-logo{ width: 200px; }
}

/* === ABOUT formatting to match OLD layout === */
#about h2{
  text-align: left;
  text-transform: none;
  letter-spacing: 0.12em;
  font-weight: 800;
}
#about .lead{
  font-size: 1.35em;
  line-height: 1.15;
  font-family: 'Gotham-Book', Arial, sans-serif;
  font-weight: 400;
  color: rgba(255,255,255,0.92);
}
    /* Tekla image layout */
#about .about-grid{
  position:relative;
}

#about .about-media{
  position:absolute;
  left:-140px;   /* adjust later if needed */
  top:6px;
}


/* Small subtle Tekla image */
#about .about-frame{
  border:none;
  box-shadow:none;
  overflow:visible;
  margin-top:-8px;
}

/* Smaller image */
#about .about-frame img{
  display:block;
  width:110px;
  height:auto;
  opacity:0.8;
  transform:translateY(0);
  transition:all 1.2s ease;

  filter: brightness(0.8) saturate(1.0); /* watermark feel */
}

/* Document Management Tekla watermark */
#document-management .wrap{
  position:relative;
  overflow:visible;
}

#document-management .doc-icon{
  position:absolute;
  left:-120px;   /* same alignment as About */
  top:-8px;      /* same height as About */
  z-index:2;
}

#document-management .doc-frame{
  border:none;
  box-shadow:none;
  overflow:visible;
}

#document-management .doc-frame img{
  display:block;
  width:90px;   /* same size as About */
  height:auto;
  opacity:0.65;  /* same transparency */
filter: brightness(0.5) saturate(0.5);
}

/* === SERVICES layout tune (less "template" feel) === */

/* === SERVICES layout tune (less "template" feel) === */
#services .grid.two{ align-items: start; }
@media (min-width: 820px){
  #services .grid.two{ grid-template-columns: 1fr 1fr; }
}

/* Desktop enhancements */
@media (min-width: 820px){
  h2{ font-size: 34px; }
  .section{ padding: 64px 0; }
  .grid.two{ grid-template-columns: 1.25fr 0.75fr; gap: 18px; }
  .row2{ grid-template-columns: 1fr 1fr; }
  .gallery{ grid-template-columns: repeat(3, 1fr); }
  .gallery img{ height: 175px; }
  .hero{ padding: 56px 0; }
  .hero-media img{ max-height: 86vh; }
  .hero-under{ gap: 16px; }
  .brand-name{ font-size: 18px; }
  .brand-tag{ font-size: 14px; }
}


/* Tighten spacing so About feels like the OLD page */
#about.section{ padding-top: 10px; padding-bottom: 54px; }
#about .lead{
  font-size: 1.35em;
  line-height: 1.15;
  font-family: 'Gotham-Book', Arial, sans-serif;
  font-weight: 400;
  color: rgba(255,255,255,0.92);
}
/* If any stray intro section remains, hide it */
#intro{ display:none; }

/* Center helper for headings */
.center{ text-align:center; }

/* Trimble Connect section */
.trimble-grid{
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin-top: 14px;
}

.trimble-card{
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
  padding: 18px;
}

.tc-hint code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
}

.tc-link.disabled{
  opacity: 0.55;
  pointer-events: none;
}

@media (min-width: 820px){
  .trimble-grid{
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
}

/* --- Trimble desktop layout --- */

.trimble-side{
  display:none;
}

@media (min-width: 1024px){
    
    /* Desktop: tighten space between Trimble section and Past projects */

  #trimble.section{ padding-bottom: 24px; }
  #projects.section{ padding-top: 24px; }


  .trimble-row{
    display:grid;
    grid-template-columns: 1fr 340px;  /* controls image column width */
    gap:30px;
    align-items:start;
  }

  .trimble-side{
    display:block;
    justify-self: end;
    margin-top:-80px;
  }

  .trimble-side img{
    width:340px;   /* matches testimonial quote image */
    max-width:100%;
    height:auto;
    display:block;
  }

  /* slightly tighten cards */
  .trimble-card{
    padding:14px;
  }

  .tc-link{
    padding:8px 14px;
    font-size:13px;
  }
}
/* Contact details formatting */
.contact-details .details-lines{
  display: grid;
  gap: 8px;
}
.contact-details .details-lines a{ color: inherit; }


/* Contact section: remove right-side Details card -> make form full width */
#contact .grid.two{ grid-template-columns: 1fr !important; }
#contact.section{
  
}

#contact.section{
    padding-top: 24px !important;
    padding-bottom: 30px !important;
}

#contact .card{
  margin-bottom:0 !important;
  padding-bottom:10px !important;
}

/* XYZ axes watermark (desktop only) */
#contact .wrap{ position:relative; }

.xyz-bg{
  position:absolute;
  left:-140px;
  top:20px;
  width:100px;     /* matches your Tekla icon scale */
  opacity:0.25;
  filter:brightness(0.7);
  pointer-events:none;
}

@media (max-width:760px){
  .xyz-bg{ display:none; }
}

/* === TESTIMONIALS (single source of truth) ===
   Order in index: Quote image -> TESTIMONIALS heading -> Rick testimonial
*/

/* ===== TESTIMONIALS FINAL LOCKED VERSION ===== */

/* Big Gotham quote */

/* ===== TESTIMONIALS FINAL MATCH TO OLD SITE ===== */

/* Move whole testimonial block slightly right */
#testimonials .testimonial-rick{
  max-width: 920px;
  margin: 0 auto;
}

/* Perfect quote + line alignment */

#testimonials .tr-top{
  display:flex;
  align-items:center;
  gap:20px;
  margin-bottom:18px;
}

/* Bigger Gotham quote */

#testimonials .tr-quote{
  font-family: 'Gotham-Book', Arial, sans-serif;
  font-weight:400;
  font-size:165px;
  line-height:0.7;

  /* Critical alignment tweak */
  transform: translateY(10px);
}

/* Line starts closer to quote */

#testimonials .tr-rule{
  flex:1;
  background:rgba(255,255,255,0.30);
  height:1px;
}

/* Heading spacing like old site */

#testimonials h2{
 text-align:left;
  font-weight:700;
  letter-spacing:0.2px;
  text-transform:none;
}

/* Paragraph spacing */

#testimonials .tr-text{
  margin-top:0;
  margin-bottom:28px;
}

/* Rick spacing */

#testimonials .tr-sig{
  margin-bottom:32px;
}

@media (min-width: 820px){
  #testimonials .quote-image{ max-width: 460px; }
}
/* === Testimonials NEW Layout === */

#testimonials .testimonials-row{
display:flex;
  align-items:flex-start; /* <-- key change */
justify-content:space-between;
gap:40px;
max-width:1100px;
margin:0 auto 0 0;
}

#testimonials .testimonials-quote-left{
font-family:"Gotham-Book", Arial, sans-serif;
font-size:160px;
line-height:0.7;
color:rgba(255,255,255,0.85);
flex:0 0 110px;
text-align:center;
}

#testimonials .testimonials-text{
flex:1;
max-width:760px;
}

#testimonials .testimonials-sig{
margin-top:18px;
}

#testimonials .testimonials-quote-right{
flex:0 0 320px;
text-align:right;
}

#testimonials .testimonials-quote-right img{
  width:100%;
  max-width:300px;
  height:auto;
  display:block;
  margin-left:auto;

  /* VISUAL CONTROLS */
  opacity:0.8;                 /* transparency */
  filter:brightness(0.9)       /* brightness */
    saturate(0.9)         /* color strength */
    contrast(1.0);        /* edge clarity */

  /* POSITION CONTROLS */
  transform:translateY(0px) translateX(0px);

  /* SIZE FINE CONTROL */
  scale:1.0;
}

/* --- Vertical alignment tuning --- */

#testimonials .testimonials-quote-left{
transform: translateY(18px);
}

#testimonials .testimonials-quote-right{
transform: translateY(-18px);
}

#testimonials .testimonials-text{
padding-top:6px;
}

/* Testimonials top + bottom rule lines (absolute so they don't affect flex) */
#testimonials .testimonials-row{
  position: relative;
  padding-top: 34px;   /* space for top line */
  padding-bottom: 34px;/* space for bottom line */
}

#testimonials .testimonials-row::before,
#testimonials .testimonials-row::after{
  content:"";
  position:absolute;
  left:0;              /* extend fully left */
  right:360px;         /* still stop before quote image */
  height:1px;
  background: rgba(255,255,255,0.30);
}

#testimonials .testimonials-row::before{ top: 10px; }
#testimonials .testimonials-row::after{ bottom: 10px; }

/* Testimonials bottom rule line */
#testimonials .testimonials-row::after{
  content:"";
  display:block;
  height:1px;
  margin-top:28px;
  background:rgba(255,255,255,0.25);
}

/* Testimonials responsive */
@media (max-width: 900px){
#testimonials .testimonials-row{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}

#testimonials .testimonials-quote-left{
  font-size:120px;
  transform:none;
}

  #testimonials .testimonials-row::before{
    left:20px;
    right:20px;
  }

  #testimonials .testimonials-quote-right{
    text-align:center;
  }

  #testimonials .testimonials-quote-right img{
    margin:10px auto 0;
  }
}

/* === Document Management split (desktop-first) === */
.dm-split{
  display:grid;
  gap: 22px;
  align-items: center;
}
.dm-copy h2{
  margin-bottom: 14px;
}
.dm-copy .lead{
  font-size: 1.35em;
  line-height: 1.15;
  font-family: 'Gotham-Book', Arial, sans-serif;
  font-weight: 400;
  color: rgba(255,255,255,0.92);
}
/* Premium framed image */
.dm-frame{
  border-radius: 26px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 18px 55px rgba(0,0,0,0.55);
  position: relative;
  overflow: hidden;
}
.dm-frame::before{
  content:"";
  position:absolute;
  inset:-40%;
  background: radial-gradient(circle at 30% 20%, rgba(120,200,255,0.18), transparent 55%);
  pointer-events:none;
}
.dm-frame img{
  border-radius: 18px;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
}

/* Subtle fade-in on scroll */
.dm-reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 520ms ease, transform 520ms ease;
}
.dm-reveal.in{
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 820px){
  .dm-split{
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
  }
  .dm-media{ justify-self: end; }
  .dm-frame{ max-width: 420px; }
}


/* ===== Document Management split layout (desktop + responsive) ===== */
.docmgmt-grid{
  display:grid;
  gap:26px;
  align-items:start;
}

@media (min-width: 760px){
  .docmgmt-grid{
    grid-template-columns: minmax(0, 1fr) auto;
    gap:26px;
    align-items:start;
  }
}

.docmgmt-text{
  max-width: 820px;
}

.docmgmt-media{
  display:flex;
  justify-content:flex-end;
  align-items:flex-start;
}

.docmgmt-frame{
  border-radius:26px;
  overflow:hidden;

  background: rgba(255,255,255,0.03);

  padding:10px;

  border:1px solid rgba(255,255,255,0.08);

  box-shadow:
    0 25px 70px rgba(0,0,0,0.7),
    0 0 20px rgba(255,255,255,0.06);
}

/* Past Projects image frame */

#projects .past-projects-frame{
border-radius:26px;
overflow:hidden;

background: rgba(255,255,255,0.03);

padding:10px;

border:1px solid rgba(255,255,255,0.08);
outline:1px solid rgba(255,255,255,0.12);

box-shadow:
 0 25px 70px rgba(0,0,0,0.7),
 0 0 20px rgba(255,255,255,0.06);
}

#projects .past-projects-slide{
  display:block;
  width:100%;
  height:auto;
}

.docmgmt-frame img{
 display:block;
 height:280px;
 width:auto;
 max-width:340px;
 opacity:0.9;
 filter: brightness(0.95) saturate(1.0);
}

@media (max-width: 759px){
  .docmgmt-media{
    justify-content:center;
  }
  .docmgmt-frame img{
    height:320px;
    max-width: 92vw;
  }
}


/* Global paragraph typography (2026 baseline) */
body p{
  font-size: 1.35em;
  line-height: 1.15;
  font-family: 'Gotham-Book', Arial, sans-serif;
  font-weight: 400;
  color: rgba(255,255,255,0.92);
}
body p strong, body p b{
  font-family: 'Gotham-Bold', 'Gotham-Book', Arial, sans-serif;
  font-weight: 700;
}

/* Center TESTIMONIALS heading to testimonial block */

/* Perfect testimonial centering */

#testimonials .testimonial-rick{
  max-width: 920px;
  margin-left:auto;
  margin-right:auto;
}

/* Keep heading centered across full width */

#testimonials h2{
text-align:left;
}

/* Restore bottom testimonial line */

/* Bottom testimonial rule aligned with text width */

/* Bottom rule aligned with top rule */

/* Bottom rule – match old site exactly */

#testimonials .tr-bottom{
  height:1px;
  background:rgba(255,255,255,0.30);

  margin-top:34px;   /* more space like old site */
  width:100%;
}

/* Match old site text width */

#testimonials .tr-text{
  max-width:760px;
}

/* Match Testimonials heading to Trimble heading */

#testimonials h2{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
  font-weight:700 !important;
  letter-spacing:0.2px !important;
  text-transform:none !important;
  margin:0 0 14px !important;
}

/* === Past Projects Slideshow === */

.past-projects-frame{
width:100%;
max-width:1000px;
aspect-ratio:16/9;
margin:20px auto;

position:relative;
overflow:hidden;
border-radius:26px;

outline: 1px solid rgba(255,255,255,0.12);
outline-offset: 6px;

/* subtle outer frame */
padding:0px;  /* creates the black gap */

background:transparent;

  border:none;

  box-shadow:
    0 25px 70px rgba(0,0,0,0.70),
    0 0 0 1px rgba(255,255,255,0.12),  /* thin line tight to image */
    0 0 0 5px rgba(255,255,255,0.04);  /* tiny “set out” glow */
}


.past-projects-slide{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transition:opacity 1.2s ease-in-out;
}

.past-projects-slide.is-active{
  opacity:1;
}

.grecaptcha-badge {
  transform: scale(0.5);
  transform-origin: bottom right;
}

/* =========================
   MOBILE ONLY (FULL)
   ========================= */

@media (max-width:760px){

/* HERO */
.hero{
  padding:0;
  min-height:auto !important;
  height:auto !important;
  display:block !important;
}
.hero-media picture,
.hero-media img{
  width:100%;
  max-width:100%;
  height:auto;
  max-height:none;
}

/* =========================
   MOBILE TYPOGRAPHY
   ========================= */
body p,
.section p,
#about p,
#document-management p{
  font-size:17px !important;
  line-height:1.45 !important;
}

/* Big paragraph style used in About, etc */
.lead{
  font-size:17px !important;
  line-height:1.45 !important;
}

/* ALL section headings */
h2{
  font-size:22px;
  margin-top:4px;
  margin-bottom:6px;
}

/* =========================
   MOBILE SPACING (GLOBAL)
   ========================= */
.section{
  padding:2px 0;
}

/* Kill the “mystery gap” between sections */
.section p:last-child{
  margin-bottom:0 !important;
}
.section h2{
  margin-top:0 !important;
}

/* Optional: slightly pull About up */
#about.section{
  padding-top:18px;
}

/* Optional: tighten About -> Doc Management transition */
#about.section{
  padding-bottom:4 !important;
}
#document-management.section{
  padding-top:2px !important;
}

#document-management.section{
padding-bottom:10 !important;
}

#testimonials.section{
padding-top:12 !important;
margin-top:0 !important;
}


#document-management p{
margin-bottom:4px !important;
}

/* =========================
   DOCUMENT MANAGEMENT (hide app pic)
   ========================= */
#document-management img,
.docmgmt-frame,
.docmgmt-media{
  display:none !important;
}

/* =========================
   TESTIMONIALS (mobile cleanup)
   ========================= */
#testimonials img,
#testimonials svg{
  display:none !important;
}

#testimonials .tr-quote,
#testimonials .testimonials-quote-left,
#testimonials .testimonials-quote-right{
  display:none !important;
}

#testimonials .tr-rule,
#testimonials .tr-bottom{
  display:none !important;
}

#testimonials *::before,
#testimonials *::after{
  content:none !important;
  display:none !important;
}

#testimonials,
#testimonials *{
  background-image:none !important;
}

#testimonials .wrap{
  padding-bottom:0 !important;
  margin-bottom:0 !important;
}

#testimonials p:last-child{
  margin-bottom:0 !important;
}

/* =========================
   PAST PROJECTS (iPhone-safe slideshow)
   ========================= */
#projects .past-projects-frame{
  position:relative !important;
  width:100% !important;
  height:min(260px,56vw) !important;
  overflow:hidden !important;
}

#projects .past-projects-slide{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:none !important;
  opacity:0 !important;
}

#projects .past-projects-slide.is-active{
  display:block !important;
  opacity:1 !important;
}

/* Small polish */
#trimble.section{
  padding-bottom:6px;
}
/* HERO GAP CONTROL (REAL FIX) */

.hero{
  min-height:auto !important;
  padding:0 !important;
  margin-bottom:0 !important;
}

.hero-media{
  margin-bottom:0 !important;
}

/* --- Testimonials gap control (mobile only) --- */

/* Space BELOW the whole testimonials section */
#testimonials.section{
  padding-bottom:0 !important;   /* try 0, 2, 4, 8 */
  margin-bottom:0 !important;
}

/* Space BELOW the Rick paragraph itself */
#testimonials p{
  margin-bottom:0px !important;  /* try 0–10 */
}
#testimonials p:last-child{
  margin-bottom:0 !important;
}

/* Pull the next section up */
#projects{
  padding-top:0 !important;
  margin-top:0 !important;
}
#projects h2{
  margin-top:0 !important;
}
/* --- Testimonials heading gap control (mobile only) --- */

/* Controls gap under "Testimonials" heading */
#testimonials h2{
  margin-top:30px !important;
  margin-bottom:0 !important;
}

/* Removes built-in vertical space around testimonial */
#testimonials .testimonials-row{
  padding-top:0 !important;
  padding-bottom:0 !important;
}

/* Removes extra top spacing before testimonial paragraph */
#testimonials .testimonials-text{
  padding-top:0 !important;
  
}
}