/* ================================================================
   DELTIME v4.0 — Premium Letter Style
   System fonts only — renders identically on file:// and https://
   ================================================================ */

/* ---------------------------------------------------------------
   VARIABLES
--------------------------------------------------------------- */
:root {
  --bg:        #faf7f4;
  --bg1:       #f2ede6;
  --bg2:       #e8e1d7;
  --text:      #1c1814;
  --text2:     #4a4035;
  --muted:     #7d7260;
  --gold:      #8a6b2a;
  --gold2:     #a88a4a;
  --gold3:     #6e5220;
  --accent:    #8b2020;
  --accent2:   #a82828;
  --accent3:   #6b1818;
  --border:    rgba(110,82,32,0.16);
  --border2:   rgba(110,82,32,0.09);
  --cream:     #1c1814;
  --green:     #3a7a50;
  --amber:     #a06820;
  --red:       #8b2020;
  --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---------------------------------------------------------------
   RESET
--------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a  { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul  { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------------------------------------------------------------
   HEADER — fixed pixel values, system fonts, no dependencies
--------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #faf7f4;
  border-bottom: 2px solid #8b2020;
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
  height: 120px;
  display: flex;
  align-items: center;
  padding: 0 4%;
}

.header-inner {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  text-decoration: none;
  margin-right: auto;
}

.brand-img {
  height: 110px;
  width: auto;
  display: block;
  object-fit: contain;
}


.brand-logo {
  width: 42px;
  height: 42px;
  border: 1px solid #8b2020;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  color: #8b2020;
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: bold;
}

.brand-logo::before {
  content: "";
  position: absolute;
  top: -4px; left: -4px;
  width: 8px; height: 8px;
  border-top: 1px solid #8b2020;
  border-left: 1px solid #8b2020;
}

.brand-logo::after {
  content: "";
  position: absolute;
  bottom: -4px; right: -4px;
  width: 8px; height: 8px;
  border-bottom: 1px solid #8b2020;
  border-right: 1px solid #8b2020;
}

.brand-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #1c1814;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.site-nav a {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #7d7260;
  padding: 0 20px;
  height: 120px;
  display: flex;
  align-items: center;
  border-left: 1px solid rgba(110,82,32,0.12);
  transition: color 0.2s;
  text-decoration: none;
}

.site-nav a:last-child {
  border-right: 1px solid rgba(110,82,32,0.12);
}

.site-nav a:hover,
.site-nav a.active {
  color: #8b2020;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(139,32,32,0.25);
  padding: 10px;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 1px;
  background: #4a4035;
}

/* ---------------------------------------------------------------
   LAYOUT
--------------------------------------------------------------- */
.container {
  width: 92%;
  max-width: 1400px;
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

.divider {
  height: 1px;
  background: var(--border);
}

/* ---------------------------------------------------------------
   TYPOGRAPHY
--------------------------------------------------------------- */
h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: bold;
  line-height: 1.0;
  letter-spacing: -1px;
  color: var(--cream);
}

h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: bold;
  line-height: 1.1;
  color: var(--cream);
}

h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: bold;
  color: var(--cream);
  margin-bottom: 8px;
}

h4 {
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.lead {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text2);
  line-height: 1.7;
}

.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------------------------------------------------------------
   SECTION LABEL
--------------------------------------------------------------- */
.section-label {
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent3);
  flex-shrink: 0;
}

/* ---------------------------------------------------------------
   BUTTONS
--------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 28px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent2);
  border-color: var(--accent2);
}

.btn-ghost {
  background: transparent;
  color: var(--text2);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--gold3);
  color: var(--gold);
}

/* ---------------------------------------------------------------
   BADGE / CHIP
--------------------------------------------------------------- */
.badge {
  display: inline-block;
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(139,32,32,0.35);
  padding: 3px 10px;
  margin-bottom: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text2);
  border: 1px solid var(--border);
  padding: 4px 12px;
}

/* ── Project sector + services redesign ─────────────────── */
.project-sector {
  display: inline-block;
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(139,32,32,0.35);
  padding: 3px 12px;
}

.project-services {
  margin-top: 14px;
  margin-bottom: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services-label {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 8.5px;
  font-weight: bold;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.services-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tag {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 13px;
  font-style: italic;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-tag::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--gold3);
  flex-shrink: 0;
}

.service-tag + .service-tag {
  padding-left: 8px;
  border-left: 1px solid var(--border);
}

.chip-link {
  display: inline-flex;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 5px 14px;
  transition: all 0.2s;
  text-decoration: none;
}

.chip-link:hover {
  color: var(--accent);
  border-color: var(--accent3);
}

/* ---------------------------------------------------------------
   PAGE HERO (inner pages)
--------------------------------------------------------------- */
.page-hero {
  padding: 80px 4% 60px;
  border-bottom: 1px solid var(--border);
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 87px,
    rgba(139,32,32,0.03) 87px, rgba(139,32,32,0.03) 88px
  );
}

