@font-face {
    font-family: "Old London";
    src: url("../fonts/OldLondon.ttf") format("truetype");
    font-display: swap;
}

:root {
    --bg: #030304;
    --bg-soft: #08080a;
    --panel: rgba(13, 13, 16, 0.78);
    --panel-strong: rgba(18, 18, 22, 0.94);
    --ink: #f4f0e7;
    --muted: #aaa49a;
    --faint: #6d6862;
    --line: rgba(219, 214, 202, 0.18);
    --line-strong: rgba(219, 214, 202, 0.34);
    --chrome: #d9d4c8;
    --star-blue: #123f9c;
    --star-blue-bright: #2e63db;
    --focus: #efe3bd;
    --danger: #ff6174;
    --success: #b8ffcf;
    --radius: 8px;
    --shell: 72rem;
    --side-pad: 1.25rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    letter-spacing: 0;
}

html {
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background: var(--bg);
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

body {
    min-height: 100vh;
    margin: 0;
    max-width: 100%;
    overflow-x: hidden;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink);
    background: var(--bg);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
    background-size: 36px 36px;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: 0.24;
    background-image: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.045) 0,
        rgba(255, 255, 255, 0.045) 1px,
        transparent 1px,
        transparent 6px
    );
    mix-blend-mode: screen;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

p,
figure {
    margin: 0;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

::selection {
    background: var(--star-blue);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 4px;
}

.hidden {
    display: none !important;
}

.error-page {
    position: relative;
    z-index: 1;
    min-height: 100svh;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: clamp(2rem, 6vw, 5rem) var(--side-pad);
    text-align: center;
}

.error-page::before {
    content: "";
    position: absolute;
    z-index: -1;
    right: -11rem;
    top: -11rem;
    width: min(34rem, 86vw);
    aspect-ratio: 1;
    opacity: 0.08;
    background: url("../img/brand/core-star-mark.webp") center / contain no-repeat;
    animation: footer-star-spin 28s linear infinite;
}

.error-content {
    width: min(100%, 48rem);
}

.error-code {
    margin: 0;
    color: rgba(244, 240, 231, 0.14);
    font-family: "Old London", Georgia, "Times New Roman", serif;
    font-size: clamp(8rem, 25vw, 15rem);
    font-weight: 400;
    line-height: 0.65;
}

.error-content h1 {
    margin: 1.5rem 0 0;
    color: var(--ink);
    font-family: "Old London", Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 8vw, 5.75rem);
    font-weight: 400;
    line-height: 0.9;
}

.error-content p {
    max-width: 36rem;
    margin: 1.5rem auto 2rem;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}

.error-content .btn {
    width: auto;
}

.no-scroll {
    overflow: hidden !important;
}

.blurred-background #main-content {
    filter: blur(4px);
}

