/* ==========================================================================
   Home page
   Sections in page order: hero → skills → tools marquee → "How I Work"
   intro → dark about block → services → testimonials → reading/listening
   → collaborate CTA.
   ========================================================================== */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  min-height: 560px;
  padding: 20px;
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -40px;
  overflow: hidden;
  background: #fff;
}

.hero__name {
  color: var(--ink);
  font-size: 36px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}
/* Each line clips its word so it can slide up into view */
.hero__line {
  display: block;
  overflow: hidden;
}
.hero__line + .hero__line {
  line-height: 1.8;
}
.hero__line > span {
  display: inline-block;
  font-size: 80px;
  line-height: 1;
}

.hero__tagline {
  display: flex;
  gap: 6px;
  height: 40px;
  margin-top: 10px;
  overflow: hidden;
  font-size: 22px;
}
.hero__roles {
  display: flex;
  flex-direction: column;
}
.hero__roles span {
  display: block;
  line-height: 1.8;
}

/* Multilingual welcome strip that drifts behind the name.
   The outer element centres the track; GSAP slides the track sideways. */
.hero__welcome {
  position: absolute;
  bottom: 10%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
}
.hero__welcome-track {
  position: relative;
  display: flex;
  white-space: nowrap;
}
.hero__welcome p {
  font-size: 40px;
  font-weight: 300;
  line-height: 1.8;
}
.hero__welcome p + p {
  position: absolute;
  left: 100%;
}

@media (max-width: 991px) {
  .hero__line > span { font-size: 65px; }
  .hero__welcome p { font-size: 35px; }
}
@media (max-width: 479px) {
  .hero__tagline-lead { display: none; }
}

/* ---------- Skills cards ---------- */
.skills__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--section-pad) var(--gutter);
}

.skills__grid {
  display: flex;
  justify-content: center;
  width: 100%;
  height: 95vh;
  padding: 0 20px;
}

.skills__col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 50%;
  padding: 5px;
}

.skill-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  height: 50%;
  padding: 24px;
  border: 1px solid var(--ink);
  border-radius: 20px;
  box-shadow: 0 2px 40px 1px #e6f0f9;
  background: #fff;
}
.skill-card:nth-child(1) { margin-bottom: 15px; }
.skill-card:nth-child(2) { margin-top: 15px; }
.skills__col:nth-child(1) .skill-card { margin-right: 15px; }
.skills__col:nth-child(2) .skill-card { margin-left: 15px; }

.skill-card h2 {
  font-size: 50px;
  line-height: 1.8;
}
.skill-card .icon {
  width: 35px;
  height: 35px;
  color: var(--text);
}

@media (max-width: 1120px) {
  .skills__col { gap: 5px; }
  .skill-card { padding: 18px; }
}
@media (max-width: 991px) {
  .skills__col { padding: 8px; }
  .skill-card:nth-child(1) { margin-bottom: 10px; }
  .skill-card:nth-child(2) { margin-top: 10px; }
  .skills__col:nth-child(1) .skill-card { margin-right: 10px; }
  .skills__col:nth-child(2) .skill-card { margin-left: 10px; }
  .skill-card h2 { font-size: 40px; }
  .skill-card p { line-height: 1.2; }
  .skill-card .icon { width: 25px; height: 25px; }
}
@media (max-width: 767px) {
  .skills__grid {
    flex-direction: column;
    padding: 0 1px;
  }
  .skills__col { width: 100%; }
  .skill-card { padding: 12px; }
  .skill-card:nth-child(1) { margin-bottom: 5px; }
  .skill-card:nth-child(2) { margin-top: 5px; }
  .skills__col:nth-child(1) .skill-card { margin-right: 5px; }
  .skills__col:nth-child(2) .skill-card { margin-left: 5px; }
  .skill-card h2 { font-size: 22px; }
  .skill-card .icon { width: 20px; height: 20px; }
}

