@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/inter-400.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/inter-500.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/inter-600.woff') format('woff'); }

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 50% 40%,
            #faf8f4 0%,
            #f5f2ec 55%,
            #eeebe5 100%
        );

    color: #080808;

    font-family: "Inter", Arial, sans-serif;
}


/* =========================
   MAIN LAYOUT
   ========================= */

.page-shell {
    min-height: 100vh;
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px 6vw;
}

.hero {
    width: min(1280px, 100%);

    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(280px, calc((100svh - 352px) * 0.8), 540px);

    align-items: center;

    gap: clamp(40px, 4vw, 80px);
}


/* =========================
   BRAND
   ========================= */

.brand-wrap {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.brand-caption {
    max-width: 100%;
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
    overflow-wrap: anywhere;
}

/* SVG has an intrinsic width of 1880px; constrain it in every layout. */
.brand-logo {
    display: block;
    width: min(100%, 640px);
    max-width: 100%;
    height: auto;
}

.hero > * {
    min-width: 0;
}

/* =========================
   CARD
   ========================= */

.profile-card {
    width: 100%;

    padding: 22px;

    background: rgba(255, 255, 255, 0.94);

    border-radius: 6px;

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.08),
        0 3px 10px rgba(0, 0, 0, 0.05);
}


/* =========================
   IMAGE
   ========================= */

.photo-frame {
    width: 100%;

    overflow: hidden;
}

.profile-photo {
    display: block;

    width: 100%;

    height: auto;

    aspect-ratio: auto;

    object-fit: contain;
    object-position: center;

    user-select: none;
}


/* =========================
   SOCIAL LINKS
   ========================= */

.social-list {
    margin-top: 12px;
}

.social-link {
    min-height: 72px;

    display: grid;

    grid-template-columns:
        56px
        1fr
        40px;

    align-items: center;

    gap: 18px;

    padding: 10px 10px;

    color: #090909;

    text-decoration: none;

    border-bottom: 1px solid rgba(0, 0, 0, 0.12);

    transition:
        opacity 150ms ease,
        transform 150ms ease;
}

.social-link:last-child {
    border-bottom: 0;
}

.social-link:hover {
    opacity: 0.62;
}

.social-link:hover .arrow {
    transform: translateX(4px);
}

.social-name {
    font-size: 24px;
    font-weight: 400;

    letter-spacing: -0.025em;
}


/* =========================
   ICONS
   ========================= */

.social-icon {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #050505;
}

.social-icon svg {
    display: block;

    width: 100%;
    height: 100%;
}

.youtube-icon svg {
    width: 48px;
    height: auto;

    fill: currentColor;
}

.instagram-icon svg,
.coffee-icon svg {
    width: 44px;
    height: 44px;
}


/* =========================
   ARROW
   ========================= */

.arrow {
    justify-self: end;

    font-size: 38px;
    font-family: Arial, sans-serif;
    font-weight: 300;

    line-height: 1;

    transition: transform 150ms ease;
}


/* =========================
   MOBILE
   ========================= */

/* The actions keep their natural height; the photo fills the current viewport
   as browser controls expand and retract. Only actual safe-area insets remain. */
