/* =====================================================
   EKN Consultant Ltd — Main Stylesheet
   Clean, professional, minimal corporate
   ===================================================== */

:root {
  --navy:    #0B1F3A;
  --navy-md: #1A3358;
  --accent:  #1E6FD9;
  --accent-l:#2E82F0;
  --gold:    #C8922A;
  --white:   #FFFFFF;
  --off-white:#F8F8F6;
  --grey-50: #F4F4F2;
  --grey-100:#E8E8E5;
  --grey-300:#B8B8B4;
  --grey-500:#7A7A74;
  --grey-700:#3D3D3A;
  --text:    #1C1C1A;
  --text-muted:#6A6A66;

  --font-display: 'DM Sans', -apple-system, sans-serif;
  --font-body:    'DM Sans', -apple-system, sans-serif;

  --radius:   8px;
  --radius-lg:10px;
  --shadow:   0 2px 12px rgba(0,0,0,0.08);
  --shadow-md:0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg:0 20px 60px rgba(0,0,0,0.15);

  --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
  --max-w: 1160px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

/* ---- LAYOUT ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.container--narrow { max-width: 800px; }
.section { padding: 3rem 0; }
.section--grey { background: var(--grey-50); }

/* ---- TYPOGRAPHY ---- */
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.15; color: var(--navy); }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }
em { font-style: normal; color: var(--accent); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.75rem 1.75rem; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 500;
  cursor: pointer; border: 2px solid transparent;
  transition: all var(--transition); white-space: nowrap;
}
.btn--primary { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-l); border-color: var(--accent-l); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(30,111,217,0.3); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--grey-300); }
.btn--ghost:hover { border-color: var(--navy); background: var(--grey-50); }
.btn--outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn--outline:hover { background: var(--accent); color: var(--white); }
.btn--large { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn--full { width: 100%; justify-content: center; }

/* ---- TAGS ---- */
.tag { display: inline-flex; align-items: center; padding: 0.2rem 0.65rem; background: var(--grey-50); border: 1px solid var(--grey-100); border-radius: 100px; font-size: 0.75rem; font-weight: 500; color: var(--grey-700); }
.tag--small { font-size: 0.7rem; padding: 0.15rem 0.5rem; }
.tag--tech { background: #EEF4FF; border-color: #C5D9FF; color: var(--accent); }

/* =====================================================
   NAVIGATION
   ===================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grey-100);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow); }
.nav__inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav__logo { display: flex; align-items: center; gap: 0.75rem; }
.nav__logo-img { height: 44px; width: auto; }
.nav__logo-text { display: flex; flex-direction: column; line-height: 1; }
.nav__logo-ekn { font-family: var(--font-display); font-size: 1.6rem; color: var(--navy); letter-spacing: -0.02em; }
.nav__logo-sub { font-size: 0.7rem; color: var(--grey-500); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 0.15rem; }
.nav__links { list-style: none; display: flex; align-items: center; gap: 0.5rem; }
.nav__link { padding: 0.5rem 1rem; border-radius: var(--radius); font-size: 0.95rem; font-weight: 500; color: var(--grey-700); transition: all var(--transition); }
.nav__link:hover, .nav__link--active { color: var(--navy); background: var(--grey-50); }
.nav__cta { padding: 0.6rem 1.4rem; background: var(--navy); color: var(--white); border-radius: var(--radius); font-size: 0.95rem; font-weight: 500; transition: all var(--transition); }
.nav__cta:hover { background: var(--accent); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: all var(--transition); }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  min-height: 0; display: flex; align-items: center;
  padding: 3rem 2rem 3rem;
  margin-top: 64px;
  background: linear-gradient(135deg, var(--white) 0%, var(--off-white) 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(30,111,217,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero__inner {
  max-width: var(--max-w); margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center;
}
.hero__eyebrow { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 1rem; }
.hero__headline { margin-bottom: 1.25rem; color: var(--navy); }
.hero__sub { font-size: 1.05rem; color: var(--text-muted); max-width: 520px; margin-bottom: 2rem; line-height: 1.6; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.hero__stats { display: flex; gap: 3rem; }
.hero__stat { display: flex; flex-direction: column; }
.hero__stat-num { font-family: var(--font-display); font-size: 2.2rem; color: var(--navy); line-height: 1; }
.hero__stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.3rem; font-weight: 500; }

.hero__overview { background: var(--navy); color: white; border-radius: var(--radius-lg); padding: 1.75rem; }
.hero__overview-title { color: #A9C8EF; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1.25rem; }
.hero__step { display: grid; grid-template-columns: 2rem 1fr; gap: 0.5rem; padding: 1rem 0; border-top: 1px solid #31455E; }
.hero__step > span { color: #A9C8EF; font-size: 0.8rem; padding-top: 0.1rem; }
.hero__step h2 { font-size: 1rem; color: white; margin-bottom: 0.25rem; }
.hero__step p { font-size: 0.875rem; color: #CCD6E3; }
.hero__trust { color: var(--text-muted); font-size: 0.8rem; margin-top: 1.25rem; }

/* =====================================================
   SECTION HEADER
   ===================================================== */
.section__header { text-align: left; max-width: 600px; margin: 0 0 1.75rem; }
.section__eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 0.75rem; }
.section__title { margin-bottom: 1rem; }
.section__sub { color: var(--text-muted); font-size: 1.05rem; }
.section__cta { text-align: center; margin-top: 2rem; }

/* =====================================================
   SERVICES
   ===================================================== */
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }

