:root {
    --gap: clamp(56px, 8vw, 100px);
    --gray: #828282;
    --text: #4c4c4c;
    --bubble: #efefef;
    --blue: #0a6cf0;
    --btn: #5c5c5c;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    background: #fff;
    color: #000;
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    letter-spacing: -.03em;
    line-height: 1.3;
}

main {
    flex: 1;
}

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

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

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

.wrap {
    width: 100%;
    max-width: 1048px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
    position: relative;
    z-index: 20;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 40px;
    min-height: 81px;
}

.logo {
    font-size: 30px;
    line-height: 41px;
    color: var(--gray);
    letter-spacing: -.04em;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: clamp(32px, 7vw, 85px);
}

.burger {
    position: relative;
    width: 40px;
    height: 28px;
    border: 0;
    background: none;
    padding: 0;
    cursor: pointer;
    color: var(--gray);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.burger span {
    position: absolute;
    left: 0;
    top: 12.5px;
    width: 40px;
    height: 3px;
    border-radius: 3px;
    background: currentColor;
    will-change: transform;
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}

.burger span:nth-child(1) {
    transform: translate3d(0, -6.5px, 0) rotate(0deg);
}

.burger span:nth-child(2) {
    transform: translate3d(0, 6.5px, 0) rotate(0deg);
}

.burger[aria-expanded="true"] span:nth-child(1) {
    transform: translate3d(0, 0, 0) rotate(22deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
    transform: translate3d(0, 0, 0) rotate(-22deg);
}

.menu {
    display: flex;
    align-items: center;
    gap: 44px;
}

.menu a {
    font-size: 20px;
    color: var(--gray);
    letter-spacing: -.03em;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(14px, 0, 0);
    will-change: opacity, transform;
    transition: opacity .25s ease, transform .35s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .35s;
}

.menu.open a {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .3s ease var(--d), transform .4s cubic-bezier(.4, 0, .2, 1) var(--d), visibility 0s;
}

.menu a:nth-child(3) { --d: 0s; }
.menu a:nth-child(2) { --d: .05s; }
.menu a:nth-child(1) { --d: .1s; }

.menu a:hover,
.menu a[aria-current="page"] {
    color: #000;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    margin-top: var(--gap);
}

.hero-center {
    display: flex;
    align-items: center;
    padding: 48px 0;
}

.hero-center .hero {
    margin-top: 0;
}

.hero h1 {
    margin: 0;
    font-weight: 500;
    font-size: clamp(30px, 5vw, 50px);
    line-height: 1.26;
    letter-spacing: -2px;
}

.hero h1 .g {
    color: var(--gray);
}

.hero h1 .b {
    color: var(--blue);
}

.mail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 16px;
    color: var(--text);
    letter-spacing: -.02em;
    transition: opacity .2s ease;
}

.mail:hover {
    opacity: .7;
}

.mail svg {
    width: 14px;
    height: 14px;
}

/* ==========================================================================
   Home Page: Chat & Work Grid
   ========================================================================== */
.chat {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 20px;
    background: #dff6ff;
    overflow: hidden;
}

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

.msgs {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}

.bubble {
    margin: 0;
    padding: 12px 20px;
    background: var(--bubble);
    color: var(--text);
    font-size: 18px;
    line-height: 1.4;
    border-radius: 20px 20px 20px 4px;
}

.bubble.wide {
    align-self: stretch;
}

.bubble a {
    color: var(--blue);
}

.intro,
.outro {
    margin-top: var(--gap);
}

.composer {
    align-self: flex-end;
    width: min(100%, 400px);
    height: 50px;
    display: flex;
    align-items: center;
    background: var(--bubble);
    border-radius: 20px;
    padding: 5px 5px 5px 15px;
}

.composer input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 18px;
    letter-spacing: -.03em;
    color: var(--text);
    cursor: pointer;
    padding: 8px 0;
    border-radius: 8px;
    outline: none;
}

.composer input::placeholder {
    color: var(--text);
    opacity: 1;
}

.send {
    flex: none;
    width: 70px;
    height: 40px;
    border: 0;
    border-radius: 15px;
    background: var(--blue);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background-color .3s ease;
}

.send:hover {
    background-color: var(--btn);
}

.send svg {
    width: 20px;
    height: 20px;
}

