/* ============================================================
   Al Ajmi Engineering Consultants (AEC)
   Graphite + amber architect's palette — evidence-based tokens
   ============================================================ */

:root {
  --bg: #FBFAF8;          /* warm off-white / paper-concrete */
  --surface: #FFFFFF;     /* cards, panels */
  --surface-2: #F4F2EE;   /* subtle alt surface */
  --text: #1A1C1E;        /* near-black graphite */
  --muted: #5E6266;       /* secondary text */
  --primary: #2D3033;     /* charcoal block (AEC mark) */
  --primary-deep: #212427;
  --secondary: #8A8F94;   /* cool grey */
  --accent: #E2761B;      /* AEC amber-orange */
  --accent-soft: #F4E4D3;
  --accent-deep: #C25E0C;
  --border: #E4E2DD;      /* hairline on warm neutral */
  --border-dark: rgba(255,255,255,.14);
  --focus: #E2761B;

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --maxw: 1280px;
  --pad: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 9vw, 132px);
  --radius: 4px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-sm: 0 1px 2px rgba(26,28,30,.04), 0 2px 8px rgba(26,28,30,.04);
  --shadow-md: 0 8px 24px rgba(26,28,30,.08), 0 2px 8px rgba(26,28,30,.05);
  --shadow-lg: 0 24px 60px rgba(26,28,30,.16), 0 8px 20px rgba(26,28,30,.08);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }

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

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; }
.display {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
}
.h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); letter-spacing: -0.025em; }
.h3 { font-size: clamp(1.25rem, 2.2vw, 1.65rem); letter-spacing: -0.015em; }

.eyebrow {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: .65rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1.5px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow--light { color: var(--accent); }
.eyebrow--center { justify-content: center; }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); line-height: 1.6; }
.muted { color: var(--muted); }
.measure { max-width: 56ch; }
.measure-sm { max-width: 44ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.6rem;
  min-height: 50px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: -0.005em;
  border-radius: var(--radius);
  transition: transform .35s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  border: 1.5px solid transparent;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(226,118,27,.32); }
.btn--dark { background: var(--primary); color: #fff; }
.btn--dark:hover { background: var(--primary-deep); transform: translateY(-2px); }
.btn--ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn--ghost:hover { border-color: var(--text); transform: translateY(-2px); }
.btn--ghost-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); transform: translateY(-2px); }
.btn--block { width: 100%; }

.txtlink {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  color: var(--text);
  padding-bottom: 2px;
  transition: gap .3s var(--ease), color .25s var(--ease);
}
.txtlink svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.txtlink:hover { color: var(--accent-deep); gap: .85rem; }
.txtlink:hover svg { transform: translateX(2px); }

