/* Small editorial details, scoped to the home page. */
body:has(.home-page) {
    --studio-accent: #d9c49c;
    --studio-line: color-mix(in srgb, var(--whiteColor) 17%, transparent);
}
html:not([data-theme="light"]) body:has(.home-page) {
    --paragraph: rgba(246, 240, 229, .7);
}
.home-page .hero-sec {
    position: relative;
    background: radial-gradient(ellipse at 80% 35%, #d9c49c0d, transparent 60%);
}
.home-page ::selection { background: #d9c49c; color: #201d18; }
.reading-progress {
    position: fixed;
    inset: 0 0 auto;
    height: 2px;
    background: #d9c49c;
    transform: scaleX(0);
    transform-origin: left;
    z-index: 9999;
    pointer-events: none;
}
.home-page .hero-sec .subtitle { letter-spacing: .13em; font-size: 11px; }
.home-page .hero-sec .subtitle img { opacity: .65; }
.home-page .instagram-gallery { gap: clamp(16px, 3vw, 44px); padding: 18px 0 28px; }
.home-page .instagram-photo {
    transform: none;
}
.home-page .studio-print { padding-top: 0; }
.home-page .instagram-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #ffffff16, transparent 45%, #00000012);
    pointer-events: none;
}
.photo-open {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    background: transparent;
    z-index: 2;
    cursor: zoom-in;
}
.photo-open span {
    position: absolute;
    right: 22px;
    bottom: 22px;
    border: 1px solid #ffffff50;
    background: #17171480;
    backdrop-filter: blur(12px);
    border-radius: 30px;
    padding: 9px 15px;
    color: #fff;
    font: 10px 'Inter', sans-serif;
    letter-spacing: .12em;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .3s, transform .3s;
}
.instagram-photo:hover .photo-open span,
.photo-open:focus-visible span { opacity: 1; transform: translateY(0); }
.photo-open:focus-visible { outline: 3px solid var(--studio-accent); outline-offset: -6px; }
.home-page .hero-banner-content { border-top: 1px solid var(--studio-line); padding-top: 22px; }
.home-page .work-box .work-img { overflow: hidden; }
.home-page .work-box .work-img img { transition: transform .85s cubic-bezier(.2,.7,.2,1); }
.home-page .work-box:hover .work-img img { transform: scale(1.035); }
.home-page a:focus-visible, .home-page button:focus-visible { outline: 2px solid var(--studio-accent); outline-offset: 5px; }
.photo-viewer {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 64px 24px 30px;
    border: 0;
    background: #111210f5;
    color: #f6f0e5;
    overflow: auto;
}
.photo-viewer::backdrop { background: #111210ed; }
.photo-viewer[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.photo-viewer img { max-width: 100%; max-height: calc(100dvh - 145px); object-fit: contain; box-shadow: 0 20px 80px #0006; }
.photo-viewer p { margin: 0; font: 11px 'Inter', sans-serif; letter-spacing: .15em; opacity: .65; }
.photo-viewer-close { position: absolute; top: 18px; right: 24px; border: 1px solid #ffffff40; border-radius: 30px; background: transparent; color: inherit; padding: 10px 18px; cursor: pointer; font: 12px 'Inter', sans-serif; }
.photo-viewer-close:hover { background: #ffffff18; }
@media (hover: hover) and (pointer: fine) {
    .home-page .instagram-photo:hover { filter: none; }
}
@media (max-width: 767px) {
    .home-page .studio-print:nth-child(2) { padding-top: 0; }
    .photo-open span { right: 12px; bottom: 12px; padding: 7px 9px; font-size: 9px; opacity: 1; transform: none; }
    .home-page .hero-sec .subtitle { letter-spacing: .06em; }
}
@media (prefers-reduced-motion: reduce) {
    .home-page .instagram-photo, .home-page .work-box .work-img img, .photo-open span { transition: none; transform: none; }
}

/* Photograph captions and a quieter, more personal home. */
.home-page .studio-print { margin: 0; min-width: 0; }
.home-page .studio-print figcaption {
    display: flex;
    gap: 16px;
    padding: 20px 2px 8px;
    color: var(--whiteColor);
}
.studio-print-index, .gallery-note, .studio-eyebrow, .studio-step-number {
    font: 10px/1.6 'Inter', sans-serif;
    letter-spacing: .14em;
}
.studio-print-index { opacity: .5; padding-top: 4px; }
.home-page .studio-print h3 { font-size: clamp(20px, 2vw, 27px); font-weight: 400; margin: 0 0 7px; letter-spacing: -.02em; }
.home-page .studio-print figcaption p { font-size: 12px; line-height: 1.7; margin: 0; color: var(--paragraph); }
.gallery-note { color: var(--whiteColor); opacity: .6; }
.home-page .hero-banner-content { gap: 24px; align-items: center; }
.home-page .hero-banner-content p { font-size: 14px; line-height: 1.8; font-weight: 400; text-transform: none; width: min(100%, 483px); }
.home-page .hero-sec .hero-sec-top { margin-bottom: clamp(64px, 8vw, 115px); }
.home-page .hero-sec .hero-sec-bottom { gap: 32px; }
.home-page .hero-sec .hero-sec-bottom .hero-sec-bottom-right { width: min(36%, 390px); gap: 44px; }
.home-page .hero-sec .hero-sec-bottom-right-content-top { padding-right: 0; }
.home-page .hero-sec .hero-title {
    font-size: clamp(44px, 7vw, 116px);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -.045em;
}
/* Deja espacio vertical para los trazos de Lorsen sin cortar la animacion. */
.home-page .hero-title > .overflow-hidden {
    padding-block: .2em;
    margin-block: -.2em;
}
.home-page .hero-sec .hero-sec-bottom {
    flex-wrap: wrap;
    gap: 32px;
}
.studio-story { padding: clamp(80px, 11vw, 160px) 0; }
.studio-story-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 7vw, 110px); align-items: start; }
.studio-eyebrow { color: var(--whiteColor); opacity: .55; margin: 0 0 24px; }
.studio-story h2, .studio-process h2 { font-size: clamp(34px, 4.5vw, 66px); line-height: 1.12; font-weight: 400; letter-spacing: -.035em; margin: 0; color: var(--whiteColor); }
.studio-story h2 em { font-weight: 400; opacity: .7; }
.studio-story-copy { padding-top: 40px; }
.studio-story-copy p { color: var(--paragraph); font-size: 16px; line-height: 1.9; max-width: 48ch; margin: 0 0 22px; }
.studio-text-link { display: inline-flex; align-items: center; gap: 24px; padding: 8px 0; border-bottom: 1px solid var(--studio-line); font-size: 13px; color: var(--whiteColor); }
.studio-text-link span { transition: transform .25s; }
.studio-text-link:hover { color: var(--whiteColor); border-color: currentColor; }
.studio-text-link:hover span { transform: translate(3px, -3px); }
.studio-process { padding-bottom: clamp(80px, 10vw, 140px); }
.studio-process-heading { border-top: 1px solid var(--studio-line); padding-top: 36px; }
.studio-process h2 { font-size: clamp(32px, 3.5vw, 50px); }
.studio-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); padding: 0; margin: 56px 0 0; list-style: none; }
.studio-steps li { padding-top: 20px; border-top: 1px solid var(--studio-line); }
.studio-step-number { color: var(--whiteColor); opacity: .5; }
.studio-steps h3 { font-size: 30px; font-weight: 400; letter-spacing: -.02em; margin: 22px 0 16px; color: var(--whiteColor); }
.studio-steps p { font-size: 14px; line-height: 1.85; color: var(--paragraph); margin: 0; }
.home-page .cta-sec { padding: clamp(60px, 8vw, 110px) 0; border-top: 1px solid var(--studio-line); }
.home-page .cta-sec .custom-row { align-items: center; gap: clamp(36px, 6vw, 90px); }
.home-page .cta-sec .cta-content { flex: 1; min-width: 0; }
.home-page .cta-sec .cta-content .section-header-2 .section-title2 { font-size: clamp(36px, 4.6vw, 68px); line-height: 1.12; letter-spacing: -.035em; }
.home-page .cta-sec .cta-content .section-header-2 h6 { font-size: 15px; line-height: 1.8; text-transform: none; font-weight: 400; color: var(--paragraph); }
.home-page .cta-sec .cta-img { flex: 0 1 280px; width: 100%; height: auto; transform: rotate(3deg); }
.home-page .cta-img img { width: 100%; height: auto; border: 0; }
.home-page .cta-sec .theme-btn { gap: 20px; }
.home-page .footer-sec { padding-top: clamp(50px, 8vw, 100px); }
.home-page .footer-sec .big-text .section-title2 > .overflow-hidden {
    padding-block: .2em;
    margin-block: -.2em;
}
@media (max-width: 767px) {
    .home-page .hero-sec .hero-title { font-size: clamp(40px, 9vw, 68px); }
    .home-page .hero-sec .hero-sec-bottom { flex-direction: column; align-items: flex-start; }
    .home-page .hero-sec .hero-sec-bottom .hero-sec-bottom-right { width: 100%; align-items: flex-start; gap: 16px; }
    .home-page .instagram-gallery { gap: 32px; }
    .studio-story-grid, .studio-steps { grid-template-columns: 1fr; }
    .studio-story-copy { padding-top: 0; }
    .studio-steps { margin-top: 36px; gap: 32px; }
    .home-page .cta-sec .cta-img { flex: auto; max-width: 220px; align-self: center; }
    .home-page .hero-banner-content { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
    .studio-text-link span { transition: none; }
}