.shots {
    width: 100%;
    max-width: 1658px;
    margin: var(--gap) auto 0;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.shots img {
    width: 100%;
    height: auto;
    border-radius: 9px;
    background: #f9fafb;
}

/* ==========================================================================
   About Page: Clean Editorial Layout
   ========================================================================== */
.about-intro {
    margin-top: clamp(48px, 7vw, 84px);
}

.profile {
    display: flex;
    align-items: center;
    gap: 18px;
}

.profile-pic {
    width: 84px;
    height: 84px;
    border-radius: 30px;
    background: #dff6ff;
    overflow: hidden;
    flex-shrink: 0;
}

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

.profile-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-meta strong {
    font-size: 20px;
    font-weight: 500;
    color: #000;
    letter-spacing: -.03em;
}

.profile-meta span {
    font-size: 18px;
    color: var(--gray);
    letter-spacing: -.02em;
}

.about-lead {
    margin: 26px 0 0;
    max-width: 880px;
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.5;
    color: #000;
    letter-spacing: -.02em;
}

.about-block {
    margin-top: clamp(48px, 6vw, 76px);
}

.small-label {
    margin: 0 0 18px;
    font-size: 16px;
    font-weight: 400;
    color: var(--text);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 820px;
}

.tag {
    padding: 10px 22px;
    border: 1px solid #d4d4d4;
    border-radius: 999px;
    font-size: 16px;
    color: var(--text);
    line-height: 1.2;
}

.tag.muted {
    border-color: #ebebeb;
    color: #9a9a9a;
}

.story-list {
    display: flex;
    flex-direction: column;
    gap: clamp(44px, 5vw, 64px);
    max-width: 780px;
}

.story-item h3 {
    margin: 0;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 500;
    letter-spacing: -1px;
    color: #000;
}

.story-date {
    display: block;
    margin-top: 4px;
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--gray);
}

.story-item p {
    margin: 0 0 16px;
    font-size: 18px;
    line-height: 1.55;
    color: var(--text);
}

.story-item p:last-child {
    margin-bottom: 0;
}

.story-item strong {
    color: #000;
    font-weight: 500;
}

.about-cta {
    margin-top: var(--gap);
    padding-top: clamp(32px, 4vw, 48px);
    border-top: 1px solid #efefef;
}

.about-cta h2 {
    margin: 0;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 500;
    letter-spacing: -1px;
    color: #000;
}

.about-cta h2 .g {
    color: var(--gray);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    margin-top: var(--gap);
    border-top: 1px solid #e6e6e6;
    background: #fff;
}

.hero-center + footer {
    margin-top: 0;
}

footer .wrap {
    padding-top: 32px;
    padding-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.foot-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px 24px;
    flex-wrap: wrap;
}

.foot .logo {
    font-size: 24px;
    line-height: 1;
    color: var(--gray);
    letter-spacing: -.04em;
}

.foot-links {
    display: flex;
    gap: 15px;
    font-size: 16px;
    font-weight: 400;
}

.foot-links a:hover {
    opacity: .7;
}

.foot small {
    font-size: 13px;
    color: var(--gray);
    letter-spacing: -.02em;
}

/* ==========================================================================
   Modal (Home Page)
   ========================================================================== */
.overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(20, 20, 20, .25);
    -webkit-backdrop-filter: blur(0);
    backdrop-filter: blur(0);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s, backdrop-filter .35s, -webkit-backdrop-filter .35s, visibility .35s;
}

.overlay.open {
    opacity: 1;
    visibility: visible;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.modal {
    width: 100%;
    max-width: 440px;
    max-height: 100%;
    overflow: auto;
    background: #fff;
    border-radius: 26px;
    padding: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .16);
    transform: translateY(14px) scale(.98);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}

.overlay.open .modal {
    transform: none;
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.modal h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -.04em;
}

.close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: var(--bubble);
    color: var(--text);
    font- inherit;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.modal form {
    display: grid;
    gap: 10px;
}

.modal input,
.modal textarea {
    width: 100%;
    border: 1px solid transparent;
    background: var(--bubble);
    color: #000;
    border-radius: 16px;
    padding: 14px 18px;
    font: inherit;
    font-size: 18px;
    letter-spacing: -.02em;
    resize: none;
}

.modal input::placeholder,
.modal textarea::placeholder {
    color: #8c8c8c;
}

.modal input:focus,
.modal textarea:focus {
    outline: none;
    border-color: var(--blue);
}

