/* Manjunatha Trading Contracting & Services — site styles */
:root {
  --bg: #f4f1e9;
  --surface: #ffffff;
  --surface-2: #ebe6da;
  --ink: #23283a;
  --ink-soft: #5a5f6e;
  --line: rgba(35, 40, 58, 0.12);
  --brand: #1f2a55;        /* navy from the MN logo */
  --brand-deep: #161e3e;
  --brand-tint: #e3e6f0;
  --accent: #c9a25e;       /* warm sand, used sparingly */
  --white: #ffffff;
  --radius-lg: 28px;
  --radius: 22px;
  --radius-sm: 14px;
  --gutter: clamp(16px, 2.4vw, 32px);
  --max: 1360px;
  --shadow: 0 1px 2px rgba(20, 24, 40, 0.04), 0 8px 30px rgba(20, 24, 40, 0.06);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 156px;
  --logo-h: 128px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.05; letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 4.4vw, 56px); }
h3 { font-size: 24px; letter-spacing: -0.03em; line-height: 1.1; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 99px; z-index: 100; }
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 18px;
}
.lede { font-size: clamp(18px, 1.5vw, 20px); color: var(--ink-soft); max-width: 640px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 8px 8px 8px 22px; min-height: 52px;
  border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 500; text-decoration: none;
  background: var(--brand); color: var(--white);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--brand-deep); }
