
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;

  scrollbar-gutter: stable;
}

html,
body {
  background: #020202;
  font-family: 'Kanit', sans-serif;
}

body {
  -webkit-font-smoothing: antialiased;
}

.wrapper {
  background: #020202;
  overflow-x: clip;
}

img {
  display: block;
}

:focus-visible {
  outline: 2px solid #b2d5e5;
  outline-offset: 3px;
  border-radius: 4px;
}

.hero-heading {
  background: linear-gradient(180deg, #646973 0%, #BBCCD7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.gradient-heading {
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.03em;
  text-align: center;
  font-size: clamp(3rem, 12vw, 160px);
}

.reveal {
  opacity: 0;
  will-change: opacity, transform;
}

.split { opacity: 0; }
.split.is-ready { opacity: 1; }
.split-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;

  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
  padding-left: 0.16em;
  padding-right: 0.16em;
  margin-left: -0.16em;
  margin-right: -0.16em;
}
.split-word {
  display: inline-block;
  transform: translate3d(0, 125%, 0);
  will-change: transform;
  backface-visibility: hidden;
}
.split.is-revealed .split-word { transform: translate3d(0, 0, 0); }

.hero-heading .split-word {
  background: linear-gradient(180deg, #646973 0%, #BBCCD7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-btn {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 9999px;
  color: #fff;
  font-family: inherit;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  background: linear-gradient(123deg, #0e2f3e 7%, #3f93b8 37%, #1f5f7d 72%, #BE4C00 100%);
  box-shadow: 0px 4px 4px rgba(63, 147, 184, 0.25), 4px 4px 12px #1f5f7d inset;
  outline: 2px solid #fff;
  outline-offset: -3px;
  padding: 0.75rem 2rem;
  font-size: 0.75rem;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.contact-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.contact-btn:active { transform: scale(0.97); }

@media (min-width: 640px) {
  .contact-btn { padding: 0.875rem 2.5rem; font-size: 0.875rem; }
}
@media (min-width: 768px) {
  .contact-btn { padding: 1rem 3rem; font-size: 1rem; }
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

.navbar {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem 1.5rem 0;
}
.navbar a {
  position: relative;
  color: #D7E2EA;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  font-size: 0.875rem;
  transition: opacity 0.2s ease;
}
.navbar a:hover { opacity: 0.7; }

.lang-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  color: #D7E2EA;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  line-height: 1;
}
.lang-toggle { gap: 0.6rem; }
.lang-flag {
  display: inline-flex;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.2s ease, transform 0.2s ease;
  line-height: 0;
}
.lang-flag svg { width: 1.6em; height: auto; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25); }
.lang-flag:hover { opacity: 0.85; transform: translateY(-1px); }
.lang-toggle[data-active="pt"] [data-lang-choice="pt"],
.lang-toggle[data-active="en"] [data-lang-choice="en"] { opacity: 1; }

.hero-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.hero-heading-wrap {
  overflow: hidden;
  width: 100%;

  margin-top: clamp(2rem, 7vh, 5.5rem);
}
.hero-title {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
  width: 100%;
  font-size: 14vw;
  margin-top: 0.25rem;

  visibility: hidden;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hero-title.is-sized { visibility: visible; opacity: 1; }

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding-bottom: 1.75rem;
}
.hero-subtext {
  color: #D7E2EA;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  line-height: 1.375;
  font-size: clamp(0.75rem, 1.4vw, 1.5rem);
  max-width: 160px;
}

.hero-portrait {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 280px;
}
.hero-portrait img {
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}
.magnet {
  will-change: transform;
}

@media (min-width: 640px) {
  .hero-title { font-size: 15vw; margin-top: 0.5rem; }
  .hero-bottom { padding-bottom: 2rem; }
  .hero-subtext { max-width: 220px; }
  .hero-portrait {
    top: auto;
    bottom: 0;
    transform: translate(-50%, 0);
    width: 360px;
  }
}
@media (min-width: 768px) {
  .navbar { padding: 2rem 2.5rem 0; }
  .navbar a, .lang-toggle { font-size: 1.125rem; }
  .hero-main { padding: 0 2.5rem; }
  .hero-title { font-size: 16vw; margin-top: 0; }
  .hero-bottom { padding-bottom: 2.5rem; }
  .hero-subtext { max-width: 260px; }
  .hero-portrait { width: 440px; }
}
@media (min-width: 1024px) {
  .navbar a, .lang-toggle { font-size: 1.4rem; }
  .hero-title { font-size: 17.5vw; }
  .hero-portrait { width: 520px; }
}

.marquee {
  background: #020202;
  padding: 6rem 0 2.5rem;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

.marquee-rows {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transform: rotate(-7deg) scale(1.12);
  will-change: transform;
}
.marquee-row {
  display: flex;
  gap: 0.75rem;
  will-change: transform;
}
.marquee-row img {
  width: 260px;
  height: 170px;
  border-radius: 1rem;
  object-fit: cover;
  flex-shrink: 0;
}

.marquee-row { animation: marquee-scroll 30s linear infinite; }
.marquee-row:nth-child(2) { animation-duration: 38s; animation-direction: reverse; }

@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-33.333%, 0, 0); }
}
@media (min-width: 640px) {
  .marquee { padding-top: 8rem; }
  .marquee-row img { width: 420px; height: 270px; }
}
@media (min-width: 768px) { .marquee { padding-top: 10rem; } }