.site-backdrop {
    position: fixed;
    inset: 0;
    z-index: -4;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(circle at 46% 2%, rgba(46, 99, 219, 0.2), transparent 24rem),
        radial-gradient(circle at 78% 78%, rgba(217, 212, 200, 0.08), transparent 28rem),
        linear-gradient(180deg, #010102 0%, #070709 45%, #030304 100%);
}

.scanline-field,
.moire-field {
    position: absolute;
    inset: 0;
}

.scanline-field {
    opacity: 0.16;
    background: repeating-linear-gradient(
        90deg,
        transparent 0,
        transparent 22px,
        rgba(217, 212, 200, 0.12) 23px,
        transparent 24px
    );
}

.moire-field {
    opacity: 0.14;
    background:
        repeating-radial-gradient(circle at 50% 22%, transparent 0, transparent 7px, rgba(255, 255, 255, 0.07) 8px, transparent 10px),
        repeating-radial-gradient(circle at 68% 76%, transparent 0, transparent 11px, rgba(46, 99, 219, 0.11) 12px, transparent 14px);
    filter: contrast(1.28);
}

.section-shell,
.detail-shell {
    width: min(var(--shell), calc(100% - (var(--side-pad) * 2)));
    margin-inline: auto;
}

.brand-heading {
    margin: 0;
    color: #fff;
    font-family: "Old London", Georgia, "Times New Roman", serif;
    font-weight: 400;
    text-transform: none;
    text-shadow: 0 0 30px rgba(217, 212, 200, 0.16);
}

.tag-list span,
.tag-list a {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    border: 1px solid rgba(217, 212, 200, 0.18);
    border-radius: var(--radius);
    padding: 0.4rem 0.65rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-family: "Consolas", "SFMono-Regular", ui-monospace, monospace;
    background: rgba(255, 255, 255, 0.035);
}

.tag-list a {
    transition: border-color 180ms ease, color 180ms ease, background 180ms ease, transform 180ms ease;
}

.tag-list a:hover,
.tag-list a:focus-visible {
    border-color: rgba(46, 99, 219, 0.72);
    color: #fff;
    background: rgba(46, 99, 219, 0.12);
    transform: translateY(-2px);
}

.hero-stage {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    isolation: isolate;
    display: grid;
    place-items: end center;
    background:
        radial-gradient(circle at 50% 27%, rgba(255, 255, 255, 0.08), transparent 24rem),
        linear-gradient(180deg, rgba(3, 3, 4, 0.25), rgba(3, 3, 4, 0.95));
}

.hero-word {
    position: absolute;
    z-index: 0;
    top: 5vh;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    display: grid;
    justify-items: center;
    color: rgba(244, 240, 231, 0.11);
    font-family: "Old London", Georgia, "Times New Roman", serif;
    font-size: 8.5rem;
    line-height: 0.76;
    text-align: center;
    text-shadow: 0 0 44px rgba(217, 212, 200, 0.14);
    user-select: none;
}

.hero-word span {
    display: block;
    white-space: nowrap;
}

.hero-body {
    position: absolute;
    z-index: 1;
    bottom: -5vh;
    left: 50%;
    width: min(64vw, 40rem);
    height: min(82svh, 49rem);
    transform: translateX(-50%);
}

.hero-body > img:first-child {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    filter: contrast(1.1);
}

.hero-eye-star {
    --eye-star-scale: 1;
    position: absolute;
    z-index: 4;
    left: 0;
    top: 0;
    width: clamp(3.8rem, 5vw, 5.5rem);
    aspect-ratio: 1;
    pointer-events: none;
    transform: translate(-50%, -50%) rotate(-12deg) scale(var(--eye-star-scale));
    transform-origin: center;
}

.hero-eye-star img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 1.15rem rgba(46, 99, 219, 0.46));
    animation: hero-eye-star-cycle 8.5s linear 1 both;
}

.hero-mobile-name {
    display: none;
}

.hero-body::before,
.hero-body::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-body::before {
    z-index: 2;
    opacity: 0.28;
    background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.13) 0, rgba(255, 255, 255, 0.13) 1px, transparent 1px, transparent 7px);
    mix-blend-mode: screen;
}

.hero-body::after {
    z-index: -1;
    inset: 10% 12% 2%;
    border: 1px solid rgba(217, 212, 200, 0.16);
    background: linear-gradient(180deg, rgba(217, 212, 200, 0.08), rgba(0, 0, 0, 0.12));
    filter: blur(0.2px);
}

.footer-layout h2,
.modal-title {
    font-family: "Old London", Georgia, "Times New Roman", serif;
    font-weight: 400;
    text-transform: none;
}

.hero-fade {
    position: absolute;
    z-index: 6;
    left: 0;
    right: 0;
    bottom: 0;
    height: 30vh;
    background: linear-gradient(180deg, transparent, rgba(3, 3, 4, 0.72) 48%, var(--bg) 100%);
}

main {
    position: relative;
    z-index: 1;
}

.intro-section,
.project-proof-section,
.site-footer {
    display: flex;
    align-items: center;
    padding: clamp(5rem, 9vw, 8rem) 0;
}

.project-proof-section {
    min-height: 100svh;
}

.site-footer {
    min-height: 82svh;
}

.intro-section {
    position: relative;
    min-height: auto;
    overflow: clip;
    background:
        linear-gradient(90deg, rgba(217, 212, 200, 0.055) 1px, transparent 1px),
        linear-gradient(180deg, var(--bg), #070708);
    background-size: 100% 100%, auto;
}

.intro-section::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 50%;
    left: -24rem;
    width: 48rem;
    aspect-ratio: 1;
    pointer-events: none;
    opacity: 0.09;
    background: url("../img/brand/core-star-mark.webp") center / contain no-repeat;
    transform: translateY(-50%) rotate(-19deg);
}

.about-panel {
    position: relative;
    z-index: 40;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-block: clamp(2rem, 4vw, 4rem);
}

