
:root {
    --navy: #101D32;
    --navy2: #172D49;
    --char: #202B38;
    --soft: #F4F7FA;
    --muted: #778394;
    --line: #E3E9F0;

    --so: #F28B35;
    --sb: #268DD5;
    --rp: #8754D8;
    --rb: #347FE0;
    --rl: #77C9F2;
}

/* FONTS */
@font-face {
  font-family: "Galio";
  src: url("../fonts/123 Galio - Bold.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Dachithelynx";
  src: url("../fonts/Dachi The Lynx - Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Mersad";
  src: url("../fonts/Mersad - Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* RESET */

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

html {
    scroll-behavior: smooth;
}

body {
    font: 400 17px/1.65 "Dachithelynx", system-ui, sans-serif;
    color: var(--char);
    background: #fff;
    overflow-x: hidden;
}

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

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

button,
input,
textarea {
    font: inherit;
}

:focus-visible {
    outline: 3px solid var(--rl);
    outline-offset: 3px;
}

.wrap {
    width: min(1200px, 92vw);
    margin: auto;
}


/* HEADER */

header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    transition: .35s;
    color: #fff;
}

header.solid {
    background: rgba(16, 29, 50, .94);
    backdrop-filter: blur(10px);
}

.bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.logo {
    font-weight: 800;
    letter-spacing: .02em;
    position: relative;
    z-index: 60;
}

.logo span {
    color: var(--rl);
}

nav ul {
    display: flex;
    gap: 28px;
    list-style: none;
    padding: 0;
    align-items: center;
}

nav a {
    font-size: 15px;
    opacity: .85;
    transition: .2s;
}

nav a:hover,
nav a[aria-current] {
    opacity: 1;
    box-shadow: 0 2px 0 var(--rl);
}

.lang {
    border: 1px solid rgba(255, 255, 255, .4);
    background: none;
    color: #fff;
    padding: 6px 12px;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
}

.burger {
    display: none;
    background: none;
    border: 0;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    position: relative;
    z-index: 60;
}


/* HERO */

.hero {
    min-height: 100svh;
    background: var(--navy);
    color: #fff;
    display: flex;
    align-items: flex-end;
    padding: 140px 0 70px;
    position: relative;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 64px 64px;
}

.hero h1 {
    font-size: 88px;
    line-height: 1.25;
    font-weight: 400;
    max-width: 14ch;
    letter-spacing: -.02em;
    margin-top: 16px;
}

/* Laptop */
@media (max-width: 1200px) {
    .hero h1 { font-size: 72px; }
}

/* Tablet */
@media (max-width: 860px) {
    .hero h1 { font-size: 70px; }
}

/* Large phone */
@media (max-width: 650px) {
    .hero h1 { font-size: 38px; line-height: 1.3; }
}

/* Small phone */
@media (max-width: 400px) {
    .hero h1 { font-size: 34px; }
}
.hero h1 span {
    display: block;
    overflow: hidden;
    padding-bottom: .08em;
}

.hero h1 span i {
    display: block;
    font-style: normal;
    transform: translateY(105%);
    animation: up .9s cubic-bezier(.2, .8, .2, 1) forwards;
}

.hero h1 span:nth-child(2) i {
    animation-delay: .12s;
}

.hero h1 span:nth-child(3) i {
    animation-delay: .24s;
}

@keyframes up {
    to {
        transform: none;
    }
}

.hero p {
    max-width: 52ch;
    margin: 18px 0;
    opacity: .8;
}

.hero .photo {
    position: absolute;
    right: -60px;
    bottom: 50px;
    width: min(30vw, 380px);
    aspect-ratio: 3 / 4;
    background: var(--navy2);
    border: 1px solid rgba(255, 255, 255, .2);
    display: grid;
    place-items: center;
    font-size: 13px;
    color: var(--rl);
    text-align: center;
    padding: 20px;
}


/* BUTTONS */

.btn {
    display: inline-block;
    padding: 14px 28px;
    font-weight: 600;
    border: 1px solid #fff;
    transition: .25s;
    margin: 0 10px 10px 0;
}

.btn.fill {
    background: #fff;
    color: var(--navy);
}

.btn:hover {
    transform: translateY(-2px);
}


/* GENERAL SECTIONS */

section {
    padding: 110px 0;
}

h2 {
    font-size: clamp(1.8rem, 4.5vw, 3.4rem);
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 20px;
    max-width: 22ch;
}


/* EXPERIENCE / STATISTICS */

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    margin-top: 50px;
}

.stats div {
    padding: 28px 20px 0 0;
}

.stats b {
    display: block;
    font-size: clamp(2.6rem, 6vw, 5rem);
    line-height: 1;
    color: var(--navy);
}

.stats small {
    color: var(--muted);
}

.section-heading h2{
    margin-top: 20px;
}
/* CLUBS */

.clubs {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.club {
    padding: 60px 5vw;
    min-height: 440px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    position: relative;
    transition: .3s;
}

.club h3 {
    font-size: 2.2rem;
    font-weight: 800;
}

.club:hover {
    filter: brightness(1.08);
}

.club.stem {
    background: linear-gradient(135deg, var(--sb) 0 60%, var(--so) 60%);
}

.club.rob {
    background: linear-gradient(135deg, var(--rp) 0 45%, var(--rb) 45% 75%, var(--rl) 75%);
}

.club .tag {
    position: absolute;
    top: 30px;
    left: 5vw;
    font-size: 14px;
    border: 1px solid #fff;
    padding: 2px 10px;
}


/* NEWS */
.latest-section{
    margin-top: -90px;
}
.news {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
    margin-top: 10px;
}

.card {
    border: 1px solid var(--line);
    background: #fff;
    transition: .3s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--navy);
}

.card .img {
    aspect-ratio: 4 / 3;
    background: var(--soft);
    position: relative;
    overflow: hidden;
}

.card .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    padding: 3px 9px;
}

.badge.stem {
    background: linear-gradient(90deg, var(--so), var(--sb));
}

.badge.robotics {
    background: linear-gradient(90deg, var(--rp), var(--rb));
}

.badge.general {
    background: var(--char);
}

.card .tx {
    padding: 20px;
}

.card time {
    color: var(--muted);
    font-size: 14px;
}

.card h3 {
    font-size: 1.15rem;
    margin: 6px 0;
}


/* NOTES */

.note {
    background: var(--soft);
    border-left: 4px solid var(--rl);
    padding: 16px 20px;
    color: var(--muted);
    margin-top: 30px;
}


/* PARTICIPANT PROGRESSION */

.steps {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    margin-top: 40px;
}

.steps div {
    flex: 1;
    background: var(--navy);
    color: #fff;
    padding: 14px;
}

.steps b {
    font-size: 2.4rem;
}


/* INDIVIDUAL PAGE HERO */

.page {
    background: var(--navy);
    color: #fff;
    padding: 170px 0 80px;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 64px 64px;
}

.page h1 {
    font-size: clamp(2.2rem, 7vw, 5.5rem);
    line-height: 1.25;
    font-weight: 800;
    max-width: 16ch;
}

.page p {
    max-width: 56ch;
    opacity: .85;
    margin-top: 16px;
}

.page.stem {
    border-bottom: 8px solid var(--so);
}

.page.stem h1 {
    color: #fff;
    box-shadow: inset 0 -.18em 0 var(--sb);
}

.page.rob {
    border-bottom: 8px solid var(--rp);
}

.page.rob p {
    border-left: 4px solid var(--rl);
    padding-left: 16px;
}


/* TWO COLUMN LAYOUT */

.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}


