/* ── Custom cursor ── */

.cursor--dot {
  display: none;
}

.cursor--ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    width  0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    height 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.3s ease,
    opacity 0.3s ease;
}

/* Hover over links / buttons — enlarge the inversion blob */
.cursor--ring.is-hovering {
  width: 44px;
  height: 44px;
}

/* ── Scroll reveal ── */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Basic */

@font-face {
    font-family: 'Hk Grotesk';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('./fonts/HKGrotesk-Regular.woff') format('woff');
}

@font-face {
    font-family: 'Jost';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('./fonts/Jost-Regular.ttf') format('truetype');
}

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

:root {
    --font-size-small: 1.8rem;
    --font-size-normal: 2.2rem;
    --font-size-medium: 2.8rem;
    --font-size-medium-1: 3.6rem;
    --font-size-large: 5.5rem;
    --font-size-huge: 7.5rem;
    --font-stack: 'Hk Grotesk', sans-serif;

    --line-height-normal: 1.7;
    --line-height-small: 1.2;

    --black: #0e0d0c;
    --pink: #ff3258;
    --white: #f2ede5;
    --white-1: rgba(214, 206, 195, 0.9);


    --container-max-width: 1180px;
    --container-normal-width: 800px;
    --container-medium-width: 700px;
    --container-small-width: 500px;

    --gutter-huge: 12rem;
    --gutter-medium: 6rem;
    --gutter-normal: 3rem;
    --gutter-small-1: 2.5rem;
    --gutter-small: 2rem;

    --border-light: 1px solid rgb(44, 41, 38);
}

html {
    font-size: 56%;
    box-sizing: border-box;
    scroll-behavior: smooth;
    cursor: none;
}

@media(max-width: 1000px) {
    html {
        font-size: 47%;
    }
}

body {
    font-size: var(--font-size-small);
    font-family: var(--font-stack);
    font-weight: 400;
    color: var(--white-1);
    line-height: var(--line-height-normal);
    background: var(--black);
    overflow-x: hidden;
}

.row {
    max-width: var(--container-max-width);
    margin: 0 auto;
}

@media(max-width: 1340px) {
    .row {
        max-width: 1100px;
    }
}

@media(max-width: 1240px) {
    .row {
        padding: 0 var(--gutter-medium);
    }
}

@media(max-width: 600px) {
    .row {
        padding: 0 var(--gutter-normal);
    }
}

@media(max-width: 600px) {
    .row {
        padding: 0 var(--gutter-small);
    }
}

section {
    padding: var(--gutter-huge) 0;
    border-bottom: var(--border-light);
}

img {
    object-fit: contain;
    max-width: 100%;
}

/* Typography */

h1,
h2,
h3 {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    line-height: var(--line-height-small);
    color: var(--white);
}

.heading-primary {
    line-height: 1;
    font-size: var(--font-size-huge);
    font-weight: 400;
}

@media(max-width: 900px) {
    .heading-primary {
        font-size: 6.5rem;
    }
}

h2 {
    font-size: var(--font-size-large);
    margin-bottom: var(--gutter-medium);
}

h2::after {
    content: '';
    display: block;
    height: 2px;
    width: 10rem;
    background: var(--pink);
    margin: var(--gutter-small) 0;
}

h3 {
    font-size: var(--font-size-medium-1);
    margin-bottom: var(--gutter-small);
}

@media(max-width: 500px) {
    .heading-primary {
        font-size: var(--font-size-large);
    }

    h2 {
        font-size: var(--font-size-medium-1);
    }

    h3 {
        font-size: var(--font-size-medium);
    }
}

p {
    margin: var(--gutter-small-1) 0;
}

@media(max-width: 900px) {
    p { 
        max-width: var(--container-small-width);
    }
}

/* Buttons + Links */

a {
    color: var(--white);
    font-weight: 400;
    font-family: 'Jost', sans-serif;
    transition: all .2s;
    outline: 2px solid transparent;
}

::-moz-focus-inner {
    border: 0;
}

button:focus,
a:focus {
    outline: 2px solid var(--pink);
}

body:not(.user-is-tabbing) button:focus,
body:not(.user-is-tabbing) a:focus {
    outline: none;
}

.link:hover {
    color: var(--pink);
}