/* ============================================================
   Header
   ============================================================ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  background: rgba(251,250,248,.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  height: 96px;
  transition: height .4s var(--ease);
}
.header.is-scrolled {
  box-shadow: 0 6px 24px rgba(26,28,30,.07);
}
.header.is-scrolled .header__inner { height: 78px; }

.brand { display: flex; align-items: center; gap: .8rem; flex: none; }
.brand__logo { height: 64px; width: auto; transition: height .4s var(--ease); }
.header.is-scrolled .brand__logo { height: 52px; }

.nav { display: flex; align-items: center; gap: 2.2rem; }
.nav__link {
  position: relative;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .95rem;
  color: var(--text);
  padding: .35rem 0;
  transition: color .25s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1.5px; background: var(--accent);
  transition: width .32s var(--ease);
}
.nav__link:hover { color: var(--accent-deep); }
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }

.header__cta { display: flex; align-items: center; gap: 1rem; flex: none; }
.header__tel {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: .92rem;
  color: var(--text);
  transition: color .25s var(--ease);
}
.header__tel svg { width: 17px; height: 17px; color: var(--accent); }
.header__tel:hover { color: var(--accent-deep); }
.header .btn { padding: .7rem 1.2rem; min-height: 44px; }

/* burger */
.burger {
  display: none;
  width: 46px; height: 46px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span { width: 22px; height: 2px; background: var(--text); transition: transform .35s var(--ease), opacity .25s var(--ease); }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 99;
  background: var(--bg);
  padding: 100px var(--pad) 40px;
  display: flex; flex-direction: column;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform .5s var(--ease), opacity .4s var(--ease), visibility .4s;
}
.drawer.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
.drawer__nav { display: flex; flex-direction: column; gap: .2rem; border-top: 1px solid var(--border); }
.drawer__link {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.6rem, 8vw, 2.4rem);
  letter-spacing: -0.02em;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  color: var(--text);
}
.drawer__link .idx { font-family: var(--font-body); font-size: .8rem; font-weight: 500; color: var(--secondary); letter-spacing: .1em; }
.drawer__foot { margin-top: auto; padding-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.drawer__foot .btn { width: 100%; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,21,23,.55) 0%, rgba(20,21,23,.08) 26%, rgba(20,21,23,.24) 56%, rgba(20,21,23,.92) 100%),
    linear-gradient(90deg, rgba(20,21,23,.84) 0%, rgba(20,21,23,.52) 40%, rgba(20,21,23,.16) 66%, rgba(20,21,23,0) 86%);
}
.hero__inner { position: relative; z-index: 1; padding-block: clamp(132px, 18vh, 210px) clamp(48px, 7vh, 84px); width: 100%; }
.hero__eyebrow { color: #fff; }
.hero__eyebrow::before { background: var(--accent); }
.hero h1 { margin-top: 1.5rem; max-width: 17ch; text-shadow: 0 2px 30px rgba(0,0,0,.3); }
.hero__sub { margin-top: 1.6rem; max-width: 52ch; font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: rgba(255,255,255,.9); line-height: 1.55; }
.hero__actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__scroll {
  position: absolute; right: var(--pad); bottom: clamp(48px,7vh,84px); z-index: 2;
  display: flex; align-items: center; gap: .7rem;
  font-family: var(--font-display); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.7);
  writing-mode: vertical-rl;
}
.hero__scroll .line { width: 1px; height: 54px; background: linear-gradient(rgba(255,255,255,.6), rgba(255,255,255,0)); animation: scrolldash 2.4s var(--ease) infinite; }
@keyframes scrolldash { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom;} 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ============================================================
   Trust strip / marquee facts
   ============================================================ */
.trust { background: var(--primary); color: #fff; border-block: 1px solid var(--primary-deep); }
.trust__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.trust__item {
  padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1.2rem, 2.5vw, 2.2rem);
  border-left: 1px solid var(--border-dark);
  display: flex; flex-direction: column; gap: .4rem;
}
.trust__item:first-child { border-left: none; }
.trust__k { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -0.02em; }
.trust__k .accent { color: var(--accent); }
.trust__v { font-size: .9rem; color: rgba(255,255,255,.62); line-height: 1.4; }

/* ============================================================
   Section header
   ============================================================ */
.shead { display: grid; grid-template-columns: 1fr; gap: 1.2rem; margin-bottom: clamp(2.6rem, 5vw, 4rem); }
.shead--split { grid-template-columns: minmax(0,1fr) minmax(0,.85fr); align-items: end; gap: 2rem 4rem; }
.shead__title { margin-top: 1rem; }
.shead__title .h2 { max-width: 18ch; }

/* ============================================================
   Services
   ============================================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.svc {
  position: relative;
  padding: clamp(2rem, 3vw, 2.8rem) clamp(1.6rem, 2.5vw, 2.4rem) clamp(2rem,3vw,2.6rem);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  display: flex; flex-direction: column;
  min-height: 320px;
  overflow: hidden;
  transition: background .35s var(--ease);
}
.svc::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: var(--accent); transition: width .45s var(--ease);
}
.svc:hover { background: var(--surface-2); }
.svc:hover::before { width: 100%; }
.svc__num { font-family: var(--font-display); font-weight: 500; font-size: .8rem; letter-spacing: .14em; color: var(--secondary); }
.svc__title { margin-top: 1.4rem; }
.svc__desc { margin-top: .85rem; color: var(--muted); font-size: .98rem; flex: 1; }
.svc__types { margin-top: 1.3rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.tag {
  font-family: var(--font-display); font-size: .72rem; font-weight: 500; letter-spacing: .02em;
  color: var(--muted); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 100px; padding: .28rem .7rem;
}
.svc:hover .tag { background: var(--surface); }
.svc__cta { margin-top: 1.6rem; }

/* ============================================================
   Projects
   ============================================================ */
