/*
Theme Name: Eight Inch Nails
Theme URI: https://eightinchnails.com
Author: SNS
Description: Custom theme for Eight Inch Nails Construction — Premium remodeling in Portland, OR.
Version: 3.0.0
License: Proprietary
Text Domain: eightinchnails
*/

/* ========================================
   1. DESIGN TOKENS
   ======================================== */
:root {
  --brand: #008FD5;
  --brand-light: #3aabea;
  --brand-dim: rgba(0,143,213,0.08);
  --brand-deep: #006da6;
  --accent: #C9D92A;
  --accent-dim: rgba(201,217,42,0.12);
  --accent-deep: #a8b820;
  --slate: #2a3038;
  --slate-light: #4a5260;
  --slate-dim: #7a8290;
  --white: #ffffff;
  --off-white: #f7f8fa;
  --cream: #eef1f5;
  --gray-100: #eceef2;
  --gray-200: #d8dce4;
  --text: #1a2028;
  --text-mid: #4a5260;
  --text-light: #7a8294;
  --font-sans: 'DM Sans', sans-serif;
  --font-display: 'Fraunces', serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(0,80,140,0.04);
  --shadow-md: 0 8px 24px rgba(0,80,140,0.06);
  --shadow-lg: 0 16px 48px rgba(0,80,140,0.1);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   2. RESET & BASE
   ======================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--off-white); color: var(--text); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ========================================
   3. NAVIGATION
   ======================================== */
nav.main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 72px; display: flex; align-items: center; gap: 24px;
  padding: 0 48px; background: rgba(247,248,250,0.96); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-200); transition: box-shadow 0.3s;
}
nav.main-nav.scrolled { box-shadow: 0 2px 16px rgba(0,80,140,0.06); }
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo { height: 40px; width: auto; display: block; }
.nav-links { display: flex; gap: 28px; list-style: none; margin-left: auto; }
.nav-links a {
  font-size: 0.85rem; font-weight: 500; color: var(--text-mid);
  text-decoration: none; transition: color 0.25s; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--brand); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--brand); border-radius: 1px;
}
.nav-cta {
  font-weight: 600; font-size: 0.82rem; padding: 10px 22px;
  background: var(--brand); color: var(--white); border-radius: var(--radius-sm);
  text-decoration: none; transition: all 0.3s;
}
.nav-cta:hover { background: var(--brand-deep); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,113,170,0.25); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--brand); margin: 5px 0; transition: all 0.3s; }

/* ========================================
   4. BUTTONS
   ======================================== */
.btn-brand {
  font-weight: 600; font-size: 0.88rem; padding: 14px 30px;
  background: var(--brand); color: var(--white); border: none; border-radius: var(--radius-sm);
  cursor: pointer; text-decoration: none; transition: all 0.3s; display: inline-block;
}
.btn-brand:hover { background: var(--brand-deep); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,113,170,0.25); }
.btn-light {
  font-weight: 600; font-size: 0.88rem; padding: 14px 30px;
  background: var(--white); color: var(--text); border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm); cursor: pointer; text-decoration: none; transition: all 0.3s; display: inline-block;
}
.btn-light:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 10px 20px; font-size: 0.8rem; }

/* ========================================
   5. HERO — Cinematic Bento Grid with Overlay
   ======================================== */
.hero {
  height: 100vh; min-height: 680px;
  padding-top: 72px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  background: #0e1318;
  position: relative;
}
.hero > * { min-height: 0; overflow: hidden; }
.hero-cell {
  position: relative; overflow: hidden;
}
.hero-cell img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.15);
}
.hero-cell::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(transparent 40%, rgba(0,0,0,0.25));
  pointer-events: none; z-index: 1;
}

/* Grid placement */
.hero-cell--main { grid-column: 1; grid-row: 1; }
.hero-cell--stack {
  grid-column: 2; grid-row: 1;
  display: grid; grid-template-rows: 1fr 1fr; gap: 4px;
}
.hero-cell--bl { grid-column: 1; grid-row: 2; }
.hero-cell--br { grid-column: 2; grid-row: 2; }

/* Left-column cells get stronger overlay for text readability */
.hero-cell--main::after,
.hero-cell--bl::after {
  background: linear-gradient(160deg, rgba(0,40,70,0.5) 0%, rgba(0,20,40,0.3) 50%, transparent 100%);
}

/* Floating text overlay */
.hero-overlay {
  position: absolute; top: 72px; bottom: 0; left: 0;
  width: 58%; z-index: 20;
  padding: 0 56px;
  display: flex; align-items: center;
  pointer-events: none;
}
.hero-overlay::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(0,20,35,0.88) 0%, rgba(0,20,35,0.7) 50%, transparent 85%);
  z-index: -1; pointer-events: none;
}
.hero-content { pointer-events: auto; }

/* Reveal animations — architectural build effect */
.hero-cell--main {
  clip-path: inset(0 100% 0 0);
  animation: heroClipReveal 1.1s cubic-bezier(0.77, 0, 0.175, 1) 0.15s forwards;
}
.hero-cell--stack > .hero-cell:first-child {
  clip-path: inset(100% 0 0 0);
  animation: heroClipReveal 0.95s cubic-bezier(0.77, 0, 0.175, 1) 0.35s forwards;
}
.hero-cell--stack > .hero-cell:last-child {
  clip-path: inset(100% 0 0 0);
  animation: heroClipReveal 0.95s cubic-bezier(0.77, 0, 0.175, 1) 0.55s forwards;
}
.hero-cell--bl {
  clip-path: inset(0 100% 0 0);
  animation: heroClipReveal 1s cubic-bezier(0.77, 0, 0.175, 1) 0.4s forwards;
}
.hero-cell--br {
  clip-path: inset(0 0 100% 0);
  animation: heroClipReveal 0.95s cubic-bezier(0.77, 0, 0.175, 1) 0.6s forwards;
}
.hero-overlay { opacity: 0; animation: fadeUp 0.8s ease 0.9s both; }

@keyframes heroClipReveal { to { clip-path: inset(0 0 0 0); } }

/* Slow pan animations — each cell drifts a different direction */
@keyframes panRight  { from { transform: scale(1.18) translateX(-3%); } to { transform: scale(1.18) translateX(3%); } }
@keyframes panLeft   { from { transform: scale(1.18) translateX(3%); }  to { transform: scale(1.18) translateX(-3%); } }
@keyframes panUp     { from { transform: scale(1.18) translateY(3%); }  to { transform: scale(1.18) translateY(-3%); } }
@keyframes panDown   { from { transform: scale(1.18) translateY(-3%); } to { transform: scale(1.18) translateY(3%); } }
@keyframes panDiag   { from { transform: scale(1.18) translate(-2%, 2%); } to { transform: scale(1.18) translate(2%, -2%); } }

