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

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body {
    background-color: black;
    font-family: "Days One", sans-serif;
    color: white;
}


/* LANDING SECTION */

#landing {
    min-height: 100vh;
    position: relative;
    isolation: isolate;
    overflow: visible;
}

#landing::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #d0cdcd;
    clip-path: polygon(0 0, 50% 0, 41% 100%, 0 100%);
    z-index: -1;
}


/* NAVIGATION */

.navBar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1550px;
    padding: 0 15px;
}

.logo {
    margin-left: 250px;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 115px;
    width: 115px;
}

.navBar ul {
    display: flex;
    align-items: center;
    gap: 55px;
}

.navBar li {
    list-style: none;
}

.navBar li a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

.navBar li a:hover {
    color: #d0cdcd;
}

.navBar button {
    font-family: "Days One", sans-serif;
    background-color: white;
    border: none;
    border-radius: 20px;
    padding: 10px;
    width: 150px;
    cursor: pointer;
    margin-right: 100px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.navBar button:hover {
    background-color: #d0cdcd;
    transform: scale(1.07);
}

.navBar button a {
    color: black;
    text-decoration: none;
    font-size: 15px;
}


/* LANDING CONTENT */

.nameArea {
    width: 48%;
    height: calc(100vh - 115px);
    display: flex;
    align-items: center;
    padding: 0 0 10vh 11%;
    color: black;
}

.intro h3 {
    display: flex;
    align-items: center;
    gap: 24px;
    font-family: "Bebas Neue";
    font-size: 30px;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: #292929;
    margin-bottom: 30px;
    margin-left: -90px;
}

.intro h3::before {
    content: "";
    width: 70px;
    height: 1.5px;
    background-color: #292929;
}

/* big dark gradient name (landing + contact panel share it) */
.intro h1,
.contactIntro h2 {
    font-family: "Redaction", serif;
    font-size: clamp(65px, 6.3vw, 108px);
    font-weight: 400;
    line-height: 0.88;
    letter-spacing: -0.045em;
    background: linear-gradient(105deg, #161616 10%, #636161 48%, #020202 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.intro h1 span,
.contactIntro h2 span {
    display: inline-block;
    font-size: 1.12em;
    margin-left: -3px;
}

.intro p {
    font-family: "Manrope", sans-serif;
    font-size: 15px;
    color: #383838;
    margin-top: 19px;
    letter-spacing: 0.23em;
    font-weight: bold;
}

.intro p b {
    margin: 0 5px;
}

.socialLinks {
    display: flex;
    gap: 25px;
    margin-top: 40px;
}

/* small social tiles (landing + contact panel share them) */
.socialLinks a,
.contactSocials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: #aaa8a895;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.socialLinks a:hover,
.contactSocials a:hover {
    background-color: white;
    transform: scale(1.07);
}

.socialLinks img,
.contactSocials img {
    width: 20px;
    height: 20px;
}

.intro > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 175px;
    margin-top: 48px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.45);
    color: #434242;
    font-family: "Days One", sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.intro > a:hover {
    transform: scale(1.07);
    color: black;
}

.intro > a span {
    font-size: 23px;
    font-weight: 400;
}


/* PORTRAIT */

.imgArea {
    position: fixed;
    bottom: 0;
    right: 3%;
    width: 42%;
    height: 100vh;
    margin-right: 50px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    pointer-events: none;
    z-index: 10;
    transform-origin: bottom center;
    will-change: transform;
    overflow: visible;
}

.imgArea img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    display: block;
}


/* SECTION TOPLINE */

.topline {
    width: fit-content;
    margin-left: auto;
    margin-bottom: 55px;
    display: flex;
    align-items: center;
    gap: 32px;
    font-family: "Days One", sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #e8e8e8;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(.22, 1, .36, 1);
}

.topline div {
    width: 100px;
    height: 4px;
    border-radius: 100px;
    background: #a5a2a2;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.45s ease 0.1s;
}

.inView .topline {
    opacity: 1;
    transform: translateY(0);
}

.inView .topline div {
    transform: scaleX(1);
}


/* ABOUT SECTION */

#about {
    min-height: 90vh;
    position: relative;
    overflow: hidden;
}

