/* Mizuora Software — Deep Ink Minimal */

:root {
    --background: #0b0b0d;
    --foreground: #f2f2f4;
    --surface: #151517;
    --primary: #4f8dfb;
    --muted: #83838f;
    --border: rgba(255, 255, 255, 0.08);
    --radius: 0.25rem;

    --font-display: "Inter", ui-sans-serif, system-ui, sans-serif;
    --font-serif: "Lora", ui-serif, Georgia, serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

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

* {
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--foreground);
    font-family: var(--font-display);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
}

::selection {
    background: rgba(79, 141, 251, 0.3);
}

a {
    color: inherit;
    text-decoration: none;
}
img {
    display: block;
    max-width: 100%;
}

.muted {
    color: var(--muted);
}
.mono {
    font-family: var(--font-mono);
}

/* ---------- watermark ---------- */
.watermark {
    position: fixed;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    pointer-events: none;
}
.watermark span {
    font-family: var(--font-serif);
    font-size: 70vw;
    line-height: 1;
    color: rgba(242, 242, 244, 0.035);
    user-select: none;
    animation: drift 26s ease-in-out infinite;
}
@media (min-width: 640px) {
    .watermark span {
        font-size: 52vw;
    }
}

.page {
    position: relative;
    z-index: 10;
}

/* ---------- nav ---------- */
nav {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid transparent;
    background: transparent;
    backdrop-filter: blur(12px);
    transition: background-color .5s, border-color .5s;
}
nav.scrolled {
    border-bottom-color: var(--border);
    background: rgba(11, 11, 13, 0.8);
}
.nav-inner {
    margin: 0 auto;
    max-width: 64rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.05em;
}
.brand .dot {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 2px;
    background-color: transparent;
    background-image: url('assets/tplogo.png');
    background-size: cover;
    background-position: center;
}
.nav-links {
    display: none;
    gap: 2rem;
}
.nav-links a {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: var(--muted);
    transition: color .3s;
}
.nav-links a:hover {
    color: var(--foreground);
}
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.pill {
    display: none;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: .5rem 1rem;
    font-size: .625rem;
    text-transform: uppercase;
    letter-spacing: .2em;
    transition: color .3s, border-color .3s;
}
.pill:hover {
    border-color: var(--primary);
    color: var(--primary);
}
@media (min-width: 640px) {
    .pill {
        display: inline-block;
    }
}

.burger {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: transparent;
    cursor: default;
    transition: border-color .3s;
}
.burger:hover {
    border-color: var(--primary);
}
.burger span {
    display: block;
    height: 1px;
    width: 1rem;
    background: var(--foreground);
    transition: transform .3s, opacity .3s;
}
.burger.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.burger.open span:nth-child(2) {
    opacity: 0;
}
.burger.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}
@media (min-width: 768px) {
    .burger {
        display: none;
    }
}

.mobile-menu {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height .5s var(--ease-out-expo), opacity .5s;
}
.mobile-menu.open {
    max-height: 24rem;
    opacity: 1;
}
.mobile-inner {
    margin: 1rem auto 0;
    max-width: 64rem;
    display: flex;
    flex-direction: column;
}
.mobile-inner a {
    border-bottom: 1px solid var(--border);
    padding: .75rem 0;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: var(--muted);
    transition: color .3s;
}
.mobile-inner a:hover {
    color: var(--foreground);
}
.mobile-inner a.accent {
    color: var(--primary);
    border-bottom: 0;
}
@media (min-width: 768px) {
    .mobile-menu {
        display: none;
    }
}

/* ---------- hero ---------- */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    padding: 6rem 1.5rem 8rem;
    text-align: center;
}
.hero-fx {
    position: absolute;
    inset: 0;
    opacity: .25;
    pointer-events: none;
}
.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 999px;
    animation: ripple 9s ease-out infinite;
}
.r1 {
    width: 24rem;
    height: 24rem;
    border: 1px solid rgba(242,242,244,.1);
}
.r2 {
    width: 520px;
    height: 520px;
    border: 1px solid rgba(242,242,244,.05);
    animation-delay: 3s;
}
.glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 720px;
    height: 720px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: rgba(79, 141, 251, .1);
    filter: blur(120px);
    animation: drift 22s ease-in-out infinite;
}
.hero-copy {
    position: relative;
    z-index: 10;
    margin: 0 auto;
    max-width: 42rem;
}
.eyebrow {
    display: block;
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
    font-size: .625rem;
    text-transform: uppercase;
    letter-spacing: .3em;
    color: var(--muted);
}
h1 {
    margin-bottom: 2rem;
    font-size: clamp(3rem, 9vw, 4.5rem);
    line-height: .9;
    font-weight: 700;
    letter-spacing: -0.05em;
    text-wrap: balance;
}
h1 em {
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--muted);
}
.lead {
    margin: 0 auto;
    max-width: 42ch;
    font-size: .875rem;
    line-height: 1.7;
    color: var(--muted);
}