.about {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #020202;
  padding: 5rem 1.25rem;
  overflow: hidden;
}

.about-deco {
  position: absolute;
  height: auto;
  pointer-events: none;
}
.about-deco-tl { top: 4%; left: 1%; width: 120px; }
.about-deco-tr { top: 4%; right: 1%; width: 120px; }
.about-deco-bl { bottom: 8%; left: 3%; width: 100px; }
.about-deco-br { bottom: 8%; right: 3%; width: 130px; }

.about-inner {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
}
.about-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}
.about-text {
  color: #D7E2EA;
  font-weight: 500;
  text-align: center;
  line-height: 1.625;
  max-width: 560px;
  font-size: clamp(1rem, 2vw, 1.35rem);
}

@media (min-width: 640px) {
  .about { padding-left: 2rem; padding-right: 2rem; }
  .about-inner { gap: 5rem; }
  .about-top { gap: 3.5rem; }
  .about-deco-tl, .about-deco-tr { width: 160px; }
  .about-deco-bl { width: 140px; }
  .about-deco-br { width: 170px; }
  .about-deco-tl { left: 2%; }
  .about-deco-tr { right: 2%; }
  .about-deco-bl { left: 6%; }
  .about-deco-br { right: 6%; }
}
@media (min-width: 768px) {
  .about { padding-left: 2.5rem; padding-right: 2.5rem; }
  .about-inner { gap: 6rem; }
  .about-top { gap: 4rem; }
  .about-deco-tl, .about-deco-tr { width: 210px; }
  .about-deco-bl { width: 180px; }
  .about-deco-br { width: 220px; }
  .about-deco-tl { left: 4%; }
  .about-deco-tr { right: 4%; }
  .about-deco-bl { left: 10%; }
  .about-deco-br { right: 10%; }
}

.services {
  background: #fff;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  padding: 5rem 1.25rem 6rem;
}
.services-heading {
  color: #020202;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  line-height: 1;
  font-size: clamp(3rem, 12vw, 160px);
  margin-bottom: 4rem;
}
.services-list {
  max-width: 64rem;
  margin: 0 auto;
}
.service-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(2, 2, 2, 0.15);
}
.service-item:first-child {
  border-top: 1px solid rgba(2, 2, 2, 0.15);
}
.service-num {
  color: #020202;
  font-weight: 900;
  line-height: 1;
  font-size: clamp(3rem, 10vw, 140px);
  flex-shrink: 0;
}
.service-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 0.4rem;
}
.service-name {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #020202;
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(1rem, 2.2vw, 2.1rem);
}
.service-icon {
  width: clamp(1.3rem, 2.2vw, 1.9rem);
  height: clamp(1.3rem, 2.2vw, 1.9rem);
  flex-shrink: 0;
  color: #020202;
}
.service-desc {
  color: #020202;
  font-weight: 300;
  line-height: 1.625;
  max-width: 42rem;
  font-size: clamp(0.85rem, 1.6vw, 1.25rem);
  opacity: 0.6;
}

@media (min-width: 640px) {
  .services { border-top-left-radius: 50px; border-top-right-radius: 50px; padding: 6rem 2rem 3rem; }
  .services-heading { margin-bottom: 5rem; }
  .service-item { gap: 2rem; padding: 2.5rem 0; }
}
@media (min-width: 768px) {
  .services { border-top-left-radius: 60px; border-top-right-radius: 60px; padding: 8rem 2.5rem 3.5rem; }
  .services-heading { margin-bottom: 7rem; }
  .service-item { gap: 3rem; padding: 3rem 0; }
}