.about-panel h2 {
    margin: 0;
    color: #fff;
    font-family: "Old London", Georgia, "Times New Roman", serif;
    font-size: 8rem;
    font-weight: 400;
    line-height: 0.86;
    white-space: nowrap;
    text-transform: none;
    text-shadow: 0 0 3rem rgba(217, 212, 200, 0.13);
}

.about-panel p {
    max-width: 52rem;
    margin-top: clamp(2rem, 5vw, 3.5rem);
    color: var(--muted);
    font-size: 1.25rem;
    line-height: 1.9;
}

.project-proof-section {
    position: relative;
    overflow: clip;
    background: linear-gradient(180deg, #070708, var(--bg));
}

.project-lab {
    position: relative;
    z-index: 40;
    display: grid;
    gap: clamp(2.5rem, 6vw, 5rem);
}

.project-lab-header {
    display: block;
}

.project-lab-header h2,
.footer-layout h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(3.4rem, 7.5vw, 7rem);
    line-height: 0.88;
}

.project-lab-header h2 {
    font-family: "Old London", Georgia, "Times New Roman", serif;
    font-size: 7rem;
    font-weight: 400;
    text-transform: none;
}

.project-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}

.project-column {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.project-column.preview-active {
    z-index: 70;
}

.project-column__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4.25rem;
    border-bottom: 1px solid var(--line-strong);
    padding-bottom: 0.9rem;
}

.project-column__header h3 {
    margin: 0;
    color: var(--ink);
    font-family: "Old London", Georgia, "Times New Roman", serif;
    font-size: 2.65rem;
    font-weight: 400;
    line-height: 1;
    text-transform: none;
}

.project-column__header span {
    flex: none;
    color: var(--faint);
    font-family: "Consolas", "SFMono-Regular", ui-monospace, monospace;
    font-size: 0.72rem;
}

.project-column .project-index {
    border-top: 0;
}

.project-column .project-row__main {
    grid-template-columns: 2.25rem minmax(0, 1fr) 1.5rem;
    gap: 0.8rem;
    min-height: 0;
    padding: 1.15rem 0.5rem;
}

.project-column .project-row:hover .project-row__main,
.project-column .project-row:focus-within .project-row__main {
    padding-left: 0.5rem;
}

.project-column .project-row__identity strong {
    font-size: 1.8rem;
    line-height: 1.04;
    overflow-wrap: anywhere;
}

.project-column .project-row__identity small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-column .project-row__summary {
    grid-column: 2 / -1;
    max-width: none;
    font-size: 0.88rem;
    line-height: 1.55;
}

.project-column .project-row__arrow {
    grid-column: 3;
    grid-row: 1;
}

.project-column .project-row__proofs {
    padding: 0 0.5rem 1.1rem 3.55rem;
}

.footer-layout p {
    color: var(--muted);
    line-height: 1.8;
}

.modal-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
        var(--panel);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.project-index {
    border-top: 1px solid var(--line-strong);
}

.project-row {
    position: relative;
    border-bottom: 1px solid var(--line-strong);
    transition: background 220ms ease;
}

.project-row:hover,
.project-row:focus-within {
    background: rgba(255, 255, 255, 0.035);
}

.project-row__main {
    display: grid;
    grid-template-columns: 3rem minmax(15rem, 0.9fr) minmax(16rem, 1fr) 2rem;
    align-items: center;
    gap: clamp(0.8rem, 2vw, 2rem);
    min-height: 8.5rem;
    padding: 1.25rem 1rem;
    transition: color 220ms ease;
}

.project-row:hover .project-row__main,
.project-row:focus-within .project-row__main {
    padding-left: 1rem;
}

.project-row__number,
.project-row__identity small,
.project-row__proofs {
    font-family: "Consolas", "SFMono-Regular", ui-monospace, monospace;
}

.project-row__number {
    color: var(--faint);
    font-size: 0.78rem;
}

.project-row__identity {
    display: grid;
    gap: 0.55rem;
}

.project-row__identity strong {
    color: var(--ink);
    font-size: 2.4rem;
    font-weight: 650;
    line-height: 1;
}

.project-row__identity small {
    color: var(--faint);
    font-size: 0.72rem;
}

.project-row__summary {
    max-width: 35rem;
    color: var(--muted);
    line-height: 1.65;
}

.project-row__arrow {
    color: var(--chrome);
    font-size: 1.55rem;
    transition: color 180ms ease, transform 180ms ease;
}

