:root {
  --bg: #0f0f10;
  --card: #1f1f21;
  --card-2: #242427;
  --line: #303034;
  --text: #f6f6f7;
  --muted: #8a8a91;
  --muted-dark: #66666d;
  --blue: #5a6dff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 50% -12%, #1a1a1d 0%, var(--bg) 38%, #0d0d0e 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

.site-header,
.site-footer,
.page-shell {
  width: min(1170px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 26px 0 54px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 1.02rem;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--text);
  color: #111;
  font-weight: 800;
}

nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

nav a.active,
nav a:hover {
  color: var(--text);
}

.talk-button {
  justify-self: end;
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 0 24px;
  background: #2b2b2f;
  font-weight: 800;
}

.talk-button:hover {
  background: var(--text);
  color: #111;
}

.page-shell {
  padding-bottom: 62px;
}

.home-grid,
.about-grid,
.work-grid,
.contact-grid-page {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.home-grid {
  align-items: start;
}

.tile {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 32%),
    linear-gradient(145deg, var(--card-2), var(--card));
  box-shadow: var(--shadow);
}

.tile::before {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  border-radius: 29px;
  background: radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.08), transparent 34%);
}

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

.profile-tile {
  grid-column: span 2;
  grid-row: span 2;
  display: grid;
  grid-template-columns: 224px 1fr;
  gap: 30px;
  align-items: center;
  min-height: 326px;
  padding: 46px;
}

.portrait-card {
  width: 224px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 30px 0 30px 30px;
  background: #333;
}

.portrait-card img,
.about-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 28%;
}

.profile-copy .kicker {
  margin-bottom: 10px;
}

