/* Reset and base styles */
:root { --surface-horizontal-padding: 16px; --primary-color: #158C62; --primary-gradient: linear-gradient(90deg, var(--primary-color), #1cbf85); }
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  font-family: 'Mulish', sans-serif;
  background-color: #111;
  color: #f0f0f0;
  line-height: 1.6;
  scroll-behavior: smooth;
}
h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
  margin-bottom: 1rem;
}
a {
  color: #158C62;
  text-decoration: none;
}
ul {
  list-style: none;
}
:root {
  --content-max-width: 1000px;
  --content-padding: 24px; /* mobile margin */
  --header-height: 72px;
}
section {
  padding: 80px var(--content-padding);
  max-width: var(--content-max-width);
  margin: 0 auto;
  width: 100%;
}

/* Header */
.sticky-header {
  position: sticky;
  top: 0;
  background: #0d0d0d;
  padding: 0; /* horizontal spacing handled by .header-bar */
  z-index: 1000;
  border-bottom: 1px solid #222;
}

/* Header inner container aligns with page sections */
.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: var(--content-padding);
}

/* Floating header and reduced horizontal padding */
:root { --surface-horizontal-padding: 12px; }

/* Apply floating header for all screen sizes (consistent on mobile) */
.sticky-header {
  position: fixed;
  top: 16px;
  left: var(--content-padding);
  right: var(--content-padding);
  max-width: var(--content-max-width);
  margin: 0 auto;
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(6px);
  border-radius: 9999px; /* fully rounded */
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  padding: 0; /* inner spacing handled by .header-bar */
  z-index: 1000;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

/* When header is hidden (scrolling down) move it out of view */
.sticky-header.header-hidden {
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
}

.header-bar { padding: 8px var(--surface-horizontal-padding, 16px); }

/* Override surface horizontal padding to 16px for header inner spacing */
:root { --surface-horizontal-padding: 16px; }

:root { --primary-color: #158C62; --primary-gradient: linear-gradient(90deg, var(--primary-color), #1cbf85); }

/* Ensure page content clears the floating header */
body { padding-top: calc(var(--header-height) + 24px); }

@media (min-width: 600px) {
  :root { --content-padding: 40px; --header-height: 72px; --surface-horizontal-padding: 24px; }
  .sticky-header { top: 24px; }
  .header-bar { padding: 10px var(--surface-horizontal-padding); }
  body { padding-top: calc(var(--header-height) + 28px); }
}

@media (min-width: 1200px) {
  :root { --content-max-width: 1200px; --content-padding: 80px; --header-height: 84px; --surface-horizontal-padding: 32px; }
  .sticky-header { top: 32px; }
  .header-bar { padding: 12px var(--surface-horizontal-padding); }
  body { padding-top: calc(var(--header-height) + 32px); }
}
.sticky-header .logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #158C62;
}
.sticky-header nav ul {
  display: flex;
  gap: 20px;
  align-items: center; /* ensure nav items vertically center inside header */
}

/* Make anchor links vertically centered as well */
.sticky-header nav ul li a {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  padding: 6px 8px; /* small vertical padding to improve touch targets without changing layout */
}
nav a:hover {
  text-decoration: underline;
}
.resume-btn {
  background: var(--primary-gradient);
  padding: 8px 14px;
  border-radius: 20px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Keep header SVG icon visible with white strokes */
.resume-btn svg path { stroke: #fff; }

/* Hero */
.hero {
  text-align: center;
  padding: 120px 20px;
}
.hero h1 {
  font-size: 2.8rem;
}
.cta-btn {
  display: inline-block;
  margin-top: 20px;
  background: linear-gradient(90deg, #158C62, #1cbf85);
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: bold;
  transition: opacity 0.3s;
}
.cta-btn:hover {
  opacity: 0.9;
}

/* Services */
.services-list li {
  margin-bottom: 10px;
}

/* Projects */
.project-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.project-card {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.3s;
}
.project-card:hover {
  transform: translateY(-5px);
}
.project-card img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 10px;
}

/* Testimonials */
.testimonial-carousel {
  background: #1a1a1a;
  padding: 20px;
  border-left: 5px solid var(--primary-color);
  font-style: italic;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.testimonial-item {
  background: #111;
  border: 1px solid rgba(255,255,255,0.03);
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%; /* fill the grid row */
  min-height: 0; /* allow proper stretching inside grid */
}

.testimonial-item blockquote {
  margin: 0 0 8px 0;
  font-style: italic;
  color: #e6e6e6;
  flex: 1 1 auto; /* take remaining vertical space */
}

.testimonial-author {
  margin-top: 12px;
  font-weight: 600;
  color: var(--primary-color);
  font-style: normal;
  text-align: right;
}

@media (min-width: 768px) {
  .testimonial-carousel {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr; /* ensure equal height rows */
    align-items: stretch;
  }
}

/* Contact */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
form input, form textarea {
  padding: 12px;
  background: #222;
  border: 1px solid #333;
  border-radius: 6px;
  color: #f0f0f0;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

/* Keep inputs dark on focus and override mobile/autofill styles */
form input:focus, form textarea:focus,
form input:focus-visible, form textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(21,140,98,0.08);
  background: #1b1b1b;
  color: #f0f0f0;
  border-color: var(--primary-color);
}

/* Chrome / Safari autofill override */
input:-webkit-autofill,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px #222 inset !important;
  box-shadow: 0 0 0px 1000px #222 inset !important;
  -webkit-text-fill-color: #f0f0f0 !important;
}

/* Android/Firefox autofill heuristics */
input:-moz-autofill,
textarea:-moz-autofill {
  box-shadow: 0 0 0px 1000px #222 inset !important;
  -moz-text-fill-color: #f0f0f0 !important;
}
form button {
  background: linear-gradient(90deg, #158C62, #1cbf85);
  border: none;
  padding: 12px;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
}
.social-links {
  margin-top: 20px;
}

/* Resume */
#resume {
  text-align: center; /* center contents horizontally */
}

/* Contact form overlay styles */
.form-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
}

.form-overlay.hidden { display: none; }

.form-overlay-card {
  position: relative;
  background: rgba(13,13,13,0.96);
  padding: 36px 22px 22px 22px; /* extra top padding so close icon sits above heading */
  border-radius: 14px;
  max-width: 520px;
  width: calc(100% - 48px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.04);
  /* Use block layout, we will control children alignment inside */
  display: block;
  text-align: center; /* center primary message */
}

/* Row containing content and close wrapper (kept for structure) */
.overlay-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  justify-content: center; /* center the inner content horizontally */
}

/* Centered auto-layout for heading, urgent, and actions */
.overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center; /* center children horizontally */
  justify-content: center;
  flex: 1 1 auto;
  max-width: 420px;
  margin: 0 auto;
}

