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

:root {
    --column-width: 500px;
    --showcase-width: 923px;
    --meta-color: #737373;
    --page-gutter: 30px;
}

html, body {
    height: 100%;
}

body {
    background-color: #ffffff;
    font-family: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    color: #000000;
    -webkit-font-smoothing: antialiased;
}

/* Nav */
.nav {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 50px var(--page-gutter) 0;
}

.nav__logo {
    display: block;
    flex-shrink: 0;
}

.nav__logo img {
    display: block;
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    line-height: 18px;
}

.nav__links a {
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.nav__links a:hover {
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

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

/* Reference Library hover preview */
.nav__preview-wrap {
    position: relative;
    display: inline-block;
}

.nav__preview {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 12px;
    z-index: 50;
    pointer-events: none;
}

.nav__preview-wrap:hover .nav__preview {
    pointer-events: auto;
}

.nav__preview-arrow {
    display: block;
    width: 10px;
    height: 10px;
    margin: 0 auto -5px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-bottom: none;
    border-right: none;
    transform: rotate(45deg);
    position: relative;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.nav__preview-wrap:hover .nav__preview-arrow {
    opacity: 1;
}

.nav__preview-window {
    display: block;
    width: 300px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16), 0 6px 16px rgba(0, 0, 0, 0.06);
    background: #ffffff;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    text-decoration: none;
}

.nav__preview-wrap:hover .nav__preview-window {
    opacity: 1;
    transform: translateY(0);
}

.window-chrome {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f5f5f5;
    border-bottom: 1px solid #e5e5e5;
}

.window-dots {
    display: flex;
    gap: 5px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.window-url {
    flex: 1;
    text-align: center;
    font-size: 11px;
    color: var(--meta-color);
    font-weight: 400;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.window-viewport {
    display: block;
    width: 300px;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.window-viewport iframe {
    width: 1500px;
    height: 1000px;
    border: none;
    transform: scale(0.2);
    transform-origin: top left;
    pointer-events: none;
}

/* Centered page column (About / Contact) */
.page {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 70px 24px 80px;
}

/* Homepage two-column layout */
.home {
    display: grid;
    grid-template-columns: minmax(280px, 500px) minmax(0, 923px);
    gap: 40px;
    align-items: start;
    padding: 40px var(--page-gutter) 80px;
    max-width: 1512px;
}

.home__sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.home__work {
    display: flex;
    flex-direction: column;
    gap: 25px;
    min-width: 0;
}

.home-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: var(--column-width);
    padding: 10px;
}

.home-contact__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    list-style: none;
    cursor: default;
}

.home-contact__toggle::-webkit-details-marker {
    display: none;
}

.home-contact__toggle::after {
    content: none;
    flex-shrink: 0;
    width: 12px;
    text-align: center;
    font-size: 18px;
    line-height: 1;
    font-weight: 400;
}

.home-contact__title {
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
}

.home-contact__panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.home-contact__body {
    font-size: 14px;
    line-height: 18px;
}

.home .contact-form {
    max-width: none;
    margin-top: 0;
    gap: 10px;
}

.home .contact-input,
.home .contact-submit {
    font-size: 14px;
    line-height: 18px;
}

/* Bottom progressive blur */
.bottom-blur {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    pointer-events: none;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: linear-gradient(to top, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
    -webkit-mask-image: linear-gradient(to top, #000 0%, #000 25%, transparent 100%);
    mask-image: linear-gradient(to top, #000 0%, #000 25%, transparent 100%);
}

/* Bio */
.bio {
    width: 100%;
    max-width: var(--column-width);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.home .bio {
    padding: 10px;
}

.bio__heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 6px;
}

.bio__title {
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    padding-left: 10px;
    padding-right: 10px;
}

.home .bio__title {
    padding-left: 0;
    padding-right: 0;
}

.page .bio__title {
    font-size: 32px;
    line-height: normal;
}

.bio__time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 400;
    color: var(--meta-color);
    white-space: nowrap;
    letter-spacing: 0.01em;
    animation: bioTimeIn 0.7s ease 0.15s both;
}

.bio__time-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #28c840;
    flex-shrink: 0;
    animation: bioTimePulse 2.4s ease-in-out infinite;
}

.bio__time time {
    transition: opacity 0.3s ease;
}

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

@keyframes bioTimePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 200, 64, 0.45);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 0 5px rgba(40, 200, 64, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bio__time {
        animation: none;
    }

    .bio__time-dot {
        animation: none;
    }
}

.bio__body {
    padding: 0 10px;
    max-width: 510px;
    font-size: 14px;
    line-height: 18px;
}

.home .bio__body {
    padding: 0;
    max-width: none;
}

.page .bio__body {
    font-size: 16px;
    line-height: normal;
}

.bio__body p:not(:last-child) {
    margin-bottom: 5px;
}

.bio__social {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 5px 10px 0;
}

.bio__social-link {
    display: inline-flex;
    color: inherit;
    transition: color 0.25s ease, filter 0.25s ease, transform 0.25s ease;
}

.bio__social-link:hover {
    transform: translateY(-1px);
}

.bio__social-link--instagram:hover {
    filter: drop-shadow(0 0 7px rgba(214, 41, 118, 0.7));
}

.bio__social-link--instagram:hover svg {
    stroke: url(#ig-gradient);
}

.bio__social-link--linkedin:hover {
    color: #0a66c2;
    filter: drop-shadow(0 0 8px rgba(10, 102, 194, 0.75));
}

/* What we offer (About page) */
.offer {
    width: 100%;
    max-width: var(--column-width);
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 36px;
}

.offer__title {
    font-size: 20px;
    font-weight: 500;
    padding: 0 10px;
}

.offer__accordion {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 510px;
    padding: 0 10px;
    font-size: 16px;
}

.offer__item {
    border-top: 1px solid #d9d9d9;
}

.offer__item:last-child {
    border-bottom: 1px solid #d9d9d9;
}

.offer__summary {
    display: grid;
    grid-template-columns: 24px 1fr 12px;
    align-items: center;
    gap: 0;
    padding: 8px 0;
    cursor: pointer;
    line-height: normal;
    list-style: none;
}

.offer__summary::-webkit-details-marker {
    display: none;
}

.offer__summary::after {
    content: "+";
    justify-self: end;
    font-size: 18px;
    line-height: 1;
}

.offer__item[open] .offer__summary::after {
    content: "-";
}

.offer__number {
    font-variant-numeric: tabular-nums;
}

.offer__term {
    text-decoration: underline;
}

.offer__content {
    padding: 0 12px 10px 24px;
    color: #4d4d4d;
}

/* Team (About page) */
.team {
    width: 100%;
    max-width: var(--column-width);
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 36px;
}

.team__title {
    font-size: 20px;
    font-weight: 500;
    padding: 0 10px;
}

.team__member {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 10px;
    width: 100%;
}

.team__name {
    font-size: 16px;
    font-weight: 500;
    color: #000;
}

.team__role {
    font-size: 14px;
    font-weight: 400;
    color: #737373;
}

/* Load animation */
.intro-overlay {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    visibility: hidden;
}

.intro-overlay__logo {
    width: 140px;
    height: auto;
    opacity: 0;
    transform: scale(0.96);
}

.is-loading .intro-overlay {
    visibility: visible;
    pointer-events: auto;
}

.is-loading.intro-active .intro-overlay__logo {
    opacity: 1;
    transform: scale(1);
    transition: opacity 400ms ease-out, transform 400ms ease-out;
}

.is-loading.intro-done .intro-overlay {
    opacity: 0;
    transition: opacity 400ms ease;
}

.is-loading .nav,
.is-loading .page > *,
.is-loading .home > *,
.is-loading .bottom-blur,
.skip-intro .nav,
.skip-intro .page > *,
.skip-intro .home > *,
.skip-intro .bottom-blur {
    opacity: 0;
    transform: translateY(8px);
}

.content-in .nav,
.content-in .page > *,
.content-in .home > *,
.content-in .bottom-blur {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 500ms ease-out, transform 500ms ease-out;
}

.content-in .nav { transition-delay: 0ms; }
.content-in .page > *:nth-child(1) { transition-delay: 120ms; }
.content-in .page > *:nth-child(2) { transition-delay: 240ms; }
.content-in .page > *:nth-child(3) { transition-delay: 360ms; }
.content-in .page > *:nth-child(4) { transition-delay: 480ms; }
.content-in .page > *:nth-child(5) { transition-delay: 600ms; }
.content-in .home__sidebar { transition-delay: 120ms; }
.content-in .home__work { transition-delay: 240ms; }
.content-in .bottom-blur { transition-delay: 360ms; }

@media (prefers-reduced-motion: reduce) {
    .intro-overlay { display: none; }
    .is-loading .nav,
    .is-loading .page > *,
    .is-loading .home > *,
    .is-loading .bottom-blur,
    .skip-intro .nav,
    .skip-intro .page > *,
    .skip-intro .home > *,
    .skip-intro .bottom-blur {
        opacity: 1;
        transform: none;
    }
}

/* Contact form */
.contact-form {
    width: 100%;
    max-width: var(--column-width);
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.contact-form__field {
    display: block;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.contact-input {
    width: 100%;
    padding: 10px;
    background: #fafafa;
    border: 0.5px solid rgba(43, 43, 43, 0.5);
    border-radius: 0;
    font-family: inherit;
    font-size: 16px;
    color: #000000;
    line-height: normal;
}

.contact-input::placeholder {
    color: var(--meta-color);
    opacity: 1;
}

.contact-input:focus {
    outline: none;
    border-color: #2b2b2b;
}

.contact-textarea {
    height: 155px;
    resize: vertical;
}

.contact-submit {
    width: 100%;
    padding: 10px;
    background: #2b2b2b;
    border: 0.5px solid rgba(43, 43, 43, 0.5);
    border-radius: 0;
    font-family: inherit;
    font-size: 16px;
    color: #ffffff;
    text-align: center;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.contact-submit:hover {
    opacity: 0.85;
}

/* Project */
.project {
    width: 100%;
    max-width: var(--column-width);
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}

.project--home {
    max-width: none;
    margin-top: 0;
    padding-block: 10px;
}

.project__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 10px;
}

.project__name {
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    white-space: nowrap;
}

.page .project__name {
    font-size: 20px;
    line-height: normal;
}

.project__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: inherit;
    text-decoration: none;
    font-size: 14px;
    line-height: 18px;
    white-space: nowrap;
    padding: 6px 12px;
    margin: -6px -12px;
    border: 1px solid transparent;
    border-radius: 100px;
    background-color: transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.project__link:hover {
    background-color: #f5f5f5;
    border-color: #e5e5e5;
}

.project__arrow {
    width: 12px;
    height: 12px;
    display: block;
    transition: transform 0.2s ease;
}

.project__link:hover .project__arrow {
    transform: translate(2px, -2px);
}

/* Project View hover preview */
.project__preview-wrap {
    position: relative;
    display: inline-block;
}

.project__preview {
    position: absolute;
    top: 100%;
    right: 0;
    padding-top: 12px;
    z-index: 50;
    pointer-events: none;
}

.project__preview-wrap:hover .project__preview {
    pointer-events: auto;
}

.project__preview-arrow {
    display: block;
    width: 10px;
    height: 10px;
    margin: 0 22px -5px auto;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-bottom: none;
    border-right: none;
    transform: rotate(45deg);
    position: relative;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.project__preview-wrap:hover .project__preview-arrow {
    opacity: 1;
}

.project__preview-window {
    display: block;
    width: 300px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16), 0 6px 16px rgba(0, 0, 0, 0.06);
    background: #ffffff;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    text-decoration: none;
}

.project__preview-wrap:hover .project__preview-window {
    opacity: 1;
    transform: translateY(0);
}

.project__tagline {
    padding: 0 10px;
    font-size: 16px;
    line-height: 20px;
}

.project__description {
    padding: 0 10px;
    max-width: 530px;
    font-size: 14px;
    line-height: 18px;
}

.project--home .project__description {
    max-width: none;
}

.page .project__description {
    padding: 5px 10px;
    font-size: 16px;
    line-height: normal;
}

.project__meta {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: 300;
    line-height: 18px;
    color: var(--meta-color);
}

/* Section divider */
.divider {
    width: 100%;
    max-width: calc(var(--showcase-width) + 50px);
    height: 0;
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 44px 0;
}

/* Showcase image */
.showcase {
    width: 100%;
    max-width: var(--showcase-width);
    margin-top: 30px;
    aspect-ratio: 730 / 443;
    overflow: hidden;
}

.showcase--home {
    margin-top: 0;
    aspect-ratio: 923 / 561;
    max-width: none;
}

.showcase img,
.showcase video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

@media (max-width: 1100px) {
    .home {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 32px 24px 80px;
    }

    .home-contact__toggle {
        cursor: pointer;
        padding: 8px 0;
        border-top: 1px solid #d9d9d9;
        border-bottom: 1px solid #d9d9d9;
    }

    .home-contact__toggle::after {
        content: "+";
    }

    .home-contact[open] .home-contact__toggle::after {
        content: "-";
    }

    .home-contact__panel {
        padding-top: 10px;
    }
}

@media (max-width: 700px) {
    .nav {
        padding: 28px 20px 0;
        gap: 16px;
    }

    .nav__logo img {
        width: 44px;
        height: 44px;
    }

    .nav__links {
        gap: 14px;
        font-size: 13px;
    }

    .page {
        padding: 44px 20px 80px;
    }

    .home {
        padding: 28px 20px 80px;
        gap: 36px;
    }

    .home-contact,
    .home .bio {
        padding: 0;
    }

    .bio__heading {
        flex-wrap: nowrap;
    }
    .page .bio__title {
        font-size: 20px;
        min-width: 0;
    }
    .page .bio__body {
        font-size: 14px;
    }
    .offer__title {
        font-size: 18px;
    }
    .offer__list {
        font-size: 14px;
    }
    .project__tagline {
        font-size: 14px;
        line-height: 18px;
    }
    .project__description {
        font-size: 14px;
        font-weight: 400;
    }
    .project__meta {
        font-size: 12px;
    }

    .bio__time {
        flex-shrink: 0;
    }

    .page .project__name {
        font-size: 18px;
    }

    .nav__preview,
    .project__preview {
        display: none;
    }
}
