/* ==========================================================================
   Ali Ibrahim Holdings Sdn Bhd — corporate website
   Colour system derived from the official company logo.
   ========================================================================== */

:root {
  /* Brand greens (sampled from the official logo) */
  --green-900: #04291b;
  --green-850: #063422;
  --green-800: #073d28;
  --green-700: #024f35;
  --green-600: #0a6a45;
  --green-500: #14884f;
  --green-400: #2aa564;

  /* Accent — used sparingly */
  --red: #ad080b;
  --red-soft: #c61218;

  /* Neutrals */
  --white: #ffffff;
  --off-white: #f6f7f5;
  --grey-100: #eceeeb;
  --grey-200: #dfe3df;
  --grey-300: #c6ccc6;
  --grey-500: #7b847d;
  --charcoal: #1f2724;
  --charcoal-soft: #3b443f;

  --text: #1f2724;
  --text-muted: #56605a;
  --text-invert: #ffffff;

  --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;
  --radius-lg: 8px;

  --shadow-sm: 0 1px 2px rgba(4, 41, 27, .06), 0 4px 14px rgba(4, 41, 27, .07);
  --shadow-md: 0 4px 10px rgba(4, 41, 27, .07), 0 18px 40px rgba(4, 41, 27, .11);
  --shadow-lg: 0 10px 24px rgba(4, 41, 27, .1), 0 30px 70px rgba(4, 41, 27, .16);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------- reset ---- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 136px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 0 .6em;
  color: var(--green-900);
  text-wrap: balance;
}

h1 { font-size: clamp(2.35rem, 5.6vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.85rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
p  { margin: 0 0 1.1em; }

:focus-visible {
  outline: 3px solid var(--green-500);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--green-700);
  color: #fff;
  padding: .85rem 1.4rem;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

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

.section { padding: clamp(4rem, 8vw, 7.5rem) 0; }
.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--alt { background: var(--off-white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green-600);
  margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--red);
  flex: none;
}
.eyebrow--light { color: rgba(255, 255, 255, .82); }

.lede { font-size: clamp(1.02rem, 1.3vw, 1.12rem); color: var(--text-muted); max-width: 62ch; }
.section-head { max-width: 68ch; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.muted { color: var(--text-muted); }

/* --------------------------------------------------------------- buttons -- */
.btn {
  --btn-bg: var(--green-700);
  --btn-fg: #fff;
  --btn-bd: var(--green-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 52px;
  padding: .9rem 1.7rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { --btn-bg: var(--green-600); --btn-bd: var(--green-600); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--ghost { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.55); }
.btn--ghost:hover { --btn-bg: rgba(255,255,255,.12); --btn-bd: #fff; }

.btn--outline { --btn-bg: transparent; --btn-fg: var(--green-700); --btn-bd: var(--grey-300); }
.btn--outline:hover { --btn-bg: var(--green-700); --btn-fg: #fff; --btn-bd: var(--green-700); }

.btn--sm { min-height: 44px; padding: .6rem 1.15rem; font-size: .88rem; }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 600;
  color: var(--green-700);
  border-bottom: 2px solid var(--grey-200);
  padding-bottom: 3px;
  transition: border-color .25s var(--ease), gap .25s var(--ease);
}
.textlink:hover { border-color: var(--green-500); gap: .85rem; }
.textlink svg { flex: none; }

/* ---------------------------------------------------------------- header -- */
.topbar {
  background: var(--green-900);
  color: rgba(255, 255, 255, .86);
  font-size: .82rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 40px;
  padding-block: .35rem;
}
.topbar__tag { letter-spacing: .09em; text-transform: uppercase; font-size: .72rem; color: rgba(255,255,255,.62); }
.topbar__links { display: flex; align-items: center; gap: 1.6rem; }
.topbar__links a { display: inline-flex; align-items: center; gap: .45rem; transition: color .2s var(--ease); }
.topbar__links a:hover { color: #fff; }
.topbar__links svg { opacity: .7; }

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--grey-100);
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.header.is-stuck { box-shadow: 0 6px 24px rgba(4, 41, 27, .09); border-color: transparent; }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 92px;
  padding-block: .7rem;
}
.header__logo img {
  height: clamp(46px, 5.6vw, 68px);
  width: auto;
}
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.1vw, 2.1rem); }
.nav a:not(.btn) {
  position: relative;
  font-size: .92rem;
  font-weight: 500;
  color: var(--charcoal);
  padding: .4rem 0;
  transition: color .22s var(--ease);
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--green-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav a:not(.btn):hover, .nav a:not(.btn).is-active { color: var(--green-700); }
.nav a:not(.btn):hover::after, .nav a:not(.btn).is-active::after { transform: scaleX(1); }

.nav > .btn { display: none; }
.header__cta { display: flex; align-items: center; gap: .75rem; }

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span {
  position: relative;
  display: block;
  width: 20px; height: 2px;
  background: var(--green-900);
  transition: background .2s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px; height: 2px;
  background: var(--green-900);
  transition: transform .28s var(--ease), top .2s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* ------------------------------------------------------------------ hero -- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 82vh, 760px);
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(6rem, 10vw, 8rem);
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 42% 45%;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(103deg, rgba(4, 41, 27, .94) 6%, rgba(4, 41, 27, .82) 38%, rgba(4, 41, 27, .42) 72%, rgba(4, 41, 27, .34) 100%),
    linear-gradient(to top, rgba(4, 41, 27, .78) 0%, rgba(4, 41, 27, 0) 46%);
}
.hero__inner { position: relative; max-width: 47rem; }
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero h1 .line { display: block; }
.hero__copy {
  font-size: clamp(1.02rem, 1.35vw, 1.16rem);
  color: rgba(255, 255, 255, .88);
  max-width: 54ch;
  margin-bottom: 2.1rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* highlight strip */
.highlights {
  position: relative;
  margin-top: clamp(-5.5rem, -6vw, -4rem);
  z-index: 3;
}
.highlights__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.highlight {
  padding: clamp(1.5rem, 2.6vw, 2.2rem) clamp(1.25rem, 2.2vw, 2rem);
  border-right: 1px solid var(--grey-100);
}
.highlight:last-child { border-right: 0; }
.highlight__label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green-600);
  margin: 0 0 .55rem;
}
.highlight__value {
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 1.55vw, 1.3rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--green-900);
  margin: 0;
  letter-spacing: -.01em;
}
.highlight__value--big { font-size: clamp(1.9rem, 3vw, 2.5rem); }

