Files
portfolio/css/style.css
T
arsam c669ce3468 Import source: css/style
Import the existing local project snapshot. This commit organizes existing files; it does not represent newly developed functionality.
2026-09-18 23:15:35 +03:30

692 lines
22 KiB
CSS

/* ============================================================
OTIS VANDERMEER — "Ink & Ember"
Editorial noir. Fraunces + Archivo. One ember accent.
============================================================ */
:root {
--ink: #0c0b09;
--ink-soft: #14120e;
--bone: #ede6da;
--bone-dim: #9b948a;
--ember: #ff4d24;
--hairline: rgba(237, 230, 218, 0.14);
--font-display: "Fraunces", "Georgia", serif;
--font-body: "Archivo", "Helvetica Neue", sans-serif;
--space: clamp(1.25rem, 4vw, 4rem);
--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
--ease-expo: cubic-bezier(0.87, 0, 0.13, 1);
}
/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
background: var(--ink);
color: var(--bone);
font-family: var(--font-body);
font-variation-settings: "wdth" 100;
font-size: 1rem;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
overflow-x: clip;
}
::selection { background: var(--ember); color: var(--ink); }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
em { font-family: var(--font-display); font-style: italic; font-variation-settings: "SOFT" 70, "WONK" 1; }
/* ---------- Utility: tiny labels ---------- */
.section-head__label,
.hero__kicker,
.contact__kicker,
.contact__label,
.site-head__meta,
.site-head__nav a,
.work__tags, .work__year, .work__index,
.hero__foot-item,
.stat dt,
.service__no,
.portrait__caption,
.contact__base {
font-family: var(--font-body);
font-variation-settings: "wdth" 118;
font-size: 0.72rem;
font-weight: 500;
letter-spacing: 0.14em;
text-transform: uppercase;
}
/* ============================================================
PRELOADER
============================================================ */
.preloader {
position: fixed; inset: 0; z-index: 200;
background: var(--ink);
display: flex; align-items: center; justify-content: center;
}
.preloader__inner {
display: flex; align-items: baseline; gap: 1.25rem;
}
.preloader__word {
font-family: var(--font-display);
font-style: italic;
font-variation-settings: "SOFT" 80, "WONK" 1;
font-size: clamp(1.6rem, 4vw, 2.8rem);
font-weight: 400;
color: var(--bone);
}
.preloader__count {
font-family: var(--font-body);
font-variation-settings: "wdth" 120;
font-size: 0.8rem;
letter-spacing: 0.15em;
color: var(--ember);
}
.preloader__bar {
position: absolute; left: 0; bottom: 0;
width: 100%; height: 2px;
background: var(--hairline);
}
.preloader__bar span {
display: block; width: 0%; height: 100%;
background: var(--ember);
}
/* ============================================================
CURSOR
============================================================ */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
.cursor { display: block; position: fixed; inset: 0; z-index: 190; pointer-events: none; }
.cursor__dot {
position: absolute; top: 0; left: 0;
width: 6px; height: 6px; border-radius: 50%;
background: var(--ember);
transform: translate(-50%, -50%);
}
.cursor__ring {
position: absolute; top: 0; left: 0;
width: 36px; height: 36px; border-radius: 50%;
border: 1px solid rgba(237, 230, 218, 0.35);
transform: translate(-50%, -50%);
display: flex; align-items: center; justify-content: center;
transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
background-color 0.35s, border-color 0.35s;
}
.cursor__label {
font-family: var(--font-body);
font-size: 0.6rem; font-weight: 600;
letter-spacing: 0.12em; text-transform: uppercase;
color: var(--ink); opacity: 0;
transition: opacity 0.25s;
}
.cursor.is-hover .cursor__ring {
width: 72px; height: 72px;
background: var(--ember); border-color: var(--ember);
}
.cursor.is-hover .cursor__label { opacity: 1; }
.cursor.is-hover .cursor__dot { opacity: 0; }
body.has-cursor, body.has-cursor a { cursor: none; }
}
/* ============================================================
GRAIN
============================================================ */
.grain {
position: fixed; inset: -50%; z-index: 150;
pointer-events: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
opacity: 0.07;
animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
0% { transform: translate(0, 0); }
25% { transform: translate(-2%, 3%); }
50% { transform: translate(3%, -2%); }
75% { transform: translate(-3%, -3%); }
100% { transform: translate(2%, 2%); }
}
/* ============================================================
HEADER
============================================================ */
.site-head {
position: fixed; top: 0; left: 0; right: 0; z-index: 100;
display: flex; align-items: center; justify-content: space-between;
padding: 1.1rem var(--space);
mix-blend-mode: difference;
}
.site-head__logo {
font-family: var(--font-display);
font-weight: 700; font-size: 1.3rem;
letter-spacing: 0.02em;
display: inline-block;
}
.site-head__logo sup { font-size: 0.55em; color: var(--ember); }
.site-head__meta { color: var(--bone-dim); }
.site-head__nav { display: flex; gap: 2rem; }
.site-head__nav a {
position: relative; display: inline-block; padding: 0.25rem 0;
}
.site-head__nav a::after {
content: ""; position: absolute; left: 0; bottom: 0;
width: 100%; height: 1px; background: currentColor;
transform: scaleX(0); transform-origin: right;
transition: transform 0.4s var(--ease-out);
}
.site-head__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
/* ============================================================
HERO
============================================================ */
.hero {
position: relative;
min-height: 100svh;
display: flex; align-items: flex-end;
overflow: clip;
}
.hero__canvas {
position: absolute; inset: 0;
width: 100%; height: 100%;
display: block;
}
.hero__veil {
position: absolute; inset: 0;
background:
radial-gradient(120% 90% at 50% 110%, rgba(12, 11, 9, 0.92) 30%, rgba(12, 11, 9, 0.2) 70%, transparent 100%),
linear-gradient(rgba(12, 11, 9, 0.5), transparent 40%);
pointer-events: none;
}
.hero__content {
position: relative; z-index: 2;
width: 100%;
padding: 0 var(--space) clamp(1.5rem, 4vh, 3rem);
}
.hero__kicker {
display: flex; align-items: center; gap: 0.6rem;
color: var(--bone-dim);
margin-bottom: clamp(1rem, 3vh, 2.5rem);
}
.hero__kicker .dot {
width: 8px; height: 8px; border-radius: 50%;
background: var(--ember);
}
.hero__title {
font-family: var(--font-display);
font-weight: 560;
font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
font-size: clamp(3.4rem, 13.5vw, 12.5rem);
line-height: 0.88;
letter-spacing: -0.015em;
text-transform: uppercase;
}
.hero__line { display: block; overflow: hidden; }
.hero__line--offset { display: flex; align-items: baseline; gap: clamp(1rem, 4vw, 4rem); }
.hero__word { display: inline-block; will-change: transform; }
.hero__word--outline {
color: transparent;
-webkit-text-stroke: 1.5px var(--bone);
}
.hero__interject {
font-size: clamp(0.85rem, 1.6vw, 1.35rem);
font-weight: 400;
line-height: 1.25;
letter-spacing: 0;
text-transform: none;
color: var(--ember);
font-variation-settings: "opsz" 30, "SOFT" 80, "WONK" 1;
flex-shrink: 0;
transform: translateY(-0.5em);
}
.hero__foot {
display: flex; align-items: flex-end; justify-content: space-between;
gap: 1.5rem;
margin-top: clamp(2rem, 6vh, 4.5rem);
padding-top: 1.25rem;
border-top: 1px solid var(--hairline);
color: var(--bone-dim);
}
.hero__foot-item { line-height: 1.7; }
.hero__foot-item--scroll { display: flex; align-items: center; gap: 0.7rem; }
.hero__scroll-ind {
width: 1px; height: 2.2rem;
background: linear-gradient(var(--ember), transparent);
animation: scroll-drip 1.8s var(--ease-out) infinite;
}
@keyframes scroll-drip {
0% { transform: scaleY(0); transform-origin: top; }
45% { transform: scaleY(1); transform-origin: top; }
55% { transform: scaleY(1); transform-origin: bottom; }
100% { transform: scaleY(0); transform-origin: bottom; }
}
.hero__foot-item--avail { display: flex; align-items: center; gap: 0.6rem; }
.pulse {
width: 8px; height: 8px; border-radius: 50%;
background: #6ee7a0;
animation: pulse-glow 2s infinite;
}
@keyframes pulse-glow {
0%, 100% { box-shadow: 0 0 0 0 rgba(110, 231, 160, 0.5); }
50% { box-shadow: 0 0 0 7px rgba(110, 231, 160, 0); }
}
/* ============================================================
MARQUEE
============================================================ */
.marquee {
border-top: 1px solid var(--hairline);
border-bottom: 1px solid var(--hairline);
padding: 1.1rem 0;
overflow: hidden;
background: var(--ink-soft);
}
.marquee__track {
display: flex; align-items: center; gap: 3rem;
width: max-content;
will-change: transform;
}
.marquee__track span {
font-family: var(--font-display);
font-size: clamp(1.2rem, 2.6vw, 2rem);
font-weight: 460;
text-transform: uppercase;
letter-spacing: 0.02em;
white-space: nowrap;
}
.marquee__track i { color: var(--ember); font-style: normal; font-size: 1rem; }
/* ============================================================
SECTION HEADS
============================================================ */
.section-head { padding: clamp(4rem, 12vh, 9rem) var(--space) clamp(2rem, 5vh, 4rem); }
.section-head__label { color: var(--ember); margin-bottom: 1.6rem; }
.section-head__title {
font-family: var(--font-display);
font-weight: 480;
font-variation-settings: "opsz" 144;
font-size: clamp(2.4rem, 6.5vw, 5.5rem);
line-height: 1.02;
letter-spacing: -0.01em;
max-width: 18ch;
}
.section-head__title em { color: var(--bone); }
/* ============================================================
WORK LIST
============================================================ */
.work__list { border-top: 1px solid var(--hairline); }
.work__item { position: relative; border-bottom: 1px solid var(--hairline); }
.work__row {
display: grid;
grid-template-columns: 4rem 1fr auto 6rem;
align-items: baseline;
gap: 1.5rem;
padding: clamp(1.6rem, 4vh, 2.8rem) var(--space);
position: relative;
transition: padding-left 0.5s var(--ease-out);
}
.work__index, .work__tags, .work__year { color: var(--bone-dim); }
.work__year { text-align: right; }
.work__name {
font-family: var(--font-display);
font-weight: 500;
font-variation-settings: "opsz" 100;
font-size: clamp(1.9rem, 5vw, 4.2rem);
line-height: 1;
letter-spacing: -0.01em;
transition: color 0.4s, font-variation-settings 0.5s;
}
@media (hover: hover) {
.work__row::before {
content: "";
position: absolute; inset: 0;
background: var(--ember);
transform: scaleY(0); transform-origin: bottom;
transition: transform 0.45s var(--ease-expo);
z-index: -1;
}
.work__item:hover .work__row::before { transform: scaleY(1); transform-origin: top; }
.work__item:hover .work__row { padding-left: calc(var(--space) + 1.2rem); }
.work__item:hover .work__name {
color: var(--ink);
font-variation-settings: "opsz" 100, "SOFT" 60, "WONK" 1;
font-style: italic;
}
.work__item:hover .work__index,
.work__item:hover .work__tags,
.work__item:hover .work__year { color: rgba(12, 11, 9, 0.7); }
}
/* Floating hover thumbnail (desktop) */
.work__thumb {
position: fixed; top: 0; left: 0; z-index: 80;
width: clamp(260px, 26vw, 400px);
aspect-ratio: 4 / 3;
pointer-events: none;
opacity: 0;
transform: translate(-50%, -50%) scale(0.85) rotate(-4deg);
will-change: transform, opacity;
}
@media (hover: none), (max-width: 760px) {
.work__thumb {
position: static;
width: 100%; opacity: 1;
transform: none;
aspect-ratio: 16 / 9;
padding: 0 var(--space) 1.6rem;
}
}
/* ---------- Generative thumbnails ---------- */
.thumb {
position: relative; width: 100%; height: 100%;
border-radius: 6px; overflow: hidden;
display: flex; align-items: flex-end;
box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
}
.thumb__ui {
position: relative; z-index: 3;
margin: 1.1rem 1.25rem;
font-family: var(--font-body);
font-variation-settings: "wdth" 110;
font-size: 1.5rem; font-weight: 600;
letter-spacing: -0.01em;
}
.thumb__ui small {
display: block;
font-size: 0.62rem; font-weight: 500;
letter-spacing: 0.13em; text-transform: uppercase;
opacity: 0.65; margin-top: 0.2rem;
}
.thumb--lumen { background: radial-gradient(130% 130% at 80% 0%, #2b2440 0%, #120f1d 55%, #0a0812 100%); color: #e8e1f5; }
.thumb__orb {
position: absolute; top: 18%; left: 50%;
width: 42%; aspect-ratio: 1; border-radius: 50%;
transform: translateX(-50%);
background: radial-gradient(circle at 35% 30%, #ffd9a8, #ff7a3c 45%, #5b2a8c 80%);
filter: blur(2px);
box-shadow: 0 0 80px 20px rgba(255, 122, 60, 0.35);
}
.thumb__rings {
position: absolute; inset: 0;
background: repeating-radial-gradient(circle at 50% 32%, transparent 0 26px, rgba(232, 225, 245, 0.07) 26px 27px);
}
.thumb--aero { background: linear-gradient(#0d141c 40%, #1d2f40 70%, #c9a36a 100%); color: #ecf2f8; }
.thumb__horizon {
position: absolute; left: 0; right: 0; bottom: 28%;
height: 1px; background: rgba(236, 242, 248, 0.5);
box-shadow: 0 0 30px 6px rgba(201, 163, 106, 0.45);
}
.thumb__contrail {
position: absolute; top: 20%; left: -10%;
width: 90%; height: 2px;
background: linear-gradient(90deg, transparent, rgba(236, 242, 248, 0.8));
transform: rotate(8deg);
}
.thumb__contrail::after {
content: ""; position: absolute; right: -6px; top: -4px;
border-left: 12px solid #ecf2f8;
border-top: 5px solid transparent;
border-bottom: 5px solid transparent;
}
.thumb--polder { background: linear-gradient(160deg, #101b12 0%, #16241a 60%, #0b130d 100%); color: #e4f0e1; }
.thumb__bars {
position: absolute; left: 12%; right: 12%; bottom: 30%;
height: 42%;
display: flex; align-items: flex-end; gap: 9%;
}
.thumb__bars i {
flex: 1; border-radius: 3px 3px 0 0;
background: linear-gradient(#9fdca6, #3f7a4c);
}
.thumb__bars i:nth-child(1) { height: 36%; }
.thumb__bars i:nth-child(2) { height: 58%; }
.thumb__bars i:nth-child(3) { height: 44%; }
.thumb__bars i:nth-child(4) { height: 82%; }
.thumb__bars i:nth-child(5) { height: 100%; background: linear-gradient(#ffd9a8, var(--ember)); }
.thumb--nocturne { background: radial-gradient(110% 140% at 20% 100%, #2a1020 0%, #160a18 50%, #0a0610 100%); color: #f2e6ee; }
.thumb__wave {
position: absolute; left: 14%; right: 14%; top: 38%;
height: 26%;
display: flex; align-items: center; gap: 7%;
}
.thumb__wave i {
flex: 1; border-radius: 99px;
background: linear-gradient(#ff7ab8, #7a2c5c);
animation: wave-bob 1.4s ease-in-out infinite;
}
.thumb__wave i:nth-child(odd) { height: 100%; }
.thumb__wave i:nth-child(even) { height: 45%; animation-delay: 0.35s; }
.thumb__wave i:nth-child(3n) { height: 70%; animation-delay: 0.7s; }
@keyframes wave-bob {
0%, 100% { transform: scaleY(1); }
50% { transform: scaleY(0.55); }
}
/* ============================================================
ABOUT
============================================================ */
.about__grid {
display: grid;
grid-template-columns: minmax(260px, 5fr) 7fr;
gap: clamp(2rem, 6vw, 6rem);
padding: 0 var(--space) clamp(3rem, 8vh, 6rem);
align-items: start;
}
.about__portrait { position: sticky; top: 14vh; }
.portrait {
position: relative;
aspect-ratio: 3 / 4;
border-radius: 6px;
overflow: hidden;
background:
radial-gradient(90% 70% at 60% 30%, #3a2418 0%, #1c130c 60%, #0e0a07 100%);
border: 1px solid var(--hairline);
}
.portrait__blob {
position: absolute; top: 12%; left: 50%;
width: 62%; aspect-ratio: 0.82;
transform: translateX(-50%);
border-radius: 48% 52% 55% 45% / 60% 58% 42% 40%;
background:
radial-gradient(circle at 38% 28%, #ffb27a 0%, #c4572b 38%, #531f0e 78%, #200c05 100%);
filter: saturate(0.9);
animation: blob-breathe 7s ease-in-out infinite;
}
@keyframes blob-breathe {
0%, 100% { border-radius: 48% 52% 55% 45% / 60% 58% 42% 40%; }
50% { border-radius: 55% 45% 47% 53% / 52% 48% 55% 45%; }
}
.portrait__scan {
position: absolute; inset: 0;
background: repeating-linear-gradient(transparent 0 5px, rgba(12, 11, 9, 0.35) 5px 6px);
mix-blend-mode: multiply;
}
.portrait__caption {
position: absolute; left: 1.1rem; bottom: 1rem; right: 1.1rem;
color: var(--bone-dim);
}
.about__lede {
font-family: var(--font-display);
font-weight: 420;
font-variation-settings: "opsz" 60;
font-size: clamp(1.5rem, 3.2vw, 2.6rem);
line-height: 1.25;
letter-spacing: -0.005em;
margin-bottom: 2rem;
}
.about__lede em { color: var(--ember); }
.about__copy {
max-width: 56ch;
color: var(--bone-dim);
font-size: clamp(0.98rem, 1.4vw, 1.12rem);
line-height: 1.7;
margin-bottom: clamp(2.5rem, 6vh, 4rem);
}
.about__stats {
display: grid;
grid-template-columns: repeat(3, 1fr);
border-top: 1px solid var(--hairline);
}
.stat { padding: 1.4rem 0; border-bottom: 1px solid var(--hairline); }
.stat dt { color: var(--bone-dim); margin-bottom: 0.5rem; }
.stat dd {
font-family: var(--font-display);
font-size: clamp(2.2rem, 5vw, 4rem);
font-weight: 500; line-height: 1;
}
/* ============================================================
SERVICES
============================================================ */
.services__list {
border-top: 1px solid var(--hairline);
margin-bottom: clamp(3rem, 10vh, 7rem);
}
.service {
display: grid;
grid-template-columns: 5rem minmax(180px, 1fr) 1.4fr;
gap: 1.5rem 2rem;
align-items: baseline;
padding: clamp(1.6rem, 4vh, 2.6rem) var(--space);
border-bottom: 1px solid var(--hairline);
}
.service__no { color: var(--ember); }
.service__name {
font-family: var(--font-display);
font-weight: 500;
font-size: clamp(1.5rem, 3vw, 2.4rem);
line-height: 1.05;
}
.service__desc {
color: var(--bone-dim);
font-size: clamp(0.95rem, 1.3vw, 1.05rem);
line-height: 1.65;
max-width: 52ch;
}
/* ============================================================
CONTACT / FOOTER
============================================================ */
.contact {
border-top: 1px solid var(--hairline);
padding: clamp(4rem, 12vh, 9rem) var(--space) 1.4rem;
background:
radial-gradient(90% 70% at 50% 115%, rgba(255, 77, 36, 0.16) 0%, transparent 60%),
var(--ink);
}
.contact__kicker { color: var(--ember); margin-bottom: clamp(1.5rem, 4vh, 3rem); }
.contact__cta { display: block; width: max-content; max-width: 100%; }
.contact__cta-line {
display: block; overflow: hidden;
font-family: var(--font-display);
font-weight: 580;
font-variation-settings: "opsz" 144;
font-size: clamp(4.2rem, 17vw, 15rem);
line-height: 0.86;
letter-spacing: -0.02em;
transition: color 0.45s, letter-spacing 0.6s var(--ease-out);
}
.contact__cta-line--accent em {
color: transparent;
-webkit-text-stroke: 1.5px var(--bone);
transition: color 0.45s, -webkit-text-stroke-color 0.45s;
}
.contact__cta:hover .contact__cta-line { letter-spacing: 0.01em; }
.contact__cta:hover .contact__cta-line--accent em {
color: var(--ember);
-webkit-text-stroke-color: var(--ember);
}
.contact__meta {
display: grid;
grid-template-columns: repeat(3, minmax(150px, max-content));
gap: 2rem clamp(2rem, 8vw, 8rem);
margin: clamp(3rem, 9vh, 6rem) 0 clamp(3rem, 8vh, 5rem);
}
.contact__label { color: var(--bone-dim); margin-bottom: 0.8rem; }
.contact__col a { display: block; padding: 0.15rem 0; width: max-content; position: relative; }
.contact__col a::after {
content: ""; position: absolute; left: 0; bottom: 0;
width: 100%; height: 1px; background: var(--ember);
transform: scaleX(0); transform-origin: right;
transition: transform 0.4s var(--ease-out);
}
.contact__col a:hover::after { transform: scaleX(1); transform-origin: left; }
.contact__col p:not(.contact__label) { color: var(--bone-dim); line-height: 1.7; }
.contact__base {
display: flex; justify-content: space-between; gap: 1rem;
padding-top: 1.2rem;
border-top: 1px solid var(--hairline);
color: var(--bone-dim);
}
/* ============================================================
REVEAL PRIMITIVES (JS hooks)
============================================================ */
.split-line { display: block; overflow: hidden; }
.split-line > span { display: inline-block; will-change: transform; }
[data-hero-fade] { opacity: 0; }
.js [data-reveal-words], .js [data-reveal-lines] { visibility: hidden; }
.js .is-split { visibility: visible; }
/* ============================================================
RESPONSIVE
============================================================ */
@media (max-width: 900px) {
.about__grid { grid-template-columns: 1fr; }
.about__portrait { position: static; max-width: 420px; }
.service { grid-template-columns: 3rem 1fr; }
.service__desc { grid-column: 2; }
}
@media (max-width: 760px) {
.site-head__meta { display: none; }
.site-head__nav { gap: 1.2rem; }
.hero__line--offset { flex-direction: column-reverse; align-items: flex-start; gap: 1.2rem; }
.hero__interject { transform: none; margin-top: 0.4rem; }
.hero__title { font-size: clamp(3.2rem, 16.5vw, 6rem); }
.hero__foot { flex-wrap: wrap; }
.hero__foot-item--scroll { display: none; }
.work__row { grid-template-columns: 2.4rem 1fr; row-gap: 0.5rem; padding-bottom: 1rem; }
.work__tags { grid-column: 2; }
.work__year { display: none; }
.about__stats { grid-template-columns: 1fr; }
.stat { display: flex; align-items: baseline; justify-content: space-between; }
.contact__meta { grid-template-columns: 1fr; }
.contact__base { flex-wrap: wrap; }
}
/* ============================================================
REDUCED MOTION
============================================================ */
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.001s !important;
animation-iteration-count: 1 !important;
transition-duration: 0.001s !important;
}
.grain { animation: none; }
}