/* =============================================
   TECHPRENEURS SOLUTION: STYLESHEET

   Reference:   meta.com: full-bleed media, big rounded image panels, grey tiles, pill buttons
   Temperature: cool-neutral. Paper is a faint blue-grey; ink is the logo's deep blue
   Voice:       confident, short, specific
   Type:        one family (Figtree), Meta-style: bold display, plain sentence-case labels
   ============================================= */

/* ---- Tokens ---- */
:root {
  /* Brand: the logo's deep blue, with its green used only as a signal */
  --hue: 252;
  --brand-50:  oklch(0.970 0.014 var(--hue));
  --brand-100: oklch(0.935 0.032 var(--hue));
  --brand-200: oklch(0.880 0.060 var(--hue));
  --brand-500: oklch(0.560 0.150 var(--hue));
  --brand-600: oklch(0.480 0.150 var(--hue));
  --brand-700: oklch(0.420 0.135 var(--hue));
  --brand-900: oklch(0.270 0.085 var(--hue));
  --brand-950: oklch(0.210 0.060 var(--hue));
  --signal:    oklch(0.620 0.160 148);

  /* Neutrals, tinted toward the brand hue */
  --n-hue: 250;
  --n-0:   oklch(0.988 0.003 var(--n-hue));
  --n-50:  oklch(0.972 0.005 var(--n-hue));
  --n-100: oklch(0.945 0.007 var(--n-hue));
  --n-200: oklch(0.900 0.009 var(--n-hue));
  --n-300: oklch(0.830 0.011 var(--n-hue));
  --n-500: oklch(0.560 0.014 var(--n-hue));
  --n-700: oklch(0.380 0.016 var(--n-hue));
  --n-900: oklch(0.220 0.020 var(--n-hue));

  /* Roles */
  --surface:        var(--n-0);
  --surface-raised: oklch(0.998 0.002 var(--n-hue));
  --surface-sunken: var(--n-50);
  --border:         var(--n-200);
  --border-strong:  var(--n-300);
  --text:           var(--n-700);
  --text-muted:     var(--n-500);
  --text-strong:    var(--n-900);
  --accent:         var(--brand-600);
  --accent-hover:   var(--brand-700);
  --accent-subtle:  var(--brand-50);
  --ring:           var(--brand-500);
  --grid-line:      oklch(0.560 0.150 var(--hue) / 0.07);
  --on-accent:      var(--n-0);
  --accent-line:    var(--brand-200);
  --focus-halo:     var(--brand-100);
  --selection-bg:   var(--brand-200);
  --selection-text: var(--brand-950);
  --nav-bg:         oklch(0.988 0.003 var(--n-hue) / 0.88);
  --hover-bg:       var(--n-100);
  --placeholder:    var(--n-100);
  --cta-bg:         var(--brand-950);
  --tile-bg:        var(--n-100);
  --tile-hover:     var(--n-200);
  --feature-bg:     oklch(0 0 0);   /* Ventiqa's own black-and-gold */
  --danger:         oklch(0.550 0.190 25);
  color-scheme: light;

  /* Type */
  --font-sans: 'Figtree', 'Segoe UI', system-ui, sans-serif;   /* closest free match to Meta's Optimistic */
  --step--1: 0.8125rem;
  --step-0:  1rem;
  --step-1:  1.125rem;
  --step-2:  1.375rem;
  --step-3:  clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  --step-4:  clamp(2rem, 1.5rem + 2vw, 2.75rem);
  --step-5:  clamp(2.5rem, 1.6rem + 3.6vw, 5rem);

  /* Space, radius, shadow */
  --space-section: clamp(4rem, 3rem + 4vw, 7rem);
  /* Layout fills the screen up to very wide monitors; only text measure is capped */
  --gutter: clamp(1.25rem, 4vw, 5rem);
  --page-max: 1680px;
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 12px;
  --radius-tile: 20px;   /* category tiles, cards */
  --radius-media: 24px;  /* large image panels */
  --radius-pill: 999px;  /* buttons, chips */
  --shadow-raised:
    0 1px 1px oklch(0.30 0.04 var(--hue) / 0.06),
    0 6px 20px -6px oklch(0.30 0.04 var(--hue) / 0.14);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---- Dark theme ----
   Not an inversion: surfaces get lighter as they rise, borders become faint highlights,
   and the blue is lifted and desaturated so it doesn't vibrate on the dark page. */
:root[data-theme="dark"] {
  --surface:        oklch(0.170 0.012 var(--n-hue));
  --surface-raised: oklch(0.210 0.014 var(--n-hue));
  --surface-sunken: oklch(0.150 0.010 var(--n-hue));
  --border:         oklch(0.290 0.014 var(--n-hue));
  --border-strong:  oklch(0.380 0.016 var(--n-hue));
  --text:           oklch(0.840 0.010 var(--n-hue));
  --text-muted:     oklch(0.660 0.012 var(--n-hue));
  --text-strong:    oklch(0.960 0.006 var(--n-hue));
  --accent:         oklch(0.740 0.120 var(--hue));
  --accent-hover:   oklch(0.800 0.110 var(--hue));
  --accent-subtle:  oklch(0.240 0.045 var(--hue));
  --ring:           oklch(0.740 0.120 var(--hue));
  --signal:         oklch(0.740 0.150 148);
  --grid-line:      oklch(0.740 0.120 var(--hue) / 0.06);
  --on-accent:      oklch(0.170 0.030 var(--hue));
  --accent-line:    oklch(0.420 0.080 var(--hue));
  --focus-halo:     oklch(0.350 0.080 var(--hue));
  --selection-bg:   oklch(0.420 0.100 var(--hue));
  --selection-text: oklch(0.980 0.005 var(--n-hue));
  --nav-bg:         oklch(0.170 0.012 var(--n-hue) / 0.85);
  --hover-bg:       oklch(0.250 0.014 var(--n-hue));
  --placeholder:    oklch(0.240 0.014 var(--n-hue));
  --cta-bg:         oklch(0.230 0.060 var(--hue));
  --tile-bg:        oklch(0.220 0.014 var(--n-hue));
  --tile-hover:     oklch(0.260 0.016 var(--n-hue));
  --feature-bg:     oklch(0 0 0);   /* Ventiqa's own black-and-gold */
  --danger:         oklch(0.680 0.170 25);
  --shadow-raised:
    0 1px 0 oklch(1 0 0 / 0.04) inset,
    0 8px 24px -8px oklch(0.080 0.020 var(--hue) / 0.6);
  color-scheme: dark;
}

/* ---- Theme switch: the new theme spreads out from the toggle (see main.js) ---- */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  color: var(--text-strong);
  font-weight: 600;
  text-wrap: balance;
}