.projects { background: var(--surface-2); }
.pgrid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(150px, 18vw, 230px);
  grid-auto-flow: dense;
  gap: clamp(10px, 1.2vw, 18px);
}
.pcard {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--primary);
  cursor: pointer;
  grid-column: span 2; grid-row: span 1;
}
.pcard.tall { grid-row: span 2; }
.pcard.wide { grid-column: span 3; }
.pcard.feature { grid-column: span 4; grid-row: span 2; }
.pcard img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease), filter .5s var(--ease);
}
.pcard::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,21,23,0) 38%, rgba(20,21,23,.82) 100%);
  opacity: .85; transition: opacity .4s var(--ease);
}
.pcard:hover img { transform: scale(1.06); }
.pcard:hover::after { opacity: 1; }
.pcard__meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: clamp(1rem, 1.8vw, 1.5rem);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
  transform: translateY(8px); opacity: 0;
  transition: transform .45s var(--ease), opacity .45s var(--ease);
}
.pcard:hover .pcard__meta, .pcard:focus-visible .pcard__meta { transform: translateY(0); opacity: 1; }
.pcard__cat { font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: #fff; }
.pcard__sub { font-size: .76rem; color: rgba(255,255,255,.65); margin-top: .15rem; }
.pcard__plus {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  border: 1.5px solid rgba(255,255,255,.5); color: #fff;
  display: grid; place-items: center;
}
.pcard__plus svg { width: 16px; height: 16px; }
.pcard__tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--font-display); font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: rgba(20,21,23,.4); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.18);
  padding: .3rem .6rem; border-radius: 3px;
  opacity: 0; transform: translateY(-4px); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.pcard:hover .pcard__tag { opacity: 1; transform: translateY(0); }
.projects__foot { margin-top: clamp(2rem,4vw,3rem); display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; align-items: center; justify-content: space-between; }

/* ============================================================
   Approach / Studio
   ============================================================ */
.approach__top { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(2rem,5vw,5rem); align-items: center; }
.approach__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; }
.approach__media img { width: 100%; height: 100%; object-fit: cover; }
.approach__media .badge {
  position: absolute; left: 20px; bottom: 20px;
  background: rgba(251,250,248,.94); backdrop-filter: blur(6px);
  padding: .7rem 1rem; border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 600; font-size: .82rem;
}
.approach__media .badge span { display: block; color: var(--muted); font-weight: 500; font-size: .72rem; margin-top: .1rem; }

.steps { margin-top: clamp(2.6rem, 5vw, 4.2rem); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); }
.step { padding-top: 1.4rem; border-top: 2px solid var(--text); }
.step__num { font-family: var(--font-display); font-weight: 600; font-size: .82rem; letter-spacing: .12em; color: var(--accent-deep); }
.step__title { margin-top: .8rem; }
.step__desc { margin-top: .65rem; color: var(--muted); font-size: .96rem; }

.studio-strip { margin-top: clamp(2.6rem,5vw,4rem); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px,1.2vw,16px); }
.studio-strip figure { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; }
.studio-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.studio-strip figure:hover img { transform: scale(1.05); }

/* ============================================================
   About / heritage
   ============================================================ */
.about { background: var(--primary); color: #fff; position: relative; overflow: hidden; }
.about__grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: clamp(2.4rem, 5vw, 5rem); align-items: start; }
.about .eyebrow { color: var(--accent); }
.about h2 { color: #fff; }
.about__body p { color: rgba(255,255,255,.78); margin-top: 1.2rem; max-width: 56ch; }
.about__body p strong { color: #fff; font-weight: 600; }
.about__note { margin-top: 1.6rem; font-size: .82rem; color: rgba(255,255,255,.5); border-left: 2px solid var(--accent); padding-left: 1rem; max-width: 52ch; line-height: 1.5; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border-dark); border: 1px solid var(--border-dark); border-radius: var(--radius); overflow: hidden; }
.fact { background: var(--primary); padding: clamp(1.4rem,2.5vw,2rem); }
.fact__k { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.6rem); letter-spacing: -0.02em; }
.fact__k .accent { color: var(--accent); }
.fact__v { margin-top: .35rem; font-size: .85rem; color: rgba(255,255,255,.6); line-height: 1.4; }
.people { margin-top: 1.6rem; display: flex; flex-direction: column; gap: .9rem; }
.person { display: flex; gap: .9rem; align-items: baseline; padding: .9rem 0; border-top: 1px solid var(--border-dark); }
.person__name { font-family: var(--font-display); font-weight: 600; }
.person__role { font-size: .85rem; color: rgba(255,255,255,.6); }