.projects {
  position: relative;

  z-index: 12;
  margin-top: -40px;
  background: #020202;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  padding: 5rem 1.25rem;
}
.projects-heading {
  margin-bottom: 3rem;
}
.cards {
  max-width: 72rem;
  margin: 0 auto;
}
.card-wrap {
  position: sticky;
  top: 6rem;
  height: 85vh;
}

.cards-spacer {
  height: 60vh;
  pointer-events: none;
}
.card {
  position: relative;
  width: 100%;
  border-radius: 40px;
  border: 2px solid #D7E2EA;
  background: #020202;
  padding: 1rem;
  transform-origin: top center;
  will-change: transform;

  overflow: hidden;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.card-top-left {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.card-num {
  color: #D7E2EA;
  font-weight: 900;
  line-height: 1;
  font-size: min(clamp(3rem, 10vw, 140px), 14vh);
}
.card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 0.4rem;
}
.card-cat {
  color: #D7E2EA;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 300;
  font-size: 0.8rem;
}
.card-name {
  color: #D7E2EA;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.05;
  font-size: clamp(1.1rem, 2.5vw, 2.4rem);
}

.card-link {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 0.55rem;
  flex-shrink: 0;
  padding: 0.7rem 1.35rem;
  border: 2px solid #D7E2EA;
  border-radius: 999px;
  color: #D7E2EA;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.card-link:hover { background: #D7E2EA; color: #020202; border-color: #D7E2EA; transform: translateY(-2px); }
.card-link:active { transform: scale(0.97); }

.card-link svg { width: 16px; height: 16px; transition: transform 0.3s ease; }
.card-link:hover svg { transform: translateX(3px); }

.card-images {
  display: flex;
  gap: 0.75rem;
}
.card-col1 {
  width: 40%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.card-col2 {
  width: 60%;
  position: relative;
}
.card-img {
  width: 100%;
  object-fit: cover;
  border-radius: 40px;

  background: linear-gradient(100deg, #16181c 20%, #1f2226 40%, #16181c 60%);
  background-size: 200% 100%;
  animation: card-img-shimmer 1.6s ease-in-out infinite;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.card-img.is-loaded {
  animation: none;
  background: none;
  opacity: 1;
}
@keyframes card-img-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.card-img-top { height: min(clamp(120px, 16vw, 230px), 22vh); }
.card-img-bottom { height: min(clamp(160px, 22vw, 340px), 30vh); }

.card-img-tall { position: absolute; inset: 0; width: 100%; height: 100%; }

@media (min-width: 640px) {
  .projects { border-top-left-radius: 50px; border-top-right-radius: 50px; padding: 5rem 2rem; margin-top: -50px; }
  .card { border-radius: 50px; padding: 1.5rem; }
  .card-images { gap: 1rem; }
  .card-col1 { gap: 1rem; }
  .card-img { border-radius: 50px; }
}
@media (min-width: 768px) {
  .projects { border-top-left-radius: 60px; border-top-right-radius: 60px; padding: 5rem 2.5rem; margin-top: -60px; }
  .card-wrap { top: 8rem; }
  .card { border-radius: 60px; padding: 2rem; }
  .card-img { border-radius: 60px; }
}

@media (max-height: 850px) {
  .card-wrap { top: 4rem; }
}
@media (max-height: 700px) {
  .card-wrap { top: 2.5rem; }
}

@media (max-width: 560px) {
  .card-top { flex-wrap: wrap; }
}

.contact {
  position: relative;
  z-index: 13;
  overflow: hidden;
  background: #fff;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  padding: 7rem 1.25rem 0;
}

.contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 95%);
  height: 420px;
  background: radial-gradient(ellipse 65% 55% at 50% 50%,
    rgba(2, 2, 2, 0.13) 0%,
    rgba(2, 2, 2, 0.05) 45%,
    rgba(2, 2, 2, 0) 75%);
  pointer-events: none;
  z-index: 1;
}

.contact-inner {
  position: relative;
  z-index: 2;
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  text-align: center;
}
.contact-title {
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #020202;
  font-size: clamp(2.5rem, 7vw, 5rem);
}
.contact-text {
  color: rgba(2, 2, 2, 0.6);
  font-weight: 400;
  line-height: 1.6;
  max-width: 34rem;
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
}
.contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background: #020202;
  box-shadow: 0 12px 30px -12px rgba(2, 2, 2, 0.55);
  transition: transform 0.2s ease, filter 0.2s ease;
}
.contact-cta:hover { transform: translateY(-2px); filter: brightness(1.08); }
.contact-cta:active { transform: scale(0.97); }
.contact-cta svg { width: 18px; height: 18px; }

.contact-footer {
  position: relative;
  z-index: 2;
  max-width: 72rem;
  margin: 5rem auto 0;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(2, 2, 2, 0.15);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.contact-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.contact-nav a {
  color: #020202;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.contact-nav a:hover { color: rgba(2, 2, 2, 0.55); }
.contact-copy {
  color: rgba(2, 2, 2, 0.5);
  font-size: 0.8rem;
}

.contact-social {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.contact-social a {
  color: #020202;
  display: inline-flex;
  transition: color 0.2s ease, transform 0.2s ease;
}
.contact-social a:hover { color: rgba(2, 2, 2, 0.55); transform: translateY(-2px); }
.contact-social svg { width: 22px; height: 22px; }

.contact-bigname {
  position: relative;
  z-index: 1;
  margin-top: 0.5rem;
  text-align: center;
  white-space: nowrap;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 700;
  line-height: 0.72;
  letter-spacing: -0.03em;

  font-size: clamp(3.5rem, 22vw, 19rem);
  transform: translateY(0.12em);
  background: linear-gradient(180deg,
    rgba(2, 2, 2, 0.45) 0%,
    rgba(2, 2, 2, 0) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  user-select: none;
}

@media (min-width: 768px) {
  .contact { padding-top: 9rem; }
  .contact-footer { padding: 2rem 0; }
}

.clients {
  position: relative;
  z-index: 11;
  background: #fff;

  padding: 5rem 1.5rem 7rem;
  overflow: hidden;
}
.clients-head {
  position: relative;
  z-index: 1;
  text-align: center;
  margin: 0 auto 3.25rem;
}

.clients .gradient-heading,
.clients .gradient-heading .split-word {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: #020202;
  color: #020202;
}
.clients-sub {
  margin: 1.1rem auto 0;
  max-width: 520px;
  color: rgba(2, 2, 2, 0.55);
  font-size: 1.02rem;
  line-height: 1.6;
}

.clients-wall {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  overflow: hidden;

  padding: 0.85rem 0 1.75rem;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.sv-row { overflow: visible; padding: 6px 0; }
.sv-track {
  display: flex;
  gap: 1.1rem;
  width: max-content;
  will-change: transform;
}

.skill-card {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1.3rem;
  border-radius: 16px;
  border: 2px solid #020202;
  background: #fff;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.skill-card:hover {
  transform: translateY(-4px);
  border-color: #3f93b8;
  box-shadow: 0 14px 32px rgba(63, 147, 184, 0.45);
}
.skill-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
  filter: grayscale(1);
}
.skill-icon-fallback {
  border-radius: 10px;
  background: #020202;
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.skill-body { display: flex; flex-direction: column; gap: 0.15rem; }
.skill-name { color: #020202; font-weight: 600; font-size: 1.05rem; line-height: 1.2; white-space: nowrap; }
.skill-cat {
  color: rgba(2, 2, 2, 0.5);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .navbar { padding: 1.25rem 1.25rem 0; flex-wrap: wrap; row-gap: 0.5rem; }
  .navbar a, .lang-toggle { font-size: 0.8rem; letter-spacing: 0.03em; }

  .hero-portrait { width: min(320px, 80vw); }

  .about { padding: 3.5rem 1.25rem; }
  .about-inner { gap: 2.5rem; }
  .about-top { gap: 1.75rem; }

  .about-deco { opacity: 1 !important; transform: none !important; }
  .about-deco-tl, .about-deco-tr,
  .about-deco-bl, .about-deco-br { width: 70px; }
  .about-deco-tl { top: 3%; left: 4%; }
  .about-deco-tr { top: 3%; right: 4%; }
  .about-deco-bl { bottom: 4%; left: 4%; }
  .about-deco-br { bottom: 4%; right: 4%; }

  .services { padding: 3.5rem 1.25rem; }
  .services-heading { margin-bottom: 2.25rem; }
  .service-item { padding: 1.5rem 0; gap: 1rem; }

  .clients { padding: 4rem 1.25rem 4.5rem; }
  .clients-head { margin-bottom: 2.25rem; }
  .clients-sub { font-size: 0.95rem; }
  .clients-wall { gap: 0.8rem; }
  .sv-track { gap: 0.8rem; }
  .skill-card { padding: 0.75rem 1.05rem; gap: 0.75rem; }
  .skill-icon { width: 40px; height: 40px; }
  .skill-icon img { width: 23px; height: 23px; }
  .skill-name { font-size: 0.98rem; }

  .projects { padding: 3.5rem 1.25rem; }
  .projects-heading { margin-bottom: 2rem; }

  .card-wrap { position: static; height: auto; margin-bottom: 1.25rem; }
  .card-wrap:last-of-type { margin-bottom: 0; }
  .cards-spacer { display: none; }

  .card { top: 0 !important; }

  .contact { padding-top: 4rem; }
  .contact-inner { gap: 1.5rem; }
  .contact-footer { flex-direction: column; text-align: center; gap: 1.25rem; }
  .contact-nav { justify-content: center; gap: 0.75rem 1.25rem; }

  .contact-bigname { font-size: clamp(3rem, 21vw, 8rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .marquee-row { animation: none !important; }
  .grain { animation: none !important; }

  [data-parallax] { translate: none !important; }
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: #020202;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}
.loader.is-done { transform: translateY(-101%); }

.page-curtain {
  position: fixed;
  inset: 0;
  z-index: 9997;
  background: #020202;
  transform: translateY(100%);
  pointer-events: none;
  will-change: transform;
}
.page-curtain.is-cover { transform: translateY(0); }
.page-curtain.is-revealed { transform: translateY(-100%); }
.page-curtain.is-animated { transition: transform 0.55s cubic-bezier(0.76, 0, 0.24, 1); }

html.arriving .loader { display: none; }

.loader-top {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.75rem;
}
.loader-tag,
.loader-status {
  flex: 1 1 0;
  color: #8a8a8a;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0;
}
.loader-status { text-align: right; }
.loader-tag span { display: block; }

.loader-word {
  position: relative;
  flex: 0 0 auto;

  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0;
  font-size: clamp(2.75rem, 11vw, 7rem);
}
.loader-word.is-multiline {
  font-size: clamp(1.75rem, 7vw, 4.25rem);
  line-height: 1.1;
}
.loader-word-ghost { color: #242424; text-align: center; display: inline-block; }
.loader-word-fill {
  position: absolute;
  top: 0;
  left: 0;
  color: #fff;
  text-align: center;

  -webkit-clip-path: inset(0 100% 0 0);
  clip-path: inset(0 100% 0 0);
}
.loader-line { display: block; white-space: nowrap; }

.loader-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 0 1.5rem;
}
.loader-plus {
  color: #7a7a7a;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1;
}
.loader-motto {
  margin: 0;
  text-align: center;
  color: #6f6f6f;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.7;
  text-transform: uppercase;
}
.loader-motto span { display: block; }
.loader-motto-strong { color: #d0d0d0; font-weight: 600; }
body.is-loading { overflow: hidden; }

@media (min-width: 768px) {
  .loader-top { padding: 0 2.75rem; }
  .loader-tag, .loader-status { font-size: 0.72rem; }
  .loader-bottom { bottom: 3rem; }
  .loader-motto { font-size: 0.66rem; }
}

@media (max-width: 640px) {
  .loader-top {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
    padding: 0 1.5rem;
  }
  .loader-tag,
  .loader-status { flex: 0 0 auto; text-align: center; font-size: 0.7rem; }
  .loader-word { font-size: clamp(3.25rem, 16vw, 5.5rem); }
}

.grain {
  position: fixed;
  inset: -120px;
  z-index: 9990;
  pointer-events: none;
  opacity: 0.05;
  will-change: transform;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: no-preference) and (pointer: fine) {
  .grain { animation: grain 0.6s steps(3) infinite; }
  .grain.is-scrolling { animation-play-state: paused; }
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-6px, 4px); }
  66% { transform: translate(5px, -5px); }
  100% { transform: translate(0, 0); }
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  border-radius: 50%;
  mix-blend-mode: difference;
  opacity: 0;
}
body.has-cursor .cursor-dot,
body.has-cursor .cursor-ring { opacity: 1; }
.cursor-dot {
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  background: #fff;
  transition: opacity 0.3s ease;
}
.cursor-ring {
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 1.5px solid #fff;
  transition: width 0.25s ease, height 0.25s ease, margin 0.25s ease, background 0.25s ease, opacity 0.3s ease;
}
.cursor-ring.is-hover {
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  background: rgba(255, 255, 255, 0.12);
}

body.has-cursor,
body.has-cursor a,
body.has-cursor button,
body.has-cursor .magnet,
body.has-cursor .skill-card,
body.has-cursor .card,
body.has-cursor .lang-toggle { cursor: none; }
body.has-cursor input,
body.has-cursor textarea { cursor: text; }
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

.navbar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.navbar a:hover { opacity: 1; }
.navbar a:hover::after { transform: scaleX(1); transform-origin: left center; }
