:root {
    --accent: #ff5a2a;
    --accent-hover: #e84a1b;

    --text: #111111;
    --text-muted: #646464;

    --background: #ffffff;
    --surface: #f7f7f7;
    --border: #e3e3e3;

    --container: 1240px;
}


/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;

    color: var(--text);
    background: var(--background);

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}


/* =========================================================
   GLOBAL LAYOUT
   ========================================================= */

.container {
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}

.eyebrow {
    margin: 0 0 24px;

    color: #777777;

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 0.2em;
    text-transform: uppercase;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: relative;
    z-index: 100;

    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #eeeeee;
}

.header-inner {
    min-height: 82px;

    display: flex;
    align-items: center;

    gap: 36px;
}

.brand {
    display: inline-flex;
    align-items: baseline;

    gap: 6px;

    font-size: 24px;
    letter-spacing: -0.04em;
}

.brand-ml {
    font-weight: 800;
}

.brand-name {
    font-weight: 500;
}

.main-nav {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 34px;

    font-size: 15px;
}

.main-nav a {
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--accent);
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    min-height: 48px;
    padding: 0 24px;

    border: 1px solid transparent;
    border-radius: 999px;

    font-size: 15px;
    font-weight: 600;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #ffffff;
    background: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    color: var(--text);

    background: #ffffff;
    border-color: #222222;
}

.btn-secondary:hover {
    color: #ffffff;
    background: #111111;
}

.header-cta {
    min-height: 44px;
    padding-inline: 22px;
}


/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

    margin-left: auto;

    border: 0;
    background: transparent;

    cursor: pointer;
}

.menu-toggle span {
    display: block;

    width: 23px;
    height: 2px;

    margin: 5px auto;

    background: #111111;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    overflow: hidden;

    background:
        radial-gradient(
            circle at 85% 35%,
            rgba(255, 90, 42, 0.06),
            transparent 28%
        ),
        #ffffff;
}

.hero-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;

    gap: 44px;

    padding-top: 40px;
    padding-bottom: 12px;
}

.hero-content {
    position: relative;
    z-index: 2;

    max-width: 620px;
}

.hero h1 {
    display: flex;
    align-items: baseline;

    gap: 14px;

    margin: 0;

    font-size: clamp(64px, 5.7vw, 98px);
    line-height: 0.92;

    letter-spacing: -0.07em;

    white-space: nowrap;
}

.hero-brand-ml {
    font-weight: 850;
}

.hero-brand-name {
    font-weight: 500;
}

.hero-subtitle {
    margin: 24px 0 0;

    font-size: clamp(30px, 3.5vw, 50px);
    line-height: 1.05;

    letter-spacing: -0.045em;
}

.hero-text {
    max-width: 560px;

    margin: 28px 0 0;

    color: var(--text-muted);

    font-size: 20px;
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 14px;

    margin-top: 34px;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;

    overflow: visible;
}

.hero-visual img {
    display: block;

    width: 100%;
    max-width: 740px;
    height: auto;
}


/* =========================================================
   COMMON SECTION TYPOGRAPHY
   ========================================================= */

.section-head,
.portfolio-head {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;

    gap: 60px;

    margin-bottom: 42px;
}

.section-head h2,
.portfolio-head h2,
.about-section h2,
.contact-section h2 {
    max-width: 560px;

    margin: 0;

    font-size: clamp(32px, 3vw, 44px);
    line-height: 1.05;

    letter-spacing: -0.04em;
}

.section-intro,
.portfolio-head > p {
    max-width: 430px;

    margin: 0 0 4px;

    color: var(--text-muted);

    font-size: 17px;
    line-height: 1.55;
}


/* =========================================================
   SERVICES
   ========================================================= */

.services-section {
    padding: 36px 0 96px;

    background: #ffffff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.service-card {
    min-height: 290px;

    padding: 32px 30px 34px;

    border-right: 1px solid var(--border);
}

.service-card:first-child {
    border-left: 1px solid var(--border);
}

.service-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 32px;

    border-radius: 50%;

    color: var(--accent);
    background: rgba(255, 90, 42, 0.08);
}

.service-icon svg {
    width: 23px;
    height: 23px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card h3 {
    margin: 0 0 16px;

    font-size: 22px;
    line-height: 1.15;

    letter-spacing: -0.03em;
}

.service-card p {
    margin: 0;

    color: var(--text-muted);

    font-size: 16px;
    line-height: 1.6;
}


/* =========================================================
   PORTFOLIO
   ========================================================= */

.portfolio-section {
    padding: 90px 0 100px;

    background: var(--surface);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}

.portfolio-card {
    min-width: 0;
}

.portfolio-image {
    position: relative;

    display: block;

    aspect-ratio: 4 / 3;

    overflow: hidden;

    background: #e9e9e9;
}

.portfolio-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.45s ease,
        filter 0.45s ease;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.035);
}

.portfolio-info {
    padding-top: 18px;
}

.portfolio-info h3 {
    margin: 0;

    font-size: 18px;
    line-height: 1.25;

    letter-spacing: -0.025em;
}