/* Assign different pan directions */
.hero-cell--main img        { animation: panRight 30s ease-in-out infinite alternate; }
.hero-cell--stack > .hero-cell:first-child img  { animation: panLeft 28s ease-in-out infinite alternate; animation-delay: -6s; }
.hero-cell--stack > .hero-cell:last-child img   { animation: panUp 26s ease-in-out infinite alternate; animation-delay: -10s; }
.hero-cell--bl img          { animation: panDiag 32s ease-in-out infinite alternate; animation-delay: -4s; }
.hero-cell--br img          { animation: panDown 27s ease-in-out infinite alternate; animation-delay: -8s; }

/* Image labels */
.hero-img-label {
  position: absolute; bottom: 14px; left: 14px; z-index: 2;
  font-size: 0.58rem; font-weight: 700; color: white; letter-spacing: 0.1em;
  text-transform: uppercase; opacity: 0.5;
}
.hero-cell--bl .hero-img-label { display: none; }

/* Hero text content */
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 13px; background: rgba(201,217,42,0.12);
  border: 1px solid rgba(201,217,42,0.25);
  border-radius: 100px; font-size: 0.68rem; font-weight: 600;
  color: var(--accent); margin-bottom: 16px;
  backdrop-filter: blur(8px);
}
.hero-pill::before {
  content: ''; width: 5px; height: 5px; background: var(--accent); border-radius: 50%;
}
.hero h1 {
  font-family: var(--font-display); font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 600; line-height: 1.1; color: #fff; margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero h1 em { font-style: italic; color: var(--brand-light); }
.hero-desc {
  font-size: 0.92rem; font-weight: 400; line-height: 1.65;
  color: rgba(255,255,255,0.65); max-width: 480px; margin-bottom: 28px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-proof {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 22px; padding: 10px 18px;
  background: rgba(255,255,255,0.12); backdrop-filter: blur(8px);
  border-radius: 100px; border: 1px solid rgba(255,255,255,0.15);
}
.hero-proof-stars { display: flex; gap: 3px; }
.hero-proof-text {
  font-size: 0.85rem; font-weight: 600; color: var(--white);
  letter-spacing: 0.01em;
}
.hero .btn-light {
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.25); backdrop-filter: blur(8px);
}
.hero .btn-light:hover {
  border-color: var(--accent); color: var(--accent);
  background: rgba(201,217,42,0.08);
}

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

/* ========================================
   6. SHARED SECTION STYLES
   ======================================== */
.section-pad { padding: 100px 48px; }
.section-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-deep); margin-bottom: 12px;
}
.section-label::before { content: ''; width: 20px; height: 2px; background: var(--accent); border-radius: 1px; }
.section-h2 {
  font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 600; color: var(--text); margin-bottom: 48px;
}
.section-h2 em { font-style: italic; color: var(--brand); }
.section-cta { text-align: center; margin-top: 48px; }

/* ========================================
   7. PORTFOLIO (Homepage)
   ======================================== */
.portfolio { background: var(--off-white); }
.port-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  max-width: 1200px; margin: 0 auto;
}
.port-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--gray-200); transition: all 0.4s;
}
.port-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.port-card-link { text-decoration: none; color: inherit; display: block; }
.port-thumb { height: 200px; position: relative; overflow: hidden; }
.port-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.port-card:hover .port-thumb img { transform: scale(1.05); }
.port-tag {
  position: absolute; top: 12px; left: 12px;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--white); background: rgba(0,113,170,0.7); backdrop-filter: blur(6px);
  padding: 5px 12px; border-radius: 6px; z-index: 2;
}
.port-body { padding: 20px; }
.port-body h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.port-body p { font-size: 0.8rem; line-height: 1.55; color: var(--text-light); }

/* ========================================
   8. SERVICES (Homepage)
   ======================================== */
.services { background: var(--white); }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1200px; margin: 0 auto; }
.svc-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  overflow: hidden; transition: all var(--transition); text-decoration: none; color: inherit; display: block;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.svc-card-img {
  height: 200px; overflow: hidden; position: relative;
}
.svc-card-img img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s;
}
.svc-card:hover .svc-card-img img { transform: scale(1.06); }
.svc-card-body { padding: 20px; text-align: center; }
.svc-card h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.svc-card p { font-size: 0.8rem; line-height: 1.6; color: var(--text-light); }

/* ========================================
   9. PROCESS
   ======================================== */
.process {
  background: var(--brand); color: var(--white);
  position: relative; overflow: hidden;
}
.process::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(201,217,42,0.08);
}
.process::after {
  content: ''; position: absolute; bottom: -40px; left: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.process .section-label { color: rgba(255,255,255,0.6); }
.process .section-label::before { background: var(--accent); }
.process .section-h2 { color: var(--white); }
.process .section-h2 em { color: var(--accent); }
.proc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.proc-step { text-align: center; padding: 20px; }
.proc-num {
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 600;
  color: rgba(255,255,255,0.12); line-height: 1; margin-bottom: -4px;
}
.proc-step h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; }
.proc-step p { font-size: 0.8rem; line-height: 1.6; color: rgba(255,255,255,0.6); }

/* ========================================
   10. TESTIMONIALS (Homepage)
   ======================================== */
.testimonials { background: var(--off-white); }
.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1100px; margin: 0 auto; }
.test-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 28px 24px; position: relative;
}
.test-card::before {
  content: '\201C'; font-family: var(--font-display); font-size: 3.5rem;
  color: var(--brand); opacity: 0.15; position: absolute; top: 14px; left: 20px; line-height: 1;
}
.test-card blockquote {
  font-family: var(--font-display); font-size: 0.95rem; font-style: italic;
  line-height: 1.6; color: var(--text-mid); margin-bottom: 14px;
}
.test-name { font-size: 0.78rem; font-weight: 600; color: var(--text); }
.test-proj { font-size: 0.68rem; color: var(--brand); margin-top: 2px; }

/* ========================================
   11. HOMEPAGE SHOWCASE
   ======================================== */
