:root {
    --card: #ffffff;
    --ring: #3b82f6;
    --input: #e5e7eb;
    --muted: #f9fafb;
    --accent: #e0f2fe;
    --border: #e5e7eb;
    --radius: 0.375rem;
    --chart-1: #3b82f6;
    --chart-2: #2563eb;
    --chart-3: #1d4ed8;
    --chart-4: #1e40af;
    --chart-5: #1e3a8a;
    --popover: #ffffff;
    --primary: #3b82f6;
    --sidebar: #f9fafb;
    --font-mono: "JetBrains Mono", monospace;
    --font-sans: Inter, Arial, Helvetica, sans-serif;
    --font-serif: "Source Serif 4", Georgia, serif;
    --secondary: #f3f4f6;
    --background: #ffffff;
    --foreground: #333333;
    --destructive: #ef4444;
    --sidebar-ring: #3b82f6;
    --sidebar-accent: #e0f2fe;
    --sidebar-border: #e5e7eb;
    --card-foreground: #333333;
    --sidebar-primary: #3b82f6;
    --muted-foreground: #6b7280;
    --accent-foreground: #1e3a8a;
    --popover-foreground: #333333;
    --primary-foreground: #ffffff;
    --sidebar-foreground: #333333;
    --secondary-foreground: #4b5563;
    --destructive-foreground: #ffffff;
    --sidebar-accent-foreground: #1e3a8a;
    --sidebar-primary-foreground: #ffffff;
}

.dark {
    --card: #262626;
    --ring: #3b82f6;
    --input: #404040;
    --muted: #1f1f1f;
    --accent: #1e3a8a;
    --border: #404040;
    --radius: 0.375rem;
    --chart-1: #60a5fa;
    --chart-2: #3b82f6;
    --chart-3: #2563eb;
    --chart-4: #1d4ed8;
    --chart-5: #1e40af;
    --popover: #262626;
    --primary: #3b82f6;
    --sidebar: #171717;
    --secondary: #262626;
    --background: #171717;
    --foreground: #e5e5e5;
    --destructive: #ef4444;
    --sidebar-ring: #3b82f6;
    --sidebar-accent: #1e3a8a;
    --sidebar-border: #404040;
    --card-foreground: #e5e5e5;
    --sidebar-primary: #3b82f6;
    --muted-foreground: #a3a3a3;
    --accent-foreground: #bfdbfe;
    --popover-foreground: #e5e5e5;
    --primary-foreground: #ffffff;
    --sidebar-foreground: #e5e5e5;
    --secondary-foreground: #e5e5e5;
    --destructive-foreground: #ffffff;
    --sidebar-accent-foreground: #bfdbfe;
    --sidebar-primary-foreground: #ffffff;
}

@font-face {
    font-family: "Noto Sans";
    src: url("fonts/noto-sans-light.ttf") format("truetype");
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: "Oxanium";
    src: url("fonts/oxanium-light.ttf") format("truetype");
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--background);
    color: var(--foreground);
    font-family: var(--font-sans);
    font-weight: 400;
}

main {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(16px, 3.5vh, 36px) 24px 0;
}

.hero {
    width: min(1800px, 110vw);
    max-width: none;
    flex: none;
    animation: reveal 700ms 120ms ease-out both;
}

.intro {
    width: 100%;
    max-width: 1120px;
    margin: 0 0 clamp(12px, 2vh, 22px);
    color: var(--foreground);
    font-size: clamp(23px, 2.5vw, 34px);
    line-height: 1.4;
    animation: reveal 600ms ease-out both;
}

.brand-art {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 1;
}

.brand-logo {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.brand-logo-dark,
.footer-logo-dark {
    display: none;
}

.dark .brand-logo-dark {
    display: block;
}

.dark .brand-logo:not(.brand-logo-dark),
.dark .footer-logo-light {
    display: none;
}

.dark .footer-logo-dark {
    display: block;
}

.directions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 1120px;
    margin-top: clamp(64px, 9vh, 100px);
    visibility: hidden;
}

.content-ready .directions {
    visibility: visible;
}

.technical-line {
    position: relative;
    width: 100%;
    max-width: 1120px;
    height: 1px;
    margin-top: clamp(12px, 2vh, 22px);
    overflow: visible;
    background: var(--border);
    opacity: 0;
    visibility: hidden;
}

.content-ready .technical-line {
    visibility: visible;
    animation: fade-in 350ms ease-out forwards;
}

.technical-line::before {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, var(--primary), var(--chart-1));
    transform: scaleX(0);
    transform-origin: left;
}

