@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;700&display=swap');

:root {
    --tmay-bg: #09090b;
    --tmay-bg-2: #121015;
    --tmay-paper: #16090c;
    --tmay-paper-2: #2a1015;
    --tmay-ink: #f5efe1;
    --tmay-muted: #a89f91;
    --tmay-bone: #e7d7b8;
    --tmay-red: #db2f3d;
    --tmay-red-dark: #74151f;
    --tmay-blood: #9f1723;
    --tmay-blood-dark: #4b070d;
    --tmay-line: rgba(245, 239, 225, 0.16);
    --tmay-shadow: 0 28px 80px rgba(0, 0, 0, 0.56);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.tmay-theme {
    margin: 0;
    min-width: 320px;
    color: var(--tmay-ink);
    background:
        radial-gradient(circle at 18% 12%, rgba(219, 47, 61, 0.24), transparent 28rem),
        radial-gradient(circle at 86% 10%, rgba(116, 21, 31, 0.28), transparent 22rem),
        linear-gradient(145deg, #060607 0%, #121015 46%, #070709 100%);
    font-family: "Chakra Petch", sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

body.tmay-theme::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    content: "";
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 82%);
}

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

.tmay-noise {
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;
    opacity: 0.1;
    mix-blend-mode: screen;
    background-image:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 4px),
        radial-gradient(circle, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 100% 4px, 9px 9px;
}

.tmay-container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.tmay-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(219, 47, 61, 0.24);
    background: rgba(9, 9, 11, 0.78);
    backdrop-filter: blur(18px);
}

.tmay-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    gap: 24px;
}

.tmay-brand,
.tmay-footer-brand {
    display: inline-flex;
    flex-direction: column;
    color: var(--tmay-ink);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    line-height: 0.95;
}

.tmay-brand img {
    max-height: 54px;
    width: auto;
}

.tmay-brand span {
    color: var(--tmay-muted);
    font-size: 0.78rem;
}

.tmay-brand strong,
.tmay-footer-brand {
    color: var(--tmay-bone);
    font-size: 1.15rem;
    text-shadow: 0 0 18px rgba(219, 47, 61, 0.32);
}

.tmay-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tmay-menu a {
    padding: 10px 13px;
    color: rgba(245, 239, 225, 0.78);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid transparent;
}

.tmay-menu a:hover {
    color: var(--tmay-bone);
    border-color: rgba(219, 47, 61, 0.42);
    background: rgba(219, 47, 61, 0.08);
}

.tmay-menu-toggle {
    display: none;
    width: 46px;
    height: 42px;
    border: 1px solid rgba(219, 47, 61, 0.42);
    color: var(--tmay-bone);
    background: rgba(219, 47, 61, 0.12);
}

.tmay-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
}

.tmay-hero {
    position: relative;
    overflow: hidden;
    padding: 82px 0 58px;
}

.tmay-hero::after {
    position: absolute;
    right: -8vw;
    bottom: -220px;
    width: 520px;
    height: 520px;
    content: "";
    background: radial-gradient(circle, rgba(219, 47, 61, 0.34), transparent 65%);
    filter: blur(6px);
}

.tmay-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
    gap: 56px;
    align-items: center;
}

.tmay-kicker {
    margin: 0 0 14px;
    color: var(--tmay-bone);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
}

.tmay-hero h1,
.tmay-section h1,
.tmay-section h2,
.tmay-page-hero h1 {
    margin: 0;
    font-weight: 700;
    line-height: 0.96;
    text-transform: uppercase;
    letter-spacing: -0.05em;
}

.tmay-hero h1 {
    max-width: 840px;
    font-size: clamp(4rem, 10vw, 8.7rem);
}

.tmay-page-hero h1 {
    max-width: 940px;
    font-size: clamp(3rem, 8vw, 6.8rem);
}

.tmay-section h2 {
    font-size: clamp(2.2rem, 5vw, 4.5rem);
}

.tmay-lead {
    max-width: 700px;
    margin-top: 24px;
    color: rgba(245, 239, 225, 0.82);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.tmay-hero-actions,
.tmay-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.tmay-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 22px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid currentColor;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.4);
}

.tmay-button-primary {
    color: var(--tmay-ink);
    border-color: rgba(219, 47, 61, 0.86);
    background:
        linear-gradient(180deg, rgba(219, 47, 61, 0.92), rgba(116, 21, 31, 0.98)),
        var(--tmay-blood);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}

