:root {
  --ink: #18333a;
  --muted: #526a70;
  --paper: #ffffff;
  --soft-mint: #edf8f2;
  --soft-sky: #edf7fb;
  --soft-amber: #fff5df;
  --orange: #f47b20;
  --orange-deep: #d95d12;
  --teal: #17a8a0;
  --green: #63ad52;
  --coral: #f26b5b;
  --blue: #326fd1;
  --line: rgba(24, 51, 58, 0.14);
  --shadow: 0 18px 44px rgba(24, 51, 58, 0.12);
  --shadow-sm: 0 10px 26px rgba(24, 51, 58, 0.08);

  /* Layout scale */
  --container: 1120px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --section-space: clamp(3rem, 7vw, 5rem);
  --radius: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f7fbf6;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

p {
  color: var(--muted);
}

/* -------------------------------------------------------------------------- */
/* Shared layout container                                                    */
/* -------------------------------------------------------------------------- */

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

/* Sections that are themselves the container get vertical rhythm. */
section.section-wrap {
  padding-block: var(--section-space);
}

/* -------------------------------------------------------------------------- */
/* Header / navigation                                                        */
/* -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 241, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 0.7rem var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.05rem;
}

.brand-mark {
  display: block;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(244, 123, 32, 0.22);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.62rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition:
    transform 0.25s ease,
    opacity 0.2s ease;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: var(--gutter);
  left: var(--gutter);
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

body.nav-open .nav-links {
  display: flex;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.78rem 0.85rem;
  border-radius: 9px;
  color: #294a52;
  font-size: 0.96rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(23, 168, 160, 0.1);
  color: #126c68;
}

.nav-external::after {
  content: "↗";
  font-size: 0.8em;
  opacity: 0.6;
}

/* -------------------------------------------------------------------------- */
/* Typography                                                                 */
/* -------------------------------------------------------------------------- */

h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(2.85rem, 11vw, 5.5rem);
  font-weight: 900;
  line-height: 0.95;
}

h2 {
  margin: 0 0 1rem;
  max-width: 48rem;
  font-size: clamp(1.7rem, 4.6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  line-height: 1.25;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--orange-deep);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-transform: uppercase;
}

/* -------------------------------------------------------------------------- */
/* Buttons                                                                    */
/* -------------------------------------------------------------------------- */

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.35rem;
  font-weight: 800;
  font-size: 0.98rem;
  line-height: 1.2;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

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

.button.primary {
  color: #ffffff;
  background: var(--orange);
  box-shadow: 0 14px 28px rgba(244, 123, 32, 0.26);
}

.button.primary:hover {
  background: var(--orange-deep);
}

.button.secondary {
  border-color: rgba(24, 51, 58, 0.18);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
}

.button.secondary:hover {
  border-color: var(--teal);
  color: #126c68;
}

.button.light {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
}

.button.light:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* -------------------------------------------------------------------------- */
/* Hero                                                                       */
/* -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(26rem, 64vh, 38rem);
  padding-block: clamp(2.5rem, 6vw, 4.75rem);
  overflow: hidden;
  background-image:
    linear-gradient(
      180deg,
      rgba(255, 250, 241, 0.97) 0%,
      rgba(255, 250, 241, 0.9) 38%,
      rgba(255, 250, 241, 0.55) 74%,
      rgba(255, 250, 241, 0.2) 100%
    ),
    url("assets/learning-hero.png");
  background-position: center, center;
  background-size: cover, cover;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 4.5rem;
  background: linear-gradient(180deg, rgba(247, 251, 246, 0), #f7fbf6);
  content: "";
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hero-kicker {
  max-width: 38rem;
  margin: 0 0 0.9rem;
  color: var(--ink);
  font-size: clamp(1.12rem, 3.4vw, 1.45rem);
  font-weight: 800;
  line-height: 1.3;
}

.hero-copy {
  max-width: 37rem;
  margin: 0 0 1.4rem;
  font-size: clamp(0.98rem, 2.2vw, 1.05rem);
  color: #3c5860;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.4rem;
}

.hero-tags span {
  border: 1px solid rgba(24, 51, 58, 0.14);
  border-radius: 8px;
  padding: 0.42rem 0.7rem;
  background: rgba(255, 255, 255, 0.82);
  color: #31555c;
  font-size: 0.82rem;
  font-weight: 800;
}

/* -------------------------------------------------------------------------- */
/* Intro band                                                                 */
/* -------------------------------------------------------------------------- */