@media (max-width: 800px) {
    body {
        min-height: 100svh;
        min-height: 100dvh;
        background: #f3eee7;
    }

    .page-shell {
        min-height: 100svh;
        min-height: 100dvh;
        display: block;
        padding: 0;
    }

    .hero {
        --design-unit: calc(100vw / 640);
        --safe-area-bottom: env(safe-area-inset-bottom, 0px);
        position: relative;
        display: block;
        width: 100%;
        height: 100vh;
        height: 100svh;
        height: 100dvh;
        min-height: 0;
    }

    .brand-wrap {
        position: absolute;
        z-index: 2;
        top: calc(64 * var(--design-unit));
        left: calc(42 * var(--design-unit));
        width: calc(426 * var(--design-unit));
        align-items: flex-start;
        gap: calc(18 * var(--design-unit));
    }

    .brand-logo {
        width: 100%;
        max-width: none;
        filter: brightness(0) invert(1);
        opacity: 0.96;
    }

    .brand-caption {
        width: max-content;
        max-width: calc(100vw - 84 * var(--design-unit));
        color: #f3eee7;
        font-size: max(12px, calc(22 * var(--design-unit)));
        line-height: 1.35;
        letter-spacing: calc(2 * var(--design-unit));
        text-align: left;
    }

    .profile-card {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100%;
        min-height: 0;
        padding: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .photo-frame {
        position: relative;
        flex: 1 1 0;
        width: 100%;
        height: auto;
        min-height: 0;
        background: #3d2e23;
    }

    .photo-frame::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.18) 25%, transparent 48%);
        pointer-events: none;
    }

    .profile-photo {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 20%;
    }

    .social-list {
        --mobile-link-min-height: calc(96 * var(--design-unit));
        --mobile-arrow-size: calc(64 * var(--design-unit));
        --mobile-panel-top: calc(20 * var(--design-unit));
        --mobile-panel-bottom: max(16px, calc(24 * var(--design-unit)), var(--safe-area-bottom));
        position: relative;
        z-index: 3;
        flex: 0 0 auto;
        display: grid;
        width: 100%;
        margin: calc(-32 * var(--design-unit)) 0 0;
        padding: var(--mobile-panel-top) calc(31 * var(--design-unit)) var(--mobile-panel-bottom);
        border-radius: calc(32 * var(--design-unit)) calc(32 * var(--design-unit)) 0 0;
        background-color: #f3eee7;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.045' filter='url(%23grain)'/%3E%3C/svg%3E");
    }

    .social-link {
        --button-background: transparent;
        --icon-cutout: #f3eee7;
        min-height: var(--mobile-link-min-height);
        grid-template-columns: calc(60 * var(--design-unit)) minmax(0, 1fr) calc(40 * var(--design-unit));
        gap: calc(32 * var(--design-unit));
        padding: 0 calc(36 * var(--design-unit));
        border: 0;
        border-radius: 0;
        background: var(--button-background);
        color: #090909;
        opacity: 1;
        transition: background-color 150ms ease;
    }

    .social-link:hover {
        opacity: 1;
    }

    .social-link[data-platform="instagram"] {
        border-top: 1px solid #dcd7cf;
        border-bottom: 1px solid #dcd7cf;
    }

    .social-link:focus-visible {
        outline: 2px solid #090909;
        outline-offset: 3px;
    }

    .social-name {
        font-size: max(16px, calc(29.5 * var(--design-unit)));
        font-weight: 500;
        line-height: 1.25;
        letter-spacing: -0.035em;
    }

    .social-icon {
        width: calc(60 * var(--design-unit));
        height: calc(60 * var(--design-unit));
        color: inherit;
    }

    .youtube-icon svg {
        width: calc(60 * var(--design-unit));
    }

    .youtube-icon path {
        fill: var(--icon-cutout);
    }

    .instagram-icon svg,
    .coffee-icon svg {
        width: calc(56 * var(--design-unit));
        height: calc(56 * var(--design-unit));
    }

    .arrow {
        position: relative;
        top: calc(-9 * var(--design-unit));
        font-size: var(--mobile-arrow-size);
    }
}

@media (max-width: 800px) and (max-height: 700px) {
    .brand-wrap {
        top: 20px;
        width: min(60vw, 240px);
        gap: 8px;
    }

    .brand-caption {
        font-size: 13px;
    }

    .social-list {
        --mobile-link-min-height: 52px;
    }
}

@media (max-width: 800px) and (max-height: 620px) {
    .brand-wrap {
        top: 14px;
        width: min(52vw, 210px);
        gap: 6px;
    }

    .profile-photo {
        object-position: center 28%;
    }
}

@media (max-width: 800px) and (hover: hover) {
    .social-link:hover {
        --button-background: #e8e1d7;
        --icon-cutout: #e8e1d7;
        opacity: 1;
    }
}

/* =========================
   DESKTOP / LAPTOP / TABLET
   The same query selects the photograph in index.html.
   Narrow phone layouts keep the rules above.
   ========================= */