.tmay-button-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 9px 9px 0 rgba(75, 7, 13, 0.95);
}

.tmay-button-ghost {
    color: var(--tmay-ink);
    background: rgba(245, 239, 225, 0.04);
}

.tmay-warning {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.tmay-warning span,
.tmay-pill {
    display: inline-flex;
    padding: 7px 10px;
    color: rgba(245, 239, 225, 0.75);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid rgba(245, 239, 225, 0.16);
    background: rgba(255, 255, 255, 0.035);
}

.tmay-cabinet {
    position: relative;
    padding: 26px 22px 34px;
    border: 2px solid rgba(245, 239, 225, 0.16);
    border-radius: 28px 28px 42px 42px;
    background:
        linear-gradient(140deg, rgba(219, 47, 61, 0.2), transparent 40%),
        linear-gradient(180deg, #22202a 0%, #0e0d11 100%);
    box-shadow: var(--tmay-shadow), inset 0 0 0 5px rgba(0, 0, 0, 0.22);
    transform: rotate(1.2deg);
}

.tmay-cabinet::before {
    display: block;
    margin-bottom: 18px;
    color: var(--tmay-bone);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.78rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    content: "The Morning After You";
}

.tmay-cabinet-art,
.tmay-screen,
.tmay-detail-image img,
.tmay-media-card img,
.tmay-reference-image img {
    width: 100%;
    border: 1px solid rgba(231, 215, 184, 0.24);
    background: #050505;
}

.tmay-cabinet-art,
.tmay-screen {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: inset 0 0 42px rgba(219, 47, 61, 0.14);
}

.tmay-screen {
    display: grid;
    place-items: center;
    padding: 28px;
    text-align: center;
    background:
        linear-gradient(rgba(231, 215, 184, 0.055) 50%, rgba(0, 0, 0, 0.18) 50%),
        radial-gradient(circle at center, rgba(219, 47, 61, 0.2), #060607 70%);
    background-size: 100% 5px, auto;
}

.tmay-screen-label {
    position: absolute;
    top: 72px;
    color: var(--tmay-bone);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
}

.tmay-eye {
    width: 150px;
    height: 78px;
    border: 3px solid var(--tmay-red);
    border-radius: 70% 12%;
    box-shadow: 0 0 40px rgba(219, 47, 61, 0.45);
    transform: rotate(-11deg);
}

.tmay-eye::after {
    display: block;
    width: 44px;
    height: 44px;
    margin: 14px auto;
    content: "";
    border-radius: 50%;
    background: var(--tmay-blood);
    box-shadow: 0 0 28px rgba(219, 47, 61, 0.76);
}

.tmay-screen p {
    color: rgba(231, 215, 184, 0.84);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.tmay-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 22px;
}

.tmay-controls span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--tmay-red);
    box-shadow: inset -4px -5px 0 rgba(0, 0, 0, 0.22);
}

.tmay-controls span:nth-child(2) { background: var(--tmay-blood-dark); }

.tmay-controls strong {
    padding: 8px 12px;
    color: var(--tmay-bone);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.8rem;
    border: 1px solid rgba(231, 215, 184, 0.22);
    background: #12080a;
}

.tmay-strip {
    border-block: 1px solid rgba(219, 47, 61, 0.24);
    background: rgba(0, 0, 0, 0.28);
}

.tmay-strip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.tmay-strip-grid div {
    padding: 22px;
    border-right: 1px solid rgba(219, 47, 61, 0.2);
}

.tmay-strip-grid div:last-child { border-right: 0; }

.tmay-strip-grid strong {
    display: block;
    color: var(--tmay-bone);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.tmay-strip-grid span {
    color: rgba(245, 239, 225, 0.82);
    font-size: 1.05rem;
}

.tmay-section,
.tmay-page-hero {
    padding: 92px 0;
}

.tmay-page-hero {
    overflow: hidden;
    border-bottom: 1px solid rgba(245, 239, 225, 0.12);
    background:
        linear-gradient(105deg, rgba(219, 47, 61, 0.14), transparent 60%),
        rgba(0, 0, 0, 0.14);
}

.tmay-split {
    display: grid;
    grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.tmay-prose,
.tmay-manuscript,
.tmay-page-content {
    color: rgba(245, 239, 225, 0.82);
    font-size: 1.08rem;
}

.tmay-prose p:first-child,
.tmay-page-content p:first-child { margin-top: 0; }

.tmay-prose a,
.tmay-page-content a,
.tmay-manuscript a { color: var(--tmay-bone); }

.tmay-section-paper {
    color: var(--tmay-ink);
    background:
        radial-gradient(circle at 14% 18%, rgba(219, 47, 61, 0.22), transparent 26rem),
        linear-gradient(135deg, #12080a 0%, #09090b 62%, #1a080c 100%);
    border-block: 1px solid rgba(219, 47, 61, 0.22);
}

.tmay-section-paper .tmay-kicker { color: var(--tmay-bone); }

.tmay-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 34px;
}

.tmay-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.tmay-card {
    min-height: 280px;
    padding: 24px;
    border: 1px solid rgba(219, 47, 61, 0.26);
    background:
        linear-gradient(150deg, rgba(116, 21, 31, 0.42), rgba(255, 255, 255, 0.035)),
        rgba(5, 5, 6, 0.64);
    box-shadow: 8px 8px 0 rgba(116, 21, 31, 0.28);
}

.tmay-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 28px;
    color: var(--tmay-bone);
    font-family: "IBM Plex Mono", monospace;
    font-weight: 700;
    background: #09090b;
}

.tmay-card h3,
.tmay-media-card h3,
.tmay-reference-card h3,
.tmay-service-card h3 {
    margin: 0 0 12px;
    font-size: 1.35rem;
    line-height: 1.1;
}

.tmay-card p,
.tmay-media-card span,
.tmay-reference-card p,
.tmay-service-card p { color: rgba(245, 239, 225, 0.72); }

.tmay-card a,
.tmay-media-card a,
.tmay-reference-card a,
.tmay-service-card a {
    display: inline-flex;
    margin-top: 12px;
    color: var(--tmay-bone);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.83rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tmay-quote-panel {
    position: relative;
    padding: 46px;
    border: 1px solid rgba(231, 215, 184, 0.18);
    background:
        linear-gradient(135deg, rgba(219, 47, 61, 0.12), transparent 38%),
        rgba(255, 255, 255, 0.035);
    box-shadow: var(--tmay-shadow);
}

.tmay-quote-mark {
    color: var(--tmay-red);
    font-size: 6rem;
    line-height: 0.7;
}

.tmay-quote-panel blockquote {
    max-width: 940px;
    margin: 0;
    font-size: clamp(1.55rem, 3.5vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

.tmay-quote-panel p {
    max-width: 680px;
    color: var(--tmay-muted);
}

.tmay-media-grid,
.tmay-reference-grid,
.tmay-service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tmay-media-card,
.tmay-reference-card,
.tmay-service-card {
    overflow: hidden;
    border: 1px solid rgba(219, 47, 61, 0.26);
    background:
        linear-gradient(150deg, rgba(116, 21, 31, 0.4), rgba(255, 255, 255, 0.035)),
        rgba(5, 5, 6, 0.66);
    box-shadow: 8px 8px 0 rgba(116, 21, 31, 0.24);
}

.tmay-media-card img,
.tmay-reference-card img,
.tmay-service-card img,
.tmay-reference-image img,
.tmay-detail-image img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center;
}

.tmay-media-card div,
.tmay-reference-card div,
.tmay-service-card div { padding: 22px; }

.tmay-media-card p,
.tmay-reference-card small {
    margin: 0 0 8px;
    color: var(--tmay-bone);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.tmay-manuscript {
    position: relative;
    padding: 42px;
    color: rgba(245, 239, 225, 0.84);
    background:
        linear-gradient(120deg, rgba(116, 21, 31, 0.52), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        #0d080a;
    border: 1px solid rgba(231, 215, 184, 0.18);
    box-shadow: 12px 12px 0 rgba(116, 21, 31, 0.34);
    transform: rotate(-0.4deg);
}

.tmay-manuscript h2 {
    margin-bottom: 20px;
    color: var(--tmay-ink);
}

.tmay-contact-section {
    border-top: 1px solid rgba(219, 47, 61, 0.22);
    background: rgba(0, 0, 0, 0.22);
}

.tmay-contact-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
    gap: 44px;
}

.tmay-contact-mail {
    display: inline-flex;
    margin-top: 18px;
    color: var(--tmay-bone);
    font-family: "IBM Plex Mono", monospace;
}

.tmay-form {
    padding: 28px;
    border: 1px solid rgba(245, 239, 225, 0.14);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: var(--tmay-shadow);
}

.tmay-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.tmay-form label {
    display: grid;
    gap: 7px;
    color: var(--tmay-muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tmay-form label.full { grid-column: 1 / -1; }

.tmay-form input,
.tmay-form textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    color: var(--tmay-ink);
    font: inherit;
    border: 1px solid rgba(245, 239, 225, 0.16);
    background: rgba(0, 0, 0, 0.28);
}

.tmay-form textarea {
    min-height: 150px;
    resize: vertical;
}

.tmay-form button { margin-top: 18px; }

.tmay-form-alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.85rem;
}

.tmay-form-alert-success {
    color: var(--tmay-ink);
    border: 1px solid rgba(219, 47, 61, 0.5);
    background:
        linear-gradient(135deg, rgba(159, 23, 35, 0.94), rgba(75, 7, 13, 0.96)),
        var(--tmay-blood-dark);
}

.tmay-form-alert-error {
    color: var(--tmay-ink);
    background: var(--tmay-red-dark);
}

.tmay-honeypot {
    position: absolute;
    left: -10000px;
}

.tmay-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 44px;
    align-items: start;
}

.tmay-page-panel {
    padding: 24px;
    border: 1px solid rgba(231, 215, 184, 0.18);
    background: rgba(255, 255, 255, 0.045);
}

.tmay-page-panel h2 {
    font-size: 1.3rem;
    letter-spacing: 0;
}

.tmay-detail-image { margin-bottom: 26px; }

.tmay-empty {
    padding: 32px;
    color: rgba(245, 239, 225, 0.74);
    border: 1px solid rgba(245, 239, 225, 0.13);
    background: rgba(255, 255, 255, 0.04);
}

.tmay-footer {
    padding: 58px 0 26px;
    border-top: 1px solid rgba(245, 239, 225, 0.12);
    background: #050506;
}

.tmay-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.6fr 0.7fr;
    gap: 42px;
}

.tmay-footer p {
    max-width: 520px;
    color: var(--tmay-muted);
}

.tmay-footer h4 {
    margin: 0 0 12px;
    color: var(--tmay-bone);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.13em;
}

.tmay-footer a,
.tmay-footer span {
    display: block;
    margin: 7px 0;
    color: rgba(245, 239, 225, 0.72);
    text-decoration: none;
}

.tmay-footer a:hover { color: var(--tmay-bone); }

.tmay-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 38px;
    padding-top: 20px;
    color: rgba(245, 239, 225, 0.52);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.78rem;
    border-top: 1px solid rgba(245, 239, 225, 0.1);
}

@media (max-width: 980px) {
    .tmay-menu-toggle { display: block; }

    .tmay-menu {
        position: absolute;
        top: 82px;
        right: 20px;
        left: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid rgba(219, 47, 61, 0.28);
        background: rgba(9, 9, 11, 0.96);
        box-shadow: var(--tmay-shadow);
    }

    .tmay-menu.is-open { display: flex; }

    .tmay-hero-grid,
    .tmay-split,
    .tmay-contact-grid,
    .tmay-page-grid { grid-template-columns: 1fr; }

    .tmay-card-grid,
    .tmay-media-grid,
    .tmay-reference-grid,
    .tmay-service-grid { grid-template-columns: repeat(2, 1fr); }

    .tmay-strip-grid { grid-template-columns: repeat(2, 1fr); }

    .tmay-footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    body.tmay-theme { font-size: 15px; }

    .tmay-container { width: min(100% - 28px, 1160px); }

    .tmay-hero,
    .tmay-section,
    .tmay-page-hero { padding: 58px 0; }

    .tmay-hero h1,
    .tmay-page-hero h1 { font-size: clamp(3rem, 18vw, 4.8rem); }

    .tmay-card-grid,
    .tmay-media-grid,
    .tmay-reference-grid,
    .tmay-service-grid,
    .tmay-form-grid,
    .tmay-strip-grid { grid-template-columns: 1fr; }

    .tmay-strip-grid div {
        border-right: 0;
        border-bottom: 1px solid rgba(219, 47, 61, 0.2);
    }

    .tmay-manuscript,
    .tmay-quote-panel,
    .tmay-form { padding: 24px; }

    .tmay-footer-bottom { flex-direction: column; }
}