.showcase { background: var(--white); }
.showcase-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  max-width: 1200px; margin: 0 auto;
}
.showcase-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3; text-decoration: none;
}
.showcase-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s;
}
.showcase-item:hover img { transform: scale(1.08); }
.showcase-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px; background: linear-gradient(transparent 40%, rgba(0,30,50,0.7));
  transition: opacity var(--transition);
}
.showcase-cat {
  font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--brand-light); margin-bottom: 4px;
}
.showcase-overlay h3 {
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; color: var(--white);
}

/* ========================================
   11b. WHY CHOOSE US + VIDEO
   ======================================== */
.why-us { background: var(--white); }
.why-us-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center;
}
.video-wrap {
  position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.video-wrap iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  border-radius: var(--radius);
}
.why-us-content .section-h2 { margin-bottom: 16px; }
.why-us-desc {
  font-size: 0.95rem; line-height: 1.75; color: var(--text-mid); margin-bottom: 28px;
}
.why-us-list {
  list-style: none; margin-bottom: 32px;
  display: flex; flex-direction: column; gap: 16px;
}
.why-us-list li {
  display: flex; align-items: flex-start; gap: 14px;
}
.why-us-list li svg { flex-shrink: 0; margin-top: 2px; }
.why-us-list li strong {
  display: block; font-size: 0.88rem; font-weight: 600; color: var(--text); margin-bottom: 2px;
}
.why-us-list li span {
  font-size: 0.78rem; line-height: 1.5; color: var(--text-light);
}

/* ========================================
   12. HOMEPAGE CONTACT
   ======================================== */
.contact { background: var(--white); }
.contact-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.contact-inner h2 {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600; color: var(--text); margin-bottom: 16px;
}
.contact-inner h2 em { font-style: italic; color: var(--brand); }
.contact-inner > p { font-size: 1rem; line-height: 1.7; color: var(--text-mid); margin-bottom: 36px; }
.contact-details { display: flex; justify-content: center; gap: 48px; margin-bottom: 36px; flex-wrap: wrap; }
.cd-label { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-light); margin-bottom: 4px; }
.cd-val { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--text); }
.cd-phone-link { color: inherit; text-decoration: none; }

/* ========================================
   13. FOOTER
   ======================================== */
footer.site-footer {
  padding: 32px 48px; background: #004a6e;
  display: flex; flex-direction: column; gap: 0;
  position: relative;
}
footer.site-footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent), var(--brand));
}
footer.site-footer span { font-size: 0.78rem; color: rgba(255,255,255,0.5); }
footer.site-footer .footer-brand-text { font-family: var(--font-display); font-size: 0.95rem; color: var(--white); }
footer.site-footer .footer-logo-img { height: auto; width: 180px; display: block; }

/* ========================================
   14. REVEALS & ANIMATIONS
   ======================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.vis { opacity: 1; transform: translateY(0); }

/* ========================================
   15. PAGE HERO (Inner Pages)
   ======================================== */
.page-hero {
  padding: 140px 48px 80px; background: var(--white);
  border-bottom: 1px solid var(--gray-200); position: relative;
}
.page-hero::after {
  content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 30%;
  background: linear-gradient(180deg, var(--brand-dim), transparent);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}
.page-hero-inner { max-width: 800px; position: relative; z-index: 1; }
.page-hero h1 {
  font-family: var(--font-display); font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 600; line-height: 1.1; color: var(--text); margin-bottom: 16px;
}
.page-hero h1 em { font-style: italic; color: var(--brand); }
.page-hero-desc {
  font-size: 1.05rem; line-height: 1.75; color: var(--text-mid); max-width: 600px;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.72rem; color: var(--text-light); margin-bottom: 20px;
  display: flex; align-items: center; gap: 6px;
}
.breadcrumbs a { color: var(--text-light); text-decoration: none; transition: color 0.25s; }
.breadcrumbs a:hover { color: var(--brand); }
.bc-sep { color: var(--gray-200); }
.bc-current { color: var(--text-mid); }

/* ========================================
   16. SINGLE PROJECT
   ======================================== */
/* Project Bento Grid Hero (3 cells: main + 2 stacked) */
.project-bento {
  height: 75vh; min-height: 500px; max-height: 800px;
  padding-top: 72px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4px;
  background: #0e1318;
  position: relative;
}
.project-bento > * { min-height: 0; overflow: hidden; }
.project-bento .hero-cell--main { grid-column: 1; grid-row: 1; }
.project-bento .hero-cell--stack {
  grid-column: 2; grid-row: 1;
  display: grid; grid-template-rows: 1fr 1fr; gap: 4px;
}
.project-bento-overlay {
  position: absolute; bottom: 0; left: 0;
  width: 62%; z-index: 20;
  padding: 0 56px 48px;
  display: flex; align-items: flex-end;
  pointer-events: none;
}
.project-bento-overlay::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,20,35,0.88) 0%, rgba(0,20,35,0.6) 50%, transparent 100%);
  z-index: -1; pointer-events: none;
}
.project-bento-content { pointer-events: auto; }
.project-bento .breadcrumbs { margin-bottom: 16px; }
.project-bento .breadcrumbs, .project-bento .breadcrumbs a,
.project-bento .bc-current { color: rgba(255,255,255,0.6); }
.project-bento .breadcrumbs a:hover { color: var(--white); }
.project-bento .bc-sep { color: rgba(255,255,255,0.3); }
.project-hero-tag {
  display: inline-block; padding: 5px 14px; border-radius: 6px;
  background: rgba(0,143,213,0.3); backdrop-filter: blur(6px);
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--brand-light); margin-bottom: 12px;
}
.project-bento h1 {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600; color: var(--white); margin-bottom: 12px;
}
.project-hero-meta {
  display: flex; gap: 20px; flex-wrap: wrap;
  font-size: 0.78rem; color: rgba(255,255,255,0.7);
}
.project-hero-meta span { display: flex; align-items: center; gap: 6px; }
.project-hero-meta svg { opacity: 0.7; }

/* Bento overlay fade-in */
.project-bento-overlay { opacity: 0; animation: fadeUp 0.8s ease 0.9s both; }

/* Clip-path reveals for project bento */
.project-bento .hero-cell--main {
  clip-path: inset(0 100% 0 0);
  animation: heroClipReveal 1.1s cubic-bezier(0.77, 0, 0.175, 1) 0.15s forwards;
}
.project-bento .hero-cell--stack > .hero-cell:first-child {
  clip-path: inset(100% 0 0 0);
  animation: heroClipReveal 0.95s cubic-bezier(0.77, 0, 0.175, 1) 0.35s forwards;
}
.project-bento .hero-cell--stack > .hero-cell:last-child {
  clip-path: inset(100% 0 0 0);
  animation: heroClipReveal 0.95s cubic-bezier(0.77, 0, 0.175, 1) 0.55s forwards;
}

