/* =============================================
   DESIGN SYSTEM — IT SOLUTION PORTFOLIO
   ============================================= */

:root {
  --bg-light: #eaeae5;
  --bg-dark: #080808;
  --text-dark: #0a0a0a;
  --text-light: #f0f0ec;
  --text-muted: #888;
  --border-light: rgba(10, 10, 10, 0.12);
  --border-dark: rgba(240, 240, 236, 0.12);

  --font-heading: "Archivo Black", sans-serif;
  --font-mono: "Space Mono", monospace;
  --font-body: "Inter", sans-serif;

  --nav-h: 72px;
  --ease: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =============================================
   RESET & BASE
   ============================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  cursor: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

/* =============================================
   CUSTOM CURSOR
   ============================================= */
.cursor {
  width: 8px;
  height: 8px;
  background: var(--text-dark);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition:
    width 0.2s var(--ease),
    height 0.2s var(--ease);
}

.cursor-follower {
  width: 36px;
  height: 36px;
  border: 1px solid var(--text-dark);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition:
    width 0.4s var(--ease),
    height 0.4s var(--ease),
    border-color 0.2s;
}

body.cursor-hover .cursor {
  width: 14px;
  height: 14px;
}

body.cursor-hover .cursor-follower {
  width: 56px;
  height: 56px;
  opacity: 0.6;
}

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  z-index: 100;
  transition:
    background 0.4s var(--ease),
    backdrop-filter 0.4s;
}

.nav.scrolled {
  background: rgba(234, 234, 229, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
}

.nav__logo {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.nav__links {
  display: flex;
  gap: 8px;
}

.nav__link {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  padding: 8px 12px;
  position: relative;
  color: var(--text-dark);
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 12px;
  right: 12px;
  height: 1px;
  background: var(--text-dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav__link:hover::after {
  transform: scaleX(1);
}

.nav__cta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  padding: 10px 20px;
  border: 1px solid var(--text-dark);
  transition:
    background 0.3s var(--ease),
    color 0.3s;
}

/* Nav hamburger — hidden on desktop */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--text-dark);
  transition: transform 0.35s var(--ease), opacity 0.25s;
  transform-origin: center;
}

.nav__hamburger.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav__hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* =============================================
   MOBILE MENU OVERLAY
   ============================================= */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg-light);
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 32px;
  transform: translateX(100%);
  transition: transform 0.55s var(--ease);
  pointer-events: none;
}

.mobile-menu.is-open {
  transform: translateX(0);
  pointer-events: all;
}

.mobile-menu__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.mobile-menu__overlay.is-visible {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-dark);
  line-height: 1;
  padding: 8px;
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 48px;
}

.mobile-menu__link {
  font-family: var(--font-heading);
  font-size: clamp(32px, 9vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-dark);
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  transition: letter-spacing 0.3s var(--ease), opacity 0.2s;
  opacity: 0;
  transform: translateX(30px);
  transition: transform 0.5s var(--ease), opacity 0.4s;
}

.mobile-menu.is-open .mobile-menu__link {
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu.is-open .mobile-menu__link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(5) { transition-delay: 0.3s; }

.mobile-menu__cta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  padding: 16px 24px;
  border: 1px solid var(--text-dark);
  display: inline-block;
  width: fit-content;
  transition: background 0.3s, color 0.3s;
}

.mobile-menu__cta:hover {
  background: var(--text-dark);
  color: var(--text-light);
}

/* =============================================
   SCROLL-SPY ACTIVE NAV LINK
   ============================================= */
.nav__link.is-active {
  opacity: 1 !important;
}

.nav__link.is-active::after {
  transform: scaleX(1);
}


.nav__cta:hover {
  background: var(--text-dark);
  color: var(--text-light);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  position: relative;
  background: var(--bg-light);
}

/* This in-flow block gives the .hero its actual height */
.hero__spacer {
  display: block;
  height: 100vh;
  min-height: 600px;
}