.service-card {
  background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-lg);
  padding: 1.25rem; transition: all var(--transition);
}
.service-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.service-card__icon {
  width: 44px; height: 44px; border-radius: var(--radius); margin-bottom: 1.25rem;
  background: var(--grey-50); display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.service-card__icon { color: var(--accent); font-size: 0.8rem; font-weight: 700; width: 34px; height: 34px; margin-bottom: 0.85rem; }
.service-card__icon--pipeline::before { content: 'DE'; }
.service-card__icon--chart::before { content: 'BI'; }
.service-card__icon--database::before { content: 'SQL'; }
.service-card__icon--warehouse::before { content: 'DW'; }
.service-card__icon--analytics::before { content: 'DA'; }
.service-card__icon--shield::before { content: 'DG'; }
.service-card__icon--web::before { content: 'WEB'; }
.service-card__icon--mentor::before { content: 'TM'; }

.service-card__title { font-size: 1.05rem; margin-bottom: 0.6rem; color: var(--navy); }
.service-card__desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.6; }
.service-card__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* Services list (full page) */
.services-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.service-full { border: 1px solid var(--grey-100); border-radius: var(--radius-lg); padding: 1.5rem; background: var(--white); transition: border-color var(--transition); }
.service-full:hover { border-color: var(--accent); }
.service-full__header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.service-full__title { font-size: 1.15rem; }
.service-full__body p { color: var(--text-muted); margin-bottom: 1rem; }
.service-full__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* =====================================================
   PORTFOLIO / PROJECTS
   ===================================================== */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1.25rem; }
.projects-grid--full { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }

.project-tile {
  border: 1px solid var(--grey-100); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--white); transition: all var(--transition);
  display: flex; flex-direction: column;
}
.project-tile:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.project-tile__img { position: relative; height: 170px; overflow: hidden; background: var(--grey-50); }
.project-tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.project-tile:hover .project-tile__img img { transform: scale(1.04); }
.project-tile__placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-md));
  color: rgba(255,255,255,0.3); font-family: var(--font-display); font-size: 1.5rem;
}
.project-tile__placeholder span { color: rgba(255,255,255,0.5); font-size: 2.5rem; font-weight: 700; }
.project-tile__type { position: absolute; top: 1rem; left: 1rem; background: var(--white); color: var(--navy); font-size: 0.72rem; font-weight: 600; padding: 0.25rem 0.65rem; border-radius: 100px; border: 1px solid var(--grey-100); }
.project-tile__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; gap: 0.6rem; }
.project-tile__title { font-size: 1.1rem; color: var(--navy); }
.project-tile__desc { font-size: 0.88rem; color: var(--text-muted); flex: 1; }
.project-tile__tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.project-tile__cta { font-size: 0.85rem; font-weight: 600; color: var(--accent); margin-top: 0.25rem; }