.project-row:hover .project-row__arrow,
.project-row:focus-within .project-row__arrow {
    color: #fff;
    transform: translate(0.2rem, -0.2rem);
}

.project-row__proofs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    padding: 0 1rem 1.25rem 5.95rem;
    color: var(--faint);
    font-size: 0.72rem;
}

.project-row__proofs > span {
    margin-right: 0.25rem;
}

.project-row__proofs a {
    border-bottom: 1px solid rgba(217, 212, 200, 0.3);
    color: var(--chrome);
    transition: border-color 180ms ease, color 180ms ease;
}

.project-row__proofs a:hover,
.project-row__proofs a:focus-visible {
    border-color: var(--star-blue-bright);
    color: #fff;
}

.project-cursor-preview {
    position: absolute;
    z-index: 60;
    top: 50%;
    left: calc(100% + 1.125rem);
    width: var(--preview-width, clamp(18rem, 28vw, 25rem));
    overflow: hidden;
    border: 1px solid rgba(217, 212, 200, 0.46);
    border-radius: var(--radius);
    opacity: 0;
    pointer-events: none;
    background: #050506;
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.58), 0 0 2rem rgba(46, 99, 219, 0.15);
    transform: translateY(-50%) rotate(-1.5deg);
    transform-origin: center left;
    transition: opacity 140ms ease;
    will-change: opacity;
}

.project-cursor-preview.is-visible {
    opacity: 1;
    transform: translateY(-50%) rotate(-1.5deg);
}

.project-cursor-preview.preview-to-left {
    right: calc(100% + 1.125rem);
    left: auto;
    transform-origin: center right;
}

.project-cursor-preview.preview-align-top {
    top: 0;
    transform: rotate(-1.5deg);
    transform-origin: top left;
}

.project-cursor-preview.preview-align-top.preview-to-left {
    transform-origin: top right;
}

.project-cursor-preview.preview-align-top.is-visible {
    transform: rotate(-1.5deg);
}

.project-cursor-preview.preview-align-bottom {
    top: auto;
    bottom: 0;
    transform: rotate(-1.5deg);
    transform-origin: bottom left;
}

.project-cursor-preview.preview-align-bottom.preview-to-left {
    transform-origin: bottom right;
}

.project-cursor-preview.preview-align-bottom.is-visible {
    transform: rotate(-1.5deg);
}

.project-cursor-preview img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    object-position: center;
    background: #050506;
}

.project-cursor-preview.is-showcase-preview img {
    object-fit: cover;
    object-position: top center;
}

.project-cursor-preview span {
    display: block;
    padding: 0.65rem 0.75rem;
    color: var(--chrome);
    font-family: "Consolas", "SFMono-Regular", ui-monospace, monospace;
    font-size: 0.72rem;
}

.site-footer {
    position: relative;
    overflow: clip;
    min-height: 82svh;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(3, 3, 4, 0.05), rgba(18, 63, 156, 0.12)),
        #030304;
}

.site-footer::before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    bottom: -26rem;
    width: 42rem;
    aspect-ratio: 1;
    pointer-events: none;
    opacity: 0.07;
    background: url("../img/brand/core-star-mark.webp") center / contain no-repeat;
    transform-origin: center;
    animation: footer-star-spin 24s linear infinite;
    will-change: transform;
}

.footer-layout {
    position: relative;
    z-index: 1;
    display: flex;
    max-width: 54rem;
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
}

.footer-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.9rem;
}

.btn {
    min-height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 0.85rem 1.1rem;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #fff;
    border-color: rgba(217, 212, 200, 0.36);
    background:
        linear-gradient(135deg, rgba(46, 99, 219, 0.95), rgba(15, 16, 18, 0.92)),
        var(--star-blue);
    box-shadow: 0 14px 34px rgba(18, 63, 156, 0.32);
}

.btn-ghost {
    color: var(--chrome);
    border-color: rgba(217, 212, 200, 0.24);
    background: rgba(255, 255, 255, 0.04);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
}

.social-links a {
    width: 2.7rem;
    height: 2.7rem;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--chrome);
    background: rgba(255, 255, 255, 0.035);
}

.social-links svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: currentColor;
}

.copyright {
    color: var(--faint);
    font-family: "Consolas", "SFMono-Regular", ui-monospace, monospace;
    font-size: 0.78rem;
    text-align: center;
}

.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 1rem;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.68);
    opacity: 0;
    transition: opacity 180ms ease;
}