.submit {
    margin-top: 6px;
    border: 0;
    border-radius: 15px;
    background: var(--blue);
    color: #fff;
    font: inherit;
    font-size: 18px;
    letter-spacing: -.02em;
    padding: 14px 20px;
    cursor: pointer;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
.br-d {
    display: inline;
}

@media (max-width: 760px) {
    .hero h1 {
        letter-spacing: -1px;
    }

    .br-d {
        display: none;
    }

    .wrap {
        padding: 18px 18px 5px;
    }

    .shots {
        grid-template-columns: 1fr;
        padding: 0 18px;
    }

    .profile-pic {
        width: 68px;
        height: 68px;
        border-radius: 24px;
    }

    .profile-meta strong {
        font-size: 18px;
    }

    .profile-meta span {
        font-size: 15px;
    }

    .about-lead,
    .story-item p {
        font-size: 16px;
    }

    .tag {
        font-size: 14px;
        padding: 8px 16px;
    }

    .nav {
        padding-top: 24px;
        min-height: 60px;
    }

    .logo {
        font-size: 20px;
        line-height: 32px;
    }

    .burger {
        width: 28px;
        height: 20px;
    }

    .burger span {
        width: 28px;
        height: 2px;
        top: 9px;
    }

    .burger span:nth-child(1) {
        transform: translate3d(0, -4.5px, 0) rotate(0deg);
    }

    .burger span:nth-child(2) {
        transform: translate3d(0, 4.5px, 0) rotate(0deg);
    }

    .menu {
        position: absolute;
        left: 18px;
        right: 18px;
        top: calc(100% + 2px);
        justify-content: space-between;
        background: var(--bubble);
        border-radius: 20px;
        padding: 14px 24px;
        opacity: 0;
        visibility: hidden;
        transform: translate3d(0, -8px, 0);
        transition: opacity .25s ease, transform .35s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .35s;
    }

    .menu.open {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: opacity .3s ease, transform .35s cubic-bezier(.4, 0, .2, 1), visibility 0s;
    }

    .menu a,
    .menu.open a {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
        font-size: 16px;
    }

    .chat {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 8px;
    }

    .avatar {
        width: 40px;
        height: 40px;
        border-radius: 16px;
    }

    .bubble {
        font-size: 16px;
        padding: 10px 16px;
        border-radius: 18px 18px 18px 4px;
    }

    .composer {
        width: 100%;
    }

    footer .wrap {
        padding-top: 28px;
        padding-bottom: 24px;
        gap: 26px;
    }

    .foot-row {
        gap: 6px 12px;
    }

    .foot-row:first-child {
        flex-wrap: nowrap;
    }

    .foot .logo {
        font-size: 20px;
    }

    .foot-links {
        font-size: 14px;
        gap: 12px;
    }

    .foot small {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
    }
}


/* ==========================================================================
   Contact Page Form
   ========================================================================== */
.contact-wrap {
    margin-top: clamp(48px, 7vw, 84px);
}

.contact-form {
    max-width: 760px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.field-group,
.field {
    display: flex;
    flex-direction: column;
}

.field .small-label,
.field-group .small-label {
    margin-bottom: 12px;
}

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

.topic-pill {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.topic-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.topic-pill span {
    display: inline-block;
    padding: 10px 22px;
    border: 1px solid #d4d4d4;
    border-radius: 999px;
    font-size: 16px;
    color: var(--text);
    line-height: 1.2;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.topic-pill:hover span {
    border-color: #000;
    color: #000;
}

.topic-pill input:checked + span {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

.topic-pill input:focus-visible + span {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

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

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    border: 1px solid transparent;
    background: var(--bubble);
    color: #000;
    border-radius: 20px;
    padding: 16px 20px;
    font: inherit;
    font-size: 18px;
    letter-spacing: -.02em;
    resize: vertical;
    transition: border-color .2s ease, background-color .2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--gray);
    opacity: 1;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--blue);
}

.form-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 4px;
}

.form-note {
    font-size: 15px;
    color: var(--gray);
}

.send-wide {
    height: 50px;
    padding: 0 24px;
    border: 0;
    border-radius: 16px;
    background: var(--blue);
    color: #fff;
    font: inherit;
    font-size: 18px;
    letter-spacing: -.02em;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background-color .3s ease;
}

.send-wide:hover {
    background: var(--btn);
}

@media (max-width: 760px) {
    .field-row {
        grid-template-columns: 1fr;
    }

    .topic-pill span {
        font-size: 14px;
        padding: 8px 16px;
    }

    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form textarea {
        font-size: 16px;
        padding: 14px 18px;
        border-radius: 18px;
    }

    .send-wide {
        width: 100%;
        justify-content: center;
        font-size: 16px;
    }
}



/* ==========================================================================
   Work Page: Case Studies & Archive
   ========================================================================== */
.work-list {
    margin-top: clamp(48px, 7vw, 84px);
    display: flex;
    flex-direction: column;
    gap: clamp(64px, 9vw, 110px);
}

.work-item {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.work-thumb {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #f9fafb;
    border: 1px solid #efefef;
}

.work-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.work-info {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.work-head h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 500;
    letter-spacing: -1px;
    color: #000;
}

.work-head span {
    display: block;
    margin-top: 4px;
    font-size: 16px;
    color: var(--gray);
}

.work-desc {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

.work-desc p {
    margin: 0;
    font-size: 18px;
    line-height: 1.55;
    color: var(--text);
}

.work-link {
    margin-top: 2px;
    color: #000;
}

/* Archive Rows */
.archive-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #efefef;
}

.archive-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px 24px;
    padding: 22px 0;
    border-bottom: 1px solid #efefef;
    flex-wrap: wrap;
}

.archive-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.archive-title strong {
    font-size: 20px;
    font-weight: 500;
    color: #000;
    letter-spacing: -.03em;
}

.archive-title span {
    font-size: 16px;
    color: var(--text);
}

.archive-meta {
    font-size: 15px;
    color: var(--gray);
    white-space: nowrap;
}

@media (max-width: 760px) {
    .work-info {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .work-desc p {
        font-size: 16px;
    }

    .archive-title strong {
        font-size: 18px;
    }

    .archive-title span {
        font-size: 15px;
    }
}