@font-face {
  font-family: "NB International Regular";
  src: url("NB International Regular/NB International Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #0037e6;
  --bg-light: #ebebeb;
  --cursor: #e63d00;
  --max-width: 1200px;
  --font: "NB International Regular", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

::selection {
  background: var(--cursor);
  color: var(--bg-light);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-light);
  color: var(--blue);
}

@media (hover: hover) and (pointer: fine) {
  body {
    cursor: none;
  }

  a,
  button {
    cursor: none;
  }
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cursor);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 9999;
  will-change: transform;
  backface-visibility: hidden;
}

.cursor-dot--hover {
  transform: translate(-50%, -50%) scale(2.2);
}

.cursor-dot--hidden {
  opacity: 0;
}

/* Motion — scroll reveal + hero parallax */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@keyframes fade-in-up {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-left,
.hero-right,
.case-hero-left,
.case-hero-right {
  animation: fade-in-up 0.8s ease both;
}

.hero-right,
.case-hero-right {
  animation-delay: 0.12s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-left,
  .hero-right,
  .case-hero-left,
  .case-hero-right {
    animation: none;
  }
}

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

h1, h2 {
  margin: 0;
  font-weight: 500;
}

section {
  padding: 90px 60px;
}

main > section {
  padding-left: 140px;
  padding-right: 140px;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 60px;
  background: transparent;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.avatar:hover {
  background: var(--cursor);
  transform: rotate(-8deg) scale(1.08);
}

.header-nav {
  display: flex;
  gap: 16px;
}

.btn {
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 18px;
  color: var(--blue);
}

.btn-outline {
  border: 2px solid var(--blue);
  background: var(--bg-light);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn-outline:hover {
  background: var(--blue);
  color: var(--bg-light);
  transform: scale(1.05);
}

/* Hero */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  min-height: 100vh;
  padding-top: 60px;
  padding-bottom: 60px;
  position: relative;
}

#pill-rain-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
}

.pill {
  position: absolute;
  top: 0;
  left: 0;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border: 3px solid var(--cursor);
  border-radius: 999px;
  background: transparent;
  color: var(--cursor);
  font-size: 20px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: auto;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.pill:active {
  cursor: grabbing;
}

.hero-left {
  max-width: 720px;
}

.hero-left h1 {
  color: var(--blue);
  font-size: clamp(32px, 6vw, 68px);
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.highlight-box {
  display: inline-block;
  background: var(--cursor);
  color: var(--bg-light);
  padding: 0 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.highlight-box:hover {
  transform: rotate(1deg);
}

.hero-sub {
  color: var(--blue);
  font-size: 28px;
  line-height: 1.5;
  max-width: 720px;
  margin-top: 24px;
}

.hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  padding-top: 8px;
  min-width: 180px;
}

.hero-right a {
  display: inline-block;
  position: relative;
  color: var(--blue);
  font-size: 36px;
}

.hero-right a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.hero-right a:hover::after {
  transform: scaleX(1);
}

/* Clients */
.clients {
  background: var(--blue);
  color: var(--bg-light);
}

.clients h2 {
  font-size: clamp(32px, 6vw, 68px);
  margin-bottom: 80px;
}

.client-logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.client-logos li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0.9;
  font-size: 13px;
}

.client-logos img {
  height: 64px;
  width: auto;
  display: block;
  transition: transform 0.2s ease;
}

.client-logos img:hover {
  transform: scale(1.08);
}

/* Selected Works */
.work {
  padding-bottom: 260px;
}

.work h2 {
  color: var(--blue);
  font-size: clamp(32px, 6vw, 68px);
  line-height: 1.2;
  margin-bottom: 48px;
}

.work-list {
  display: flex;
  flex-direction: column;
  gap: 180px;
}

.work-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.work-item--reverse .work-image {
  order: 2;
}

.work-item--reverse .work-info {
  order: 1;
}

.work-image {
  aspect-ratio: 4 / 3;
}

.work-image img {
  filter: grayscale(1);
  transition: filter 0.3s ease;
}

.work-item:hover .work-image img {
  filter: grayscale(0);
}

.work-info {
  display: block;
  background: var(--blue);
  color: var(--bg-light);
  padding: 40px;
  border-radius: 0;
  position: relative;
  z-index: 1;
  margin-left: -120px;
  margin-bottom: 40px;
  align-self: end;
  transition: transform 0.2s ease;
}

.work-info:hover {
  transform: scale(1.03);
}

.work-item--reverse .work-info {
  margin-left: 0;
  margin-right: -120px;
}

.work-info h3 {
  color: var(--bg-light);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 16px 0;
}

.work-info p {
  color: var(--bg-light);
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 20px 0;
  max-width:max-content;
}

/* Shared image placeholder (used on index + case pages) */
.img-placeholder {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 55, 230, 0.35), rgba(0, 55, 230, 0.65));
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.img-placeholder:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 55, 230, 0.25);
}