.contentAbout {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 18px;
    padding: 16vh 2% 2vh 51%;
    position: relative;
    z-index: 1;
}

.aboutDetails {
    width: 100%;
    max-width: 564px;
    align-self: flex-start;
    font-family: "Lato", sans-serif;
}

/* light gradient section headings (about, stacks, projects share it) */
.aboutDetails h2,
.stacksIntro h2,
.projectsHeading h2 {
    font-family: "Redaction", serif;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.045em;
    background: linear-gradient(105deg, #e5e0e0 10%, #4f4e4e 48%, #dddada 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.aboutDetails h2 {
    font-size: clamp(56px, 6vw, 88px);
}

.stacksIntro h2,
.projectsHeading h2 {
    font-size: clamp(45px, 5vw, 76px);
}

.aboutUnderline {
    display: block;
    width: 50px;
    height: 4px;
    margin: 15px 0 22px;
    background: #eee;
}

.aboutDetails p {
    color: #ddd;
    font-size: 17px;
    line-height: 1.45;
    margin-bottom: 21px;
}

.aboutDetails p:first-of-type {
    margin-bottom: 27px;
}


/* ABOUT CARDS */

.aboutCards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
    margin-top: 18px;
}

.aboutCard {
    min-height: 66px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 10px 18px;
    border: 1px solid #242424;
    border-radius: 13px;
    background: #151515;
}

.aboutCard svg {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    fill: none;
    stroke: #f5f5f5;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.aboutCard span {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.aboutCard strong {
    color: #f4f4f4;
    font-size: 15px;
    font-weight: 600;
}

.aboutCard small {
    color: #929292;
    font-size: 13px;
}


/* ABOUT BUTTON */

.aboutLink {
    font-family: "Days One", sans-serif;
    background-color: white;
    color: black;
    border: none;
    cursor: pointer;
    width: 180px;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 25px;
    padding: 0 19px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.aboutLink:hover {
    background-color: #d0cdcd;
    transform: scale(1.07);
}

.aboutLink span {
    font-size: 21px;
    line-height: 1;
}


/* STACKS SECTION */

#stacks {
    min-height: 100vh;
    position: relative;
    background: #000;
    overflow: hidden;
    padding: 10vh 6% 12vh;
}

.contentStacks {
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
}

.stacksIntro {
    margin-bottom: 55px;
}

.stacksIntro p {
    font-family: "Lato", sans-serif;
    font-size: 16px;
    color: #999;
    margin-top: 15px;
}


/* STACK LIST (one row per category) */

.stackList {
    margin: 0 -28px;
}

.stackRow {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: 150px 1fr 1.25fr;
    align-items: center;
    gap: 30px;
    padding: 34px 28px;
    border-top: 1px solid #292929;
    font-family: "Lato", sans-serif;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.8s cubic-bezier(.22, 1, .36, 1);
}

.stackRow:last-child {
    border-bottom: 1px solid #292929;
}

.inView .stackRow {
    opacity: 1;
    transform: none;
}

.stackRow:nth-child(2) {
    transition-delay: 0.08s;
}

.stackRow:nth-child(3) {
    transition-delay: 0.16s;
}

.stackRow:nth-child(4) {
    transition-delay: 0.24s;
}

.stackRow:nth-child(5) {
    transition-delay: 0.32s;
}

.stackRow:nth-child(6) {
    transition-delay: 0.4s;
}

/* grey fill sweeps in from the left on hover */
.stackRow::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: #d0cdcd;
    transform: translateX(-101%);
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.stackRow:hover::before {
    transform: none;
}


/* stack row: number */

