:root {
    --color-bg-dark: #211b1f;
    --color-teal: #5e8380;
    --color-blue: #5081a5;
    --color-green: rgb(67, 174, 132);
    --color-gold: #836339;

    --font-size-xl: 4rem;
    --font-size-lg: 3rem;
    --font-size-md: 2rem;
    --font-size-sm: 1rem;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-align: center;
    color: #FFFFFF;
    font-family: 'DM Sans', sans-serif;
}

html {
    background-color: var(--color-bg-dark);
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 23vh 27vh 50vh auto auto auto;
    grid-template-rows: 23svh 27svh 50svh auto auto auto;
    grid-template-areas:
        "company-name"
        "tagline"
        "photo"
        "contact"
        "meta";
    justify-items: center;
    align-items: center;
    margin-bottom: 5rem;
}

h1 {
    position: relative;
    z-index: 11;
    font-family: 'Lora', serif;
    font-size: var(--font-size-xl);
    grid-area: company-name;
    align-self: end;
    letter-spacing: 0.05em;
    color: var(--color-green);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 24px rgba(67, 174, 132, 0.2);
}

.tagline {
    position: relative;
    z-index: 10;
    font-family: 'Lora', serif;
    padding: 0 0.5rem;
    margin: 2rem 0;
    font-size: var(--font-size-md);
    grid-area: tagline;
    align-self: start;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    white-space: pre-line;
}

.founders-photo-wrapper {
    grid-area: photo;
    position: relative;
    width: 100%;
    height: 100%;
    container-type: inline-size;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.567));
}

.founders-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

img.founders-photo {
    --cutout-w: 30cqw;
    --cutout-h: 15cqw;

    mask-image:
        url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 50'><path d='M0,0 H100 A50,50 0 0,1 50,50 H0 Z' fill='white'/></svg>"),
        linear-gradient(#000, #000);
    mask-size:
        var(--cutout-w) var(--cutout-h),
        100% 100%;
    mask-position:
        center top,
        0 0;
    mask-repeat: no-repeat;
    mask-composite: exclude;

    -webkit-mask-image:
        url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 50'><path d='M0,0 H100 A50,50 0 0,1 50,50 H0 Z' fill='white'/></svg>"),
        linear-gradient(#000, #000);
    -webkit-mask-size:
        var(--cutout-w) var(--cutout-h),
        100% 100%;
    -webkit-mask-position:
        center top,
        0 0;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-composite: xor;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%;
    aspect-ratio: 1;
    border-radius: 0 0 50% 0%;
    background-color: transparent;
}

.logo {
    width: 80%;
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.567));
}

.contact {
    grid-area: contact;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    margin-top: 2rem;
}

.contact-card {
    margin: 0.75rem 3rem;
    width: 70%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
}

.contact-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
    color: var(--color-green);
}

.contact-name {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.5;
}

.contact-meta {
    grid-area: meta;
    color: #ffffff7a;
}

.contact-meta>* {
    color: #ffffff7a;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: color 0.2s ease;
}

.social-link:hover {
    color: var(--color-green);
    text-decoration-color: transparent;
}

.social-link svg {
    width: 2.5rem;
    height: 2.5rem;
    margin: 2rem;
    transition: transform 0.2s ease;
}

.social-link:hover svg {
    transform: scale(1.1);
}

a {
    color: #FFFFFF;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.4);
    text-underline-offset: 0.2em;
    text-decoration-thickness: 1px;
    transition:
        text-decoration-color 0.2s ease,
        opacity 0.2s ease;
}

a:hover {
    color: var(--color-green);
    text-decoration-color: var(--color-green);
}

/* Focus States */
a:focus {
    outline: none;
}

a:focus-visible {
    outline: 2px solid #FFFFFF;
    outline-offset: 4px;
    border-radius: 2px;
}

.tagline span {
    color: inherit;
    font-family: inherit;
}

.typing-cursor {
    position: relative;
}

.typing-cursor::after {
    content: "";
    display: inline-block;
    width: 0.6em;
    height: 1em;
    background-color: #FFFFFF;
    margin-left: 2px;
    vertical-align: -0.15em;
    animation: cursor-blink 1.06s step-end infinite;
}

.typing-active.typing-cursor::after {
    animation: none;
    opacity: 1;
}

@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .typing-cursor::after {
        animation: none;
    }
}

@media (min-width: 1024px) {

    html,
    body {
        height: 100%;
        height: 100vh;

    }

    .main-grid {
        height: 100%;
        margin: auto;
        max-width: 1400px;
        grid-template-columns: 2fr 1fr;
        grid-template-rows: 1fr 1fr 1fr 1fr 1fr;
        grid-template-areas:
            "void void"
            "photo company-name"
            "photo tagline"
            "photo contact"
            "meta meta";
    }

    .founders-photo {
        border-radius: 2rem;
    }

    .logo-wrapper {
        width: 20%;
    }

    img.founders-photo {
        --cutout-w: 20cqw;
        --cutout-h: 10cqw;
    }
}