/* ==========================================================================
   AT Design Corridor — app.css
   Self-hosted design system: Raleway/Roboto, amber/navy/ink palette,
   1200px container, responsive ≤900px. No external requests.
   ========================================================================== */

/* ---------------- Font faces ---------------- */
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/raleway.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/roboto.woff2') format('woff2');
}

/* ---------------- Design tokens ---------------- */
:root {
  --amber: #f6a131;
  --amber-light: #f9ad4a;
  --amber-deep: #d98212;
  --navy: #243673;
  --ink: #1a1a1a;
  --ink-soft: #262626;
  --text: #4a4a4a;
  --text-light: #7a7a7a;
  --mist: #f5f5f5;
  --offwhite: #FBFCFF;
  --white: #ffffff;

  --font-head: 'Raleway', 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-body: 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif;

  --container: 1200px;
  --radius: 4px;
  --space-section: clamp(72px, 9vw, 120px);
  --shadow-card: 0 14px 40px -18px rgba(26, 26, 26, 0.35);
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---------------- Reset ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--offwhite);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
a { color: var(--amber-deep); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--amber); }
h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  text-wrap: balance;
}
p { margin: 0 0 1.1em; }
blockquote, cite { margin: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* ---------------- Layout helpers ---------------- */
.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}
.section { padding-block: var(--space-section); }
.section-eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(30px, 4.5vw, 44px);
  letter-spacing: 0.01em;
}
.section-sub {
  font-size: 18px;
  color: var(--text-light);
  max-width: 640px;
}
.on-dark { color: var(--white); }

/* ---------------- Icons ---------------- */
.icon { width: 1em; height: 1em; vertical-align: -0.125em; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.22s var(--ease);
}
.btn-primary {
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  color: var(--white);
  border-color: var(--amber);
  box-shadow: 0 12px 26px -14px rgba(246, 161, 49, 0.9);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--amber-deep), var(--amber-deep));
  border-color: var(--amber-deep);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--amber-deep);
  border-color: var(--amber);
}
.btn-outline:hover { background: var(--amber); color: var(--white); }
.btn-arrow { display: inline-flex; font-size: 0.85em; margin-left: 2px; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: linear-gradient(to bottom, rgba(20, 20, 20, 0.82), rgba(20, 20, 20, 0.45) 60%, rgba(20, 20, 20, 0));
  padding-block: 0;
  transition: background 0.25s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(20, 20, 20, 0.94);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.7);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-logo { display: inline-flex; line-height: 0; }
.site-logo img { height: 100px; width: auto; }

.site-nav ul { display: flex; gap: 34px; }
.site-nav a {
  position: relative;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  padding-bottom: 6px;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--amber);
  transition: width 0.25s var(--ease);
}
.site-nav a:hover::after,
.site-nav a[aria-current='page']::after { width: 100%; }
.site-nav a[aria-current='page'] { color: var(--amber-light); }
.site-nav a:hover { color: var(--amber-light); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  position: relative;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  content: '';
  position: absolute;
  left: 10px;
  width: 22px; height: 2px;
  background: var(--white);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded='true'] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded='true'] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle-bar::after  { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Hero (Home) ---------------- */
.hero {
  position: relative;
  min-height: max(560px, 88vh);
  display: flex;
  align-items: center;
  margin-top: -100px;             /* pull behind sticky header */
  background: var(--ink);
  overflow: hidden;
}
/* transparent header sits over the hero, so counteract its height */
.site-header + main .hero { margin-top: calc(-1 * 100px); }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
.hero-slide.is-active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(26, 26, 26, 0.9) 0%, rgba(26, 26, 26, 0.45) 45%, rgba(26, 26, 26, 0.5) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding-block: 150px 100px;
  max-width: 900px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin: 0 0 26px;
}
.hero-eyebrow .icon { font-size: 14px; }
.hero-title {
  color: var(--white);
  font-size: clamp(52px, 10vw, 108px);
  line-height: 0.98;
  letter-spacing: 0.02em;
  margin-bottom: 26px;
}
.hero-tagline {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(19px, 2.6vw, 26px);
  font-weight: 400;
  max-width: 640px;
  margin-inline: 0 auto;
  padding-bottom: 36px;
}