/* Ken Burns pan for project bento */
.project-bento .hero-cell--main img { animation: panRight 30s ease-in-out infinite alternate; }
.project-bento .hero-cell--stack > .hero-cell:first-child img { animation: panLeft 28s ease-in-out infinite alternate; animation-delay: -6s; }
.project-bento .hero-cell--stack > .hero-cell:last-child img { animation: panUp 26s ease-in-out infinite alternate; animation-delay: -10s; }

/* Stronger overlay on the main cell for text readability */
.project-bento .hero-cell--main::after {
  background: linear-gradient(160deg, rgba(0,40,70,0.5) 0%, rgba(0,20,40,0.3) 50%, transparent 100%);
}

/* Project Content */
.project-content { background: var(--white); }
.project-content-inner {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start;
}
.project-desc-text {
  font-size: 1.1rem; line-height: 1.85; color: var(--text-mid);
  font-family: var(--font-display); font-weight: 400;
}
.project-highlights { background: var(--off-white); border-radius: var(--radius); padding: 28px; }
.project-highlights h3 {
  font-family: var(--font-display); font-size: 1rem; font-weight: 600;
  color: var(--text); margin-bottom: 16px;
}
.highlights-list { list-style: none; }
.highlights-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.88rem; color: var(--text-mid); padding: 8px 0;
  border-bottom: 1px solid var(--gray-200);
}
.highlights-list li:last-child { border-bottom: none; }

/* Gallery */
.project-gallery { background: var(--off-white); }
.gallery-masonry {
  columns: 3; column-gap: 16px; max-width: 1200px; margin: 0 auto;
}
.gallery-item {
  break-inside: avoid; margin-bottom: 16px; border-radius: var(--radius);
  overflow: hidden; position: relative; cursor: pointer;
}
.gallery-item img {
  width: 100%; display: block; transition: transform 0.5s;
}
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,30,50,0.0); transition: background 0.3s;
}
.gallery-item-overlay svg { color: white; opacity: 0; transition: opacity 0.3s; }
.gallery-item:hover .gallery-item-overlay { background: rgba(0,30,50,0.3); }
.gallery-item:hover .gallery-item-overlay svg { opacity: 1; }

/* Project Navigation */
.project-nav { background: var(--white); border-top: 1px solid var(--gray-200); }
.project-nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
}
.proj-nav-link {
  text-decoration: none; padding: 12px 0;
  transition: color var(--transition);
}
.proj-nav-link:hover { color: var(--brand); }
.proj-nav-label { display: block; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-light); margin-bottom: 4px; }
.proj-nav-title { font-family: var(--font-display); font-size: 1rem; font-weight: 600; }
.proj-nav-next { text-align: right; }
.proj-nav-all {
  font-size: 0.78rem; font-weight: 600; color: var(--brand); text-decoration: none;
  padding: 8px 20px; border: 1.5px solid var(--brand); border-radius: var(--radius-sm);
  transition: all 0.25s;
}
.proj-nav-all:hover { background: var(--brand); color: var(--white); }

/* Related Projects */
.related-projects { background: var(--off-white); }

/* ========================================
   17. LIGHTBOX
   ======================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(10,18,24,0.95); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all 0.35s;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox-content { max-width: 90vw; max-height: 85vh; position: relative; }
.lightbox-img {
  max-width: 90vw; max-height: 85vh; object-fit: contain;
  border-radius: 4px; opacity: 0; transition: opacity 0.3s;
}
.lightbox-img.loaded { opacity: 1; }
.lightbox-close {
  position: absolute; top: 20px; right: 20px; z-index: 10;
  background: none; border: none; color: white; font-size: 2rem;
  cursor: pointer; opacity: 0.6; transition: opacity 0.25s;
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: none; color: white;
  font-size: 2rem; cursor: pointer; width: 48px; height: 48px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  opacity: 0.6; transition: all 0.25s; z-index: 10;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover { opacity: 1; background: rgba(255,255,255,0.2); }
.lightbox-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  font-size: 0.78rem; color: rgba(255,255,255,0.5); z-index: 10;
}

/* ========================================
   18. PROJECTS GALLERY PAGE
   ======================================== */
.projects-page { background: var(--off-white); }
.filter-tabs {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px;
  max-width: 1200px; margin-left: auto; margin-right: auto; margin-bottom: 40px;
}
.filter-tab {
  font-family: var(--font-sans); font-size: 0.78rem; font-weight: 600;
  padding: 8px 20px; border: 1.5px solid var(--gray-200);
  background: var(--white); border-radius: 100px; cursor: pointer;
  transition: all 0.25s; color: var(--text-mid);
}
.filter-tab:hover { border-color: var(--brand); color: var(--brand); }
.filter-tab.active { background: var(--brand); border-color: var(--brand); color: var(--white); }

.project-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: 1200px; margin: 0 auto;
}
.project-grid-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--gray-200); transition: all 0.4s;
}
.project-grid-card.hidden { display: none; }
.project-grid-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.project-grid-link { text-decoration: none; color: inherit; display: block; }
.project-grid-thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.project-grid-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.project-grid-card:hover .project-grid-thumb img { transform: scale(1.06); }
.project-grid-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,30,50,0); transition: background 0.35s;
}
.project-grid-card:hover .project-grid-overlay { background: rgba(0,30,50,0.3); }
.project-grid-view {
  font-size: 0.78rem; font-weight: 600; color: white;
  padding: 8px 20px; border: 1.5px solid white; border-radius: var(--radius-sm);
  opacity: 0; transform: translateY(8px); transition: all 0.35s;
}
.project-grid-card:hover .project-grid-view { opacity: 1; transform: translateY(0); }
.project-grid-info { padding: 20px; }
.project-grid-cat {
  font-size: 0.62rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--brand); margin-bottom: 6px; display: block;
}
.project-grid-info h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.project-grid-info p { font-size: 0.8rem; line-height: 1.55; color: var(--text-light); margin-bottom: 8px; }
.project-grid-arrow { font-size: 1.2rem; color: var(--brand); transition: transform 0.3s; display: inline-block; }
.project-grid-card:hover .project-grid-arrow { transform: translateX(4px); }

/* ========================================
   19. CONTACT PAGE
   ======================================== */
