:root {
  color-scheme: light;
  --ink: #162027;
  --muted: #5b6770;
  --paper: #f8f5ef;
  --surface: #ffffff;
  --line: #d9ded9;
  --teal: #126a73;
  --teal-dark: #0c444a;
  --amber: #c17928;
  --green: #587145;
  --blue: #385b8f;
  --shadow: 0 20px 60px rgba(17, 28, 35, .14);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
  background: rgba(10, 20, 24, .62);
  color: #fff;
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .12);
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 6px;
  color: rgba(255, 255, 255, .82);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  outline: none;
}

.hero {
  min-height: 92vh;
  position: relative;
  display: grid;
  align-items: end;
  padding: 112px 0 48px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 18, 21, .92) 0%, rgba(7, 18, 21, .72) 42%, rgba(7, 18, 21, .2) 100%),
    linear-gradient(180deg, rgba(7, 18, 21, .18), rgba(7, 18, 21, .72)),
    url("education-ict-web-hero.png") center / cover no-repeat;
}

.hero-inner,
.section-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-copy {
  width: min(760px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #ffe0ad;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  font-size: clamp(42px, 7vw, 86px);
}

h2 {
  font-size: clamp(30px, 4vw, 52px);
}

h3 {
  font-size: 22px;
}

p {
  margin: 0;
}

.lead {
  max-width: 680px;
  margin-top: 24px;
  color: rgba(255, 255, 255, .84);
  font-size: clamp(18px, 2vw, 23px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  font-size: 15px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: #f0aa47;
  color: #171a16;
  box-shadow: 0 14px 36px rgba(240, 170, 71, .24);
}

.button.secondary {
  border-color: rgba(255, 255, 255, .34);
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(840px, 100%);
  margin-top: 48px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(12px);
}

.metric {
  min-height: 116px;
  padding: 20px;
  background: rgba(10, 23, 27, .36);
}

.metric strong {
  display: block;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
  color: #fff;
}

.metric span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, .76);
  font-size: 14px;
}

section {
  padding: 86px 0;
}

.section-kicker {
  max-width: 720px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
}

.profile-band {
  background: var(--surface);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 54px;
  align-items: start;
}