/* ---------- Tools ("Applications I'm fluent in") ---------- */
.tools__heading {
  display: flex;
  justify-content: center;
}
.tools__heading .container {
  display: flex;
  justify-content: center;
}

/* Outlined headline that fills from top to bottom while scrolling.
   --mask defaults to 100% so the text is solid without JavaScript. */
.text-mask-tb {
  --mask: 100%;
  color: var(--ink);
  font-size: 50px;
  text-align: center;
  background: linear-gradient(to bottom, #000 0 0) 0 0 / 100% var(--mask) no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px #000;
}

@media (max-width: 767px) {
  .tools__heading .container {
    padding-top: 50px;
    padding-bottom: 50px;
  }
}

.marquee {
  position: relative;
  margin: 30px 0 75px;
  overflow: hidden;
  white-space: nowrap;
  background: #fff;
}
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  z-index: 2;
  width: 75px;
  height: 100%;
}
.marquee::before {
  left: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 0), #fff);
}
.marquee::after {
  right: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff);
}
.marquee__set {
  display: inline-block;
  animation: marquee 35s linear infinite;
}
.marquee:hover .marquee__set {
  animation-play-state: paused;
}
.marquee__set img {
  width: 220px;
  padding: 0 50px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
@media (max-width: 767px) {
  .marquee__set img {
    width: 150px;
    padding: 0 25px;
  }
}

/* ---------- "How I Work" pinned intro ---------- */
.how-intro {
  position: relative;
  overflow: hidden;
}
.how-intro__backdrop {
  height: 100vh;
  background: var(--dark);
}
.how-intro__panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  height: 100vh;
  background: #e6f0f9;
}
.how-intro__words {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 var(--gutter);
  font-weight: 500;
  line-height: 1.8;
}
.how-intro__how,
.how-intro__work {
  font-size: 90px;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.how-intro__how {
  align-self: flex-start;
  background-image: linear-gradient(135deg, #020024 0%, #090979 10%, #00d4ff 20%);
}
.how-intro__work {
  align-self: flex-end;
  background-image: linear-gradient(135deg, #020024 0%, #090979 70%, #00d4ff 100%);
}
.how-intro__i {
  position: relative;
  z-index: 2;
  color: var(--ink);
  font-family: "Noto Sans", var(--font);
  font-size: 150px;
  font-weight: 700;
}

@media (max-width: 991px) {
  .how-intro__words {
    gap: 8px;
    padding: 8px calc(var(--gutter) + 8px);
  }
}
@media (max-width: 767px) {
  .how-intro__how,
  .how-intro__work { font-size: 70px; }
}
@media (max-width: 479px) {
  .how-intro__work { font-size: 65px; }
}

/* ---------- Dark block: How I Work / About / Work / Quotes ---------- */
.dark-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: var(--section-pad) var(--gutter);
  border-radius: 0 0 25px 25px;
  background: var(--dark);
  color: #fff;
}
.dark-block h2 {
  font-size: 50px;
  text-align: center;
}

.how-work {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 70vw;
  padding: 24px;
}
.how-work__text {
  width: 100%;
  font-size: 2.2rem;
}

/* Paragraph that "lights up" left-to-right while scrolling.
   --mask defaults to 100% so the text is readable without JavaScript. */
.text-mask-lr {
  --mask: 100%;
  background: linear-gradient(#fff 0 0) 0 100% / var(--mask) no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.1);
}

.about {
  display: flex;
  width: 75vw;
}
.about__media,
.about__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 50%;
  padding: 20px;
}
.about__card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 90%;
  border: 1px solid rgba(255, 255, 255, 0.125);
  border-radius: 40px;
  background: rgba(229, 231, 242, 0.15);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
}
.about__card img {
  display: block;
}
.about__text {
  align-items: flex-start;
}
.about__text h2 {
  color: #fff;
}
.about__text p {
  color: #fff;
  font-size: 1.5rem;
}
.about__text p + p {
  margin-top: 1.8em;
}

.work {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 70vw;
  padding: 24px;
  border-radius: 20px;
}
.work__logos {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
  padding: 8px 0;
  list-style: none;
}
.work__logos li {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 33.33%;
  padding: 12px;
  border-radius: 50px 10px 50px 50px;
  background: rgba(96, 110, 121, 0.15);
}
.work__logos li:last-child {
  padding: 18px;
}
.work__logos img {
  display: block;
}
.work__logos li:nth-child(1) img { width: 150px; }
.work__logos li:nth-child(2) img { width: 180px; }
.work__logos li:nth-child(3) img { width: 200px; }

.quotes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 24px;
}
.quotes__intro {
  width: min(700px, 100%);
  color: #fff;
  font-size: 25px;
}