.page-hero h1 { margin-top: 10px; margin-bottom: 20px; }
.page-hero .lead { margin-top: 10px; }

/* Tool nav */
.tool-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 28px;
  border: 1px solid var(--border);
  width: fit-content;
}

.tool-nav a {
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 16px;
  border-right: 1px solid var(--border);
  transition: all 0.2s;
  text-decoration: none;
}

.tool-nav a:last-child { border-right: none; }
.tool-nav a:hover { color: var(--accent); background: rgba(139,32,32,0.04); }
.tool-nav a.active { color: var(--accent); background: rgba(139,32,32,0.05); }

/* ---------------------------------------------------------------
   HOME HERO
--------------------------------------------------------------- */
.hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 87px,
    rgba(139,32,32,0.03) 87px, rgba(139,32,32,0.03) 88px
  );
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent3);
}

.hero h1 em {
  font-style: italic;
  font-weight: bold;
  color: var(--accent);
}

.hero .lead { max-width: 480px; margin-top: 20px; }

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
  margin-bottom: 32px;
}

.hero-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.hero-media {
  border: 1px solid var(--border);
  overflow: hidden;
  min-height: 480px;
  position: relative;
  background: var(--bg2);
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(139,32,32,0.12);
  z-index: 2;
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  filter: brightness(0.9);
}

.hero-media:hover img { transform: scale(1.03); }

.hero-media-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: rgba(139,32,32,0.92);
  border: 1px solid var(--accent);
  padding: 12px 16px;
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  z-index: 3;
  line-height: 1.6;
}

/* ---------------------------------------------------------------
   STATS BAR
--------------------------------------------------------------- */
.stats-bar {
  border-top: 2px solid var(--accent);
  border-bottom: 1px solid var(--border);
  background: var(--bg1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  text-align: center;
  padding: 40px 20px;
  border-right: 1px solid var(--border);
}

.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: bold;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------------------------------------------------------------
   SERVICE CARDS
--------------------------------------------------------------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* 2x2 service card grid — flush borders, no gap */
.grid-2-services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}

.grid-2-services .media-card {
  border: none;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.grid-2-services .media-card:nth-child(even) {
  border-right: none;
}

.grid-2-services .media-card:nth-last-child(-n+2) {
  border-bottom: none;
}

.service-card {
  background: var(--bg1);
  border-right: 1px solid var(--border);
  padding: 40px 32px;
  transition: background 0.25s;
}

.service-card:last-child { border-right: none; }
.service-card:hover { background: rgba(139,32,32,0.04); }

.service-num {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(139,32,32,0.5);
  margin-bottom: 16px;
}

.service-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.service-card ul li {
  font-family: Georgia, serif;
  font-size: 14px;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
  line-height: 1.6;
}

.service-card ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.7em;
  top: 0.3em;
}

/* ---------------------------------------------------------------
   PROJECTS LIST
--------------------------------------------------------------- */
.project-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.project {
  display: grid;
  grid-template-columns: 42% 1fr;
  min-height: 480px;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.project:last-child { border-bottom: none; }
.project:hover { background: rgba(196,175,120,0.015); }

.project-media {
  overflow: hidden;
  min-height: 480px;
}

.project-media img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  filter: brightness(0.9);
  transition: transform 0.6s var(--ease), filter 0.6s;
}

.project:hover .project-media img {
  transform: scale(1.04);
  filter: brightness(1);
}