.modal-panel {
    position: relative;
    width: min(100%, 34rem);
    max-height: calc(100svh - 2rem);
    overflow: auto;
    padding: 1.5rem;
    opacity: 0;
    transform: translateY(1.25rem) scale(0.94);
    transition: opacity 220ms ease, transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-modal.is-open {
    opacity: 1;
}

.contact-modal.is-open .modal-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 0.7rem;
    right: 0.8rem;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--chrome);
    background: rgba(255, 255, 255, 0.04);
    font-size: 1.5rem;
    line-height: 1;
}

.modal-title {
    margin: 0 0 1.2rem;
    color: #fff;
    font-size: 3.4rem;
    line-height: 0.88;
}

.field-group {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 0.9rem;
}

.field-group label {
    color: var(--chrome);
    font-size: 0.86rem;
    font-weight: 800;
}

.field-group input,
.field-group textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.9rem 0.95rem;
    color: var(--ink);
    background: rgba(0, 0, 0, 0.24);
}

.field-group textarea {
    min-height: 8rem;
    resize: vertical;
}

.field-group input:focus,
.field-group textarea:focus {
    border-color: rgba(46, 99, 219, 0.74);
    outline: none;
}

.email-line {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 1rem 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.email-line img {
    width: 1rem;
    height: 1rem;
    filter: invert(1);
    opacity: 0.76;
}

.form-submit {
    width: 100%;
}

.loader,
.form-status {
    margin-top: 0.85rem;
    color: var(--muted);
    text-align: center;
    font-size: 0.86rem;
}

#toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 100;
    display: flex;
    width: min(24rem, calc(100vw - 2rem));
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    display: grid;
    grid-template-columns: 0.2rem 2rem minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.75rem;
    background: rgba(9, 9, 11, 0.94);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateX(1rem);
    transition: opacity 220ms ease, transform 220ms ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.toast__accent {
    align-self: stretch;
    border-radius: 99px;
    background: var(--chrome);
}

.toast--error .toast__accent {
    background: var(--danger);
}

.toast--success .toast__accent {
    background: var(--success);
}

.toast--info .toast__accent {
    background: var(--star-blue-bright);
}

.toast__icon {
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.04);
    font-weight: 900;
}

.toast__title {
    color: var(--ink);
    font-size: 0.84rem;
    font-weight: 900;
}

.toast__body {
    display: block;
    margin-top: 0.1rem;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.reveal {
    position: relative;
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes footer-star-spin {
    from {
        transform: translateX(-50%) rotate(0deg);
    }
    to {
        transform: translateX(-50%) rotate(360deg);
    }
}

@keyframes hero-eye-star-cycle {
    0% {
        opacity: 0;
        transform: rotate(-180deg) scale(2.35);
        animation-timing-function: cubic-bezier(0.16, 0.75, 0.24, 1);
    }

    12% {
        opacity: 1;
        transform: rotate(360deg) scale(1.55);
    }

    24% {
        opacity: 1;
        transform: rotate(720deg) scale(1);
        animation-timing-function: linear;
    }

    64% {
        opacity: 1;
        transform: rotate(900deg) scale(1);
        animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }

    82%,
    100% {
        opacity: 0;
        transform: rotate(1620deg) scale(0.06);
    }
}

@media (min-width: 768px) {
    .contact-modal {
        overflow: hidden;
    }

    .modal-panel {
        width: min(100%, 42rem);
        max-height: calc(100dvh - 2rem);
        overflow: hidden;
        padding: clamp(1rem, 2.5dvh, 1.5rem);
    }

    #contact-form {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 0.85rem;
    }

    #contact-form .modal-title,
    #contact-form .field-group:nth-of-type(n + 3),
    #contact-form .email-line,
    #contact-form .form-submit,
    #contact-form .loader,
    #contact-form .form-status {
        grid-column: 1 / -1;
    }

    .modal-title {
        margin-bottom: clamp(0.65rem, 1.8dvh, 1.2rem);
    }

    .field-group {
        gap: clamp(0.25rem, 0.7dvh, 0.45rem);
        margin-bottom: clamp(0.45rem, 1.2dvh, 0.9rem);
    }

    .field-group input,
    .field-group textarea {
        padding-block: clamp(0.55rem, 1.2dvh, 0.9rem);
    }

    .field-group textarea {
        min-height: clamp(4.5rem, 13dvh, 8rem);
        max-height: 8rem;
        resize: none;
    }

    .email-line {
        margin-block: clamp(0.5rem, 1.4dvh, 1rem);
    }

    .loader,
    .form-status {
        margin-top: clamp(0.35rem, 1dvh, 0.85rem);
    }

    .form-status:empty {
        display: none;
    }
}