.profile-copy p:last-child,
.summary-tile p,
.resume-item p,
.contact-list p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.kicker {
  margin: 0 0 12px;
  color: var(--muted-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 14px;
  font-size: 4.35rem;
  line-height: 0.96;
  font-weight: 700;
}

h2 {
  margin-bottom: 0;
  font-size: 1.9rem;
  line-height: 1.08;
  font-weight: 700;
}

h3 {
  margin-bottom: 28px;
  font-size: 1rem;
  text-transform: uppercase;
}

h4 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.marquee-tile {
  grid-column: span 2;
  display: flex;
  align-items: center;
  min-height: 56px;
  height: 56px;
  white-space: nowrap;
}

.home-grid .profile-tile {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
}

.home-grid .marquee-tile {
  grid-column: 3 / span 2;
  grid-row: 1;
}

.home-grid .credentials-tile {
  grid-column: 3;
  grid-row: 2;
}

.home-grid .projects-tile {
  grid-column: 4;
  grid-row: 2;
}

.home-grid .notes-tile {
  grid-column: 1;
  grid-row: 3;
}

.home-grid .service-tile {
  grid-column: 2 / span 2;
  grid-row: 3;
}

.home-grid .profiles-tile {
  grid-column: 4;
  grid-row: 3;
}

.home-grid .stats-tile {
  grid-column: 1 / span 2;
  grid-row: 4;
}

.home-grid .contact-tile {
  grid-column: 3 / span 2;
  grid-row: 4;
}

.marquee-track {
  display: flex;
  min-width: max-content;
  animation: marquee 22s linear infinite;
}

.marquee-track span {
  position: relative;
  padding: 0 22px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.marquee-track span::after {
  content: "*";
  position: absolute;
  right: -3px;
  color: var(--text);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.mini-tile,
.service-tile,
.contact-tile,
.project-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
}

.mini-tile {
  grid-column: span 1;
}

.service-tile,
.stats-tile,
.contact-tile {
  grid-column: span 2;
}

.signature-visual {
  position: absolute;
  top: 58px;
  right: 26px;
  left: 26px;
  color: rgba(255, 255, 255, 0.78);
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 2.35rem;
  text-align: center;
  transform: rotate(-7deg);
}

.project-preview {
  position: absolute;
  top: 38px;
  right: 32px;
  left: 32px;
  display: grid;
  gap: 10px;
}

.project-preview span,
.roadmap-visual span,
.analytics-visual span {
  display: flex;
  min-height: 32px;
  align-items: center;
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 800;
}

.brand-shape {
  position: absolute;
  top: 45px;
  left: 50%;
  display: grid;
  width: 104px;
  height: 92px;
  grid-template-columns: repeat(2, 1fr);
  transform: translateX(-50%);
}

.brand-shape span:nth-child(1) {
  background: #ff4b3f;
  border-radius: 50%;
}

.brand-shape span:nth-child(2) {
  background: #ffd130;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.brand-shape span:nth-child(3) {
  background: #ffcf2e;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.brand-shape span:nth-child(4) {
  background: #2276dc;
  border-radius: 50%;
}

.service-icons {
  position: absolute;
  top: 48px;
  right: 26px;
  left: 26px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.service-icons span,
.social-buttons a {
  display: grid;
  min-height: 70px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 800;
}

.social-buttons {
  position: absolute;
  top: 34px;
  right: 26px;
  left: 26px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.round-link {
  position: absolute;
  right: 26px;
  bottom: 26px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.round-link::before,
.round-link::after {
  content: "";
  position: absolute;
  background: var(--muted);
}

.round-link::before {
  width: 14px;
  height: 2px;
}

.round-link::after {
  width: 2px;
  height: 14px;
}

a.tile:hover .round-link,
.profile-tile:hover .round-link {
  background: var(--text);
}

a.tile:hover .round-link::before,
a.tile:hover .round-link::after,
.profile-tile:hover .round-link::before,
.profile-tile:hover .round-link::after {
  background: #111;
}

.stats-tile {
  display: grid;
  min-height: 230px;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 24px;
}

.stat-card {
  display: grid;
  align-content: center;
  justify-items: center;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.045);
  text-align: center;
}

.stat-card strong {
  margin-bottom: 16px;
  font-size: 2.4rem;
  line-height: 1;
}

.stat-card span {
  max-width: 130px;
  color: var(--muted-dark);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.45;
  text-transform: uppercase;
}

.contact-tile h2 {
  font-size: 3.2rem;
}

.contact-tile h2 span {
  color: var(--blue);
}

.star-mark {
  position: absolute;
  top: 28px;
  left: 30px;
  width: 44px;
  height: 58px;
}

.star-mark::before,
.star-mark::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.35);
}

.star-mark::before {
  top: 0;
  left: 21px;
  width: 2px;
  height: 58px;
}

.star-mark::after {
  top: 28px;
  left: 0;
  width: 44px;
  height: 2px;
}

.star-mark.small {
  position: relative;
  top: auto;
  left: auto;
  margin-bottom: 26px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 6px 0 34px;
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer > span {
  justify-self: end;
}

.about-photo {
  grid-column: 1 / span 1;
  grid-row: 2;
  min-height: 330px;
}

.section-title {
  grid-column: 1 / span 4;
  grid-row: 1;
  display: grid;
  align-items: center;
  min-height: 140px;
}

.section-title h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0;
  font-size: 4.4rem;
  text-align: center;
}

.section-title span {
  display: block;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.summary-tile {
  grid-column: 2 / span 3;
  grid-row: 2;
  min-height: 330px;
  padding: 46px;
}

.summary-tile h2 {
  margin-bottom: 24px;
  font-size: 2.4rem;
}

.resume-tile {
  grid-column: span 2;
  min-height: 420px;
  padding: 32px;
}

.resume-item {
  margin-top: 28px;
}

.resume-item span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted-dark);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.work-title {
  grid-column: span 4;
}

.project-card {
  grid-column: span 2;
  min-height: 360px;
}

.work-visual {
  position: absolute;
  top: 34px;
  right: 34px;
  left: 34px;
  display: grid;
  min-height: 190px;
  place-items: center;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
}

.app-visual span,
.classroom-visual span {
  font-size: 1.55rem;
  font-weight: 800;
}

.roadmap-visual,
.analytics-visual {
  align-content: center;
  gap: 12px;
  place-items: stretch;
  padding: 28px;
}

.cohort-visual {
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 28px;
}

.cohort-visual span,
.ops-visual span {
  display: grid;
  min-height: 100px;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 1.8rem;
  font-weight: 800;
}

.ops-visual {
  grid-template-columns: 0.8fr 1fr;
  gap: 16px;
  padding: 28px;
}

.ops-visual span:last-child {
  font-size: 1rem;
}

.contact-grid-page {
  align-items: start;
}

.contact-info-panel {
  grid-column: span 1;
  padding-top: 8px;
}

.contact-info-panel h1,
.contact-info-panel h2 {
  margin-bottom: 28px;
  font-size: 1.2rem;
  text-transform: uppercase;
}

.contact-list {
  display: grid;
  gap: 30px;
  margin-bottom: 56px;
}

.contact-list span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted-dark);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-list a {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
  font-weight: 700;
}

.contact-info-panel .social-buttons {
  position: static;
  grid-template-columns: repeat(3, 70px);
}

.contact-form-tile {
  grid-column: span 3;
  min-height: 640px;
  padding: 46px;
}

.contact-form-tile h2 {
  margin-bottom: 30px;
  font-size: 3.4rem;
}

form {
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted-dark);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font: inherit;
}