/* Close wrapper: position the close icon above heading, outside normal flow */
.overlay-close-wrapper {
  position: absolute;
  top: 8px; /* place above the heading */
  right: 12px;
}

/* Close icon absolute positioning */
.overlay-close-icon {
  background: transparent;
  border: none;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
}
.overlay-close-icon:hover { background: rgba(255,255,255,0.02); }

/* Center the "Urgent?" line as requested */
.overlay-urgent { text-align: center; }

.form-overlay-card h3 {
  margin: 14px 0 40px 0; /* increased top margin so gap between close icon and heading is ~24px */
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
}

/* Make overlay CTA full width within max-width */
.overlay-actions { display: block; margin: 0 auto; width: 100%; max-width: 420px; }
.overlay-actions .btn-primary { width: 100%; display: block; }

/* Align leading icon inside primary buttons */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; }
.btn-primary .icon-leading { margin-right: 12px; display: inline-flex; align-items: center; justify-content: center; }
.btn-primary span { display: inline-block; vertical-align: middle; }

.form-overlay-card h3 { margin: 4px 0 12px 0; color: #fff; font-size: 1.3rem; font-weight: 800; }
.form-overlay-card p { color: #d6d6d6; margin: 0 0 8px 0; }

/* The "Urgent?" line - visually separated and left aligned */
.overlay-urgent {
  font-size: 1rem;
  color: #f2f2f2;
  margin: 0 0 16px 0; /* 16px gap below as requested */
  font-weight: 600;
}

/* Actions: primary CTA should be full width on small screens and placed under the urgent copy */
.overlay-actions { display: flex; gap: 10px; justify-content: flex-start; margin-top: 0; }
.btn-primary { background: var(--primary-gradient); color: #fff; border: none; padding: 12px 18px; border-radius: 10px; cursor: pointer; font-weight: 700; display: inline-flex; align-items: center; }

/* Leading icon in primary buttons */
.btn-primary .icon-leading { margin-right: 12px; width: 20px; height: 20px; display: inline-block; }
.btn-primary .icon-leading path { color: inherit; }
.btn-ghost { background: transparent; color: #cfcfcf; border: 1px solid rgba(255,255,255,0.04); padding: 10px 12px; border-radius: 8px; cursor: pointer; }

@media (max-width: 460px) {
  .form-overlay-card { padding: 18px; }
  /* Only make overlay primary button full-width on small screens */
  .form-overlay .btn-primary { width: 100%; display: block; text-align: center; }
}

/* Resume download (outlined) - higher specificity to avoid accidental overrides */
#resume .resume-download,
.resume-download {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 12px 20px !important;
  background: transparent !important; /* outlined style */
  color: var(--primary-color) !important;
  border-radius: 12px !important;
  border: 2px solid var(--primary-color) !important;
  text-align: center !important;
  margin: 0 auto !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

/* ensure icon inherits button color */
#resume .resume-download svg path, .resume-download svg path { stroke: currentColor !important; }

/* ensure icon inherits button color */
.resume-download svg path { stroke: currentColor; }

/* Mobile: make resume button span full viewport width */
@media (max-width: 600px) {
  .resume-download {
    display: block;
    /* inset 24px from viewport edges on mobile */
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
    margin-left: 24px;
    margin-right: 24px;
    padding: 14px 18px;
    border-radius: 8px;
    box-sizing: border-box;
  }
}

/* Footer (surface, non-fixed so it sits at page bottom in normal flow) */
footer {
  position: relative; /* non-fixed */
  width: calc(100% - (var(--content-padding, 24px) * 2));
  max-width: var(--content-max-width);
  margin: 48px auto 32px; /* sits near page bottom with breathing room */
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(6px);
  border-radius: 9999px; /* fully rounded to match header */
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  padding: 12px var(--surface-horizontal-padding);
  font-size: 0.9rem;
  z-index: 10;
  text-align: center;
}

/* Make footer behave like header on narrow screens */
@media (max-width: 600px) {
  footer { width: calc(100% - (var(--content-padding, 24px) * 2)); }
}

/* Tools list styles */
.tools-used { margin-top: 40px; text-align: left; }
.tools-used h3 { font-family: 'Poppins', sans-serif; margin-bottom: 20px; font-size: 1.4rem; color: var(--primary-color); }
.tools-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  gap: 12px;
  padding: 0;
  margin: 0;
}
.tools-list li {
  background: #1c1c1c;
  padding: 10px 12px; /* reduce right padding since badge floats outside */
  border-radius: 6px;
  font-size: 0.95rem;
  border: 1px solid #2b2b2b;
  color: #eee;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative; /* allow badge to be positioned on edge */
  overflow: visible;
}

.tools-list .ai-badge {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.56rem; /* small but legible */
  font-weight: 700;
  color: #fff;
  padding: 0; /* fixed size */
  border-radius: 50%; /* circular badge */
  background: linear-gradient(90deg, #00ffb3, #00e5ff, #7f00ff); /* neon gradient */
  background-size: 200% 200%;
  animation: gradientShift 10s ease-in-out infinite; /* slower and smooth */
  position: absolute;
  right: -9px; /* place on outer edge */
  top: -9px; /* place on outer edge */
  transform: none;
  box-shadow: 0 6px 12px rgba(0,255,180,0.06), 0 0 8px rgba(0,230,255,0.04);
  z-index: 30;
  overflow: visible;
}

/* remove extra shining pseudo element; only gradient moves */
.tools-list .ai-badge::after { display: none; }

@media (max-width: 600px) {
  .tools-list li { padding-right: 12px; }
  .tools-list .ai-badge { right: -6px; top: -6px; width:16px; height:16px; font-size:0.48rem; }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Project card alignment overrides — ensure image and text align by left edge */
:root { --project-gutter: 1.75rem; }

.project-card {
  box-sizing: border-box;
  display: block; /* ensure anchor behaves as block container */
}

/* Case study pages styling */
.case-study {
  max-width: var(--content-max-width);
  margin: 36px auto;
  padding: 0 var(--content-padding);
  color: #e6e6e6;
}

.case-study .cs-hero,
.case-study .hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
}

.cs-hero-img img,
.hero-img img,
.case-study .cs-hero img {
  width: 100%;
  border-radius: 12px;
  display: block;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.cs-hero-text h1,
.hero-text h1 {
  font-size: 2rem;
  margin: 0 0 8px 0;
  color: #fff;
}

.case-study section {
  margin-bottom: 26px;
}

.case-study h2 { color: #fff; margin-bottom: 12px; }

.case-study .hifi-grid img,
.case-study .gallery img,
.case-study .wireframe-row img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 12px;
}

@media (min-width: 800px) {
  .case-study .cs-hero,
  .case-study .hero { grid-template-columns: 1fr 1fr; }
  .case-study .hifi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
}

.project-card img {
  display: block;
  width: calc(100% - (var(--project-gutter) * 2));
  margin-left: var(--project-gutter);
  margin-right: calc(var(--project-gutter));
  border-radius: 8px;
}

.project-content {
  padding-left: var(--project-gutter);
  padding-right: var(--project-gutter);
}

/* For cards that use flex layout, ensure children stretch */
.project-card[style*="display: flex"], .project-card.flex {
  align-items: stretch;
}

/* Small screens: keep gutters smaller */
@media (max-width: 480px) {
  :root { --project-gutter: 1rem; }
  .project-card img { width: calc(100% - (var(--project-gutter) * 2)); margin-left: var(--project-gutter); }
  .project-content { padding-left: var(--project-gutter); padding-right: var(--project-gutter); }
}

/* Ensure content clears fixed header only (footer flows naturally) */
body { padding-top: calc(var(--header-height) + 24px); }

@media (min-width: 600px) {
  :root { --footer-height: 64px; }
  footer { margin-top: 64px; }
}

@media (min-width: 1200px) {
  :root { --footer-height: 72px; }
  footer { margin-top: 72px; }
}

/* Back to Top (now placed inside footer) */
#backToTop {
  position: fixed; /* float in viewport */
  bottom: 30px;
  right: 24px; /* 24px inset as requested */
  background: linear-gradient(90deg, #158C62, #1cbf85);
  color: #ffffff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%; /* circular */
  cursor: pointer;
  display: inline-flex; /* visible state controlled via class */
  align-items: center;
  justify-content: center;
  line-height: 0;
  box-shadow: 0 8px 20px rgba(21,140,98,0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.28s ease;
  z-index: 1100;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

@media (max-width: 600px) {
  #backToTop {
    bottom: calc(var(--footer-height, 64px) + 16px);
    right: 24px; /* keep consistent inset on mobile */
  }
}

#backToTop.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* On mobile place the button above the footer (16px gap) and near content edge */
@media (max-width: 600px) {
  #backToTop {
    bottom: calc(var(--footer-height, 64px) + 16px);
    right: calc(var(--surface-horizontal-padding, 16px) + 8px);
  }
}

#backToTop:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(21,140,98,0.22); }

#backToTop::before {
  content: "";
  border: solid #fff;
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 6px;
  transform: rotate(-135deg);
  /* ensure the chevron is centered and uses crisp rendering */
  box-sizing: content-box;
  line-height: 0;
}

/* Footer bar layout to hold content and the backToTop button */
.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 8px var(--surface-horizontal-padding);
}

/* Footer text centered in its container */
.footer-bar {
  position: relative; /* allow absolute centering of the paragraph */
}

.footer-bar p {
  margin: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap; /* always single line */
  font-size: clamp(0.78rem, 1.2vw, 1rem);
  line-height: 1;
  pointer-events: none; /* avoid accidental interactions */
}

/* Ensure backToTop (fixed) doesn't overlap the centered text visually on narrow screens */
@media (max-width: 480px) {
  .footer-bar p { font-size: 0.72rem; }
}

/* Keep footer-bar children layout for accessibility */
.footer-bar > * { z-index: 2; }

/* Ensure the resume-like button (if present) aligns like header items */
.footer-bar .resume-download,
.footer-bar #backToTop {
  margin-left: auto;
}

/* Scroll animation classes */
.hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}
.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .sticky-header nav ul {
    flex-direction: column;
    gap: 10px;
  }
}
/* Hamburger Styles */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  padding: 8px; /* larger touch area */
  border-radius: 10px;
}
.hamburger span {
  height: 3px;
  width: 22px;
  background: var(--primary-color);
  border-radius: 4px;
  display: block;
}