/* ----------------------------------------------------------------- about -- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about__media { position: relative; }
.about__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.about__badge {
  position: absolute;
  right: clamp(-1rem, -1vw, 0rem);
  bottom: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--green-700);
  color: #fff;
  padding: 1.1rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  text-align: left;
}
.about__badge span {
  display: block;
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
  margin-bottom: .15rem;
}
.about__badge strong {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
}
.about__facts {
  list-style: none;
  margin: 2rem 0 2.2rem;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--grey-200);
}
.about__facts li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--grey-200);
}
.about__facts b {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-600);
  min-width: 2.2rem;
}
.about__facts span { color: var(--text-muted); }

/* -------------------------------------------------------------- services -- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(.9rem, 1.5vw, 1.35rem);
}
.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 260px;
  padding: clamp(1.5rem, 2.4vw, 2.2rem);
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: var(--green-850);
}
.svc__media { position: absolute; inset: 0; z-index: -2; }
.svc__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.svc::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(4, 41, 27, .96) 6%, rgba(4, 41, 27, .84) 42%, rgba(4, 41, 27, .62) 100%);
  transition: opacity .45s var(--ease);
}
.svc:hover .svc__media img { transform: scale(1.045); }
.svc:hover::after { opacity: .92; }

.svc__num {
  position: absolute;
  top: clamp(1.2rem, 2vw, 1.8rem);
  left: clamp(1.5rem, 2.4vw, 2.2rem);
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: rgba(255, 255, 255, .55);
}
.svc h3 { color: #fff; margin-bottom: .5rem; }
.svc p {
  color: rgba(255, 255, 255, .84);
  font-size: .94rem;
  margin-bottom: 1.1rem;
  max-width: 46ch;
}
.svc__tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.svc__tags li {
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .02em;
  padding: .32rem .7rem;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 100px;
  color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .06);
}

.svc--feature  { grid-column: 1 / span 7;  grid-row: 1 / span 2; min-height: 470px; }
.svc--stack-a  { grid-column: 8 / span 5;  grid-row: 1; min-height: 228px; }
.svc--stack-b  { grid-column: 8 / span 5;  grid-row: 2; min-height: 228px; }
.svc--wide     { grid-column: 1 / span 5;  grid-row: 3; min-height: 340px; }
.svc--wide-alt { grid-column: 6 / span 7;  grid-row: 3; min-height: 340px; }

/* ------------------------------------------------------------------ band -- */
.band {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(300px, 42vw, 440px);
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  color: #fff;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}
.band__media { position: absolute; inset: 0; z-index: -2; }
.band__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.band__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4, 41, 27, .86), rgba(4, 41, 27, .9));
}
.band h2 {
  color: #fff;
  font-size: clamp(1.7rem, 4.2vw, 3.1rem);
  max-width: 20ch;
  margin: 0 auto;
}
.band__rule { width: 54px; height: 3px; background: var(--red); margin: 0 auto 1.6rem; }

