/* ====================================================
   So.Social – Main Stylesheet
   Font: TikTok Sans
   ==================================================== */

:root {
    --bg: #FBFAFA;
    --text: #111111;
    --red: #e1322d;
    --soft-red: #ff4741;
    --gray: #b9b9b9;
    --black: #000000;
    --white: #ffffff;
    --container: 1180px;
    --gutter: 28px;
    --line: rgba(255, 255, 255, 0.8);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'TikTok Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

#about,
#services,
#projects,
#contact {
  scroll-margin-top: 70px;
}

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

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

button,
input,
textarea {
    font: inherit;
}

/* ── Container ── */
.container {
    width: min(var(--container), calc(100% - 64px));
    margin: 0 auto;
}

/* ── Header / Nav ── */
.site-header {
    padding: 16px 0;
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 20;
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 130px;
    justify-content: center;
}

.nav,
.nav-right {
    display: flex;
    align-items: center;
    gap: 130px;
    font-size: 16px;
    font-weight: 400;
}

.nav-right {
    justify-content: flex-end;
}

.logo {
    font-size: 60px;
    line-height: 0.9;
    font-weight: 500;
    justify-self: center;
}

.logo img {
    width: 200px;
    height: auto;
}

/* Active nav link (set by JS) */
.nav a:hover,
.nav-right a:hover {
    font-weight: 500;
}

/* ── Mobile nav ── */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 4px;
    width: 28px;
    height: 28px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    background: var(--black);
    transition: transform .25s, opacity .25s;
}

.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-top: 1px solid rgba(0, 0, 0, .08);
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.mobile-nav[hidden] {
    display: none;
}

.mobile-nav__link {
    font-size: 22px;
    font-weight: 500;
}

/* ── Accessibility bar ── */
.accessibility-bar {
    padding: 6px 0 28px;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.accessibility-bar__label {
    display: inline-flex;
    align-items: center;
    background: #000;
    color: #fff;
    padding: 3px 8px;
    font-size: 12px;
    line-height: 1;
}

/* ── Hero ── */
.hero {
    padding: 20px 0 0;
    min-height: calc(100dvh - 72px);
    /* 72px = ύψος nav */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero__title {
    text-align: center;
    font-size: clamp(54px, 6vw, 70px);
    line-height: 0.95;
    margin: 80px 0 0px;
    font-weight: 400;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr 254px 1fr;
    align-items: end;
    gap: 36px;
}

.hero__text {
    font-size: clamp(24px, 2.3vw, 45px);
    line-height: 0.94;
}

.hero__text p {
    margin: 0 0 28px;
}

.hero__text--right {
    text-align: right;
    font-size: clamp(19px, 1.65vw, 30px);
    max-width: 420px;
    justify-self: end;
}

.hero__image {
    width: 254px;
    height: 407px;
    overflow: hidden;
    position: relative;
}

.hero__image video {
    margin-top: 60px;
}

.hero__strap {
    background: var(--red);
    color: var(--white);
    text-align: center;
    font-size: clamp(28px, 2.1vw, 38px);
    padding: 5px 0;
}

/* ── Story / About ── */
.story {
    background: var(--red);
    color: var(--white);
    padding: 78px 0 74px;
}

.story__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: start;
}

.story__headline {
    font-size: clamp(54px, 5.1vw, 95px);
    line-height: 0.92;
    margin: 0;
    max-width: 640px;
    font-weight: 400;
}

.story__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 110px;
    text-align: right;
}

.story__copy p {
    margin: 0;
    font-size: clamp(22px, 1.7vw, 31px);
    line-height: 1.02;
    max-width: 420px;
}

.story__link {
    width: 240px;
    font-size: 16px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.9);
    padding-bottom: 6px;
    text-align: left;
    margin-right: 10px;
}

.story__divider {
    margin: 92px auto 0;
    width: 520px;
    max-width: 100%;
    height: 45px;
    position: relative;
}

.story__divider svg {
    width: 100%;
    height: 100%;
}

/* ── Services ── */
.services {
    background: var(--gray);
    color: var(--white);
    padding: 60px 0 70px;
}