.intro-band {
  padding-block: clamp(2.4rem, 5vw, 3.4rem);
  background: #f7fbf6;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  align-items: center;
}

.intro-lede {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.18rem, 3.2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.4;
}

.intro-note {
  border-left: 4px solid var(--teal);
  padding: 0.3rem 0 0.3rem 1rem;
}

.intro-note p {
  margin: 0;
}

.note-label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

/* -------------------------------------------------------------------------- */
/* Section headings                                                           */
/* -------------------------------------------------------------------------- */

.section-heading {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  align-items: start;
  margin-bottom: 1.9rem;
}

.section-heading h2 {
  margin: 0;
}

.section-heading.compact {
  max-width: 45rem;
}

/* -------------------------------------------------------------------------- */
/* Card grids                                                                 */
/* -------------------------------------------------------------------------- */

.work-grid,
.focus-grid,
.why-grid,
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.work-grid article,
.focus-grid article,
.why-grid article,
.service-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  padding: 1.25rem;
}

.work-grid article {
  box-shadow: var(--shadow-sm);
}

.work-grid p,
.focus-grid p,
.why-grid p,
.service-grid p {
  margin: 0;
  font-size: 0.94rem;
}

/* Decorative work icons */
.work-icon {
  position: relative;
  display: block;
  width: 2.8rem;
  height: 2.8rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: var(--soft-sky);
}

.work-icon::before,
.work-icon::after {
  position: absolute;
  content: "";
}

.app-icon::before {
  inset: 0.55rem 0.82rem;
  border: 2px solid var(--blue);
  border-radius: 6px;
}

.app-icon::after {
  left: 50%;
  bottom: 0.74rem;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: var(--blue);
  transform: translateX(-50%);
}

.cards-icon {
  background: #fff1de;
}

.cards-icon::before,
.cards-icon::after {
  width: 1.25rem;
  height: 1.6rem;
  border-radius: 5px;
  background: var(--orange);
}

.cards-icon::before {
  top: 0.62rem;
  left: 0.64rem;
  transform: rotate(-10deg);
}

.cards-icon::after {
  top: 0.6rem;
  right: 0.62rem;
  background: var(--coral);
  transform: rotate(11deg);
}

.story-icon {
  background: #eff9ed;
}

.story-icon::before {
  top: 0.8rem;
  left: 0.62rem;
  width: 1.55rem;
  height: 1.1rem;
  border: 2px solid var(--green);
  border-radius: 2px 8px 8px 2px;
}

.story-icon::after {
  top: 0.74rem;
  left: 1.38rem;
  width: 0.12rem;
  height: 1.28rem;
  background: var(--green);
}

.portal-icon {
  background: #eaf8f7;
}

.portal-icon::before {
  inset: 0.68rem;
  border: 2px solid var(--teal);
  border-radius: 7px;
}

.portal-icon::after {
  top: 1.35rem;
  right: 0.9rem;
  left: 0.9rem;
  height: 0.2rem;
  border-radius: 2px;
  background: var(--teal);
}

/* -------------------------------------------------------------------------- */
/* Focus band                                                                 */
/* -------------------------------------------------------------------------- */

.focus-band {
  padding-block: var(--section-space);
  background:
    linear-gradient(180deg, rgba(237, 248, 242, 0.82), rgba(237, 247, 251, 0.8)),
    #edf8f2;
}

.focus-grid article {
  background: rgba(255, 255, 255, 0.86);
}

.focus-grid span {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--teal);
  font-weight: 900;
}

/* -------------------------------------------------------------------------- */
/* Featured project                                                           */
/* -------------------------------------------------------------------------- */

.project-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
  align-items: center;
}

.project-copy p {
  font-size: 1rem;
}

.project-visual {
  overflow: hidden;
  border: 1px solid rgba(24, 51, 58, 0.12);
  border-radius: var(--radius);
  background: #fffaf1;
  box-shadow: var(--shadow);
}