.statement {
  color: #2f3a41;
  font-size: 21px;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.profile-capabilities {
  margin-top: 34px;
}

.capability {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfaf7;
}

.capability b {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.capability span {
  color: var(--muted);
  font-size: 14px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.timeline-item {
  padding: 24px;
  border-left: 5px solid var(--teal);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 32px rgba(22, 32, 39, .08);
}

.timeline-item:nth-child(2) {
  border-color: var(--amber);
}

.period {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.projects-band {
  background: #edf3f1;
}

.foundation-band {
  background: #f8f5ef;
}

.foundation-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 46px;
  align-items: start;
  margin-top: 34px;
}

.foundation-list {
  display: grid;
  gap: 14px;
}

.foundation-item {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 32px rgba(22, 32, 39, .07);
}

.foundation-item p {
  margin-top: 8px;
  color: var(--muted);
}

.tool-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.project-card {
  position: relative;
  display: flex;
  min-height: 500px;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid #cbd8d4;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.project-card > * {
  position: relative;
  z-index: 1;
}

.project-card.featured {
  background: #10262a;
  color: #fff;
}

.project-card--preview::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(180deg, rgba(9, 18, 22, .18), rgba(9, 18, 22, .7)),
    var(--project-preview);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .28s ease, transform .28s ease;
}

.project-card--preview:hover::before,
.project-card--preview:focus-visible::before {
  opacity: 1;
  transform: scale(1);
}

.project-card--preview .project-top p,
.project-card--preview .project-notes,
.project-card--preview .tag-list {
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease, max-height .18s ease, margin .18s ease;
}

.project-card--preview .project-top p {
  max-height: 120px;
  overflow: hidden;
}

.project-card--preview .project-notes,
.project-card--preview .tag-list {
  max-height: 240px;
  overflow: hidden;
}

.project-card--preview:hover .project-top p,
.project-card--preview:hover .project-notes,
.project-card--preview:hover .tag-list,
.project-card--preview:focus-visible .project-top p,
.project-card--preview:focus-visible .project-notes,
.project-card--preview:focus-visible .tag-list {
  opacity: 0;
  transform: translateY(8px);
  visibility: hidden;
  max-height: 0;
  margin-top: 0;
}

.project-card--preview:hover .project-top,
.project-card--preview:focus-visible .project-top {
  margin-bottom: 0;
}

.project-card--preview:hover h3,
.project-card--preview:focus-visible h3 {
  text-shadow: 0 2px 18px rgba(0, 0, 0, .65);
}

.project-card.featured p,
.project-card.featured .tag {
  color: rgba(255, 255, 255, .76);
}

.project-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.project-code {
  flex: 0 0 auto;
  padding: 7px 9px;
  border-radius: 6px;
  background: #e7efe8;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.featured .project-code {
  background: rgba(255, 255, 255, .12);
  color: #ffe0ad;
}

.project-card p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.tag {
  padding: 6px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.project-notes {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.note {
  padding-top: 12px;
  border-top: 1px solid rgba(128, 143, 146, .32);
  color: inherit;
  font-size: 14px;
}

.services-band {
  background: var(--surface);
}

.services-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 46px;
  align-items: start;
}

.service-list {
  display: grid;
  gap: 14px;
}

.service-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.service-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  background: var(--teal);
  font-weight: 900;
}

.service-row:nth-child(2) .service-icon {
  background: var(--blue);
}

.service-row:nth-child(3) .service-icon {
  background: var(--amber);
}

.service-row:nth-child(4) .service-icon {
  background: var(--green);
}

.service-row p {
  margin-top: 5px;
  color: var(--muted);
}

.workstyle-band {
  background: #212a2e;
  color: #fff;
}

.workstyle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.workstyle {
  min-height: 230px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .05);
}

.workstyle p {
  margin-top: 12px;
  color: rgba(255, 255, 255, .72);
}

.contact-band {
  background: #f8f5ef;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 42px;
  align-items: center;
  padding: 44px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  color: var(--muted);
}

.contact-action {
  display: grid;
  gap: 12px;
}

.contact-action .button {
  width: 100%;
}

.button.dark {
  background: var(--ink);
  color: #fff;
}

.button.light {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.modal-backdrop {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(9, 18, 22, .66);
  backdrop-filter: blur(10px);
}

.modal-backdrop.is-open {
  display: flex;
}

.contact-modal {
  width: min(640px, 100%);
  max-height: calc(100vh - 36px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .32);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 24px 16px;
  border-bottom: 1px solid #c8d8d5;
  background: linear-gradient(135deg, #e7f0ed 0%, #fbf6ec 100%);
}

.modal-header h2 {
  font-size: clamp(24px, 4vw, 32px);
}

.modal-header p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.icon-button {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(22, 32, 39, .12);
  border-radius: 6px;
  background: rgba(255, 255, 255, .74);
  color: var(--ink);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.contact-form {
  display: grid;
  gap: 14px;
  overflow: auto;
  padding: 20px 24px 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 13px;
  font-weight: 800;
  color: #2f3a41;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid #cfd8d3;
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.form-field textarea {
  min-height: 112px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(18, 106, 115, .18);
}

.hidden-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 20px;
  color: var(--muted);
  font-size: 14px;
}

.form-status.is-error {
  color: #9d2f23;
}

.form-status.is-success {
  color: var(--green);
  font-weight: 800;
}

footer {
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 880px) {
  .nav {
    height: auto;
    padding: 12px 0;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero {
    min-height: auto;
    padding-top: 132px;
  }

  .hero-meta,
  .split,
  .timeline,
  .foundation-grid,
  .project-grid,
  .services-layout,
  .workstyle-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .nav {
    width: min(100% - 24px, 1180px);
  }

  .brand span:last-child {
    display: none;
  }

  .nav-links {
    gap: 2px;
    font-size: 13px;
  }

  .nav-links a {
    padding: 7px 6px;
  }

  .hero-inner,
  .section-inner {
    width: min(100% - 24px, 1180px);
  }

  section {
    padding: 62px 0;
  }

  .hero {
    background-position: 56% center;
  }

  .hero-actions,
  .form-grid,
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .capability-grid,
  .hero-meta {
    display: grid;
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: auto;
  }

  .contact-panel {
    padding: 24px;
  }
}