textarea {
  resize: vertical;
}

button {
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  background: #323237;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  background: var(--text);
  color: #111;
}

@media (max-width: 980px) {
  .site-header,
  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .talk-button,
  .site-footer > span {
    justify-self: center;
  }

  .home-grid,
  .about-grid,
  .work-grid,
  .contact-grid-page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-tile,
  .marquee-tile,
  .service-tile,
  .stats-tile,
  .contact-tile,
  .section-title,
  .summary-tile,
  .resume-tile,
  .work-title,
  .project-card,
  .contact-info-panel,
  .contact-form-tile {
    grid-column: span 2;
  }

  .about-photo,
  .section-title,
  .summary-tile {
    grid-row: auto;
  }

  .home-grid .profile-tile,
  .home-grid .marquee-tile,
  .home-grid .credentials-tile,
  .home-grid .projects-tile,
  .home-grid .notes-tile,
  .home-grid .service-tile,
  .home-grid .profiles-tile,
  .home-grid .stats-tile,
  .home-grid .contact-tile {
    grid-row: auto;
  }

  .home-grid .profile-tile,
  .home-grid .marquee-tile,
  .home-grid .service-tile,
  .home-grid .stats-tile,
  .home-grid .contact-tile {
    grid-column: span 2;
  }

  .home-grid .credentials-tile,
  .home-grid .projects-tile,
  .home-grid .notes-tile,
  .home-grid .profiles-tile {
    grid-column: span 1;
  }
}

@media (max-width: 680px) {
  .site-header,
  .site-footer,
  .page-shell {
    width: min(100% - 22px, 1170px);
  }

  .site-header {
    padding: 18px 0 28px;
  }

  nav {
    width: 100%;
    justify-content: center;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 2px;
    font-size: 0.85rem;
  }

  .talk-button {
    width: 100%;
  }

  .home-grid,
  .about-grid,
  .work-grid,
  .contact-grid-page {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .profile-tile,
  .marquee-tile,
  .mini-tile,
  .service-tile,
  .stats-tile,
  .contact-tile,
  .about-photo,
  .section-title,
  .summary-tile,
  .resume-tile,
  .work-title,
  .project-card,
  .contact-info-panel,
  .contact-form-tile {
    grid-column: span 1;
  }

  .home-grid .profile-tile,
  .home-grid .marquee-tile,
  .home-grid .credentials-tile,
  .home-grid .projects-tile,
  .home-grid .notes-tile,
  .home-grid .service-tile,
  .home-grid .profiles-tile,
  .home-grid .stats-tile,
  .home-grid .contact-tile {
    grid-column: span 1;
    grid-row: auto;
  }

  .about-photo,
  .section-title,
  .summary-tile {
    grid-row: auto;
  }

  .tile {
    border-radius: 24px;
  }

  .tile::before {
    border-radius: 23px;
  }

  .profile-tile {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 24px;
  }

  .portrait-card {
    width: 100%;
    max-width: 285px;
    margin: 0 auto;
  }

  .profile-copy {
    text-align: center;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .section-title h1 {
    font-size: 2.4rem;
  }

  .section-title span {
    width: 26px;
    height: 26px;
  }

  .service-icons {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-tile {
    grid-template-columns: 1fr;
  }

  .stat-card {
    min-height: 138px;
  }

  .contact-tile h2,
  .contact-form-tile h2 {
    font-size: 2.55rem;
  }

  .summary-tile,
  .resume-tile,
  .contact-form-tile {
    padding: 26px;
  }
}
