/* ==========================================================================
   Royal Achievers — main stylesheet
   Edit the design tokens below to adjust colours, fonts and spacing site-wide.
   ========================================================================== */

:root {
  /* Colours */
  --navy-900: #0b1730;
  --navy-800: #0f1f3d;   /* primary text + brand */
  --navy-600: #33456a;
  --slate-500: #5b6780;  /* secondary text */
  --slate-300: #c9d0dc;
  --line: #e4e8ef;       /* borders */
  --line-strong: #d3d9e3;
  --grey-50: #f6f7f9;    /* soft grey sections */
  --white: #ffffff;
  --blue-600: #2f5fb3;   /* subtle accent */
  --blue-100: #e9eff9;
  --blue-300: #8fb1e8;

  /* Type */
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif; /* headings */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-h3: 1.125rem;
  --fs-h2: clamp(2rem, 1.3rem + 2.4vw, 3rem);
  --fs-h1: clamp(2.6rem, 1.4rem + 4.6vw, 5rem);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --radius: 10px;
  --radius-sm: 8px;
  --radius-btn: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 31, 61, 0.05);
  --shadow: 0 1px 2px rgba(15, 31, 61, 0.04), 0 16px 40px -20px rgba(15, 31, 61, 0.18);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 76px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--navy-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; color: var(--navy-900); text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.015em; line-height: 1.08; font-optical-sizing: auto; }
h1 em, h2 em { font-style: italic; color: var(--blue-600); }
p { text-wrap: pretty; }
abbr { text-decoration: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg use { pointer-events: none; }
[class*="icon"] svg, .icon-sm, .project-visit svg, .social svg, .logo-mark svg {
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--navy-800); color: var(--white); padding: 0.6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.75rem 1.4rem;
  border-radius: var(--radius-btn); border: 1px solid transparent;
  font-weight: 600; font-size: var(--fs-sm); letter-spacing: 0.005em; line-height: 1;
  cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn .icon-sm { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.btn:hover .icon-sm { transform: translateX(3px); }
.btn-primary { background: var(--navy-800); color: var(--white); }
.btn-primary:hover { background: var(--navy-900); box-shadow: 0 8px 20px -10px rgba(15, 31, 61, .55); }
.btn-ghost { background: transparent; color: var(--navy-800); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--navy-800); background: var(--white); }
.btn-light { background: var(--white); color: var(--navy-800); }
.btn-light:hover { background: var(--blue-100); }
.btn-outline-light { color: var(--white); border-color: rgba(255, 255, 255, .28); }
.btn-outline-light:hover { border-color: var(--white); }
.btn-sm { min-height: 40px; padding: 0.55rem 1.1rem; }
.btn-block { width: 100%; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -18px rgba(15, 31, 61, .35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 0.7rem; font-weight: 700; font-size: 1rem; letter-spacing: 0.01em; color: var(--navy-900); }
.logo-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 6px;
  background: var(--navy-800); color: var(--white);
}
.logo-mark svg { width: 22px; height: 22px; stroke-width: 1.9; }
.logo-light { color: var(--white); }
.logo-light .logo-mark { background: var(--white); color: var(--navy-800); }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav ul { display: flex; gap: 2rem; }
.site-nav ul a {
  position: relative; font-size: var(--fs-sm); font-weight: 500; color: var(--navy-600);
  padding-block: 0.4rem; transition: color .2s var(--ease);
}
.site-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--blue-600); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.site-nav ul a:hover, .site-nav ul a[aria-current="true"] { color: var(--navy-900); }
.site-nav ul a:hover::after, .site-nav ul a[aria-current="true"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none; position: relative; width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: var(--radius-btn); background: var(--white); cursor: pointer;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 50%; width: 18px; height: 1.6px; background: var(--navy-800); border-radius: 2px;
  transform: translateX(-50%); transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle-bar { top: 50%; margin-top: -0.8px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; transform: none; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Shared section styles ---------- */
.section { padding-block: var(--section-y); }
.section-grey { background: var(--grey-50); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: currentColor; }
h2 { font-size: var(--fs-h2); }
.section-num { font-variant-numeric: tabular-nums; color: var(--slate-500); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.015em; }
.section-head { max-width: 680px; margin-bottom: clamp(2.75rem, 5vw, 4rem); }
.section-head-split {
  max-width: none; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: end; gap: 1.25rem clamp(2rem, 6vw, 6rem);
}
.section-head-split h2 { max-width: 16em; }
.section-head-split .section-sub { margin-top: 0; max-width: 30rem; justify-self: end; }
.section-sub { margin-top: 1rem; color: var(--slate-500); font-size: var(--fs-lg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(4rem, 10vw, 8rem) clamp(3rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}
/* Faint architectural grid, fading out towards the bottom */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(15, 31, 61, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 31, 61, .045) 1px, transparent 1px);
  background-size: 72px 72px; background-position: center top;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
          mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}
.hero .container { position: relative; }
.hero h1 { font-size: var(--fs-h1); letter-spacing: -0.025em; line-height: 1.02; max-width: 13.5em; }
.hero-foot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2rem 4rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.lead { font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); color: var(--slate-500); max-width: 36rem; }
.hero-points {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(3.5rem, 8vw, 6rem); border-top: 1px solid var(--line-strong);
}
.hero-points li { padding: 1.5rem 1.5rem 0 0; }
.hero-points li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.hero-points .section-num { display: block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; margin-bottom: 0.6rem; }
.hero-points strong { display: block; font-size: var(--fs-sm); font-weight: 700; color: var(--navy-900); margin-bottom: 0.25rem; }
.hero-points p { font-size: var(--fs-sm); color: var(--slate-500); line-height: 1.55; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); }
.about-body > p { color: var(--slate-500); font-size: var(--fs-lg); }
.about-body > p + p { margin-top: 1.25rem; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.75rem; padding-top: 2rem; border-top: 1px solid var(--line-strong); }
.values h3 { display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; margin-bottom: 0.4rem; }
.values h3::before { content: ""; width: 6px; height: 6px; background: var(--blue-600); flex-shrink: 0; }
.values p { font-size: var(--fs-sm); color: var(--slate-500); }