/* Tabs (Favorite Quotes) */
.tabs {
  width: min(700px, 100%);
}
.tabs__list {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  width: 100%;
  padding: 10px 0 20px;
  border-radius: 20px 20px 0 0;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.tabs__tab {
  position: relative;
  margin: 10px 8px 0;
  padding: 8px 20px 0;
  border: 0;
  background: none;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  text-align: center;
  cursor: pointer;
}
.tabs__tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 3px;
  margin-bottom: -18.5px;
  border-radius: 40px;
  background: var(--grad-light);
}
.tabs__panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  border-radius: 0 0 20px 20px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  color: #fff;
}
.tabs__panel[hidden] {
  display: none;
}
.tabs__panel .icon {
  width: 35px;
  height: 35px;
}
.tabs__panel h3 {
  color: #fff;
}

@media (max-width: 1120px) {
  .how-work__text { font-size: 2rem; }
}
@media (max-width: 991px) {
  .how-work { width: 90vw; }
  .about { flex-direction: column; }
  .about__media,
  .about__text { width: 100%; }
  .work { width: 95vw; }
  .work__logos li:nth-child(1) img { width: 130px; }
  .work__logos li:nth-child(2) img { width: 150px; }
  .work__logos li:nth-child(3) img { width: 180px; }
}
@media (max-width: 767px) {
  .how-work__text { font-size: 1.8rem; }
  .work h2,
  .quotes h2 { font-size: 40px; }
  .work__logos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: center;
    gap: 20px;
  }
  .work__logos li {
    width: 100%;
    padding: 12px;
  }
  .work__logos li:last-child {
    grid-column: span 2;
    width: 50%;
    padding: 12px;
  }
  .quotes__intro,
  .tabs { width: min(400px, 100%); }
  .tabs__list { gap: 5px; }
  .tabs__tab { font-size: 18px; }
}
@media (max-width: 479px) {
  .how-work__text { font-size: 1.7rem; }
  .quotes__intro,
  .tabs { width: min(320px, 100%); }
  .tabs__list { gap: 2px; }
  .tabs__tab {
    font-size: 14px;
    line-height: 1.1;
  }
}

/* ---------- Services ---------- */
.services .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}
.services__title {
  align-self: center;
  font-size: 50px;
  line-height: 1.4;
}
.services__grid {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}
.services__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 50%;
  padding: 20px;
}
.service h3 {
  font-size: 30px;
  font-weight: 500;
  line-height: 1.4;
}
.service p {
  line-height: 1.4;
}
.services__more {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 50%;
  padding: 20px;
}
.view-all {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: flex-start;
  overflow: hidden;
}
.view-all__row {
  display: flex;
  align-items: center;
}
.view-all__label {
  color: var(--ink);
  font-size: 50px;
  font-weight: 500;
  line-height: 1.8;
}
.view-all .icon {
  width: 45px;
  height: 45px;
  margin-left: 12px;
  color: var(--ink);
}

@media (max-width: 991px) {
  .services__list,
  .services__more { width: 100%; }
}
@media (max-width: 767px) {
  .services__title { text-align: center; }
  .view-all__label { font-size: 45px; }
  .view-all .icon { width: 35px; height: 35px; }
}
@media (max-width: 479px) {
  .view-all__label { font-size: 32px; }
  .view-all .icon { width: 28px; height: 28px; }
}