p, li { text-wrap: pretty; }

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

ul, ol { list-style: none; }

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

::selection { background: var(--selection-bg); color: var(--selection-text); }

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--brand-950);
  color: var(--n-0);
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--space-section); }

.section-tight { padding-top: 0; }

.section-alt { background: var(--surface-sunken); }

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.kicker {
  font-size: var(--step-0);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: var(--step-4);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.section-title.center { text-align: center; margin: 0 auto 2.5rem; max-width: 24ch; }
.center-btn { display: flex; justify-content: center; margin-top: 2.5rem; }

.text-link {
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  border-bottom: 1px solid var(--accent-line);
  transition: border-color 150ms var(--ease-out), color 150ms var(--ease-out);
}
.text-link:hover { color: var(--accent-hover); border-color: currentColor; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font: 600 0.9375rem/1.2 var(--font-sans);
  cursor: pointer;
  transition: background-color 150ms var(--ease-out), border-color 150ms var(--ease-out), color 150ms var(--ease-out), transform 100ms var(--ease-out);
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }

.btn-outline { background: var(--surface-raised); color: var(--text-strong); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-white { background: var(--n-0); color: var(--brand-900); }
.btn-white:hover { background: var(--brand-100); }

.btn-outline-white { color: var(--n-0); border-color: oklch(1 0 0 / 0.35); }
.btn-outline-white:hover { border-color: var(--n-0); background: oklch(1 0 0 / 0.08); }

.btn-glass { background: oklch(1 0 0 / 0.18); color: oklch(0.99 0 0); backdrop-filter: blur(12px); }
.btn-glass:hover { background: oklch(1 0 0 / 0.28); }

/* ---- Navbar ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 150ms var(--ease-out);
}
.navbar.scrolled { border-bottom-color: var(--border); }

.nav-container {
  max-width: var(--page-max);
  margin-inline: auto;
  padding: 0.75rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-container > nav { margin-left: auto; }

.nav-logo { display: inline-flex; align-items: center; gap: 0.625rem; }
.logo-img-nav, .logo-img-footer { width: 36px; height: 36px; }
.logo-text { font-weight: 600; color: var(--text-strong); letter-spacing: -0.01em; }
.logo-accent { color: var(--text-muted); font-weight: 400; }

.nav-links { display: flex; align-items: center; gap: 0.25rem; }

.nav-link {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--text);
  transition: color 150ms var(--ease-out), background-color 150ms var(--ease-out);
}
.nav-link:hover { color: var(--text-strong); background: var(--hover-bg); }
.nav-link.active { color: var(--accent); font-weight: 600; }

.nav-cta { margin-left: 0.5rem; border-radius: var(--radius-pill); padding-inline: 1.1rem; background: var(--accent); color: var(--on-accent); font-weight: 600; }
.nav-cta:hover, .nav-cta.active { background: var(--accent-hover); color: var(--on-accent); }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-left: 0.25rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-strong);
  cursor: pointer;
  transition: border-color 150ms var(--ease-out), background-color 150ms var(--ease-out);
}
.theme-toggle:hover { border-color: var(--border-strong); background: var(--hover-bg); }
.theme-toggle .icon { width: 18px; height: 18px; }
.theme-toggle .icon-sun,
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px 8px;
  background: none;
  border: 0;
  cursor: pointer;
}
.hamburger span { width: 22px; height: 2px; background: var(--text-strong); border-radius: 1px; }

/* ---- Home: full-bleed hero ----
   A bright workspace photo. Its left side is pale wall, so the headline is set in dark ink
   over a soft white wash. Colours are fixed (not theme roles): the photo is light in both themes. */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(560px, calc(100vh - 64px), 900px);
  color: oklch(0.20 0.02 var(--n-hue));
  overflow: hidden;
}
/* Background photos crossfade one into the next (see initHeroSlides in main.js) */
.hero-slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-slides picture { position: absolute; inset: 0; opacity: 0; transition: opacity 1500ms ease-in-out; }
.hero-slides picture.is-active { opacity: 1; }
/* Slow zoom while a photo is showing. The zoom resets only after the photo has faded out, so it never jumps. */
.hero-slides .hero-media { transform: scale(1); transition: transform 0s 1600ms; will-change: transform; }
.hero-slides picture.is-zooming .hero-media { transform: scale(1.1); transition: transform 9s linear; }
.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}
.hero-media.top { object-position: 70% 15%; } /* photos whose subject sits near the top edge */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to right,
    oklch(0.99 0.003 var(--n-hue) / 0.94) 0%,
    oklch(0.99 0.003 var(--n-hue) / 0.80) 32%,
    oklch(0.99 0.003 var(--n-hue) / 0) 62%);
}
.hero-content { padding-block: 4rem; }
.hero-title {
  color: inherit;
  font-size: clamp(2.75rem, 1rem + 4.2vw, 5.5rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 11ch;
}
.hero-foot {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 1.5rem;
  margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}
.hero-subtitle { font-size: var(--step-1); max-width: 36ch; color: oklch(0.36 0.02 var(--n-hue)); }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero .btn-primary { background: var(--brand-600); color: var(--n-0); }
.hero .btn-primary:hover { background: var(--brand-700); }
.hero .btn-outline { background: oklch(1 0 0 / 0.85); color: oklch(0.20 0.02 var(--n-hue)); border-color: oklch(0.80 0.01 var(--n-hue)); }
.hero .btn-outline:hover { border-color: var(--brand-600); color: var(--brand-600); }

/* ---- Home: category tiles ---- */
.category-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 1rem 1.5rem;
  border-radius: var(--radius-tile);
  background: var(--tile-bg);
  color: var(--text-strong);
  font-weight: 600;
  text-align: center;
  transition: background-color 150ms var(--ease-out);
}
a.category-tile:hover { background: var(--tile-hover); }
.category-tile .icon { width: 2rem; height: 2rem; stroke-width: 1.5; color: var(--accent); }