.project-tile--large .project-tile__img { height: 190px; }

/* Filter tabs */
.filter-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.filter-tab { padding: 0.5rem 1.1rem; border-radius: 100px; font-size: 0.88rem; font-weight: 500; border: 1px solid var(--grey-100); color: var(--grey-700); transition: all var(--transition); }
.filter-tab:hover { border-color: var(--accent); color: var(--accent); }
.filter-tab--active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* Project detail */
.project-detail__img { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 1.75rem; }
.project-detail__img img { width: 100%; max-height: 500px; object-fit: cover; }
.project-detail__meta { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--grey-100); }
.project-detail__tech h3 { margin-bottom: 1rem; font-size: 1.1rem; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.prose p { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.8; }
.project-type-badge { display: inline-block; background: #EEF4FF; color: var(--accent); font-size: 0.78rem; font-weight: 600; padding: 0.25rem 0.75rem; border-radius: 100px; margin-bottom: 1rem; }

/* =====================================================
   ABOUT
   ===================================================== */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2.5rem; align-items: start; }
.about__content h2 { margin-bottom: 1.25rem; }
.about__content p { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.8; }
.about__values { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.about__value strong { display: block; color: var(--navy); font-weight: 600; margin-bottom: 0.2rem; }
.about__value span { font-size: 0.9rem; color: var(--text-muted); }

.about__card { background: var(--navy); color: var(--white); border-radius: var(--radius-lg); padding: 2rem; display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 1.5rem; }
.about__stat { display: flex; flex-direction: column; }
.about__stat { font-family: var(--font-display); font-size: 2.5rem; color: var(--white); }
.about__stat small { font-family: var(--font-body); font-size: 0.78rem; color: rgba(255,255,255,0.6); font-size: 0.8rem; }

.about__engagement { background: var(--grey-50); border: 1px solid var(--grey-100); border-radius: var(--radius-lg); padding: 1.75rem; }
.about__engagement h3 { font-size: 1rem; margin-bottom: 1.25rem; }
.engagement-item { margin-bottom: 1.25rem; }
.engagement-item strong { display: block; font-size: 0.9rem; color: var(--navy); margin-bottom: 0.2rem; }
.engagement-item p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* Skills grid */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.skill-group { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-lg); padding: 1.5rem; }
.skill-group__title { font-size: 0.9rem; font-weight: 600; color: var(--navy); margin-bottom: 1rem; font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.06em; }
.skill-group__items { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.skill-badge { display: inline-flex; padding: 0.3rem 0.7rem; background: var(--grey-50); border: 1px solid var(--grey-100); border-radius: 100px; font-size: 0.78rem; font-weight: 500; color: var(--grey-700); }

/* =====================================================
   INDUSTRIES
   ===================================================== */
.industries-grid { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.industry-card { display: flex; align-items: center; gap: 0.75rem; background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius); padding: 1rem 1.5rem; transition: all var(--transition); }
.industry-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.industry-card__icon { font-size: 1.5rem; }
.industry-card__name { font-size: 0.9rem; font-weight: 500; color: var(--navy); }

/* =====================================================
   CONTACT
   ===================================================== */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2.5rem; }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label { font-size: 0.88rem; font-weight: 500; color: var(--navy); }
.required { color: var(--accent); margin-left: 2px; }
.form-control {
  padding: 0.7rem 1rem; border: 1.5px solid var(--grey-100); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.95rem; background: var(--white);
  transition: border-color var(--transition); color: var(--text);
}
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(30,111,217,0.1); }
.form-group--error .form-control { border-color: #D94040; }
.form-error { font-size: 0.8rem; color: #D94040; }

.contact-info { display: flex; flex-direction: column; gap: 1.5rem; padding-top: 0.5rem; }
.contact-info__item h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.contact-info__item p { font-size: 0.9rem; color: var(--text-muted); }
.contact-info__divider { height: 1px; background: var(--grey-100); }
.contact-info__list { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.contact-info__list li { font-size: 0.88rem; color: var(--text-muted); padding-left: 1rem; position: relative; }
.contact-info__list li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }

/* =====================================================
   PAGE HERO
   ===================================================== */
.page-hero { padding: 2.75rem 0 2rem; background: linear-gradient(to bottom, var(--off-white), var(--white)); margin-top: 64px; }
.page-hero--slim { padding-bottom: 2rem; }
.page-hero .container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.page-hero__title { margin-bottom: 1rem; }
.page-hero__sub { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin-bottom: 1.5rem; }
.breadcrumb { font-size: 0.88rem; color: var(--accent); font-weight: 500; display: inline-block; margin-bottom: 1.5rem; }
.breadcrumb:hover { text-decoration: underline; }

/* =====================================================
   CTA BANNER
   ===================================================== */
.cta-banner { background: var(--navy); color: var(--white); padding: 2.75rem 0; text-align: center; }
.cta-banner .container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.cta-banner__title { color: var(--white); margin-bottom: 1rem; }
.cta-banner__sub { color: rgba(255,255,255,0.7); font-size: 1.05rem; margin-bottom: 2rem; }

/* =====================================================
   FOOTER
   ===================================================== */
.footer { background: var(--grey-50); border-top: 1px solid var(--grey-100); padding: 2.5rem 0 0; }
.footer__inner { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 2rem; padding-bottom: 2rem; }
.footer__logo { height: 48px; width: auto; margin-bottom: 1rem; }
.footer__logo-fallback { font-size: 1.1rem; color: var(--navy); margin-bottom: 1rem; }
.footer__tagline { font-size: 0.88rem; color: var(--text-muted); max-width: 260px; }
.footer__links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__links h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--navy); margin-bottom: 0.5rem; font-family: var(--font-body); }
.footer__links a { font-size: 0.88rem; color: var(--text-muted); transition: color var(--transition); }
.footer__links a:hover { color: var(--accent); }
.footer__contact p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 1rem; }
.footer__contact h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--navy); margin-bottom: 0.75rem; font-family: var(--font-body); }
.footer__cta { display: inline-flex; padding: 0.6rem 1.3rem; background: var(--navy); color: var(--white); border-radius: var(--radius); font-size: 0.88rem; font-weight: 500; transition: background var(--transition); }
.footer__cta:hover { background: var(--accent); }
.footer__bottom { border-top: 1px solid var(--grey-100); padding: 1.5rem 2rem; text-align: center; }
.footer__bottom p { font-size: 0.82rem; color: var(--text-muted); }