/* Labels top-left */
.hero__label {
  position: absolute;
  top: calc(var(--nav-h) + 40px);
  left: 48px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 3;
}

.hero__label span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  opacity: 0;
  animation: fadeInUp 0.7s var(--ease-out) forwards;
}

.hero__label span:nth-child(1) {
  animation-delay: 1.2s;
}

.hero__label span:nth-child(2) {
  animation-delay: 1.35s;
}

.hero__label span:nth-child(3) {
  animation-delay: 1.5s;
}

.hero__label span:nth-child(4) {
  animation-delay: 1.65s;
}

/* Portrait — absolute, centered */
.hero__portrait-wrapper {
  position: absolute;
  top: calc(var(--nav-h) + 20px);
  left: 50%;
  transform: translateX(-50%);
  width: clamp(200px, 22vw, 360px);
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  animation: portraitReveal 1.2s var(--ease-out) 0.5s forwards;
}

.hero__portrait {
  width: 100%;
  mix-blend-mode: multiply;
  filter: contrast(1.05) grayscale(0.2);
}

/* Main heading — big text at bottom */
.hero__heading-wrapper {
  position: absolute;
  bottom: 80px;
  left: 48px;
  right: 48px;
  z-index: 4;
}

.hero__heading {
  font-family: var(--font-heading);
  font-size: clamp(80px, 12vw, 175px);
  line-height: 0.88;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  text-transform: uppercase;
  user-select: none;
}

.hero__line {
  display: block;
  overflow: hidden;
}

.hero__line span {
  display: inline-block;
  transform: translateY(110%);
  animation: slideUp 0.9s var(--ease-out) forwards;
}

.hero__line:nth-child(1) span {
  animation-delay: 0.1s;
}

.hero__line:nth-child(2) span {
  animation-delay: 0.25s;
}

/* Meta info — bottom right */
.hero__meta {
  position: absolute;
  bottom: 90px;
  right: 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  z-index: 5;
}

.hero__location {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  opacity: 0;
  animation: fadeInUp 0.7s var(--ease-out) 1.6s forwards;
}

.hero__scroll-hint {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  opacity: 0;
  animation: fadeInUp 0.7s var(--ease-out) 1.8s forwards;
}

/* Marquee — at very bottom of hero */
.hero__marquee-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  border-top: 1px solid var(--border-light);
  overflow: hidden;
  padding: 14px 0;
  background: var(--bg-light);
  opacity: 0;
  animation: fadeIn 0.5s ease 2s forwards;
}

.hero__marquee {
  display: flex;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
}

.hero__marquee span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about {
  background: var(--bg-light);
  padding: 120px 48px;
  border-top: 1px solid var(--border-light);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
}

.about__label {
  margin-bottom: 24px;
  color: var(--text-muted);
}

.about__heading {
  font-family: var(--font-heading);
  font-size: clamp(32px, 3.5vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.about__heading em {
  font-style: italic;
  font-family: "Space Mono", monospace;
  font-size: 0.85em;
}

.about__right {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 56px;
}

.about__bio p,
.about__philosophy p {
  margin-bottom: 16px;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.75;
}

.about__bio p:last-child,
.about__philosophy p:last-child {
  margin-bottom: 0;
}

.about__philosophy .mono {
  color: var(--text-muted);
  margin-bottom: 8px;
}

.about__stats {
  display: flex;
  gap: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.about__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about__stat-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  line-height: 1;
}

/* =============================================
   WORKS SECTION
   ============================================= */
.works {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 120px 48px;
}

.works__header {
  max-width: 1400px;
  margin: 0 auto 80px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.works__label {
  color: rgba(240, 240, 236, 0.45);
}

.works__heading {
  font-family: var(--font-heading);
  font-size: clamp(60px, 8vw, 130px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--text-light);
}

.works__list {
  max-width: 1400px;
  margin: 0 auto;
}

.work-item {
  border-top: 1px solid var(--border-dark);
}

.work-item:last-child {
  border-bottom: 1px solid var(--border-dark);
}

.work-item__media {
  position: relative;
  overflow: hidden;
  height: 0;
  max-height: 0;
  transition:
    max-height 0.7s var(--ease),
    height 0.7s var(--ease);
}

.work-item:hover .work-item__media {
  max-height: 520px;
  height: 520px;
}

.work-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 0.7s var(--ease);
}

.work-item:hover .work-item__img {
  transform: scale(1);
}

.work-item__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 8, 0.4);
  opacity: 0;
  transition: opacity 0.4s;
}

