﻿:root {
  --bg: #000;
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.75);
  --mint: #abffa4;
  --ink: #08100b;
  --card-radius: 12px;
  --shadow: 0 8px 26px rgba(0, 0, 0, 0.34);
  --container: 1160px;
  --section-pad: 106px;
  --dot-inactive: #717171;
  --dot-active: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}

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

.container {
  width: min(var(--container), calc(100% - 2.25rem));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-pad);
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 88px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
  pointer-events: none;
  z-index: 0;
  opacity: 0;
}

.section + .section::before {
  opacity: 0.58;
}

.section > .container {
  position: relative;
  z-index: 1;
}

.chalk-section {
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 50% 45%, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0.8) 82%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.28) 36%, rgba(0, 0, 0, 0.75) 100%),
    url("assets/20260221_165510886_iOS.jpg");
  background-repeat: repeat, repeat, repeat;
  background-size: auto, auto, 320px 320px;
}

.hero {
  position: relative;
  min-height: 100svh;
  background-image: url("assets/20260221_142848929_iOS.jpg");
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: stretch;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 150px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.95));
  pointer-events: none;
  z-index: 1;
}

.hero + .section::before {
  opacity: 1;
  height: 132px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0));
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0.8) 82%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.28) 36%, rgba(0, 0, 0, 0.75) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-height: 100svh;
  padding-block: 2.25rem;
}

.brand {
  position: absolute;
  top: 1.8rem;
  left: 1rem;
  margin: 0;
  font-weight: 600;
  font-size: 1.85rem;
  letter-spacing: 0.01em;
}

.hero-content {
  margin-inline: auto;
  text-align: center;
  max-width: 900px;
  transition: opacity 220ms ease, transform 220ms ease;
}

.hero-content.hero-fade-in {
  animation: heroFadeIn 1520ms ease;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6.8vw, 4.65rem);
  line-height: 1.01;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero-subhead {
  margin: 1rem auto 1.5rem;
  max-width: 800px;
  font-size: clamp(1rem, 1.45vw, 1.32rem);
  color: var(--muted);
}

@keyframes heroFadeIn {
  from {
    opacity: 0.28;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9px;
  padding: 0.82rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.btn-mint {
  color: var(--ink);
  background: var(--mint);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.04);
  outline: none;
}

.btn-small {
  font-size: 0.88rem;
  padding: 0.62rem 1rem;
}

.section-title {
  margin: 0 0 2.3rem;
  text-align: center;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(2.3rem, 4.5vw, 3.4rem);
}

.section-title-left {
  text-align: left;
  margin-bottom: 1.45rem;
}

.slider {
  --cards-per-page: 3;
  --gap: 1.5rem;
}

.slider-window {
  overflow: hidden;
}

.slider-track {
  display: flex;
  gap: var(--gap);
  transition: transform 420ms cubic-bezier(0.2, 0.72, 0.3, 0.98);
  will-change: transform;
}

.slider-track > .card {
  flex: 0 0 calc((100% - (var(--cards-per-page) - 1) * var(--gap)) / var(--cards-per-page));
  min-width: 0;
}

.card {
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  color: #111;
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

#team .team-page-two .card-team img {
  object-position: center 18%;
}

#team .team-page-two .card-team:first-child img {
  object-position: center 25%;
}

.card-body {
  padding: 1rem 1.06rem 1.14rem;
}

.card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.95rem;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.card p {
  margin: 0;
  font-size: 0.91rem;
  line-height: 1.48;
  color: #2f2f2f;
}

.grade-star {
  display: inline-block;
  font-size: 0.72em;
  line-height: 1;
  vertical-align: super;
  transform: translateY(-0.08em);
}

.card-team .card-body {
  display: grid;
  gap: 0.58rem;
}

.card-team h3 {
  font-size: 1.44rem;
  margin-bottom: 0.2rem;
}

.card-team .role {
  color: #3e3e3e;
  font-size: 0.95rem;
  font-weight: 700;
}

.card-team .specialties {
  font-weight: 600;
  color: #252525;
}

.card-team {
  position: relative;
}

.team-cv-toggle {
  justify-self: stretch;
  width: 100%;
  color: #0d0d0d;
  background: #f6f6f6;
  border: 1px solid #d4d4d4;
  box-shadow: none;
  margin-top: 0.1rem;
}

.team-cv-toggle:hover,
.team-cv-toggle:focus-visible {
  background: #efefef;
}

.team-cv-panel {
  display: none !important;
}

body.team-modal-open {
  overflow: hidden;
}

.team-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.team-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.team-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.team-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(540px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
}

.team-modal-content {
  width: 100%;
}

.team-modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.56);
  color: #fff;
  border-radius: 8px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.28rem 0.58rem;
  cursor: pointer;
  z-index: 2;
}

.team-modal-close:hover,
.team-modal-close:focus-visible {
  background: rgba(0, 0, 0, 0.72);
  outline: none;
}

.team-modal-card {
  margin: 0;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.48);
}

.team-modal-card .card-body {
  display: grid;
  gap: 0.62rem;
}

.team-modal-details {
  margin-top: 0.2rem;
  border-top: 1px solid #dfdfdf;
  padding-top: 0.62rem;
  display: grid;
  gap: 0.45rem;
}

.team-modal-details p {
  margin: 0;
  color: #1f1f1f;
  font-size: 0.88rem;
  line-height: 1.4;
}

.team-modal-details ul {
  margin: 0;
  padding-left: 1.1rem;
}

.team-modal-details li {
  color: #1f1f1f;
  font-size: 0.88rem;
  line-height: 1.4;
}