.technical-line::after {
    position: absolute;
    top: 50%;
    right: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    content: "";
    opacity: 0;
    transform: translate(50%, -50%);
}

.content-ready .technical-line::before {
    animation: draw-line 700ms 100ms ease-out forwards;
}

.content-ready .technical-line::after {
    animation: fade-in 200ms 750ms ease-out forwards;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    color: var(--card-foreground);
    opacity: 0;
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.content-ready .card {
    animation: fade-in 500ms ease-out both;
}

.card:nth-child(1) {
    animation-delay: 180ms;
}

.card:nth-child(2) {
    animation-delay: 300ms;
}

.card:nth-child(3) {
    animation-delay: 420ms;
    filter: opacity(0.78) saturate(0.8);
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--ring);
    box-shadow: 0 0 0 1px var(--accent), 0 16px 36px rgba(59, 130, 246, 0.16);
    filter: none;
}

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 30px;
    color: var(--primary);
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    transition: transform 240ms ease;
}

.card:hover .card-icon {
    transform: translateY(-2px) scale(1.06);
}

.card p {
    margin: 0;
    color: var(--muted-foreground);
    font-size: clamp(21px, 2vw, 26px);
    line-height: 1.4;
}

.badge {
    position: absolute;
    bottom: 22px;
    right: 24px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--primary);
    color: var(--primary-foreground);
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.12em;
}

.process {
    width: 100%;
    max-width: 900px;
    margin-top: clamp(90px, 13vh, 150px);
}

.process h2 {
    margin: 0 0 clamp(46px, 7vh, 72px);
    color: var(--foreground);
    font-size: clamp(30px, 4.5vw, 56px);
    line-height: 1.15;
    font-weight: 300;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 600ms ease, transform 600ms ease;
}

.process-list {
    position: relative;
    display: grid;
    gap: clamp(140px, 20vh, 230px);
}

.process-list::before {
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 8px;
    width: 1px;
    background: linear-gradient(var(--primary), var(--chart-1));
    content: "";
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 1100ms 300ms ease;
}

.process-step {
    display: grid;
    grid-template-columns: 18px 1fr;
    align-items: start;
    gap: 24px;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 850ms ease, transform 850ms ease;
}

.process-dot {
    position: relative;
    z-index: 1;
    width: 17px;
    height: 17px;
    margin-top: 8px;
    border: 4px solid var(--background);
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.process-step p {
    margin: 0;
    color: var(--foreground);
    font-size: clamp(22px, 3vw, 38px);
    line-height: 1.25;
}

.process h2.is-visible,
.process-step.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.process.is-visible .process-list::before {
    transform: scaleY(1);
}

.contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    max-width: 1120px;
    margin: clamp(64px, 9vh, 100px) 0 0;
    color: var(--muted-foreground);
    font-size: clamp(17px, 1.8vw, 21px);
    opacity: 0;
    visibility: hidden;
}

.contact-copy {
    display: grid;
    gap: 5px;
    max-width: 520px;
}

.contact-copy strong {
    color: var(--foreground);
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.2;
    font-weight: 300;
}

.content-ready .contact {
    visibility: visible;
    animation: reveal 500ms 620ms ease-out forwards;
}

.contact-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-option {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    background: transparent;
    color: var(--primary);
    text-decoration: none;
    transition: color 200ms ease, background 200ms ease, transform 200ms ease;
}

a.contact-option span {
    transition: transform 200ms ease;
}

a.contact-option:hover,
a.contact-option:focus-visible {
    background: var(--primary);
    color: var(--primary-foreground);
    transform: translateY(-2px);
}

a.contact-option:hover span,
a.contact-option:focus-visible span {
    transform: translate(3px, -3px);
}

.contact-option[aria-disabled="true"] {
    border-color: var(--border);
    color: var(--muted-foreground);
    cursor: default;
    opacity: 0.72;
}

footer {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: clamp(36px, 6vw, 90px);
    width: 100vw;
    margin-top: clamp(70px, 10vh, 120px);
    padding: clamp(42px, 7vh, 72px) max(24px, calc((100vw - 1120px) / 2));
    background: var(--secondary);
    color: var(--secondary-foreground);
    font-size: 15px;
    line-height: 1.5;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
}

.footer-column:not(:first-child) {
    gap: 18px;
}