/* =====================================================
   MESSAGES
   ===================================================== */
.messages { position: fixed; top: 80px; right: 1.5rem; z-index: 200; display: flex; flex-direction: column; gap: 0.5rem; }
.message { padding: 1rem 1.5rem; border-radius: var(--radius); font-size: 0.9rem; font-weight: 500; box-shadow: var(--shadow-md); animation: slideIn 0.3s ease; max-width: 380px; }
.message--success { background: #ECFDF5; color: #1A8C4E; border: 1px solid #A7F3D0; }
@keyframes slideIn { from{opacity:0;transform:translateX(20px)} to{opacity:1;transform:translateX(0)} }

/* Empty state */
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--text-muted); }
.empty-state p { margin-bottom: 1.5rem; }

/* Shared detail and interaction styles */
h1, h2 { letter-spacing: -0.035em; font-weight: 600; }
h3, h4 { font-weight: 600; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[id] { scroll-margin-top: 84px; }
.nav__link, .nav__cta { display: block; }
.nav__toggle { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.service-full__header .service-card__icon { margin-bottom: 0; flex-shrink: 0; }
.service-card:hover, .project-tile:hover { transform: none; box-shadow: var(--shadow); }
.hero::before { display: none; }
.hero__stats { gap: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--grey-100); }
.hero__stat-num { font-size: 1.75rem; font-weight: 600; }
.hero__actions { margin-bottom: 1.5rem; }
.page-hero__sub { margin-bottom: 0; }
.industry-card { padding: 0.65rem 1rem; }
.industry-card__icon { display: none; }
.contact-form-wrap { padding: 1.5rem; border: 1px solid var(--grey-100); border-radius: var(--radius-lg); }
.contact-form__title { font-size: 1.25rem; margin-bottom: 0.35rem; }
.contact-form__lead { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.25rem; }
.form-group { min-width: 0; }
.form-group--full, .contact-form > .btn, .contact-form > .errorlist { grid-column: 1 / -1; }
.form-control { width: 100%; min-width: 0; min-height: 44px; font-size: 1rem; }
textarea.form-control { resize: vertical; }
.contact-info__item { border-left: 2px solid var(--grey-100); padding-left: 1rem; }
.contact-info__divider { display: none; }
.errorlist { color: #B42318; list-style: none; font-size: 0.875rem; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 300; padding: 0.75rem 1rem; background: white; }
.skip-link:focus { top: 0.5rem; }
.messages { max-width: calc(100% - 2rem); }
.btn { min-height: 44px; justify-content: center; }
.btn--large { padding: 0.75rem 1.5rem; font-size: 1rem; }
.about__stat { font-size: 2rem; }

/* Responsive rules stay last so page styles cannot override them. */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__inner { gap: 2rem; }
  .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 1.5rem; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .container, .nav__inner, .page-hero .container, .cta-banner .container, .footer__inner { padding-left: 1.25rem; padding-right: 1.25rem; }
  .nav__links { display: none; position: fixed; inset: 64px 0 auto; max-height: calc(100dvh - 64px); overflow-y: auto; background: white; flex-direction: column; align-items: stretch; padding: 1rem 1.25rem; border-bottom: 1px solid var(--grey-100); box-shadow: var(--shadow); }
  .nav__links.open { display: flex; }
  .nav__toggle { display: flex; }
  .nav__link, .nav__cta { padding: 0.75rem 1rem; }
  .hero { padding: 2.25rem 1.25rem; }
  .hero__inner, .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero__overview { padding: 1.25rem; }
  .hero__step { padding: 0.75rem 0; }
  .hero__sub { margin-bottom: 1.25rem; }
  .hero__stats { gap: 1rem; flex-wrap: wrap; }
  .hero__stat-label { font-size: 0.75rem; }
  .section { padding: 2rem 0; }
  .page-hero, .page-hero--slim { padding: 2rem 0 1.5rem; }
  .section__header { margin-bottom: 1.25rem; }
  .section__cta { margin-top: 1.5rem; }
  .services-list, .projects-grid, .projects-grid--full { grid-template-columns: minmax(0, 1fr); }
  .contact-form-wrap { padding: 1.25rem; }
  .footer__inner { gap: 1.5rem; }
  .filter-tabs { gap: 0.4rem; }
  .filter-tab { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (max-width: 480px) {
  .services-grid, .skills-grid, .contact-form, .footer__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__eyebrow { font-size: 0.75rem; letter-spacing: 0.08em; }
  .hero__actions { gap: 0.65rem; }
  .hero__actions .btn { flex: 1; padding-left: 1rem; padding-right: 1rem; }
  .hero__stat-num { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