.work-item:hover .work-item__overlay {
  opacity: 1;
}

.work-item__btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--text-light);
  border: 1px solid var(--text-light);
  padding: 14px 28px;
  transition:
    background 0.3s,
    color 0.3s;
}

.work-item__btn:hover {
  background: var(--text-light);
  color: var(--bg-dark);
}

.work-item__info {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 28px 0;
}

.work-item__number {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(240, 240, 236, 0.35);
  min-width: 32px;
}

.work-item__meta {
  flex: 1;
}

.work-item__title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  transition: letter-spacing 0.4s var(--ease);
}

.work-item:hover .work-item__title {
  letter-spacing: 0.02em;
}

.work-item__tags {
  margin-top: 6px;
  color: rgba(240, 240, 236, 0.45);
}

.work-item__arrow {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: rgba(240, 240, 236, 0.3);
  transition:
    color 0.3s,
    transform 0.3s var(--ease);
  display: inline-block;
}

.work-item:hover .work-item__arrow {
  color: var(--text-light);
  transform: translate(4px, -4px);
}

/* =============================================
   SERVICES SECTION
   ============================================= */
.services {
  background: var(--bg-light);
  padding: 120px 48px;
  border-top: 1px solid var(--border-light);
}

.services__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 100px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
}

.services__label {
  margin-bottom: 24px;
  color: var(--text-muted);
}

.services__heading {
  font-family: var(--font-heading);
  font-size: clamp(48px, 5vw, 90px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}

.services__desc {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
}

.services__right {
  display: flex;
  flex-direction: column;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-light);
  cursor: default;
}

.service-item:first-child {
  border-top: 1px solid var(--border-light);
}

.service-item__slash {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  min-width: 36px;
}

.service-item__content {
  flex: 1;
}

.service-item__title {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2vw, 32px);
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 4px;
  text-transform: lowercase;
}

.service-item__desc {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s var(--ease),
    margin-top 0.3s;
}

.service-item:hover .service-item__desc {
  max-height: 60px;
  margin-top: 8px;
}

.service-item__arrow {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: rgba(10, 10, 10, 0.15);
  transition:
    color 0.3s,
    transform 0.3s var(--ease);
  display: inline-block;
}

.service-item:hover .service-item__arrow {
  color: var(--text-dark);
  transform: translate(4px, -4px);
}

/* =============================================
   AWARDS SECTION
   ============================================= */
.awards {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 120px 48px;
}

.awards__inner {
  max-width: 1400px;
  margin: 0 auto;
}

.awards__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 60px;
}

.awards__label {
  color: rgba(240, 240, 236, 0.4);
}

.awards__heading {
  font-family: var(--font-heading);
  font-size: clamp(60px, 8vw, 130px);
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.awards__list {
  display: flex;
  flex-direction: column;
}

.award-row {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-dark);
  transition: padding-left 0.4s var(--ease);
}

.award-row:first-child {
  border-top: 1px solid var(--border-dark);
}

.award-row:hover {
  padding-left: 12px;
}

.award-row__platform {
  min-width: 180px;
  color: rgba(240, 240, 236, 0.45);
  font-size: 0.7rem;
}

.award-row__name {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 300;
}

.award-row__count {
  color: rgba(240, 240, 236, 0.35);
  font-size: 0.68rem;
}

.award-row__link {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: rgba(240, 240, 236, 0.4);
  transition: color 0.3s;
}