.contact-page { background: var(--off-white); }
.contact-page-grid {
  display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 48px;
  max-width: 1100px; margin: 0 auto; align-items: start;
}
.contact-form-wrap {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 40px;
}
.contact-form-wrap h2 {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 600;
  color: var(--text); margin-bottom: 28px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.78rem; font-weight: 600;
  color: var(--text); margin-bottom: 6px;
}
.form-group label .req { color: var(--brand); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm); font-family: var(--font-sans);
  font-size: 0.88rem; color: var(--text); background: var(--off-white);
  transition: border-color 0.25s, box-shadow 0.25s;
  -webkit-appearance: none; appearance: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-dim);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a8294' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.btn-submit { width: 100%; text-align: center; font-size: 0.95rem; padding: 16px; }
.form-status { margin-top: 16px; font-size: 0.85rem; text-align: center; }
.form-status.success { color: var(--brand-deep); }
.form-status.error { color: #c0392b; }

/* Info Sidebar */
.contact-info-sidebar { display: flex; flex-direction: column; gap: 16px; }
.info-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 24px;
}
.info-icon { margin-bottom: 12px; }
.info-card h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.info-card p { font-size: 0.85rem; line-height: 1.6; color: var(--text-mid); }
.info-card a { color: var(--brand); text-decoration: none; font-weight: 600; }
.info-card a:hover { color: var(--brand-deep); }
.info-sub { font-size: 0.72rem !important; color: var(--text-light) !important; margin-top: 4px; }
.info-card-highlight { background: var(--brand-dim); border-color: transparent; }

/* Map */
.map-section { background: var(--cream); }
.map-placeholder {
  height: 300px; display: flex; align-items: center; justify-content: center;
  background: var(--gray-100); position: relative;
}
.map-overlay {
  text-align: center; padding: 32px; background: var(--white);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.map-overlay p { font-size: 0.88rem; color: var(--text-mid); margin-bottom: 8px; }
.map-overlay .btn-brand { margin-top: 12px; }

/* ========================================
   20. TESTIMONIALS PAGE
   ======================================== */
.testimonials-page { background: var(--off-white); }
.testimonials-grid-full {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: 1200px; margin: 0 auto;
}
.testimonial-card-full {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 28px; transition: all var(--transition);
}
.testimonial-card-full:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tc-stars { display: flex; gap: 2px; margin-bottom: 14px; }
.testimonial-card-full blockquote {
  font-size: 0.9rem; line-height: 1.7; color: var(--text-mid); margin-bottom: 18px;
  font-style: normal;
}
.tc-footer { display: flex; align-items: center; gap: 12px; }
.tc-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand-dim); color: var(--brand-deep);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.82rem; flex-shrink: 0;
}
.tc-name { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.tc-project { font-size: 0.68rem; color: var(--brand); margin-top: 2px; }

/* Stats Bar */
.stats-bar { background: var(--brand); padding: 48px; }
.stats-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  max-width: 1000px; margin: 0 auto; text-align: center;
}
.stat-num {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 600;
  color: var(--white); line-height: 1;
}
.stat-label { font-size: 0.72rem; color: rgba(255,255,255,0.6); margin-top: 6px; font-weight: 500; }

/* ========================================
   21. ABOUT PAGE
   ======================================== */
.about-content { background: var(--off-white); }
.about-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start;
}
.about-text h2 {
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 600;
  color: var(--text); margin-bottom: 24px;
}
.about-text h2 em { font-style: italic; color: var(--brand); }
.about-text p { font-size: 0.95rem; line-height: 1.8; color: var(--text-mid); margin-bottom: 16px; }
.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.value-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 24px;
}
.value-icon { margin-bottom: 12px; }
.value-card h3 { font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.value-card p { font-size: 0.78rem; line-height: 1.6; color: var(--text-light); }

/* ========================================
   22. SERVICES PAGE
   ======================================== */
.services-page { background: var(--off-white); }
.service-detail {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px;
  max-width: 1100px; margin: 0 auto; align-items: center;
  padding-bottom: 80px; margin-bottom: 80px; border-bottom: 1px solid var(--gray-200);
}
.service-detail:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.service-detail-reverse { grid-template-columns: 0.8fr 1.2fr; }
.service-detail-reverse .service-detail-content { order: 2; }
.service-detail-reverse .service-detail-images { order: 1; }
.service-num {
  font-family: var(--font-display); font-size: 3rem; font-weight: 600;
  color: var(--gray-200); line-height: 1; margin-bottom: 8px; display: block;
}
.service-detail h2 {
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 600;
  color: var(--text); margin-bottom: 16px;
}
.service-detail h2 em { font-style: italic; color: var(--brand); }
.service-detail-content p { font-size: 0.95rem; line-height: 1.75; color: var(--text-mid); margin-bottom: 20px; }
.service-features {
  list-style: none; margin-bottom: 28px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.service-features li {
  font-size: 0.82rem; color: var(--text-mid); padding: 6px 0 6px 20px;
  position: relative;
}
.service-features li::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; background: var(--brand-dim); border-radius: 50%;
  border: 2px solid var(--brand);
}
.service-detail-images img {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md);
}

/* ========================================
   23. CTA BANNER
   ======================================== */
.cta-banner { background: var(--brand); padding: 80px 48px; text-align: center; position: relative; overflow: hidden; }
.cta-banner::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(201,217,42,0.08);
}
.cta-inner { max-width: 600px; margin: 0 auto; position: relative; z-index: 1; }
.cta-inner h2 {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600; color: var(--white); margin-bottom: 12px;
}
.cta-inner h2 em { font-style: italic; color: var(--accent); }
.cta-inner p { font-size: 0.95rem; color: rgba(255,255,255,0.7); margin-bottom: 28px; }
.cta-banner .btn-brand {
  background: var(--white); color: var(--brand-deep);
}
.cta-banner .btn-brand:hover {
  background: var(--cream); box-shadow: 0 8px 28px rgba(0,0,0,0.15);
}