/* Ensure header-bar is positioned for absolute dropdown */
.header-bar { position: relative; }

/* Responsive Navigation */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
    margin-left: auto;
    background: transparent;
  }

  /* Dropdown nav that matches header surface */
  nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(13,13,13,0.96);
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    z-index: 1050;
  }

  nav.active {
    display: block;
    animation: fadeIn 0.22s ease-in-out;
  }

  nav ul {
    flex-direction: column;
    padding: 6px 8px;
    gap: 12px;
  }

  nav ul li a { display: block; padding: 8px 10px; border-radius: 8px; }

  .sticky-header {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

/* Fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.hamburger span {
  transition: all 0.3s ease;
}
/* Hero Entrance Animation */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeSlideUp 1s ease forwards;
}
.fade-up.delay-1 { animation-delay: 0.2s; }
.fade-up.delay-2 { animation-delay: 0.4s; }

@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.pulse-animate {
  animation: fadeSlideUp 1s ease forwards, pulseEffect 2s ease-in-out infinite;
  animation-delay: 0s, 1.4s; /* fade immediately, pulse starts after 1.4s */
}

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

@keyframes pulseEffect {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(21, 140, 98, 0.7);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(21, 140, 98, 0.4);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(21, 140, 98, 0.7);
  }
}
.cta-btn:hover {
  box-shadow: 0 0 20px rgba(21, 140, 98, 0.6), 0 0 30px rgba(21, 140, 98, 0.3);
  transition: box-shadow 0.3s ease;
}
.tools-used {
  margin-top: 40px;
  text-align: left;
}
.tools-used h3 {
  font-family: 'Poppins', sans-serif;
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: #158C62;
}
.tools-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  gap: 12px;
  padding: 0;
  margin: 0;
}
.tools-list li {
  background: #1c1c1c;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 0.95rem;
  border: 1px solid #2b2b2b;
  color: #eee;
}
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 30px;
}