/* ---------------- Page hero (inner pages) ---------------- */
.page-hero {
  position: relative;
  background: var(--ink);
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
  margin-top: -100px;               /* pull behind the transparent header */
  height: clamp(570px, 66vh, 620px); /* equal height on every page */
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse 60% 80% at 50% -20%, rgba(246, 161, 49, 0.12), transparent),
    linear-gradient(to bottom, rgba(36, 54, 115, 0.38), rgba(26, 26, 26, 0.60));
  pointer-events: none;
}
.page-hero[data-bg] {
  background-image: var(--hero-bg);
}
.page-hero-content {
  position: relative;
  width: 100%;
  padding-block: clamp(120px, 12vw, 168px) clamp(56px, 7vw, 88px);
}
.page-hero-eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin: 0 0 16px;
}
.page-hero-title {
  color: var(--white);
  font-size: clamp(34px, 6vw, 62px);
  max-width: 960px;
  margin-inline: auto;
  margin-bottom: 14px;
}
.page-hero-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(18px, 2.4vw, 24px);
  margin-bottom: 6px;
}
.page-hero-label {
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.page-hero-divider {
  display: block;
  width: 56px; height: 3px;
  background: var(--amber);
  margin: 28px auto 0;
}

/* ---------------- Tagline band (Home) ---------------- */
.tagline-band {
  background: linear-gradient(120deg, var(--navy), var(--ink));
  color: var(--white);
  padding-block: clamp(70px, 8vw, 110px);
  position: relative;
  overflow: hidden;
}
.tagline-band::after {
  content: 'DESIGN';
  position: absolute;
  right: -1%; bottom: -12%;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(120px, 24vw, 260px);
  line-height: 1;
  color: rgba(255, 255, 255, 0.03);
  letter-spacing: 0.05em;
  pointer-events: none;
  white-space: nowrap;
}
.tagline-band-eyebrow {
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: 22px;
}
.tagline-band-title {
  color: var(--white);
  font-size: clamp(30px, 5vw, 52px);
  max-width: 820px;
  margin-bottom: 26px;
}
.tagline-band-label {
  font-family: var(--font-head);
  font-size: 15px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* ---------------- About blurb (Home) ---------------- */
.about-blurb {
  background: var(--offwhite);
}
.about-blurb-grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.about-blurb-media {
  position: relative;
}
.about-blurb-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.about-blurb-media::after {
  content: '';
  position: absolute;
  inset: 20px -18px -18px 20px;
  border: 1px solid var(--amber);
  border-radius: var(--radius);
  z-index: -1;
}
.about-blurb-text .section-title { font-size: clamp(28px, 4vw, 40px); }
.about-blurb-text p { font-size: 18px; }
.about-blurb-text .btn { margin-top: 10px; }

/* ---------------- Recognised projects (Home) ---------------- */
.recognised-projects {
  background: var(--ink);
  color: var(--white);
}
.recognised-projects .section-sub { color: rgba(255, 255, 255, 0.6); }
.project-rows { display: grid; gap: 0; margin-top: 44px; }
.project-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  color: var(--white);
  padding-block: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.project-row:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.project-row-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.project-row-text {
  display: flex;
  align-items: center;
  gap: 22px;
}
.project-row-mark {
  color: var(--amber);
  font-size: 10px;
  flex: 0 0 auto;
}
.project-row-title {
  color: var(--white);
  font-size: clamp(22px, 3vw, 32px);
}
.project-row-place {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.55em;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 6px;
}
.project-row-year {
  color: var(--amber-light);
  font-size: 0.62em;
  font-weight: 400;
  margin-left: 12px;
}
.project-rows-cta { text-align: center; margin-top: 46px; }

/* ---------------- Why choose us ---------------- */
.why-us {
  background: var(--offwhite);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.section-watermark {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(72px, 16vw, 176px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--navy);
  opacity: 0.04;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.why-us .section-title { position: relative; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
  position: relative;
}
.service-box {
  background: var(--white);
  border: 1px solid #ececf4;
  border-radius: var(--radius);
  padding: 44px 24px 40px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.service-box:hover { transform: translateY(-6px); border-color: var(--amber); }
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px; height: 84px;
  margin-bottom: 22px;
  border-radius: 50%;
  font-size: 34px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--ink));
  box-shadow: 0 16px 30px -16px rgba(36, 54, 115, 0.9);
}
.service-box:hover .service-icon {
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  box-shadow: 0 16px 30px -16px rgba(246, 161, 49, 0.9);
}
.service-title {
  font-size: 20px;
  letter-spacing: 0.02em;
  margin-bottom: 0;
}

/* ---------------- Testimonial cards ---------------- */
.home-testimonials { background: var(--white); }
.home-testimonials .section-sub { color: var(--text-light); margin-bottom: 44px; }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.testimonial-card {
  background: var(--offwhite);
  border: 1px solid #ececf4;
  border-radius: var(--radius);
  padding: 38px 34px 30px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.testimonial-card blockquote p {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 28px;
}
.testimonial-author {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid #ececf4;
  padding-top: 22px;
}
.testimonial-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--amber);
}
.testimonial-author cite {
  font-family: var(--font-head);
  font-style: normal;
  font-weight: 700;
  color: var(--navy);
  font-size: 16px;
}
/* full testimonials page: 2-col until 900px then single */
.testimonials-page { grid-template-columns: repeat(2, 1fr); }
.testimonials-page .testimonial-card blockquote p { font-size: 16px; }

/* ---------------- Founder (About) ---------------- */
.founder { background: var(--offwhite); }
.founder-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: start;
}
.founder-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  width: 100%;
}
.founder-text .section-title { font-size: clamp(30px, 4vw, 44px); }
.founder-cta {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.founder-social { display: flex; gap: 14px; }
.founder-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid #e2e2ef;
  border-radius: var(--radius);
  color: var(--navy);
  font-size: 18px;
  transition: all 0.2s var(--ease);
}
.founder-social a:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ---------------- Stats (About) ---------------- */
.stats {
  background:
    linear-gradient(rgba(26, 26, 26, 0.92), rgba(26, 26, 26, 0.92)),
    radial-gradient(ellipse at 50% 0, rgba(36, 54, 115, 0.9), transparent);
  background-size: cover;
  color: var(--white);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  text-align: center;
}
.stat-icon {
  display: inline-flex;
  font-size: 30px;
  color: var(--amber-light);
  margin-bottom: 14px;
}
.stat-number {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 66px);
  line-height: 1;
  color: var(--white);
  margin-bottom: 8px;
}
.stat-label {
  font-family: var(--font-head);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

/* ---------------- Team (About) ---------------- */
.team { background: var(--white); }
.team .section-eyebrow, .team .section-title { text-align: center; }
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 52px;
}
.team-card {
  flex: 0 1 340px;
  max-width: 340px;
}
.team-card {
  background: var(--offwhite);
  border: 1px solid #ececf4;
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  padding-bottom: 30px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease);
}
.team-card:hover { transform: translateY(-6px); }
.team-media { margin-bottom: 20px; }
.team-media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.team-name { font-size: 21px; margin-bottom: 4px; }
.team-role {
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin: 0;
}