.portfolio-info p {
    margin: 7px 0 0;

    color: var(--text-muted);

    font-size: 14px;
    line-height: 1.4;
}


/* =========================================================
   ABOUT
   ========================================================= */

.about-section {
    padding: 90px 0 100px;

    background: #ffffff;
}

.about-section .eyebrow {
    margin-bottom: 24px;
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact-section {
    padding: 80px 0;

    color: #ffffff;
    background: #121212;
}

.contact-section .eyebrow {
    color: #aaaaaa;
}

.contact-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;

    gap: 60px;
}

.contact-copy {
    max-width: 430px;
}

.contact-copy p {
    margin: 0 0 28px;

    color: #bdbdbd;

    font-size: 17px;
    line-height: 1.6;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .main-nav,
    .header-cta {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-grid {
        grid-template-columns: 1fr;

        gap: 40px;

        padding-top: 56px;
        padding-bottom: 40px;
    }

    .hero-content {
        max-width: 760px;
    }

    .hero h1 {
        white-space: normal;
    }

    .hero-visual {
        justify-content: flex-start;
    }

    .hero-visual img {
        width: 100%;
        max-width: 760px;
    }

    .section-head,
    .portfolio-head,
    .contact-inner {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card:nth-child(3),
    .service-card:nth-child(4) {
        border-top: 1px solid var(--border);
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 680px) {

    .container {
        width: min(calc(100% - 32px), var(--container));
    }

    .header-inner {
        min-height: 70px;
    }

    .brand {
        font-size: 21px;
    }

    .hero-grid {
        padding-top: 42px;
        padding-bottom: 36px;
    }

    .hero h1 {
        gap: 10px;

        font-size: clamp(52px, 16vw, 76px);
        line-height: 0.95;
    }

    .hero-subtitle {
        margin-top: 16px;

        font-size: 34px;
    }

    .hero-text {
        font-size: 17px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .hero-visual img {
        width: 100%;
        max-width: 100%;
    }

    .services-section {
        padding: 56px 0 80px;
    }

    .section-head,
    .portfolio-head {
        margin-bottom: 34px;
    }

    .section-head h2,
    .portfolio-head h2,
    .about-section h2,
    .contact-section h2 {
        font-size: 32px;
    }

    .services-grid {
        grid-template-columns: 1fr;

        border-bottom: 0;
    }

    .service-card,
    .service-card:first-child {
        min-height: auto;

        border-left: 0;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .portfolio-section {
        padding: 70px 0 80px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .about-section {
        padding: 70px 0 80px;
    }

    .contact-section {
        padding: 70px 0;
    }
}

/* =========================================================
   ABOUT
   ========================================================= */

.about-section {
    padding: 90px 0 100px;
    background: #ffffff;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
    align-items: start;
}

.about-copy {
    max-width: 560px;
}

.about-lead {
    margin: 28px 0 0;

    font-size: 22px;
    line-height: 1.5;
    letter-spacing: -0.02em;
}

.about-text {
    margin: 22px 0 0;

    color: var(--text-muted);

    font-size: 17px;
    line-height: 1.65;
}

.about-values {
    display: grid;
    gap: 0;

    border-top: 1px solid var(--border);
}

.about-value {
    display: grid;
    grid-template-columns: 60px 180px 1fr;
    gap: 24px;

    padding: 26px 0;

    border-bottom: 1px solid var(--border);
}

.about-value span {
    color: var(--accent);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.16em;
}

.about-value strong {
    font-size: 18px;
}

.about-value p {
    margin: 0;

    color: var(--text-muted);

    font-size: 15px;
    line-height: 1.55;
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact-section {
    padding: 80px 0;

    color: #ffffff;
    background: #121212;
}

.contact-section .eyebrow {
    color: #aaaaaa;
}

.contact-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;

    gap: 60px;
}

.contact-copy {
    max-width: 430px;
}

.contact-copy p {
    margin: 0 0 28px;

    color: #bdbdbd;

    font-size: 17px;
    line-height: 1.6;
}

.contact-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 22px;
}

.contact-link {
    color: #ffffff;

    font-size: 16px;
    font-weight: 600;
}

.contact-link:hover {
    color: var(--accent);
}

@media (max-width: 1000px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-value {
        grid-template-columns: 50px 160px 1fr;
    }
}

@media (max-width: 680px) {
    .about-value {
        grid-template-columns: 40px 1fr;
        gap: 14px;
    }

    .about-value p {
        grid-column: 2;
    }

    .contact-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .contact-link {
        text-align: center;
    }
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    color: #d8d8d8;
    background: #0d0d0d;
    border-top: 1px solid #242424;
}

.footer-bottom {
    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;
}

.footer-bottom p {
    margin: 0;

    color: #707070;

    font-size: 13px;
    line-height: 1.5;
}

.footer-note {
    text-align: right;
}

@media (max-width: 680px) {
    .footer-bottom {
        min-height: auto;

        flex-direction: column;
        align-items: flex-start;

        gap: 8px;

        padding-top: 22px;
        padding-bottom: 22px;
    }

    .footer-note {
        text-align: left;
    }
}