Files
portifolio-evandrodevbr/app/globals.css
T

1536 lines
28 KiB
CSS

@import "tailwindcss";
@config "../tailwind.config.js";
@theme {
/* Literal values only: var() indirection here stops Tailwind v4 from generating *-sp-* utilities. */
--spacing-sp-1: 4px;
--spacing-sp-2: 8px;
--spacing-sp-3: 12px;
--spacing-sp-4: 16px;
--spacing-sp-5: 20px;
--spacing-sp-6: 24px;
--spacing-sp-8: 32px;
--spacing-sp-10: 40px;
--spacing-sp-12: 48px;
--spacing-sp-16: 64px;
--spacing-sp-20: 80px;
--spacing-sp-24: 96px;
}
:root {
--ink: #0a0a0a;
--ink-80: rgba(10, 10, 10, 0.8);
--ink-40: rgba(10, 10, 10, 0.4);
--ink-12: rgba(10, 10, 10, 0.12);
--ink-06: rgba(10, 10, 10, 0.06);
--paper: #f4f2ed;
--paper-dark: #eceae4;
--white: #ffffff;
--slash: #ccff00;
--slash-dim: rgba(204, 255, 0, 0.16);
--meta: #4a4a4a;
--border: rgba(10, 10, 10, 0.1);
--border-light: rgba(10, 10, 10, 0.06);
--sp-1: 4px;
--sp-2: 8px;
--sp-3: 12px;
--sp-4: 16px;
--sp-5: 20px;
--sp-6: 24px;
--sp-8: 32px;
--sp-10: 40px;
--sp-12: 48px;
--sp-16: 64px;
--sp-20: 80px;
--sp-24: 96px;
--r-sm: 4px;
--r-md: 8px;
--r-lg: 16px;
--r-full: 999px;
--font-display: var(--font-space-grotesk), sans-serif;
--font-hero: var(--font-monument-extended), sans-serif;
--font-mono: var(--font-geist-mono), monospace;
--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
--ease-in: cubic-bezier(0.4, 0, 1, 1);
}
/* Layered so Tailwind utilities (later layer) can override the zero-reset. */
@layer base {
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
a {
color: inherit;
}
}
html,
body {
width: 100%;
max-width: 100%;
overflow-x: hidden;
overscroll-behavior-x: none;
}
html {
scroll-behavior: smooth;
scroll-padding-top: 68px;
}
html [id] {
scroll-margin-top: 68px;
}
.site-header-nav,
.site-header-cv,
.site-header-version {
display: none;
}
.site-header-menu-toggle,
.site-header-mobile-panel {
display: flex;
}
.site-header-menu-toggle {
width: 44px;
height: 44px;
flex: 0 0 44px;
}
@media (min-width: 1025px) {
.site-header-nav {
display: flex;
}
.site-header-cv,
.site-header-version {
display: inline-flex;
}
.site-header-menu-toggle,
.site-header-mobile-panel {
display: none;
}
}
.skip-link {
position: fixed;
top: 8px;
left: 16px;
z-index: 10000;
transform: translateY(-160%);
border: 1px solid var(--slash);
background: var(--ink);
color: var(--white);
padding: 10px 14px;
font-size: 11px;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
text-decoration: none;
transition: transform 0.2s var(--ease-out);
}
.skip-link:focus {
transform: translateY(0);
outline: 2px solid var(--slash);
outline-offset: 3px;
}
:where(a, button, input, select, textarea):focus-visible {
outline: 2px solid var(--slash);
outline-offset: 3px;
}
.film-grain {
position: fixed;
inset: 0;
z-index: 9990;
pointer-events: none;
background:
repeating-radial-gradient(
circle at 20% 30%,
var(--paper) 0 0.6px,
transparent 0.8px 3px
),
repeating-radial-gradient(
circle at 70% 60%,
var(--ink) 0 0.5px,
transparent 0.7px 4px
);
mix-blend-mode: overlay;
opacity: 0.08;
}
@media (prefers-reduced-motion: reduce), (pointer: coarse) {
.film-grain {
display: none;
}
}
body {
position: relative;
background: var(--paper);
color: var(--ink);
font-family: var(--font-mono);
font-size: 14px;
line-height: 1.68;
}
img,
video,
canvas,
svg {
max-width: 100%;
}
@supports (overflow: clip) {
html,
body {
overflow-x: clip;
}
}
button,
input,
select,
textarea {
font: inherit;
}
::selection {
background: var(--slash);
color: var(--ink);
}
.bg-grid {
background-image:
linear-gradient(rgba(10, 10, 10, 0.03) 1px, transparent 1px),
linear-gradient(90deg, rgba(10, 10, 10, 0.03) 1px, transparent 1px);
background-size: 48px 48px;
}
.bg-grid-light {
background-image:
linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
background-size: 48px 48px;
}
.ds-main {
/* no top padding needed */
}
.ds-section {
padding: clamp(72px, 9vw, 112px) clamp(24px, 6vw, 64px);
border-bottom: 1px solid var(--border);
content-visibility: auto;
contain-intrinsic-size: auto 600px;
}
.ds-section:nth-of-type(even):not(.ds-section-dark) {
background: var(--paper-dark);
}
.ds-section-dark {
background: var(--ink);
border-bottom-color: rgba(255, 255, 255, 0.06);
color: var(--white);
}
.ds-section-shell,
.ds-loading,
.ds-error {
width: min(1240px, 100%);
margin: 0 auto;
}
.ds-section-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: var(--sp-6);
margin-bottom: var(--sp-10);
}
.ds-section-meta {
max-width: 760px;
}
.ds-eyebrow,
.ds-kicker {
font-size: 10px;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--meta);
}
.ds-eyebrow {
margin-bottom: var(--sp-2);
}
.ds-section-title {
font-family: var(--font-display);
font-size: clamp(24px, 4vw, 44px);
line-height: 1.02;
font-weight: 800;
letter-spacing: -0.035em;
}
.ds-section-description {
max-width: 58ch;
color: rgba(10, 10, 10, 0.74);
font-size: 14px;
line-height: 1.82;
}
.ds-grid-2,
.ds-grid-4 {
display: grid;
gap: var(--sp-6);
}
.ds-grid-2 {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ds-grid-4 {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
.ds-card,
.ds-panel {
border: 1px solid var(--border);
min-width: 0;
}
.ds-card {
background: rgba(255, 255, 255, 0.92);
padding: clamp(20px, 3vw, 28px);
display: flex;
flex-direction: column;
}
.ds-panel {
background: rgba(10, 10, 10, 0.03);
padding: var(--sp-5);
display: flex;
flex-direction: column;
}
.ds-card-title {
font-family: var(--font-display);
font-size: clamp(16px, 2.4vw, 30px);
line-height: 1.08;
letter-spacing: -0.025em;
margin-top: var(--sp-4);
}
.ds-copy {
margin-top: var(--sp-4);
color: var(--ink-80);
font-size: 14px;
line-height: 1.8;
flex-grow: 1;
}
.ds-tags {
display: flex;
flex-wrap: wrap;
gap: 10px;
list-style: none;
margin-top: auto;
padding-top: var(--sp-6);
}
.ds-tag {
padding: 8px 12px;
border: 1px solid rgba(10, 10, 10, 0.12);
background: rgba(10, 10, 10, 0.03);
font-size: 11px;
letter-spacing: 0.04em;
text-transform: none;
font-weight: 500;
/* pílula inteira numa linha: a quebra acontece entre tags (.ds-tags wrap), nunca dentro dela */
white-space: nowrap;
transition:
border-color 0.2s ease,
box-shadow 0.2s ease,
transform 0.2s ease;
}
.ds-tag:hover {
border-color: rgba(10, 10, 10, 0.3);
box-shadow: 0 2px 12px rgba(10, 10, 10, 0.1);
}
.ds-section-dark .ds-tag:hover {
border-color: rgba(204, 255, 0, 0.3);
box-shadow: 0 2px 16px rgba(204, 255, 0, 0.1);
}
.ds-metric {
display: inline-flex;
align-items: center;
gap: var(--sp-2);
color: rgba(10, 10, 10, 0.65);
font-size: 10px;
letter-spacing: 0.1em;
text-transform: uppercase;
}
.ds-link {
display: inline-flex;
align-items: center;
gap: var(--sp-2);
text-decoration: none;
font-size: 11px;
letter-spacing: 0.08em;
text-transform: uppercase;
transition:
transform 0.2s ease,
background 0.2s ease,
border-color 0.2s ease;
}
.ds-link:hover {
transform: translateY(-1px);
}
.ds-link-accent {
color: var(--ink);
background: var(--slash);
padding: 12px 18px;
transition:
transform 0.25s ease,
box-shadow 0.25s ease,
background 0.25s ease;
}
.ds-link-accent:hover {
background: #ffffff;
box-shadow:
0 0 20px rgba(204, 255, 0, 0.45),
0 0 48px rgba(204, 255, 0, 0.18);
}
.ds-section-dark .ds-link-accent:hover {
box-shadow:
0 0 24px rgba(204, 255, 0, 0.55),
0 0 60px rgba(204, 255, 0, 0.22);
}
.ds-link-muted {
padding: 12px 18px;
border: 1px solid var(--border);
transition:
transform 0.25s ease,
box-shadow 0.25s ease,
border-color 0.25s ease;
}
.ds-link-muted:hover {
border-color: var(--ink-40);
box-shadow: 0 4px 20px rgba(10, 10, 10, 0.12);
}
.ds-section-dark .ds-link-muted:hover {
border-color: rgba(204, 255, 0, 0.35);
box-shadow: 0 4px 20px rgba(204, 255, 0, 0.08);
}
.ds-list {
margin-top: var(--sp-5);
padding-left: 18px;
font-size: 14px;
line-height: 1.85;
flex-grow: 1;
}
.ds-list li::marker {
color: var(--slash);
}
.ds-loading,
.ds-error {
padding: var(--sp-10) clamp(24px, 6vw, 64px);
font-size: 11px;
letter-spacing: 0.1em;
text-transform: uppercase;
}
.ds-section-dark .ds-eyebrow,
.ds-section-dark .ds-kicker,
.ds-section-dark .ds-metric {
color: rgba(255, 255, 255, 0.65);
}
.ds-section-dark .ds-section-description {
color: rgba(255, 255, 255, 0.75);
}
.ds-section-dark .ds-card,
.ds-section-dark .ds-panel {
background: rgba(255, 255, 255, 0.03);
border-color: rgba(255, 255, 255, 0.08);
}
.ds-section-dark .ds-copy,
.ds-section-dark .ds-list {
color: rgba(255, 255, 255, 0.74);
}
.ds-section-dark .ds-tag {
border-color: rgba(255, 255, 255, 0.1);
background: rgba(255, 255, 255, 0.04);
}
.ds-section-dark .ds-link-muted {
border-color: rgba(255, 255, 255, 0.12);
}
.ds-draw-line {
display: block;
width: 100%;
height: 1px;
margin-top: var(--sp-4);
background: linear-gradient(
90deg,
rgba(10, 10, 10, 0.38) 0%,
rgba(10, 10, 10, 0.06) 100%
);
}
.ds-section-dark .ds-draw-line {
background: linear-gradient(
90deg,
rgba(204, 255, 0, 0.5) 0%,
rgba(204, 255, 0, 0.08) 100%
);
}
@keyframes ds-shimmer {
0% {
background-position: 200% 0;
}
100% {
background-position: -200% 0;
}
}
@keyframes marquee {
from {
transform: translateX(0);
}
to {
transform: translateX(-50%);
}
}
@keyframes marquee-reverse {
from {
transform: translateX(-50%);
}
to {
transform: translateX(0);
}
}
.scroll-velocity-text {
position: relative;
color: inherit;
}
.scroll-velocity-viewport {
overflow: hidden;
white-space: nowrap;
}
.scroll-velocity-track,
.scroll-velocity-group {
display: flex;
width: max-content;
}
.scroll-velocity-group {
flex-shrink: 0;
min-width: 100vw;
}
.scroll-velocity-item {
display: inline-flex;
align-items: center;
flex-shrink: 0;
font-family: var(--font-display);
font-size: clamp(3rem, 10vw, 8rem);
font-weight: 800;
line-height: 1;
letter-spacing: -0.04em;
text-transform: uppercase;
}
.scroll-velocity-dot {
margin-inline: var(--sp-8);
color: var(--slash);
}
.animate-marquee {
animation: marquee 40s linear infinite;
}
.animate-marquee-reverse {
animation: marquee-reverse 45s linear infinite;
}
.scroll-velocity-text:hover .scroll-velocity-track,
.scroll-velocity-text:focus-within .scroll-velocity-track {
animation-play-state: paused;
}
.scroll-velocity-control {
position: absolute;
top: var(--sp-2);
right: var(--sp-3);
z-index: 1;
min-height: 44px;
border: 1px solid var(--slash);
background: var(--ink);
color: var(--paper);
padding-inline: var(--sp-3);
font-family: var(--font-mono);
font-size: 11px;
font-weight: 700;
letter-spacing: 0.06em;
text-transform: uppercase;
cursor: pointer;
}
@media (prefers-reduced-motion: reduce) {
.scroll-velocity-text {
color: var(--paper);
}
.scroll-velocity-track {
animation: none;
transform: none;
}
.scroll-velocity-viewport {
overflow: visible;
white-space: normal;
}
.scroll-velocity-track,
.scroll-velocity-group {
display: block;
width: 100%;
}
.scroll-velocity-group {
min-width: 0;
}
.scroll-velocity-group[aria-hidden="true"] {
display: none;
}
.scroll-velocity-item {
display: block;
padding: var(--sp-6);
font-size: clamp(2rem, 8vw, 4rem);
line-height: 1.1;
white-space: normal;
}
.scroll-velocity-dot {
display: none;
}
}
.ds-skeleton-card {
display: flex;
flex-direction: column;
gap: var(--sp-3);
}
.ds-skeleton {
position: relative;
overflow: hidden;
border-radius: 4px;
background: #111;
}
.ds-skeleton::before {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(90deg, #111 0%, #1f1f1f 50%, #111 100%);
background-size: 220% 100%;
animation: ds-shimmer 1.4s linear infinite;
}
.ds-skeleton-kicker {
height: 10px;
width: 30%;
}
.ds-skeleton-title {
height: 26px;
width: 72%;
}
.ds-skeleton-line {
height: 12px;
width: 100%;
}
.ds-skeleton-line-short {
width: 62%;
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
/* biome-ignore lint/complexity/noImportantStyles: reduced-motion must override component animation styles. */
animation-duration: 0.01ms !important;
/* biome-ignore lint/complexity/noImportantStyles: reduced-motion must override component animation styles. */
animation-iteration-count: 1 !important;
/* biome-ignore lint/complexity/noImportantStyles: reduced-motion must override component transition styles. */
transition-duration: 0.01ms !important;
/* biome-ignore lint/complexity/noImportantStyles: reduced-motion must override smooth scrolling. */
scroll-behavior: auto !important;
}
}
@media (max-width: 1024px) {
.site-header-nav,
.site-header-cv,
.site-header-version {
display: none;
}
.site-header-menu-toggle,
.site-header-mobile-panel {
display: flex;
}
.ds-section-header {
flex-direction: column;
gap: var(--sp-4);
}
.ds-grid-2,
.ds-grid-4 {
grid-template-columns: 1fr;
}
}
@media (max-width: 768px) {
.ds-section {
padding: 72px 20px;
}
.ds-section-title {
font-size: clamp(24px, 8vw, 34px);
}
.ds-card-title {
font-size: clamp(16px, 5vw, 24px);
}
.ds-section-description,
.ds-copy,
.ds-list {
font-size: 13px;
line-height: 1.75;
}
.ds-tags {
gap: 8px;
padding-top: var(--sp-5);
}
.ds-tag {
font-size: 10px;
padding: 7px 10px;
}
}
/* ═══════════════════════════════════════════
CINEMATIC STYLES - Awwwards Level
═══════════════════════════════════════════ */
/* Cinematic text gradient - hero heading */
.cinematic-text-gradient {
color: #f4f2ed;
}
/* Solid surfaces avoid expensive backdrop blur during first paint. */
.cinematic-glass {
border: 1px solid rgba(255, 255, 255, 0.12);
background: rgba(10, 10, 10, 0.78);
transition:
border-color 0.25s ease,
background 0.25s ease;
}
.cinematic-glass:hover {
border-color: rgba(204, 255, 0, 0.35);
background: rgba(10, 10, 10, 0.9);
}
/* Primary CTA - cinematic glow button */
.cinematic-cta-primary {
position: relative;
background: var(--slash);
overflow: hidden;
transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cinematic-cta-primary::before {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(
90deg,
transparent 0%,
rgba(255, 255, 255, 0.4) 50%,
transparent 100%
);
transform: translateX(-100%);
transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.cinematic-cta-primary:hover {
background: #ffffff;
box-shadow:
0 0 30px rgba(204, 255, 0, 0.4),
0 0 60px rgba(204, 255, 0, 0.15);
}
.cinematic-cta-primary:hover::before {
transform: translateX(100%);
}
/* Secondary CTA */
.cinematic-cta-secondary {
position: relative;
border: 1px solid rgba(244, 242, 237, 0.2);
background: rgba(10, 10, 10, 0.4);
backdrop-filter: blur(10px);
overflow: hidden;
transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cinematic-cta-secondary::before {
content: "";
position: absolute;
inset: -1px;
background: linear-gradient(
135deg,
transparent 30%,
rgba(204, 255, 0, 0.3) 50%,
transparent 70%
);
background-size: 200% 200%;
opacity: 0;
transition: opacity 0.4s;
}
.cinematic-cta-secondary:hover {
border-color: var(--slash);
color: var(--slash);
box-shadow: 0 0 20px rgba(204, 255, 0, 0.1);
}
.cinematic-cta-secondary:hover::before {
opacity: 1;
animation: borderGlow 2s linear infinite;
}
@keyframes borderGlow {
0% {
background-position: 0% 0%;
}
100% {
background-position: 200% 200%;
}
}
/* Social links */
.cinematic-social-link {
border: 1px solid rgba(244, 242, 237, 0.12);
background: rgba(10, 10, 10, 0.3);
color: rgba(244, 242, 237, 0.86);
backdrop-filter: blur(8px);
transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.cinematic-social-link:hover {
border-color: var(--slash);
background: rgba(204, 255, 0, 0.08);
color: var(--slash);
box-shadow: 0 0 20px rgba(204, 255, 0, 0.15);
}
/* Aside card */
.cinematic-aside-card {
border: 1px solid rgba(255, 255, 255, 0.08);
background: linear-gradient(
180deg,
rgba(10, 10, 10, 0.6) 0%,
rgba(10, 10, 10, 0.3) 100%
);
backdrop-filter: blur(24px);
-webkit-backdrop-filter: blur(24px);
transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.cinematic-aside-card:hover {
border-color: rgba(204, 255, 0, 0.12);
box-shadow:
0 20px 60px rgba(0, 0, 0, 0.4),
0 0 1px rgba(204, 255, 0, 0.2);
}
/* Section divider animations */
@keyframes shimmerDivider {
0% {
transform: translateX(-100%);
opacity: 0;
}
50% {
opacity: 0.8;
}
100% {
transform: translateX(100%);
opacity: 0;
}
}
@keyframes pulseDot {
0%,
100% {
transform: scale(1);
opacity: 0.3;
}
50% {
transform: scale(2);
opacity: 1;
}
}
.section-divider {
pointer-events: none;
}
.section-divider-gradient {
position: relative;
width: 100%;
height: 1px;
overflow: hidden;
}
.section-divider-gradient span {
position: absolute;
inset: 0;
background: linear-gradient(90deg, transparent, var(--slash), transparent);
opacity: 0.3;
}
.section-divider-gradient span:last-child {
animation: shimmerDivider 3s ease-in-out infinite;
opacity: 0.6;
}
.section-divider-pulse {
display: flex;
align-items: center;
justify-content: center;
gap: var(--sp-2);
padding-block: var(--sp-8);
}
.section-divider-pulse span {
width: 4px;
height: 4px;
border-radius: 50%;
background: var(--slash);
animation: pulseDot 2s ease-in-out infinite;
}
.section-divider-pulse span:nth-child(2) {
animation-delay: 0.15s;
}
.section-divider-pulse span:nth-child(3) {
animation-delay: 0.3s;
}
.section-divider-pulse span:nth-child(4) {
animation-delay: 0.45s;
}
.section-divider-pulse span:nth-child(5) {
animation-delay: 0.6s;
}
.section-divider-waveform {
width: 100%;
height: 60px;
color: var(--slash);
}
.section-divider-waveform svg {
display: block;
width: 100%;
height: 60px;
}
.section-divider-waveform path {
fill: none;
stroke: currentColor;
stroke-width: 1;
vector-effect: non-scaling-stroke;
}
.section-divider-waveform path:nth-child(1) {
opacity: 0.1;
}
.section-divider-waveform path:nth-child(2) {
opacity: 0.07;
}
.section-divider-waveform path:nth-child(3) {
opacity: 0.04;
}
@media (prefers-reduced-motion: reduce) {
.section-divider-gradient span:last-child,
.section-divider-pulse span {
animation: none;
}
}
/* Cinematic card hover effect */
.ds-card {
transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.ds-card:hover {
transform: translateY(-4px);
box-shadow: 0 20px 40px rgba(10, 10, 10, 0.12);
}
.ds-section-dark .ds-card:hover {
box-shadow:
0 20px 40px rgba(0, 0, 0, 0.4),
0 0 1px rgba(204, 255, 0, 0.1);
}
/* Cinematic section reveal transforms */
.cinematic-reveal {
will-change: transform, opacity;
}
/* Notebook story */
.notebook-story {
position: relative;
overflow: clip;
background: var(--ink);
color: var(--paper);
}
.notebook-story-runway {
position: relative;
min-height: var(--notebook-runway, 520vh);
}
.notebook-story-sticky {
position: sticky;
top: 0;
display: grid;
height: 100dvh;
min-height: 100dvh;
place-items: center;
padding: clamp(40px, 7vw, 96px) clamp(20px, 6vw, 80px);
}
.notebook-story-grid {
display: grid;
grid-template-columns: minmax(180px, 0.44fr) minmax(0, 1fr);
align-items: center;
gap: clamp(28px, 6vw, 96px);
width: min(1240px, 100%);
}
.notebook-story-copy {
max-width: 360px;
}
.notebook-story-kicker,
.notebook-fallback-kicker,
.notebook-browser-eyebrow {
color: var(--slash);
font-family: var(--font-mono);
font-size: 10px;
font-weight: 700;
letter-spacing: 0.16em;
line-height: 1.2;
text-transform: uppercase;
}
.notebook-story-copy h2 {
margin-top: var(--sp-4);
max-width: 8ch;
color: var(--white);
font-family: var(--font-display);
font-size: clamp(38px, 5vw, 72px);
font-weight: 500;
letter-spacing: -0.06em;
line-height: 0.94;
}
.notebook-story-copy p {
max-width: 32ch;
margin-top: var(--sp-6);
color: rgba(244, 242, 237, 0.64);
font-size: 13px;
line-height: 1.7;
}
.notebook-story-stage {
position: relative;
display: grid;
min-width: 0;
min-height: min(62vw, 680px);
place-items: center;
}
.notebook-story-canvas {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
}
.notebook-story-canvas > div:first-child,
.notebook-story-canvas canvas {
pointer-events: none;
}
.notebook-story-static-content {
width: min(1080px, 100%);
margin: 0 auto;
padding: clamp(48px, 9vw, 112px) clamp(20px, 6vw, 80px);
}
.notebook-story-static-content > .notebook-fallback {
width: 100%;
margin: 0;
padding: 0;
}
.notebook-screen-surface {
width: min(660px, 68vw);
pointer-events: auto;
min-width: 280px;
overflow: hidden;
border-radius: 2px;
transform: translateZ(0);
}
.notebook-screen-surface .notebook-browser {
width: 100%;
box-shadow: none;
}
.notebook-fallback {
width: min(1080px, 100%);
margin: 0 auto;
padding: clamp(48px, 9vw, 112px) clamp(20px, 6vw, 80px);
}
.notebook-fallback-intro {
width: min(560px, 100%);
margin-bottom: var(--sp-8);
}
.notebook-fallback-intro p {
margin-top: var(--sp-3);
color: rgba(244, 242, 237, 0.68);
font-size: 13px;
}
.notebook-browser {
position: relative;
width: min(100%, 940px);
overflow: hidden;
border: 1px solid rgba(244, 242, 237, 0.16);
background: #101313;
color: var(--paper);
box-shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
}
.notebook-browser-bar {
display: flex;
align-items: center;
gap: 6px;
min-height: 36px;
padding: 0 var(--sp-4);
border-bottom: 1px solid rgba(244, 242, 237, 0.1);
background: #181d1d;
}
.notebook-browser-dot {
width: 7px;
height: 7px;
border-radius: 50%;
background: rgba(244, 242, 237, 0.34);
}
.notebook-browser-dot:first-child {
background: #e46c4d;
}
.notebook-browser-dot:nth-child(2) {
background: #d6aa57;
}
.notebook-browser-dot:nth-child(3) {
background: #7cbd67;
}
.notebook-browser-address {
margin-left: var(--sp-3);
color: rgba(244, 242, 237, 0.42);
font-family: var(--font-mono);
font-size: 10px;
letter-spacing: 0.04em;
}
.notebook-browser-body {
padding: clamp(20px, 3vw, 32px);
}
.notebook-browser-heading {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: var(--sp-4);
}
.notebook-browser-counter {
color: rgba(244, 242, 237, 0.44);
font-family: var(--font-mono);
font-size: 10px;
letter-spacing: 0.08em;
}
.notebook-tablist {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 1px;
margin-top: var(--sp-5);
border-block: 1px solid rgba(244, 242, 237, 0.12);
}
.notebook-tab {
display: flex;
min-width: 0;
min-height: 44px;
align-items: center;
gap: var(--sp-2);
padding: 10px;
border: 1px solid transparent;
border-bottom-width: 2px;
background: transparent;
color: rgba(244, 242, 237, 0.48);
cursor: pointer;
text-align: left;
transition:
color 180ms ease,
border-color 180ms ease,
background-color 180ms ease,
transform 160ms var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1));
}
.notebook-tab:hover,
.notebook-tab[aria-selected="true"] {
border-bottom-color: var(--slash);
background: rgba(204, 255, 0, 0.06);
color: var(--white);
}
.notebook-tab[data-cursor-clicking="true"] {
transform: scale(0.97);
}
.notebook-tab-number {
flex: 0 0 auto;
color: var(--slash);
font-family: var(--font-mono);
font-size: 10px;
}
.notebook-tab-title {
overflow: hidden;
font-family: var(--font-display);
font-size: 12px;
font-weight: 500;
text-overflow: ellipsis;
white-space: nowrap;
}
.notebook-panel {
display: grid;
grid-template-columns: minmax(140px, 0.35fr) minmax(0, 1fr);
align-items: center;
gap: clamp(20px, 3vw, 36px);
margin-top: var(--sp-6);
}
.notebook-panel-copy h3 {
color: var(--white);
font-family: var(--font-display);
font-size: clamp(22px, 3vw, 36px);
font-weight: 500;
letter-spacing: -0.04em;
line-height: 1;
}
.notebook-panel-copy > p {
margin-top: var(--sp-2);
color: rgba(244, 242, 237, 0.6);
font-size: 12px;
line-height: 1.5;
}
.notebook-panel-copy ul {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-top: var(--sp-4);
list-style: none;
}
.notebook-panel-copy li {
padding: 4px 7px;
border: 1px solid rgba(244, 242, 237, 0.15);
color: rgba(244, 242, 237, 0.7);
font-family: var(--font-mono);
font-size: 9px;
line-height: 1.2;
}
.notebook-panel-copy a {
display: inline-flex;
min-height: 44px;
align-items: center;
gap: 6px;
margin-top: var(--sp-5);
padding: 0 14px;
border: 1px solid var(--slash);
background: var(--slash);
color: var(--ink);
font-family: var(--font-mono);
font-size: 10px;
font-weight: 700;
letter-spacing: 0.08em;
text-decoration: none;
text-transform: uppercase;
transition:
background-color 180ms ease,
border-color 180ms ease,
transform 180ms ease;
}
.notebook-panel-copy a:hover {
border-color: var(--white);
background: var(--white);
color: var(--ink);
}
.notebook-panel-copy a:active {
transform: scale(0.98);
}
.notebook-panel-copy a:focus-visible {
outline: 2px solid var(--slash);
outline-offset: 3px;
}
.notebook-screenshot-wrap {
position: relative;
overflow: hidden;
aspect-ratio: 16 / 9;
border: 1px solid rgba(244, 242, 237, 0.16);
background: var(--paper-dark);
}
.notebook-screenshot-wrap img {
display: block;
width: 100%;
height: 100%;
object-fit: contain;
}
.notebook-screenshot-current,
.notebook-screenshot-outgoing {
position: absolute;
inset: 0;
}
.notebook-screenshot-current {
z-index: 0;
animation: notebook-screenshot-in 180ms ease both;
}
.notebook-screenshot-outgoing {
z-index: 0;
animation: notebook-screenshot-out 180ms ease both;
}
.notebook-screenshot-wrap img.notebook-screenshot-preload {
position: absolute;
z-index: -1;
width: 1px;
height: 1px;
opacity: 0;
pointer-events: none;
}
@keyframes notebook-screenshot-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes notebook-screenshot-out {
from {
opacity: 1;
}
to {
opacity: 0;
}
}
.notebook-cursor {
position: absolute;
z-index: 3;
width: 15px;
height: 20px;
border: 2px solid var(--white);
background: var(--ink);
box-shadow: 2px 2px 0 var(--slash);
pointer-events: none;
transform: translate(-50%, -45%) rotate(-18deg);
transition:
width 120ms ease,
height 120ms ease,
box-shadow 120ms ease;
}
.notebook-cursor.is-clicking {
width: 12px;
height: 16px;
box-shadow: 1px 1px 0 var(--slash);
}
@media (max-width: 1024px) {
.notebook-story-runway {
min-height: auto;
}
.notebook-story-sticky {
position: relative;
min-height: auto;
}
.notebook-story-grid {
grid-template-columns: 1fr;
}
.notebook-story-copy {
max-width: 560px;
}
.notebook-story-copy h2 {
max-width: 12ch;
}
.notebook-story-stage {
min-height: min(78vw, 620px);
}
}
@media (max-width: 680px) {
.notebook-story-sticky {
padding-inline: 20px;
}
.notebook-story-copy h2 {
font-size: clamp(38px, 14vw, 64px);
}
.notebook-story-stage {
min-height: 84vw;
}
.notebook-fallback {
padding-inline: 20px;
}
.notebook-browser-body {
padding: 16px;
}
.notebook-tablist {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.notebook-tab {
padding: 12px 8px;
}
.notebook-tab-title {
white-space: normal;
}
.notebook-panel {
grid-template-columns: 1fr;
}
.notebook-panel-copy {
order: 2;
}
}
@media (prefers-reduced-motion: reduce) {
.notebook-tab,
.notebook-cursor,
.notebook-screenshot-current,
.notebook-screenshot-outgoing {
transition: none;
animation: none;
}
.notebook-tab[data-cursor-clicking="true"] {
transform: none;
}
}