/* ---- Home: feature banner and media tiles ---- */
.feature-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  margin-top: 1.5rem;
  border-radius: var(--radius-media);
  background: var(--feature-bg);
  color: oklch(0.88 0.01 var(--n-hue));
  overflow: hidden;
}
.feature-text { padding: clamp(2rem, 1rem + 4vw, 5rem); }
.feature-text h2 {
  color: oklch(0.99 0 0);
  font-size: var(--step-5);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.feature-text > p:not(.kicker) { font-size: var(--step-1); max-width: 40ch; margin-bottom: 2rem; }
.feature-banner .kicker { color: oklch(0.92 0.01 var(--n-hue)); }
.feature-banner img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  object-position: center 30%;
}

/* Posters shown whole (4:5), caption underneath: the artwork already carries its own type */
.poster-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.poster-frame {
  position: relative;
  display: block;
  border-radius: var(--radius-media);
  overflow: hidden;
  background: var(--placeholder);
}
/* hairline so light posters don't dissolve into the page */
.poster-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--border);
  pointer-events: none;
}
.poster-frame picture { display: block; }
.poster-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 500ms var(--ease-out);
}
.poster-frame:hover .poster-img { transform: scale(1.02); }
.poster-caption { padding: 1.5rem 0.25rem 0; }
.poster-caption h2 { font-size: var(--step-3); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 1.25rem; }

