/* Vika Construction: site styles
   Classic contractor layout (inspired by the Builderz and Wilcon templates),
   in the logo's navy and yellow. Font: Instrument Sans. */

:root {
  --white: #FFFFFF;
  --bg-alt: #F3F5FA;
  --ink: #15171C;
  --ink-2: #555B66;
  --rule: #E1E4EC;
  --navy: #112D98;
  --navy-deep: #0B1B5C;
  --dark: #081340;
  --yellow: #F5C545;
  --yellow-deep: #E0AE2A;
  --yellow-soft: #FFF5D9;

  --font-head: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 96px;
  --nav-h: 58px;
  --mobile-h: 72px;
  --shadow: 0 12px 32px rgba(11, 27, 92, .08);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.3vw, 2.5rem); letter-spacing: -.02em; }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 3000;
  background: var(--ink); color: var(--white); padding: 10px 16px;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(88px, 11vw, 144px) 0; }
/* The section after the feature boxes starts a bit closer, the boxes already add space */
.features + .section { padding-top: clamp(96px, 10vw, 136px); }
.section-alt { background: var(--bg-alt); }
.section-tight { padding-top: 0; }

/* Small text label (project type, numbers) */
.label, .section-label, .mono {
  font-family: var(--font-head);
  font-size: .88rem;
  font-weight: 600;
  color: var(--navy);
}
.label, .section-label { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 12px; }

.section-header { text-align: center; max-width: 720px; margin: 0 auto clamp(48px, 6vw, 72px); }
.section-header .label { justify-content: center; }
.section-header p { margin-top: 12px; }