@media (min-width: 640px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  :root { --content-max-width: 1200px; }

  #services {
    max-width: var(--content-max-width);
    margin: 0 auto;
  }

  .service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Page-level gutters on tablet and desktop so all content aligns */
@media (min-width: 600px) {
  body {
    padding-left: var(--content-padding);
    padding-right: var(--content-padding);
  }

  /* Ensure footer text aligns with page content */
  footer p {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 24px 0; /* vertical spacing inside footer */
  }

  /* Guarantee any direct children that span full width align to the content width */
  header .header-bar,
  section,
  #services,
  #projects,
  #about,
  #testimonials,
  #contact,
  #resume {
    max-width: var(--content-max-width);
    margin: 0 auto;
    width: 100%;
  }
}

.service-card {
  background: #1c1c1c;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #2b2b2b;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}
.service-card:hover {
  transform: translateY(-5px);
}
.service-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  color: #158C62;
  margin-bottom: 10px;
}
.service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #ddd;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.project-card {
  background: #1a1a1a;
  border: 1px solid #2b2b2b;
  border-radius: 10px;
  padding: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 12px rgba(21, 140, 98, 0.2);
}
.project-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
  object-fit: cover;
}
.project-card h3 {
  font-size: 1.1rem;
  color: #158C62;
}
.project-tags {
  font-size: 0.85rem;
  color: #aaa;
  margin-bottom: 10px;
}
.project-link {
  color: #158C62;
  font-weight: bold;
}
.project-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
  object-fit: cover;
}
/* ===========================
   CASE STUDY GLOBAL STYLES
   =========================== */