/* ---- Portfolio cards ---- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.5rem;
}

.port-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-tile);
  overflow: hidden;
  transition: border-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}
.port-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-raised); }

.port-img {
  background: var(--placeholder);
  border-bottom: 1px solid var(--border);
}
.port-card-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.port-img-inner {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  font-size: var(--step--1);
  color: var(--text-muted);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 20px 20px;
}

.port-info { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.25rem; flex: 1; }
.port-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.port-info h3 { font-size: var(--step-1); line-height: 1.3; }
.port-info p:not(.port-meta) { font-size: 0.9375rem; flex: 1; }
.port-btn { margin-top: 0.5rem; font-weight: 600; font-size: 0.9375rem; color: var(--accent); }
.port-btn:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }

/* Graphics: tall designs four to a row, wide designs two to a row beneath them.
   Each design sits whole on a grey tile (like a product shot), never cropped. */
.portfolio-grid.gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery .shape-landscape { grid-column: span 2; }
.gallery .port-img {
  min-height: 0; /* keep the tile's aspect ratio even when a slide's image is taller */
  padding: clamp(1rem, 5%, 1.75rem);
  background: var(--tile-bg);
  border-bottom: 0;
}
.gallery .shape-portrait .port-img { aspect-ratio: 4 / 5; }
.gallery .shape-landscape .port-img { aspect-ratio: 16 / 9; }
.gallery .shape-full { grid-column: 1 / -1; }
.gallery .shape-full .port-img { aspect-ratio: 32 / 9; }
.gallery .port-card-img {
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  transition: transform 300ms var(--ease-out);
}
.gallery .port-card:hover .port-card-img { transform: scale(1.02); }

.empty-state {
  grid-column: 1 / -1;
  padding: 2rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
}

/* ---- Home: closing call to action ---- */
.cta-section {
  padding: clamp(2.5rem, 2rem + 4vw, 5rem) var(--gutter);
  border-radius: var(--radius-media);
  background-color: var(--cta-bg);
  color: var(--brand-100);
  text-align: center;
}
.cta-section h2 { color: var(--n-0); font-size: var(--step-4); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 0.75rem; }
.cta-section p { max-width: 46ch; margin: 0 auto 2rem; }
.cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

/* ---- Inner page header ---- */
.page-hero {
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(2.5rem, 2rem + 2vw, 3.5rem);
  border-bottom: 1px solid var(--border);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: -1px -1px;
}
.page-hero h1 {
  font-size: var(--step-5);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 20ch;
}
.page-hero-content > p:not(.kicker) {
  font-size: var(--step-1);
  max-width: 58ch;
  margin-top: 1rem;
}
.page-hero .hero-buttons { margin-top: 2rem; }
.page-hero-tall { min-height: 60vh; display: flex; align-items: center; }