.services__title {
    margin: 0;
    font-size: clamp(66px, 8vw, 122px);
    line-height: 0.9;
    font-weight: 500;
    text-align: left;
    max-width: 900px;
}

.services__title span {
    display: block;
}

.services__title span:nth-child(2) {
    margin-left: 320px;
}

.services__title span:nth-child(3) {
    margin-left: 460px;
}

.services__title span:nth-child(4) {
    margin-left: 977px;
}

.services__line {
    margin: 48px 0 34px;
    border-top: 3px solid rgba(255, 255, 255, 0.8);
}

/* Accordion */
.accordion {
    display: grid;
    gap: 0;
}

.accordion-item {
    border-bottom: 2px solid rgba(255, 255, 255, 0.8);
}

.accordion-trigger {
    width: 100%;
    background: transparent;
    border: 0;
    color: inherit;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    text-align: left;
    padding: 16px 0 14px;
    cursor: pointer;
    font-size: clamp(28px, 2.3vw, 47px);
    line-height: 1;
    font-weight: 500;
}

.accordion-trigger .plus {
    font-size: 40px;
    transform: rotate(180deg);
    transition: transform .25s ease;
}

.accordion-item.active .accordion-trigger .plus {
    transform: rotate(0deg);
}

.accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.92);
}

.accordion-panel__inner {
    padding: 0 0 24px 24px;
}

.accordion-panel__inner h3 {
    font-weight: 500;
    margin: 0;
}

/* ── Projects intro ── */
.projects-intro {
    background: var(--black);
    color: var(--white);
    padding: 56px 0 92px;
    overflow: hidden;
}

.projects-intro__title {
    text-align: right;
    font-size: clamp(82px, 10vw, 170px);
    line-height: 0.9;
    font-weight: 500;
    margin: 0 0 48px;
}

.projects-lines {
    position: relative;
    height: 160px;
    margin-bottom: 54px;
}

.projects-lines span {
    position: absolute;
    display: block;
    height: 8px;
    background: var(--white);
    transform: rotate(-14deg);
    transform-origin: center;
}

.projects-lines span:nth-child(1) {
    width: 370px;
    left: -30px;
    top: 88px;
}

.projects-lines span:nth-child(2) {
    width: 640px;
    left: 290px;
    top: 78px;
}

.projects-lines span:nth-child(3) {
    width: 560px;
    left: 760px;
    top: 96px;
}

.projects-intro__copy {
    max-width: 860px;
    font-size: clamp(28px, 2.55vw, 44px);
    line-height: 1;
    margin-left: 26px;
}

/* ── Projects grid only ── */
.projects-grid {
    padding: 0;
    background: var(--bg);
}

.projects-grid__inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
}

.project-logo {
    position: relative;
    min-height: 252px;
    border-right: 1px solid #d8d3d3;
    border-bottom: 1px solid #d8d3d3;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    overflow: hidden;
    cursor: pointer;
}

.project-logo:nth-child(2n) {
    border-right: none;
}

.project-logo:nth-child(5n) {
    border-bottom: none;
}

.project-logo img {
    display: block;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    filter: grayscale(1) brightness(0);
    transition: filter .28s ease, transform .28s ease;
}

.project-logo:hover img {
    filter: none;
    transform: scale(1.02);
}

/* logo-by-logo sizing to match the mockup */
.project-logo:nth-child(1) img {
    max-width: 88%;
    max-height: 50%;
}

.project-logo:nth-child(2) img {
    max-width: 32%;
}

.project-logo:nth-child(3) img {
    max-width: 42%;
}

.project-logo:nth-child(4) img {
    max-width: 80%;
    max-height: 50%;
}

.project-logo:nth-child(5) img {
    max-width: 80%;
    transform: translateY(18px);
    /* looks partially cropped like mockup */
}

.project-logo--swap img {
    filter: none !important;
    transition: opacity .3s ease;
}

.project-logo.panel {
    background: #000;
    color: #fff;
    min-height: 252px;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: none;
}

