/* Variables */

:root {
    --blonde: #F6E9D9;
    --black: #010101;
    --light-black: #231F20;
    --bright-red: #FF000C;
}

/* Base */

* { cursor: none; }

::selection {
    background-color: transparent;
    color: inherit;
}

h1::selection, h2::selection, h3::selection, h4::selection,
h5::selection, h6::selection,
p:not(.small-text, .pill)::selection, p.caption::selection {
    background-color: var(--bright-red);
    color: var(--blonde);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Neue Montreal', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    background-color: var(--black);
    color: var(--blonde);
}

header {
    display: flex;
    flex-direction: column;
    gap: max(20px, 1.389vw);
    padding: max(120px, 8.333vw) max(40px, 2.778vw) max(80px, 5.556vw) max(40px, 2.778vw);
}

section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: max(80px, 5.556vw);
    padding: max(160px, 11.111vw) max(40px, 2.778vw);
}

footer {
    display: flex;
    flex-direction: column;
    gap: max(40px, 2.778vw);
    padding: max(40px, 2.778vw);
}

/* Type Scale */

h1, h2, h3, h4 {
    font-family: 'Nikkei', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
}

h5, h6 {
    font-family: 'Neue Montreal', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
}

h1 { font-size: max(120px, 8.333vw); line-height: 0.8; }
h2 { font-size: max(80px, 5.556vw);  line-height: 0.9; }
h3 { font-size: max(60px, 4.167vw);  line-height: 0.9; }
h4 { font-size: max(40px, 2.778vw);  line-height: 1; }
h5 { font-size: max(32px, 2.222vw);  line-height: 1.25; }
h6 { font-size: max(24px, 1.667vw);  line-height: 1.33; }

.large-link-text {
    font-family: 'Nikkei', sans-serif;
    font-weight: 800;
    font-size: max(60px, 4.167vw);
    line-height: 0.9;
    text-transform: uppercase;
}

p, a {
    font-family: 'Neue Montreal', sans-serif;
    font-weight: 400;
    font-size: max(32px, 2.222vw);
    line-height: 1.25;
}

a {
    text-transform: uppercase;
    text-decoration: none;
    color: var(--blonde);
}

blockquote {
    font-family: 'Nikkei', sans-serif;
    font-weight: 800;
    font-size: max(100px, 6.944vw);
    line-height: 0.9;
    text-align: center;
    text-transform: uppercase;
    font-style: italic;
}

.small-text { text-transform: uppercase; }

/* Header */

nav {
    position: fixed;
    top: 0;
    left: 0;
    padding: max(20px, 1.389vw) max(40px, 2.778vw);
    width: 100%;
    z-index: 1020;
    mix-blend-mode: difference; /* blends nav text against page content */
    transition: transform 0.6s ease-in-out; /* slide hide/show */
}

nav ul {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: max(20px, 1.389vw);
}

nav ul a, .contact ul a {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 0;
    position: relative;
    height: min-content;
    overflow: hidden; /* clips .animated-decoration scaleX */
}

.logo-lockup {
    display: flex;
    flex-direction: column;
    gap: max(20px, 1.389vw);
}

.logo {
    padding: max(40px, 2.778vw);
    width: 100%;
}

.tagline-container {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    gap: max(20px, 1.389vw);
}

.tagline {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Hero */

.hero-container {
    padding: 0;
    height: 90vw;
}

.hero {
    width: 100%;
    height: 100%;
    background-image: url('../img/hero.jpg');
    background-size: cover;
    background-position: top center;
}

/* About */

.about { gap: max(160px, 11.111vw); }

.intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: max(80px, 5.556vw);
}