/* Older section heading used on inner pages: label above the title */
.sec-head { margin-bottom: clamp(40px, 5vw, 60px); }
.sec-head > .mono { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.sec-head-body { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.sec-head h2 { max-width: 22ch; }
.sec-head p { margin-top: 12px; max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px;
  padding: 14px 30px;
  border: 2px solid transparent;
  border-radius: 2px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn i { font-size: .9em; }
.btn-primary { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn-yellow { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.btn-yellow:hover { background: var(--yellow-deep); border-color: var(--yellow-deep); }
.btn-white { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-white:hover { background: var(--yellow); border-color: var(--yellow); }
.btn-outline-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-outline:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-block { width: 100%; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--navy);
  border-bottom: 2px solid var(--yellow); padding-bottom: 2px;
}
.text-link:hover { color: var(--navy-deep); border-color: var(--navy); }
.text-link i { font-size: .8em; }

/* ---------- Header (logo + contact info) ---------- */
.header { background: var(--white); position: relative; z-index: 1001; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.nav-logo { display: flex; align-items: center; flex: none; }
.brand-logo { height: 50px; width: auto; display: block; }
.header-info { display: flex; gap: 36px; }
.info-item { display: flex; align-items: center; gap: 14px; }
.info-item > i {
  width: 46px; height: 46px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--yellow-soft); color: var(--navy); font-size: 1.15rem; border-radius: 2px;
}
.info-item strong { display: block; font-family: var(--font-head); font-size: .88rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.info-item span, .info-item a { display: block; font-size: .88rem; color: var(--ink-2); line-height: 1.4; }
.info-item a:hover { color: var(--navy); }

/* ---------- Navy menu bar ---------- */
.navbar { position: sticky; top: 0; z-index: 1000; background: var(--navy-deep); transition: box-shadow .2s; }
.navbar.scrolled { box-shadow: 0 6px 20px rgba(8, 19, 64, .25); }
.nav-inner { height: var(--nav-h); }
.nav-links { display: flex; align-items: stretch; height: 100%; }
.nav-links a {
  display: flex; align-items: center; height: 100%;
  padding: 0 18px;
  font-family: var(--font-head); font-size: .95rem; font-weight: 500;
  color: var(--white);
  transition: background-color .2s, color .2s;
}
.nav-links a:hover { color: var(--yellow); }
.nav-links a.active { background: var(--yellow); color: var(--ink); }
.nav-links .nav-cta-item { margin-left: auto; display: flex; align-items: center; }
.nav-links a.nav-cta {
  height: 40px; padding: 0 20px;
  border: 2px solid var(--yellow); color: var(--yellow); border-radius: 2px; font-weight: 600;
}
.nav-links a.nav-cta:hover { background: var(--yellow); color: var(--ink); }

.hamburger {
  display: none; width: 46px; height: 46px; flex: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: var(--navy-deep); border: 0; border-radius: 2px; cursor: pointer;
}
.hamburger span { width: 22px; height: 2px; background: var(--white); display: block; transition: transform .2s var(--ease), opacity .2s; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav-overlay { display: none; position: fixed; inset: 0; top: var(--mobile-h); background: rgba(8, 19, 64, .5); z-index: 999; }

/* ---------- Home hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: clamp(540px, 80vh, 740px);
  display: flex; align-items: center;
  background: var(--dark); color: var(--white);
  overflow: hidden;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(8,19,64,.88) 0%, rgba(8,19,64,.7) 45%, rgba(8,19,64,.35) 100%);
}
.hero-inner { padding-top: 64px; padding-bottom: 136px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 500; color: var(--yellow); margin-bottom: 20px;
}
.hero h1 {
  color: var(--white); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -.01em;
}
.hero-sub { color: rgba(255,255,255,.88); font-size: clamp(1.02rem, 1.5vw, 1.2rem); max-width: 46ch; margin-top: 22px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

/* Feature boxes overlapping the bottom of the hero */
.features { position: relative; z-index: 2; margin-top: -84px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); box-shadow: var(--shadow); }
.feature { display: flex; gap: 20px; padding: 36px 32px; background: var(--yellow); }
.feature > i { font-size: 2.3rem; color: var(--navy-deep); margin-top: 4px; width: 44px; flex: none; }
.feature h3 { margin-bottom: 8px; color: var(--ink); }
.feature p { color: var(--ink); font-size: .95rem; }
.feature-dark { background: var(--navy-deep); }
.feature-dark > i { color: var(--yellow); }
.feature-dark h3 { color: var(--white); }
.feature-dark p { color: rgba(255,255,255,.8); }

/* ---------- Home: about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px clamp(48px, 7vw, 96px); align-items: center; }
.about-img { position: relative; padding: 0 24px 24px 0; }
.about-img::before { content: ""; position: absolute; top: 24px; left: 24px; right: 0; bottom: 0; background: var(--yellow); }
.about-img img { position: relative; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.about-badge {
  position: absolute; left: 0; bottom: 24px;
  display: flex; align-items: center; gap: 12px;
  padding: 20px 26px; background: var(--navy-deep); color: var(--white);
}
.about-badge strong { font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--yellow); }
.about-badge span { font-family: var(--font-head); font-size: .9rem; font-weight: 600; line-height: 1.35; }
.about-text h2 { margin-bottom: 24px; }
.check-list { margin: 28px 0 40px; display: grid; gap: 14px; }
.check-list li { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 500; }
.check-list i {
  width: 26px; height: 26px; flex: none; display: flex; align-items: center; justify-content: center;
  background: var(--yellow); color: var(--ink); font-size: .75rem; border-radius: 50%;
}

/* ---------- Facts band (yellow half / navy half) ---------- */
.facts { background: linear-gradient(90deg, var(--yellow) 50%, var(--navy-deep) 50%); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { display: flex; align-items: center; gap: 18px; padding: 64px 24px; color: var(--ink); }
.fact > i { font-size: 2.4rem; color: var(--navy-deep); }
.fact:nth-child(n+3) { color: var(--white); }
.fact:nth-child(n+3) > i { color: var(--yellow); }
.fact:nth-child(3) { padding-left: 48px; }
.fact strong { display: block; font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.fact span { display: block; margin-top: 6px; font-family: var(--font-head); font-size: .95rem; font-weight: 500; }

/* ---------- Home: service cards ---------- */
.svc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.svc-card {
  display: flex; flex-direction: column;
  padding: 40px 32px 34px; background: var(--white);
  transition: background-color .25s var(--ease);
}
.svc-card > i {
  width: 68px; height: 68px; display: flex; align-items: center; justify-content: center;
  background: var(--yellow-soft); color: var(--navy); font-size: 1.7rem; margin-bottom: 24px;
  transition: background-color .25s, color .25s;
}
.svc-card h3 { margin-bottom: 10px; transition: color .25s; }
.svc-card p { font-size: .95rem; flex: 1; transition: color .25s; }
.svc-card .more {
  margin-top: 20px; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: .8rem; font-weight: 600; color: var(--navy);
  transition: color .25s;
}
.svc-card:hover { background: var(--navy-deep); }
.svc-card:hover > i { background: var(--yellow); color: var(--navy-deep); }
.svc-card:hover h3 { color: var(--white); }
.svc-card:hover p { color: rgba(255,255,255,.8); }
.svc-card:hover .more { color: var(--yellow); }

/* ---------- Home: project cards ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 28px; }
.proj { display: flex; flex-direction: column; }
.proj-img { overflow: hidden; background: var(--bg-alt); }
.proj-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s var(--ease); }
.proj:hover .proj-img img { transform: scale(1.05); }
.proj-body {
  position: relative; flex: 1; margin: -44px 20px 0; padding: 22px 24px;
  background: var(--white); box-shadow: var(--shadow); border-left: 4px solid var(--yellow);
}
.proj-body span { font-family: var(--font-head); font-size: .85rem; font-weight: 600; color: var(--navy); }
.proj-body h3 { margin: 4px 0 6px; transition: color .2s; }
.proj:hover .proj-body h3 { color: var(--navy); }
.proj-body p { font-size: .9rem; }
.proj-body p i { color: var(--yellow-deep); margin-right: 4px; }
.proj-img-logo { position: relative; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.proj-img-logo img { width: auto; max-width: 46%; max-height: 38%; aspect-ratio: auto; object-fit: contain; mix-blend-mode: multiply; }
.proj-soon {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--font-head); font-size: .85rem; font-weight: 600;
  padding: 5px 10px; background: var(--white); color: var(--ink-2);
}
.proj-grid > .proj:nth-child(3n+1):last-child { grid-column: 2; }
.center-link { text-align: center; margin-top: 64px; }

/* ---------- Client logo carousel ---------- */
.logo-carousel { display: flex; align-items: center; gap: 16px; }
.lc-viewport { flex: 1; min-width: 0; overflow-x: auto; }
.logo-carousel.is-ready .lc-viewport {
  overflow: hidden; touch-action: pan-y; cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.lc-viewport.dragging { cursor: grabbing; }
.lc-track { display: flex; width: max-content; will-change: transform; user-select: none; -webkit-user-select: none; }
.lc-item {
  flex: none; width: 200px; height: 100px; margin-right: 16px;
  display: flex; align-items: center; justify-content: center;
  padding: 18px 26px; background: var(--white);
}
.lc-item img {
  max-width: 100%; max-height: 60px; width: auto; height: auto; object-fit: contain;
  pointer-events: none; -webkit-user-drag: none;
}
.lc-arrow {
  display: none; flex: none; width: 48px; height: 48px; align-items: center; justify-content: center;
  background: var(--white); color: var(--navy-deep); border: 1px solid var(--rule); border-radius: 50%;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.logo-carousel.is-ready .lc-arrow { display: flex; }
.lc-arrow:hover { background: var(--navy-deep); color: var(--white); border-color: var(--navy-deep); }

/* ---------- Client logos ---------- */
.logo-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.logo-strip img {
  width: 100%; height: 96px; padding: 18px 22px; background: var(--white);
  object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .25s, opacity .25s;
}
.logo-strip img:hover { filter: none; opacity: 1; }
.logo-wall { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.logo-wall div { display: flex; align-items: center; justify-content: center; height: 96px; padding: 18px 22px; background: var(--white); border: 1px solid var(--rule); }
.logo-wall img { max-height: 60px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .85; }
.logo-wall div:hover img { filter: none; opacity: 1; }
.client-note { font-size: .9rem; margin-top: 16px; }

/* ---------- CTA band ---------- */
.cta-section { background: var(--yellow); padding: clamp(64px, 8vw, 104px) 0; }
.cta-section h2 { color: var(--ink); }
.cta-section p { color: var(--ink); margin-top: 10px; font-size: 1.05rem; }
.cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 28px 48px; align-items: center; }
.cta-actions { display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap; }
.cta-mail { font-family: var(--font-head); font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; border-bottom: 2px solid var(--ink); padding-bottom: 2px; }
.cta-actions .mono { color: var(--ink); text-transform: none; font-size: .95rem; }
.cta-actions .mono a { border-bottom: 2px solid var(--ink); }
.cta-section .btn-outline { color: var(--ink); border-color: var(--ink); }
.cta-section .btn-outline:hover { background: var(--ink); color: var(--white); }
/* Project pages use a plain centered CTA */
.cta-section .container:not(.cta-inner) { text-align: center; }
.cta-section .container:not(.cta-inner) h2 br { display: none; }
.cta-section .container:not(.cta-inner) .cta-actions { justify-content: center; margin-top: 28px; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: rgba(255,255,255,.72); font-size: .95rem; }
.footer-top { padding: 88px 0 56px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.4fr; gap: 40px; }
.footer-brand .brand-logo { height: 50px; margin-bottom: 20px; }
.footer-desc { max-width: 34ch; }
.footer-col h6 {
  position: relative; font-size: 1.05rem; font-weight: 600; color: var(--white);
  padding-bottom: 14px; margin-bottom: 20px;
}
.footer-col h6::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--yellow); }
.footer-col li { margin-bottom: 10px; }
.footer-col li a { display: inline-flex; align-items: center; gap: 8px; transition: color .15s; }
.footer-col li a::before { content: "\f105"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .75rem; color: var(--yellow); }
.footer-col a:hover { color: var(--yellow); }
.f-contact-item { display: flex; gap: 12px; margin-bottom: 14px; }
.f-contact-item i { color: var(--yellow); margin-top: 5px; font-size: .9rem; width: 16px; }
.f-contact-item a { word-break: break-word; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 22px 0 26px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: .85rem; color: rgba(255,255,255,.55);
}

/* ---------- Inner page banner ---------- */
.page-hero {
  position: relative;
  padding: clamp(64px, 9vw, 104px) 0;
  background: linear-gradient(rgba(8,19,64,.82), rgba(8,19,64,.82)), url("../images/nps-kigoma.jpg") center / cover no-repeat;
  color: var(--white);
}
.page-hero.bg-songwe { background-image: linear-gradient(rgba(8,19,64,.82), rgba(8,19,64,.82)), url("../images/nps-songwe.jpg"); }
.page-hero.bg-hero { background-image: linear-gradient(rgba(8,19,64,.8), rgba(8,19,64,.8)), url("../images/hero.jpg"); }
.page-hero .container { display: flex; flex-direction: column; align-items: center; text-align: center; }
.page-hero .section-label { color: var(--yellow); }
.page-hero h1 { color: var(--white); font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.4rem); max-width: 22ch; }
.page-hero p { color: rgba(255,255,255,.85); font-size: 1.08rem; margin-top: 16px; max-width: 60ch; }
.breadcrumb {
  order: 3; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; align-items: center;
  margin-top: 28px; padding: 10px 20px; background: rgba(255,255,255,.08);
  font-family: var(--font-head); font-size: .95rem; font-weight: 500;
  color: rgba(255,255,255,.8);
}
.breadcrumb a { color: var(--yellow); }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Two-column text, spec sheet ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px clamp(40px, 6vw, 80px); align-items: start; }
.split-text p.lead { color: var(--ink); font-size: 1.15rem; line-height: 1.6; font-weight: 500; }
.split-text .text-link { margin-top: 12px; }

.spec { background: var(--white); box-shadow: var(--shadow); border-top: 4px solid var(--yellow); padding: 8px 28px; }
.spec div { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.spec div:last-child { border-bottom: 0; }
.spec dt { font-family: var(--font-head); font-size: .85rem; font-weight: 600; color: var(--ink-2); padding-top: 3px; }
.spec dd { font-weight: 500; color: var(--ink); }
.spec dd a { color: var(--navy); border-bottom: 2px solid var(--yellow); word-break: break-word; }

/* ---------- Points (principles, steps) as cards ---------- */
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.points-2 { grid-template-columns: repeat(2, 1fr); }
.points-4 { grid-template-columns: repeat(4, 1fr); }
.point { padding: 32px 28px; background: var(--white); border: 1px solid var(--rule); transition: box-shadow .25s, border-color .25s; }
.point:hover { box-shadow: var(--shadow); }
.section-alt .point { border-color: transparent; }
.point .mono { display: inline-block; margin-bottom: 18px; padding: 5px 12px; background: var(--yellow); color: var(--ink); }
.point h3 { margin-bottom: 10px; }
.point p { font-size: .95rem; }

/* ---------- Statement band ---------- */
.statement { background: var(--navy-deep); color: var(--white); }
.statement .mono { color: var(--yellow); }
.statement blockquote {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 2.2rem); line-height: 1.35; color: var(--white);
  max-width: 34ch; margin-top: 18px; padding-left: 28px; border-left: 4px solid var(--yellow);
}
.statement blockquote em { font-style: normal; color: var(--yellow); }

/* ---------- Portfolio page cards ---------- */
.work-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px 24px; }
.work { grid-column: span 2; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--rule); border-bottom: 3px solid var(--yellow); transition: box-shadow .25s; }
.work:hover { box-shadow: var(--shadow); }
.work.wide { grid-column: span 3; }
.work > :not(.work-img) { padding-left: 24px; padding-right: 24px; }
.work > :last-child { padding-bottom: 26px; }
.work-img { overflow: hidden; background: var(--bg-alt); }
.work-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s var(--ease); }
.work:hover .work-img img { transform: scale(1.05); }
.work-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; font-size: .72rem; }
.work h3 { margin-top: 8px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.work h3 i { font-size: .75em; color: var(--navy); transition: transform .2s var(--ease); }
.work:hover h3 i { transform: translateX(4px); }
.work p { font-size: .95rem; margin-top: 6px; }

/* Rows list ("More projects") */
.rows { display: grid; gap: 10px; }
.row {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 40px; gap: 16px 32px; align-items: center;
  padding: 20px 24px; background: var(--white); border: 1px solid var(--rule); border-left: 4px solid var(--yellow);
  transition: background-color .2s, color .2s;
}
.row h3 { font-size: 1.05rem; transition: color .2s; }
.row .mono { color: var(--ink-2); }
.row-arrow { justify-self: end; color: var(--navy); transition: transform .2s var(--ease); }
a.row:hover { background: var(--navy-deep); }
a.row:hover h3 { color: var(--white); }
a.row:hover .mono { color: rgba(255,255,255,.75); }
a.row:hover .row-arrow { color: var(--yellow); transform: translateX(4px); }

/* ---------- Services page ---------- */
.svc-list { display: grid; gap: 32px; }
.svc-item {
  display: grid; grid-template-columns: 64px 1fr 1fr; gap: 20px 40px; align-items: start;
  padding: clamp(28px, 4vw, 44px); background: var(--white); border: 1px solid var(--rule);
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.svc-item > .mono {
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  background: var(--yellow); color: var(--ink); font-size: 1.1rem; font-weight: 700; letter-spacing: 0;
}
.svc-item h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 14px; }
.svc-item > div:last-child { grid-column: 2 / -1; max-width: 760px; }
.svc-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.svc-tag { font-family: var(--font-head); font-size: .78rem; font-weight: 500; padding: 6px 12px; background: var(--bg-alt); color: var(--navy-deep); border-radius: 2px; }

/* ---------- Project detail pages ---------- */
.project-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px 48px; align-items: start; margin-bottom: clamp(48px, 6vw, 72px); }
.project-visual {
  position: relative; min-height: 320px; background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center; padding: 40px;
}
.project-visual img { max-width: 55%; max-height: 50%; object-fit: contain; mix-blend-mode: multiply; }
.project-visual.pf-photo { padding: 0; min-height: 0; display: block; }
.project-visual.pf-photo img { max-width: none; max-height: none; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.project-facts { background: var(--navy-deep); padding: 12px 28px; border-top: 4px solid var(--yellow); }
.fact-item { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.12); grid-column: auto !important; }
.fact-item:last-child { border-bottom: 0; }
.fact-item span { font-family: var(--font-head); font-size: .85rem; font-weight: 600; color: var(--yellow); padding-top: 2px; }
.fact-item strong { font-weight: 500; color: var(--white); }
.project-body { max-width: 860px; }
.project-body h2 { margin-bottom: 20px; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.project-body h3 { margin: 44px 0 16px; font-size: 1.35rem; display: flex; align-items: center; gap: 12px; }
.project-body h3::before { content: ""; width: 32px; height: 3px; background: var(--yellow); }
.svc-feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.svc-feature-list li { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--bg-alt); color: var(--ink); font-weight: 500; }
.svc-feature-list li i {
  width: 24px; height: 24px; flex: none; display: flex; align-items: center; justify-content: center;
  background: var(--yellow); color: var(--ink); font-size: .7rem; border-radius: 50%;
}
.project-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.project-gallery a { display: block; overflow: hidden; background: var(--bg-alt); }
.project-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s var(--ease); }
.project-gallery a:hover img { transform: scale(1.05); }
.pf-soon {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--font-head); font-size: .85rem; font-weight: 600;
  background: var(--yellow); color: var(--ink); padding: 5px 10px;
}

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px clamp(40px, 6vw, 80px); align-items: start; }
.contact-grid h2 { margin-bottom: 28px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.contact-form { background: var(--white); box-shadow: var(--shadow); border-top: 4px solid var(--yellow); padding: clamp(24px, 4vw, 40px); }
.contact-form h3 { margin-bottom: 24px; font-size: 1.4rem; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-family: var(--font-head); font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.form-row input, .form-row textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border: 1px solid #A3A9B6; border-radius: 2px; background: var(--white);
  font-family: inherit; font-size: 1rem; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.form-row textarea { resize: vertical; }
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(17,45,152,.18); }
.form-note { font-size: .85rem; margin-top: 12px; }

/* ---------- Modal (company profile) ---------- */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(8,19,64,.65);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-card {
  position: relative; background: var(--white); border-top: 4px solid var(--yellow);
  padding: 40px; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto;
  animation: modalIn .22s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px;
  background: var(--bg-alt); border: 0; border-radius: 2px;
  font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink);
}
.modal-close:hover { background: var(--navy-deep); color: var(--white); }
.modal-card h3 { margin: 4px 0 12px; font-size: 1.5rem; padding-right: 40px; }
.modal-card > p { margin-bottom: 24px; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; bottom: 20px; right: 20px; z-index: 998;
  width: 48px; height: 48px; border-radius: 2px;
  background: var(--yellow); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .2s, transform .2s var(--ease), background-color .15s;
}
.to-top.visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--yellow-deep); }

