:root {
    --bg: #dcefe9;
    --red: #ff3028;
    --teal: #0aaea2;
    --text: #111111;
    --text-soft: rgba(17, 17, 17, 0.68);
    --line: rgba(17, 17, 17, 0.22);
    --frame: rgba(255, 48, 40, 0.28);
    --card: rgba(255, 255, 255, 0.38);
    --card-strong: rgba(255, 255, 255, 0.58);
    --card-border: rgba(17, 17, 17, 0.1);
    --panel-surface: rgba(255, 255, 255, 0.72);
    --radius: 9px;
    --max-page: 1440px;
    --max-content: 1320px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--text);
    background:
        radial-gradient(
            circle at 10% 8%,
            rgba(255, 48, 40, 0.1),
            transparent 20%
        ),
        radial-gradient(
            circle at 90% 14%,
            rgba(10, 174, 162, 0.12),
            transparent 18%
        ),
        linear-gradient(180deg, var(--bg), var(--bg));
    background-color: var(--bg);
}

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

.page-frame {
    min-height: 100vh;
    width: min(var(--max-page), calc(100% - 16px));
    margin: 8px auto;
    border: 1px solid var(--frame);
    padding: 6px 0 96px;
}

.container {
    width: min(var(--max-content), calc(100% - 24px));
    margin: 0 auto;
}

/* top */

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    padding: 8px 0 10px;
    width: 100%;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
}

.top-nav-inner {
    width: min(var(--max-content), calc(100% - 24px));
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.brand-lockup {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
}

.brand-name {
    color: var(--red);
    font-size: clamp(26px, 3.45vw, 50px);
    line-height: 0.88;
    letter-spacing: -0.068em;
    font-weight: 900;
}

.brand-divider {
    height: 3px;
    max-width: 350px;
    margin: 4px 0 5px;
    background: rgba(17, 17, 17, 0.7);
}

.top-mark {
    color: var(--teal);
    font-size: clamp(11px, 1vw, 15px);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
}

.icon-nav {
    display: flex;
    flex: 0 0 320px;
    flex-wrap: wrap;
    width: 320px;
    justify-content: center;
    gap: 10px;
    padding-top: 10px;
    align-self: center;
}

.icon-badge {
    position: relative;
    width: 64px;
    min-width: 64px;
    height: 64px;
    padding: 0;
    border-radius: 999px;
    background: var(--red);
    border: none;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition:
        transform 180ms ease,
        background 180ms ease,
        filter 180ms ease;
}

.icon-badge-home {
    width: 64px;
    min-width: 64px;
}

.icon-badge-icon {
    display: block;
    position: relative;
    z-index: 1;
    width: 32px;
    height: 32px;
    filter:
        brightness(0) invert(1)
        drop-shadow(0 1px 0 rgba(255, 255, 255, 0.22))
        drop-shadow(0 3px 3px rgba(124, 22, 18, 0.35));
}

.icon-badge:hover {
    transform: translateY(-2px);
    background: #f52a22;
}

/* hero */

.hero {
    padding: 152px 4px 0;
}

.subhead {
    width: 100%;
    max-width: 29ch;
    color: var(--teal);
    font-size: clamp(40px, 5vw, 66px);
    line-height: 0.96;
    letter-spacing: -0.045em;
    font-weight: 800;
    text-wrap: balance;
}

#home {
    scroll-margin-top: 144px;
}

#work,
#about,
#contact {
    scroll-margin-top: 194px;
}

/* spacing between sections */

.featured-project {
    padding: 56px 0 112px;
}

.work-section {
    padding-bottom: 112px;
}

.about-section {
    padding-bottom: 112px;
}

.contact-section {
    padding-bottom: 48px;
}

/* section top */

.section-top {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 26px;
}

.section-label {
    color: var(--red);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.section-note {
    color: var(--text-soft);
    font-size: 14px;
}

/* featured */

.featured-card {
    display: grid;
    grid-template-columns: 0.92fr 1.18fr;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--card-border);
    background: var(--card);
}