/* ========================================
   24. RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr 1fr; }
  .hero-overlay { width: 60%; padding: 0 36px; }
  .hero h1 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
  .hero-desc { font-size: 0.82rem; }
  .port-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .proc-grid { grid-template-columns: repeat(2, 1fr); }
  .test-grid { grid-template-columns: 1fr; max-width: 500px; }
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid-full { grid-template-columns: repeat(2, 1fr); }
  .project-content-inner { grid-template-columns: 1fr; }
  .contact-page-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .why-us-grid { grid-template-columns: 1fr; gap: 36px; }
  .service-detail, .service-detail-reverse { grid-template-columns: 1fr; }
  .service-detail-reverse .service-detail-content { order: 1; }
  .service-detail-reverse .service-detail-images { order: 2; }
  .gallery-masonry { columns: 2; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .project-bento { grid-template-columns: 1.1fr 0.9fr; }
  .project-bento-overlay { width: 55%; padding: 0 36px 40px; }
}

@media (max-width: 768px) {
  nav.main-nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-phone { margin-left: auto; }
  .nav-links.open {
    display: flex !important; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(247,248,250,0.98); backdrop-filter: blur(16px);
    padding: 24px; gap: 16px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 8px 24px rgba(0,80,140,0.06); z-index: 999;
  }
  .nav-links.open a.active::after { display: none; }
  .nav-logo { height: 32px; }

  /* Hero mobile layout */
  .hero {
    height: auto; min-height: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 3px; padding-top: 0;
  }
  .hero > * { min-height: 0; }
  .hero-cell--main {
    grid-column: 1 / -1; grid-row: 1;
    position: relative; height: 70vh; min-height: 420px;
    clip-path: none; animation: none;
    margin-top: 72px;
  }
  .hero-cell--main img { animation: panRight 30s ease-in-out infinite alternate; }
  .hero-cell--main::after { background: rgba(0,20,35,0.45); }
  .hero-cell--stack { display: none; }
  .hero-cell--bl {
    grid-column: 1; grid-row: 2;
    clip-path: none; animation: none;
    height: 110px;
  }
  .hero-cell--br {
    grid-column: 2; grid-row: 2;
    clip-path: none; animation: none;
    height: 110px;
  }
  .hero-cell--bl img { animation: panLeft 28s ease-in-out infinite alternate; }
  .hero-cell--br img { animation: panDown 27s ease-in-out infinite alternate; }
  .hero-cell--bl::after, .hero-cell--br::after {
    background: linear-gradient(transparent 40%, rgba(0,0,0,0.2));
  }
  .hero-overlay {
    grid-column: 1 / -1; grid-row: 1;
    position: relative; top: auto; bottom: auto; left: auto;
    width: 100%; padding: 0 24px;
    margin-top: 72px;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    opacity: 1; animation: none;
    z-index: 20;
  }
  .hero-overlay::before { display: none; }
  .hero-content { max-width: 340px; }
  .hero-pill { font-size: 0.62rem; margin-bottom: 14px; }
  .hero h1 { font-size: 1.75rem; margin-bottom: 12px; }
  .hero-desc { font-size: 0.82rem; max-width: 100%; margin-bottom: 22px; line-height: 1.55; }
  .hero-btns { justify-content: center; }
  .btn-brand, .hero .btn-light { padding: 12px 24px; font-size: 0.82rem; }

  .section-pad { padding: 60px 20px; }
  .page-hero { padding: 110px 20px 50px; }
  .port-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
  .svc-grid { grid-template-columns: 1fr; }
  .proc-grid { grid-template-columns: 1fr; }
  .test-grid { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .project-grid { grid-template-columns: 1fr; max-width: 500px; margin-left: auto; margin-right: auto; }
  .testimonials-grid-full { grid-template-columns: 1fr; }
  .contact-details { flex-direction: column; gap: 16px; }
  .gallery-masonry { columns: 1; }
  /* Project bento mobile layout */
  .project-bento {
    height: auto; min-height: 0; max-height: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3px; padding-top: 0;
  }
  .project-bento > * { min-height: 0; }
  .project-bento .hero-cell--main {
    grid-column: 1; grid-row: 1;
    height: 55vh; min-height: 340px;
    clip-path: none;
    margin-top: 72px;
  }
  .project-bento .hero-cell--main::after { background: rgba(0,20,35,0.45); }
  .project-bento .hero-cell--stack {
    grid-column: 1; grid-row: 2;
    display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto;
    gap: 3px; height: 120px;
  }
  .project-bento .hero-cell--stack > .hero-cell {
    clip-path: none; animation: none;
  }
  .project-bento-overlay {
    grid-column: 1; grid-row: 1;
    position: relative; top: auto; bottom: auto; left: auto;
    width: 100%; padding: 0 24px 24px;
    margin-top: 72px;
    display: flex; align-items: flex-end;
    opacity: 1; animation: none;
    z-index: 20;
  }
  .project-bento-overlay::before { display: none; }
  .project-bento-content { max-width: 100%; }
  .project-bento h1 { font-size: 1.6rem; }
  .project-nav-inner { flex-direction: column; gap: 16px; text-align: center; }
  .proj-nav-next { text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 24px; }
  footer.site-footer { padding: 24px 20px; flex-direction: column; text-align: center; }
  .about-values { grid-template-columns: 1fr; }
  .service-features { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 20px; }
  .cta-banner { padding: 60px 20px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .filter-tabs { justify-content: center; }
  .page-hero::after { display: none; }
}

@media (max-width: 480px) {
  .showcase-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr; }
}

/* ========================================
   25. TRUST BAR (Homepage)
   ======================================== */
.trust-bar {
  background: var(--white); border-bottom: 1px solid var(--gray-200);
  padding: 20px 48px;
}
.trust-bar-inner {
  display: flex; justify-content: center; align-items: center;
  gap: 40px; flex-wrap: wrap; max-width: 1000px; margin: 0 auto;
}
.trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; color: var(--text-mid);
}
.trust-item strong {
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.88rem; color: var(--text);
}
.trust-stars { display: flex; gap: 1px; }

@media (max-width: 768px) {
  .trust-bar { padding: 16px 20px; }
  .trust-bar-inner { gap: 16px 28px; justify-content: center; }
  .trust-item { font-size: 0.72rem; }
}

/* ========================================
   26. NAV PHONE & MOBILE NAV CTA
   ======================================== */
.nav-phone {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 600; color: var(--text-mid);
  text-decoration: none; transition: color 0.25s;
}
.nav-phone:hover { color: var(--brand); }
.nav-mobile-cta { display: none; }

@media (max-width: 768px) {
  .nav-phone span { display: none; }
  .nav-phone { color: var(--brand); }
  .nav-mobile-cta { display: block !important; }
  .nav-mobile-cta a {
    display: block; padding: 12px 20px; text-align: center;
    background: var(--brand); color: var(--white) !important;
    border-radius: var(--radius-sm); font-weight: 600;
    font-size: 0.85rem;
  }
  .nav-mobile-cta:first-of-type a {
    background: transparent; color: var(--brand) !important;
    border: 1.5px solid var(--brand);
  }
}