.img-caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  color: var(--bg-light);
  font-size: 14px;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 55, 230, 0.5);
}

.img-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Real photos — no gradient mask, no shadow, no caption */
.img-placeholder.is-photo {
  background: none;
  border-radius: 0;
}

a.img-placeholder.is-photo:hover {
  transform: none;
  box-shadow: none;
}

.tag-row {
  list-style: none;
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0 0 16px 0;
  flex-wrap: wrap;
}

.tag-row li {
  font-size: 15px;
  color: var(--bg-light);
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 999px;
  padding: 8px 20px;
}

.work-info .tag-row li {
  color: var(--bg-light);
  background: transparent;
  border-width: 2px;
  border-color: var(--bg-light);
}

/* About */
.about {
  background: var(--blue);
  color: var(--bg-light);
}

.about h2 {
  font-size: clamp(32px, 6vw, 68px);
  margin-bottom: 48px;
}

.about-content {
  display: flex;
  gap: 96px;
  align-items: flex-start;
}

.about-photo {
  flex: 0 0 260px;
  width: 260px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 600;
  color: var(--bg-light);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text {
  flex: 1;
  max-width: none;
}

.about-text p {
  font-size: 24px;
  line-height: 1.6;
  margin: 0 0 20px 0;
  color: rgba(235, 235, 235, 0.92);
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* Contact */
.contact {
  text-align: center;
  padding-top: 120px;
  padding-bottom: 100px;
}

.contact h2 {
  color: var(--blue);
  font-size: clamp(32px, 6vw, 68px);
  margin-bottom: 40px;
}

.contact-email {
  display: inline-block;
  position: relative;
  color: var(--blue);
  font-size: 36px;
  margin-bottom: 32px;
}

.contact-email::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 3px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.contact-email:hover::after {
  transform: scaleX(1);
}

/* Footer */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 60px;
  border-top: 2px solid var(--blue);
  color: var(--blue);
  font-size: 20px;
}

.footer-nav {
  display: flex;
  gap: 40px;
}

.footer-nav a {
  display: inline-block;
  position: relative;
}

.footer-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.footer-nav a:hover::after {
  transform: scaleX(1);
}

/* Responsive */
@media (max-width: 900px) {
  section {
    padding: 60px 28px;
  }

  main > section {
    padding-left: 28px;
    padding-right: 28px;
  }

  .site-header {
    padding: 20px 28px;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 32px;
    padding-bottom: 80px;
  }

  .work {
    padding-bottom: 100px;
  }

  .work-list {
    gap: 64px;
  }

  .work-item,
  .work-item--reverse {
    grid-template-columns: 1fr;
  }

  .work-item--reverse .work-image,
  .work-item--reverse .work-info {
    order: initial;
  }

  .work-info,
  .work-item--reverse .work-info {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    align-self: stretch;
    padding: 28px;
  }

  .about-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .about-photo {
    flex: 0 0 auto;
    width: 180px;
    height: 220px;
  }

  .about-text p {
    font-size: 19px;
  }

  .client-logos {
    justify-content: center;
    gap: 32px;
  }

  .client-logos img {
    height: 40px;
  }

  .site-footer {
    flex-direction: column;
    gap: 12px;
    padding: 24px 28px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 16px 20px;
  }

  .avatar {
    width: 44px;
    height: 44px;
    font-size: 13px;
  }

  .header-nav {
    gap: 8px;
  }

  .btn {
    padding: 8px 16px;
    font-size: 14px;
  }

  .hero-right {
    gap: 20px;
  }

  .hero-right a {
    font-size: 26px;
  }

  .hero-sub {
    font-size: 20px;
  }

  .about-photo {
    width: 140px;
    height: 170px;
  }

  .contact-email {
    font-size: 24px;
  }
}