/* ---- About ---- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 1rem + 5vw, 6rem);
  align-items: start;
}
.about-text .section-title { margin-bottom: 1.25rem; }
.about-text p { max-width: 62ch; }
.about-text p + p { margin-top: 1em; }

.about-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.5rem;
  margin-top: 2rem;
}
.highlight-item { display: flex; gap: 0.5rem; align-items: start; color: var(--text-strong); }
.highlight-item .icon { color: var(--signal); margin-top: 0.2em; }

.about-visual {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  overflow: hidden;
}
.logo-img-about { width: 60%; margin: 2rem auto; }
.about-stat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}
.astat {
  display: flex;
  flex-direction: column-reverse;
  padding: 1rem;
  font-size: var(--step--1);
  color: var(--text-muted);
}
.astat + .astat { border-left: 1px solid var(--border); }
.astat-num { font-size: var(--step-2); font-weight: 500; color: var(--text-strong); }

.team-title { margin-bottom: 2rem; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
}
.team-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-media);
  border: 1px solid var(--border); /* keeps the rounded shape visible against the light page */
  background: var(--placeholder);
  margin-bottom: 1rem;
}
.team-card h3 { font-size: var(--step-1); color: var(--text-strong); }
.team-card p { color: var(--text-muted); }

.mv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
}
.mv-card { padding-top: 1.25rem; border-top: 2px solid var(--text-strong); }
.mv-card p:not(.kicker) { font-size: var(--step-1); color: var(--text-strong); }

.social-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 760px;
}
.social-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--accent);
  transition: border-color 150ms var(--ease-out);
}
.social-card:hover { border-color: var(--accent); }
.social-card > .icon:first-child { width: 1.5rem; height: 1.5rem; }
.social-card > .icon:last-child { margin-left: auto; color: var(--text-muted); }
.sc-text { display: flex; flex-direction: column; color: var(--text-muted); font-size: 0.9375rem; }
.sc-text strong { color: var(--text-strong); font-weight: 600; }

/* ---- Services ---- */
.services-full-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  counter-reset: svc;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.service-card {
  counter-increment: svc;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-raised);
}
.service-card::before {
  content: counter(svc, decimal-leading-zero);
  font-size: var(--step--1);
  color: var(--accent);
}
.service-card h2 { font-size: var(--step-2); letter-spacing: -0.01em; line-height: 1.25; }
.service-card p { flex: 1; }
.svc-btn { font-weight: 600; color: var(--accent); }
.svc-btn:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}
.why-item {
  padding: 1.75rem;
  border-radius: var(--radius-tile);
  background: var(--surface-raised);
}
.why-item .icon { width: 1.75rem; height: 1.75rem; color: var(--accent); margin-bottom: 1.25rem; }
.why-item h3 { font-size: var(--step-2); letter-spacing: -0.01em; margin-bottom: 0.5rem; }

.pricing-subtitle { font-size: var(--step-2); letter-spacing: -0.01em; margin-bottom: 1.25rem; }

/* Website plans: three tiers side by side, the middle one highlighted */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}
.plan-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-tile);
  background: var(--surface-raised);
}
.plan-featured { border: 2px solid var(--accent); box-shadow: var(--shadow-raised); }
.plan-name { font-size: 0.875rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.plan-card h4 { font-size: var(--step-2); letter-spacing: -0.01em; line-height: 1.25; color: var(--text-strong); }
.plan-for { color: var(--text-muted); font-size: 0.9375rem; }
.plan-price {
  margin-top: 0.5rem;
  font-size: var(--step-3);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}
.plan-price span, .plan-price small { font-size: 0.875rem; font-weight: 500; letter-spacing: 0; color: var(--text-muted); }
.plan-care { font-size: 0.875rem; color: var(--text-muted); padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.plan-features { display: grid; align-content: start; gap: 0.55rem; margin: 0.5rem 0 1.25rem; flex: 1; font-size: 0.9375rem; }
.plan-features li { padding-left: 1.5rem; position: relative; }
.plan-features li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.plan-card .btn { align-self: stretch; }
.plan-footnote { margin: -0.5rem 0 1rem; font-size: 0.8125rem; line-height: 1.5; color: var(--text-muted); }

.pricing-subtitle-gap { margin-top: clamp(3rem, 2rem + 3vw, 4.5rem); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: start;
}
.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table caption {
  text-align: left;
  padding-bottom: 0.75rem;
  font-size: 0.875rem;
  color: var(--accent);
  border-bottom: 2px solid var(--text-strong);
}
.price-table th, .price-table td { padding: 0.7rem 0; border-bottom: 1px solid var(--border); }
.price-table th { text-align: left; font-weight: 400; color: var(--text-strong); }
.price-table td {
  text-align: right;
  font-size: 0.9375rem;
  color: var(--text-strong);
  white-space: nowrap;
}
.price-table td::before { content: 'TZS '; color: var(--text-muted); font-size: 0.875rem; }

.pricing-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-tile);
  background: var(--surface-raised);
}
.pricing-note p { flex: 1 1 32ch; color: var(--text-muted); }

