:root { --ink: #202a30; --paper: #f0f2f1; --line: #d0d8da; --accent: #6d8b98; }
body { margin: 0; font-family: "DM Sans", sans-serif; color: var(--ink); background: var(--paper); }
.site-header { position: absolute; z-index: 10; width: 100%; }
.site-header .container-fluid {
    width: 92%;
    max-width: 1560px;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: auto;
    margin-right: auto;
}
footer .container-fluid,
main > section:not(.hero) > .container-fluid {
    width: calc(100% - 48px);
    max-width: 1040px;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: auto;
    margin-right: auto;
}
.navbar-brand, .nav-link { color: #fff !important; }
.navbar-brand { font-family: "Manrope", sans-serif; font-weight: 700; font-size: 1.25rem; }
.nav-link { margin-left: 1.2rem; }
.portfolio-home-link { display: inline-flex; align-items: center; gap: 5px; margin-right: 1rem; padding: 5px 0; color: rgba(255,255,255,.72); font-family: "Manrope", sans-serif; font-size: 1.25rem; font-weight: 600; line-height: inherit; text-decoration: none; transition: color .2s ease; }
.portfolio-home-link i { font-size: .9rem; }
.portfolio-home-link:hover, .portfolio-home-link:focus-visible { color: #fff; }
.portfolio-home-link:focus-visible { outline: 2px solid rgba(255,255,255,.7); outline-offset: 4px; }
.hero { height: 100vh; height: 100svh; min-height: min(760px, 100vh); min-height: min(760px, 100svh); position: relative; overflow: hidden; background: #090b10; display: flex; align-items: center; padding: 100px 4% 40px; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .78; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,9,16,.86) 0%, rgba(7,9,16,.72) 48%, rgba(7,9,16,.48) 100%); }
.hero-layout { position: relative; z-index: 1; width: 100%; max-width: 1560px; margin: auto; }
.hero-copy { color: #fff; max-width: 790px; }
.hero-copy .hero-kicker, .hero-copy .hero-question { color: #c4c6ce; font-size: .84rem; }
.hero-copy .hero-kicker { letter-spacing: .06em; font-weight: 700; color: var(--accent); }
.hero-copy .hero-question { margin: 20px 0 8px; }
.hero-copy h1 { font-family: "Manrope", sans-serif; font-size: clamp(2.4rem, 3.8vw, 3.5rem); font-weight: 700; line-height: .98; letter-spacing: -.06em; max-width: 720px; }
.hero-copy .hero-description { color: #d0d1d6; max-width: 620px; font-size: .94rem; line-height: 1.5; margin: 14px 0; }
.hero-cta { display: inline-flex; gap: 10px; align-items: center; background: var(--accent); color: #171923; text-decoration: none; font-size: .9rem; font-weight: 700; border-radius: 30px; padding: 11px 20px; transition: transform .2s ease, background .2s ease; }
.hero-cta:hover { background: #8ca7b1; color: #171923; transform: translateY(-2px); }
.hero-social-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hero-social-links a { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 14px; border: 1px solid rgba(109,139,152,.55); border-radius: 30px; background: rgba(255,255,255,.96); color: #405d68; text-decoration: none; font-size: .83rem; font-weight: 700; transition: .2s ease; }
.hero-social-links a i { font-size: .95rem; }
.hero-social-links a:hover { background: var(--accent); color: #171923; transform: translateY(-2px); }
.intro { padding: 34px 0; background: var(--paper); }
.label { letter-spacing: .05em; font-size: .76rem; font-weight: 600; }
.studio-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(22px, 3vw, 40px); align-items: center; max-width: 1380px; margin: auto; }
.studio-photo { position: relative; margin: 0; }
.studio-photo img { width: 100%; height: 255px; object-fit: cover; border-radius: 12px; display: block; }
.studio-photo figcaption { position: absolute; left: 18px; bottom: 14px; color: #fff; font-size: .74rem; text-shadow: 0 1px 5px rgba(0,0,0,.7); }
.studio-copy .label { color: #587782; }
.studio-copy h2 { font-family: "Manrope", sans-serif; font-size: clamp(1.45rem, 2.1vw, 1.9rem); line-height: 1.08; letter-spacing: -.05em; }
.studio-copy > p:not(.label):not(.studio-signature) { max-width: 720px; margin: 8px 0 0; color: #5b5e60; font-size: .85rem; line-height: 1.5; }
.studio-signature { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; border-top: 1px solid var(--line); padding-top: 9px; margin-top: 11px; font-size: .75rem; }
.studio-signature span { color: #74797a; }

.projects { background: #fff; padding: 36px 0 42px; }
.projects-intro { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: end; max-width: 1380px; margin: 0 auto 20px; }
.projects-intro .label { color: #587782; }
.projects-intro h2 { font-family: "Manrope", sans-serif; font-size: clamp(1.25rem, 3vw, 1.9rem); line-height: 1.08; letter-spacing: -.05em; white-space: nowrap; margin: 0; }
.projects-intro > p { color: #63686a; font-size: .92rem; line-height: 1.5; max-width: 430px; margin: 0 0 4px; }
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 1380px; margin: auto; }
.project-card { aspect-ratio: 1.35 / 1; position: relative; overflow: hidden; border-radius: 10px; cursor: pointer; background: #20232a; }
.project-card > img { display: block; width: 100%; height: 100%; min-height: inherit; object-fit: cover; transition: transform .6s ease, filter .4s ease; }
.project-card::after { content: ""; position: absolute; inset: 30% 0 0; background: linear-gradient(transparent, rgba(10,12,16,.78)); pointer-events: none; }
.project-card:hover > img { transform: scale(1.025); filter: brightness(.88); }
.project-card-caption { position: absolute; z-index: 1; inset: auto 16px 14px; color: #fff; }
.project-card-caption > span { display: block; font-size: .76rem; letter-spacing: .05em; opacity: .84; }
.project-card-caption h3 { font-family: "Manrope", sans-serif; font-size: clamp(1.15rem, 1.8vw, 1.65rem); line-height: 1.08; margin: 5px 0 0; }
.project-card-caption b { display: block; margin-top: 6px; font-size: .82rem; font-weight: 600; }
.project-card-caption b i { margin-left: 5px; }

.challenge { padding: 32px 0; background: #f3f6f4; }
.challenge-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(24px, 4vw, 56px); align-items: center; max-width: 1380px; margin: auto; }
.challenge .label, .services > .container-fluid > .label { color: #587782; }
.challenge h2 { font-family: "Manrope", sans-serif; font-size: clamp(1.45rem, 2.1vw, 1.9rem); line-height: 1.08; letter-spacing: -.05em; }
.challenge-layout > div > p:last-child { color: #62696a; font-size: .85rem; line-height: 1.5; }
.challenge-list { list-style: none; margin: 0; padding: 0; }
.challenge-list li { display: flex; gap: 9px; padding: 7px 0; border-top: 1px solid #d5ddda; color: #4a5254; font-size: .84rem; }
.challenge-list li:last-child { border-bottom: 1px solid #d5ddda; }
.challenge-list i { color: #6d8b98; }

.services { padding: 34px 0; background: var(--paper); }
.services h2 { font-family: "Manrope", sans-serif; font-size: clamp(1.45rem, 2.1vw, 1.9rem); line-height: 1.08; letter-spacing: -.05em; max-width: 850px; }
.services-intro { max-width: 720px; color: #646a6a; font-size: .85rem; line-height: 1.5; margin: 8px 0 15px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.service-card { padding: 14px; border: 1px solid #d3dddf; border-radius: 10px; background: #f7f9f8; }
.service-card > i, .service-step-number { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 7px; background: #e1eaec; margin-bottom: 9px; }
.service-card > i { color: #4a6b78; font-size: .92rem; }
.service-step-number { color: #4a6b78; font-family: "Manrope", sans-serif; font-size: .7rem; font-weight: 700; }
.service-card h3 { font-family: "Manrope", sans-serif; font-size: .96rem; margin-bottom: 0; }
.service-card p { color: #62696a; font-size: .82rem; line-height: 1.5; margin: 7px 0 0; }
.renovation { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 205px; overflow: hidden; border-radius: 12px; background: #171923; color: #fff; margin-top: 14px; }
.renovation-copy { align-self: center; padding: clamp(20px, 2.7vw, 30px); }
.renovation-copy .label { color: var(--accent); }
.renovation-copy h3 { font-family: "Manrope", sans-serif; font-size: clamp(1.45rem, 2.1vw, 1.9rem); line-height: 1.08; letter-spacing: -.04em; }
.renovation-copy > p:last-child { color: #c7c9ce; font-size: .85rem; line-height: 1.5; margin: 9px 0 0; max-width: 520px; }
.renovation > img { width: 100%; height: 100%; min-height: 205px; object-fit: cover; }

.project-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; background: rgba(20,20,18,.96); color: #fff; padding: 40px; }
.project-modal.open { display: flex; }
.modal-content-wrap { width: min(1180px, 92vw); }
.modal-content-wrap > img { width: 100%; max-height: 72vh; object-fit: contain; background: #111; }
.modal-caption { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; }
.modal-caption div { display: flex; align-items: center; gap: 12px; }
.modal-caption button, .modal-close { border: 0; background: transparent; color: #fff; }
.modal-caption button { font-size: 1.25rem; }
.modal-close { position: absolute; right: 28px; top: 18px; font-size: 2.2rem; }
footer { background: #151722; color: #aaaeba; border-top: 1px solid #30323d; padding: 10px 0; }
footer .container-fluid { display: flex; align-items: center; justify-content: space-between; font-size: .82rem; }
footer a { color: inherit; text-decoration: none; }
footer a:hover { color: #fff; }
footer .footer-cta { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 24px; background: var(--accent); color: #171923; font-size: .82rem; font-weight: 700; transition: background .2s ease; }
footer .footer-cta:hover { background: #8ca7b1; color: #171923; }
@media (max-width: 767px) {
    .navbar-collapse { background: rgba(12,14,22,.96); padding: 15px; }
    .nav-link { margin: 0; }
    .site-header .container-fluid { width: calc(100% - 40px); }
    footer .container-fluid,
    main > section:not(.hero) > .container-fluid { width: calc(100% - 32px); }
    footer .container-fluid { flex-direction: column; align-items: center; gap: 8px; text-align: center; }
    .hero { height: auto; min-height: 0; max-height: none; padding: 100px 20px 32px; }
    .hero-layout { display: block; }
    .hero-copy .hero-question { margin-top: 16px; }
    .hero-copy h1 { font-size: clamp(2.45rem, 10.5vw, 3.8rem); }
    .hero-copy .hero-description { font-size: .88rem; margin: 12px 0; }
    .hero-cta { padding: 9px 15px; }
    .hero-social-links { gap: 8px; }
    .hero-social-links { margin-top: 12px; }
    .hero-social-links a { min-height: 36px; padding-inline: 11px; font-size: .76rem; }
    .intro, .services { padding: 28px 0; }
    .projects { padding: 30px 0 34px; }
    .studio-layout, .projects-intro, .challenge-layout, .services-grid, .renovation { grid-template-columns: 1fr; }
    .studio-photo img { height: 215px; }
    .projects-intro { gap: 15px; margin-bottom: 20px; }
    .projects-intro h2 { white-space: normal; }
    .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .project-card { aspect-ratio: 1.05 / 1; }
    .project-card-caption { inset: auto 10px 10px; }
    .project-card-caption > span { font-size: .62rem; }
    .project-card-caption h3 { font-size: 1.1rem; }
    .project-card-caption b { position: static; display: block; margin-top: 3px; font-size: .7rem; }
    .challenge { padding: 28px 0; }
    .services-grid { gap: 12px; }
    .renovation { min-height: 0; }
    .renovation > img { min-height: 185px; max-height: 235px; }
    .project-modal { padding: 18px; }
    .modal-content-wrap { width: 100%; }
    .modal-content-wrap > img { max-height: 68vh; }
    .modal-caption { gap: 12px; }
}
@media (min-width: 768px) and (max-width: 1050px) {
    .hero { padding-inline: 4%; }
    .hero-copy h1 { font-size: clamp(2.3rem, 3.6vw, 3.3rem); }
    .projects-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .project-card { aspect-ratio: 1.35 / 1; }
}
@media (min-width: 768px) and (max-width: 991px) {
    .studio-photo img { height: 310px; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .service-card:last-child { grid-column: 1 / -1; }
}
@media (max-height: 780px) and (min-width: 768px) {
    .hero { padding-top: 82px; padding-bottom: 24px; }
    .hero-copy .hero-question { margin-top: 14px; }
    .hero-copy h1 { font-size: clamp(2.3rem, 3.6vw, 3.3rem); }
    .hero-copy .hero-description { margin: 12px 0; }
    .hero-social-links { margin-top: 12px; }
}