.project-body {
  padding: 48px 56px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-top {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
}

.project-body h3 { margin-bottom: 12px; }

.project-body p {
  font-family: Georgia, serif;
  font-size: 15px;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 28px;
}

.attr {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.attr .item {
  padding: 14px 0;
  padding-right: 16px;
}

.attr .item + .item {
  padding-left: 16px;
  border-left: 1px solid var(--border);
}

.attr .k {
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.attr .v {
  font-family: Georgia, serif;
  font-size: 15px;
  color: var(--text2);
}

/* ---------------------------------------------------------------
   CONTACT
--------------------------------------------------------------- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.contact-info-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.contact-info-item:nth-child(even) { border-right: none; }

.ck {
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.cv {
  font-family: Georgia, serif;
  font-size: 15px;
  color: var(--text2);
}

.cv a { color: var(--accent); }

.next-steps {
  padding: 28px 24px;
  border-top: 1px solid var(--border);
}

.next-steps ol {
  counter-reset: step;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
}

.next-steps ol li {
  counter-increment: step;
  display: flex;
  gap: 14px;
  font-family: Georgia, serif;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.next-steps ol li::before {
  content: counter(step, upper-roman);
  font-style: italic;
  color: var(--accent);
  flex-shrink: 0;
  width: 20px;
}

.contact-form-panel {
  padding: 40px;
  border-left: 1px solid var(--border);
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

input, select, textarea {
  font-family: Georgia, serif;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

input:focus, select:focus, textarea:focus { border-color: var(--gold3); }
input::placeholder, textarea::placeholder { color: var(--muted); }
select { cursor: pointer; }
select option { background: var(--bg1); }
textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 13px; margin-top: 10px; min-height: 1.5em; }

/* ---------------------------------------------------------------
   METHOD GRID (programme pages)
--------------------------------------------------------------- */
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
}

.method-box {
  padding: 32px 28px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.25s;
}

.method-box:nth-child(3n) { border-right: none; }
.method-box:nth-last-child(-n+3) { border-bottom: none; }
.method-box:hover { background: rgba(139,32,32,0.03); }

.method-box p {
  font-family: Georgia, serif;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  margin-top: 8px;
}

/* Programme facts */
.prog-facts {
  display: flex;
  border: 1px solid var(--border);
  margin-top: 32px;
}

.prog-fact {
  flex: 1;
  padding: 24px 28px;
  border-right: 1px solid var(--border);
}

.prog-fact:last-child { border-right: none; }

.pf-label {
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.pf-val {
  font-family: Georgia, serif;
  font-size: 2.2rem;
  font-weight: bold;
  color: var(--cream);
  line-height: 1;
}

.pf-sub {
  font-family: Georgia, serif;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* ---------------------------------------------------------------
   GANTT TABLE
--------------------------------------------------------------- */
.gantt-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  margin-top: 32px;
}

.gantt-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  font-size: 12px;
  white-space: nowrap;
}

.gantt-table thead tr {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}

.gantt-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  border-right: 1px solid var(--border2);
}

.gantt-table td {
  padding: 9px 14px;
  color: var(--text2);
  border-right: 1px solid var(--border2);
  border-bottom: 1px solid var(--border2);
  vertical-align: middle;
}

.act-id { font-size: 10px; color: var(--gold3) !important; }
.act-name { white-space: normal; max-width: 240px; color: var(--text) !important; font-family: Georgia, serif; font-size: 13px; }
.crit .act-name { color: var(--cream) !important; }

.phase-row td {
  background: var(--bg2);
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  padding: 7px 14px;
  border-bottom: 1px solid var(--border);
}

.status {
  display: inline-block;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 8px;
  border: 1px solid;
}

.status-prog { color: var(--green); border-color: rgba(106,155,122,0.3); }
.status-cp   { color: var(--accent); border-color: rgba(139,32,32,0.3); }
.status-plan { color: var(--muted); border-color: var(--border); }
.status-risk { color: var(--amber); border-color: rgba(196,144,74,0.3); }

/* ---------------------------------------------------------------
   SECTOR CARDS
--------------------------------------------------------------- */
/* ---------------------------------------------------------------
   SECTORS GRID — premium redesign
--------------------------------------------------------------- */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
}

/* First row: 4 cards full width */
/* Second row: 3 cards + "other" card */

.sector-card {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  cursor: pointer;
}

/* Image — always dark enough so text is readable */
.sector-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
  transition: transform 0.7s var(--ease), filter 0.7s;
}

.sector-card:hover img,
.sector-card.open img {
  filter: brightness(0.92);
  transform: scale(1.05);
}

/* Full-card dark gradient overlay — text always visible */
.sector-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 28px;
  background:
    linear-gradient(to top,
      rgba(12,11,9,0.88) 0%,
      rgba(12,11,9,0.45) 45%,
      rgba(12,11,9,0.1)  75%,
      transparent        100%);
}

/* Number label top-left */
.sector-num {
  position: absolute;
  top: 24px;
  left: 28px;
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  z-index: 2;
}

/* Sector title — always white, always visible */
.sector-overlay h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: bold;
  color: #f5f0e8;
  margin: 0 0 10px 0;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}

/* Description — always visible */
.sector-overlay p {
  font-family: Georgia, serif;
  font-size: 13px;
  color: rgba(200,191,168,0.85);
  line-height: 1.6;
  margin: 0 0 16px 0;
  text-shadow: 0 1px 8px rgba(0,0,0,0.9);
}