/* ============================================================
   CTA band
   ============================================================ */
.cta { position: relative; isolation: isolate; color: #fff; overflow: hidden; text-align: center; }
.cta__media { position: absolute; inset: 0; z-index: 0; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; }
.cta__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,21,23,.78), rgba(20,21,23,.86)); }
.cta__inner { position: relative; z-index: 1; padding-block: clamp(72px, 10vw, 130px); display: flex; flex-direction: column; align-items: center; }
.cta h2 { color: #fff; max-width: 20ch; margin-top: 1.2rem; }
.cta__sub { margin-top: 1.2rem; color: rgba(255,255,255,.82); max-width: 50ch; }
.cta__actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ============================================================
   Contact
   ============================================================ */
.contact__grid { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(2.4rem, 4vw, 4.5rem); align-items: start; }

.cinfo__list { margin-top: 2rem; display: flex; flex-direction: column; }
.cinfo__row { display: flex; gap: 1.1rem; padding: 1.3rem 0; border-top: 1px solid var(--border); }
.cinfo__row:last-of-type { border-bottom: 1px solid var(--border); }
.cinfo__ico { width: 42px; height: 42px; flex: none; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; color: var(--accent-deep); }
.cinfo__ico svg { width: 19px; height: 19px; }
.cinfo__label { font-family: var(--font-display); font-weight: 600; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--secondary); }
.cinfo__val { margin-top: .25rem; font-size: 1.02rem; color: var(--text); line-height: 1.45; }
.cinfo__val a:hover { color: var(--accent-deep); }

.map-ph {
  margin-top: 1.8rem; position: relative; border: 1px solid var(--border); border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, rgba(138,143,148,.06) 0 12px, transparent 12px 24px),
    var(--surface);
  aspect-ratio: 16/7; display: grid; place-items: center; overflow: hidden;
}
.map-ph::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 38px 38px; opacity: .5;
}
.map-ph__pin { position: relative; z-index: 1; text-align: center; }
.map-ph__pin .dot { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); margin: 0 auto .8rem; box-shadow: 0 0 0 6px rgba(226,118,27,.18), 0 0 0 14px rgba(226,118,27,.08); }
.map-ph__pin .t { font-family: var(--font-display); font-weight: 600; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.map-ph__pin .s { font-size: .82rem; color: var(--secondary); margin-top: .3rem; }

/* Form */
.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.6rem); box-shadow: var(--shadow-sm); }
.form__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.1rem; }
.field label { font-family: var(--font-display); font-weight: 500; font-size: .82rem; color: var(--text); }
.field label .req { color: var(--accent-deep); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .98rem; color: var(--text);
  background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: .82rem .95rem; width: 100%;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px rgba(226,118,27,.14); }
.field input::placeholder, .field textarea::placeholder { color: var(--secondary); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,.12); }
.field__err { font-size: .78rem; color: #c0392b; display: none; }
.field.invalid .field__err { display: block; }
.form__note { font-size: .8rem; color: var(--muted); margin-top: 1rem; line-height: 1.5; }
.form__note a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; }

.form-success {
  display: none; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(2rem,4vw,3.4rem) 1rem;
}
.form-success.show { display: flex; }
.form-success__ico { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-deep); display: grid; place-items: center; margin-bottom: 1.2rem; }
.form-success__ico svg { width: 30px; height: 30px; }
.form.is-sent .form__head, .form.is-sent form { display: none; }
.form.is-sent .form-success { display: flex; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--bg); border-top: 1px solid var(--border); padding-block: clamp(3rem,5vw,4.5rem) 2rem; }
.footer__top { display: grid; grid-template-columns: minmax(0,1.3fr) repeat(2, minmax(0,1fr)); gap: clamp(2rem,4vw,4rem); }
.footer__brand-logo { height: 78px; width: auto; margin-bottom: 1.3rem; }
.footer__about { color: var(--muted); font-size: .95rem; max-width: 38ch; }
.footer__col h4 { font-family: var(--font-display); font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--secondary); margin-bottom: 1.1rem; }
.footer__col ul { display: flex; flex-direction: column; gap: .7rem; }
.footer__col a { color: var(--text); font-size: .96rem; transition: color .2s var(--ease); }
.footer__col a:hover { color: var(--accent-deep); }
.footer__socials { display: flex; gap: .7rem; margin-top: 1.4rem; }
.footer__socials a { width: 42px; height: 42px; border: 1px solid var(--border); border-radius: var(--radius); display: grid; place-items: center; color: var(--text); transition: all .25s var(--ease); }
.footer__socials a:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-2px); }
.footer__socials svg { width: 18px; height: 18px; }
.footer__bottom { margin-top: clamp(2.4rem,4vw,3.4rem); padding-top: 1.6rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: .8rem 2rem; align-items: center; justify-content: space-between; }
.footer__bottom p { font-size: .84rem; color: var(--muted); }
.footer__license { font-size: .8rem; color: var(--secondary); max-width: 60ch; }