@media (min-width: 768px) and (max-height: 560px) {
    .modal-panel {
        padding: 0.75rem 1rem;
    }

    .modal-title {
        margin-bottom: 0.4rem;
        font-size: 2.6rem;
    }

    .modal-close {
        top: 0.45rem;
        right: 0.45rem;
        width: 2rem;
        height: 2rem;
    }

    .field-group {
        gap: 0.15rem;
        margin-bottom: 0.3rem;
    }

    .field-group label {
        font-size: 0.74rem;
    }

    .field-group input,
    .field-group textarea {
        padding: 0.45rem 0.7rem;
        font-size: 0.88rem;
    }

    .field-group textarea {
        min-height: 3.75rem;
        max-height: 3.75rem;
    }

    .email-line {
        margin-block: 0.35rem;
        font-size: 0.74rem;
    }

    .form-submit {
        padding-block: 0.65rem;
    }
}

@media (max-width: 1100px) {
    .hero-word {
        font-size: 6.5rem;
    }

    .about-panel h2 {
        font-size: 6.5rem;
    }

    .project-lab-header h2 {
        font-size: 5.5rem;
    }

    .project-row__main {
        grid-template-columns: 2.5rem minmax(13rem, 0.8fr) minmax(12rem, 1fr) 2rem;
    }

    .footer-actions,
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 900px) and (min-width: 768px) {
    .about-panel h2 {
        font-size: 5.5rem;
    }
}