.footer-column:last-child {
    align-items: flex-end;
    text-align: right;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.footer-brand img {
    width: 58px;
    height: 58px;
    flex: none;
}

.footer-brand-name {
    display: flex;
    align-items: baseline;
    gap: 10px;
    color: var(--foreground);
    font-family: "Oxanium", var(--font-sans);
    font-size: clamp(24px, 2.5vw, 34px);
    line-height: 1;
    font-weight: 300;
    white-space: nowrap;
}

.footer-frame {
    letter-spacing: -0.045em;
}

.footer-studio {
    font-size: 0.58em;
    letter-spacing: 0.12em;
}

.footer-column strong {
    color: var(--foreground);
    font-size: clamp(17px, 1.6vw, 21px);
    line-height: 1.35;
    font-weight: 300;
}

.footer-column a {
    color: var(--foreground);
    font-size: clamp(17px, 1.6vw, 21px);
    text-decoration-color: var(--primary);
    text-underline-offset: 5px;
}

.theme-toggle {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    color: var(--foreground);
    cursor: pointer;
    transition: border-color 200ms ease, background 200ms ease;
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-toggle .theme-icon-sun,
.dark .theme-toggle .theme-icon-moon {
    display: none;
}

.dark .theme-toggle .theme-icon-sun {
    display: block;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    border-color: var(--ring);
    background: var(--accent);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes draw-line {
    to {
        transform: scaleX(1);
    }
}

@media (max-width: 760px) {
    main {
        padding: 16px 16px 0;
    }

    .hero {
        width: calc(100vw - 16px);
    }

    .intro {
        max-width: 520px;
        margin-bottom: 14px;
        font-size: clamp(20px, 6vw, 27px);
        line-height: 1.3;
        text-align: center;
    }

    .technical-line {
        margin-top: 18px;
    }

    .directions {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 56px;
    }

    .card {
        min-height: 220px;
        padding: 26px;
        border-radius: var(--radius);
    }

    .card:nth-child(3) {
        padding-bottom: 64px;
    }

    .card-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 22px;
    }

    .card p {
        font-size: clamp(19px, 5.3vw, 23px);
    }

    .badge {
        right: 20px;
        bottom: 20px;
    }

    .contact {
        flex-direction: column;
        gap: 12px;
        margin-top: 68px;
        text-align: center;
    }

    .contact-copy {
        gap: 7px;
    }

    .process {
        margin-top: 84px;
    }

    .process h2 {
        margin-bottom: 50px;
        font-size: clamp(30px, 9vw, 42px);
        text-align: center;
    }

    .process-step {
        grid-template-columns: 16px minmax(0, 1fr);
        gap: 16px;
    }

    .process-list {
        gap: clamp(120px, 24vh, 190px);
    }

    .process-list::before {
        left: 7px;
    }

    .process-dot {
        width: 15px;
        height: 15px;
        margin-top: 6px;
    }

    .process-step p {
        font-size: clamp(20px, 5.8vw, 27px);
        line-height: 1.3;
    }

    .contact-options {
        display: grid;
        grid-template-columns: 1fr;
        justify-content: center;
        width: min(100%, 320px);
    }

    .contact-option {
        justify-content: center;
        min-height: 50px;
    }

    footer {
        grid-template-columns: 1fr;
        gap: 36px;
        width: 100vw;
        max-width: 100vw;
        margin-top: 72px;
        padding: 42px 20px;
        font-size: 14px;
    }

    .footer-column {
        min-width: 0;
        align-items: center;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
        max-width: 100%;
        margin-bottom: 14px;
    }

    .footer-brand-name {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        font-size: clamp(23px, 7vw, 30px);
        white-space: normal;
    }

    .footer-column:not(:first-child) {
        padding-top: 0;
    }

    .footer-column:last-child {
        align-items: center;
        text-align: center;
    }

    .footer-column strong,
    .footer-column a {
        max-width: 100%;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 380px) {
    .footer-brand {
        gap: 12px;
    }

    .footer-brand img {
        width: 48px;
        height: 48px;
    }

    .footer-brand-name {
        font-size: 22px;
    }

    footer {
        padding-inline: 16px;
    }
}

@media (hover: none) {
    .card:hover,
    .contact-option:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .intro,
    .hero,
    .card,
    .contact,
    .technical-line,
    .technical-line::before,
    .technical-line::after {
        animation: none;
        transition: none;
    }

    .technical-line::before {
        transform: scaleX(1);
    }

    .technical-line::after {
        opacity: 1;
    }

    .directions,
    .technical-line,
    .contact {
        visibility: visible;
    }

    .card,
    .technical-line,
    .contact {
        opacity: 1;
    }

    .process h2,
    .process-step {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .process-list::before {
        transform: scaleY(1);
        transition: none;
    }

    .card-icon,
    .contact-option,
    a.contact-option span {
        transition: none;
    }

}
