html {
  scroll-behavior: smooth;
  font-size: 16px;
}

@media (max-width: 1280px) {
  html { font-size: calc(16px * (100vw / 1280)); }
}

/* ======= BASE / RESET ======= */
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #F5F6FB;
  color: #0E0A0B;
}

header,
section,
footer {
  width: 100%;
  margin: 0;
  padding: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
}

h1,h2,h3,h4,h5,h6,p {
  margin: 0;
  margin-block-start: 0;
  margin-block-end: 0;
  padding: 0;
}

/* ======= TYPOGRAPHY ======= */
h1 {
  font-weight: 400;
  font-size: 120px;
  line-height: 138px;
  letter-spacing: -3%;
  color: inherit;
}
h2 {
  font-weight: 500;
  font-size: 60px;
  line-height: 73px;
  letter-spacing: -3%;
  color: inherit;
}
h3 {
  font-weight: 500;
  font-size: 32px;
  line-height: 39px;
  letter-spacing: -3%;
  color: inherit;
}

p, .p1 {
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -1%;
  color: inherit;
}
.p2 {
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -1%;
  color: inherit;
}
.p3 {
  font-weight: 400;
  font-size: 12px;
  line-height: 12px;
  letter-spacing: -1%;
  color: inherit;
}

/* ======= LINKS ======= */
a {
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -1%;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}
a:hover { color: #47B5FF; }
a:active { color: #2196E4; }
a.type-2 { opacity: 0.7; }
a.type-2:hover { opacity: 1; }

/* ======= TAGS ======= */
.tag {
  height: 28px;
  padding: 0 20px;
  background-color: #fff;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-weight: 400;
  font-size: 12px;
  line-height: 12px;
  letter-spacing: -1%;
  color: inherit;
}

/* ======= BUTTONS ======= */
.button-orange,
a.button-orange {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 76px;
  padding: 0 30px;
  background-color: #F05536;
  color: #fff;
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -1%;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s;
  white-space: nowrap;
}
.button-orange:hover { background-color: #FF6344; }
.button-orange:active { background-color: #EC4928; }

/* header primary button */
.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 36px;
  border-radius: 999px;
  background: #ffffff;
  color: #000000;
  border: none;
  font-weight: 400;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}
.btn-white:hover { background: #f2f2f2; color: #000000; }
.btn-white:active { transform: translateY(1px); }

.link-default {
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -1%;
  color: #080607;
  text-decoration: underline;
  transition: color 0.2s;
}
.link-default:active { color: #F05536; }

.link-white {
  color: #0E0A0B;
  text-decoration: none;
  font-weight: 500;
  margin-left: 24px;
  transition: opacity 0.2s ease;
}
.link-white:hover { opacity: 0.8; }

/* =========================================================
   HEADER (UIUX PAGE HERO - DO NOT BREAK)
========================================================= */
.logo,
.sticky-name {
  text-decoration: none;
  color: inherit;
}

/* Desktop hero image */
.site-header::before {
  content: "";
  position: absolute;
  bottom: 0;
  right: -40px;
  width: 42vw;
  max-width: 680px;
  height: 100%;
  background: url('pics/header_pic2.webp') no-repeat bottom right;
  background-size: contain;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

.site-header {
  position: relative;
  width: 100%;
  min-height: 20px;
  height: 80vh;
  max-height: 980px;
  background: #E7E9F5;
  color: #0E0A0B;
  overflow: hidden;
  box-sizing: border-box;
}

.site-header .container {
  position: relative;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1;
}

/* Nav */
.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.header-nav .nav-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

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

.header-nav a,
.header-nav .logo {
  text-decoration: none;
  margin-right: 20px;
  font-size: 20px;
  color: #0E0A0B;
}

.header-nav .nav-left a:last-child,
.header-nav .logo { margin-right: 0; }

/* Header content */
.header-content {
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
}

.header-title {
  font-size: 120px;
  line-height: 138px;
  font-weight: 400;
  letter-spacing: -3%;
  margin: 0;
  color: inherit;
}

.intro-text {
  max-width: 600px;
  font-size: 18px;
  line-height: 1.5;
  color: inherit;
}

.header-content .header-title { margin-bottom: 30px; }
.header-content .intro-text { margin-bottom: 39px; }

.header-links {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}

/* =========================================================
   UI/UX SECTION
========================================================= */
.uiux-section {
  background-color: #F5F6FB;
  color: #0E0A0B;
  min-height: 600px;
  height: auto;
}

.uiux-container {
  max-width: 1280px;
  height: auto;
  display: flex;
  align-items: stretch;
  margin: 0 auto;
  padding: 40px 17px;
  box-sizing: border-box;
}

.uiux-grid {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

.uiux-left {
  flex: 1 1 calc(30%);
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.uiux-left-top {
  display: flex;
  flex-direction: column;
  gap: 0px;
  padding-top: 40px;
}

.uiux-subheader {
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -1%;
  margin: 0 0 16px;
  color: #0E0A0B;
}

.uiux-header {
  font-weight: 500;
  font-size: 60px;
  line-height: 73px;
  letter-spacing: -3%;
  margin: 0 0 24px;
  color: #0E0A0B;
}

.uiux-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.uiux-right {
  flex: 1 1 calc(45%);
  min-width: 0;
}

/* Portfolio layout (column flow) */
.uiux-portfolio-grid{
  column-count: 2;
  column-gap: 40px;
}
@media (max-width: 860px){
  .uiux-portfolio-grid{
    column-count: 1;
    column-gap: 24px;
  }
}
.uiux-portfolio-card{
  background: #E7E9F5;
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 0px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  border-radius: 40px;
  overflow: hidden;
  height: var(--card-h, 620px);
  text-decoration: none;
  cursor: pointer;
  margin-bottom: 40px;
}
@media (max-width: 860px){
  .uiux-portfolio-card{ margin-bottom: 24px; }
}

.uiux-portfolio-media{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.uiux-portfolio-overlay{ display: none !important; }

.uiux-portfolio-meta{
  position: absolute;
  inset: 0;
  padding: 20px;
  z-index: 2;
}

.uiux-portfolio-title{
  position: absolute;
  top: 18px;
  left: 18px;
  max-width: 70%;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 500;
  text-shadow: none !important;
}

.uiux-portfolio-chips{
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 60%;
}

.uiux-chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: transparent;
  font-size: 13px;
  line-height: 1;
  font-weight: 400;
  white-space: nowrap;
}

.uiux-portfolio-card.theme-dark{ color: #ffffff; }
.uiux-portfolio-card.theme-light{ color: #111111; }

.uiux-card-action{
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  background: transparent;
}

.uiux-card-action.is-link::before{
  content: "";
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("pics/arrow.svg") center / contain no-repeat;
  mask: url("pics/arrow.svg") center / contain no-repeat;
  transform: rotate(45deg);
}

.uiux-card-action.is-locked{
  font-size: 18px;
  line-height: 1;
}

.uiux-portfolio-card.is-locked{ cursor: default; }

/* =========================================================
   ORDER
========================================================= */
.order-section {
  background-color: #F5F6FB;
  color: #0E0A0B;
  padding: 40px 0;
}

.order-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 17px;
  box-sizing: border-box;
}

.order-card {
  position: relative;
  background-color: #fff;
  border-radius: 40px;
  height: 600px;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.order-bg-img {
  position: absolute;
  z-index: 0;
  width: 500px;
  height: auto;
  opacity: 0.9;
  pointer-events: none;
  object-fit: contain;
  object-position: center;
}

#order1_pic {
  top: -150px;
  left: -240px;
  transform: rotate(-205deg) scale(1);
}

#order2_pic {
  bottom: -160px;
  right: -190px;
  transform: rotate(0deg) scale(1);
}

.order-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}

.order-bottom-link {
  position: absolute;
  bottom: 55px;
  width: 100%;
  text-align: center;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 24px;
}

.order-bottom-link .link-default:hover { color: #F05536; }

/* =========================================================
   SOCIALS
========================================================= */
.socials-section {
  background-color: #F5F6FB;
  color: #0E0A0B;
  padding: 60px 0;
}

.socials-header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 17px;
  text-align: center;
  margin-top: 80px;
}

.socials-subtitle {
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -1%;
  color: #F05536;
  margin-bottom: 16px;
}

.socials-header {
  font-weight: 500;
  font-size: 60px;
  line-height: 73px;
  letter-spacing: -3%;
  color: #0E0A0B;
  margin-bottom: 40px;
}

.socials-scroll-wrapper {
  overflow-x: auto;
  display: flex;
  justify-content: center;
  margin-top: 100px;
  margin-bottom: 40px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.socials-scroll-wrapper::-webkit-scrollbar { display: none; }

.socials-list {
  display: flex;
  gap: 20px;
  padding: 0 17px;
  box-sizing: border-box;
  width: max-content;
}

.socials-item {
  flex: 0 0 auto;
  width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
  position: relative;
  overflow: hidden;
}
.socials-item:hover { opacity: 0.9; }

.socials-item img {
  width: 100%;
  border-radius: 40px;
  object-fit: cover;
  height: 260px;
  transition: opacity 0.3s;
}

.socials-item p {
  margin-top: 12px;
  font-size: 16px;
  line-height: 22px;
  text-align: center;
  transition: color 0.3s;
}
.socials-item p .gray { color: #7A7A7A; }
.socials-item p .black { color: #0E0A0B; font-weight: 500; }

.socials-item:hover img { opacity: 0.7; }
.socials-item:hover p { color: #F05536; }

/* =========================================================
   FOOTER
========================================================= */
.site-footer {
  background-color: #F5F6FB;
  color: #0E0A0B;
  padding: 60px 0 40px;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 57px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-left {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-title {
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
  color: #0E0A0B;
}

.footer-desc {
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  color: #7A7A7A;
  max-width: 400px;
}

.footer-right {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: flex-end;
  flex: 1 1 600px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 140px;
}

.footer-col a {
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -1%;
  color: #0E0A0B;
  transition: color 0.2s;
}
.footer-col a:hover { color: #F05536; }

.footer-col:last-child {
  text-align: right;
  align-items: flex-end;
}

.footer-bottom {
  text-align: left;
  font-size: 16px;
  color: #7A7A7A;
}

/* =========================================================
   STICKY HEADER
========================================================= */
.sticky-header {
  position: fixed;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 1246px;
  height: 100px;
  background-color: #ffffff;
  border-radius: 28px;
  box-sizing: border-box;
  display: none;
  z-index: 999;
}

.sticky-container {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 18px;
}

.sticky-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.sticky-left img {
  height: 64px;
  width: 64px;
  object-fit: cover;
  border-radius: 0;
}

.sticky-name {
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  color: #0E0A0B;
}

.sticky-center {
  display: flex;
  gap: 26px;
}

.sticky-center a {
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  color: #0E0A0B;
  transition: color 0.2s;
}

.sticky-center a:hover { color: #EC4928; }

.sticky-right .sticky-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 0 32px;
  background-color: #000000;
  color: #fff;
  font-weight: 500;
  font-size: 20px;
  line-height: 28px;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s;
}
.sticky-right .sticky-button:hover { background-color: #EC4928; }

@media (max-width: 767px) {
  .sticky-header { display: none !important; }
}

/* =========================================================
   RESPONSIVE (kept sections only)
========================================================= */
@media (min-width: 900px) and (max-width: 1279px) {
  h1, .header-title { font-size: 72px; line-height: 90px; }
  h2, .uiux-header, .socials-header { font-size: 40px; line-height: 50px; }
  h3 { font-size: 24px; line-height: 30px; }

  p, .p1, .p2, a,
  .header-links a,
  .header-nav a,
  .header-nav .logo,
  .button-orange,
  .btn-white,
  .footer-col a,
  .footer-title,
  .footer-desc,
  .sticky-name,
  .sticky-center a,
  .sticky-right .sticky-button,
  .uiux-subheader {
    font-size: 16px;
    line-height: 22px;
  }

  .p3 { font-size: 10px; line-height: 10px; }

  .site-header { height: 80vh; max-height: 690px; }

  .sticky-header { width: calc(100% - 34px); max-width: 1246px; }

  .footer-left { flex: 1 1 240px; }
}

/* Mobile */
@media (max-width: 899px) {
  .site-header {
    height: auto;
    max-height: none;
    padding-bottom: 40px;
  }

  /* Hide top nav on mobile (as in original) */
  .header-nav { display: none; }

  /* keep hero readable */
  .intro-text { font-size: 16px; line-height: 22px; }
  .header-title { font-size: 66px; line-height: 72px; }

  /* stack CTAs */
  .header-links {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 16px;
  }

  .uiux-container {
    flex-direction: column;
    padding: 20px 16px;
  }

  .button-orange { font-weight: 500; font-size: 18px; }

  /* footer mobile layout */
  .site-footer { padding: 40px 20px; width: auto; }

  .footer-container { width: 100%; padding-left: 0; padding-right: 0; }

  .footer-top { flex-direction: column; gap: 32px; }

  .footer-right {
    flex-direction: column;
    width: 100%;
    gap: 46px;
    flex: auto;
    justify-content: flex-start;
  }

  .footer-col { width: 100%; align-items: flex-start; text-align: left; }

  .footer-col a { display: block; width: 100%; text-align: left; }

  .footer-bottom { margin-top: 32px; text-align: left; font-size: 14px; }
}

/* extra small: tune hero image on mobile */
@media (max-width: 699px) {
  .site-header::before {
    left: 86%;
    transform: translateX(-50%);
    right: auto;
    bottom: 0;
    top: 40px;
    width: 450px;
    background: url('pics/header_pic.webp') no-repeat bottom center;
    background-size: contain;
  }

  .site-header .container {
    height: auto;
    padding-top: 220px;
    padding-bottom: 0;
    align-items: flex-start;
  }

  .header-content {
    display: flex;
    flex-direction: column;
    margin-top: -190px;
    width: 98%;
  }

  .header-links { gap: 16px; margin-top: 12px; }

  h2, .socials-header {
    font-size: 42px !important;
    line-height: 50px !important;
  }
}