/* ---- Portfolio page ---- */
.portfolio-tabs, .sub-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.portfolio-tabs { margin-bottom: 3rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.sub-tabs { margin-bottom: 1.5rem; }

.tab-btn, .sub-tab {
  padding: 0.5rem 1rem;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font: 500 0.9375rem/1.2 var(--font-sans);
  color: var(--text);
  cursor: pointer;
  transition: border-color 150ms var(--ease-out), color 150ms var(--ease-out), background-color 150ms var(--ease-out);
}
.sub-tab { padding: 0.375rem 0.85rem; font-size: var(--step--1); }
.tab-btn:hover, .sub-tab:hover { border-color: var(--border-strong); color: var(--text-strong); }
.tab-btn.active, .sub-tab.active { background: var(--text-strong); border-color: var(--text-strong); color: var(--surface); }

.portfolio-section + .portfolio-section { margin-top: 4rem; }
.portfolio-section.hidden, .gfx-item.hidden { display: none; }
.port-section-title { font-size: var(--step-3); letter-spacing: -0.015em; margin-bottom: 1.25rem; }

/* ---- Project detail ---- */
.back-btn { display: inline-block; margin-bottom: 2rem; font-weight: 600; color: var(--accent); }
.back-btn:hover { color: var(--accent-hover); }

/* Photo across the full width, then the overview beside a narrow column of details */
.project-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: start;
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
}
.project-main-img {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  padding: 6px;
}
.port-detail-img { width: 100%; border-radius: calc(var(--radius-lg) - 6px); }
.project-main-img.no-img {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  font-size: var(--step--1);
  color: var(--text-muted);
}

/* Slideshow for projects with several designs */
.slide-viewport { height: 100%; overflow: hidden; }
.slide-track { display: flex; height: 100%; transition: transform 400ms var(--ease-out); }
.slide { flex: 0 0 100%; min-width: 0; display: grid; place-items: center; }
.gallery .slide { height: 100%; min-height: 0; overflow: hidden; }
/* Project pages: a fixed wide frame, so a tall slide (e.g. a logo) can't stretch it */
.project-main-img .slide-viewport { aspect-ratio: 2.2 / 1; }
.project-main-img .slide { height: 100%; min-height: 0; }
.project-main-img .slide img { width: 100%; height: 100%; object-fit: contain; }
.gallery .slide img { min-height: 0; }
.slide-controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 1rem; }
.port-info .slide-controls { margin-top: 0.5rem; }
.slide-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--surface-raised);
  color: var(--text-strong);
  font-size: 1.1rem;
  cursor: pointer;
  transition: border-color 150ms var(--ease-out), color 150ms var(--ease-out);
}
.slide-btn:hover { border-color: var(--accent); color: var(--accent); }
.slide-dots { display: flex; gap: 0.5rem; margin-inline: auto; }
.slide-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--border-strong);
  cursor: pointer;
  transition: background-color 150ms var(--ease-out), width 150ms var(--ease-out);
}
.slide-dot[aria-current] { width: 24px; background: var(--accent); }
.slide-count { font-size: 0.875rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }

.project-meta { display: grid; border-top: 2px solid var(--text-strong); margin-bottom: 2rem; }
.meta-item { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--border); }
.meta-label { font-size: 0.875rem; color: var(--text-muted); }
.meta-value { color: var(--text-strong); }

.project-overview h2 { font-size: var(--step-2); margin-bottom: 0.75rem; }
.project-full-desc { margin-bottom: 1rem; }
.project-details { position: sticky; top: 88px; } /* stays in view beside a long overview */
.project-overview .btn { margin-top: 0.5rem; }

.project-cta {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
}
.project-cta h3 { font-size: var(--step-1); }
.project-cta p { margin: 0.25rem 0 1rem; }