.stackIndex {
    font-family: "Redaction", serif;
    font-size: 72px;
    line-height: 1;
    letter-spacing: -0.045em;
    color: transparent;
    -webkit-text-stroke: 1px #3a3a3a;
    transition: -webkit-text-stroke-color 0.4s ease;
}

.stackRow:hover .stackIndex {
    -webkit-text-stroke-color: #161616;
}


/* stack row: title and text */

.stackLabel {
    display: block;
    margin-bottom: 12px;
    font-family: "Manrope", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #888;
    transition: color 0.4s ease;
}

.stackInfo h3 {
    font-family: "Days One", sans-serif;
    font-size: clamp(22px, 2.2vw, 32px);
    font-weight: 400;
    color: white;
    transition: color 0.4s ease;
}

.stackInfo p {
    max-width: 360px;
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #999;
    transition: color 0.4s ease;
}

.stackRow:hover .stackLabel {
    color: #4a4a4a;
}

.stackRow:hover .stackInfo h3 {
    color: #161616;
}

.stackRow:hover .stackInfo p {
    color: #383838;
}


/* stack row: technology pills */

.stackTech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
}

.stackTech li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 12px;
    border: 1px solid #2c2c2c;
    border-radius: 30px;
    background: #111;
    font-family: "Manrope", sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #ddd;
    transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease, transform 0.3s ease;
}

.stackTech img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: invert(1);
    transition: filter 0.4s ease;
}

.stackRow:hover .stackTech li {
    background: rgba(0, 0, 0, 0.06);
    border-color: #a5a2a2;
    color: #161616;
}

.stackRow:hover .stackTech img {
    filter: none;
}

.stackTech li:hover {
    transform: translateY(-3px);
}


/* PROJECTS SECTION */

#projects {
    min-height: 100vh;
    position: relative;
    padding: 0 6% 2vh;
    overflow-x: clip;              /* zoom-out doesn't cause sideways scroll */
}

.contentProjects {
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
    display: flow-root;
}

/* PROJECTS TOPLINE (stays visible while scrolling) */

#projects .topline {
    position: static;
    width: 100%;
    justify-content: flex-end;
    height: 48px;
    margin-bottom: 0;
    padding: 10px 0 0;
    background: #000;
}

.projectsTop {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #000;
}

/* PROJECTS HEADING (stays visible under the topline) */

.projectsHeading {
    padding: 8px 0 10px;
    margin-bottom: 40px;
    background: #000;
}

/* PROJECT CARDS (margin + movement come from motion.css / index.js) */

.projectsList {
    padding-bottom: 5vh;
}