.case-study {
  padding: 2rem 1rem;
  max-width: 1100px;
  margin: 0 auto;
  color: #fff;
}

.case-study h1, 
.case-study h2, 
.case-study h3 {
  font-family: 'Poppins', sans-serif;
  margin-bottom: 1rem;
}

.case-study p, 
.case-study li {
  font-family: 'Mulish', sans-serif;
  line-height: 1.6;
}

/* ===========================
   HERO SECTION
   =========================== */
.cs-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.cs-hero-text {
  flex: 1 1 400px;
}

.cs-hero-img {
  flex: 1 1 400px;
}

.cs-hero-img img,
.hero-gif {
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: 10px;
  display: block;
}

/* ===========================
   OVERVIEW & PROCESS
   =========================== */
.cs-overview, 
.cs-process, 
.cs-wireframes, 
.cs-hifi, 
.cs-accessibility, 
.cs-impact {
  margin-bottom: 3rem;
}

.cs-process ol {
  padding-left: 1.2rem;
}

.cs-process li {
  margin-bottom: 0.5rem;
}

.cs-process strong {
  color: #158C62; /* Primary green */
}

/* ===========================
   WIREFRAMES
   =========================== */
.wireframe-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.wireframe-row img {
  width: 100%;
  max-width: 350px;
  border-radius: 8px;
  background: #111;
}

/* ===========================
   HIGH-FIDELITY DESIGNS
   =========================== */