/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}
.contact-form-wrap {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-raised);
}
.contact-form-wrap h2, .contact-info h2 { font-size: var(--step-3); letter-spacing: -0.015em; margin-bottom: 0.5rem; }
.contact-form-wrap > p { margin-bottom: 2rem; color: var(--text-muted); }

.contact-form { display: grid; gap: 1.25rem; }
.form-group { display: grid; gap: 0.375rem; }
.form-group label { font-weight: 600; font-size: 0.9375rem; color: var(--text-strong); }
.optional { font-weight: 400; color: var(--text-muted); font-size: var(--step--1); margin-left: 0.25rem; }

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font: 400 1rem/1.5 var(--font-sans);
  color: var(--text-strong);
  caret-color: var(--accent);
  transition: border-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}
.form-group textarea { resize: vertical; min-height: 8rem; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-halo);
}
.form-group input:user-invalid, .form-group textarea:user-invalid { border-color: var(--danger); }

.form-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }

.contact-items { margin-top: 1.5rem; border-top: 1px solid var(--border); }
.contact-item {
  display: flex;
  align-items: start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-item > .icon { color: var(--accent); width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; }
.ci-text { display: flex; flex-direction: column; }
.ci-text strong {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}
.ci-text a, .ci-text span { color: var(--text-strong); }
.ci-text a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Toast (contact form feedback) ---- */
.toast {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  max-width: min(26rem, calc(100vw - 2.5rem));
  padding: 0.875rem 1.125rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left: 3px solid var(--signal);
  background: var(--surface-raised);
  box-shadow: var(--shadow-raised);
  color: var(--text-strong);
  animation: toast-in 200ms var(--ease-out);
}
.toast.error { border-left-color: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ---- Footer ---- */
.footer {
  margin-top: 0;
  padding-top: 4rem;
  background: var(--surface-sunken);
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.6fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand p { margin-top: 1rem; max-width: 34ch; color: var(--text-muted); }
.footer-links h2 {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.footer-links li + li { margin-top: 0.5rem; }
.footer-links a { color: var(--text-strong); transition: color 150ms var(--ease-out); }
.footer-links a:hover { color: var(--accent); }
.footer-social { display: inline-flex; align-items: center; gap: 0.5rem; overflow-wrap: anywhere; }
.footer-social .icon { color: var(--text-muted); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .portfolio-grid.gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid, .project-detail-grid, .contact-grid, .feature-banner, .plan-grid { grid-template-columns: 1fr; }
  .poster-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Narrow screens: the photo fills the hero and the text sits at the bottom,
     on a white fade that rises from the bottom instead of coming in from the left */
  .hero { align-items: flex-end; min-height: min(calc(100svh - 64px), 760px); }
  .hero::after {
    background: linear-gradient(to top,
      oklch(0.99 0.003 var(--n-hue) / 0.97) 0%,
      oklch(0.99 0.003 var(--n-hue) / 0.90) 42%,
      oklch(0.99 0.003 var(--n-hue) / 0.55) 60%,
      oklch(0.99 0.003 var(--n-hue) / 0) 80%);
  }
  .hero-media { object-position: 68% center; }
  .hero-media.top { object-position: 70% top; }
  .hero-media.hero-drone { object-position: 42% top; } /* keep the whole drone in view */
  /* The office desks sit low in the photo: enlarge it and lift it so they show above the text */
  .hero-media.hero-office { position: absolute; top: -50%; left: 0; height: 150%; object-position: 60% center; }
  .hero-content { padding-block: 10rem 2.5rem; }
  .feature-banner img { min-height: 0; aspect-ratio: 16 / 9; }
  .category-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-full-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-visual { max-width: 420px; }
}

@media (max-width: 760px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem var(--gutter) 1.25rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-raised);
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 0.75rem; }
  .nav-cta { margin: 0.5rem 0 0; text-align: center; }

  .section-header { flex-direction: column; align-items: start; }
  .poster-cards, .services-full-grid, .mv-grid, .team-grid, .pricing-grid, .social-cards, .about-highlights { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 480px) {
  .portfolio-grid.gallery { grid-template-columns: 1fr; }
  .gallery .shape-landscape, .gallery .shape-full { grid-column: auto; }
  .gallery .shape-full .port-img { aspect-ratio: 16 / 9; }
  .why-grid, .footer-grid { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}