.projectCard {
    position: sticky;
    height: var(--cardH, calc(100vh - 290px));
    min-height: 440px;
    max-height: 720px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(135deg, #1c1c1c, #2e2e2e 50%, #121212);
    border: 1px solid #3a3a3a;
    border-radius: 18px;
    font-family: "Lato", sans-serif;
}

.projectCard:nth-child(1) {
    top: 154px;
}

.projectCard:nth-child(2) {
    top: 210px;
}

.projectCard:nth-child(3) {
    top: 266px;
}

.projectCard:nth-child(4) {
    top: 322px;
}

.projectCard:nth-child(n + 5) {
    top: 378px;
}


/* CARD TOP STRIP (project name + redirect arrow) */

.projectCardTop {
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px 0 28px;
    border-bottom: 1px solid #3a3a3a;
    color: #8a8a8a;
    font-family: "Manrope", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.projectTitle {
    display: flex;
    align-items: center;
    gap: 16px;
}

.projectNumber {
    padding: 5px 12px;
    border: 1px solid #3a3a3a;
    border-radius: 20px;
}

.projectTitle h3 {
    font-family: "Days One", sans-serif;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0;
    color: white;
}

.projectMeta {
    display: flex;
    align-items: center;
    gap: 18px;
}

.projectArrow {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #8a8a8a;
    border-radius: 50%;
    color: white;
    font-family: "Days One", sans-serif;
    font-size: 15px;
    letter-spacing: 0;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.projectArrow:hover {
    background-color: white;
    color: #111;
    transform: scale(1.1);
}

/* CARD BODY */

.projectCardBody {
    flex: 1;
    display: flex;
    gap: 40px;
    padding: 24px;
    min-height: 0;
}

.projectInfo {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px 16px 8px 8px;
}

.projectInfo p {
    max-width: 420px;
    color: #aaa;
    font-size: 16px;
    line-height: 1.7;
}

.projectTags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.projectTags span {
    padding: 6px 14px;
    border: 1px solid #3a3a3a;
    border-radius: 20px;
    color: #aaa;
    font-family: "Manrope", sans-serif;
    font-size: 12px;
    font-weight: 600;
}

.projectLink {
    align-self: flex-start;
    padding: 12px 22px;
    border: 1px solid #8a8a8a;
    border-radius: 24px;
    color: white;
    font-family: "Days One", sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.projectLink:hover {
    background-color: white;
    color: #111;
    transform: scale(1.07);
}

.projectImage {
    flex: 1.1;
    overflow: hidden;
    border-radius: 12px;
    background: #d0cdcd;
}

.projectImage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* LIGHT CARDS (every second card) */

.projectCard:nth-child(even) {
    background: #d0cdcd;
    border-color: #a5a2a2;
}

.projectCard:nth-child(even) .projectCardTop {
    border-bottom-color: #a5a2a2;
    color: #4a4a4a;
}

.projectCard:nth-child(even) .projectNumber {
    border-color: #a5a2a2;
}

.projectCard:nth-child(even) .projectTitle h3 {
    color: #161616;
}

.projectCard:nth-child(even) .projectArrow {
    border-color: #4a4a4a;
    color: #161616;
}

.projectCard:nth-child(even) .projectArrow:hover {
    background-color: #161616;
    color: #d0cdcd;
}

.projectCard:nth-child(even) .projectCardBody {
    flex-direction: row-reverse;
}

.projectCard:nth-child(even) .projectInfo p {
    color: #383838;
}

.projectCard:nth-child(even) .projectTags span {
    border-color: #a5a2a2;
    color: #383838;
}

.projectCard:nth-child(even) .projectLink {
    border-color: #4a4a4a;
    color: #161616;
}

.projectCard:nth-child(even) .projectLink:hover {
    background-color: #161616;
    color: #d0cdcd;
}

.projectCard:nth-child(even) .projectImage {
    background: linear-gradient(135deg, #1c1c1c, #2e2e2e 50%, #121212);
}


/* PROJECTS TAG GRID (cards shrink into tags, index.js moves everything) */

.projectsList.gridOn > .projectCard {
    opacity: 0;
    pointer-events: none;
}

.projectsMorph {
    position: relative;
    pointer-events: none;
}

.morphStage {
    position: sticky;
    top: 0;
    z-index: 3;
}

.morphTag {
    position: absolute;
    left: 0;
    top: 0;
    --tip: 88px;
    width: 320px;
    height: 560px;
    transform-origin: 0 0;
    pointer-events: none;
}

.tagCard {
    position: absolute;
    inset: 0;
    background: #3a3a3a;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--tip)), 50% 100%, 0 calc(100% - var(--tip)));
    opacity: 0;
}

.morphTag.alt .tagCard {
    background: #a5a2a2;
}

.projectsList.gridOn .morphTag {
    pointer-events: auto;
}

.tagBody {
    position: absolute;
    inset: 1px;
    overflow: hidden;
    background: linear-gradient(135deg, #1c1c1c, #2e2e2e 50%, #121212);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--tip)), 50% 100%, 0 calc(100% - var(--tip)));
    font-family: "Lato", sans-serif;
    color: white;
}

.morphTag.alt .tagBody {
    background: #d0cdcd;
}

.tagHead {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 18px;
    border-bottom: 1px solid #3a3a3a;
}

.tagHead h4 {
    font-family: "Days One", sans-serif;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
}

.tagHead span {
    font-family: "Manrope", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #8a8a8a;
}

.tagImg {
    height: 330px;
    margin: 14px 18px 0;
    border-radius: 10px;
    overflow: hidden;
    background: #d0cdcd;
}

.tagImg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tagStacks {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 5px;
    margin: 16px 18px 0;
    overflow: hidden;
    white-space: nowrap;
}

.tagStacks b {
    margin-right: 3px;
    font-family: "Days One", sans-serif;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-decoration: underline;
    text-underline-offset: 3px;
    color: white;
}

.tagStacks i {
    flex-shrink: 0;
    padding: 3px 8px;
    border: 1px solid #3a3a3a;
    border-radius: 20px;
    font-family: "Manrope", sans-serif;
    font-size: 9px;
    font-style: normal;
    font-weight: 600;
    color: #aaa;
}

.tagBtn {
    position: absolute;
    left: 140px;
    bottom: 22px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: white;
    color: black;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.tagBtn:hover {
    background-color: #d0cdcd;
    transform: scale(1.07);
}

.morphTag.alt .tagHead {
    border-bottom-color: #a5a2a2;
}

.morphTag.alt .tagHead h4,
.morphTag.alt .tagStacks b {
    color: #161616;
}

.morphTag.alt .tagHead span {
    color: #4a4a4a;
}

.morphTag.alt .tagImg {
    background: #161616;
}

.morphTag.alt .tagStacks i {
    border-color: #a5a2a2;
    color: #383838;
}

.morphTag.alt .tagBtn {
    background-color: #161616;
    color: #d0cdcd;
}

.morphTag.alt .tagBtn:hover {
    background-color: #383838;
}


/* page-level helper for the contact panel */

html.contactLock {
    overflow: hidden;              /* page can't scroll while contact is open */
}


/* CONTACT GATE (after Projects)
   The circle reveal is done by index.js, the entrance by motion.css */

#contactGate {
    min-height: 100vh;
    position: relative;
    z-index: 2;                    /* paints above the shrinking projects content */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
}

/* faint dot grid that fades toward the edges */
#contactGate::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#2a2a2a 1px, transparent 1px);
    background-size: 28px 28px;
    -webkit-mask-image: radial-gradient(circle at 50% 48%, #000 0%, transparent 62%);
    mask-image: radial-gradient(circle at 50% 48%, #000 0%, transparent 62%);
}

.gateInner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 56px;
    padding: 0 4vw;
}

/* big outlined name behind everything */
.gateGhost {
    font-family: "Redaction", serif;
    font-size: clamp(70px, 11vw, 210px);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: -0.045em;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 1px #3a3a3a;
    user-select: none;
    transition: -webkit-text-stroke-color 0.5s ease;
}

.gateInner:has(.gateBtn:hover) .gateGhost {
    -webkit-text-stroke-color: #9a9797;
}

/* small line above the button */
.gateAction {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.gateAction::before {
    content: "Have an idea? Let’s build it together.";
    font-family: "Lato", sans-serif;
    font-size: 17px;
    letter-spacing: 0.06em;
    color: #8a8a8a;
}

/* button: outline pill, white fill sweeps in on hover */
.gateBtn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-width: 310px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    padding: 0 12px 0 34px;
    border: 1px solid #8a8a8a;
    border-radius: 40px;
    background: transparent;
    color: white;
    font-family: "Days One", sans-serif;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.4s ease, border-color 0.4s ease;
}

.gateBtn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: white;
    transform: translateX(-101%);
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.gateBtn:hover {
    color: black;
    border-color: white;
}

.gateBtn:hover::before {
    transform: none;
}

.gateBtnIcon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: white;
    color: black;
    font-size: 24px;
    line-height: 1;
    transition: background-color 0.4s ease, color 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.gateBtn:hover .gateBtnIcon {
    background: black;
    color: white;
    transform: rotate(-45deg);
}

/* social icons: 6 tiles, one row on desktop, wraps on small screens */
.gateSocials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.gateSocials a {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease, border-color 0.3s ease;
}

.gateSocials img {
    width: 22px;
    height: 22px;
    filter: invert(1);             /* black svg -> white */
    transition: filter 0.3s ease;
}

.gateSocials a:hover {
    transform: translateY(-8px);
    background: white;
    border-color: white;
}

.gateSocials a:hover img {
    filter: none;
}


/* CONTACT PANEL (full-screen; the zoom is in motion.css) */

.contact {
    position: fixed;
    inset: 0;
    z-index: 50;
    isolation: isolate;
    background: #000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.contact.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* same split as the landing page */
.contact::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #d0cdcd;
    clip-path: polygon(0 0, 50% 0, 41% 100%, 0 100%);
    z-index: -1;
}

.contentContact {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-top: 14px;
    overflow-y: auto;
    overscroll-behavior: contain;
    outline: none;
    scrollbar-width: thin;
    scrollbar-color: #444 transparent;
}

/* topline, top-right on the black side */
.contact .topline {
    margin: 0 4vw 0 auto;
}

.contactGrid {
    flex: 1 0 auto;
    display: grid;
    grid-template-columns: 50% 50%;
    align-items: center;
    padding: 2vh 0 6vh;
}

/* STAGGERED REVEAL when the panel opens */

.contactIntro > *,
.contactForm > * {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.contact.open .contactIntro > *,
.contact.open .contactForm > * {
    opacity: 1;
    transform: none;
    transition:
        opacity 0.7s ease calc(0.3s + var(--i) * 80ms),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) calc(0.3s + var(--i) * 80ms);
}

.contactIntro > :nth-child(1), .contactForm > :nth-child(1) { --i: 0; }
.contactIntro > :nth-child(2), .contactForm > :nth-child(2) { --i: 1; }
.contactIntro > :nth-child(3), .contactForm > :nth-child(3) { --i: 2; }
.contactIntro > :nth-child(4), .contactForm > :nth-child(4) { --i: 3; }


/* LEFT: heading + socials (big name + social tiles are shared above) */

.contactIntro {
    padding-left: 5vw;
    color: black;
}

.contactIntro h3 {
    display: flex;
    align-items: center;
    gap: 24px;
    font-family: "Bebas Neue";
    font-size: 30px;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: #292929;
    margin-bottom: 30px;
}

.contactIntro h3::before {
    content: "";
    width: 70px;
    height: 1.5px;
    background-color: #292929;
}

.contactIntro p {
    max-width: 440px;
    margin-top: 30px;
    font-family: "Lato", sans-serif;
    font-size: 17px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #383838;
}

/* icons spread from the left edge to the right edge of the text above */
.contactSocials {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 440px;
    margin-top: 40px;
}


/* RIGHT: form on the black side */

.contactForm {
    margin: 0 4vw 0 2.5vw;
    display: flex;
    flex-direction: column;
    gap: 26px;
    font-family: "Lato", sans-serif;
    color: white;
}

.formRow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.field label {
    font-family: "Days One", sans-serif;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f4f4f4;
}

.field input,
.field textarea {
    width: 100%;
    padding: 19px 22px;
    font-family: "Lato", sans-serif;
    font-size: 16px;
    color: #e8e8e8;
    background: #111;
    border: 1px solid #2c2c2c;
    border-radius: 14px;
    outline: none;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.field textarea {
    min-height: 150px;
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #8a8a8a;
}

.field input:focus,
.field textarea:focus {
    border-color: #8a8a8a;
    background: #161616;
}

.contactSubmit {
    width: 190px;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    padding: 0 26px;
    border: none;
    border-radius: 30px;
    background-color: white;
    color: black;
    font-family: "Days One", sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.contactSubmit:hover {
    background-color: #d0cdcd;
    transform: scale(1.07);
}

.contactSubmit span {
    font-size: 23px;
    line-height: 1;
}