/* ------------------------------------------------------------ experience -- */
.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.1rem, 2vw, 1.75rem);
}
.project {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--grey-200); }
.project__media { position: relative; overflow: hidden; background: var(--green-850); }
.project__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.project:hover .project__media img { transform: scale(1.04); }
.project__chip {
  position: absolute;
  left: 1rem; top: 1rem;
  background: rgba(4, 41, 27, .88);
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .35rem .7rem;
  border-radius: 3px;
  backdrop-filter: blur(4px);
}
.project__body { padding: clamp(1.25rem, 2vw, 1.7rem); display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.project__body h3 { font-size: 1.12rem; margin: 0; }
.project__meta {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--green-600);
  margin: 0;
}
.project__body p { font-size: .92rem; color: var(--text-muted); margin: 0; }

.projects__note {
  margin-top: 2rem;
  font-size: .88rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------- process -- */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
  counter-reset: step;
}
.step { position: relative; padding-top: 2.6rem; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 0; left: 0;
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--green-600);
}
.step::after {
  content: "";
  position: absolute;
  top: .55rem; left: 2.6rem; right: 0;
  height: 1px;
  background: var(--grey-200);
}
.step:last-child::after { display: none; }
.step h3 {
  font-size: 1.02rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .35rem;
}
.step p { font-size: .88rem; color: var(--text-muted); margin: 0; }

/* ------------------------------------------------------------- resources -- */
.resources {
  background: var(--green-900);
  color: rgba(255, 255, 255, .86);
}
.resources h2, .resources h3 { color: #fff; }
.resources__grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.resources__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.resources p { color: rgba(255, 255, 255, .8); }
.equip {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .65rem;
}
.equip li {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .75rem .9rem;
  font-size: .88rem;
  color: #fff;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
}
.equip li::before {
  content: "";
  width: 6px; height: 6px;
  flex: none;
  background: var(--green-400);
  border-radius: 50%;
}

/* ------------------------------------------------------------ industries -- */
.industries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(.85rem, 1.5vw, 1.25rem);
}
.industry {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 180px;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: var(--green-800);
}
.industry__media { position: absolute; inset: 0; z-index: -2; }
.industry__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.industry::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(4, 41, 27, .94) 8%, rgba(4, 41, 27, .66) 100%);
}
.industry:hover .industry__media img { transform: scale(1.05); }
.industry h3 {
  color: #fff;
  font-size: 1rem;
  letter-spacing: -.01em;
  margin: 0;
}

/* --------------------------------------------------------------- contact -- */
.contact { position: relative; background: var(--green-900); color: rgba(255, 255, 255, .86); isolation: isolate; overflow: hidden; }
.contact__bg { position: absolute; inset: 0; z-index: -2; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .18; }
.contact__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(4, 41, 27, .96) 40%, rgba(4, 41, 27, .82) 100%);
}
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.contact h2 { color: #fff; }
.contact__intro { color: rgba(255, 255, 255, .82); max-width: 44ch; }
.contact__details { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; gap: 1.5rem; }
.contact__details li { display: flex; gap: 1rem; align-items: flex-start; }
.contact__details .ico {
  flex: none;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .05);
}
.contact__details .ico svg { width: 18px; height: 18px; stroke: var(--green-400); }
.contact__details h3 {
  color: rgba(255, 255, 255, .6);
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: 0 0 .3rem;
}
.contact__details p { color: #fff; margin: 0; font-size: .98rem; line-height: 1.6; }
.contact__details a { border-bottom: 1px solid rgba(255, 255, 255, .3); transition: border-color .2s var(--ease); }
.contact__details a:hover { border-color: var(--green-400); }

.form-card {
  background: #fff;
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.6rem);
  box-shadow: var(--shadow-lg);
}
.form-card h3 { margin-bottom: .35rem; }
.form-card > p.muted { font-size: .9rem; margin-bottom: 1.6rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--charcoal);
}
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  background: var(--off-white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: .8rem .9rem;
  min-height: 48px;
  width: 100%;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field textarea { min-height: 128px; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2356605a' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .95rem center;
  padding-right: 2.4rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  background: #fff;
  border-color: var(--green-500);
  outline: none;
  box-shadow: 0 0 0 3px rgba(20, 136, 79, .14);
}
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: .4rem; }
.form-note { font-size: .8rem; color: var(--text-muted); margin: 0; flex: 1 1 14rem; }
.form-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: .85rem 1rem;
  border-radius: var(--radius);
  font-size: .88rem;
  background: var(--off-white);
  border: 1px solid var(--grey-200);
}
.form-status[hidden] { display: none; }
.hp { position: absolute; left: -9999px; }