.hifi-grid {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hifi-grid img {
  width: 100%;
  max-width: 350px;
  border-radius: 8px;
  background: #111;
}

/* ===========================
   ACCESSIBILITY LIST
   =========================== */
.cs-accessibility ul {
  list-style: disc inside;
  padding-left: 1rem;
}

.cs-accessibility li {
  margin-bottom: 0.5rem;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
  .cs-hero {
    flex-direction: column;
    text-align: center;
  }
  .cs-hero-text {
    text-align: center;
  }
  .wireframe-row, .hifi-grid {
    justify-content: center;
  }
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.project-card {
  background: #111;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-info {
  padding: 1rem;
}

.project-card h3 {
  margin-bottom: 0.5rem;
  color: #158C62;
}

.project-card p {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #ccc;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background-color: #111;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card img {
  width: 100%;
  height: auto;
  display: block;
}

.project-card h3 {
  margin: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.project-card p {
  margin: 0 1rem 1rem;
  font-size: 0.95rem;
  color: #ccc;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 20; /* lift above siblings so rounded corners and shadow are visible */
}
.projects-grid {
  display: flex;
  gap: 2rem; /* space between cards */
  overflow-x: auto; /* enables horizontal scroll */
  overflow-y: visible; /* allow lifted cards to be visible above the row */
  scroll-snap-type: x mandatory; /* smooth snap scroll */
  padding-bottom: 1rem;
}

.project-card {
  flex: 0 0 300px; /* fixed width for each card */
  background-color: #111;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  scroll-snap-align: start;
  transition: transform 0.28s cubic-bezier(.2,.9,.3,1), box-shadow 0.28s cubic-bezier(.2,.9,.3,1);
  position: relative; /* establish stacking context */
  z-index: 0;
  will-change: transform;
}

.project-card img {
  width: 100%;
  height: auto;
  display: block;
}

.project-card h3 {
  margin: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.project-card p {
  margin: 0 1rem 1rem;
  font-size: 0.95rem;
  color: #ccc;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 20; /* lift above siblings so rounded corners and shadow are visible */
}

/* Optional: Hide scrollbar on WebKit browsers */
.projects-grid::-webkit-scrollbar {
  display: none;
}
.projects-grid {
  display: flex;
  gap: 2rem; /* space between cards */
  overflow-x: auto; /* enables horizontal scroll */
  overflow-y: visible; /* allow lifted cards to be visible above the row */
  scroll-snap-type: x mandatory; /* smooth snap scroll */
  padding-bottom: 1rem;
}

.project-card {
  flex: 0 0 300px; /* fixed width for each card */
  background-color: #111;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  scroll-snap-align: start;
  transition: transform 0.28s cubic-bezier(.2,.9,.3,1), box-shadow 0.28s cubic-bezier(.2,.9,.3,1);
  position: relative; /* establish stacking context */
  z-index: 0;
  will-change: transform;
}

.project-card img {
  width: 100%;
  height: auto;
  display: block;
}

.project-card h3 {
  margin: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.project-card p {
  margin: 0 1rem 1rem;
  font-size: 0.95rem;
  color: #ccc;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 20; /* lift above siblings so rounded corners and shadow are visible */
}

.project-card p {
  margin: 0 1rem 1rem;
  font-size: 0.95rem;
  color: #ccc;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 20; /* lift above siblings so rounded corners and shadow are visible */
}

/* Optional: Hide scrollbar on WebKit browsers */
.projects-grid::-webkit-scrollbar {
  display: none;
}
.project-card img {
  width: 100%;
  aspect-ratio: 2936 / 1832; /* keep your exact ratio */
  object-fit: cover; /* crop to fill without stretching */
  display: block;
  border-radius: 6px; /* optional rounded corners */
}
.project-card img {
  width: 100%;
  aspect-ratio: 2400 / 1500; /* keep correct proportion */
  object-fit: cover;
  display: block;
  border-radius: 6px;
}
.project-card {
  display: flex;
  flex-direction: column;
  background-color: #111;
  border-radius: 8px;
  overflow: hidden; /* keeps clean edges */
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card img {
  width: 100%;
  aspect-ratio: 2400 / 1500; /* keeps correct proportion */
  object-fit: cover;
  display: block;
}

.project-card h3,
.project-card p {
  padding: 0 1rem; /* breathing space */
}

.project-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1rem;
  color: #fff;
}

.project-card p {
  font-size: 0.95rem;
  color: #ccc;
  margin-bottom: 1rem;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 20; /* lift above siblings so rounded corners and shadow are visible */
}
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* two columns on desktop */
  gap: 2rem;
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr; /* stack vertically on mobile */
  }
}

.project-card {
  display: flex;
  flex-direction: column;
  background-color: #111;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card img {
  width: 100%;
  aspect-ratio: 2400 / 1500; /* your exact proportion */
  object-fit: cover;
  display: block;
}

/* Projects Grid Layout */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  background-color: #111;
  border-radius: 12px;
  border: 1px solid #2b2b2b;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 20; /* lift above siblings so rounded corners and shadow are visible */
}

.project-card img {
  width: calc(100% - 3.5rem);
  aspect-ratio: 2400 / 1500;
  object-fit: cover;
  display: block;
  margin: 1.75rem auto 0;
  border-radius: 8px;
}

.project-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0 0 0;
}

.project-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.5rem 0;
  text-align: left;
}

.project-card p {
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.5;
  margin: 0;
  text-align: left;
}

/* New layout: unify card inner padding so image and text share the same left edge */
:root { --project-gutter: 1.75rem; }

/* What I shipped: responsive layout and overflow control */
.case-slide.alt.what-shipped { display: flex; flex-direction: column; gap: 16px; }
.case-slide.alt.what-shipped > h3 { margin-bottom: 8px; }
.case-slide.alt.what-shipped > .shipped-text { order: 1; }
.case-slide.alt.what-shipped > .hifi-showcase { order: 2; }

/* Prevent horizontal overflow and make media responsive */
.case-slide.alt.what-shipped .hifi-showcase { display: grid; grid-template-columns: 1fr; gap: 12px; overflow: hidden; }
.case-slide.alt.what-shipped .hifi-showcase img,
.case-slide.alt.what-shipped .hifi-showcase video { width: 100%; max-width: 100%; height: auto; display: block; border-radius: 8px; }

@media (min-width: 900px) {
  .case-slide.alt.what-shipped { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; align-items: start; }
  .case-slide.alt.what-shipped > h3 { grid-column: 1 / -1; }
  .case-slide.alt.what-shipped > .shipped-text { grid-column: 1; }
  .case-slide.alt.what-shipped > .hifi-showcase { grid-column: 2; }

  /* Visual grid for shipped media */
  .case-slide.alt.what-shipped .hifi-showcase { grid-template-columns: repeat(3, 1fr); }
  .case-slide.alt.what-shipped .hifi-showcase .large.showcase { grid-column: span 2; }
}