/* ---------- Reveal on scroll ---------- */
.fade-up { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.fade-up.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .fade-up { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .header-info .info-item:last-child { display: none; }
  .nav-links a { padding: 0 13px; }
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .points-4 { grid-template-columns: repeat(2, 1fr); }
  .feature { padding: 30px 24px; }
}

/* Phone and small tablet: compact sticky header, slide-in menu */
@media (max-width: 991px) {
  .header { position: sticky; top: 0; box-shadow: 0 2px 12px rgba(8,19,64,.08); }
  .header-inner { height: var(--mobile-h); }
  .brand-logo { height: 42px; }
  .header-info { display: none; }
  .hamburger { display: flex; }
  .navbar { position: static; height: 0; }
  .nav-inner { height: 0; padding: 0; }
  .nav-links {
    position: fixed; top: var(--mobile-h); right: 0; bottom: 0; width: min(86vw, 340px); height: auto;
    flex-direction: column; align-items: stretch;
    background: var(--white); padding: 12px 0 32px;
    transform: translateX(100%); visibility: hidden;
    transition: transform .25s var(--ease), visibility .25s;
    z-index: 1000; overflow-y: auto;
  }
  .nav-links.open { transform: none; visibility: visible; }
  .nav-links li { border-bottom: 1px solid var(--rule); }
  .nav-links a { height: auto; min-height: 56px; padding: 0 24px; color: var(--ink); font-size: .95rem; border-left: 4px solid transparent; }
  .nav-links a:hover { color: var(--navy); }
  .nav-links a.active { background: var(--yellow-soft); border-left-color: var(--yellow); color: var(--ink); }
  .nav-links .nav-cta-item { margin: 20px 24px 0; border: 0; }
  .nav-links a.nav-cta { width: 100%; height: 52px; justify-content: center; background: var(--yellow); color: var(--ink); border-left: 2px solid var(--yellow); }
  .nav-overlay.open { display: block; }
  .svc-item { scroll-margin-top: calc(var(--mobile-h) + 16px); }

  .features { margin-top: -56px; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-inner { padding-bottom: 112px; }
}

@media (max-width: 900px) {
  .about-grid, .split, .cta-inner, .contact-grid, .project-top { grid-template-columns: 1fr; }
  .svc-cards, .proj-grid { grid-template-columns: 1fr 1fr; }
  .proj-grid > .proj:nth-child(3n+1):last-child { grid-column: auto; }
  .proj-grid > .proj:nth-child(odd):last-child { grid-column: 1 / -1; width: calc(50% - 12px); justify-self: center; }
  .facts { background: none; }
  .facts .container { padding: 0; max-width: none; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact, .fact:nth-child(3) { padding: 36px var(--gutter); }
  .fact:nth-child(-n+2) { background: var(--yellow); }
  .fact:nth-child(n+3) { background: var(--navy-deep); }
  .logo-strip, .logo-wall { grid-template-columns: repeat(3, 1fr); }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .work, .work.wide { grid-column: span 1; }
  .points { grid-template-columns: 1fr 1fr; }
  .svc-item { grid-template-columns: 56px 1fr; }
  .svc-item > :last-child:not(:nth-child(2)) { grid-column: 2; }
  .row { grid-template-columns: 1fr auto 24px; }
  .row > .mono:last-of-type { display: none; }
}

@media (max-width: 640px) {
  .svc-cards, .proj-grid, .work-grid, .points, .points-2, .points-4, .footer-grid { grid-template-columns: 1fr; }
  .proj-grid > .proj:nth-child(odd):last-child { width: auto; justify-self: stretch; }
  .logo-carousel { flex-wrap: wrap; justify-content: center; gap: 20px 12px; }
  .lc-viewport { flex: 0 0 100%; order: -1; }
  .lc-item { width: 150px; height: 80px; margin-right: 10px; padding: 14px 18px; }
  .lc-item img { max-height: 46px; }
  .svc-cards { gap: 18px; }
  .proj-grid { gap: 40px; }
  .svc-card { padding: 26px 22px; }
  .svc-card > i { width: 54px; height: 54px; font-size: 1.35rem; margin-bottom: 16px; }
  .svc-card .more { margin-top: 14px; }
  .logo-strip, .logo-wall { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .logo-strip img { height: 76px; padding: 14px 18px; }
  .fact { flex-direction: column; align-items: flex-start; gap: 12px; }
  .fact > i { font-size: 1.8rem; }
  .fact strong { font-size: 2rem; }
  .hero { min-height: auto; }
  .hero-inner { padding-top: 56px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .about-img { padding: 0 14px 14px 0; }
  .about-img::before { top: 14px; left: 14px; }
  .about-badge { bottom: 14px; padding: 14px 18px; }
  .about-badge strong { font-size: 2rem; }
  .svc-item { grid-template-columns: 1fr; padding: 24px 20px; }
  .svc-item > :last-child:not(:nth-child(2)), .svc-item > div:last-child { grid-column: auto; }
  .svc-item > .mono { width: 48px; height: 48px; }
  .svc-feature-list { grid-template-columns: 1fr; }
  .spec { padding: 4px 20px; }
  .spec div, .fact-item { grid-template-columns: 1fr; gap: 2px; }
  .row { grid-template-columns: 1fr 24px; padding: 16px 18px; }
  .row > .mono { grid-column: 1; }
  .row > .mono:last-of-type { display: block; }
  .row .row-arrow { grid-row: 1; grid-column: 2; }
  .project-gallery { grid-template-columns: repeat(2, 1fr); }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; }
  .cta-mail { align-self: center; }
  .modal-card { padding: 28px 20px; }
  .statement blockquote { padding-left: 18px; }
}

/* =====================================================================
   Calmer colour version (preview). Switched on by <body class="calm">.
   Yellow is kept for the hero, buttons and small accents only;
   everything else is white, light grey and dark blue.
   ===================================================================== */
.calm .info-item > i { background: var(--bg-alt); color: var(--navy); }

/* Feature boxes: white cards on the hero edge */
.calm .features-grid { background: var(--white); }
.calm .feature, .calm .feature-dark { background: var(--white); }
.calm .feature + .feature { border-left: 1px solid var(--rule); }
.calm .feature > i, .calm .feature-dark > i { color: var(--navy); font-size: 2rem; }
.calm .feature h3, .calm .feature-dark h3 { color: var(--ink); }
.calm .feature p, .calm .feature-dark p { color: var(--ink-2); }

/* About: quiet grey offset instead of the yellow block */
.calm .about-img::before { background: var(--bg-alt); }
.calm .check-list i { background: var(--bg-alt); color: var(--navy); }

/* Numbers band: one solid dark blue */
.calm .facts { background: var(--navy-deep); }
.calm .fact, .calm .fact:nth-child(n+3) { color: var(--white); }
.calm .fact > i, .calm .fact:nth-child(n+3) > i { color: var(--yellow); font-size: 2rem; }
.calm .fact + .fact { border-left: 1px solid rgba(255,255,255,.12); }
.calm .fact:nth-child(3) { padding-left: 24px; }
.calm .fact { padding-left: 32px; }
.calm .fact:first-child { padding-left: 0; }

/* Section headings: left-aligned, not centred */
.calm .section-header { text-align: left; margin-left: 0; max-width: none; }
.calm .center-link { text-align: left; }

/* Service cards and project cards: no yellow trims */
.calm .svc-card > i { background: var(--bg-alt); }
.calm .svc-card:hover > i { background: rgba(255,255,255,.1); color: var(--yellow); }
.calm .proj-body p i { color: var(--navy); }

/* Points, service list numbers: dark blue text instead of yellow badges */
.calm .point .mono { background: var(--bg-alt); color: var(--navy); }
.calm .svc-item > .mono { background: var(--bg-alt); color: var(--navy); }
.calm .spec, .calm .contact-form { border-top-color: var(--navy-deep); }

/* Contact strip: a dark blue panel instead of a full yellow band */
.calm .cta-section { background: transparent; padding: 0 0 clamp(88px, 11vw, 144px); }
.calm .section-alt + .cta-section { background: var(--bg-alt); }
.calm .cta-section > .container {
  background: var(--navy-deep);
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--container) - 2 * var(--gutter));
  padding: clamp(36px, 5vw, 64px) clamp(24px, 5vw, 64px);
}
.calm .cta-section h2 { color: var(--white); }
.calm .cta-section p { color: rgba(255,255,255,.8); }
.calm .cta-section .btn-primary { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.calm .cta-section .btn-primary:hover { background: var(--yellow-deep); border-color: var(--yellow-deep); }
.calm .cta-section .btn-outline { color: var(--white); border-color: rgba(255,255,255,.6); }
.calm .cta-section .btn-outline:hover { background: var(--white); color: var(--ink); }
.calm .cta-mail { color: var(--white); border-color: rgba(255,255,255,.5); }

/* Menu: thin yellow underline for the current page (desktop) */
@media (min-width: 992px) {
  .calm .nav-links a.active { background: transparent; color: var(--white); box-shadow: inset 0 -3px 0 var(--yellow); }
}

@media (max-width: 991px) {
  .calm .feature + .feature { border-left: 0; border-top: 1px solid var(--rule); }
}
@media (max-width: 900px) {
  .calm .facts .container { padding: 0; }
  .calm .fact:nth-child(-n+2), .calm .fact:nth-child(n+3) { background: var(--navy-deep); }
  .calm .fact, .calm .fact:first-child, .calm .fact:nth-child(3) { padding: 36px var(--gutter); }
  .calm .fact + .fact { border-left: 0; }
  .calm .fact:nth-child(even) { border-left: 1px solid rgba(255,255,255,.12); }
  .calm .fact:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
}

/* ---------- Calm version, minimal pass: white, grey and dark blue text only ---------- */
/* Header info: plain icons, no squares */
.calm .info-item > i { background: transparent; width: auto; height: auto; font-size: 1.3rem; }

/* Feature boxes: plain icons */
.calm .feature > i, .calm .feature-dark > i { font-size: 1.7rem; }

/* About badge: white card, dark blue number */
.calm .about-badge { background: var(--white); color: var(--ink); box-shadow: var(--shadow); }
.calm .about-badge strong { color: var(--navy-deep); }

/* Stats: plain numbers on white with thin rules, no icons, no colour blocks */
.calm .facts { background: var(--white); }
.calm .fact > i { display: none; }
.calm .fact, .calm .fact:nth-child(n+3) { color: var(--ink); padding: 44px 32px; }
.calm .fact:first-child { padding-left: 0; }
.calm .fact + .fact { border-left: 1px solid var(--rule); }
.calm .fact strong { color: var(--navy-deep); font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 700; }
.calm .fact span { color: var(--ink-2); font-weight: 500; }

/* Service cards: plain icon, gentle hover (no colour flip) */
.calm .svc-card { border: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.calm .svc-card > i { background: transparent; width: auto; height: auto; justify-content: flex-start; font-size: 1.6rem; margin-bottom: 20px; }
.calm .svc-card:hover { background: var(--white); border-color: var(--rule); box-shadow: var(--shadow); }
.calm .svc-card:hover > i { background: transparent; color: var(--navy); }
.calm .svc-card:hover h3 { color: var(--navy); }
.calm .svc-card:hover p { color: var(--ink-2); }

/* Contact strip: plain white row with a dark blue button */
.calm .cta-section, .calm .section-alt + .cta-section { background: var(--white); padding: clamp(72px, 9vw, 112px) 0; }
.calm .cta-section > .container { background: transparent; width: 100%; max-width: var(--container); padding: 0 var(--gutter); }
.calm .cta-section h2 { color: var(--ink); }
.calm .cta-section p { color: var(--ink-2); }
.calm .cta-section .btn-primary { background: var(--navy); color: var(--white); border-color: var(--navy); }
.calm .cta-section .btn-primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.calm .cta-section .btn-outline { color: var(--ink); border-color: var(--ink); }
.calm .cta-section .btn-outline:hover { background: var(--ink); color: var(--white); }
.calm .cta-mail { color: var(--ink); border-color: var(--ink); }

/* Points and service numbers: plain dark blue text */
.calm .point .mono, .calm .svc-item > .mono { background: transparent; padding: 0; }
.calm .svc-item > .mono { justify-content: flex-start; width: auto; height: auto; font-size: 1.3rem; }

@media (max-width: 900px) {
  .calm .facts .container { padding: 0 var(--gutter); }
  .calm .fact:nth-child(-n+2), .calm .fact:nth-child(n+3) { background: var(--white); }
  .calm .fact, .calm .fact:first-child, .calm .fact:nth-child(3) { padding: 32px 0 32px 20px; }
  .calm .fact:nth-child(odd) { padding-left: 0; border-left: 0; }
  .calm .fact:nth-child(even) { border-left: 1px solid var(--rule); }
  .calm .fact:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
.calm .facts { padding-bottom: clamp(72px, 9vw, 120px); }

/* Stats: dark blue panel with white numbers and yellow plus signs */
.fact strong em.plus { font-style: normal; }
.calm .facts-grid {
  background: var(--navy-deep);
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--container) - 2 * var(--gutter));
  padding: 0 clamp(8px, 3vw, 40px);
}
.calm .fact, .calm .fact:nth-child(n+3) { color: var(--white); }
.calm .fact:first-child { padding-left: 32px; }
.calm .fact + .fact { border-left: 1px solid rgba(255,255,255,.14); }
.calm .fact strong { color: var(--white); }
.calm .fact strong em.plus { color: var(--yellow); }
.calm .fact span { color: rgba(255,255,255,.75); }

/* Small brand touches */
.calm .proj-body span { color: var(--navy); }
.calm .proj:hover .proj-body { box-shadow: 0 0 0 1px var(--rule), var(--shadow); }
.calm .lc-arrow:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.calm .about-badge strong em, .calm .about-badge strong { color: var(--navy-deep); }

@media (max-width: 900px) {
  .calm .facts .container.facts-grid { padding: 0 20px; }
  .calm .fact:nth-child(-n+2), .calm .fact:nth-child(n+3) { background: transparent; }
  .calm .fact, .calm .fact:first-child, .calm .fact:nth-child(n+3) { padding: 30px 0 30px 20px; }
  .calm .fact { justify-content: flex-start; }
  .calm .fact:nth-child(odd) { padding-left: 0; border-left: 0; }
  .calm .fact:nth-child(even) { border-left: 1px solid rgba(255,255,255,.14); }
  .calm .fact:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); }
}

/* Yellow edge on the stats panel, matching the project cards */
.calm .facts-grid { border-left: 4px solid var(--yellow); }

/* Middle feature box ("Quality workmanship") in dark blue */
.calm .feature-dark { background: var(--navy-deep); }
.calm .feature-dark > i { color: var(--yellow); }
.calm .feature-dark h3 { color: var(--white); }
.calm .feature-dark p { color: rgba(255,255,255,.8); }
.calm .feature-dark, .calm .feature-dark + .feature { border-color: transparent; }

/* Phones: taller hero with more breathing room */
@media (max-width: 640px) {
  .hero { min-height: min(88vh, 760px); min-height: min(88svh, 760px); }
  .hero-inner { padding-top: 80px; padding-bottom: 128px; }
  .hero-kicker { margin-bottom: 24px; }
  .hero-sub { margin-top: 24px; }
  .hero-cta { margin-top: 56px; gap: 12px; }
}

/* Laptop and desktop: taller hero with more breathing room */
@media (min-width: 992px) {
  .hero { min-height: clamp(620px, 92vh, 880px); }
  .hero-inner { padding-top: 96px; padding-bottom: 168px; }
  .hero-kicker { margin-bottom: 26px; }
  .hero-sub { margin-top: 28px; }
  .hero-cta { margin-top: 44px; }
}

/* Home "What we do": intro + photo on the left, plain list of services on the right */
.svc-split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px clamp(48px, 7vw, 104px); align-items: start; }
.svc-intro h2 { margin-bottom: 16px; }
.svc-intro p { max-width: 40ch; }
.svc-intro img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin: 32px 0 28px; }
.svc-rows { border-top: 1px solid var(--rule); }
.svc-rows li { border-bottom: 1px solid var(--rule); }
.svc-rows a { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 4px; }
.svc-rows h3 { margin-bottom: 4px; transition: color .2s; }
.svc-rows p { font-size: .95rem; }
.svc-rows i { flex: none; color: var(--navy); transition: transform .2s var(--ease); }
.svc-rows a:hover h3 { color: var(--navy); }
.svc-rows a:hover i { transform: translateX(4px); }

