/* Fonts */
@font-face {
    font-family: 'Tektur';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url('assets/fonts/Tektur.woff2') format('woff2');
}

/* Theme & Global Variables */
:root {
    color-scheme: dark;

    --bg: #111214;
    --panel: #191a1d;
    --text: #f2f2ef;
    --muted: #a7a8ab;
    --line: #303136;
    --accent: #f28b42;
    --max: 1120px;

    --font-brand: 'Tektur', ui-sans-serif, system-ui, sans-serif;
    --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --size-h1: clamp(2rem, 4.8vw, 4rem);
    --size-h2: clamp(1.8rem, 3.5vw, 2.7rem);
    --size-h3: clamp(1.05rem, 1.8vw, 1.18rem);
    --size-tagline: clamp(1.05rem, 2vw, 1.3rem);
    --size-intro: clamp(1rem, 1.5vw, 1.08rem);
    --size-body: 1rem;
    --size-nav: 0.92rem;
    --size-small: 0.88rem;
    --size-eyebrow: 0.78rem;

    --weight-brand: 400;
    --weight-faq: 400;
    --tracking-brand: 0.15em;
}

/* Base Defaults */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 86px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: var(--size-body);
    line-height: 1.6;
}

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

.wrap {
    width: min(var(--max), calc(100% - 48px));
    margin-inline: auto;
}

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

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

/* Header & Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    min-height: 72px;
    padding: 0 max(24px, calc((100% - var(--max)) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--line);
}

.brand {
    font-family: var(--font-brand);
    font-weight: var(--weight-brand, 400);
    letter-spacing: var(--tracking-brand);
    font-size: 1.25rem;
    white-space: nowrap;
}

.brand span {
    color: var(--accent);
}

nav {
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 34px);
}

nav a {
    color: var(--muted);
    font-size: var(--size-nav);
    transition: color .18s ease;
}

nav a:hover,
nav a:active,
nav a.active {
    color: var(--accent);
}

/* Hero */
.hero {
    padding-top: clamp(28px, 4vw, 48px);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: var(--size-eyebrow);
    font-weight: 750;
    letter-spacing: .17em;
}

h1 {
    max-width: 850px;
    margin-bottom: 8px;
    font-size: var(--size-h1);
    line-height: 1.08;
    letter-spacing: -.06em;
}

.hero-tagline {
    color: var(--accent);
    font-size: var(--size-tagline);
    font-style: italic;
    margin: 16px 0 8px;
}

.intro {
    max-width: 620px;
    margin-bottom: 32px;
    color: var(--muted);
    font-size: var(--size-intro);
}

.image-frame {
    overflow: hidden;
    position: relative;
    background: #202125;
    border: 1px solid #292a2e;
    border-radius: 5px;
}

.image-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image {
    display: block;
    width: 100%;
    aspect-ratio: auto;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .2s ease;
}

.hero-image:hover {
    border-color: rgba(242, 139, 66, 0.45);
}

.hero-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.placeholder {
    display: grid;
    place-items: center;
    background: repeating-linear-gradient(
    135deg,
    #202125,
    #202125 18px,
    #242529 18px,
    #242529 36px
  );
    color: #b8b8bc;
    text-align: center;
}

.image-note {
    padding: 18px;
    font-size: .78rem;
    font-weight: 750;
    letter-spacing: .13em;
}

.image-note small {
    color: var(--muted);
    font-weight: 400;
    letter-spacing: 0;
}

/* General Section Layout */
.section {
    padding-block: clamp(64px, 8vw, 104px);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

h2 {
    margin-bottom: 0;
    font-size: var(--size-h2);
    line-height: 1.15;
    letter-spacing: -.045em;
}

.section-note {
    max-width: 300px;
    margin: 0 0 4px;
    color: var(--muted);
    font-size: .9rem;
}

.section-muted {
    background: var(--panel);
    border-block: 1px solid var(--line);
}

/* Section Backgrounds */
#work {
    background: var(--bg);
}

#services {
    background: var(--panel);
    border-block: 1px solid var(--line);
}

#process {
    background: var(--bg);
}

#faq {
    background: var(--panel);
    border-block: 1px solid var(--line);
}

#about {
    background: var(--bg);
}

#contact {
    background: var(--panel);
    border-top: 1px solid var(--line);
}

#featured-projects {
    background: var(--bg);
}

#more-works {
    background: var(--panel);
    border-block: 1px solid var(--line);
}

/* Projects Gallery */
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px 22px;
}

.project-image {
    display: block;
    aspect-ratio: 4 / 3;
    transition: border-color .2s ease;
}