/* ============================================================
   Mobile action bar
   ============================================================ */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; gap: 0;
  background: rgba(251,250,248,.94); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: .55rem; padding-bottom: max(.55rem, env(safe-area-inset-bottom));
  gap: .55rem;
}
.actionbar .btn { flex: 1; min-height: 50px; }

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(16,17,19,.96);
  display: none; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .35s var(--ease);
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 84vh; object-fit: contain; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lb__close, .lb__nav {
  position: absolute; z-index: 2;
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); color: #fff;
  display: grid; place-items: center;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.lb__close svg, .lb__nav svg { width: 22px; height: 22px; }
.lb__close { top: 22px; right: 22px; }
.lb__nav:hover, .lb__close:hover { background: rgba(255,255,255,.18); }
.lb__prev { left: clamp(12px, 3vw, 36px); top: 50%; transform: translateY(-50%); }
.lb__next { right: clamp(12px, 3vw, 36px); top: 50%; transform: translateY(-50%); }
.lb__prev:hover { transform: translateY(-50%) translateX(-3px); }
.lb__next:hover { transform: translateY(-50%) translateX(3px); }
.lb__counter { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-family: var(--font-display); font-size: .85rem; letter-spacing: .1em; z-index: 2; }
.lb__cap { position: absolute; bottom: 26px; left: clamp(16px,4vw,40px); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: .95rem; z-index: 2; }

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .nav, .header__tel { display: none; }
  .burger { display: flex; }
  .header .header__cta .btn { display: none; }
  .shead--split { grid-template-columns: 1fr; align-items: start; }
  .header__inner { height: 88px; }
  .header.is-scrolled .header__inner { height: 76px; }
  .brand__logo { height: 58px; }
  .header.is-scrolled .brand__logo { height: 50px; }
}

@media (max-width: 860px) {
  .trust__grid { grid-template-columns: 1fr 1fr; }
  .trust__item:nth-child(odd) { border-left: none; }
  .trust__item:nth-child(3), .trust__item:nth-child(4) { border-top: 1px solid var(--border-dark); }
  .services__grid { grid-template-columns: 1fr 1fr; }
  .approach__top { grid-template-columns: 1fr; }
  .approach__media { aspect-ratio: 16/11; max-height: 460px; }
  .steps { grid-template-columns: 1fr; }
  .studio-strip { grid-template-columns: 1fr 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  /* projects → simpler 2-up rhythm */
  .pgrid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(160px, 30vw, 220px); }
  .pcard, .pcard.wide, .pcard.feature { grid-column: span 1; grid-row: span 1; }
  .pcard.tall { grid-row: span 1; }
  .pcard.feature { grid-column: span 2; grid-row: span 1; }
  .pcard__meta { transform: translateY(0); opacity: 1; }
  .pcard::after { opacity: 1; }
}

@media (max-width: 560px) {
  body { padding-bottom: 70px; } /* room for action bar */
  .actionbar { display: flex; }
  .header__inner { height: 74px; }
  .header.is-scrolled .header__inner { height: 68px; }
  .brand__logo { height: 48px; }
  .header.is-scrolled .brand__logo { height: 44px; }
  .trust__grid { grid-template-columns: 1fr; }
  .trust__item { border-left: none !important; border-top: 1px solid var(--border-dark); }
  .trust__item:first-child { border-top: none; }
  .services__grid { grid-template-columns: 1fr; }
  .svc { min-height: 0; }
  .studio-strip { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .hero__inner { padding-block: 116px 96px; }
  .hero h1 { font-size: clamp(2.35rem, 10vw, 2.8rem); line-height: 1.04; }
  .hero__sub { font-size: 1rem; line-height: 1.5; }
  .hero__scroll { display: none; }
  .pgrid { gap: 12px; }
}

@media (max-width: 380px) {
  .facts { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
}