/* ========================================
   27. FOOTER ENHANCED
   ======================================== */
.footer-top {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px; padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 16px;
}
.footer-contact-info {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.footer-phone {
  font-family: var(--font-display); font-size: 1.1rem;
  font-weight: 600; color: var(--white); text-decoration: none;
  transition: color 0.25s;
}
.footer-phone:hover { color: var(--accent); }
.footer-hours { font-size: 0.68rem; color: rgba(255,255,255,0.45); }
.footer-cta-wrap { display: flex; align-items: center; }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6);
  transition: all 0.25s; text-decoration: none;
}
.footer-socials a:hover { background: var(--brand); color: var(--white); transform: translateY(-2px); }
.footer-tagline { font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-top: 8px; line-height: 1.5; max-width: 280px; }
.footer-address { font-size: 0.78rem; color: rgba(255,255,255,0.6); line-height: 1.5; margin-bottom: 6px; }
.footer-service-area { text-align: center; padding: 12px 24px 0; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-service-area p { font-size: 0.7rem; color: rgba(255,255,255,0.35); margin: 0; }
.footer-bottom { text-align: center; }
.footer-bottom span { font-size: 0.72rem; color: rgba(255,255,255,0.4); }

@media (max-width: 768px) {
  .footer-top { flex-direction: column; text-align: center; }
  .footer-tagline { margin-left: auto; margin-right: auto; }
  .footer-right { align-items: center; }
  .footer-socials { justify-content: center; }
}

/* ========================================
   28. CONTACT FORM ENHANCEMENTS
   ======================================== */
.form-subhead {
  font-size: 0.88rem; line-height: 1.6; color: var(--text-mid);
  margin-bottom: 24px;
}
.form-privacy {
  font-size: 0.72rem; color: var(--text-light);
  text-align: center; margin-top: 10px;
}

/* ========================================
   29. STICKY MOBILE CTA BAR
   ======================================== */
.mobile-cta-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: var(--white); border-top: 1px solid var(--gray-200);
  box-shadow: 0 -4px 20px rgba(0,40,70,0.1);
  padding: 10px 16px;
  gap: 8px;
}
.mobile-cta-bar a {
  flex: 1; text-align: center; padding: 12px 8px;
  font-size: 0.82rem; font-weight: 600; border-radius: var(--radius-sm);
  text-decoration: none;
}
.mobile-cta-bar .mcta-call {
  background: var(--white); color: var(--brand); border: 1.5px solid var(--brand);
}
.mobile-cta-bar .mcta-form {
  background: var(--brand); color: var(--white);
}
@media (max-width: 768px) {
  .mobile-cta-bar { display: flex; }
  footer.site-footer { padding-bottom: 72px; }
}

/* ========================================
   30. HOMEPAGE TESTIMONIAL STARS
   ======================================== */
.test-card .tc-stars {
  display: flex; gap: 2px; margin-bottom: 12px;
}

/* ========================================
   31. CTA BUTTON GROUP & GALLERY CTA
   ======================================== */
.cta-btn-group {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.btn-ghost {
  background: transparent; border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5);
}
.gallery-cta {
  text-align: center; padding-top: 48px;
}
.gallery-cta p {
  font-size: 1.1rem; color: var(--text-mid);
  margin-bottom: 16px; font-family: var(--font-display);
}
.gallery-cta .cta-or {
  display: inline-block; margin: 0 12px;
  color: var(--text-light); font-size: 0.85rem;
}
.process .section-cta {
  text-align: center; margin-top: 36px;
}
.btn-brand-inverse {
  background: var(--white); color: var(--brand-deep);
}
.btn-brand-inverse:hover {
  background: var(--cream); transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}
.section-label-center { justify-content: center; }
.portfolio-cta-btn { margin-left: 12px; }
@media (max-width: 768px) {
  .portfolio-cta-btn { margin-left: 0; }
}

/* ========================================
   32. FOOTER EXPANDED CONTENT (Design)
   ======================================== */
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-tagline {
  font-size: 0.72rem; line-height: 1.5; color: rgba(255,255,255,0.45);
  max-width: 280px;
}
.footer-address {
  font-size: 0.72rem; line-height: 1.5; color: rgba(255,255,255,0.5);
  text-align: center;
}
.footer-service-area {
  padding-top: 12px; text-align: center;
}
.footer-service-area p {
  font-size: 0.68rem; line-height: 1.5; color: rgba(255,255,255,0.35);
}

/* ========================================
   33. MOBILE LAYOUT POLISH (Design)
   ======================================== */
@media (max-width: 768px) {
  /* Stack hero CTA buttons on mobile for touch-friendly targets */
  .hero-btns { flex-direction: column; align-items: center; gap: 10px; }
  .hero-btns .btn-brand, .hero-btns .btn-light { width: 100%; max-width: 260px; text-align: center; }

  /* Section CTA dual-button layout — prevent inline margins breaking mobile */
  .section-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; }
  .section-cta .btn-brand, .section-cta .btn-light { margin-left: 0 !important; }

  /* Mobile CTA bar safe-area for notch devices */
  .mobile-cta-bar { padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }

  /* Footer mobile stacking */
  .footer-brand { align-items: center; text-align: center; }
  .footer-tagline { max-width: 100%; text-align: center; }
  .footer-contact-info { text-align: center; }
  .footer-cta-wrap { width: 100%; text-align: center; }
  .footer-cta-wrap .btn-brand { width: 100%; max-width: 280px; text-align: center; }

  /* Gallery CTA mobile stacking */
  .gallery-cta .cta-btn-group { flex-direction: column; align-items: center; }
  .gallery-cta .cta-or { display: block; margin: 4px 0; }
}

/* ========================================
   34. NAV ITEMS SPACING (Design)
   ======================================== */
.nav-phone + .nav-cta { margin-left: 12px; }
@media (max-width: 768px) {
  .nav-phone + .nav-cta { margin-left: 0; }
}

/* ========================================
   35. VISUAL POLISH — LUXURY FEEL (Design)
   ======================================== */
/* Smoother image loading transitions */
.port-thumb img,
.svc-card-img img,
.showcase-item img,
.project-grid-thumb img,
.gallery-item img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

/* Refined card hover shadow for depth */
.port-card:hover,
.svc-card:hover,
.project-grid-card:hover,
.testimonial-card-full:hover {
  box-shadow: 0 20px 60px rgba(0,60,100,0.1);
}