/* CTA line */
.sector-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.sector-cta::after {
  content: "→";
  font-size: 12px;
  transition: transform 0.3s;
}

.sector-card:hover .sector-cta,
.sector-card.open .sector-cta {
  opacity: 1;
  transform: none;
}

.sector-card.open .sector-cta::after {
  transform: rotate(90deg);
}

/* Gold bottom border on hover/open */
.sector-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent3), var(--accent2), var(--accent3));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
  z-index: 3;
}

.sector-card:hover .sector-bar,
.sector-card.open .sector-bar { transform: scaleX(1); }

/* Gold left border strip */
.sector-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 3;
}

.sector-card:hover::before,
.sector-card.open::before { opacity: 1; }

/* Grid borders */
.sector-card {
  border-right: 1px solid rgba(110,82,32,0.14);
  border-bottom: 1px solid rgba(110,82,32,0.14);
}

.sector-card:nth-child(4n) { border-right: none; }

/* "Other sectors" card */
.sector-card-other {
  background: var(--bg2);
  border-right: 1px solid rgba(110,82,32,0.14);
  border-bottom: 1px solid rgba(110,82,32,0.14);
  padding: 44px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 380px;
  position: relative;
}

.sector-card-other::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(139,32,32,0.08);
  pointer-events: none;
}

/* ---------------------------------------------------------------
   SERVICES PAGE
--------------------------------------------------------------- */
.media-card {
  background: var(--bg1);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.3s;
}

.media-card:hover { border-color: var(--accent); }

.media-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.88);
  transition: transform 0.6s var(--ease), filter 0.6s;
}

.media-card:hover img {
  filter: brightness(1);
}

.media-card:hover img { transform: scale(1.04); }

.media-card .inner {
  padding: 24px;
}

.media-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.media-card ul li {
  font-family: Georgia, serif;
  font-size: 14px;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
  line-height: 1.6;
}

.media-card ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.7em;
  top: 0.3em;
}

.card {
  background: var(--bg1);
  border: 1px solid var(--border);
  padding: 32px;
  transition: border-color 0.3s;
}

.card:hover { border-color: var(--accent); }

.card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.card ul li {
  font-family: Georgia, serif;
  font-size: 14px;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
  line-height: 1.6;
}

.card ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.7em;
  top: 0.3em;
}

/* ---------------------------------------------------------------
   CAREERS
--------------------------------------------------------------- */
.role-card {
  background: var(--bg1);
  border: 1px solid var(--border);
  padding: 36px;
  transition: border-color 0.3s;
}

.role-card:hover { border-color: var(--accent); }

.role-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.role-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.role-tag {
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid rgba(106,155,122,0.3);
  padding: 2px 10px;
}

.role-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.role-card ul li {
  font-family: Georgia, serif;
  font-size: 14px;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
}

.role-card ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.7em;
  top: 0.3em;
}

.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
}

.mini {
  padding: 16px 20px;
  border-right: 1px solid var(--border);
}

.mini:last-child { border-right: none; }

.mini .k {
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.mini .v {
  font-family: Georgia, serif;
  font-size: 15px;
  color: var(--text);
}

.mini .v a { color: var(--gold); }

/* ---------------------------------------------------------------
   RELATED STRIP
--------------------------------------------------------------- */
.related-strip {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  margin-top: 16px;
}

.related-tag {
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 18px;
  border-right: 1px solid var(--border);
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
}

.related-tag:last-child { border-right: none; }
.related-tag:hover { color: var(--accent); background: rgba(139,32,32,0.04); }

/* ---------------------------------------------------------------
   FOOTER
--------------------------------------------------------------- */
.footer {
  border-top: 2px solid var(--accent);
  background: var(--bg1);
}

/* Top section: logo left, contact right */
.footer-top {
  padding: 40px 4%;
  border-bottom: 1px solid var(--border);
}

.footer-top-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-brand {
  flex-shrink: 0;
}

/* Contact block — groups the three contact items */
.footer-contact-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  max-width: 480px;
}

/* Each contact row: icon + text */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(139,32,32,0.22);
  color: var(--accent);
  margin-top: 2px;
}

.footer-contact-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-contact-label {
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-contact-text address,
.footer-contact-text a {
  font-family: Arial, sans-serif;
  font-size: 13px;
  color: var(--text);
  font-style: normal;
  text-decoration: none;
  line-height: 1.6;
  transition: color 0.2s;
}

.footer-contact-text a:hover {
  color: var(--accent);
}

/* Bottom row: copyright + nav links */
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 4%;
}

.footer-copy {
  font-family: Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  border: 1px solid var(--border);
}