.btn {
    position: relative;
    display: inline-block;
    padding: 1rem 4.2rem;
    text-decoration: none;
    color: inherit;
    border: 1px solid  var(--pink);
    font-weight: 400;
}

.btn:focus {
    outline: none;
}

.btn::after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 100%;
    background: var(--white);
    height: 100%;
    z-index: -1;
    transition: all 0.2s cubic-bezier(1, 0.68, 0.16, 0.9);
}

.btn:hover::after,
.btn:focus::after {
    right: 0;
    background: var(--pink);
}

.btn--pink {
    background: var(--pink);
    transition: all 0.2s;
}

.btn--pink::after {
    display: none;
}

.btn--pink:hover,
.btn--pink:focus {
    background: transparent;
}

.link__text {
    position: relative;
    display: inline-block;
    padding: .6rem .6rem;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--pink);
}

.link__text::after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 100%;
    background: var(--white);
    height: 100%;
    z-index: -1;
    transition: all 0.2s cubic-bezier(1, 0.68, 0.16, 0.9);
}

.link__text:focus {
    outline: none;
}

.link__text:hover::after,
.link__text:focus:after {
    right: 0;
    background: var(--pink);
}

.link__text span {
    padding-left: 1rem;
    font-family: sans-serif;
}

/* Back to Top */

.back-to-top {
    position: fixed;
    bottom: 4rem;
    right: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 5.5rem;
    width: 5.5rem;
    background-color: var(--pink);
    border-radius: 50%;
    z-index: 10;
    visibility: hidden;
    transition: all .4s;
}

.back-to-top__image {
    height: 70%;
}

@media(max-width: 900px) {
    .back-to-top {
        right: 2rem;
    }
}

@media(max-width: 500px) {
    .back-to-top {
        right: 1rem;
    }
}

/* Navigation */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    transition: background 0.35s ease, box-shadow 0.35s ease;
}

.nav--scrolled {
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--gutter-normal);
    padding-bottom: var(--gutter-normal);
}

.nav__logo {
    font-family: 'Jost', sans-serif;
    font-size: var(--font-size-normal);
    color: var(--white);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.2s;
}

.nav__logo:hover {
    color: var(--pink);
}

.nav__items {
    display: flex;
    list-style: none;
}

.nav__item:not(:last-child) {
    margin-right: var(--gutter-medium);
}

@media(max-width: 500px) {
    .nav .row {
        justify-content: center;
    }
}

@media(max-width: 400px) {
    .nav__item:not(:last-child) {
        margin-right: var(--gutter-normal);
    }
}

@media(max-width: 300px) {
    .nav {
        font-size: var(--font-size-small);
    }
}

.nav__link {
    position: relative;
    display: inline-block;
    padding: 1rem 0;
    text-decoration: none;
    color: inherit;
    transition: color .2s;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--pink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s cubic-bezier(1, 0.68, 0.16, 0.9);
}

.nav__link:hover,
.nav__link--active {
    color: var(--pink);
}

.nav__link:hover::after,
.nav__link--active::after {
    transform: scaleX(1);
}

/* Nav dropdown */

.nav__item--has-dropdown {
    position: relative;
}

.nav__dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: rgba(14, 13, 12, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.2rem 0 0.6rem;
    min-width: 16rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 200;
}

/* Invisible bridge fills the gap between nav link and dropdown panel */
.nav__dropdown::before {
    content: '';
    position: absolute;
    top: -1.2rem;
    left: 0;
    right: 0;
    height: 1.2rem;
}

.nav__item--has-dropdown:hover .nav__dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav__dropdown-item {
    display: block;
    width: 100%;
    padding: 0.9rem 2rem;
    background: none;
    border: none;
    color: var(--white-1);
    font-family: 'Jost', sans-serif;
    font-size: var(--font-size-small);
    letter-spacing: 0.02em;
    text-align: left;
    cursor: none;
    transition: color 0.15s, background 0.15s;
}

.nav__dropdown-item:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

/* Header */

.header {
    background: linear-gradient(rgba(0,0,0, .1), rgba(0,0,0, .4)), 
        url('./images/header.jpg');
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-size: var(--font-size-normal);
}

.header__text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.header__text p {
    margin: 1.5rem 0 3.5rem;
    max-width: var(--container-medium-width);
    font-family: 'Jost', sans-serif;
    font-size: var(--font-size-medium);
}