.team-modal-details li + li {
  margin-top: 0.35rem;
}

.team-modal-cta {
  justify-self: start;
  margin-top: 0.18rem;
}

.team-modal[aria-hidden="true"] {
  pointer-events: none;
}

.slider-dots {
  margin-top: 1.3rem;
  display: flex;
  justify-content: center;
  gap: 0.68rem;
}

.slider-dots button {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 0;
  background: var(--dot-inactive);
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease;
}

.slider-dots button[aria-selected="true"] {
  background: var(--dot-active);
  transform: scale(1.08);
}

.team-paged-slider {
  max-width: 1100px;
  margin-inline: auto;
}

.team-page-track {
  display: flex;
  transition: transform 460ms cubic-bezier(0.2, 0.72, 0.3, 0.98);
  will-change: transform;
}

.team-page {
  flex: 0 0 100%;
  display: grid;
  gap: 1.5rem;
}

.team-page-two {
  grid-template-columns: repeat(2, minmax(0, 360px));
  justify-content: center;
  column-gap: 3.4rem;
  align-items: start;
}

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

.team-page .card-team {
  min-width: 0;
  align-self: start;
}

.services-tabs {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2.15rem;
}

.service-pill {
  min-width: 92px;
  border: 0;
  border-radius: 9px;
  padding: 0.65rem 1rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.03rem;
  color: #101010;
  background: var(--mint);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.26);
  cursor: pointer;
  transition: transform 150ms ease, filter 150ms ease;
}

.service-pill[aria-selected="true"] {
  background: #fff;
}

.service-pill:hover,
.service-pill:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.03);
  outline: none;
}

.service-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: center;
  max-width: 1040px;
  margin-inline: auto;
  transition: opacity 230ms ease, transform 230ms ease;
}

.service-panel.is-switching {
  opacity: 0.36;
  transform: translateY(6px);
}

.service-image-wrap {
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.service-image-wrap img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}

.service-copy h3 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.service-copy p {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 1.03rem;
}

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

.teach-grid.reveal-ready .teach-copy,
.teach-grid.reveal-ready .teach-image {
  opacity: 0;
  transition: transform 620ms cubic-bezier(0.2, 0.72, 0.3, 0.98), opacity 620ms ease;
  will-change: transform, opacity;
}

.teach-grid.reveal-ready .teach-copy {
  transform: translateX(76px);
}

.teach-grid.reveal-ready .teach-image {
  transform: translateX(-76px);
}

.teach-grid.reveal-ready.is-visible .teach-copy,
.teach-grid.reveal-ready.is-visible .teach-image {
  opacity: 1;
  transform: translateX(0);
}

.teach-grid.reveal-ready.is-visible .teach-image {
  transition-delay: 70ms;
}

.teach-copy p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.03rem;
  max-width: 57ch;
}

.teach-image {
  justify-self: end;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.teach-image img {
  width: min(100%, 540px);
  height: auto;
  object-fit: contain;
  object-position: right center;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.7rem;
}

.resource-card {
  text-align: center;
}

.resource-card h3 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 3.1vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.015em;
}

.resource-card img {
  width: 100%;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.resource-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.52;
  text-align: left;
}

.resource-card .btn {
  margin-top: 1rem;
}

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

.contact-form {
  display: grid;
  gap: 0.5rem;
}

.contact-form label {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 0.78rem 0.85rem;
  font-family: inherit;
  font-size: 0.97rem;
  color: #111;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  margin-bottom: 0.48rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(171, 255, 164, 0.6);
  outline-offset: 1px;
}

.contact-form .btn {
  justify-self: start;
  margin-top: 0.2rem;
}

.form-message {
  min-height: 1.2rem;
  margin: 0;
  color: var(--mint);
  font-size: 0.95rem;
  font-weight: 600;
}

.footer {
  padding-top: 0;
  padding-bottom: 3rem;
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
}

.footer-links {
  margin-top: 0.85rem;
  display: flex;
  justify-content: center;
  gap: 2.15rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 600;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--mint);
  outline: none;
}

.copyright {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 1080px) {
  :root {
    --section-pad: 90px;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 6.4vw, 3.8rem);
  }

  .service-panel,
  .teach-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .teach-image {
    justify-self: stretch;
  }

  .teach-image img {
    width: 100%;
  }

  .team-page-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  :root {
    --section-pad: 72px;
  }

  .container {
    width: min(var(--container), calc(100% - 1.35rem));
  }

  .brand {
    font-size: 1.18rem;
    top: 1.35rem;
    left: 0.5rem;
  }

  .hero-content {
    padding-top: 1.5rem;
  }

  .hero-subhead {
    font-size: 1rem;
    margin-top: 0.85rem;
  }

  .hero::after {
    height: 106px;
  }

  .section::before {
    height: 66px;
  }

  .hero + .section::before {
    height: 96px;
  }

  .team-page-two,
  .team-page-three {
    grid-template-columns: 1fr;
    max-width: 430px;
    margin-inline: auto;
  }

  .slider {
    --gap: 1rem;
  }

  .card h3 {
    font-size: 1.56rem;
  }

  .services-tabs {
    gap: 0.5rem;
  }

  .service-pill {
    min-width: 84px;
    padding-inline: 0.8rem;
    font-size: 0.95rem;
  }

  .service-copy h3 {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .service-copy p,
  .teach-copy p,
  .resource-card p {
    font-size: 1rem;
  }

  .footer-brand {
    font-size: 1.7rem;
  }
}

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

  * {
    transition: none !important;
    animation: none !important;
  }
}