.featured-copy {
    background: var(--panel-surface);
    padding: 30px;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.featured-label {
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.featured-copy h2 {
    color: var(--red);
    font-size: clamp(34px, 3vw, 48px);
    line-height: 0.92;
    letter-spacing: -0.06em;
    margin-bottom: 24px;
    max-width: 430px;
    font-weight: 800;
}

.featured-copy p {
    color: var(--text);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
    max-width: 390px;
}

.text-link {
    margin-top: 28px;
    color: var(--teal);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.featured-image {
    min-height: 340px;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.featured-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
}

.feature-hero-red {
    background: linear-gradient(
        180deg,
        rgba(255, 48, 40, 0.2),
        rgba(255, 48, 40, 0.16)
    );
}

/* artwork base */

.art {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.art-feature {
    min-height: 340px;
}

.art-small {
    min-height: 210px;
}

.grid-layer {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 48, 40, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 48, 40, 0.12) 1px, transparent 1px);
    background-size: 14px 14px;
}

.card-shape {
    position: absolute;
    inset: 16px;
    margin: auto;
    width: min(62%, 280px);
    aspect-ratio: 1 / 1.15;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 9px;
}

.card-shape.large {
    inset: 22px;
    width: min(52%, 320px);
}

.circle-shape {
    position: absolute;
    left: 50%;
    top: 18%;
    width: min(28%, 170px);
    aspect-ratio: 1 / 1;
    transform: translateX(-50%);
    border-radius: 999px;
    background: rgba(255, 120, 120, 0.42);
}

.base-shape {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(40%, 240px);
    height: 18%;
    transform: translateX(-50%);
    border-radius: 9px;
    background: rgba(255, 120, 120, 0.42);
}

.micro-line {
    position: absolute;
    height: 1px;
    background: rgba(17, 17, 17, 0.14);
}

.micro-line.top {
    top: 23%;
    left: 12%;
    width: 76%;
}

.micro-line.mid {
    top: 50%;
    left: 8%;
    width: 84%;
}

.micro-line.bottom {
    top: 78%;
    left: 18%;
    width: 64%;
}

/* work cards */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 9px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    background: var(--card);
    transition:
        transform 260ms ease,
        border-color 260ms ease,
        box-shadow 260ms ease;
}

.project-card-link {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    color: inherit;
}

@media (hover: hover) and (pointer: fine) {
    .projects-grid:hover .project-card {
        transform: scale(0.975);
    }

    .projects-grid:hover .project-card:hover {
        transform: translateY(-6px) scale(1.025);
        z-index: 2;
        border-color: rgba(17, 17, 17, 0.18);
        box-shadow: 0 18px 38px rgba(17, 17, 17, 0.1);
    }
}

.project-image {
    overflow: hidden;
    line-height: 0;
}

.project-image img {
    display: block;
    width: 100%;
    height: auto;
}

.variant-red-grid {
    background: linear-gradient(
        180deg,
        rgba(255, 48, 40, 0.2),
        rgba(255, 48, 40, 0.16)
    );
}

.variant-teal-orbit {
    background: linear-gradient(
        180deg,
        rgba(10, 174, 162, 0.18),
        rgba(10, 174, 162, 0.12)
    );
}

.variant-neutral-bars {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.36),
        rgba(255, 255, 255, 0.22)
    );
}

.variant-teal-orbit .art {
    background: radial-gradient(
        circle at 50% 50%,
        rgba(10, 174, 162, 0.08),
        transparent 28%
    );
}

.orbital-ring {
    position: absolute;
    width: 46%;
    aspect-ratio: 1 / 1;
    border: 2px solid rgba(10, 174, 162, 0.28);
    border-radius: 999px;
    top: 18%;
    left: 50%;
    transform: translateX(-50%);
}

.floating-panel {
    position: absolute;
    width: 42%;
    height: 30%;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.72);
    top: 34%;
    left: 50%;
    transform: translateX(-50%);
}

.floating-dot {
    position: absolute;
    width: 12%;
    aspect-ratio: 1 / 1;
    border-radius: 999px;
    background: rgba(10, 174, 162, 0.48);
    top: 30%;
    left: 62%;
}

.corner-chip {
    position: absolute;
    width: 18%;
    height: 10%;
    border-radius: 999px;
    background: rgba(10, 174, 162, 0.22);
    left: 18%;
    bottom: 18%;
}

.bar-stack {
    position: absolute;
    left: 16%;
    right: 16%;
    border-radius: 999px;
    background: rgba(255, 48, 40, 0.2);
}

.bar-stack.one {
    top: 28%;
    height: 12%;
}

.bar-stack.two {
    top: 46%;
    height: 8%;
    left: 22%;
    right: 22%;
}

.bar-stack.three {
    top: 62%;
    height: 10%;
    left: 28%;
    right: 28%;
}

.frame-box {
    position: absolute;
    inset: 18% 20%;
    border: 2px solid rgba(17, 17, 17, 0.16);
    border-radius: 9px;
}

.project-meta {
    background: var(--panel-surface);
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 24px;
    padding: 20px 18px 34px;
}

.project-number {
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 0;
    letter-spacing: -0.02em;
}

.project-meta h3 {
    color: var(--red);
    font-size: 28px;
    line-height: 0.94;
    letter-spacing: -0.06em;
    margin-bottom: 0;
    font-weight: 800;
}

.project-meta p {
    color: var(--text);
    font-size: 18px;
    line-height: 1.04;
    font-weight: 500;
}

/* case study */