.btn .arrow {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.16); transition: transform .3s var(--ease);
}
.btn:hover .arrow { transform: rotate(45deg); }
.btn svg { width: 16px; height: 16px; }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--bg); }
.btn--light .arrow { background: var(--brand); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { background: var(--surface); }
.btn--ghost .arrow { background: var(--brand); color: #fff; }
.btn--plain { padding: 0 24px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; font-size: 15px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 241, 233, 0.88);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 1px 0 var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: var(--logo-h); width: auto; transition: height .45s var(--ease); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .btn { min-height: 46px; padding: 6px 6px 6px 18px; font-size: 15px; }
.header-actions .btn .arrow { width: 32px; height: 32px; }
.menu-toggle {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; color: var(--ink);
}
.menu-toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: background .2s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
.menu-open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }

/* Menu panel */
.menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: var(--bg); padding: 24px var(--gutter) 40px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  overflow-y: auto;
}
.menu-open .menu { opacity: 1; visibility: visible; transform: none; }
.menu-open { overflow: hidden; }
.menu-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.menu nav ul { list-style: none; margin: 0; padding: 0; }
.menu nav a {
  display: flex; justify-content: space-between; align-items: center; text-decoration: none;
  font-size: clamp(30px, 4.4vw, 52px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.25;
  padding: 6px 0; border-bottom: 1px solid var(--line);
}
.menu nav a:hover { color: var(--brand); }
.menu-card { background: var(--brand); color: #fff; border-radius: var(--radius-lg); padding: 32px; align-self: start; }
.menu-card p { color: rgba(255,255,255,.75); }
.menu-card a { text-decoration: none; }
.menu-card .big { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; display: block; margin-bottom: 4px; }

/* Hero */
.hero { padding: 4px 0 0; }
.hero-card {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  min-height: min(66vh, 640px); display: flex; align-items: flex-end;
  background: var(--brand-deep); color: #fff;
}
.hero-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,18,38,.15) 0%, rgba(14,18,38,.35) 40%, rgba(14,18,38,.88) 100%),
              linear-gradient(90deg, rgba(14,18,38,.55) 0%, rgba(14,18,38,0) 65%);
}
.hero-content { position: relative; z-index: 1; padding: clamp(24px, 4vw, 56px); max-width: 1080px; }
.hero .eyebrow { color: rgba(255,255,255,.75); }
.hero h1 { font-size: clamp(36px, 5vw, 68px); letter-spacing: -0.045em; line-height: 1; margin-bottom: 24px; }
.hero p { color: rgba(255,255,255,.82); font-size: clamp(16px, 1.3vw, 18px); max-width: 640px; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-tag {
  position: absolute; z-index: 1; right: clamp(20px, 3vw, 40px); top: clamp(20px, 3vw, 40px);
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #fff; font-size: 13px; font-weight: 500; padding: 8px 14px; border-radius: 999px;
}

/* Sections */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section-head { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 900px; }
.section-head--split { max-width: none; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 40px; }
.section-head p { margin: 0; color: var(--ink-soft); font-size: 18px; }

/* Opening */
.opening { padding: clamp(64px, 8vw, 112px) 0 0; }
.opening-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); }
.opening-statement { font-size: clamp(26px, 3vw, 40px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.2; margin: 0 0 32px; }
.opening-body { columns: 2; column-gap: 40px; color: var(--ink-soft); }
.opening-body p { break-inside: avoid; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.service {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.service--wide { grid-column: span 2; display: grid; grid-template-columns: 1.1fr 1fr; }
.service-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.service--wide .service-media { aspect-ratio: auto; min-height: 380px; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service:hover .service-media img { transform: scale(1.04); }
.service-body { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; flex: 1; }
.service-body h3 { margin-bottom: 12px; }
.service-body > p { color: var(--ink-soft); font-size: 16px; }
.ticks { list-style: none; margin: 8px 0 28px; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--brand); }
.service .link-arrow { margin-top: auto; }
.service-icon {
  width: 52px; height: 52px; border-radius: 16px; background: var(--brand-tint); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 22px;
}
.service-icon svg { width: 26px; height: 26px; }
.services-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.services-mini .service-body > p { margin-bottom: 0; }

.visit {
  margin-top: 16px; background: var(--brand); color: #fff; border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: center;
}
.visit h3 { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 10px; }
.visit p { color: rgba(255,255,255,.75); margin: 0; max-width: 720px; }

/* Value / why section */
.panel { background: var(--surface-2); border-radius: var(--radius-lg); padding: clamp(32px, 6vw, 88px); }
.panel-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 88px); }
.panel-copy p { color: var(--ink-soft); }
.panel-copy h2 { margin-bottom: 28px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: s; }
.steps li { background: var(--surface); border-radius: var(--radius-sm); padding: 22px 24px; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.steps li::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  font-weight: 700; color: var(--brand); font-size: 15px; letter-spacing: .02em;
  width: 44px; height: 44px; border-radius: 50%; background: var(--brand-tint); display: grid; place-items: center;
}
.steps strong { display: block; font-size: 18px; letter-spacing: -0.02em; margin-bottom: 2px; }
.steps span { color: var(--ink-soft); font-size: 15px; }

/* Projects */
.project {
  display: grid; grid-template-columns: 1.5fr 1fr; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.project-media { position: relative; min-height: 460px; }
.project-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chip {
  display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 999px; background: var(--brand-tint); color: var(--brand);
}
.project-media .chip { position: absolute; left: 18px; top: 18px; background: rgba(255,255,255,.92); color: var(--ink); }
.project-body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 16px; }
.project-body .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.project-body p { color: var(--ink-soft); margin: 0; }
.project-body .btn { margin-top: auto; align-self: flex-start; }
.projects-more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.mini-project { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.mini-project .service-media { aspect-ratio: 4 / 3; }
.mini-project .cap { padding: 18px 22px 22px; }
.mini-project .cap strong { display: block; letter-spacing: -0.02em; font-size: 18px; }
.mini-project .cap span { color: var(--ink-soft); font-size: 14px; }
.coming { display: flex; flex-direction: column; justify-content: center; padding: 32px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); border: 0; }
.coming strong { font-size: 22px; letter-spacing: -0.03em; display: block; margin-bottom: 8px; }
.coming p { color: var(--ink-soft); font-size: 15px; }

/* Why choose us */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.why {
  background: var(--surface); border-radius: var(--radius); padding: 30px 30px 28px; min-height: 220px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px; box-shadow: var(--shadow);
}
.why h3 { font-size: 21px; }
.why p { color: var(--ink-soft); font-size: 15px; margin: 0; }
.why .num { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .1em; }
.why-feature {
  grid-column: span 2; background: var(--brand); color: #fff; border-radius: var(--radius); padding: clamp(32px, 4vw, 56px);
  display: grid; grid-template-columns: auto 1fr; gap: 16px 40px; align-items: end; min-height: 260px; position: relative; overflow: hidden;
}
.why-feature .big { font-size: clamp(72px, 10vw, 140px); font-weight: 900; letter-spacing: -0.06em; line-height: .8; }
.why-feature p { color: rgba(255,255,255,.8); font-size: clamp(18px, 1.6vw, 22px); margin: 0; max-width: 560px; }
.why-feature p strong { color: #fff; }
.why-feature::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px; opacity: .08;
  background: url("../img/logo-mark-white.png") center / contain no-repeat;
}

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-card { background: var(--surface); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow); }
.about-card p { color: var(--ink-soft); }
.about-card h2 { margin-bottom: 24px; }
.person { display: flex; align-items: center; gap: 18px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.avatar { width: 60px; height: 60px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; flex: none; }
.person strong { display: block; font-size: 18px; letter-spacing: -0.02em; }
.person span { color: var(--ink-soft); font-size: 14px; }
.about-photo { border-radius: var(--radius); overflow: hidden; position: relative; min-height: 420px; }
.about-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Areas */
.areas { display: flex; flex-wrap: wrap; gap: 10px; }
.areas li {
  list-style: none; background: var(--surface); border-radius: 999px; padding: 10px 18px; font-size: 15px; font-weight: 500; box-shadow: var(--shadow);
}
.areas li.primary { background: var(--brand); color: #fff; }
.areas-wrap { padding: 0; margin: 0; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 6vw, 96px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; font-size: clamp(18px, 1.6vw, 21px); font-weight: 700; letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; transition: transform .3s var(--ease), background .3s; }
.faq summary .pm svg { width: 16px; height: 16px; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--brand); color: #fff; }
.faq details p { color: var(--ink-soft); padding: 0 56px 24px 0; margin: 0; }

/* Contact */
.contact { padding-bottom: clamp(48px, 6vw, 80px); }
.contact-card { background: var(--brand); color: #fff; border-radius: var(--radius-lg); padding: clamp(28px, 6vw, 80px); display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); }
.contact-card .eyebrow { color: rgba(255,255,255,.6); }
.contact-card h2 { margin-bottom: 20px; }
.contact-card > div > p { color: rgba(255,255,255,.78); font-size: 18px; max-width: 460px; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 32px; display: grid; gap: 4px; }
.contact-list li { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact-list svg { width: 20px; height: 20px; flex: none; opacity: .7; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-list small { display: block; color: rgba(255,255,255,.55); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.contact-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-cta .btn--ghost { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.contact-cta .btn--ghost:hover { background: rgba(255,255,255,.08); }
.contact-cta .btn--ghost .arrow { background: #25d366; }

.form { background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 40px); display: grid; gap: 16px; align-content: start; }
.form h3 { margin-bottom: 4px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1px solid transparent; border-radius: 12px;
  padding: 13px 15px; width: 100%; transition: border-color .2s, background .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; }
.hp { position: absolute; left: -9999px; }
.form-status { font-size: 15px; margin: 0; min-height: 1.4em; }
.form-status.ok { color: #1d7a46; }
.form-status.err { color: #b42318; }
.form .btn { justify-self: start; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.form-note { font-size: 13px; color: var(--ink-soft); margin: 0; }

/* Footer */
.site-footer { background: var(--brand-deep); color: rgba(255,255,255,.72); padding: clamp(56px, 7vw, 96px) 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand img { height: 64px; width: auto; margin-bottom: 20px; }
.footer-brand p { max-width: 380px; }
.site-footer h4 { color: #fff; font-size: 12px; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.socials svg { width: 18px; height: 18px; }

/* Mobile action bar */
.mobile-bar { display: none; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-card img { animation: none; transform: none; }
}

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .project { grid-template-columns: 1fr; }
  .project-media { min-height: 360px; }
}
@media (max-width: 860px) {
  .opening-grid, .panel-grid, .faq-grid, .about-grid, .contact-card, .section-head--split, .menu-inner { grid-template-columns: 1fr; }
  .opening-body { columns: 1; }
  .service--wide { grid-column: auto; grid-template-columns: 1fr; }
  .service--wide .service-media { min-height: 0; aspect-ratio: 16 / 10; }
  .services-grid { grid-template-columns: 1fr; }
  .visit { grid-template-columns: 1fr; }
  .why-feature { grid-template-columns: 1fr; }
  .about-photo { min-height: 300px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 72px; }
  .brand img { max-width: calc(100vw - 92px); object-fit: contain; object-position: left; }
  .header-actions .btn { display: none; }
  .hero-card { min-height: 62vh; border-radius: 22px; }
  .hero-tag { display: none; }
  .hero-actions .btn { width: 100%; justify-content: space-between; }
  .why-grid, .services-mini, .projects-more { grid-template-columns: 1fr; }
  .why-feature { grid-column: auto; }
  .why { min-height: 0; }
  .form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .faq details p { padding-right: 0; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(244,241,233,.94);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 -1px 0 var(--line);
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 15px; }
  .mobile-bar a:first-child { background: var(--brand); color: #fff; }
  .mobile-bar a:last-child { background: #25d366; color: #0b2e17; }
  .mobile-bar svg { width: 18px; height: 18px; }
}

/* ===== Motion & interaction layer ===== */

/* Scroll progress bar */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 60; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* Header hides on scroll down, returns on scroll up */
.site-header { transition: box-shadow .3s, transform .45s var(--ease); }
.site-header.hide { transform: translateY(-100%); }
.menu-open .site-header { transform: none; }

/* Hero entrance */
.hero-card img { will-change: transform; }
.hero-content > * { opacity: 0; transform: translateY(22px); animation: rise .9s var(--ease) forwards; }
.hero-content > .eyebrow { animation-delay: .15s; }
.hero-content > h1 { opacity: 1; transform: none; animation: none; }
.hero-content > p { animation-delay: .75s; }
.hero-content > .hero-actions { animation-delay: .9s; }
.hero-tag { opacity: 0; animation: rise .9s var(--ease) 1.1s forwards; }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero h1 .w > span { display: inline-block; transform: translateY(105%); animation: wordUp .9s var(--ease) forwards; animation-delay: calc(.25s + var(--i) * 55ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes wordUp { to { transform: none; } }
.scroll-cue { position: absolute; z-index: 1; right: clamp(20px, 3vw, 40px); bottom: clamp(20px, 3vw, 40px); width: 28px; height: 46px; border: 1.5px solid rgba(255,255,255,.5); border-radius: 20px; opacity: 0; animation: rise .9s var(--ease) 1.3s forwards; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* Services ticker */
.ticker { display: flex; overflow: hidden; margin-top: 16px; padding: 22px 0; border-block: 1px solid var(--line); user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; align-items: center; flex: none; gap: 36px; padding-right: 36px; animation: ticker 110s linear infinite; }
.ticker span { font-size: clamp(22px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.03em; white-space: nowrap; color: var(--ink); }
.ticker span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px var(--ink); }
.ticker i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-100%); } }

/* Card hover lift */
.service, .why, .mini-project, .project, .about-card { transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.service:hover, .why:hover, .project:hover { transform: translateY(-6px); box-shadow: 0 2px 4px rgba(20,24,40,.04), 0 22px 50px rgba(20,24,40,.12); }
.project-media img, .about-photo img { transition: transform 1.2s var(--ease); }
.project:hover .project-media img, .about-photo:hover img { transform: scale(1.04); }

/* Image reveal: photos settle in from a slight zoom */
.reveal .service-media img, .reveal.project .project-media img, .about-photo.reveal img { transform: scale(1.14); transition: transform 1.6s var(--ease); }
.reveal.in .service-media img, .reveal.in.project .project-media img, .about-photo.reveal.in img { transform: scale(1); }
.reveal.in.service:hover .service-media img { transform: scale(1.05); }

/* Process steps cascade in */
.steps.reveal { opacity: 1; transform: none; }
.steps li { opacity: 0; transform: translateX(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 120ms); }
.steps.in li { opacity: 1; transform: none; }

/* Why "One" card: slow drifting mark */
.why-feature::after { animation: drift 12s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(-30px, 30px) rotate(-6deg); } }

/* Areas chips pop in */
.areas.reveal { opacity: 1; transform: none; }
.areas li { opacity: 0; transform: scale(.85); transition: opacity .5s var(--ease), transform .5s var(--ease), background .25s, color .25s; transition-delay: calc(var(--i, 0) * 45ms); }
.areas.in li { opacity: 1; transform: none; }
.areas li:hover { background: var(--brand); color: #fff; }

/* FAQ smooth open */
.faq details .answer { overflow: hidden; }

/* Projects: wide "coming soon" card */
.coming--wide { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
.coming--wide p { margin: 0; }
@media (max-width: 640px) { .coming--wide { flex-direction: column; align-items: flex-start; } }

@media (prefers-reduced-motion: reduce) {
  .hero-content > *, .hero-tag, .scroll-cue, .hero h1 .w > span { animation: none !important; opacity: 1 !important; transform: none !important; }
  .ticker-track { animation: none; }
  .steps li, .areas li { opacity: 1; transform: none; transition: none; }
  .reveal .service-media img, .reveal.project .project-media img, .about-photo.reveal img { transform: none; transition: none; }
  .why-feature::after { animation: none; }
}
/* Parallax room: image is taller than the card so it can drift */
.hero-card img[data-parallax] { inset: auto; top: -14%; left: 0; height: 128%; }
@media (max-width: 640px) { .scroll-cue { display: none; } }

/* ===== Services showcase: category tabs + swipeable cards ===== */
.svc-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.svc-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.svc-tabs::-webkit-scrollbar { display: none; }
.svc-tabs button {
  flex: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 500; color: var(--ink);
  padding: 10px 14px 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s;
}
.svc-tabs button span { font-size: 12px; font-weight: 700; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); transition: inherit; }
.svc-tabs button:hover { border-color: var(--brand); }
.svc-tabs button[aria-selected="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.svc-tabs button[aria-selected="true"] span { background: rgba(255,255,255,.18); color: #fff; }
.svc-nav { display: flex; gap: 8px; flex: none; }
.svc-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background .25s, color .25s, opacity .25s, transform .25s var(--ease); }
.svc-btn svg { width: 18px; height: 18px; }
.svc-btn[data-dir="-1"] svg { transform: rotate(180deg); }
.svc-btn:hover:not(:disabled) { background: var(--brand); color: #fff; transform: scale(1.06); }
.svc-btn:disabled { opacity: .35; cursor: default; }

.svc-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 16px) / 4); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  scrollbar-width: none; padding: 6px 2px 18px; margin: -6px -2px 0; cursor: grab;
}
.svc-track::-webkit-scrollbar { display: none; }
.svc-track.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.svc-track.dragging .svc-card { pointer-events: none; }
.svc-track:focus-visible { outline-offset: 6px; border-radius: var(--radius); }
.svc-card {
  scroll-snap-align: start; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.svc-card[hidden] { display: none; }
.svc-card.enter { animation: cardIn .6s var(--ease) both; animation-delay: calc(var(--d, 0) * 60ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 2px 4px rgba(20,24,40,.04), 0 22px 50px rgba(20,24,40,.12); }
.svc-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); user-select: none; }
.svc-card:hover .svc-media img { transform: scale(1.06); }
.svc-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,18,38,0) 55%, rgba(14,18,38,.35)); pointer-events: none; }
.svc-tag { position: absolute; z-index: 1; left: 14px; top: 14px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink); }
.svc-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.svc-body h3 { font-size: 20px; }
.svc-body p { color: var(--ink-soft); font-size: 15px; margin: 0 0 6px; }
.svc-body .link-arrow { margin-top: auto; }

.svc-foot { display: flex; align-items: center; gap: 20px; margin-top: 8px; }
.svc-progress { flex: 1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.svc-progress span { display: block; height: 100%; width: 25%; background: var(--brand); border-radius: 3px; transition: width .3s var(--ease), transform .3s var(--ease); }
.svc-count { font-size: 13px; font-weight: 500; color: var(--ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Highlight form select when a card's "Get a quote" was used */
.field select.flash { animation: flash 1.4s var(--ease); }
@keyframes flash { 0%, 60% { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(201,162,94,.25); } 100% { box-shadow: 0 0 0 0 rgba(201,162,94,0); } }

@media (max-width: 1100px) { .svc-track { grid-auto-columns: calc((100% - 2 * 16px) / 3); } }
@media (max-width: 860px) {
  .svc-track { grid-auto-columns: calc((100% - 16px) / 2); }
  .svc-bar { flex-direction: column; align-items: stretch; }
  .svc-nav { display: none; }
}
@media (max-width: 640px) {
  .svc-track { grid-auto-columns: 82%; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .svc-tabs { margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
}
@media (prefers-reduced-motion: reduce) {
  .svc-card.enter { animation: none; }
  .svc-track { scroll-behavior: auto; }
}

/* ===== Multi-page additions ===== */

/* Page fade-in / fade-out between pages */
main, .site-footer { animation: pageIn .6s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
body.leaving main, body.leaving .site-footer { opacity: 0; transform: translateY(-6px); transition: opacity .22s ease, transform .22s ease; }

/* Desktop navigation */
.main-nav { display: flex; gap: 4px; margin-left: auto; margin-right: 8px; }
.main-nav a { position: relative; text-decoration: none; font-size: 16px; font-weight: 500; padding: 10px 14px; border-radius: 999px; transition: background .25s; }
.main-nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--brand); }
.menu-toggle { display: none; }
.menu nav a[aria-current="page"] { color: var(--brand); }
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .menu-toggle { display: grid; }
}

/* Inner-page hero */
.hero--page .hero-card { min-height: clamp(280px, 38vh, 420px); }
.hero--page h1 { font-size: clamp(38px, 5.4vw, 72px); margin-bottom: 18px; }
.hero--page p { margin-bottom: 0; }
.crumbs { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: rgba(255,255,255,.7); margin-bottom: 18px; opacity: 0; animation: rise .9s var(--ease) .1s forwards; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: #fff; }

/* Services page: sticky category bar with scroll-spy */
.cat-nav { position: sticky; top: var(--header-h); z-index: 30; margin-top: 16px; transition: top .45s var(--ease); }
body:has(.site-header.hide) .cat-nav { top: 12px; }
.cat-nav-inner { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 8px; border-radius: 999px; background: rgba(255,255,255,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow); width: max-content; max-width: 100%; margin: 0 auto; }
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-nav a { flex: none; text-decoration: none; font-size: 15px; font-weight: 500; padding: 9px 16px; border-radius: 999px; transition: background .3s var(--ease), color .3s var(--ease); }
.cat-nav a:hover { background: var(--bg); }
.cat-nav a.active { background: var(--brand); color: #fff; }
.cat-section { scroll-margin-top: calc(var(--header-h) + 82px); }
.cat-section + .cat-section { padding-top: 0; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc-grid > .reveal { display: flex; }
.svc-grid .svc-card { flex: 1; }
@media (max-width: 1024px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .svc-grid { grid-template-columns: 1fr; }
  .cat-nav { top: var(--header-h); }
  .cat-nav-inner { border-radius: 18px; }
}

/* Home carousel footer link */
.svc-foot .link-arrow { white-space: nowrap; }

/* Shared call-to-action band */
.cta-band { padding: 0 0 clamp(48px, 6vw, 80px); }
.cta-card { background: var(--brand); color: #fff; border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 1.3fr auto; align-items: center; gap: 32px 56px; position: relative; overflow: hidden; }
.cta-card .eyebrow { color: rgba(255,255,255,.6); }
.cta-card h2 { margin-bottom: 14px; }
.cta-card p { color: rgba(255,255,255,.78); margin: 0; max-width: 560px; font-size: 18px; }
.cta-card::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 260px; height: 260px; opacity: .07; background: url("../img/logo-mark-white.png") center / contain no-repeat; animation: drift 12s ease-in-out infinite alternate; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }
.cta-actions .btn { justify-content: space-between; }
.cta-actions .btn--ghost { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.cta-actions .btn--ghost:hover { background: rgba(255,255,255,.08); }
.cta-actions .btn--ghost .arrow { background: #25d366; }
@media (max-width: 860px) { .cta-card { grid-template-columns: 1fr; } .cta-actions { flex-direction: row; flex-wrap: wrap; } }

.contact.section { padding-bottom: clamp(56px, 7vw, 96px); }
.project-body p a, .section-head p a, .faq p a { color: var(--brand); }
@media (prefers-reduced-motion: reduce) {
  main, .site-footer, .crumbs { animation: none; opacity: 1; }
  .cta-card::after { animation: none; }
}

/* About: CEO photo */
img.avatar { object-fit: cover; background: var(--surface-2); }
.leader { display: grid; grid-template-columns: minmax(280px, 0.9fr) 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.leader-photo {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5;
  background: radial-gradient(120% 80% at 50% 100%, var(--brand-tint) 0%, #fff 70%);
  box-shadow: var(--shadow);
}
.leader-photo img { position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; max-width: none; transform: translateX(-50%); mix-blend-mode: multiply; transition: transform 1.2s var(--ease); }
.leader-photo:hover img { transform: translateX(-50%) scale(1.03); }
.leader-photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.leader-copy p { color: var(--ink-soft); }
.leader-copy h2 { margin-bottom: 22px; }
.leader-name { font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; letter-spacing: -0.03em; color: var(--ink) !important; margin: 0; }
.leader-role { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent) !important; margin: 4px 0 22px; }
@media (max-width: 860px) { .leader { grid-template-columns: 1fr; } .leader-photo { max-width: 460px; } }

/* Larger logo: step down on narrower desktops so the nav still fits */
@media (max-width: 1240px) and (min-width: 1025px) { :root { --header-h: 124px; --logo-h: 96px; } }
@media (max-width: 1024px) and (min-width: 641px) { :root { --header-h: 144px; --logo-h: 116px; } }
@media (max-width: 640px) { :root { --header-h: 96px; --logo-h: 68px; } }
