:root {
  --bg: #ffffff;
  --surface: #fafafa;
  --text: #121212;
  --muted: #555555;
  --line: #e2e2e2;
  --red: #ff4747;
  --yellow: #f6b800;
  --green: #2dbb4a;
  --blue: #2f6fff;
  --purple: #8e58ff;
  --radius: 8px;
  --section-space: clamp(3.5rem, 7vw, 6rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

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

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

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--text);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 1000;
}

.scroll-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--red) 0%,
    var(--yellow) 25%,
    var(--green) 50%,
    var(--blue) 75%,
    var(--purple) 100%
  );
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-right: auto;
}

.brand-name {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-rainbow {
  width: 160px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.15rem;
}

.rainbow-stripe {
  height: 4px;
  border-radius: 100px;
}

.rainbow-stripe.red {
  background: var(--red);
}
.rainbow-stripe.yellow {
  background: var(--yellow);
}
.rainbow-stripe.green {
  background: var(--green);
}
.rainbow-stripe.blue {
  background: var(--blue);
}
.rainbow-stripe.purple {
  background: var(--purple);
}

.primary-nav {
  display: none;
  align-items: center;
  gap: 1.2rem;
}

.primary-nav a {
  font-weight: 600;
  color: var(--muted);
  transition: color 220ms ease;
}

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

.talk-button {
  border: 1.8px solid var(--text);
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  font-weight: 700;
  transition: transform 220ms ease, background-color 220ms ease, color 220ms ease;
}

.talk-button:hover {
  transform: translateY(-1px);
  background: var(--text);
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1.8px solid var(--text);
  border-radius: var(--radius);
  background: #fff;
  padding: 0.55rem;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  margin: 0.24rem 0;
  transition: transform 250ms ease, opacity 250ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.section {
  padding: var(--section-space) 0;
  border-bottom: 1px solid var(--line);
}

.hero-section {
  padding-top: clamp(1.5rem, 3vw, 2.1rem);
  padding-bottom: clamp(2.2rem, 4.5vw, 3.2rem);
}

.hero-layout {
  display: grid;
  gap: clamp(1.8rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
  align-items: start;
}

.hero-left {
  min-width: 0;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.35rem, 6.3vw, 4.8rem);
  line-height: 1.02;
  max-width: 13ch;
}

.eyebrow {
  font-weight: 600;
  margin: 0 0 0.8rem;
  font-size: 1.08rem;
}

.hero-text {
  margin: 1rem 0 0;
  max-width: 37ch;
  font-size: clamp(1.03rem, 1.8vw, 1.35rem);
  color: #202020;
}

.accent-red {
  color: var(--red);
}

.accent-blue {
  color: var(--blue);
}

.hero-equation {
  margin-top: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.equation-block {
  display: grid;
  justify-items: center;
  gap: 0.3rem;
}

.equation-block img {
  width: clamp(68px, 7vw, 94px);
  height: clamp(68px, 7vw, 94px);
  object-fit: contain;
}

.equation-block p {
  margin: 0;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  font-size: 1rem;
  max-width: 13ch;
}

.equation-sign {
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  font-weight: 700;
  line-height: 1;
  margin-top: 1.45rem;
}

.hero-illustration-wrap {
  margin-top: clamp(1rem, 3vw, 1.8rem);
  position: relative;
  max-width: 770px;
}

.hero-main-illustration {
  width: 100%;
}

.hero-doodle-plane,
.hero-doodle-cluster {
  position: absolute;
  pointer-events: none;
}

.hero-doodle-plane {
  top: 30%;
  left: 43%;
  width: clamp(40px, 5.5vw, 74px);
}

.hero-doodle-cluster {
  top: 8%;
  right: -4%;
  width: clamp(150px, 20vw, 260px);
}

.hero-rail {
  border-left: 2px dotted var(--line);
  padding-left: clamp(1rem, 2.3vw, 1.5rem);
  display: grid;
  gap: 0.7rem;
}

.hero-rail-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 0.9rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 220ms ease, transform 220ms ease;
}

.hero-rail-item:last-child {
  border-bottom: 0;
}

.hero-rail-item img {
  width: 42px;
  height: 42px;
}

.rail-label {
  font-size: clamp(1.45rem, 2.2vw, 2.15rem);
  font-weight: 600;
  line-height: 1.13;
  max-width: 13ch;
  position: relative;
  display: inline-block;
  padding-bottom: 0.35rem;
}

.rail-label::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: clamp(56px, 7.5vw, 88px);
  height: 4px;
  border-radius: 999px;
}

.rail-blue .rail-label::after {
  background: var(--blue);
}

.rail-yellow .rail-label::after {
  background: var(--yellow);
}

.rail-green .rail-label::after {
  background: var(--green);
}

.rail-red .rail-label::after {
  background: var(--red);
}

.rail-arrow {
  font-size: 2.05rem;
  line-height: 1;
  margin-top: 0.2rem;
  color: #222;
  font-weight: 400;
}

.hero-rail-item:hover,
.hero-rail-item:focus-visible {
  transform: translateX(3px);
}

.hero-rail-item.active {
  transform: translateX(3px);
}

.section-head {
  max-width: 72ch;
  margin-bottom: 1.4rem;
}

.section-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.93rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.75rem, 4.3vw, 2.7rem);
  line-height: 1.12;
}