.case-study-page .page-frame {
    border-color: rgba(10, 174, 162, 0.34);
    padding-bottom: 128px;
}

.case-study-main {
    padding-top: 152px;
    display: grid;
    gap: 10px;
}

.case-intro-card,
.case-panel {
    border: 1px solid rgba(10, 174, 162, 0.34);
    border-radius: var(--radius);
    background: var(--panel-surface);
    overflow: hidden;
}

.case-intro-card {
    padding: 16px 18px;
}

.case-intro-title {
    color: var(--red);
    font-size: clamp(20px, 1.7vw, 26px);
    line-height: 0.94;
    letter-spacing: -0.05em;
    font-weight: 800;
    margin-bottom: 8px;
}

.case-intro-meta {
    color: var(--teal);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.case-panel img {
    display: block;
    width: 100%;
    height: auto;
}

.case-panel-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-panel-split {
    display: grid;
    grid-template-columns: minmax(0, 0.98fr) minmax(260px, 0.74fr);
    gap: 10px;
}

.case-panel-split-wide {
    grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
}

.case-panel-split > * {
    min-width: 0;
}

.case-panel-copy {
    background: var(--panel-surface);
}

.case-panel-media {
    border-left: 1px solid rgba(10, 174, 162, 0.24);
    background: var(--panel-surface);
    display: flex;
    align-items: stretch;
    justify-content: center;
    overflow: hidden;
}

.case-panel-media-dark {
    background: #353034;
}

.case-panel-media-contain {
    align-items: center;
    padding: 16px;
}

.case-panel-media-contain img {
    object-fit: contain;
    object-position: center;
}

.case-copy {
    padding: 22px 18px 24px;
}

.case-kicker {
    color: var(--red);
    font-size: 22px;
    line-height: 0.94;
    letter-spacing: -0.04em;
    font-weight: 800;
    margin-bottom: 14px;
}

.case-copy p:not(.case-kicker) {
    color: var(--text);
    font-size: 15px;
    line-height: 1.52;
    font-weight: 500;
    max-width: 66ch;
}

.case-kicker + p {
    margin-top: 14px;
}

.case-copy p:not(.case-kicker) + p:not(.case-kicker) {
    margin-top: 12px;
}

.case-copy ul {
    margin-top: 12px;
    padding-left: 20px;
}

.case-copy li {
    color: var(--text);
    font-size: 15px;
    line-height: 1.52;
    font-weight: 500;
}

.case-copy li + li {
    margin-top: 8px;
}

.case-copy strong {
    font-weight: 800;
}

.case-copy-wide p {
    max-width: none;
}

.case-resource-links {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.case-resource-link {
    color: var(--teal);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
}

.case-principles-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.case-construction-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.case-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.case-gallery-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-gallery-item {
    overflow: hidden;
    border: 1px solid rgba(10, 174, 162, 0.24);
    border-radius: var(--radius);
    background: var(--panel-surface);
}

.case-gallery-item img {
    display: block;
    width: 100%;
    height: auto;
}

.case-stage-panel-dark {
    background: #151316;
    padding: 24px;
}

.case-stage-panel-dark img {
    border-radius: var(--radius);
}

.case-back-row {
    padding-top: 10px;
}

.case-back-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--red);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.04em;
    transition: color 180ms ease;
}

.case-back-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(10, 174, 162, 0.34);
    background: var(--panel-surface);
    color: var(--red);
    font-size: 24px;
    line-height: 1;
    transition:
        transform 180ms ease,
        background 180ms ease;
}

.case-back-link:hover {
    color: #f52a22;
}

.case-back-link:hover .case-back-arrow {
    transform: translateX(-2px);
    background: #ffffff;
}

/* about */

.about-grid {
    --about-inset: 24px;
    --about-image-inset: 24px;
    display: grid;
    grid-template-columns: minmax(220px, 0.58fr) minmax(0, 1.42fr);
    gap: 24px;
    align-items: start;
}

.about-card {
    border: 1px solid var(--card-border);
    border-radius: 9px;
    background: var(--panel-surface);
    display: flex;
    height: auto;
    padding: 0;
}

.about-card-image {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    align-self: start;
    padding: var(--about-image-inset);
}

.about-card-copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-self: stretch;
    gap: 24px;
    height: 100%;
    padding: var(--about-inset);
}

.about-image {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: none;
    height: auto;
    min-height: 0;
    border-radius: 9px;
    object-fit: cover;
    object-position: center top;
    box-shadow: 0 16px 34px rgba(17, 17, 17, 0.08);
}

.about-lead {
    color: var(--red);
    font-size: clamp(25px, 2.25vw, 36px);
    line-height: 0.96;
    letter-spacing: -0.05em;
    font-weight: 800;
    max-width: 24ch;
}