.project-logo.panel .project-logo__mark strong {
    display: block;
    margin: 0;
    font-size: clamp(42px, 4vw, 64px);
    line-height: 0.95;
    font-weight: 500;
}

/* tablet */
@media (max-width: 1100px) {
    .projects-grid__inner {
        max-width: calc(100% - 40px);
    }

    .project-logo,
    .project-logo.panel {
        min-height: 220px;
    }
}

/* mobile */
@media (max-width: 767px) {
    .projects-grid__inner {
        max-width: calc(100% - 24px);
        grid-template-columns: 1fr;
        gap: 0;
    }

    .project-logo,
    .project-logo.panel {
        min-height: 190px;
        padding: 20px;
    }

    .project-logo img,
    .project-logo:nth-child(1) img,
    .project-logo:nth-child(3) img,
    .project-logo:nth-child(4) img {
        max-width: 32%;
        transform: none;
    }

    .project-logo:nth-child(2) img {
        max-width: 22%;
    }

    .project-logo:nth-child(5) img {
        max-width: 60%;
    }


    .project-logo.panel .project-logo__mark strong {
        font-size: 40px;
    }
}

/* Modal */
.project-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-modal[hidden] {
    display: none;
}

.project-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .6);
}

.project-modal__box {
    position: relative;
    z-index: 1;
    width: min(780px, 90vw);
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    color: #fff;
}

.project-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 30px;
}

.project-modal__img {
    max-width: 220px;
    max-height: 120px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.project-modal__name {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 50px;
}

.project-modal__desc {
    font-size: 16px;
}

/* ── Contact ── */
.contact {
    background: var(--soft-red);
    color: var(--white);
    padding: 58px 0 44px;
}

.contact__grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 80px;
    align-items: start;
}

.contact__title,
.contact__form-title {
    margin: 0 0 52px;
    line-height: 0.95;
    font-weight: 400;
}

.contact__title {
    font-size: clamp(54px, 5.2vw, 84px);
    max-width: 420px;
}

.contact__form-title {
    font-size: clamp(42px, 3.6vw, 64px);
}

.contact__details {
    font-size: 18px;
    line-height: 1.55;
    margin-bottom: 26px;
}

.socials {
    display: flex;
    gap: 12px;
    margin-bottom: 48px;
}

.socials a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #fff;
    transition: background .2s;
}

.note-box {
    max-width: 320px;
}

.note-box__label {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    margin-bottom: 10px;
}

.note-box p {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
}

/* Form */
.contact-form {
    max-width: 520px;
}

.field {
    margin-bottom: 20px;
}

.field input,
.field textarea {
    width: 100%;
    border: 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.95);
    padding: 0 0 8px;
    background: transparent;
    color: #fff;
    outline: none;
    border-radius: 0;
    font-size: 18px;
}

.field input::placeholder,
.field textarea::placeholder {
    color: rgba(255, 255, 255, 0.95);
}

.field textarea {
    min-height: 94px;
    resize: vertical;
}

/* Honeypot */
.field--honey {
    display: none !important;
}

.checkbox {
  	display: flex;
  	align-items: center;
  	gap: 10px;
  	cursor: pointer;
  	font-size: 14px;
	margin-bottom: 20px;
}

/* hide default */
.checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* custom box */
.checkbox-box {
  	width: 18px;
  	height: 18px;
	border-radius: 32px;
  	background: #fff;
  	display: inline-block;
  	position: relative;
  	flex-shrink: 0;
  	transition: all .2s ease;
}

/* checked state */
.checkbox input:checked + .checkbox-box {
  background: #000;
}

/* tick */
.checkbox-box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .2s ease;
}

/* show tick */
.checkbox input:checked + .checkbox-box::after {
  transform: rotate(45deg) scale(1);
}