.project-card:hover .project-image {
    border-color: rgba(242, 139, 66, 0.45);
}

.project-card {
    min-width: 0;
}

.project-caption {
    padding-top: 13px;
}

.project-caption h3,
.service h3 {
    margin-bottom: 5px;
    font-size: var(--size-h3);
    letter-spacing: -.015em;
}

.project-caption h3 a {
    color: inherit;
    text-decoration: none;
    transition: color .18s ease;
}

.project-card:hover .project-caption h3 a,
.project-caption h3 a:hover {
    color: var(--accent);
}

.project-caption p,
.service p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: var(--size-small);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    margin-top: 32px;
}

.service {
    padding-top: 18px;
    border-top: 1px solid #414247;
}

.service span {
    display: inline-block;
    margin-bottom: 22px;
    color: var(--accent);
    font-size: .75rem;
    font-weight: 700;
}

/* FAQ Accordion */
.faq-list {
    margin-top: 28px;
    border-top: 1px solid var(--line);
}

details {
    border-bottom: 1px solid var(--line);
    padding: 19px 0;
}

summary {
    cursor: pointer;
    font-weight: var(--weight-faq, 400);
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

summary s {
    color: var(--muted);
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: "+";
    color: var(--accent);
    font-size: 1.3rem;
    line-height: 1.2;
}

details[open] summary::after {
    content: "−";
}

details p {
    max-width: 760px;
    margin: 12px 36px 0 0;
    color: var(--muted);
    font-size: .94rem;
}

.payment-methods-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 16px 0 10px;
}

.payment-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 34px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    padding: 4px 6px;
    box-sizing: border-box;
    transition: transform .18s ease, box-shadow .18s ease;
}

.payment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
}

.payment-card .payment-icon {
    max-width: 100%;
    max-height: 20px;
    width: auto;
    height: auto;
    display: block;
}

/* Workflow & Process */
.process-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.process-step {
    padding-top: 18px;
    border-top: 1px solid #414247;
}

.process-step span {
    display: inline-block;
    margin-bottom: 22px;
    color: var(--accent);
    font-size: .75rem;
    font-weight: 700;
}

.process-step h3 {
    margin-bottom: 8px;
    font-size: var(--size-h3);
    letter-spacing: -.015em;
}

.process-step p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: var(--size-small);
    line-height: 1.5;
}

/* About */
.about-content {
    max-width: 720px;
}

.about-text {
    margin-top: 24px;
}

.about-text p {
    color: var(--muted);
    font-size: var(--size-intro);
    line-height: 1.7;
    margin-bottom: 18px;
}

.about-text p em {
    color: var(--text);
    font-style: italic;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Contact */
.contact-section {
    border-top: 1px solid var(--line);
}

.contact-inner {
    padding-block: clamp(58px, 8vw, 92px);
}

.contact-inner h2 {
    margin-bottom: 14px;
}

.contact-intro {
    color: var(--muted);
    font-size: clamp(1.02rem, 1.8vw, 1.2rem);
    margin: 16px 0 10px;
}

.contact-intro em {
    font-style: italic;
}

.contact-inner > p:not(.eyebrow):not(.contact-small):not(.contact-intro) {
    color: var(--text);
    font-size: var(--size-intro);
    line-height: 1.6;
}

.contact-socials {
    margin-top: 28px;
}

.social-pills {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.social-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 140px;
    padding: 10px 14px;
    min-height: 42px;
    box-sizing: border-box;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--text);
    font-size: var(--size-small);
    font-weight: 550;
    line-height: 1;
    text-decoration: none;
    transition: all .2s ease;
}

.social-pill,
.social-pill:hover,
.social-pill:visited,
.social-pill:focus-visible,
.social-pill span {
    text-decoration: none;
}

.social-pill:hover,
.social-pill:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
    background: #202227;
    transform: translateY(-2px);
}

.social-pill-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #171310;
    font-weight: 700;
}

.social-pill-primary:hover,
.social-pill-primary:focus-visible {
    background: #ff9b57;
    border-color: #ff9b57;
    color: #171310;
}

.social-pill svg {
    flex-shrink: 0;
}

.social-pill[hidden] {
    display: none !important;
}

/* Footer */
.site-footer {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-block: 22px;
}

.site-footer p {
    margin: 0;
    color: var(--muted);
    font-size: .78rem;
}

/* Portfolio Page */
.portfolio-hero {
    padding-top: clamp(28px, 4vw, 48px);
    margin-bottom: 0;
}

.portfolio-hero h1 {
    font-size: var(--size-h2);
    line-height: 1.15;
    letter-spacing: -.045em;
    margin-bottom: 10px;
}

