/* TNK Digital Studio — shared stylesheet */

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

body {
    background: #050505;
    color: #fff;
    font-family: "Inter", sans-serif;
    min-height: 100vh;
}

body.home-page {
    overflow: hidden;
}

body.content-page {
    overflow-x: hidden;
    overflow-y: auto;
}

.wrapper {
    padding: 80px;
}

body.content-page .wrapper {
    padding: 80px 80px 120px;
}

/* Terminal line */
.terminal-line {
    min-height: 1.25em;
    margin-bottom: 12px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 18px;
}

#main-command {
    display: inline-block;
}

/* Language selector */
.home-language-control {
    position: relative;
    display: inline-block;
}

#home-trigger {
    position: absolute;
    top: 0;
    left: 0;
    width: 5.2ch;
    height: 1.45em;
    cursor: pointer;
    z-index: 25;
}

#language-trigger {
    position: absolute;
    top: 0;
    left: 6.2ch;
    width: 3.4ch;
    height: 1.45em;
    cursor: pointer;
    z-index: 26;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    left: 6.2ch;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    min-width: 4ch;
    padding: 0;
    opacity: 0;
    transform: translateY(-2px);
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.home-language-control.languages-open .language-dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.language-dropdown a {
    display: block;
    width: 4ch;
    margin: 0;
    padding: 5px 0;
    color: #fff;
    text-decoration: none;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
    transform-origin: left center;
    transition: letter-spacing 0.2s ease, font-size 0.2s ease;
}

.language-dropdown a:hover,
.language-dropdown a:focus-visible {
    color: #fff;
    letter-spacing: 1.2px;
    font-size: 1.12em;
}

/* Boot message */
#initializing-line {
    transition: opacity 0.7s ease, transform 0.7s ease;
}

#initializing-line.is-hidden {
    opacity: 0;
    transform: translateY(-4px);
}

/* Brand / identity */
.identity-line {
    margin-top: 60px;
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    white-space: nowrap;
    min-height: 58px;
    transform-origin: left center;
    transition: letter-spacing 0.35s ease, transform 0.35s ease;
}

.identity-line:hover {
    letter-spacing: 2.2px;
    transform: scale(1.065);
}

.brand,
.tagline {
    display: inline-block;
    color: #fff;
}

.brand {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: -1px;
}

.tagline {
    margin-left: 0;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0;
}

/* Main menu */
.menu {
    margin-top: 48px;
}

.menu-item {
    display: block;
    width: fit-content;
    min-height: 1.25em;
    margin: 15px 0;
    color: #fff;
    text-decoration: none;
    font-size: 22px;
    font-weight: 400;
    cursor: pointer;
    transform-origin: left center;
    transition: letter-spacing 0.35s ease, transform 0.35s ease;
}

.menu-item:hover,
.menu-item:focus-visible {
    letter-spacing: 2px;
    transform: scale(1.03);
}