@media(max-width: 500px) {
    .header {
        text-align: center;
    }

    .header__text p {
        transform: scale(.8);
    }
}

/* Work Tabs */

.work__tabs {
    display: flex;
    gap: 0;
    margin-bottom: var(--gutter-medium);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.work__tab {
    background: none;
    border: none;
    color: var(--white-1);
    font-family: 'Jost', sans-serif;
    font-size: var(--font-size-normal);
    padding: 1.2rem 0;
    margin-right: var(--gutter-medium);
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
    letter-spacing: 0.02em;
}

.work__tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--pink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(1, 0.68, 0.16, 0.9);
}

.work__tab.is-active {
    color: var(--white);
}

.work__tab.is-active::after {
    transform: scaleX(1);
}

.work__tab:hover {
    color: var(--white);
}

/* Work Tags */

.work__tags {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.work__tag {
    font-family: 'Jost', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 1rem;
    border-radius: 2px;
    border: 1px solid;
}

.work__tag--design,
.work__tag--develop {
    color: var(--white-1);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

.work__tag--3d {
    color: var(--white-1);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

/* Work box hidden / overflow state */

.work__box--hidden {
    display: none !important;
}

@keyframes boxFadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.work__box--entering {
    animation: boxFadeIn 0.35s ease forwards;
}

/* View More */

.work__more {
    text-align: center;
    margin-top: var(--gutter-medium);
}

.work__more-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white-1);
    font-family: 'Jost', sans-serif;
    font-size: var(--font-size-small);
    padding: 1.2rem 3.6rem;
    cursor: pointer;
    letter-spacing: 0.05em;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    position: relative;
    overflow: hidden;
}

.work__more-btn::after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 100%;
    background: var(--pink);
    height: 100%;
    z-index: -1;
    transition: right 0.25s cubic-bezier(1, 0.68, 0.16, 0.9);
}

.work__more-btn:hover {
    color: var(--white);
    border-color: var(--pink);
}

.work__more-btn:hover::after {
    right: 0;
}

.work__more-icon {
    display: inline-block;
    margin-left: 0.6rem;
    transition: transform 0.25s ease;
}

.work__more-btn.is-expanded .work__more-icon {
    transform: rotate(180deg);
}

/* Primary "View Case Study" CTA button — matches .btn style */

.work__cta {
  position: relative;
  display: inline-block;
  padding: 1rem 4.2rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--pink);
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  margin-bottom: var(--gutter-small);
  overflow: hidden;
}

.work__cta::after {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 100%;
  background: var(--white);
  height: 100%;
  z-index: -1;
  transition: all 0.2s cubic-bezier(1, 0.68, 0.16, 0.9);
}

.work__cta:hover::after {
  right: 0;
  background: var(--pink);
}

/* Work */