/* ---------------- Portfolio ---------------- */
.portfolio { padding-top: clamp(40px, 6vw, 72px); }
.project { margin-bottom: clamp(56px, 8vw, 92px); scroll-margin-top: 90px; }
.project-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 30px;
}
.project-name {
  font-size: clamp(26px, 4vw, 38px);
  color: var(--ink);
}
.project-location {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.5em;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-left: 10px;
}
.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.project-gallery-item {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #eee;
}
.project-gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.project-gallery-item:hover img { transform: scale(1.06); }
.project-gallery-item.is-lead {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}
.project-gallery-item.is-lead img { position: absolute; inset: 0; height: 100%; }
.portfolio-cta { text-align: center; padding-bottom: clamp(60px, 8vw, 100px); }

/* ---------------- Lightbox ---------------- */
.lightbox {
  position: fixed; inset: 0;
  z-index: 1200;
  background: rgba(10, 10, 10, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 5vh 4vw;
}
.lightbox.is-open { display: flex; }
.lightbox-figure { max-width: min(1100px, 100%); max-height: 100%; text-align: center; }
.lightbox-figure img {
  max-width: 100%;
  max-height: 82vh;
  margin-inline: auto;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
}
.lightbox-caption {
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-head);
  font-size: 15px;
  letter-spacing: 0.06em;
  margin-top: 18px;
}
.lightbox-btn {
  position: absolute;
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: var(--white);
  font-size: 22px;
  line-height: 1;
  transition: all 0.2s var(--ease);
}
.lightbox-btn:hover { background: var(--amber); border-color: var(--amber); }
.lightbox-prev { left: 2.5vw; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 2.5vw; top: 50%; transform: translateY(-50%); }
.lightbox-close { top: 3vh; right: 2.5vw; }
.lightbox.is-open ~ .lightbox { /* no-op guard */ }