/* NEWS FILTERS */

.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filters button {
    border: 1px solid var(--navy);
    background: #fff;
    padding: 8px 20px;
    cursor: pointer;
    font: inherit;
    transition: .2s;
}

.filters button:hover,
.filters button.on {
    background: var(--navy);
    color: #fff;
}


/* FORMS */

.form {
    display: grid;
    gap: 16px;
    max-width: 560px;
}

.form label {
    font-weight: 600;
    display: grid;
    gap: 6px;
}

.form input,
.form textarea {
    font: inherit;
    padding: 12px;
    border: 1px solid var(--line);
    width: 100%;
}

.form input:focus,
.form textarea:focus {
    outline: 2px solid var(--rl);
    border-color: var(--rl);
}

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

.form button {
    padding: 14px;
    background: var(--navy);
    color: #fff;
    border: 0;
    font: inherit;
    cursor: pointer;
    transition: .2s;
}

.form button:hover {
    background: var(--navy2);
}


/* ARTICLES / PROJECTS */

.art {
    max-width: 760px;
}

.art img {
    margin: 20px 0;
    width: 100%;
    height: auto;
}

ul.plain {
    padding-left: 20px;
}


/* FOOTER */

footer {
    background: var(--navy);
    color: #fff;
    padding: 50px 0;
    font-size: 15px;
}


/* SCROLL REVEAL */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: .8s;
}

.reveal.in {
    opacity: 1;
    transform: none;
}


/* TABLET AND MOBILE */

@media (max-width: 860px) {

    .burger {
        display: block;
    }

    nav {
        position: fixed;
        inset: 0;
        background: var(--navy);
        display: grid;
        place-items: center;
        clip-path: circle(0 at 100% 0);
        transition: .5s;
        visibility: hidden;
    }

    nav.open {
        clip-path: circle(150% at 100% 0);
        visibility: visible;
    }

    nav ul {
        flex-direction: column;
        font-size: 1.6rem;
        gap: 22px;
    }

    nav a {
        font-size: 18px;
    }

    .hero {
        display: block;
    }

    .hero .photo {
        position: static;
        width: 100%;
        aspect-ratio: 4 / 3;
        margin-top: 30px;
    }

    .stats {
        grid-template-columns: 1fr 1fr;
    }

    .clubs {
        grid-template-columns: 1fr;
    }

    .steps {
        flex-wrap: wrap;
    }

    .two {
        grid-template-columns: 1fr;
    }

}


/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .hero h1 span i {
        transform: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

}

/* TYPOGRAPHY: Dachithelynx = headings and titles, Mersad = subtitles and body text */
body {
  font-family: "Mersad", system-ui, sans-serif;
}

h1, h2, h3, h4,
.logo,
.club h3,
.card h3,
.stats b,
.steps b {
  font-family: "Dachithelynx", "Noto Sans Georgian", system-ui, sans-serif;
  font-weight: 400;
}

p, small, li, label, time, nav a, .btn, .badge, .tag, .note,
.lang, .filters button, .form input, .form textarea, .form button,
.hero p, .page p {
  font-family: "Mersad",system-ui, sans-serif;
}