@media (max-width: 900px) {
  .svc-split { grid-template-columns: 1fr; gap: 0; }
  .svc-intro { display: contents; }
  .svc-intro h2 { order: 1; margin-bottom: 12px; }
  .svc-intro p { order: 2; }
  .svc-intro img { order: 3; aspect-ratio: 16 / 9; margin: 24px 0 32px; }
  .svc-rows { order: 4; }
  .svc-intro .text-link { order: 5; justify-self: start; margin-top: 28px; }
}
@media (max-width: 640px) {
  .svc-rows a { padding: 20px 0; gap: 16px; }
  .svc-rows h3 { font-size: 1.1rem; }
}

/* "Have a project in mind?": compact yellow panel */
.calm .cta-section, .calm .section-alt + .cta-section { padding: clamp(56px, 7vw, 88px) 0; }
.calm .cta-section > .container {
  background: var(--yellow);
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--container) - 2 * var(--gutter));
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px);
}
.calm .cta-section h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.calm .cta-section p { color: var(--ink); margin-top: 6px; }

/* "Have a project in mind?": full-width yellow band, no white gaps */
.calm .cta-section, .calm .section-alt + .cta-section { background: var(--yellow); padding: clamp(44px, 6vw, 72px) 0; }
.calm .cta-section > .container { background: transparent; width: 100%; max-width: var(--container); padding: 0 var(--gutter); }