/* ---------------------------------------------------------------- footer -- */
.footer { background: var(--green-900); color: rgba(255, 255, 255, .72); padding: clamp(3rem, 6vw, 4.5rem) 0 0; }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.footer__logo {
  display: inline-block;
  background: #fff;
  padding: .9rem 1.1rem;
  border-radius: var(--radius);
  margin-bottom: 1.4rem;
}
.footer__logo img { height: 62px; width: auto; }
.footer p { font-size: .92rem; margin-bottom: .6rem; }
.footer h3 {
  color: #fff;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer ul a { font-size: .92rem; transition: color .2s var(--ease); }
.footer ul a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 1.4rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  justify-content: space-between;
  font-size: .82rem;
  color: rgba(255, 255, 255, .55);
}
.footer__bottom p { margin: 0; font-size: .82rem; }

/* ------------------------------------------------------------ animation -- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* -------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .svc--feature { grid-column: span 12; grid-row: auto; min-height: 400px; }
  .svc--stack-a, .svc--stack-b { grid-column: span 6; grid-row: auto; min-height: 250px; }
  .svc--wide, .svc--wide-alt { grid-column: span 6; grid-row: auto; min-height: 320px; }
  .highlights__grid { grid-template-columns: repeat(2, 1fr); }
  .highlight:nth-child(2) { border-right: 0; }
  .highlight:nth-child(1), .highlight:nth-child(2) { border-bottom: 1px solid var(--grey-100); }
  .process { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; }
  .step:nth-child(3)::after { display: none; }
  .resources__grid, .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__media img { aspect-ratio: 16 / 10; }
  .resources__media img { aspect-ratio: 16 / 9; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 88px; }
  .topbar { display: none; }
  .nav-toggle { display: inline-flex; }
  .header__cta .btn { display: none; }
  .header__inner { min-height: 72px; }

  .nav {
    position: fixed;
    inset: 72px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--grey-100);
    box-shadow: var(--shadow-md);
    padding: .5rem var(--gutter) 1.5rem;
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) {
    padding: 1rem .25rem;
    font-size: 1.02rem;
    border-bottom: 1px solid var(--grey-100);
  }
  .nav a:not(.btn)::after { display: none; }
  .nav > .btn { display: inline-flex; margin-top: 1.1rem; width: 100%; }

  .projects { grid-template-columns: repeat(2, 1fr); }
  .industries { grid-template-columns: repeat(2, 1fr); }
  .equip { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .hero { min-height: auto; padding-bottom: 5.5rem; }
  .hero__media img { object-position: 52% 45%; }
  .hero__actions .btn { flex: 1 1 100%; }
  .highlights { margin-top: -3rem; }
  .svc--feature, .svc--stack-a, .svc--stack-b, .svc--wide, .svc--wide-alt {
    grid-column: span 12;
    grid-row: auto;
    min-height: 300px;
  }
  .projects { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; row-gap: 1.6rem; }
  .step { padding-top: 0; padding-left: 3.2rem; }
  .step::before { top: .15rem; }
  .step::after { display: none; }
  .industries { grid-template-columns: 1fr; }
  .equip { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .about__badge { position: static; display: inline-block; margin-top: -2.5rem; margin-left: 1.25rem; }
}

@media (max-width: 420px) {
  .highlights__grid { grid-template-columns: 1fr; }
  .highlight { border-right: 0; border-bottom: 1px solid var(--grey-100); }
  .highlight:last-child { border-bottom: 0; }
}

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

@media print {
  .header, .topbar, .nav, .hero__actions, .form-card { display: none !important; }
  body { color: #000; }
}

/* ------------------------------------------------------- simple pages ---- */
.page-simple {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(3rem, 8vw, 6rem) 0;
  background: var(--off-white);
}
.page-simple__inner { max-width: 44rem; text-align: center; }
.page-simple__inner .eyebrow { justify-content: center; }
.page-simple__inner .lede { margin-inline: auto; margin-bottom: 2rem; }
.page-simple__inner a:not(.btn) {
  color: var(--green-700);
  font-weight: 600;
  border-bottom: 1px solid var(--grey-300);
}
.page-simple__logo {
  height: clamp(64px, 9vw, 92px);
  width: auto;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}

/* ----------------------------------------- larger touch targets on mobile */
@media (max-width: 900px) {
  .footer ul { gap: .2rem; }
  .footer ul a { display: inline-block; padding-block: .55rem; }
  .contact__details p { line-height: 1.9; }
  .contact__details a { display: inline-block; padding-block: .35rem; }
  .textlink { padding-block: .6rem 9px; }
  .topbar__links a { padding-block: .4rem; }
}