.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.feature-list,
.audience-list {
  display: grid;
  gap: 0.7rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li,
.audience-list li {
  position: relative;
  min-width: 0;
  padding-left: 1.55rem;
  color: #36575f;
  font-weight: 600;
}

.feature-list li::before,
.audience-list li::before {
  position: absolute;
  top: 0.62rem;
  left: 0;
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  background: var(--orange);
  content: "";
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

/* -------------------------------------------------------------------------- */
/* Why band (dark)                                                            */
/* -------------------------------------------------------------------------- */

.why-band {
  padding-block: var(--section-space);
  background: #18333a;
}

.why-band .eyebrow,
.contact-section .eyebrow {
  color: #ffbf71;
}

.why-band h2,
.why-band h3,
.contact-section h2,
.contact-section p {
  color: #ffffff;
}

.why-grid article {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.why-grid p {
  color: rgba(255, 255, 255, 0.76);
}

/* -------------------------------------------------------------------------- */
/* Services                                                                   */
/* -------------------------------------------------------------------------- */

.service-grid article:nth-child(1) {
  border-top: 4px solid var(--orange);
}

.service-grid article:nth-child(2) {
  border-top: 4px solid var(--teal);
}

.service-grid article:nth-child(3) {
  border-top: 4px solid var(--green);
}

.service-grid article:nth-child(4) {
  border-top: 4px solid var(--blue);
}

.service-grid article:nth-child(5) {
  border-top: 4px solid var(--coral);
}

/* -------------------------------------------------------------------------- */
/* Audience band                                                              */
/* -------------------------------------------------------------------------- */

.audience-band {
  padding-block: var(--section-space);
  background: var(--soft-sky);
}

.audience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
  align-items: start;
}

.audience-list {
  grid-template-columns: 1fr;
  margin-top: 0;
}

.audience-list li {
  border: 1px solid rgba(24, 51, 58, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.9rem 0.85rem 2.1rem;
  background: rgba(255, 255, 255, 0.78);
}

.audience-list li::before {
  top: 1.22rem;
  left: 0.85rem;
  background: var(--teal);
}

/* -------------------------------------------------------------------------- */
/* Contact                                                                    */
/* -------------------------------------------------------------------------- */

.contact-section {
  padding-block: clamp(3.4rem, 7vw, 5rem);
  background:
    linear-gradient(135deg, rgba(24, 51, 58, 0.96), rgba(17, 94, 89, 0.95)),
    #18333a;
}

.contact-wrap {
  max-width: 760px;
}

.contact-wrap p {
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.78);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.6rem;
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                     */
/* -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 1.6rem;
  background: #102d31;
  color: #ffffff;
}

.footer-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
}

.footer-brand {
  color: #ffffff;
}

.footer-details {
  display: grid;
  gap: 0.2rem;
}

.footer-details p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  line-height: 1.45;
}

/* -------------------------------------------------------------------------- */
/* Responsive: tablet and up                                                  */
/* -------------------------------------------------------------------------- */

@media (min-width: 560px) {
  .work-grid,
  .focus-grid,
  .why-grid,
  .service-grid,
  .audience-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-actions .button,
  .project-actions .button,
  .contact-actions .button {
    min-width: 0;
  }
}

@media (min-width: 760px) {
  .intro-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(15rem, 0.7fr);
    gap: 2rem;
  }

  .section-heading {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.4fr);
    gap: 2rem;
    margin-bottom: 2.2rem;
  }

  .project-section {
    grid-template-columns: minmax(0, 0.95fr) minmax(20rem, 1fr);
    gap: 2.4rem;
  }

  .project-visual img {
    min-height: 24rem;
  }

  .audience-grid {
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.9fr);
    gap: 2.2rem;
  }

  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-wrap {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }

  .footer-details {
    text-align: right;
  }
}

@media (min-width: 920px) {
  .work-grid,
  .focus-grid,
  .why-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1060px) {
  .service-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* Desktop navigation (collapses the mobile menu) */
@media (min-width: 860px) {
  .hero {
    min-height: clamp(34rem, 70vh, 42rem);
    background-image:
      linear-gradient(
        90deg,
        rgba(255, 250, 241, 0.97) 0%,
        rgba(255, 250, 241, 0.92) 36%,
        rgba(255, 250, 241, 0.5) 60%,
        rgba(255, 250, 241, 0.12) 85%
      ),
      url("assets/learning-hero.png");
    background-position: center, center right;
  }

  .nav-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.2rem;
    width: auto;
    padding: 0.3rem;
    border: 1px solid rgba(24, 51, 58, 0.12);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: none;
  }

  .nav-links a {
    padding: 0.5rem 0.72rem;
    font-size: 0.88rem;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button:hover {
    transform: none;
  }
}