.split-headline {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-container {
    border-radius: max(20px, 1.389vw);
    overflow: hidden; /* clips image zoom scale */
}

.headshot { max-width: max(440px, 30.556vw); }

.services {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: max(10px, 0.694vw);
    max-width: max(1130px, 78.472vw);
}

.pill {
    padding: max(19px, 1.319vw) max(39px, 2.708vw);
    font-size: max(48px, 3.333vw);
    line-height: max(40px, 2.778vw);
    text-transform: uppercase;
    border-radius: 100px;
    border: 1px solid var(--blonde);
}

/* Gallery */

.gallery {
    display: grid;
    grid-auto-columns: 1fr;
    grid-auto-flow: column;
    justify-content: center;
    gap: max(20px, 1.389vw);
    max-width: max(1360px, 94.444vw);
}

.card {
    display: flex;
    flex-direction: column;
    gap: max(10px, 0.694vw);
}

.card:last-child { margin-left: max(24px, 1.667vw); }

.caption {
    font-size: max(20px, 1.389vw);
    line-height: 1.2;
}

/* Bio */

.bio {
    display: flex;
    flex-direction: column;
    align-items: left;
    gap: max(40px, 2.778vw);
    max-width: max(670px, 46.528vw);
    text-wrap: balance;
    text-wrap: pretty;
}

.bio > .split-headline {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.button {
    font-size: max(24px, 1.667vw);
    line-height: max(32px, 2.222vw);
    text-transform: uppercase;
    background: none;
    color: var(--blonde);
    padding: max(9px, 0.625vw) max(19px, 1.319vw);
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: fit-content;
    border: 1px solid var(--blonde);
    border-radius: 100px;
    position: relative;
    height: min-content;
    overflow: hidden; /* clips .animated-bg scaleY */
}

.button:hover { color: var(--black); }

/* Blockquote */

.blockquote {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: max(40px, 2.778vw);
    width: 100%;
    height: 90vw;
    background-image: url('../img/blockquote.jpg');
    background-size: cover;
    background-position: center;
}

.blockquote blockquote { max-width: max(1130px, 78.472vw); }

/* Contact */

.list-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: max(20px, 1.389vw);
}

.large-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: max(5px, 0.347vw);
}

/* Footer */

.copyright-container {
    display: flex;
    flex-direction: row;
    gap: max(20px, 1.389vw);
}

.flex-start {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    flex: 1 0 0px;
}

.center {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex: 1 0 0px;
}

.flex-end {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    flex: 1 0 0px;
}

#time { font-variant-numeric: tabular-nums; }


/* ─── Animations ──────────────────────────────────────────── */

/* Custom cursor — two-element: wrapper translates, dot scales.
   mix-blend-mode on wrapper so it blends against page, not within itself. */

.cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    mix-blend-mode: difference;
    z-index: 9999;
}

.cursor-dot {
    width: max(28px, 1.944vw);
    height: max(28px, 1.944vw);
    background: var(--blonde);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
}

.cursor.hover .cursor-dot  { transform: translate(-50%, -50%) scale(2); }
.cursor.hidden .cursor-dot { opacity: 0; }

/* Page load — elements clip-slide up through overflow:hidden containers.
   skip-intro suppresses animation on reload when page is already scrolled. */

nav ul, .logo-container, .tagline-container, .hero-container, .headline-container {
    clip-path: inset(0px 0px 0px 0px);
    overflow: hidden;
    contain: paint;
}

.hero-container, .hero {
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}

.hero {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.skip-intro header .logo,
.skip-intro .tagline,
.skip-intro .hero {
    animation: none;
    transform: translate3d(0, 0, 0);
    opacity: 1;
}

nav ul li, header .logo, .tagline, .hero {
    animation: slideUpBehind 1.2s cubic-bezier(0.25, 1, 0.5, 1) both;
}

nav > a, .tagline, .hero { animation-delay: 0.2s; }

@keyframes slideUpBehind {
    from { transform: translate3d(0, 100%, 0); opacity: 0; }
    to   { transform: translate3d(0, 0, 0);    opacity: 1; }
}

/* Scroll: headlines — base state is hidden (translateY 100%).
   Separate transition durations: slower reveal, faster hide. */

h1, h2, footer .logo {
    opacity: 0;
    transform: translate3d(0, 100%, 0);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

h1.revealed, h2.revealed, footer .logo.revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Stagger second line of split headlines */
.split-headline .headline-container:last-child h1,
.split-headline .headline-container:last-child h2 {
    transition-delay: 0.2s;
}

/* Scroll: images — start zoomed, scale to natural size on center-of-viewport trigger.
   Slower zoom-out (with delay), faster zoom-in. */

.headshot img, .gallery img {
    scale: 1.25;
    object-fit: cover;
    object-position: center center;
    transition: scale 1.5s cubic-bezier(0.25, 1, 0.5, 1) 0.5s;
}

.headshot img.zoomed, .gallery img.zoomed {
    scale: 1;
    transition: scale 1s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Link decorations — scaleX underline on hover, scaleY fill for .button */

.animated-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: max(3px, 0.208vw);
    flex: none;
    background-color: var(--blonde);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

a:hover .animated-decoration,
a:focus-visible .animated-decoration { transform: scaleX(1); }

.animated-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: max(50px, 3.472vw);
    flex: none;
    background-color: var(--blonde);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -1;
}

a:hover .animated-bg { transform: scaleY(1); }

/* Nav hide — slides up off-screen on scroll down, returns on scroll up */

.hide-nav { transform: translateY(-100%); }