@media (max-width: 900px) {
    .project-columns {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 767px) {
    :root {
        --side-pad: 1rem;
    }

    body::after,
    .moire-field {
        opacity: 0.12;
    }

    .hero-stage {
        min-height: auto;
        grid-template-columns: minmax(0, 100%);
        grid-template-rows: auto auto auto;
        place-items: center;
        align-content: start;
        padding: 5.5rem 0 2.5rem;
    }

    .hero-word {
        position: relative;
        z-index: 5;
        grid-column: 1;
        grid-row: 1;
        top: auto;
        left: auto;
        bottom: auto;
        width: 100%;
        margin: 0 0 0.75rem;
        padding-inline: 1rem;
        justify-self: stretch;
        font-size: 3.25rem;
        line-height: 0.78;
        transform: none;
    }

    .hero-word span {
        width: 100%;
        max-width: 100%;
        justify-self: stretch;
        text-align: center;
    }

    .hero-body {
        position: relative;
        grid-column: 1;
        grid-row: 2;
        bottom: auto;
        left: auto;
        width: 116vw;
        height: min(64svh, 38rem);
        justify-self: center;
        transform: none;
    }

    .hero-eye-star {
        width: 4rem;
    }

    .hero-mobile-name {
        position: relative;
        z-index: 7;
        grid-column: 1;
        grid-row: 3;
        left: auto;
        bottom: auto;
        display: flex;
        width: 100%;
        margin: 0.25rem 0 0;
        padding-inline: 1rem;
        align-items: center;
        justify-content: center;
        justify-self: stretch;
        color: #fff;
        font-family: "Old London", Georgia, "Times New Roman", serif;
        font-size: 3.1rem;
        line-height: 0.9;
        text-align: center;
        white-space: nowrap;
        text-shadow: 0 0 2rem rgba(217, 212, 200, 0.18);
        transform: none;
    }

    .project-proof-section {
        display: block;
        min-height: auto;
        overflow: visible;
        padding: 5.5rem 0 5rem;
    }

    .site-footer {
        min-height: 82svh;
        padding: 5rem 0;
    }

    .intro-section {
        min-height: auto;
        padding: 3.5rem 0;
    }

    .about-panel {
        min-height: auto;
        padding-block: 0;
    }

    .about-panel h2 {
        display: none;
    }

    .intro-section::before {
        left: -15rem;
        width: 30rem;
    }

    .about-panel p {
        margin-top: 0;
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .footer-layout h2 {
        font-size: 3rem;
        line-height: 0.95;
    }

    .project-lab-header h2 {
        font-size: 3.35rem;
        line-height: 0.92;
    }

    .project-lab {
        display: block;
    }

    .project-lab.reveal,
    .project-lab.reveal.active {
        transform: none;
    }

    .project-lab-header {
        position: relative;
        z-index: 50;
        top: auto;
        display: flex;
        min-height: 0;
        align-items: flex-end;
        padding: 0 0 1.75rem;
        border-bottom: 0;
        background: transparent;
    }

    .project-columns {
        position: relative;
        z-index: 1;
        display: block;
    }

    .project-column {
        min-height: 0;
        padding: 0;
    }

    .project-column + .project-column {
        margin-top: 3.5rem;
        padding-top: 0;
    }

    .project-column__header {
        position: relative;
        z-index: 45;
        top: auto;
        min-height: 0;
        align-items: flex-end;
        gap: 0.5rem;
        padding: 0.85rem 0 0.75rem;
        background: transparent;
        backdrop-filter: none;
    }

    .project-column__header h3 {
        font-size: 2.1rem;
    }

    .project-column__header span {
        font-size: 0.65rem;
    }

    .project-column .project-row__main {
        grid-template-columns: 1.6rem minmax(0, 1fr) 1.2rem;
        gap: 0.55rem;
        padding: 1rem 0;
    }

    .project-column .project-row:hover .project-row__main,
    .project-column .project-row:focus-within .project-row__main {
        padding-left: 0;
    }

    .project-column .project-row__identity {
        min-width: 0;
        gap: 0.35rem;
    }

    .project-column .project-row__identity strong {
        font-size: 1.45rem;
        line-height: 1.08;
    }

    .project-column .project-row__identity small {
        font-size: 0.62rem;
    }

    .project-column .project-row__summary {
        grid-column: 1 / -1;
        padding-right: 0.25rem;
        font-size: 0.82rem;
        line-height: 1.5;
    }

    .project-column .project-row__arrow {
        font-size: 1.2rem;
    }

    .project-column .project-row__proofs {
        gap: 0.45rem 0.75rem;
        padding: 0 0 1rem;
        font-size: 0.68rem;
    }

    .project-column__header.reveal,
    .project-row.reveal {
        transform: translateY(1.25rem);
        transition-duration: 560ms;
    }

    .project-column__header.reveal.active,
    .project-row.reveal.active {
        transform: translateY(0);
    }

    .project-row__main {
        grid-template-columns: 2rem minmax(0, 1fr) 1.5rem;
        gap: 0.75rem;
        min-height: 0;
        padding: 1.35rem 0.25rem;
    }

    .project-row:hover .project-row__main,
    .project-row:focus-within .project-row__main {
        padding-left: 0.25rem;
    }

    .project-row__identity strong {
        font-size: 1.75rem;
        line-height: 1.06;
    }

    .project-row__summary {
        grid-column: 2 / -1;
        font-size: 0.9rem;
    }

    .project-row__arrow {
        grid-column: 3;
        grid-row: 1;
    }

    .project-row__proofs {
        padding: 0 0.25rem 1.35rem 3rem;
    }

    .project-cursor-preview {
        display: none;
    }

    .btn {
        width: 100%;
    }

    .footer-actions {
        width: 70%;
        flex-wrap: nowrap;
        gap: 0.6rem;
    }

    .footer-actions .btn {
        width: auto;
        min-width: 0;
        flex: 1 1 0;
        padding-inline: 0.55rem;
        font-size: 0.82rem;
    }

    .site-footer::before {
        bottom: -17rem;
        width: 26rem;
        opacity: 0.08;
    }

    .modal-panel {
        padding: 1.1rem;
    }

    #toast-container {
        right: 0.75rem;
        left: 0.75rem;
        width: auto;
    }
}

@media (max-width: 420px) {
    .hero-word {
        font-size: 3rem;
    }

    .hero-mobile-name {
        font-size: 2.7rem;
    }
}

@media (max-width: 380px) {
    .hero-word {
        font-size: 2.75rem;
    }

    .hero-mobile-name {
        font-size: 2.45rem;
    }

    .footer-layout h2 {
        font-size: 2.65rem;
    }

    .project-lab-header h2 {
        font-size: 3rem;
    }

    .project-column__header h3 {
        font-size: 1.9rem;
    }
}

@media (max-width: 340px) {
    .hero-word {
        font-size: 2.45rem;
    }

    .hero-mobile-name {
        font-size: 2.15rem;
    }

    .footer-layout h2 {
        font-size: 2.4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

}