/* focus (accessibility) */
.checkbox input:focus + .checkbox-box {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.submit-btn {
    background: #fff3f0;
    color: #000;
    border: 0;
    padding: 8px 18px;
    font-size: 18px;
    cursor: pointer;
    transition: background .2s;
}

.submit-btn:hover {
    background: #fff;
}

.form-feedback {
    margin-top: 14px;
    font-size: 15px;
    min-height: 22px;
}

.form-feedback.success {
    color: #fff;
    font-weight: 500;
}

.form-feedback.error {
    color: #ffe0de;
}

/* ── Footer ── */
.footer-top {
    background: #e6e6e6;
    color: #111;
    padding: 34px 0 26px;
}

.footer-top__grid {
    display: grid;
    grid-template-columns: 0.9fr 1fr 1fr auto;
    gap: 36px;
    align-items: start;
}

.footer-logo {
    font-size: 52px;
    line-height: 0.9;
    font-weight: 500;
}

.footer-small {
    font-size: 14px;
    line-height: 1.45;
}

.footer-small a {
    color: inherit;
    opacity: .75;
}

.footer-small a:hover {
    opacity: 1;
}

.footer-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
}

.footer-socials {
    text-align: right;
    font-size: 18px;
}

.footer-socials .socials {
    justify-content: flex-end;
    margin: 12px 0 0;
}

.footer-socials .socials a {
    color: #111;
}

.footer-bottom {
    background: #000;
    color: #fff;
    padding: 12px 0;
    font-size: 14px;
}

.footer-bottom__inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.footer-bottom a {
    color: inherit;
    opacity: .7;
}

.footer-bottom a:hover {
    opacity: 1;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .site-header__inner {
		justify-content: space-between;
    }

    .nav,
    .nav-right {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .story__grid,
    .contact__grid,
    .footer-top__grid {
        grid-template-columns: 1fr;
    }

    .hero__image {
        justify-self: center;
    }

    .hero__text--right,
    .story__copy {
        justify-self: start;
        text-align: left;
        align-items: flex-start;
    }

    .services__title span:nth-child(2),
    .services__title span:nth-child(3),
    .services__title span:nth-child(4) {
        margin-left: 0;
    }

    .projects-grid__inner {
        gap: 36px;
        padding: 0;
    }

    .projects-lines span:nth-child(3) {
        display: none;
    }

    .footer-socials {
        text-align: left;
    }

    .footer-socials .socials {
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .container {
        width: min(var(--container), calc(100% - 34px));
    }

    .logo {
        font-size: 42px;
    }
	
	.accessibility-bar span:not(.accessibility-bar__label) {
		text-align: center;
	}

    .hero {
        padding-top: 24px;
    }
	
	.hero__title {
    	margin: revert;
	}

    .hero__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero__image {
        width: 100%;
        max-width: 270px;
        height: 390px;
		margin-bottom: 18px;
    }
	
	.hero__image video {
    	margin-top: 0;
	}

    .hero__strap {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .story {
        padding: 42px 0 46px;
    }

    .story__copy {
        gap: 28px;
    }

    .story__link {
        width: 100%;
        max-width: 280px;
    }

    .story__divider {
        margin-top: 44px;
        height: 32px;
    }

    .services {
        padding: 40px 0 46px;
    }

    .accordion-trigger {
        font-size: 20px;
    }

    .accordion-trigger .plus {
        font-size: 30px;
    }

    .projects-intro {
        padding: 40px 0 54px;
    }

    .projects-lines {
        height: 90px;
        margin-bottom: 24px;
    }

    .projects-lines span {
        height: 5px;
    }

    .projects-lines span:nth-child(1) {
        width: 180px;
        left: -10px;
        top: 42px;
    }

    .projects-lines span:nth-child(2) {
        width: 280px;
        left: 100px;
        top: 48px;
    }

    .projects-grid__inner {
        grid-template-columns: 1fr;
		gap: 0;
    }

    .project-logo,
    .project-logo.panel {
        min-height: 300px;
    }
	
	.project-logo {
    	border-right: none;
	}

    .contact {
        padding: 40px 0 28px;
    }

    .contact__title,
    .contact__form-title {
        margin-bottom: 28px;
    }

    .footer-logo {
        font-size: 40px;
    }

    .footer-bottom__inner {
        flex-direction: column;
    }
}