/* Consistent CTA banner — add accent orb on the other side */
.cta-banner::after {
  content: ''; position: absolute; bottom: -30px; left: -30px;
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

/* Improve process step number visibility */
.proc-num {
  color: rgba(255,255,255,0.15);
  -webkit-text-stroke: 1px rgba(255,255,255,0.06);
}

/* Gallery masonry items — stagger reveal animation */
.gallery-item.reveal:nth-child(2) { transition-delay: 0.06s; }
.gallery-item.reveal:nth-child(3) { transition-delay: 0.12s; }
.gallery-item.reveal:nth-child(4) { transition-delay: 0.18s; }
.gallery-item.reveal:nth-child(5) { transition-delay: 0.24s; }
.gallery-item.reveal:nth-child(6) { transition-delay: 0.3s; }

/* Testimonial card — subtle left border accent */
.test-card { border-left: 3px solid var(--brand-dim); }
.testimonial-card-full { border-left: 3px solid var(--brand-dim); }

/* Value cards — hover lift */
.value-card { transition: all var(--transition); }
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* Info cards on contact page — hover */
.info-card { transition: all var(--transition); }
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }

/* Map section gradient */
.map-placeholder {
  background: linear-gradient(135deg, var(--cream) 0%, var(--gray-100) 100%);
}

/* ========================================
   36. TESTIMONIALS PAGE — VISUAL LAYOUT
   ======================================== */

/* Featured testimonial — image + quote side by side */
.testimonial-featured { background: var(--white); }
.testimonial-featured-grid {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center;
}
.testimonial-featured-img {
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3;
}
.testimonial-featured-img img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--radius);
}
.testimonial-featured-content .tc-stars { margin-bottom: 16px; }
.testimonial-featured-content .featured-quote {
  font-family: var(--font-display); font-size: 1.25rem;
  font-style: italic; font-weight: 400; line-height: 1.65;
  color: var(--text); margin-bottom: 24px;
}
.testimonial-featured-content .tc-footer { display: flex; align-items: center; gap: 12px; }
.testimonial-featured-content .tc-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
}
.testimonial-featured-content .tc-name { font-weight: 600; font-size: 0.95rem; }
.testimonial-featured-content .tc-project { font-size: 0.8rem; color: var(--text-light); }

/* Image strip between testimonial groups */
.testimonial-img-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin: 48px 0;
}
.tis-item {
  position: relative; border-radius: var(--radius-sm); overflow: hidden;
  aspect-ratio: 16/9; display: block; text-decoration: none;
}
.tis-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.tis-item:hover img { transform: scale(1.05); }
.tis-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 50%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16px; transition: opacity 0.3s;
}
.tis-cat {
  font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--accent); margin-bottom: 2px;
}
.tis-title {
  font-family: var(--font-display); font-size: 0.9rem;
  font-weight: 500; color: var(--white);
}

/* Tighter spacing between grid groups */
.testimonials-page .testimonials-grid-full { margin-bottom: 0; }

@media (max-width: 768px) {
  .testimonial-featured-grid { grid-template-columns: 1fr; gap: 24px; }
  .testimonial-featured-img { aspect-ratio: 16/9; }
  .testimonial-featured-content .featured-quote { font-size: 1.05rem; }
  .testimonial-img-strip { grid-template-columns: 1fr; gap: 8px; }
  .tis-item { aspect-ratio: 2/1; }
}

/* ========================================
   37. ABOUT PAGE — FOUNDER & VISUALS
   ======================================== */

/* Founder Section */
.about-founder { background: var(--white); }
.about-founder-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center;
}
.about-founder-img img {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  aspect-ratio: 3/4; object-fit: cover;
}
.about-founder-content h2 {
  font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 600; color: var(--text); margin-bottom: 4px;
}
.about-founder-role {
  font-size: 0.85rem; font-weight: 600; color: var(--brand);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 24px;
}
.about-founder-content p {
  font-size: 0.95rem; line-height: 1.8; color: var(--text-mid); margin-bottom: 16px;
}
.about-founder-stats {
  display: flex; gap: 32px; margin-top: 28px;
  padding-top: 24px; border-top: 1px solid var(--gray-200);
}
.afs-item { display: flex; flex-direction: column; }
.afs-num {
  font-family: var(--font-display); font-size: 1.8rem;
  font-weight: 600; color: var(--brand); line-height: 1;
}
.afs-label {
  font-size: 0.72rem; color: var(--text-light); margin-top: 4px; font-weight: 500;
}

/* Image Strips */
.about-img-strip { background: var(--off-white); padding: 0; }
.about-strip-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
}
.about-strip-item {
  display: block; overflow: hidden; aspect-ratio: 16/9;
}
.about-strip-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.about-strip-item:hover img { transform: scale(1.05); }

/* At Work Section */
.about-at-work { background: var(--off-white); }
.about-at-work-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
}
.about-at-work-content h2 {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600; color: var(--text); margin-bottom: 20px;
}
.about-at-work-content h2 em { font-style: italic; color: var(--brand); }
.about-at-work-content p {
  font-size: 0.95rem; line-height: 1.8; color: var(--text-mid); margin-bottom: 16px;
}
.about-at-work-content .btn-brand { margin-top: 12px; }
.about-at-work-img img {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  aspect-ratio: 3/4; object-fit: cover;
}

@media (max-width: 1024px) {
  .about-founder-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-founder-img img { aspect-ratio: 4/3; max-width: 500px; margin: 0 auto; }
  .about-at-work-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-at-work-img { order: -1; }
  .about-at-work-img img { aspect-ratio: 16/9; max-width: 600px; margin: 0 auto; }
}
@media (max-width: 768px) {
  .about-founder-stats { gap: 24px; flex-wrap: wrap; }
  .about-strip-grid { grid-template-columns: 1fr 1fr; }
  .about-strip-grid .about-strip-item:nth-child(3) { grid-column: 1 / -1; aspect-ratio: 21/9; }
}

/* ========================================
   38. HOMEPAGE SERVICES DETAIL LAYOUT
   ======================================== */
.services-home { background: var(--off-white); }
.services-home .service-detail {
  max-width: 1100px; margin: 0 auto; padding-bottom: 64px; margin-bottom: 64px;
}
.services-home .service-detail:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.services-home .service-detail h3 {
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 600;
  color: var(--text); margin-bottom: 16px;
}
.services-home .service-detail h3 em { font-style: italic; color: var(--brand); }