/* ---------- Services ---------- */
/* Hairline grid: 1px gaps reveal the border colour behind the cells */
.service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.service-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); padding: clamp(1.75rem, 3vw, 2.25rem);
  transition: background-color .3s var(--ease);
}
.service-card::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: var(--blue-600);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.service-card:hover::after { transform: scaleX(1); }
.service-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.75rem; }
.service-top .section-num { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; }
.service-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--grey-50); color: var(--blue-600);
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.service-card:hover .service-icon { background: var(--blue-100); border-color: transparent; }
.service-icon svg { width: 21px; height: 21px; stroke-width: 1.5; }
.service-card h3 { margin-bottom: 0.55rem; }
.service-card p { font-size: var(--fs-sm); color: var(--slate-500); }
.service-card-cta { background: var(--navy-800); color: #cfd8e8; }
.service-card-cta::after { display: none; }
.service-card-cta h3 { color: var(--white); font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; letter-spacing: -0.01em; }
.service-card-cta p { color: #b9c4d8; margin-bottom: 1.5rem; }
.service-card-cta .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Portfolio ---------- */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.project-link { display: block; height: 100%; border-radius: var(--radius); }
.project-media {
  aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius);
  background: var(--grey-50); border: 1px solid var(--line);
}
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project-link:hover .project-media img { transform: scale(1.03); }
.project-info { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding: 1.1rem 0.15rem 0; }
.project-cat { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-500); margin-bottom: 0.25rem; }
.project-info h3 { font-size: 1.1875rem; }
.project-link:hover .project-media { border-color: var(--line-strong); }
.project-visit {
  display: inline-flex; align-items: center; gap: 0.35rem; flex-shrink: 0;
  font-size: var(--fs-sm); font-weight: 600; color: var(--blue-600);
}
.project-visit svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.project-link:hover .project-visit svg { transform: translate(2px, -2px); }

/* Featured in-progress project (spans the full grid width) */
.project-featured {
  grid-column: 1 / -1; display: grid; grid-template-columns: 1.25fr 1fr; align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem); padding: clamp(1rem, 2vw, 1.25rem);
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); background: var(--grey-50);
}
.project-media-drawn { background: var(--white); }
.project-media-drawn svg { width: 100%; height: 100%; }
.project-featured-info { padding: 0.5rem 1rem 0.5rem 0; }
.project-status {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem;
  padding: 0.3rem 0.7rem; border-radius: 4px; background: var(--blue-100);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue-600);
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-600); }
.project-featured h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.25rem); letter-spacing: -0.015em; margin-bottom: 0.85rem; }
.project-desc { color: var(--slate-500); margin-bottom: 1.5rem; }

/* ---------- Process ---------- */
/* Timeline: a shared hairline with a marker for each step */
.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.process::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line-strong); }
.step { position: relative; padding-top: 2.5rem; padding-right: 1rem; }
.step::before {
  content: ""; position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%;
  background: var(--grey-50); border: 1.5px solid var(--blue-600);
}
.step:first-child::before { background: var(--blue-600); }
.step-num {
  display: block; font-family: var(--font-display); font-size: 3rem; line-height: 1; font-weight: 400;
  color: var(--slate-300); margin-bottom: 1.25rem; font-variant-numeric: lining-nums;
}
.step h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.step p { font-size: var(--fs-sm); color: var(--slate-500); max-width: 18rem; }

