/*
 * Index Portfolio - Free HTML/CSS portfolio template
 * Source: https://templates.inuno.app
 * Copyright (c) 2026 templates.inuno.app
 *
 * Free license note:
 * This free template may be used privately and commercially,
 * but the attribution/backlink to https://templates.inuno.app must remain.
 */

:root {
    --ink: #11110f;
    --paper: #f4f0e7;
    --panel: #fffaf0;
    --line: rgba(17, 17, 15, 0.16);
    --muted: #62675e;
    --lime: #dfff2f;
    --cyan: #7de4e4;
    --rose: #ff8a70;
    --shadow: 0 22px 70px rgba(17, 17, 15, 0.14);
    --radius: 8px;
    --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
    min-width: 320px;
    background: var(--paper);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        linear-gradient(90deg, rgba(125, 228, 228, 0.24), transparent 28%),
        linear-gradient(280deg, rgba(223, 255, 47, 0.34), transparent 34%),
        var(--paper);
    font-family: var(--font);
    letter-spacing: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    width: 100%;
}

.site-header,
main,
.site-footer {
    width: min(100% - 48px, 1240px);
    margin-inline: auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 0 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    font-weight: 900;
}

.brand span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: var(--radius);
    color: var(--lime);
    background: var(--ink);
    font-weight: 950;
}

.brand strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav a {
    min-width: 88px;
    padding: 12px 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 250, 240, 0.72);
    color: var(--muted);
    font-size: 14px;
    font-weight: 850;
    text-align: center;
}

.nav a:hover,
.nav a:focus-visible {
    color: var(--ink);
    background: var(--lime);
}

.project-wall {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: minmax(220px, auto);
    gap: 12px;
    min-height: calc(100vh - 168px);
}

.intro-tile,
.project-tile,
.page-shell,
.case-layout {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.intro-tile {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr) minmax(260px, 0.5fr);
    gap: 22px;
    align-items: end;
    padding: clamp(22px, 3vw, 34px);
    background: var(--panel);
}

.eyebrow {
    margin: 0 0 12px;
    color: #007d76;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 18px;
    font-size: clamp(42px, 7vw, 88px);
    line-height: 0.92;
    letter-spacing: 0;
}

.intro-tile h1 {
    max-width: 760px;
    margin-bottom: 0;
    font-size: clamp(38px, 5vw, 66px);
}

.intro-tile p:not(.eyebrow) {
    max-width: 420px;
    margin-bottom: 0;
}

h2 {
    font-size: clamp(26px, 4vw, 48px);
    line-height: 1;
    letter-spacing: 0;
}

p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.58;
}

.project-tile {
    position: relative;
    display: flex;
    min-height: 190px;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding: 18px;
    background: var(--panel);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-tile:hover,
.project-tile:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 30px 80px rgba(17, 17, 15, 0.18);
}

.project-tile span {
    width: fit-content;
    margin-bottom: 8px;
    padding: 6px 9px;
    border-radius: 6px;
    background: rgba(255, 250, 240, 0.92);
    color: var(--ink);
    font-size: 12px;
    font-weight: 950;
}

.project-tile strong {
    max-width: 360px;
    font-size: clamp(24px, 3vw, 42px);
    line-height: 0.98;
    letter-spacing: 0;
}

.project-tile p {
    max-width: 300px;
    margin: 10px 0 0;
}

.tile-large {
    grid-column: span 5;
    grid-row: span 2;
}

.tile-image {
    grid-column: span 4;
    min-height: 452px;
    color: #fff;
    background: #151515;
}

.tile-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease;
}

.tile-image::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent 36%, rgba(0, 0, 0, 0.76));
}

.tile-image:hover img {
    transform: scale(1.035);
}

.tile-image span,
.tile-image strong,
.tile-image p {
    position: relative;
    z-index: 1;
}

.tile-color {
    grid-column: span 4;
}

.tile-cyan {
    background: var(--cyan);
}

.tile-black {
    color: #fff;
    background: var(--ink);
}

.tile-black p {
    color: rgba(255, 255, 255, 0.7);
}

.tile-lime {
    background: var(--lime);
}

.tile-note {
    grid-column: span 3;
    background: var(--rose);
}

.ticker {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 14px 0 0;
}

.ticker span,
.mini-board span {
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 250, 240, 0.8);
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.page-shell,
.case-layout {
    min-height: calc(100vh - 220px);
    margin-top: 10px;
    padding: clamp(24px, 5vw, 68px);
    background: rgba(255, 250, 240, 0.88);
}

.page-shell h1,
.case-layout h1 {
    max-width: 860px;
    font-size: clamp(40px, 6vw, 78px);
}

.text-grid,
.contact-shell,
.case-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
    gap: 28px;
    align-items: start;
}

.mini-board {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.contact-form {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

input,
textarea,
button {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 13px 14px;
    color: var(--ink);
    background: #fff;
    font: inherit;
    font-weight: 750;
}

button {
    border-color: var(--ink);
    color: var(--lime);
    background: var(--ink);
    cursor: pointer;
}

.faq-list {
    display: grid;
    gap: 10px;
}

.faq-list article,
.case-layout article {
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.case-layout img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 24px 0 30px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 750;
}

.site-footer strong {
    color: var(--ink);
}

.footer-links,
.footer-social {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-links a {
    font-weight: 850;
}

.footer-social a {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 250, 240, 0.9);
}

.footer-social svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

@media (max-width: 900px) {
    .project-wall {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .intro-tile,
    .tile-large,
    .tile-image,
    .tile-color,
    .tile-note {
        grid-column: span 3;
    }

    .intro-tile {
        grid-column: 1 / -1;
        grid-template-columns: 1fr;
    }

    .text-grid,
    .contact-shell,
    .case-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .site-header,
    main,
    .site-footer {
        width: min(100% - 20px, 1240px);
    }

    .site-header {
        align-items: stretch;
        flex-direction: column;
        padding: 10px 0 16px;
    }

    .nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .nav a {
        min-width: 0;
        padding: 10px 8px;
    }

    .project-wall {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 10px;
        min-height: 0;
    }

    .intro-tile,
    .tile-large,
    .tile-image,
    .tile-color,
    .tile-note {
        grid-column: span 1;
        grid-row: auto;
    }

    .intro-tile {
        min-height: 330px;
        padding: 22px;
    }

    .tile-image,
    .project-tile {
        min-height: 280px;
    }

    h1 {
        font-size: 40px;
    }

    .project-tile strong {
        font-size: 28px;
    }

    .page-shell,
    .case-layout {
        min-height: 0;
        padding: 20px;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
        padding: 16px 0 22px;
    }
}