.award-row:hover .award-row__link {
  color: var(--text-light);
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 120px 48px 0;
  border-top: 1px solid var(--border-dark);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 100px;
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 100px;
}

.contact__label {
  color: rgba(240, 240, 236, 0.4);
  margin-bottom: 32px;
}

.contact__heading {
  font-family: var(--font-heading);
  font-size: clamp(52px, 6vw, 100px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-bottom: 56px;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 48px;
}

.contact__email {
  font-family: var(--font-heading);
  font-size: clamp(14px, 1.5vw, 20px);
  transition: opacity 0.3s;
  word-break: break-all;
}

.contact__email:hover {
  opacity: 0.6;
}

.contact__phone {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(240, 240, 236, 0.5);
  letter-spacing: 0.06em;
}

.contact__socials {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact__social {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(240, 240, 236, 0.45);
  transition: color 0.3s;
}

.contact__social:hover {
  color: var(--text-light);
}

/* Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: rgba(240, 240, 236, 0.45);
}

.form-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-dark);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 12px 0;
  outline: none;
  transition: border-color 0.3s;
  width: 100%;
}

.form-input::placeholder {
  color: rgba(240, 240, 236, 0.2);
}

.form-input:focus {
  border-color: rgba(240, 240, 236, 0.6);
}

.form-textarea {
  resize: none;
  min-height: 120px;
}

.budget-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.budget-radio {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.budget-radio input[type="radio"] {
  display: none;
}

.budget-radio span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  padding: 8px 14px;
  border: 1px solid var(--border-dark);
  color: rgba(240, 240, 236, 0.4);
  transition: all 0.3s;
}

.budget-radio input:checked + span {
  border-color: var(--text-light);
  color: var(--text-light);
  background: rgba(240, 240, 236, 0.08);
}

.budget-radio:hover span {
  border-color: rgba(240, 240, 236, 0.4);
  color: rgba(240, 240, 236, 0.7);
}

.form-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--text-light);
  color: var(--bg-dark);
  border: none;
  padding: 20px 28px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition:
    background 0.3s,
    opacity 0.3s;
  width: 100%;
  margin-top: 8px;
}

.form-submit:hover {
  opacity: 0.85;
}

.form-submit__arrow {
  font-size: 1.2rem;
  transition: transform 0.3s var(--ease);
}

.form-submit:hover .form-submit__arrow {
  transform: translate(4px, -4px);
}

/* =============================================
   SOCIAL MEDIA CARDS (Contact Right Panel)
   ============================================= */
.contact__social-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact__social-title {
  color: rgba(240, 240, 236, 0.35);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  margin-bottom: 24px;
}

.contact__social-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-dark);
  text-decoration: none;
  color: var(--text-light);
  transition: padding-left 0.4s var(--ease), background 0.3s;
}

.contact__social-card:first-of-type {
  border-top: 1px solid var(--border-dark);
}

.contact__social-card:hover {
  padding-left: 14px;
}

.social-card__icon {
  font-size: 1.8rem;
  width: 48px;
  text-align: center;
  flex-shrink: 0;
}

.social-card__name {
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.5vw, 38px);
  letter-spacing: -0.02em;
  flex: 1;
  line-height: 1;
}

.social-card__arrow {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: rgba(240, 240, 236, 0.25);
  transition: color 0.3s, transform 0.3s var(--ease);
  display: inline-block;
}

.contact__social-card:hover .social-card__arrow {
  color: var(--text-light);
  transform: translate(4px, -4px);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  border-top: 1px solid var(--border-dark);
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
}

.footer .mono {
  color: rgba(240, 240, 236, 0.3);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}

.footer__top {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: rgba(240, 240, 236, 0.3);
  transition: color 0.3s;
}

.footer__top:hover {
  color: var(--text-light);
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.reveal-text,
.reveal-fade,
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
}

.reveal-fade {
  transform: translateY(20px);
  transition-delay: 0.1s;
}

.reveal-text.visible,
.reveal-fade.visible,
.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger */
.works__list .work-item:nth-child(1) {
  transition-delay: 0s;
}