/* Uniform media styling and process layout */
.case-slide.alt.what-shipped .hifi-showcase > * { min-width: 0; border-radius: 8px; overflow: hidden; }
.case-slide.alt.what-shipped .hifi-showcase img,
.case-slide.alt.what-shipped .hifi-showcase video { box-shadow: none !important; }

@media (min-width: 600px) {
  .case-slide.alt.what-shipped .hifi-showcase img,
  .case-slide.alt.what-shipped .hifi-showcase video { aspect-ratio: 16 / 9; object-fit: cover; }
}

/* My process: 2-column on larger screens */
.process-split { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.process-step-number { font-weight: 700; color: var(--primary-color); font-family: 'Poppins', sans-serif; }
@media (min-width: 900px) {
  .process-split { grid-template-columns: 80px 1fr; gap: 20px; }
  .process-step-number { text-align: right; padding-top: 6px; }
}
.process-figure img { width: 100%; height: auto; display: block; border-radius: 8px; box-shadow: none; }
.projects-grid .project-card {
  padding: var(--project-gutter);
  box-sizing: border-box;
}

.projects-grid .project-card img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0; /* remove centering */
  border-radius: 8px;
}

.projects-grid .project-content {
  padding-left: 0;
  padding-right: 0;
}

@media (min-width: 768px) {
  :root { --project-gutter: 2rem; }
  .projects-grid .project-card { padding: var(--project-gutter); }
}

@media (max-width: 480px) {
  :root { --project-gutter: 1rem; }
  .projects-grid .project-card { padding: var(--project-gutter); }
}

/* ===========================
   PRESENTATION-STYLE CASE STUDY ENHANCEMENTS
   =========================== */

/* Slide-like full-width section container for presentation flow */
.case-slide {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  padding: 6rem var(--content-padding);
  margin: 0 auto 2rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.0));
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.02);
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
}

/* Larger, dramatic headings for slide titles */
.case-slide .slide-title {
  font-size: clamp(1.6rem, 3.6vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 0.5rem;
}
.case-slide .slide-subtitle {
  color: #cfcfcf;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
}

/* Split layout for process steps with step number */
.process-split {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  align-items: start;
}
.process-step-number {
  background: rgba(21,140,98,0.12);
  color: var(--primary-color);
  font-weight: 700;
  border-radius: 12px;
  padding: 14px;
  min-width: 88px;
  text-align: center;
  font-size: 1.1rem;
}
.process-step-content h3 { margin: 0 0 8px 0; }

/* Visual showcase: full-bleed image inside presentation card */
.showcase {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 12px 34px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.03);
}
.showcase img { width: 100%; height: auto; display: block; }

/* Alternating background rows to guide narrative */
.case-slide.alt { background: rgba(21,140,98,0.02); }
.case-slide.alt .slide-title { color: #eafaf0; }

/* Tiny nav for quick jumping between major sections (presentation feel) */
.slide-nav {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 1rem 0 2rem;
}
.slide-nav button {
  width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,0.12); cursor: pointer;
}
.slide-nav button.active { background: var(--primary-color); box-shadow: 0 6px 18px rgba(21,140,98,0.14); }

/* Callout box for impact / metrics */
.case-callout {
  background: linear-gradient(90deg, rgba(21,140,98,0.06), rgba(0,0,0,0.02));
  padding: 1.25rem;
  border-radius: 10px;
  border: 1px solid rgba(21,140,98,0.06);
}
.case-callout + .case-callout { margin-top: 14px; }
.case-callout h3 { color: var(--primary-color); margin: 0 0 0.5rem 0; }

/* Quick Facts standard meta styling */
.case-callout .cs-meta-line {
  color: #fff; /* values are white */
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}
.case-callout .cs-role,
.case-callout .cs-duration {
  color: #fff; /* values are white */
  font-weight: 600;
  margin: 0 0 0.25rem 0;
}
.case-callout .cs-role strong,
.case-callout .cs-duration strong,
.case-callout .cs-tools strong {
  color: var(--primary-color); /* labels are primary green */
  font-weight: 700;
}
.case-callout .cs-tools {
  color: #fff; /* tools list values white */
  font-weight: 600;
  margin: 0;
}
.case-callout .cs-tools strong { color: var(--primary-color); font-weight:700; }

/* Presentation CTA */
.case-cta {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  background: var(--primary-gradient);
  color: white;
  padding: 12px 18px;
  border-radius: 9999px;
  font-weight: 700;
}

/* Sub-grid for HIFI visual storytelling */
.hifi-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.hifi-showcase .large { grid-column: 1 / -1; }