/* ---------------- Contact ---------------- */
.contact { background: var(--offwhite); }
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}
.contact-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  font-size: 22px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--ink));
}
.contact-item h3 {
  font-size: 19px;
  margin-bottom: 2px;
}
.contact-item p { margin-bottom: 0; }
.contact-item a { color: var(--ink); border-bottom: 1px solid transparent; }
.contact-item a:hover { color: var(--amber-deep); border-bottom-color: currentColor; }

.contact-form-wrap {
  background: var(--white);
  border: 1px solid #ececf4;
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-card);
}
.form-row { margin-bottom: 22px; }
.form-row label {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #dddeec;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--ink);
  background: var(--offwhite);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-row textarea { resize: vertical; }
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(246, 161, 49, 0.22);
  background: var(--white);
}
.form-submit { width: 100%; justify-content: center; }
.form-submit .spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
.form-submit.is-loading { pointer-events: none; opacity: 0.92; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- Form success popup ---------------- */
.form-popup {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 24px);
  z-index: 1200;
  opacity: 0;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  pointer-events: none;
}
.form-popup-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--ink);
  color: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius);
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.5);
  border-left: 4px solid var(--amber);
  max-width: min(92vw, 460px);
}
.form-popup-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  color: var(--white);
  font-weight: 700;
}
.form-popup p { margin: 0; font-family: var(--font-body); font-size: 15px; font-weight: 400; }
.form-popup.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 560px) {
  .form-popup { bottom: 20px; }
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  padding-top: clamp(56px, 8vw, 90px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.2fr;
  gap: clamp(30px, 5vw, 56px);
  padding-bottom: clamp(44px, 6vw, 70px);
}
.footer-logo { display: inline-flex; line-height: 0; margin-bottom: 18px; }
.footer-logo img { height: 100px; width: auto; }
.footer-tagline {
  font-size: 16.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  max-width: 300px;
}
.footer-title {
  font-size: 17px;
  color: var(--amber-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.footer-menu li { margin-bottom: 12px; }
.footer-menu a, .footer-address a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
}
.footer-menu a:hover, .footer-address a:hover { color: var(--amber-light); }
.footer-address { font-size: 16px; line-height: 2.05; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 22px;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.55);
}
.footer-bottom p { margin: 0; }

/* ---------------- Responsive ≤900px ---------------- */
@media (max-width: 900px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: fixed;
    inset: 0;
    background: rgba(20, 20, 20, 0.985);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 950;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul {
    flex-direction: column;
    gap: 26px;
    text-align: center;
  }
  .site-nav a { font-size: 22px; }
  /* header inner stays above the overlay; toggle has no visual change */
  .site-header.is-scrolled .nav-toggle,
  .nav-toggle[aria-expanded='true'] { z-index: 960; }

  .about-blurb-grid, .founder-grid, .contact-layout { grid-template-columns: 1fr; }
  .about-blurb-media { order: -1; }
  .about-blurb-media::after { inset: 14px -10px -10px 14px; }

  .project-row { grid-template-columns: 220px 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .testimonials-page { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .team-card { flex: 0 1 calc(50% - 30px); max-width: calc(50% - 30px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------------- Responsive ≤560px ---------------- */
@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { width: min(100% - 36px, var(--container)); }
  .service-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .team-card { flex: 0 1 100%; max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .project-gallery { grid-template-columns: 1fr; }
  .project-gallery-item.is-lead { grid-column: auto; grid-row: auto; aspect-ratio: 4/3; }
  .project-gallery-item.is-lead img { position: static; }
  .project-row { grid-template-columns: 1fr; gap: 16px; }
  .project-head { flex-direction: column; gap: 2px; }
  .project-row-title { font-size: 22px; }
}