.works__list .work-item:nth-child(2) {
  transition-delay: 0.1s;
}

.works__list .work-item:nth-child(3) {
  transition-delay: 0.2s;
}

.awards__list .award-row:nth-child(1) {
  transition-delay: 0s;
}

.awards__list .award-row:nth-child(2) {
  transition-delay: 0.08s;
}

.awards__list .award-row:nth-child(3) {
  transition-delay: 0.16s;
}

.awards__list .award-row:nth-child(4) {
  transition-delay: 0.24s;
}

.awards__list .award-row:nth-child(5) {
  transition-delay: 0.32s;
}

/* =============================================
   KEYFRAMES
   ============================================= */
@keyframes slideUp {
  to {
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes portraitReveal {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .nav {
    padding: 0 32px;
  }

  .hero {
    padding-left: 32px;
    padding-right: 32px;
  }

  .hero__label {
    left: 32px;
  }

  .hero__heading-wrapper {
    left: 32px;
    right: 32px;
  }

  .hero__meta {
    right: 32px;
  }

  .about {
    padding: 80px 32px;
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .works {
    padding: 80px 32px;
  }

  .services {
    padding: 80px 32px;
  }

  .services__inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .awards {
    padding: 80px 32px;
  }

  .contact {
    padding: 80px 32px 0;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 60px;
  }

  .nav {
    padding: 0 16px;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .nav__links {
    display: none;
  }

  /* Hide the CTA button on very small screens so nav doesn't overflow */
  .nav__cta {
    display: none;
  }

  /* Show the hamburger button */
  .nav__hamburger {
    display: flex;
  }

  /* Hide the hero vertical label stack — marquee carries the same info */
  .hero__label {
    display: none;
  }

  .hero {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Make portrait bigger and centred nicely on mobile */
  .hero__portrait-wrapper {
    width: clamp(160px, 55vw, 280px);
    top: calc(var(--nav-h) + 60px);
  }

  .hero__heading-wrapper {
    left: 16px;
    right: 16px;
    bottom: 72px;
  }

  /* Move meta to top-right so it never overlaps the big heading at bottom */
  .hero__meta {
    top: calc(var(--nav-h) + 16px);
    right: 16px;
    bottom: auto;
    align-items: flex-end;
  }

  .about {
    padding: 60px 20px;
  }

  .works {
    padding: 60px 20px;
  }

  .services {
    padding: 60px 20px;
  }

  .awards {
    padding: 60px 20px;
  }

  /* Fix certifications heading + row overflow */
  .awards__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 40px;
  }

  .awards__heading {
    font-size: clamp(28px, 10vw, 56px);
    word-break: break-word;
  }

  .award-row {
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 0;
  }

  .award-row__platform {
    min-width: 100%;
    width: 100%;
  }

  .award-row__name {
    width: 100%;
    font-size: 0.85rem;
  }

  .contact {
    padding: 60px 20px 0;
  }

  /* Footer wrapping fix */
  .footer {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  /* Hero heading can overflow viewport on tiny phones — clamp it harder */
  .hero__heading {
    font-size: clamp(52px, 18vw, 80px);
  }

  /* Portrait: fill ~70% of the viewport width so there's no massive gap */
  .hero__portrait-wrapper {
    width: clamp(180px, 68vw, 260px);
    top: calc(var(--nav-h) + 52px);
  }

  /* Move the heading up a touch so it sits just below the portrait */
  .hero__heading-wrapper {
    bottom: 64px;
  }

  .hero__meta {
    bottom: 64px;
  }

  /* Certifications: keep everything stacked */
  .awards__header {
    flex-direction: column;
    gap: 12px;
  }

  .award-row__link {
    margin-left: auto;
  }

  /* Contact heading size */
  .contact__heading {
    font-size: clamp(40px, 13vw, 72px);
  }
}

/* Selection highlight */
::selection {
  background: var(--text-dark);
  color: var(--text-light);
}