.portfolio-hero .intro {
    margin-bottom: clamp(22px, 3.2vw, 34px);
}

#featured-projects {
    padding-top: 0;
}

/* Detailed Project Cards */
.detailed-cards-list {
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 3.5vw, 38px);
}

.detailed-card {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: clamp(20px, 3vw, 36px);
    padding: clamp(16px, 2.5vw, 24px);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: border-color .2s ease, transform .2s ease;
}

.detailed-card:hover {
    border-color: rgba(242, 139, 66, 0.45);
}

.detailed-card-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    background: #141518;
    border: 1px solid #24252a;
}

.detailed-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.card-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    box-sizing: border-box;
    text-align: center;
    color: var(--muted);
    background-color: #151619;
    background-image: linear-gradient(rgba(242, 139, 66, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 139, 66, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

.placeholder-icon {
    color: var(--accent);
    opacity: 0.85;
}

.placeholder-title {
    color: var(--text);
    font-family: var(--font-brand);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

.placeholder-sub {
    color: var(--muted);
    font-size: var(--size-small);
    line-height: 1.4;
}

.detailed-card-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.detail-label {
    color: var(--accent);
    font-family: var(--font-brand);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.detail-value {
    margin: 0;
    color: var(--text);
    font-size: var(--size-small);
    line-height: 1.55;
}

.client-flag {
    display: inline-block;
    width: 18px;
    height: 13.5px;
    vertical-align: -1.5px;
    margin-left: 6px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
    overflow: hidden;
}

/* Compact Archive Grid */
.compact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.compact-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.compact-card-media {
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    background: var(--panel);
    border: 1px solid var(--line);
    overflow: hidden;
    position: relative;
    transition: border-color .2s ease, transform .2s ease;
}

.compact-card:hover .compact-card-media {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.compact-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
    box-sizing: border-box;
}

.compact-placeholder {
    min-height: auto;
    aspect-ratio: 1 / 1;
    padding: 16px;
    gap: 8px;
}

.compact-placeholder svg {
    color: var(--accent);
    opacity: 0.8;
}

.compact-placeholder span {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text);
}

.compact-card-caption {
    text-align: center;
}

.compact-card-caption h4 {
    margin: 0 0 2px;
    font-size: var(--size-small);
    font-weight: 550;
    color: var(--text);
    letter-spacing: -.01em;
}

.compact-card-caption p {
    margin: 0;
    font-size: 0.78rem;
    color: var(--muted);
}

/* Tablet Layout */
@media (max-width: 800px) {
    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .detailed-card {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .compact-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .service span,
    .process-step span {
        margin-bottom: 10px;
    }

    .site-footer {
        flex-wrap: wrap;
    }
}

/* Mobile Layout */
@media (max-width: 560px) {
    .wrap {
        width: min(100% - 32px, var(--max));
    }

    .site-header {
        padding-inline: 16px;
        min-height: 64px;
        align-items: center;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
    }

    .site-header .brand {
        align-self: center;
        text-align: center;
    }

    nav {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
        padding-bottom: 3px;
    }

    nav a {
        font-size: .82rem;
    }

    .hero {
        padding-top: 28px;
    }

    .desktop-break {
        display: none;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 12px;
    }

    .project-caption {
        padding-top: 9px;
    }

    .project-caption h3 {
        font-size: .95rem;
        margin-bottom: 2px;
    }

    .project-caption p {
        font-size: .82rem;
        line-height: 1.35;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 24px;
    }

    .process-step {
        border-top: none;
        padding-top: 0;
        display: grid;
        grid-template-columns: 32px 1fr;
        grid-template-rows: auto auto;
        column-gap: 10px;
        row-gap: 3px;
    }

    .process-step span {
        grid-column: 1;
        grid-row: 1;
        margin-bottom: 0;
        font-size: .82rem;
        line-height: 1.3;
    }

    .process-step h3 {
        grid-column: 2;
        grid-row: 1;
        margin-bottom: 0;
        font-size: .96rem;
        line-height: 1.3;
    }

    .process-step p {
        grid-column: 2;
        grid-row: 2;
        font-size: .84rem;
        line-height: 1.45;
    }

    .project-image {
        aspect-ratio: 4 / 3;
    }

    .social-pills {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .social-pill {
        width: 100%;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .detailed-card {
        padding: 16px;
        gap: 16px;
    }

    .card-placeholder {
        padding: 16px 12px;
        gap: 8px;
    }

    .compact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-top: 24px;
    }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .1ms !important;
        animation-duration: .1ms !important;
    }
}