.section-head p {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

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

.service-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  background: #fff;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.service-card img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.service-card h3 {
  margin: 0.7rem 0 0.4rem;
  font-size: 1.35rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(18, 18, 18, 0.08);
}

.tailored-note {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  border: 1px dashed var(--line);
  display: inline-block;
  font-weight: 500;
}

.tailored-note span {
  text-decoration: underline;
  text-decoration-color: var(--blue);
  text-decoration-thickness: 2px;
}

.project-list {
  display: grid;
  gap: 0.7rem;
}

.projects-art {
  margin-top: 1.15rem;
  display: flex;
  justify-content: center;
}

.projects-art img {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  width: min(74%, 620px);
  transform-origin: center;
  box-shadow: 0 10px 26px rgba(18, 18, 18, 0.06);
  animation: float-soft 7s ease-in-out infinite;
}

.project-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 0.95rem 1rem;
  display: grid;
  grid-template-columns: auto minmax(150px, 220px) 1fr auto;
  align-items: center;
  gap: 1rem;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.project-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(18, 18, 18, 0.07);
}

.project-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background: #f7f7f7;
  display: grid;
  place-items: center;
}

.project-icon img {
  width: 40px;
  height: 40px;
}

.project-summary h3 {
  margin: 0;
  font-size: 1.15rem;
}

.project-summary p,
.project-description {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.project-link {
  white-space: nowrap;
  font-weight: 700;
  color: var(--blue);
}

.about-section {
  overflow: hidden;
}

.about-grid {
  display: grid;
  gap: 1.3rem;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}

.about-copy h2 {
  max-width: 15ch;
}

.about-art {
  position: relative;
  /* min-height: 320px; */
  height: auto;
  aspect-ratio: 1/1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.about-art > img {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  aspect-ratio: 1/1;
  height: 60%;
}

.about-main-illustration {
  width: min(84%, 620px);
  height: auto;
  aspect-ratio: 1/1;
  box-shadow: 0 10px 26px rgba(18, 18, 18, 0.06);
  animation: float-soft 8s ease-in-out infinite;
}

.about-float {
  position: absolute;
  right: 0;
  bottom: -8%;
  width: min(44%, 260px);
  box-shadow: 0 8px 20px rgba(18, 18, 18, 0.05);
  animation: float-soft-alt 5.6s ease-in-out infinite;
}

.projects-art.reveal img {
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  transition: opacity 700ms ease, transform 700ms ease;
}

.projects-art.reveal.visible img {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.about-art.reveal .about-main-illustration {
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition: opacity 760ms ease, transform 760ms ease;
}

.about-art.reveal .about-float {
  opacity: 0;
  transform: translateY(26px) scale(0.95);
  transition: opacity 760ms ease 90ms, transform 760ms ease 90ms;
}

.about-art.reveal.visible .about-main-illustration,
.about-art.reveal.visible .about-float {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes float-soft {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -8px;
  }
}

@keyframes float-soft-alt {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -6px;
  }
}

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

.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.95rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
  transition: transform 220ms ease, background-color 220ms ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  background: var(--surface);
}

.contact-card img {
  width: 42px;
  height: 42px;
}

.contact-card h3 {
  margin: 0;
}

.contact-card p {
  margin: 0.15rem 0 0;
  color: var(--muted);
}

.site-footer {
  padding: 1.1rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-rail {
    border-left: 0;
    border-top: 2px dotted var(--line);
    padding-left: 0;
    padding-top: 0.6rem;
  }

  .rail-label {
    font-size: clamp(1.25rem, 3.7vw, 1.7rem);
  }

  .hero-doodle-cluster {
    right: 0;
  }

  .projects-art img {
    width: min(82%, 620px);
  }

  .project-item {
    grid-template-columns: auto 1fr;
  }

  .project-description,
  .project-link,
  .project-links {
    grid-column: 2 / -1;
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-block;
  }

  .primary-nav {
    display: flex;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 1rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 320ms ease, padding 320ms ease;
  }

  .primary-nav.open {
    max-height: 280px;
    padding: 0.8rem 1rem 1rem;
  }

  .talk-button {
    display: none;
  }

  .service-grid,
  .contact-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-doodle-plane,
  .hero-doodle-cluster {
    display: none;
  }

  .hero-rail-item {
    grid-template-columns: auto 1fr auto;
  }

  .rail-label {
    font-size: clamp(1.1rem, 4.1vw, 1.35rem);
    max-width: 100%;
  }

  .about-art {
    min-height: auto;
  }

  .projects-art img,
  .about-main-illustration {
    width: 100%;
  }

  .about-float {
    position: static;
    width: min(60%, 320px);
    margin-inline: auto;
    margin-top: 1rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