.about-body {
    color: var(--text-soft);
    font-size: clamp(16px, 1.14vw, 19px);
    line-height: 1.18;
    font-weight: 500;
    max-width: none;
}

/* contact */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 24px;
}

.contact-card {
    border: 1px solid var(--card-border);
    border-radius: 9px;
    background: var(--panel-surface);
    padding: 18px;
}

.contact-kicker {
    color: var(--teal);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.contact-card a,
.contact-card p {
    font-size: 18px;
    color: var(--text);
    line-height: 1.15;
}

.contact-form-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
    gap: 22px;
    margin-top: 18px;
    border: 1px solid var(--card-border);
    border-radius: 9px;
    background: var(--panel-surface);
    padding: 24px;
}

.contact-form-copy {
    display: grid;
    align-content: start;
    gap: 12px;
}

.contact-form-copy h3 {
    color: var(--red);
    font-size: clamp(28px, 2.6vw, 40px);
    line-height: 0.96;
    letter-spacing: -0.05em;
    font-weight: 800;
}

.contact-form-note {
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.28;
    font-weight: 500;
    max-width: 360px;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-field span {
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.form-field input,
.form-field textarea {
    width: 100%;
    border: 1px solid rgba(17, 17, 17, 0.14);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text);
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.3;
    padding: 14px 16px;
    outline: none;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease;
}

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

.form-field input:focus,
.form-field textarea:focus {
    border-color: rgba(10, 174, 162, 0.55);
    box-shadow: 0 0 0 3px rgba(10, 174, 162, 0.12);
    background: #ffffff;
}

.form-field-full {
    grid-column: 1 / -1;
}

.form-submit {
    justify-self: start;
    min-width: 132px;
    border: none;
    border-radius: 999px;
    background: var(--red);
    color: #ffffff;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 14px 22px;
    cursor: pointer;
    transition:
        transform 180ms ease,
        background 180ms ease;
}

.form-submit:hover {
    transform: translateY(-2px);
    background: #f52a22;
}

/* responsive */

@media (max-width: 1100px) {
    .featured-card,
    .about-grid,
    .contact-grid,
    .contact-form-card {
        grid-template-columns: 1fr;
    }

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

    .case-panel-split {
        grid-template-columns: 1fr;
    }

    .case-panel-media {
        border-left: 0;
        border-top: 1px solid rgba(10, 174, 162, 0.24);
    }

    .featured-copy p {
        max-width: 100%;
    }

    .about-card-image {
        padding: var(--about-image-inset);
    }
}

@media (max-width: 700px) {
    .page-frame {
        width: min(var(--max-page), calc(100% - 8px));
        padding-bottom: 48px;
    }

    .container {
        width: min(var(--max-content), calc(100% - 16px));
    }

    .top-nav {
        padding: 8px 0 10px;
    }

    .top-nav-inner {
        width: min(var(--max-content), calc(100% - 16px));
        flex-direction: column;
        gap: 10px;
    }

    .brand-divider {
        max-width: 100%;
    }

    .icon-nav {
        flex: none;
        width: 100%;
        justify-content: center;
        gap: 8px;
        padding-top: 0;
    }

    .icon-badge {
        width: 52px;
        min-width: 52px;
        height: 52px;
        padding: 0;
    }

    .icon-badge-home {
        width: 52px;
        min-width: 52px;
    }

    .icon-badge-icon {
        width: 26px;
        height: 26px;
    }

    .subhead {
        font-size: clamp(32px, 9vw, 44px);
        line-height: 1;
        letter-spacing: -0.03em;
    }

    #home {
        scroll-margin-top: 146px;
    }

    #work,
    #about,
    #contact {
        scroll-margin-top: 210px;
    }

    .hero {
        padding-top: 176px;
    }

    .featured-project {
        padding: 52px 0 84px;
    }

    .work-section,
    .about-section {
        padding-bottom: 84px;
    }

    .featured-copy {
        min-height: auto;
        padding: 22px;
    }

    .featured-image {
        min-height: 250px;
    }

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

    .case-study-main {
        padding-top: 176px;
        gap: 8px;
    }

    .case-intro-card {
        padding: 14px 16px;
    }

    .case-intro-title {
        font-size: 18px;
    }

    .case-intro-meta {
        font-size: 9px;
    }

    .case-copy {
        padding: 18px 16px 20px;
    }

    .case-kicker {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .case-copy p {
        font-size: 14px;
    }

    .case-principles-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

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

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

    .section-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .project-meta h3 {
        font-size: 23px;
    }

    .project-meta p,
    .section-note,
    .contact-card a,
    .contact-card p {
        font-size: 17px;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .form-field-full {
        grid-column: auto;
    }

    .about-lead {
        font-size: 28px;
    }

    .about-body {
        font-size: 18px;
    }

    .about-card-copy {
        padding: 24px;
    }
}