/* ---------- CTA ---------- */
.cta-section { padding-block: clamp(3rem, 6vw, 5rem); }
.cta {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2rem 4rem;
  padding: clamp(2.75rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4.5rem);
  border-radius: calc(var(--radius) + 4px);
  background: var(--navy-800); color: #cfd8e8;
}
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(105deg, transparent 35%, #000 100%);
          mask-image: linear-gradient(105deg, transparent 35%, #000 100%);
}
.cta > * { position: relative; }
.cta .eyebrow { color: var(--blue-300); }
.cta h2 { color: var(--white); margin-bottom: 0.9rem; max-width: 14em; }
.cta p { font-size: var(--fs-lg); max-width: 34rem; }
.cta .btn-row { justify-content: flex-end; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact-info > p { color: var(--slate-500); font-size: var(--fs-lg); margin-top: 1rem; }
.contact-list { display: grid; gap: 0.75rem; margin-top: 2rem; }
.contact-list a {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.contact-list a:hover { border-color: var(--slate-300); background: var(--grey-50); }
.contact-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--blue-100); color: var(--blue-600); flex-shrink: 0; }
.contact-icon svg { width: 20px; height: 20px; }
.contact-list strong { display: block; font-size: var(--fs-sm); }
.contact-list strong + span { display: block; font-size: var(--fs-sm); color: var(--slate-500); word-break: break-word; }
.social-title { margin-top: 2rem; margin-bottom: 0.75rem; font-size: var(--fs-sm); font-weight: 600; }
.social { display: flex; gap: 0.6rem; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); color: var(--navy-600);
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.social a:hover { color: var(--white); background: var(--navy-800); border-color: var(--navy-800); }
.social svg { width: 18px; height: 18px; }

.contact-form {
  display: grid; gap: 1.15rem; padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line); border-top: 2px solid var(--navy-800); border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow);
}
.field { display: grid; gap: 0.45rem; }
.field label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy-600); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.75rem 0.95rem;
  border: 1px solid var(--slate-300); border-radius: var(--radius-sm); background: var(--white);
  font-size: 1rem; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; }
.field ::placeholder { color: #98a2b3; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #aab4c4; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(47, 95, 179, .15);
}
.field [aria-invalid="true"] { border-color: #b42318; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, .12); }
.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 1rem; top: 50%; width: 8px; height: 8px; pointer-events: none;
  border-right: 1.6px solid var(--slate-500); border-bottom: 1.6px solid var(--slate-500);
  transform: translateY(-70%) rotate(45deg);
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; cursor: pointer; }
.field select:invalid { color: #98a2b3; }
.field select option { color: var(--navy-800); }
.field-error { font-size: var(--fs-xs); color: #b42318; min-height: 0; }
.field-error:empty { display: none; }
.form-status { font-size: var(--fs-sm); text-align: center; }
.form-status:empty { display: none; }
.form-status.is-success { color: #067647; background: #ecfdf3; border: 1px solid #abefc6; padding: 0.8rem 1rem; border-radius: var(--radius-sm); }
.form-status.is-error { color: #b42318; background: #fef3f2; border: 1px solid #fecdca; padding: 0.8rem 1rem; border-radius: var(--radius-sm); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #a9b4c8; padding-top: clamp(3.5rem, 7vw, 5rem); font-size: var(--fs-sm); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand p { margin-top: 1.1rem; max-width: 22rem; }
.footer-title { font-family: var(--font); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white); margin-bottom: 1.1rem; }
.site-footer ul { display: grid; gap: 0.65rem; }
.site-footer ul a { transition: color .2s var(--ease); word-break: break-word; }
.site-footer ul a:hover { color: var(--white); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-block: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: var(--fs-xs);
}
.back-top:hover { color: var(--white); }

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

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

/* ---------- Simple page (thank-you / 404) ---------- */
.simple-page { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; text-align: center; padding-block: 4rem; }
.simple-page h1 { font-size: var(--fs-h2); margin-bottom: 1rem; }
.simple-page p { color: var(--slate-500); max-width: 30rem; margin: 0 auto 2rem; }
.simple-page .btn-row { justify-content: center; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .project-grid, .service-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-points { grid-template-columns: repeat(2, 1fr); }
  .hero-points li:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-points li:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 1.5rem; }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; }
  .process::before { display: none; }
  .step { border-top: 1px solid var(--line-strong); padding-top: 2.25rem; }
  .step::before { top: -8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .about-grid, .contact-grid, .project-featured, .section-head-split, .hero-foot, .cta { grid-template-columns: 1fr; }
  .section-head-split .section-sub { justify-self: start; }
  .cta .btn-row { justify-content: flex-start; }
  .project-featured-info { padding: 0 0.5rem 0.75rem; }

  /* Mobile navigation */
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 1.25rem;
    padding: 1.25rem var(--gutter) 1.75rem;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px -20px rgba(15, 31, 61, .3);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 0.85rem 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .site-nav ul a::after { display: none; }
}

@media (max-width: 640px) {
  .project-grid, .process, .service-grid, .hero-points, .field-row { grid-template-columns: 1fr; }
  .hero-points li:nth-child(n) { padding: 1.25rem 0; border-left: 0; margin-top: 0; }
  .hero-points li:nth-child(n+2) { border-top: 1px solid var(--line); }
  .values { grid-template-columns: 1fr; gap: 1.1rem; }
  .btn-row .btn { flex: 1 1 auto; }
  .footer-grid { grid-template-columns: 1fr; }
}