/* =====================================================================
   Blog: listing cards and article pages
   ===================================================================== */
.post-card .proj-body p { font-size: .95rem; color: var(--ink-2); margin-top: 6px; }
.blog-grid { gap: 48px 28px; }

.post-hero h1 { max-width: 26ch; font-size: clamp(1.9rem, 4vw, 3rem); }
.post-section { padding-top: clamp(48px, 6vw, 80px); }
.post { max-width: 760px; margin: 0 auto; }

.post-figure { margin: 0 0 36px; }
.post-figure img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--bg-alt); }
.post-figure figcaption { margin-top: 10px; font-size: .88rem; color: var(--ink-2); line-height: 1.5; }
.post-figure .credit { color: #7A808B; }
.post-figure .credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.post-toc { background: var(--bg-alt); border-left: 4px solid var(--yellow); padding: 22px 26px; margin: 0 0 40px; }
.post-toc-title { font-family: var(--font-head); font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.post-toc ul { display: grid; gap: 6px; }
.post-toc a { color: var(--navy); font-size: .95rem; }
.post-toc a:hover { text-decoration: underline; text-underline-offset: 3px; }

.post-body { font-size: 1.06rem; line-height: 1.8; }
.post-body > p:first-child { font-size: 1.15rem; color: var(--ink); }
.post-body p { margin-bottom: 1.1rem; color: var(--ink-2); }
.post-body strong { color: var(--ink); font-weight: 600; }
.post-body h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin: 52px 0 16px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.post-body h3 { font-size: 1.2rem; margin: 30px 0 10px; }
.post-body ul, .post-body ol { margin: 0 0 1.2rem; padding-left: 1.3em; color: var(--ink-2); }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { margin-bottom: .45rem; padding-left: .2em; }
.post-body li::marker { color: var(--navy); }
.post-body a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.post-body a:hover { text-decoration-color: var(--navy); }
.post-body .post-figure { margin: 36px 0; }

.table-wrap { overflow-x: auto; margin: 24px 0 28px; -webkit-overflow-scrolling: touch; }
.post-body table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; min-width: 520px; }
.post-body th { background: var(--navy-deep); color: var(--white); text-align: left; font-weight: 600; padding: 12px 14px; font-family: var(--font-head); }
.post-body td { padding: 12px 14px; border-bottom: 1px solid var(--rule); color: var(--ink-2); vertical-align: top; }
.post-body tbody tr:nth-child(even) td { background: var(--bg-alt); }

.post-tip { background: var(--yellow-soft); border-left: 4px solid var(--yellow); padding: 18px 22px; margin: 28px 0; }
.post-tip p { margin: 0; color: var(--ink); }

@media (max-width: 640px) {
  .post-body { font-size: 1rem; }
  .post-body > p:first-child { font-size: 1.06rem; }
  .post-toc { padding: 18px 20px; }
  .post-body h2 { margin-top: 40px; }
}

/* Forms: hidden spam trap, status message, optional label */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin-top: 14px; font-weight: 500; color: #0A6B3D; min-height: 1.2em; }
.form-status:empty { display: none; }
.form-status.is-error { color: #B42318; }
.optional { font-weight: 400; color: var(--ink-2); }
button[disabled] { opacity: .6; cursor: progress; }