@media (min-width: 801px), (min-width: 700px) and (min-height: 700px) {
    body {
        min-height: 100vh;
        min-height: 100svh;
        min-height: 100dvh;
        background: #10120f;
        color: #f2f1e9;
        font-family: Arial, Helvetica, sans-serif;
    }

    .page-shell {
        display: block;
        min-height: 100vh;
        min-height: 100svh;
        min-height: 100dvh;
        padding: 0;
    }

    .hero {
        position: relative;
        display: block;
        width: 100%;
        height: 100vh;
        height: 100svh;
        height: 100dvh;
        min-height: 320px;
    }

    .brand-wrap {
        position: absolute;
        z-index: 2;
        top: 7.5%;
        left: 6%;
        width: 47%;
        max-width: 660px;
        align-items: flex-start;
        gap: 12px;
    }

    .brand-logo {
        width: 100%;
        max-width: none;
        filter: brightness(0) invert(1);
        opacity: 1;
    }

    .brand-caption {
        width: auto;
        max-width: 100%;
        color: #e1e1d7;
        font-size: 18px;
        font-weight: 400;
        line-height: 1.5;
        letter-spacing: 0.055em;
        text-align: left;
    }

    .profile-card {
        display: block;
        width: 100%;
        height: 100%;
        min-height: 0;
        padding: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .photo-frame {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        min-height: 0;
        background: #10120f;
    }

    .photo-frame picture {
        display: block;
        width: 100%;
        height: 100%;
    }

    .photo-frame::after {
        content: "";
        position: absolute;
        inset: 0;
        background:
            linear-gradient(180deg, rgba(4, 6, 3, 0.3), transparent 46%, rgba(4, 6, 3, 0.82)),
            linear-gradient(90deg, rgba(4, 6, 3, 0.34), transparent 70%);
        pointer-events: none;
    }

    .profile-photo {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
        object-fit: cover;
        object-position: 50% 52%;
    }

    .social-list {
        position: absolute;
        z-index: 3;
        left: 6%;
        right: 6%;
        bottom: 5%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 48px;
        width: auto;
        margin: 0;
        padding: 20px 0 0;
        border: 0;
        border-top: 1px solid #747970;
        border-radius: 0;
        background: none;
    }

    .social-list .social-link {
        --button-background: transparent;
        --icon-cutout: #131611;
        display: flex;
        align-items: center;
        gap: 15px;
        min-width: 0;
        min-height: 66px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #f2f1e9;
        opacity: 1;
    }

    .social-link:hover {
        --button-background: transparent;
        --icon-cutout: #131611;
        opacity: 1;
    }

    .social-link:focus-visible {
        outline: 2px solid currentColor;
        outline-offset: 5px;
    }

    .social-name {
        min-width: 0;
        font-size: 20px;
        font-weight: 400;
        line-height: 1.4;
        letter-spacing: normal;
        white-space: nowrap;
    }

    .social-icon {
        flex: 0 0 27px;
        width: 27px;
        height: 27px;
        color: inherit;
    }

    .youtube-icon svg {
        width: 27px;
        height: auto;
    }

    .youtube-icon path,
    .coffee-icon path[fill="white"] {
        fill: var(--icon-cutout);
    }

    .instagram-icon svg,
    .coffee-icon svg {
        width: 27px;
        height: 27px;
    }

    .arrow {
        position: static;
        top: auto;
        margin-left: auto;
        font-size: 30px;
        font-weight: 400;
        line-height: 1;
    }
}

@media (min-width: 801px) and (max-width: 1023px) {
    .social-list {
        gap: 32px;
    }

    .social-list .social-link {
        gap: 12px;
    }

    .social-name {
        font-size: 18px;
    }
}

/* A portrait or square tablet keeps every action within thumb reach. */
@media (min-width: 700px) and (min-height: 700px) and (max-aspect-ratio: 1/1) {
    .brand-wrap {
        top: 7%;
        left: 7%;
        width: 77%;
        max-width: none;
        gap: 16px;
    }

    .brand-caption {
        font-size: 19px;
    }

    .profile-photo {
        object-position: 52% center;
    }

    .social-list {
        left: 7%;
        right: 7%;
        bottom: 4%;
        display: block;
        padding: 9px 26px;
        border: 0;
        background: rgba(11, 16, 11, 0.9);
    }

    .social-list .social-link {
        min-height: 68px;
        border-bottom: 1px solid #535c4b;
    }

    .social-list .social-link:last-child {
        border-bottom: 0;
    }

    .social-name {
        font-size: 21px;
    }
}

/* Keep the mobile panel's total height, sharing its former top/bottom
   padding between three equal clickable rows. The system safe area stays
   outside the rows. This is the complement of the desktop/tablet query. */
@media (max-width: 699px), (max-width: 800px) and (max-height: 699px) {
    .social-list {
        --mobile-link-height: calc(
            (
                2 * max(var(--mobile-link-min-height), var(--mobile-arrow-size)) +
                max(var(--mobile-link-min-height), calc(var(--mobile-arrow-size) + 2px)) +
                var(--mobile-panel-top) + var(--mobile-panel-bottom) - var(--safe-area-bottom)
            ) / 3
        );
        grid-template-rows: repeat(3, var(--mobile-link-height));
        padding-top: 0;
        padding-bottom: var(--safe-area-bottom);
    }

    .social-link {
        height: 100%;
        min-height: 0;
    }
}

/* Desktop button feedback from the supplied Quiet Light reference.
   Existing layout, hit areas and the entrance below stay intact. */
@media (min-width: 801px), (min-width: 700px) and (min-height: 700px) {
    .social-list .social-link {
        --link-engaged: 0;
        position: relative;
        isolation: isolate;
        transition: transform 120ms ease;
    }

    .social-list .arrow {
        display: none;
    }

    .social-list .social-link::before {
        content: "";
        position: absolute;
        z-index: -1;
        inset: 0 -14px;
        border-radius: 4px;
        background: linear-gradient(110deg, rgba(242, 241, 233, 0.14), rgba(242, 241, 233, 0.025));
        opacity: var(--link-engaged);
        transform: translateY(calc((1 - var(--link-engaged)) * 3px));
        transition: opacity 250ms ease, transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
        pointer-events: none;
    }

    .social-list .social-link::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 1px;
        background: #eeece1;
        opacity: 0.85;
        transform: scaleX(var(--link-engaged));
        transform-origin: left center;
        transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
        pointer-events: none;
    }

    .social-list .social-name {
        transform: translateX(calc(var(--link-engaged) * 5px));
        transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    .social-list .social-icon {
        transform: translateY(calc(var(--link-engaged) * -2px));
        transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    .social-list .social-link:focus-visible,
    .social-list .social-link:active {
        --link-engaged: 1;
    }

    .social-list .social-link:active {
        transform: translateY(1px);
    }

    @media (hover: hover) and (pointer: fine) {
        .social-list .social-link:hover {
            --link-engaged: 1;
        }
    }

    /* Finite entrance, enabled for the selected preview. No photo zoom,
       script dependency or persistent animation transform after it ends. */
    .profile-photo {
        animation: kanata-balance-photo 1500ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
    }

    .brand-logo {
        --kanata-rise: 8px;
        animation: kanata-balance-rise 900ms 120ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
    }

    .brand-caption {
        --kanata-rise: 6px;
        animation: kanata-balance-rise 650ms 240ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
    }

    .social-list {
        --kanata-rise: 6px;
        animation: kanata-balance-rise 650ms 320ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
    }

    .social-list .social-link {
        --kanata-rise: 6px;
        animation: kanata-balance-rise 700ms var(--link-intro-delay, 400ms) cubic-bezier(0.22, 1, 0.36, 1) backwards;
    }

    .social-list .social-link:nth-child(2) {
        --link-intro-delay: 480ms;
    }

    .social-list .social-link:nth-child(3) {
        --link-intro-delay: 560ms;
    }
}

@keyframes kanata-balance-photo {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes kanata-balance-rise {
    from {
        opacity: 0;
        transform: translateY(var(--kanata-rise, 8px));
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .social-link,
    .arrow {
        transition: none;
    }
}

/* Replace only the mobile arrow glyph; keep the existing row geometry. */
@media (width < 700px), (max-width: 800px) and (height < 700px) {
    .social-list > .social-link > .arrow {
        top: 0;
        font-size: 0;
        line-height: 0;
    }

    .social-list > .social-link > .arrow::after {
        --chevron-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 30'%3E%3Cpath d='M2 2 14 15 2 28' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        content: "";
        display: block;
        width: calc(16 * var(--design-unit));
        height: calc(30 * var(--design-unit));
        background-color: currentColor;
        -webkit-mask: var(--chevron-shape) center / contain no-repeat;
        mask: var(--chevron-shape) center / contain no-repeat;
    }
}

/* A small continuation below the full-height landing screen. */
.site-footer {
    min-height: 64px;
    padding: 8px 20px max(12px, env(safe-area-inset-bottom, 0px));
    background-color: #f3eee7;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.045' filter='url(%23grain)'/%3E%3C/svg%3E");
    color: #615d56;
    text-align: center;
}

.site-footer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 8px;
    border-radius: 3px;
    color: inherit;
    font-size: 13px;
    line-height: 1.4;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.site-footer a:hover {
    color: #090909;
}

.site-footer a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

@media (min-width: 801px), (min-width: 700px) and (min-height: 700px) {
    .site-footer {
        padding-inline: 6%;
        background: #10120f;
        color: #b5b7af;
        text-align: right;
    }

    .site-footer a:hover {
        color: #f2f1e9;
    }
}