/* Typewriter cursor */
.typing-cursor::after {
    content: "_";
    display: inline-block;
    margin-left: 2px;
    animation: blink 0.8s steps(1, end) infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Content pages: About / Services / Prices */
.about-content {
    margin-top: 54px;
    max-width: 780px;
}

.about-title {
    min-height: 1.25em;
    font-size: 42px;
    font-weight: 300;
    letter-spacing: -0.8px;
}

.about-text {
    margin-top: 28px;
    max-width: 700px;
    font-size: 20px;
    font-weight: 300;
    line-height: 1.65;
}

.about-line {
    min-height: 1.65em;
}

.about-links {
    margin-top: 40px;
}

.about-link {
    display: block;
    width: fit-content;
    min-height: 1.3em;
    margin: 13px 0;
    color: #fff;
    font-size: 20px;
    text-decoration: none;
    transform-origin: left center;
    transition: letter-spacing 0.35s ease, transform 0.35s ease;
}

.about-link:hover,
.about-link:focus-visible {
    letter-spacing: 2px;
    transform: scale(1.04);
}

/* Inline links on Services */
.mixed-line {
    display: block;
}

.inline-price-link,
.inline-price-link:visited,
.inline-price-link:active {
    display: inline-block;
    color: #fff;
    text-decoration: underline;
    text-decoration-color: #fff;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: letter-spacing 0.25s ease, font-size 0.25s ease;
}

.inline-price-link:hover,
.inline-price-link:focus-visible {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: #fff;
    text-underline-offset: 3px;
    letter-spacing: 1px;
    font-size: 1.08em;
}

/* Footer */
.footer {
    color: #777;
    font-size: 12px;
}

body.home-page .footer {
    position: absolute;
    bottom: 40px;
    left: 80px;
}

body.content-page .footer {
    margin: 0 80px 40px;
}

/* Responsive */
@media (max-width: 850px) {
    .wrapper,
    body.content-page .wrapper {
        padding: 40px 28px 100px;
    }

    .identity-line {
        transform-origin: left center;
        transform: scale(clamp(0.58, 0.0015 * 100vw, 1));
    }

    .brand {
        font-size: 42px;
    }

    .tagline {
        font-size: 18px;
    }

    .about-title {
        font-size: 36px;
    }

    .about-text {
        font-size: 18px;
    }

    body.home-page .footer {
        left: 28px;
        bottom: 24px;
    }

    body.content-page .footer {
        margin: 0 28px 24px;
    }
}


/* Contact page */
.email-link,
.email-link:visited,
.email-link:hover,
.email-link:active {
    color: #fff;
    text-decoration: none;
}

.contact-form {
    margin-top: 34px;
    max-width: 620px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.form-row {
    margin: 16px 0;
}

.form-row label {
    display: block;
    margin-bottom: 7px;
    color: #fff;
    font-size: 17px;
}

.form-row input,
.form-row textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #777;
    border-radius: 0;
    outline: none;
    background: #050505;
    color: #fff;
    font: inherit;
    caret-color: #fff;
    transition: border-color 0.2s ease;
}

.form-row input:focus,
.form-row textarea:focus {
    border-color: #fff;
}

.form-row textarea {
    min-height: 140px;
    resize: vertical;
}

.form-submit {
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 19px;
    cursor: pointer;
    text-align: left;
    transition: letter-spacing 0.25s ease, font-size 0.25s ease;
}

.form-submit:hover,
.form-submit:focus-visible {
    letter-spacing: 1.5px;
    font-size: 1.08em;
}

.form-honeypot {
    display: none !important;
}

/* Message-sent pages */
.confirmation {
    margin-top: 60px;
    max-width: 760px;
}

.confirmation-title {
    font-size: 42px;
    font-weight: 300;
    letter-spacing: -0.8px;
    min-height: 1.25em;
}

.confirmation-text {
    margin-top: 28px;
    font-size: 20px;
    font-weight: 300;
    line-height: 1.65;
}

.confirmation-line {
    min-height: 1.65em;
}

.links {
    margin-top: 42px;
}

.links a {
    display: block;
    width: fit-content;
    margin: 13px 0;
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    transition: letter-spacing 0.25s ease, font-size 0.25s ease;
}

.links a:hover,
.links a:focus-visible {
    letter-spacing: 1.5px;
    font-size: 1.08em;
}

body.confirmation-page .wrapper {
    padding: 80px;
}

body.confirmation-page .footer {
    position: absolute;
    left: 80px;
    bottom: 40px;
}

@media (max-width: 850px) {
    .confirmation-title {
        font-size: 36px;
    }

    .confirmation-text {
        font-size: 18px;
    }

    body.confirmation-page .wrapper {
        padding: 40px 28px 100px;
    }

    body.confirmation-page .footer {
        left: 28px;
        bottom: 24px;
    }
}


/* Extra breathing room below the top command / language selector */
.wrapper > .terminal-line:first-child {
    margin-bottom: 12px;
    padding-bottom: 20px;
}
