/* Portfolio previews and the featured design collection. */
.hero-showcase {
    position: relative;
    width: 100%;
    max-width: 550px;
    aspect-ratio: 1.12;
    margin: 0 auto;
    isolation: isolate;
    direction: ltr;
}
.hero-showcase::before {
    content: "";
    position: absolute;
    inset: 9% -3% 7% 3%;
    z-index: -2;
    background: radial-gradient(ellipse at 60% 45%, #e8dfd1 0%, #eee8df 40%, transparent 73%);
    border-radius: 50%;
}
.hero-showcase::after {
    content: "";
    position: absolute;
    inset: 4% 2% 2% 7%;
    z-index: -1;
    border: 1px solid #e5dcd0;
    border-radius: 50%;
    transform: rotate(-18deg);
}
.hero-showcase-caption {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    direction: rtl;
    color: #6b6a64;
    font-size: 12px;
}
.hero-showcase-caption::before {
    content: "";
    width: 22px;
    height: 1px;
    background: #a64f35;
}
.hero-window {
    position: absolute;
    display: block;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dbd6ce;
    border-radius: 7px;
    box-shadow: 0 22px 48px -17px #3e352435, 0 3px 9px #3e35240a;
    transition: transform .35s ease, box-shadow .35s ease;
}
.hero-window-main {
    width: 86%;
    top: 12%;
    left: 0;
    z-index: 1;
    transform: rotate(-3deg);
}
.hero-window-secondary {
    width: 49%;
    right: 0;
    bottom: 8%;
    z-index: 2;
    border-color: #3e3d39;
    background: #151514;
    transform: rotate(5deg);
    box-shadow: 0 28px 46px -20px #1c1c1a85, 0 4px 12px #1c1c1a12;
}
.preview-toolbar {
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    direction: ltr;
    color: #817c72;
    background: #faf9f6;
    border-bottom: 1px solid #eeeae3;
    font-size: 9px;
    line-height: 1;
}
.preview-dots {
    display: flex;
    align-items: center;
    gap: 4px;
}
.preview-dots i {
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #d8d1c6;
}
.preview-dots i:first-child { background: #b9a58d; }
.hero-window img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    object-position: top;
}
.hero-window-secondary .preview-toolbar {
    min-height: 23px;
    padding: 7px 9px;
    background: #242422;
    border-color: #353531;
    color: #c5c0b6;
    font-size: 8px;
}
.hero-window-secondary .preview-dots i { background: #66645c; }
.hero-window-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    color: #524e46;
    font-size: 11px;
    direction: rtl;
    border-top: 1px solid #eeeae3;
}
.hero-window-label span:last-child { color: #a64f35; }
.hero-window-secondary .hero-window-label {
    color: #e5dfd5;
    border-color: #353531;
    padding: 9px 11px;
    font-size: 10px;
}
.hero-window-secondary .hero-window-label span:last-child { color: #c7aa82; }
.hero-showcase-note {
    position: absolute;
    right: 2%;
    bottom: -3%;
    display: flex;
    align-items: center;
    gap: 10px;
    direction: rtl;
    padding: 10px 14px;
    background: #fffdf8;
    border: 1px solid #e5ddd0;
    box-shadow: 0 4px 14px #493b2508;
    font-size: 11px;
    color: #6b6a64;
    border-radius: 3px;
}
.hero-showcase-note b {
    color: #a64f35;
    font-weight: 500;
    border-left: 1px solid #e5ddd0;
    padding-left: 10px;
}
.templates-section {
    background: linear-gradient(155deg, #f0ece4, #f7f4ee 65%, #eee9df);
    border-top: 1px solid #e3dcd0;
    border-bottom-color: #e3dcd0;
    position: relative;
}
.templates-heading { gap: 28px; }
.templates-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 6px 10px;
    border: 1px solid #d9c8b6;
    background: #fffaf2;
    color: #8a4934;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
}
.templates-eyebrow::before {
    content: "";
    width: 5px;
    height: 5px;
    background: #a64f35;
    border-radius: 50%;
}
.template-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
.template-card {
    --card-accent: #a64f35;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    padding: 30px;
    background: #fffefd;
    border: 1px solid #ded7cc;
    border-radius: 9px;
    box-shadow: 0 9px 22px -10px #4c3c2430, 0 1px 3px #4c3c2405;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.template-card::before {
    content: "";
    position: absolute;
    top: -1px;
    right: 30px;
    width: 42px;
    height: 3px;
    background: var(--card-accent);
    border-radius: 0 0 2px 2px;
}
.template-card--light { --card-accent: #7d8975; }
.template-card--dark { --card-accent: #55534e; }
.template-card--multifaceted { --card-accent: #927b5e; }
.template-preview {
    display: block;
    margin-bottom: 26px;
    padding: 10px;
    background: #f0ede7;
    border: 1px solid #e7e0d5;
    border-radius: 5px;
}
.template-preview-media {
    overflow: hidden;
    background: #fff;
    border: 1px solid #ded9d0;
    border-radius: 3px;
    box-shadow: 0 3px 8px #463b2910;
}
.template-preview .preview-toolbar { min-height: 25px; padding: 7px 9px; }
.template-preview img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top;
    transition: transform .45s ease;
    transform-origin: center top;
}
.template-card--dark .template-preview { background: #e7e3dc; }
.template-card--dark .template-preview-media { border-color: #282824; }
.template-card--dark .template-preview .preview-toolbar {
    color: #d4d0c7;
    background: #272725;
    border-color: #373731;
}
.template-card--dark .preview-dots i { background: #777267; }
.template-card-number {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--card-accent);
    background: #f6f2ec;
    border: 1px solid #e8dfd2;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 500;
}
.template-card:focus-within {
    border-color: #bfa88e;
    box-shadow: 0 15px 32px -13px #4c3c2438;
}
@media (hover: hover) and (pointer: fine) {
    .hero-window-main:hover { transform: rotate(-1deg) translateY(-4px); }
    .hero-window-secondary:hover { transform: rotate(3deg) translateY(-4px); }
    .template-card:hover {
        transform: translateY(-5px);
        border-color: #c1ad93;
        box-shadow: 0 22px 36px -17px #4c3c2445, 0 2px 5px #4c3c2408;
    }
    .template-card:hover .template-preview img { transform: scale(1.025); }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-showcase { max-width: 580px; }
    .template-card { padding: 22px; }
    .template-preview { padding: 7px; }
}
@media (max-width: 767px) {
    .hero-showcase { max-width: 460px; aspect-ratio: 1.02; }
    .hero-showcase-caption { font-size: 11px; }
    .hero-window-main { top: 13%; width: 90%; }
    .hero-window-secondary { width: 51%; bottom: 8%; }
    .hero-window-label { font-size: 10px; padding: 9px 11px; }
    .hero-window-secondary .hero-window-label { font-size: 9px; padding: 8px; }
    .hero-showcase-note { font-size: 10px; padding: 8px 10px; }
    .template-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .template-card { padding: 20px; }
    .template-card::before { right: 20px; }
    .template-preview { padding: 8px; margin-bottom: 22px; }
    .templates-heading { gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-window, .template-card, .template-preview img { transition: none; }
    .hero-window-main:hover { transform: rotate(-3deg); }
    .hero-window-secondary:hover { transform: rotate(5deg); }
    .template-card:hover, .template-card:hover .template-preview img { transform: none; }
}
