/* ─── About Page ─────────────────────────────────────────────────────────── */

@font-face {
    font-family: 'ArbelG';
    src: url('../fonts/ui/ArbelG-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

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

a { pointer-events: auto; }

/* ─── Custom cursor ──────────────────────────────────────────────────────── */
#custom-cursor {
    position: fixed;
    width: 1.25vw;
    height: 1.25vw;
    border-radius: 50%;
    background-color: transparent;
    border: 1.5px solid #000;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    top: -100px;
    left: -100px;
    transition: border-color 0.2s ease;
}

#custom-cursor.snapped {
    transition: border-color 0.2s ease,
                width  0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                height 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                left   0.3s  cubic-bezier(0.25, 0.46, 0.45, 0.94),
                top    0.3s  cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ─── Page base ──────────────────────────────────────────────────────────── */
html {
    background-color: #fcfbf7;
}

body {
    font-family: 'ArbelG', 'Helvetica Neue', Arial, sans-serif;
    background-color: #fcfbf7;
    width: 100vw;
    min-height: 205.9vw; /* 2967 / 14.4 */
    position: relative;
    overflow-x: hidden;
}

/* ─── Top row (fixed / sticky) ───────────────────────────────────────────── */

/* Logo icon: matches playground — left: calc(6.32vw - 17px), top: 3vh, 34×34px */
.logo-icon {
    position: fixed;
    left: calc(6.32vw - 17px);
    top: 3vh;
    width: 34px;
    height: 34px;
}

/* Theme toggle – 24px gap to the left of the nav dot, matches playground spacing */
.theme-toggle {
    position: fixed;
    right: calc(2.64vw + 18px + 24px);
    top: 3vh;
    width: 18px;
    height: 18px;
    color: #000;
}

/* Nav dot */
.dot {
    position: fixed;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: block;
    text-decoration: none;
    background-color: #000;
}

.dot-top-right {
    right: 2.64vw;
    top: 3vh;
    z-index: 100;
}

/* ─── Row 1 content ──────────────────────────────────────────────────────── */

/* "about" logotype: aligned to same top as .sample-logo on home (15.35vw) */
.about-title {
    position: absolute;
    top: 12.35vw;
    left: 22.64vw;  /* 326 / 14.4 */
    width: 41.32vw; /* 595 / 14.4 */
    height: 11.35vw;/* 163.43 / 14.4 */
}

/* "sample" wordmark: same distance from about-title as before (10.28vw gap) */
.sample-wordmark {
    position: absolute;
    top: 22.63vw;
    left: 21.74vw;  /* 313 / 14.4 */
    width: 56.47vw; /* 813.18 / 14.4 */
    height: 16.60vw;/* 239 / 14.4 */
}

/* Blue variant hidden by default */
.sample-wordmark-blue { display: none; }

/* ─── Description text (same position as .description on home) ───────────── */
.about-description {
    position: absolute;
    left: 21.74vw;
    top: 46vw;
    width: 38.26vw;
    font-size: 1.39vw;
    color: #000;
    line-height: 1.45;
    overflow: visible;
}

.about-description .char {
    opacity: 0;
}

.about-description .char.initial {
    animation: fadeIn 0.9s ease-out 0.5s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* Circle below description */
.about-circle {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 51.5vw;
    width: 1.25vw;
    height: 1.25vw;
    border-radius: 50%;
    background-color: #000;
    cursor: none;
    transition: box-shadow 0.2s ease;
}

.about-circle.jitter-active {
    animation: circlePulse 0.4s ease-in-out infinite alternate;
}

@keyframes circlePulse {
    from { box-shadow: 0 0 0 0px currentColor; }
    to   { box-shadow: 0 0 0 0.4vw currentColor; }
}

.about-description .char.last-visible::after {
    content: '|';
    font-weight: 300;
    animation: cursorBlink 0.55s step-end infinite;
    margin-left: 0.05em;
}

/* ─── Images row ────────────────────────────────────────────────────────── */
.about-img {
    position: absolute;
}

.about-img-1 { top: 56.25vw; left: 12.92vw; width: 13.51vw; height: 23.17vw; }
.about-img-2 { top: 56.25vw; left: 28.43vw; width: 11.47vw; height: 23.17vw; }
.about-img-3 { top: 56.25vw; left: 41.90vw; width: 13.51vw; height: 23.17vw; }
.about-img-4 { top: 56.25vw; left: 57.41vw; width: 11.47vw; height: 23.17vw; }
.about-img-5 { top: 56.25vw; left: 70.88vw; width: 12.52vw; height: 23.17vw; }

/* ─── Second description ─────────────────────────────────────────────────── */
.about-description-2 {
    position: absolute;
    left: 21.74vw;
    top: 82.92vw;
    width: 56.52vw;
    font-size: 1.39vw;
    color: #000;
    line-height: 1.45;
    white-space: pre;
    overflow: visible;
}

.about-description-2 .char        { opacity: 0; }
.about-description-2 .char.initial { animation: fadeIn 0.9s ease-out 0.5s forwards; }

.about-description-2 .char.last-visible::after {
    content: '|';
    font-weight: 300;
    animation: cursorBlink 0.55s step-end infinite;
    margin-left: 0.05em;
}

/* ─── Third description ──────────────────────────────────────────────────── */
.about-description-3 {
    position: absolute;
    left: 21.74vw;
    top: 134.42vw;
    width: 62vw;
    font-size: 1.39vw;
    color: #000;
    line-height: 1.45;
    white-space: pre;
    overflow: visible;
}

.about-description-3 .char         { opacity: 0; }
.about-description-3 .char.initial  { animation: fadeIn 0.9s ease-out 0.5s forwards; }

.about-description-3 .char.last-visible::after {
    content: '|';
    font-weight: 300;
    animation: cursorBlink 0.55s step-end infinite;
    margin-left: 0.05em;
}

/* ─── Try it now ─────────────────────────────────────────────────────────── */
.about-try {
    position: absolute;
    left: 21.74vw;
    top: 153vw;
    font-size: 1.39vw;
    color: #000;
    line-height: 1.45;
    overflow: visible;
}

.about-try .char         { opacity: 0; }
.about-try .char.initial  { animation: fadeIn 0.9s ease-out 0.5s forwards; }

.about-try .char.last-visible::after {
    content: '|';
    font-weight: 300;
    animation: cursorBlink 0.55s step-end infinite;
    margin-left: 0.05em;
}

/* ─── Large single image ─────────────────────────────────────────────────── */
.about-img-large {
    position: absolute;
    top: 82vw;
    left: 50%;
    transform: translateX(-50%);
    width: 38vw;
    height: 65vw;
}

/* ─── Playground card ────────────────────────────────────────────────────── */
.about-card {
    position: absolute;
    top: 162vw;
    left: 50%;
    transform: translateX(-50%);
    width: 20vw;
    height: 20vw;
    display: block;
    text-decoration: none;
    opacity: 0;
}

.about-card-empty,
.about-card-full {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease;
}

.about-card-full { opacity: 0; }

.about-card:hover .about-card-full  { opacity: 1; }
.about-card:hover .about-card-empty { opacity: 0; }

.about-card-label {
    position: absolute;
    font-family: 'ArbelG', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.39vw;
    color: #000;
    white-space: nowrap;
    left: 50%;
    transform: translateX(-50%);
    top: 48.42%;
}

.about-card:hover .about-card-label { color: #fcfbf7; }

/* ─── Negative theme ─────────────────────────────────────────────────────── */
body.negative {
    background-color: #050505;
}

body.negative .theme-toggle      { color: #fcfbf7; }
body.negative .dot                { background-color: #fcfbf7; }
body.negative #custom-cursor      { border-color: #fcfbf7; }
body.negative .about-description   { color: #fcfbf7; }
body.negative .about-description-2 { color: #fcfbf7; }
body.negative .about-description-3 { color: #fcfbf7; }
body.negative .about-try           { color: #fcfbf7; }
body.negative .about-card-label    { color: #fcfbf7; }
body.negative .about-card:hover .about-card-label { color: #050505; }

/* Black SVGs → white in negative mode */
body.negative .about-title            { filter: invert(1); }
body.negative .about-img-black        { filter: invert(1); }
body.negative .about-img-large-black  { filter: invert(1); }
body.negative .sample-wordmark-black  { filter: invert(1); }
body.negative .about-circle           { background-color: #fcfbf7; color: #fcfbf7; }

/* Hide blue variants in default/negative */
.about-img-blue       { display: none; }
.about-img-large-blue { display: none; }

/* ─── Blue / brown theme ─────────────────────────────────────────────────── */
body.blue-theme {
    background-color: #423028;
}

body.blue-theme .theme-toggle      { color: #B6E6FF; }
body.blue-theme .dot                { background-color: #B6E6FF; }
body.blue-theme #custom-cursor      { border-color: #B6E6FF; }
body.blue-theme .about-description   { color: #B6E6FF; }
body.blue-theme .about-description-2 { color: #B6E6FF; }
body.blue-theme .about-description-3 { color: #B6E6FF; }
body.blue-theme .about-try           { color: #B6E6FF; }
body.blue-theme .about-card-label    { color: #B6E6FF; }
body.blue-theme .about-card:hover .about-card-label { color: #423028; }

/* Blue theme: swap black → blue image variants */
body.blue-theme .about-title           { filter: brightness(0) saturate(100%) invert(85%) sepia(14%) saturate(1049%) hue-rotate(177deg) brightness(102%) contrast(101%); }
body.blue-theme .about-img-black       { display: none; }
body.blue-theme .about-img-blue        { display: block; }
body.blue-theme .about-img-large-black { display: none; }
body.blue-theme .about-img-large-blue  { display: block; }
body.blue-theme .about-circle        { background-color: #B6E6FF; color: #B6E6FF; }

/* Show blue wordmark, hide black */
body.blue-theme .sample-wordmark-black { display: none; }
body.blue-theme .sample-wordmark-blue  { display: block; }