/* ---------- stats ---------- */
.stats {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(21, 21, 23, .3);
    padding: 3rem 1.5rem;
}
.stats-grid {
    margin: 0 auto;
    max-width: 48rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
@media (min-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.stat-v {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
}
.stat-l {
    font-size: .625rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
}

/* ---------- sections ---------- */
.kicker {
    margin-bottom: 3rem;
    font-size: .625rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .4em;
    color: var(--muted);
}
.about {
    margin: 0 auto;
    max-width: 48rem;
    padding: 6rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}
.about .kicker {
    margin-bottom: 2rem;
}
.serif-lg {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    line-height: 1.35;
    text-wrap: pretty;
}
.two-col {
    display: grid;
    gap: 2rem;
    padding-top: 1.5rem;
}
@media (min-width: 640px) {
    .two-col {
        grid-template-columns: 1fr 1fr;
    }
}
.two-col h3 {
    margin-bottom: .5rem;
    font-size: 1.125rem;
    font-weight: 500;
}
.two-col p {
    font-size: .875rem;
    line-height: 1.7;
}

.services {
    padding-top: 3rem;
    scroll-margin-top: 6rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.service {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    transition: border-color .4s;
}
.service:hover {
    border-bottom-color: rgba(79,141,251,.5);
}
.service > span:first-child {
    font-size: 1.125rem;
    transition: transform .5s var(--ease-out-expo);
}
.service:hover > span:first-child {
    transform: translateX(4px);
}
.service .mono {
    font-size: .625rem;
    color: var(--muted);
}

/* ---------- works ---------- */
.works {
    background: rgba(21, 21, 23, .5);
    padding: 6rem 1.5rem;
}
.wrap {
    margin: 0 auto;
    max-width: 48rem;
}
.work-list {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}
.frame {
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: var(--radius);
    outline: 1px solid rgba(242,242,244,.05);
    outline-offset: -1px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,.6);
}
.frame img {
    aspect-ratio: 4 / 5;
    height: 50%;
    object-fit: cover;
    transition: transform .7s var(--ease-out-expo);
}
.work:hover .frame img {
    transform: scale(1.03);
}
.work-body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}
.work-body h3 {
    font-size: 1.125rem;
    font-weight: 500;
}
.work-body .tag {
    font-size: .875rem;
    margin-bottom: .75rem;
}
.work-body .copy {
    max-width: 52ch;
    font-size: .875rem;
    line-height: 1.7;
}
.link {
    display: inline-block;
    margin-top: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: .25rem;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .2em;
    transition: color .3s, border-color .3s;
}
.link:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.badge {
    flex-shrink: 0;
    border: 1px solid rgba(242,242,244,.1);
    background: rgba(242,242,244,.05);
    color: var(--muted);
    border-radius: var(--radius);
    padding: .25rem .5rem;
    font-size: .5625rem;
    text-transform: uppercase;
    letter-spacing: .1em;
}
.badge.live {
    border-color: rgba(79,141,251,.2);
    background: rgba(79,141,251,.1);
    color: var(--primary);
}

/* ---------- values ---------- */
.values {
    margin: 0 auto;
    max-width: 48rem;
    padding: 6rem 1.5rem;
}
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--border);
}
@media (min-width: 640px) {
    .values-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.cell {
    background: var(--background);
}
.cell-in {
    padding: 2rem 1rem 2rem 0;
}
@media (min-width: 640px) {
    .cell-in {
        padding: 2rem 1.5rem;
    }
}
.cell-in h4 {
    margin-bottom: .5rem;
    font-size: .75rem;
    font-weight: 400;
}
.cell-in p {
    font-size: .875rem;
    line-height: 1.7;
}

/* ---------- team ---------- */
.team {
    margin: 0 auto;
    max-width: 48rem;
    padding: 0 1.5rem 6rem;
    scroll-margin-top: 6rem;
}
.team-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 2rem;
}
.avatar {
    margin-bottom: 1.5rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--background);
}
.avatar span {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.125rem;
}
.team-card h3 {
    font-size: 1.25rem;
    font-weight: 500;
}
.team-card .role {
    font-size: .875rem;
    margin-bottom: 2rem;
}
.team-card .quote {
    max-width: 60ch;
    font-size: .75rem;
    line-height: 1.7;
    font-style: italic;
}

/* ---------- footer ---------- */
footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
    padding: 6rem 1.5rem;
}
.footer-inner {
    margin: 0 auto;
    max-width: 24rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}
.cta-title {
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.05em;
}
.cta {
    display: inline-block;
    width: 100%;
    background: var(--foreground);
    color: var(--background);
    padding: 1rem 0;
    font-weight: 500;
    letter-spacing: -0.01em;
    transition: opacity .3s;
}
.cta:hover {
    opacity: .9;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.footer-links a {
    font-size: .625rem;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: var(--muted);
    transition: color .3s;
}
.footer-links a:hover {
    color: var(--foreground);
}
.copyright {
    padding-top: 1.5rem;
    font-size: .625rem;
    color: rgba(131,131,143,.4);
}

/* ---------- motion utilities ---------- */
.reveal {
    opacity: 0;
    will-change: opacity, transform, filter;
}
.reveal-in {
    animation: fadeUpBlur 1.1s var(--ease-out-expo) both;
}

.perspective {
    perspective: 1200px;
}
.tilt {
    transform-style: preserve-3d;
    transition: transform .5s var(--ease-out-expo), box-shadow .5s var(--ease-out-expo);
    will-change: transform;
}

@keyframes fadeUpBlur {
    0% {
        opacity: 0;
        transform: translateY(24px);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}
@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(.7);
        opacity: 0;
    }
    40% {
        opacity: .14;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.6);
        opacity: 0;
    }
}
@keyframes drift {
    0%, 100% {
        transform: translate3d(-4%, -3%, 0) scale(1);
    }
    50% {
        transform: translate3d(4%, 4%, 0) scale(1.12);
    }
}
.glow {
    animation-name: drift;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .reveal {
        opacity: 1;
    }
}