.footer-links a {
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 7px 16px;
  border-right: 1px solid var(--border);
  transition: color 0.2s;
  text-decoration: none;
}

.footer-links a:last-child { border-right: none; }
.footer-links a:hover { color: var(--accent); }

@media(max-width: 700px) {
  .footer-top-inner { flex-direction: column; gap: 32px; }
  .footer-contact-block { max-width: 100%; }
}

/* ---------------------------------------------------------------
   REVEAL ANIMATION
--------------------------------------------------------------- */
.js-loaded .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.js-loaded .reveal.visible {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ---------------------------------------------------------------
   ACTIVE NAV
--------------------------------------------------------------- */
[data-page="home"]     .site-nav a[data-page="home"],
[data-page="services"] .site-nav a[data-page="services"],
[data-page="projects"] .site-nav a[data-page="projects"],
[data-page="sectors"]  .site-nav a[data-page="sectors"],
[data-page="careers"]  .site-nav a[data-page="careers"] {
  color: #8b2020;
}

/* ---------------------------------------------------------------
   SCROLLBAR
--------------------------------------------------------------- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(139,32,32,0.2); }
::selection { background: var(--accent); color: #ffffff; }

/* ---------------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { min-height: 320px; }
  .hero-media img { min-height: 320px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .method-grid { grid-template-columns: 1fr 1fr; }
  .sectors-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-wrapper { grid-template-columns: 1fr; }
  .project { grid-template-columns: 1fr; }
  .project-media { min-height: 300px; }
  .project-media img { min-height: 300px; }
  .project-body { padding: 32px; border-left: none; border-top: 1px solid var(--border); }

  .site-nav {
    display: none;
    position: absolute;
    top: 80px; left: 0; right: 0;
    flex-direction: column;
    background: #faf7f4;
    border-bottom: 1px solid rgba(139,32,32,0.18);
    z-index: 998;
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    height: auto;
    padding: 14px 4%;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid rgba(139,32,32,0.08);
  }
  .site-nav a:last-child { border-right: none; }
  .burger { display: flex; }
}

@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .sectors-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .method-box { border-right: none !important; }
  .prog-facts { flex-direction: column; }
  .prog-fact { border-right: none; border-bottom: 1px solid var(--border); }
  .mini-grid { grid-template-columns: 1fr; }
  .mini { border-right: none; border-bottom: 1px solid var(--border); }
  .footer-row { flex-direction: column; text-align: center; }
  .footer-top-inner { flex-direction: column; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info-item { border-right: none; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
}

/* ================================================================
   PREMIUM ANIMATIONS — v5.0
   ================================================================ */

/* ── 1. Page transition bar (injected by JS) ─────────────────── */
#page-transition {
  animation: shimmer 2s linear infinite;
}
@keyframes shimmer {
  0%   { background-position: 0%   0; }
  100% { background-position: 200% 0; }
}

/* ── 2. Staggered word reveal ────────────────────────────────── */
/* Only animate when JS has processed the element (words-ready class added by JS) */
.words-ready .word-reveal {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px);
  animation: wordUp 0.7s cubic-bezier(0.25,0.46,0.45,0.94) forwards;
}

@keyframes wordUp {
  to { opacity: 1; transform: none; }
}


/* ── 3. Image reveal — transparent fade-in with shimmer ─────── */
.img-reveal-cover {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  overflow: hidden;
  background: transparent;
}

/* Only hide images when JS has initialised the reveal system */
.js-loaded .hero-media[data-reveal] img,
.js-loaded .project-media[data-reveal] img,
.js-loaded .svc-media[data-reveal] img {
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Wrapper gets .img-revealed from JS — triggers the fade + scale */
.js-loaded .img-revealed img {
  opacity: 1 !important;
  transform: scale(1) !important;
}

/* Shimmer sweep across the image during reveal */
.img-reveal-cover::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -80%;
  width: 60%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255,255,255,0.04) 35%,
    rgba(255,255,255,0.12) 50%,
    rgba(255,255,255,0.04) 65%,
    transparent 100%
  );
  transform: skewX(-12deg);
  opacity: 0;
}

.img-reveal-cover.revealed::after {
  animation: shimmerSweep 1.1s cubic-bezier(0.4, 0, 0.2, 1) 0.15s forwards;
}

@keyframes shimmerSweep {
  0%   { left: -80%; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { left: 120%; opacity: 0; }
}

.img-reveal-cover::before { display: none; }



/* ── 6. Scramble counter — flash effect during scramble ──────── */
.stat-num {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}


/* ── 8. Card tilt — preserve 3D ─────────────────────────────── */
.project,
.role-card,
.service-card {
  will-change: transform;
}