/* ---------- Testimonials ---------- */
.testimonials {
  background: #eff1f7;
}
.testimonials .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.testimonials__eyebrow {
  font-size: 20px;
}
.testimonials__title {
  font-size: 50px;
  line-height: 1.4;
}

.testimonial {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}
.testimonial__quote {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 60%;
  padding: 20px;
}
.testimonial__card {
  width: 100%;
  padding: 40px;
  border-radius: 25px;
  background: #fff;
}
.testimonial__card .icon {
  display: block;
  width: 24px;
  height: 24px;
  margin-bottom: 12px;
  color: var(--accent-blue);
}
.testimonial__card p {
  line-height: 1.5;
}
.testimonial__card p + p {
  margin-top: 1.5em;
}

.testimonial__person {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 40%;
  padding: 20px;
}
.testimonial--reverse .testimonial__person {
  align-items: flex-end;
}
.testimonial__avatar {
  width: 120px;
  margin: 0 24px 12px 0;
  border-radius: 100%;
}
.testimonial__name {
  font-size: 20px;
  font-weight: 500;
}
.testimonial__location {
  margin-bottom: 12px;
  font-size: 18px;
  line-height: 1.4;
}
.testimonial__location--light {
  margin-bottom: 0;
  font-size: inherit;
  font-weight: 300;
  line-height: inherit;
}
.testimonial__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #1666c2;
}
.testimonial__social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@media (max-width: 991px) {
  .testimonial {
    flex-direction: column-reverse;
    margin-bottom: 20px;
  }
  .testimonial--reverse {
    flex-direction: column;
  }
  .testimonial__quote,
  .testimonial__person { width: 100%; }
  .testimonial--reverse .testimonial__person { align-items: flex-start; }
}
@media (max-width: 479px) {
  .testimonials__title { text-align: center; }
  .testimonial__card {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* ---------- Reading & listening lists ---------- */
.media-row {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}
.media-row__text,
.media-row__image {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 50%;
  padding: 20px;
}
.media-row__text {
  gap: 20px;
}
.media-row__text h2 {
  font-size: 35px;
}
.media-row__image {
  align-items: center;
}
.media-row__image img {
  display: block;
  width: 300px;
  height: 300px;
  border-radius: 20px;
  box-shadow: 0 40px 40px -20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 991px) {
  .media-row--reverse { flex-direction: column-reverse; }
  .media-row__text,
  .media-row__image { width: 100%; }
}

/* ---------- Collaborate CTA with particle field ---------- */
.cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  min-height: 480px;
  overflow: hidden;
  background: #000;
}
.cta__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.cta__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  pointer-events: none;
}
.cta__lead {
  color: #fff;
  font-size: 22px;
  overflow: hidden;
}
.cta__link {
  pointer-events: auto;
  display: flex;
}
.cta__label {
  color: rgba(255, 255, 255, 0.2);
  font-size: 55px;
  line-height: 0.5;
  -webkit-box-reflect: below 10px linear-gradient(transparent, #000009);
  animation: cta-glow 5s ease-in-out infinite;
}
@keyframes cta-glow {
  0%,
  20% {
    color: #fff;
    text-shadow: none;
  }
  10%,
  25%,
  40%,
  60%,
  80% {
    color: #fff;
    text-shadow: 0 0 10px #549ed9, 0 0 20px #549ed9, 0 0 40px #549ed9, 0 0 80px #549ed9;
  }
  100% {
    color: #fff;
    text-shadow: none;
  }
}
@media (max-width: 767px) {
  .cta__label { font-size: 40px; }
}
@media (max-width: 479px) {
  .cta__label { font-size: 35px; }
}

/* ---------- Reduced motion: static, fully readable versions ---------- */
@media (prefers-reduced-motion: reduce) {
  .marquee__set,
  .cta__label {
    animation: none;
  }
  .cta__label {
    color: #fff;
  }
}