.work__box {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.work__box:hover {
    transform: translateY(-4px);
}

@media(max-width: 900px) {
    .work__box {
        align-items: initial;
        flex-direction: column-reverse;
    }
}

.work__box:not(:last-child) {
    margin-bottom: 8rem;
}

@media(max-width: 500px) {
    .work__box:not(:last-child) {
        margin-bottom: 14rem;
    }
}

.work__links {
    display: flex;
    align-items: center;
}

.work__links--stacked {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.work__text {
    flex: 0 0 44%;
}

.work__date {
    margin: 0 0 var(--gutter-small-1);
    font-size: 1.6rem;
    color: var(--white-1);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.work__list {
    list-style-position: inside;
    margin-bottom: var(--gutter-normal);
}

.work__code {
    display: block;
    height: 3rem;
    margin-left: var(--gutter-normal);
    transition: all .3s;
}

.work__code:hover {
    transform: scale(1.2);
}

.work__image-box {
    margin-bottom: var(--gutter-normal);
    transform: translateY(-70px);
}

.work__image {
    width: 100%;
    height: 400px;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.work__slideshow {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.work__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #0a0a0a;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.work__slide.is-active {
    opacity: 1;
}

.work__slide-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 4rem;
    height: 4rem;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s ease, transform 0.2s ease;
}

.work__slide-icon {
    width: 2rem;
    height: 2rem;
    display: block;
    margin: 0 auto;
    filter: brightness(0) invert(1);
}

.work__slide-icon--prev {
    transform: rotate(-90deg);
}

.work__slide-icon--next {
    transform: rotate(90deg);
}

.work__slide-control--prev {
    left: 1.2rem;
}

.work__slide-control--next {
    right: 1.2rem;
}

.work__slide-control:hover,
.work__slide-control:focus-visible {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.05);
}

.work__slide-control:focus-visible {
    outline: 2px solid var(--pink);
    outline-offset: 3px;
}

/* Image column: wraps the image-box + stacked secondary links */

.work__image-col {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--gutter-normal);
}

@media(min-width: 901px) {
    .work__image-col {
        flex: 1;
        margin: 0 0 0 5rem;
        gap: 2.4rem;
    }

    /* When image-box lives inside image-col, remove its own offset/margin */
    .work__image-col .work__image-box {
        flex: unset;
        margin: 0;
        transform: none;
    }
}

@media(max-width: 900px) {
    .work__image-col {
        gap: 1.6rem;
    }
}

@media(min-width: 901px) {
    .work__image-box {
        flex: 1;
        margin: 0 0 0 5rem;
        transform: translateY(-50px);
    }
}

@media(max-width: 900px) {
    .work__code {
        height: 15rem;
    }
}

/* Clients */

/* Logo links */
.client__logo-link {
  display: inline-block;
  text-decoration: none;
  outline: 2px solid transparent;
}

.client__logo-link:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 6px;
}

/* Hover motion */
.client__logo {
  height: 10rem;
  max-width: 26rem;
  transition: transform .15s ease;
}

.client__logo-link:hover .client__logo,
.client__logo-link:focus .client__logo {
  transform: translateY(-4px) scale(1.02);
}

/* Logos layout */
.client__logos {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

/* Smaller logo */
.client__logo--sm {
  height: 8rem;
  max-width: 22rem;
}

/* About */

.about__content {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
}

@media(max-width: 900px) {
    .about__content {
        flex-direction: column-reverse;
        align-items: initial;
    }
}

.about__photo-container {
    margin-bottom: var(--gutter-normal);
}

.about__photo {
    border-radius: 4px;
    filter: grayscale(15%);
    transition: filter 0.3s ease;
}

.about__photo:hover {
    filter: grayscale(0%);
}

@media(min-width: 901px) {
    .about__text {
        flex: 0 0 35%;
    }

    .about__photo-container {
        flex: 1;
        margin: 0 var(--gutter-huge) 0 0;
    }
}

/* Contact */

.contact__info {
    max-width: var(--container-medium-width);
}

.contact__info .btn {
  display: inline-block !important;  
  width: auto !important;
  max-width: max-content;
  margin: 0 0 2.5rem 0;       
}

.contact__links {
  margin-top: 0 !important;        
}
/* Footer */

.footer {
    padding: 6rem 0;
    border-top: var(--border-light);
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__copy {
    font-family: 'Jost', sans-serif;
    font-size: var(--font-size-small);
    color: rgba(242, 237, 229, 0.45);
    margin: 0;
}

.footer__links {
    display: flex;
    gap: 3.6rem;
}

.footer__link {
    font-family: 'Jost', sans-serif;
    font-size: var(--font-size-small);
    color: rgba(242, 237, 229, 0.6);
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
}

.footer__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--pink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s cubic-bezier(1, 0.68, 0.16, 0.9);
}

.footer__link:hover {
    color: var(--white);
}

.footer__link:hover::after {
    transform: scaleX(1);
}

@media(max-width: 600px) {
    .footer__inner {
        flex-direction: column;
        gap: 2.4rem;
        text-align: center;
    }
    .footer__links {
        justify-content: center;
    }
}

/* ── YouTube facade ── */

.yt-facade {
    position: relative;
    width: 100%;
    height: 400px;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yt-facade__thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.yt-facade:hover .yt-facade__thumb {
    transform: scale(1.03);
}

.yt-facade__play {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1;
    opacity: 0.92;
    transition: opacity 0.2s, transform 0.2s;
    filter: drop-shadow(0 2px 12px rgba(0,0,0,0.5));
}

.yt-facade:hover .yt-facade__play {
    opacity: 1;
    transform: scale(1.1);
}