@media (min-width: 900px) {
  .case-slide { grid-template-columns: 1fr 420px; }
  .process-split { grid-template-columns: 80px 1fr; }
  .hifi-showcase { grid-template-columns: 2fr 1fr; }
  .hifi-showcase .large { grid-column: 1 / 2; }
}

/* On tablet/desktop, if showcase contains two images, stack them vertically */
@media (min-width: 800px) {
  .case-slide .showcase {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
  }
  .case-slide .showcase img { width: 100%; height: auto; display: block; }
}

/* Mobile: show only one hero image and place it first on the page */
@media (max-width: 799px) {
  .case-slide { display: flex; flex-direction: column; }
  .case-slide .showcase { order: -1; }
  /* Hide duplicate images on mobile (keep first image only). We target direct children (e.g., picture) so wrapped img elements are also hidden */
  .case-slide .showcase > *:nth-child(n+2) { display: none; }
  .case-slide .showcase img { width: 100%; height: auto; display: block; }
}

/* Accessibility: ensure focus states for slide-nav */
.slide-nav button:focus { outline: 3px solid rgba(21,140,98,0.18); }

/* Keep original breakpoints and behavior for smaller screens */
@media (max-width: 768px) {
  .case-slide { padding: 2.5rem 1rem; grid-template-columns: 1fr; }
  .process-split { grid-template-columns: 1fr; }
  .process-step-number { display: inline-block; margin-bottom: 12px; }
  .hifi-showcase { grid-template-columns: 1fr; }

  /* On mobile, left-align the Project Overview slide title for better reading */
  #cs-overview .slide-title { text-align: left; }
}

.spacer{display:block;width:100%;height:24px}
.spacer-sm{height:18px}

/* End of presentation-style enhancements */

/* Visual emphasis for case studies */
.case-study .slide-title { font-size: 2.25rem; line-height: 1.05; }
@media (min-width: 900px) {
  .case-study .slide-title { font-size: 3.25rem; }
  .case-callout { box-shadow: 0 10px 30px rgba(0,0,0,0.45); }
}
.case-cta { background: var(--primary-gradient); color: #fff; padding: 12px 20px; border-radius: 32px; display:inline-block; margin-top:12px; }
.showcase img, .showcase picture img { border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.5); }

/* What I shipped: strict overrides to remove elevation and unify media sizing */
.what-shipped .showcase { box-shadow: none !important; border: none !important; border-radius: 8px !important; overflow: hidden; }
.what-shipped .showcase img,
.what-shipped .showcase picture img { box-shadow: none !important; border-radius: 8px !important; }

/* Ensure one-column media on mobile and equal sizing */
.what-shipped .hifi-showcase { grid-template-columns: 1fr !important; gap: 12px; }
.what-shipped .hifi-showcase > * { min-width: 0; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 9; }
.what-shipped .hifi-showcase picture,
.what-shipped .hifi-showcase img,
.what-shipped .hifi-showcase video { width: 100%; height: 100%; max-width: 100%; object-fit: cover; border-radius: 8px; box-shadow: none !important; }

@media (min-width: 900px) {
  /* Two-column section: text left, media right */
  .what-shipped { display: grid !important; grid-template-columns: 1fr 1.2fr !important; gap: 20px; align-items: start; }
  .what-shipped > h3 { grid-column: 1 / -1; }
  .what-shipped > .shipped-text { grid-column: 1; }
  .what-shipped > .hifi-showcase { grid-column: 2; }
  /* Inside media grid, keep consistent tiles */
  .what-shipped .hifi-showcase { grid-template-columns: repeat(3, 1fr) !important; }
  .what-shipped .hifi-showcase .large { grid-column: span 2; }
}

/* Hide presentation nav entirely since it's unused */
.slide-nav { display: none !important; }

#oou-title {
text-align: left;
}

.slide-subtitle {
text-align: left;
}

#theo-title {
text-align: left;
}

#room-title {
text-align: left;
}

.case-callout {
align-items: left;
}

#room-what {
text-align: left;
margin-left: 0;
}

.case-callout {
  text-align: left;       /* aligns text to the left */
  margin: 0;              /* remove any auto-centering margin */
}

.case-callout h3,
.case-callout p {
  text-align: left;       /* make sure headers & paragraphs are left aligned */
 /* margin: 0 0 8px 0;       optional: spacing between lines */
}

.prototype-row {
  display: flex;          /* allow button alignment */
  justify-content: flex-start;  /* align button to the left */
}

.case-cta {
  margin-left: 0;         /* in case it had auto margin */
}

.what-shipped h3 {
  text-align: left;    /* aligns text left */
  margin-left: 0;      /* ensures no extra centering margin */
}

section.case-slide.alt.what-shipped h3#room-what {
  text-align: left !important;
  margin-left: 0;
}