/*
 * Hebeexterior adaptation of the iSTUDIO template by HTML Codex.
 * Original template licence and attribution are preserved in assets/istudio.
 */
:root {
    --hebe-primary: #fe0202;
    --hebe-primary-dark: #fe0202;
    --hebe-ink: #000000;
    --hebe-soft: #ECECEC;
    --hebe-paper: #FFFFFF;
    --hebe-muted: #6D6D6D;
    --hebe-white: #FFFFFF;
    --hebe-ease: cubic-bezier(.2,.8,.2,1);
}

html { scroll-behavior: smooth; }

body.istudio-hebe {
    overflow-x: hidden;
    color: var(--hebe-muted);
    background: var(--hebe-white);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
}

.istudio-hebe h1,
.istudio-hebe h2,
.istudio-hebe h3,
.istudio-hebe h4,
.istudio-hebe h5,
.istudio-hebe h6 {
    color: var(--hebe-ink);
    font-family: "Segoe UI", Arial, sans-serif;
    font-weight: 600;
    letter-spacing: -.035em;
}

.hebe-skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 9999;
    padding: 10px 14px;
    color: #FFFFFF;
    background: var(--hebe-primary);
    transform: translateY(-150%);
}
.hebe-skip-link:focus { transform: translateY(0); }

.hebe-nav-shell {
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.94);
    box-shadow: 0 8px 30px rgba(0,0,0,.04);
    backdrop-filter: blur(18px);
    transition: box-shadow .3s, background .3s;
}

.hebe-nav-shell.is-scrolled {
    background: rgba(255,255,255,.98);
    box-shadow: 0 12px 35px rgba(0,0,0,.10);
}

.hebe-nav-shell .navbar {
    min-height: 84px;
    padding: 12px 0;
    border-color: rgba(254,2,2,.16) !important;
}

.hebe-istudio-brand {
    display: inline-flex !important;
    width: max-content;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    color: #000000;
    text-decoration: none;
    line-height: 1;
}

.hebe-istudio-brand span {
    color: #fe0202;
    font-size: clamp(25px, 2.3vw, 34px);
    font-weight: 900;
    letter-spacing: -.07em;
}

.hebe-istudio-brand small {
    margin-top: 2px;
    margin-left: 2px;
    color: #000000;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .28em;
}

.hebe-istudio-brand:hover span { color: #fe0202; }

.hebe-nav-shell .navbar-nav .nav-link {
    position: relative;
    margin-left: 24px;
    padding: 10px 0;
    color: #0D6B68;
    font-size: 14px;
    font-weight: 600;
}
.hebe-nav-shell .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 5px;
    left: 0;
    height: 2px;
    background: var(--hebe-primary);
    transform: scaleX(0);
    transition: transform .3s var(--hebe-ease);
}
.hebe-nav-shell .navbar-nav .nav-link:hover::after,
.hebe-nav-shell .navbar-nav .nav-link.active::after { transform: scaleX(1); }

.hebe-account-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: 28px;
    padding-left: 28px;
    border-left: 1px solid rgba(254,2,2,.14);
}
.hebe-account-nav a {
    color: #0D6B68;
    font-size: 13px;
    font-weight: 700;
}
.hebe-account-nav .hebe-account-button {
    padding: 10px 16px;
    color: #FFFFFF;
    background: var(--hebe-primary);
}

.hebe-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,.76);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.hebe-eyebrow::before {
    content: "";
    width: 30px;
    height: 2px;
    background: currentColor;
}
.hebe-eyebrow.dark { color: var(--hebe-primary); }

.hebe-hero-header {
    position: relative;
    overflow: hidden;
    padding: clamp(72px, 8vw, 120px) 0 54px;
    background:
        linear-gradient(rgba(254,2,2,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(254,2,2,.08) 1px, transparent 1px),
        var(--hebe-soft);
    background-size: 54px 54px;
}
.hebe-hero-header::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    left: -260px;
    top: -250px;
    border: 90px solid rgba(254,2,2,.055);
    border-radius: 50%;
}

.hebe-hero-copy { max-width: 620px; }
.hebe-hero-copy .hebe-eyebrow { color: var(--hebe-primary); }
.hebe-hero-copy h1 {
    max-width: 640px;
    margin: 24px 0;
    font-size: clamp(46px, 5vw, 70px);
    line-height: .98;
    letter-spacing: -.06em;
}
.hebe-hero-copy h1 em {
    color: var(--hebe-primary);
    font-family: Georgia, serif;
    font-weight: 400;
}
.hebe-hero-copy p {
    max-width: 550px;
    margin-bottom: 30px;
    color: #0D6B68;
    font-size: 17px;
}
.hebe-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.istudio-hebe .btn {
    padding: 12px 24px;
    border-radius: 0;
    font-size: 13px;
    font-weight: 700;
}
.istudio-hebe .btn-primary {
    color: #FFFFFF;
    background: var(--hebe-primary);
    border-color: var(--hebe-primary);
}
.istudio-hebe .btn-primary:hover {
    background: var(--hebe-primary-dark);
    border-color: var(--hebe-primary-dark);
}
.istudio-hebe .btn-outline-primary {
    color: var(--hebe-primary);
    border: 2px solid var(--hebe-primary);
}

.hebe-header-carousel {
    position: relative;
    min-height: 520px;
    margin-left: 20px;
    padding: 34px 72px 34px 0;
}
.hebe-header-carousel::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 54%;
    height: 100%;
    background: var(--hebe-primary);
}
.hebe-hero-slide {
    position: absolute;
    inset: 34px 72px 34px 0;
    display: block;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: opacity .6s var(--hebe-ease), transform .6s var(--hebe-ease), visibility .6s;
}
.hebe-hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
}
.hebe-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hebe-hero-slide::after {
    content: "";
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(transparent, rgba(0,0,0,.86));
}
.hebe-hero-slide > span {
    position: absolute;
    z-index: 2;
    right: 28px;
    bottom: 25px;
    left: 28px;
    display: flex;
    flex-direction: column;
    color: #FFFFFF;
}
.hebe-hero-slide small {
    margin-bottom: 4px;
    color: rgba(255,255,255,.7);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.hebe-hero-slide strong { color: #FFFFFF; font-size: 18px; }
.hebe-hero-dots {
    position: absolute;
    z-index: 5;
    top: 50%;
    right: 29px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transform: translateY(-50%);
}
.hebe-hero-dots button {
    width: 14px;
    height: 14px;
    padding: 0;
    border: 2px solid #FFFFFF;
    background: transparent;
    transition: height .3s, background .3s;
}
.hebe-hero-dots button.is-active { height: 30px; background: #FFFFFF; }

.hebe-hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 48px;
    border-top: 1px solid rgba(254,2,2,.18);
}
.hebe-hero-features div {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 20px;
    border-right: 1px solid rgba(254,2,2,.18);
}
.hebe-hero-features div:last-child { border-right: 0; }
.hebe-hero-features span {
    color: var(--hebe-primary);
    font-size: 10px;
    font-weight: 800;
}
.hebe-hero-features strong { color: var(--hebe-ink); font-size: 14px; }

.hebe-about-section { padding: clamp(80px, 9vw, 130px) 0; }
.hebe-about-images {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    min-height: 520px;
}
.hebe-about-images img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}
.hebe-about-images img:nth-child(2) { align-self: end; height: 360px; }
.hebe-about-images > div {
    position: absolute;
    right: 0;
    bottom: 0;
    width: calc(50% - 9px);
    padding: 24px;
    color: #FFFFFF;
    background: var(--hebe-primary);
}
.hebe-about-images b { display: block; color: #FFFFFF; font-size: 22px; }
.hebe-about-images span { font-size: 12px; }
.hebe-about-copy { max-width: 600px; padding-left: clamp(0px, 3vw, 42px); }
.hebe-about-copy h2,
.hebe-section-heading h2 {
    margin: 20px 0 24px;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.08;
}
.hebe-about-copy p { font-size: 16px; }
.hebe-check-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 20px;
    margin: 30px 0;
    color: var(--hebe-ink);
    font-size: 14px;
    font-weight: 600;
}
.hebe-check-grid span::first-letter { color: var(--hebe-primary); }
.hebe-arrow-link {
    display: inline-flex;
    gap: 18px;
    align-items: center;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--hebe-primary);
    color: var(--hebe-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.hebe-arrow-link b { transition: transform .25s; }
.hebe-arrow-link:hover b { transform: translateX(5px); }

.hebe-project-section { padding: 40px 0 clamp(80px, 9vw, 130px); }
.hebe-project-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    padding: clamp(38px, 5vw, 68px);
    color: #FFFFFF;
    background: var(--hebe-primary);
}
.hebe-project-intro h2 {
    max-width: 450px;
    margin: 22px 0 18px;
    color: #FFFFFF;
    font-size: clamp(36px, 4vw, 54px);
    line-height: 1.05;
}
.hebe-project-intro p { color: rgba(255,255,255,.68); }
.hebe-project-intro .btn { align-self: flex-start; margin-top: 22px; }
.hebe-project-item {
    position: relative;
    display: block;
    height: 290px;
    overflow: hidden;
}
.hebe-project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .75s var(--hebe-ease);
}
.hebe-project-item:hover img { transform: scale(1.08); }
.hebe-project-item .project-overlay {
    padding: 20px;
    justify-content: flex-end;
    background: linear-gradient(transparent 35%, rgba(0,0,0,.88));
}
.hebe-project-item small {
    color: rgba(255,255,255,.66);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.hebe-project-item strong { color: #FFFFFF; font-size: 15px; }

.hebe-category-section {
    padding: clamp(80px, 9vw, 130px) 0;
    background: var(--hebe-paper);
}
.hebe-section-heading { max-width: 750px; margin-bottom: 50px; }
.hebe-section-heading.split {
    display: flex;
    max-width: none;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
}
.hebe-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(0,0,0,.15);
    border-left: 1px solid rgba(0,0,0,.15);
}
.hebe-category-grid a {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 15px;
    align-items: center;
    min-height: 110px;
    padding: 24px;
    border-right: 1px solid rgba(0,0,0,.15);
    border-bottom: 1px solid rgba(0,0,0,.15);
    color: var(--hebe-ink);
    background: #FFFFFF;
    transition: color .3s, background .3s;
}
.hebe-category-grid a:hover { color: #FFFFFF; background: var(--hebe-primary); }
.hebe-category-grid span { color: var(--hebe-primary); font-size: 10px; font-weight: 800; }
.hebe-category-grid a:hover span { color: rgba(255,255,255,.65); }
.hebe-category-grid strong { font-size: 15px; }
.hebe-category-grid b { font-size: 18px; }

.hebe-journal-section { padding: clamp(80px, 9vw, 130px) 0; }
.hebe-journal-card {
    height: 100%;
    background: #FFFFFF;
    border: 1px solid rgba(0,0,0,.1);
    transition: transform .35s var(--hebe-ease), box-shadow .35s;
}
.hebe-journal-card:hover { transform: translateY(-7px); box-shadow: 0 24px 55px rgba(0,0,0,.1); }
.hebe-journal-card > a { display: block; height: 250px; overflow: hidden; }
.hebe-journal-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--hebe-ease);
}
.hebe-journal-card:hover img { transform: scale(1.05); }
.hebe-journal-card > div { padding: 24px; }
.hebe-journal-card span {
    color: var(--hebe-primary);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.hebe-journal-card h3 { margin: 12px 0 20px; font-size: 21px; line-height: 1.25; }
.hebe-journal-card h3 a { color: var(--hebe-ink); }
.hebe-journal-card > div > a { color: var(--hebe-primary); font-size: 11px; font-weight: 800; text-transform: uppercase; }

.hebe-istudio-footer { color: rgba(255,255,255,.58); background: var(--hebe-ink); }
.hebe-footer-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 48px 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.hebe-footer-cta span {
    color: #6D6D6D;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.hebe-footer-cta h2 {
    max-width: 700px;
    margin: 10px 0 0;
    color: #FFFFFF;
    font-size: clamp(30px, 4vw, 48px);
}
.hebe-istudio-footer .footer-brand { color: #FFFFFF; }
.hebe-istudio-footer p { max-width: 480px; }
.hebe-footer-links { display: flex; flex-direction: column; gap: 9px; }
.hebe-footer-links h3 { margin-bottom: 12px; color: #FFFFFF; font-size: 14px; }
.hebe-footer-links a { color: rgba(255,255,255,.58); font-size: 13px; }
.hebe-footer-links a:hover { color: #FFFFFF; }
.hebe-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 22px 0 0;
    border-top: 1px solid rgba(255,255,255,.12);
    font-size: 11px;
}
.hebe-footer-bottom a { color: rgba(255,255,255,.82); text-decoration: underline; }

.hebe-exact-footer .footer-brand {
    padding: 10px 14px;
    background: #FFFFFF;
}

.hebe-exact-footer .btn.btn-link {
    margin-bottom: 12px;
    padding: 11px 14px;
    border: 1px solid rgba(254,2,2,.18) !important;
    border-radius: 0;
    color: var(--hebe-primary) !important;
    background: var(--hebe-soft) !important;
    box-shadow: none !important;
    text-align: left;
    text-decoration: none;
    transition: color .25s, background .25s, transform .25s;
}

.hebe-exact-footer .btn.btn-link::before {
    color: var(--hebe-primary) !important;
}

.hebe-exact-footer .btn.btn-link:hover {
    color: var(--hebe-ink) !important;
    background: #FFFFFF !important;
    transform: translateX(4px);
}

/* Expanded About page */
.about-page-hero .narrow { max-width: 900px; }

.about-story-section,
.about-process-section {
    padding-top: clamp(75px, 8vw, 120px);
    padding-bottom: clamp(75px, 8vw, 120px);
}

.about-story-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
    gap: clamp(45px, 7vw, 100px);
    align-items: center;
}

.about-label {
    display: inline-block;
    color: var(--hebe-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.about-label.light { color: #E6F0EF; }

.about-story-copy h2,
.about-section-heading h2,
.about-principles-grid h2 {
    margin: 18px 0 24px;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.08;
}

.about-story-copy p,
.about-section-heading p {
    color: #6D6D6D;
    font-size: 16px;
    line-height: 1.8;
}

.about-story-visual {
    position: relative;
    padding-left: 38px;
}

.about-story-visual::before {
    content: "";
    position: absolute;
    top: 38px;
    right: 38px;
    bottom: 38px;
    left: 0;
    background: var(--hebe-soft);
}

.about-story-visual img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
}

.about-story-visual > div {
    position: relative;
    z-index: 2;
    display: flex;
    width: min(100%, 380px);
    margin-left: auto;
    gap: 14px;
    align-items: center;
    padding: 18px 24px;
    color: #FFFFFF;
    background: var(--hebe-primary);
}

.about-story-visual strong {
    color: #FFFFFF;
    font-size: 32px;
}

.about-story-visual span { font-size: 11px; line-height: 1.5; }

.about-focus-section {
    padding: clamp(75px, 8vw, 120px) 0;
    background: var(--hebe-paper);
}

.about-section-heading { max-width: 780px; margin-bottom: 50px; }

.about-focus-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid rgba(0,0,0,.14);
    border-left: 1px solid rgba(0,0,0,.14);
}

.about-focus-grid article {
    min-height: 285px;
    padding: 28px;
    border-right: 1px solid rgba(0,0,0,.14);
    border-bottom: 1px solid rgba(0,0,0,.14);
    background: #FFFFFF;
    transition: color .3s, background .3s, transform .3s;
}

.about-focus-grid article:hover {
    color: rgba(255,255,255,.72);
    background: var(--hebe-primary);
    transform: translateY(-5px);
}

.about-focus-grid article > span {
    color: var(--hebe-primary);
    font-size: 10px;
    font-weight: 800;
}

.about-focus-grid h3 { margin: 55px 0 14px; font-size: 23px; }
.about-focus-grid p { font-size: 13px; line-height: 1.7; }
.about-focus-grid article:hover span,
.about-focus-grid article:hover h3 { color: #FFFFFF; }

.about-process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.about-process-grid > div {
    min-height: 220px;
    padding: 26px;
    border: 1px solid rgba(0,0,0,.12);
}

.about-process-grid b {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: 30px;
    place-items: center;
    color: #FFFFFF;
    background: var(--hebe-primary);
}

.about-process-grid strong {
    display: block;
    margin-bottom: 8px;
    color: var(--hebe-ink);
    font-size: 17px;
}

.about-process-grid span { font-size: 13px; line-height: 1.7; }

.about-principles-section {
    padding: clamp(70px, 8vw, 110px) 0;
    color: rgba(255,255,255,.65);
    background: var(--hebe-ink);
}

.about-principles-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(400px, 1.1fr);
    gap: clamp(45px, 8vw, 110px);
}

.about-principles-grid h2 { color: #FFFFFF; }
.about-principles-grid p { padding-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,.1); }
.about-principles-grid strong { color: #FFFFFF; }

.about-final-cta { margin-top: 80px; margin-bottom: 90px; }

.hebe-back-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 99;
    width: 42px;
    height: 42px;
    border: 0;
    color: #FFFFFF;
    background: var(--hebe-primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: .3s;
}
.hebe-back-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* Existing application page adaptation */
.istudio-hebe .page-hero {
    padding: clamp(72px, 8vw, 110px) 0;
    color: var(--hebe-ink);
    background:
        linear-gradient(rgba(254,2,2,.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(254,2,2,.07) 1px, transparent 1px),
        var(--hebe-soft);
    background-size: 54px 54px;
}
.istudio-hebe .page-hero h1 { font-size: clamp(38px, 5vw, 62px); }
.istudio-hebe .page-hero p { color: #0D6B68; }
.istudio-hebe .content-section,
.istudio-hebe .sample-section,
.istudio-hebe .category-section,
.istudio-hebe .blog-listing-section { padding-top: 70px; padding-bottom: 90px; }
.istudio-hebe .card,
.istudio-hebe .blog-card,
.istudio-hebe .form-card,
.istudio-hebe .detail-panel {
    border-radius: 0;
    border-color: rgba(0,0,0,.1);
    box-shadow: 0 14px 35px rgba(0,0,0,.06);
}
.istudio-hebe .card img,
.istudio-hebe .blog-card img { border-radius: 0; }
.istudio-hebe .form-wrap,
.istudio-hebe .contact-layout { margin-top: 60px; margin-bottom: 80px; }
.istudio-hebe input,
.istudio-hebe select,
.istudio-hebe textarea { border-radius: 0; }

/* Keep admin dense and functional. */
.istudio-admin .admin-layout { padding-top: 40px; padding-bottom: 70px; }
.istudio-admin .site-footer { display: none; }

.hebe-reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity .7s var(--hebe-ease), transform .7s var(--hebe-ease);
}
.hebe-reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 991px) {
    .hebe-nav-shell .navbar { min-height: 72px; }
    .hebe-nav-shell .navbar-collapse { padding: 18px 0 12px; }
    .hebe-nav-shell .navbar-nav .nav-link { margin-left: 0; }
    .hebe-account-nav {
        flex-wrap: wrap;
        margin: 8px 0 0;
        padding: 14px 0 0;
        border-top: 1px solid rgba(254,2,2,.14);
        border-left: 0;
    }
    .hebe-header-carousel { min-height: 500px; margin: 30px 0 0; }
    .hebe-about-copy { padding-left: 0; }
    .hebe-project-intro { min-height: 450px; }
    .about-story-grid,
    .about-principles-grid { grid-template-columns: 1fr; }
    .about-focus-grid,
    .about-process-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 767px) {
    .hebe-hero-copy h1 { font-size: clamp(42px, 12vw, 58px); }
    .hebe-header-carousel { min-height: 420px; padding: 24px 50px 24px 0; }
    .hebe-hero-slide { inset: 24px 50px 24px 0; }
    .hebe-hero-dots { right: 18px; }
    .hebe-hero-features { grid-template-columns: 1fr; }
    .hebe-hero-features div { border-right: 0; border-bottom: 1px solid rgba(254,2,2,.18); }
    .hebe-about-images { min-height: 420px; }
    .hebe-about-images img { height: 330px; }
    .hebe-about-images img:nth-child(2) { height: 280px; }
    .hebe-check-grid { grid-template-columns: 1fr; }
    .hebe-project-item { height: 240px; }
    .hebe-category-grid { grid-template-columns: 1fr; }
    .hebe-section-heading.split,
    .hebe-footer-cta,
    .hebe-footer-bottom { align-items: flex-start; flex-direction: column; }
    .about-story-visual { padding-left: 18px; }
    .about-story-visual::before { top: 18px; right: 18px; bottom: 18px; }
    .about-story-visual > div { width: 100%; padding: 16px 18px; }
    .about-focus-grid,
    .about-process-grid { grid-template-columns: 1fr; }
    .about-focus-grid article { min-height: 230px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hebe-reveal { opacity: 1; transform: none; transition: none; }
    .hebe-hero-slide,
    .hebe-project-item img,
    .hebe-journal-card,
    .hebe-journal-card img { transition: none; }
}

/* Exact iSTUDIO homepage structure, connected to Hebeexterior content. */
.hebe-template-hero {
    margin-top: -86px;
    padding-top: 140px;
    background-image: url("../istudio/img/hero-bg.jpg");
}

.hebe-template-hero .display-1 {
    max-width: 700px;
    font-size: clamp(48px, 5.5vw, 74px);
    line-height: 1.08;
    letter-spacing: -.055em;
}

.hebe-hero-editorial {
    position: relative;
    max-width: 690px;
    padding-left: 24px;
    border-left: 2px solid rgba(254,2,2,.28);
}

.hebe-hero-editorial::before {
    content: "";
    position: absolute;
    top: 0;
    left: -2px;
    width: 2px;
    height: 84px;
    background: var(--hebe-primary);
    animation: hebeEditorialLine 1s var(--hebe-ease) both;
}

.hebe-hero-label {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--hebe-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.hebe-hero-intro {
    max-width: 620px;
    margin: 0 0 24px;
    color: #0D6B68;
    font-size: 15px;
    line-height: 1.75;
}

.hebe-hero-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 650px;
    border-top: 1px solid rgba(254,2,2,.18);
    border-bottom: 1px solid rgba(254,2,2,.18);
}

.hebe-hero-details span {
    padding: 14px 15px;
    border-right: 1px solid rgba(254,2,2,.18);
    color: #6D6D6D;
    font-size: 10px;
    line-height: 1.45;
}

.hebe-hero-details span:first-child { padding-left: 0; }
.hebe-hero-details span:last-child { border-right: 0; }

.hebe-hero-details b {
    display: block;
    margin-bottom: 3px;
    color: var(--hebe-ink);
    font-size: 9px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.hebe-template-carousel {
    min-height: 510px;
}

.hebe-template-slide {
    position: absolute;
    inset: 45px 90px 45px 0;
    display: block;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity .55s var(--hebe-ease), visibility .55s;
}

.hebe-template-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hebe-template-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform 7s ease;
}

.hebe-template-slide.is-active img { transform: scale(1.065); }

.hebe-template-slide::after {
    content: "";
    position: absolute;
    inset: 48% 0 0;
    background: linear-gradient(transparent, rgba(0,0,0,.84));
}

.hebe-template-slide > span {
    position: absolute;
    z-index: 2;
    right: 24px;
    bottom: 22px;
    left: 24px;
    display: flex;
    flex-direction: column;
    color: #FFFFFF;
}

.hebe-template-slide small {
    color: rgba(255,255,255,.68);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hebe-template-slide strong {
    color: #FFFFFF;
    font-size: 18px;
}

.hebe-template-dots {
    position: absolute;
    z-index: 5;
    top: 50%;
    right: 38px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transform: translateY(-50%);
}

.hebe-template-dots button {
    width: 15px;
    height: 15px;
    padding: 0;
    border: 2px solid #FFFFFF;
    background: transparent;
    transition: height .3s, background .3s;
}

.hebe-template-dots button.is-active {
    height: 30px;
    background: #FFFFFF;
}

.hebe-structure-3d {
    --structure-rx: 0deg;
    --structure-ry: 0deg;
    --structure-x: 0px;
    --structure-y: 0px;
    position: absolute;
    z-index: 4;
    inset: 10% 9% 8% 5%;
    pointer-events: none;
    transform: perspective(900px) translate3d(var(--structure-x), var(--structure-y), 0)
        rotateX(var(--structure-rx)) rotateY(var(--structure-ry));
    transform-style: preserve-3d;
    transition: transform .35s var(--hebe-ease);
}

.hebe-structure-3d > span {
    position: absolute;
    display: block;
}

.structure-floor {
    right: 1%;
    bottom: 1%;
    left: 1%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.85), transparent);
    box-shadow: 0 0 16px rgba(255,255,255,.45);
    transform: translateZ(28px);
}

.structure-column {
    bottom: 3%;
    width: 7px;
    border: 1px solid rgba(255,255,255,.7);
    background: linear-gradient(90deg, rgba(0,0,0,.68), rgba(255,255,255,.48), rgba(0,0,0,.8));
    box-shadow: 8px 10px 20px rgba(0,0,0,.3);
    transform: translateZ(34px);
}
.column-one { left: 8%; height: 82%; }
.column-two { left: 52%; height: 68%; transform: translateZ(45px); }
.column-three { right: 7%; height: 88%; }

.structure-beam {
    left: 7%;
    height: 7px;
    border: 1px solid rgba(255,255,255,.66);
    background: linear-gradient(rgba(255,255,255,.5), rgba(0,0,0,.75));
    box-shadow: 10px 10px 20px rgba(0,0,0,.28);
}
.beam-one {
    top: 13%;
    width: 85%;
    transform: translateZ(50px) rotateY(-2deg);
}
.beam-two {
    top: 31%;
    left: 10%;
    width: 46%;
    transform: translateZ(38px);
}

.structure-louvers {
    top: 16%;
    right: 10%;
    width: 32%;
    height: 62%;
    border: 1px solid rgba(255,255,255,.52);
    background: repeating-linear-gradient(90deg, rgba(0,0,0,.74) 0 7px, rgba(255,255,255,.58) 7px 9px, transparent 9px 16px);
    box-shadow: 12px 15px 26px rgba(0,0,0,.28);
    opacity: .72;
    transform: translateZ(56px);
}

.structure-gate {
    left: 13%;
    bottom: 4%;
    width: 35%;
    height: 33%;
    border: 2px solid rgba(255,255,255,.58);
    background:
        linear-gradient(90deg, transparent 49%, rgba(255,255,255,.65) 50%, transparent 51%),
        repeating-linear-gradient(90deg, rgba(0,0,0,.72) 0 6px, rgba(255,255,255,.34) 6px 8px, transparent 8px 14px);
    box-shadow: 12px 15px 25px rgba(0,0,0,.3);
    opacity: .76;
    transform: translateZ(58px);
}

.structure-scan {
    top: 10%;
    bottom: 3%;
    width: 2px;
    background: linear-gradient(transparent, rgba(255,255,255,.95), transparent);
    filter: drop-shadow(0 0 8px #FFFFFF);
    animation: hebeStructureScan 5.8s ease-in-out infinite;
}

.hebe-exact-project {
    --card-rx: 0deg;
    --card-ry: 0deg;
    transform: perspective(800px) rotateX(var(--card-rx)) rotateY(var(--card-ry));
    transform-style: preserve-3d;
    transition: transform .3s var(--hebe-ease), box-shadow .3s;
}

.hebe-exact-project:hover {
    z-index: 4;
    box-shadow: 0 24px 55px rgba(0,0,0,.32);
}

.hebe-exact-project .project-overlay {
    transform: translateZ(22px);
}

.hebe-project-intro-copy {
    max-width: 430px;
    color: rgba(255,255,255,.82);
    font-size: 15px;
    line-height: 1.75;
}

.hebe-explore-more-designs {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 12px;
    min-height: 50px;
    margin-top: 30px;
    padding: 13px 20px;
    border: 1px solid rgba(255,255,255,.65);
    color: #FFFFFF;
    background: transparent;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color .25s ease, background .25s ease, transform .25s ease;
}
.hebe-explore-more-designs span {
    font-size: 19px;
    line-height: 1;
    transition: transform .25s ease;
}
.hebe-explore-more-designs:hover {
    color: #fe0202;
    background: #FFFFFF;
    transform: translateY(-3px);
}
.hebe-explore-more-designs:hover span { transform: translateX(4px); }

@media (max-width: 575px) {
    .hebe-explore-more-designs {
        width: 100%;
        justify-content: center;
    }
}

.hebe-project-benefit {
    display: -webkit-box;
    max-width: 95%;
    margin: 8px 0 0;
    overflow: hidden;
    color: rgba(255,255,255,.84);
    font-size: 11px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

@keyframes hebeStructureScan {
    0%, 12% { left: 5%; opacity: 0; }
    25%, 75% { opacity: .8; }
    88%, 100% { left: 94%; opacity: 0; }
}

@keyframes hebeEditorialLine {
    from { height: 0; }
}

.hebe-symbol {
    color: var(--hebe-primary);
    font-size: 12px;
    font-weight: 900;
}

.hebe-template-about-img {
    width: 100%;
    object-fit: cover;
}

.hebe-template-features > div {
    min-height: 225px;
    padding: 25px;
}

.hebe-feature-number {
    display: inline-grid;
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    place-items: center;
    color: var(--hebe-primary);
    border: 2px solid var(--hebe-primary);
    font-size: 14px;
    font-weight: 900;
}

.hebe-exact-project {
    height: 290px;
}

.hebe-exact-project img,
.service-img img,
.hebe-category-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-img {
    display: block;
    height: 230px;
}

.service-item .service-img h3 {
    max-width: 82%;
    font-size: 20px;
}

.hebe-category-portrait {
    height: 410px;
}

.hebe-category-portrait .team-overlay {
    color: #FFFFFF;
    text-decoration: none;
}

.hebe-category-portrait .team-overlay .btn {
    border-color: var(--hebe-primary) !important;
    color: #FFFFFF !important;
    background: var(--hebe-primary) !important;
    box-shadow: none !important;
}

.hebe-category-portrait .team-overlay .btn:hover {
    border-color: #FFFFFF !important;
    color: var(--hebe-primary) !important;
    background: #FFFFFF !important;
}

.hebe-account-cta-section {
    background-image: url("../istudio/img/hero-bg.jpg");
    background-blend-mode: multiply;
}

.hebe-account-cta-section h1 { color: #FFFFFF; }

.hebe-account-cta-section .hebe-account-cta-button {
    border: 1px solid #FFFFFF !important;
    color: #fe0202 !important;
    background: #FFFFFF !important;
    box-shadow: 0 16px 38px rgba(0,0,0,.22) !important;
}
.hebe-account-cta-section .hebe-account-cta-button:hover {
    border-color: #000000 !important;
    color: #FFFFFF !important;
    background: #000000 !important;
    transform: translateY(-3px);
}

@media (max-width: 991px) {
    .hebe-template-hero {
        margin-top: 0;
        padding-top: 70px;
    }
    .hebe-template-carousel { min-height: 490px; }
}

@media (max-width: 767px) {
    .hebe-template-hero .display-1 { font-size: clamp(42px, 12vw, 58px); }
    .hebe-template-carousel {
        min-height: 400px;
        padding: 30px 58px 30px 0;
    }
    .hebe-template-slide { inset: 30px 58px 30px 0; }
    .hebe-template-dots { right: 20px; }
    .hebe-exact-project { height: 250px; }
    .hebe-category-portrait { height: 340px; }
    .hebe-hero-editorial { padding-left: 18px; }
    .hebe-hero-details { grid-template-columns: 1fr; }
    .hebe-hero-details span,
    .hebe-hero-details span:first-child {
        padding: 11px 0;
        border-right: 0;
        border-bottom: 1px solid rgba(254,2,2,.13);
    }
    .hebe-hero-details span:last-child { border-bottom: 0; }
    .hebe-structure-3d {
        opacity: .52;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .structure-scan { animation: none; }
    .hebe-structure-3d,
    .hebe-exact-project { transform: none !important; transition: none; }
    .hebe-hero-editorial::before { animation: none; }
    .hebe-template-slide img { transform: none !important; transition: none; }
}

/* Brand-consistent gallery, saved-design and detail-page controls. */
body.istudio-hebe {
    --brand-red: var(--hebe-primary);
    --brand-red-dark: var(--hebe-primary-dark);
    --brand-pale: var(--hebe-soft);
}

body.istudio-hebe .filters .btn,
body.istudio-hebe .detail-panel .btn,
body.istudio-hebe .card-badge {
    border-color: var(--hebe-primary) !important;
    color: #FFFFFF !important;
    background: var(--hebe-primary) !important;
    box-shadow: 0 12px 28px rgba(254,2,2,.2) !important;
}

body.istudio-hebe .filters .btn:hover,
body.istudio-hebe .detail-panel .btn:hover {
    background: var(--hebe-primary-dark) !important;
}

body.istudio-hebe .detail-panel .hebe-download-design {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-color: #fe0202 !important;
    color: #FFFFFF !important;
    background: #fe0202 !important;
    text-decoration: none;
}
body.istudio-hebe .detail-panel .hebe-download-design:hover {
    border-color: #fe0202 !important;
    background: #fe0202 !important;
    transform: translateY(-2px);
}

body.istudio-hebe .section-link,
body.istudio-hebe .breadcrumbs a,
body.istudio-hebe .card-action {
    color: var(--hebe-primary) !important;
}

body.istudio-hebe .section-head .section-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid rgba(254,2,2,.22);
    color: var(--hebe-primary) !important;
    background: var(--hebe-soft);
    text-decoration: none;
}

body.istudio-hebe .section-head .section-link:hover {
    color: #FFFFFF !important;
    background: var(--hebe-primary);
}

body.istudio-hebe .blog-hero {
    background:
        linear-gradient(90deg, rgba(0,0,0,.97) 0%, rgba(0,0,0,.9) 56%, rgba(0,0,0,.68) 100%),
        url("../images/blog/facade-systems.jpg") center 52% / cover no-repeat !important;
}

body.istudio-hebe .blog-hero h1 {
    color: #FFFFFF !important;
    text-shadow: 0 3px 24px rgba(0,0,0,.42);
}

body.istudio-hebe .blog-hero p {
    color: rgba(255,255,255,.82) !important;
    text-shadow: 0 2px 14px rgba(0,0,0,.32);
}

body.istudio-hebe .card:hover {
    border-color: rgba(254,2,2,.36);
    box-shadow: 0 18px 46px rgba(0,0,0,.13);
}

.hebe-page-back {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    margin-top: 28px;
    padding: 9px 15px;
    border: 1px solid rgba(254,2,2,.24);
    color: var(--hebe-primary);
    background: var(--hebe-soft);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .01em;
    transition: color .25s, background .25s, transform .25s;
}

.hebe-page-back:hover {
    color: #FFFFFF;
    background: var(--hebe-primary);
    transform: translateX(-3px);
}

/* Premium registration experience. */
.hebe-register-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, .72fr);
    width: min(1180px, 92%);
    min-height: 650px;
    margin: 70px auto 90px;
    background: #FFFFFF;
    box-shadow: 0 30px 90px rgba(0,0,0,.14);
}
.hebe-register-visual {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(42px, 6vw, 80px);
    color: #FFFFFF;
    background:
        linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.94)),
        url("../images/hero/premium-gate-v1.jpg") center / cover no-repeat;
}
.hebe-register-visual > span { color: #E6F0EF; font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.hebe-register-visual h1 { max-width: 620px; margin: 18px 0; color: #FFFFFF; font-size: clamp(38px, 5vw, 66px); line-height: 1; }
.hebe-register-visual p { max-width: 580px; color: rgba(255,255,255,.76); line-height: 1.7; }
.hebe-register-visual div { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.hebe-register-visual b { color: #FFFFFF; font-size: 40px; }
.hebe-register-visual small { max-width: 130px; color: rgba(255,255,255,.65); line-height: 1.35; }
.istudio-hebe .hebe-register-form { width: auto; margin: 0; padding: clamp(42px, 5vw, 72px); box-shadow: none; }

/* Brand-aligned admin workspace. */
.istudio-admin { background: #ECECEC; }
.istudio-admin .admin-layout { grid-template-columns: 280px minmax(0,1fr); gap: 34px; }
.istudio-admin .sidebar {
    position: sticky;
    top: 105px;
    padding: 24px;
    border: 0;
    border-radius: 0;
    color: #FFFFFF;
    background: var(--hebe-ink);
    box-shadow: 0 22px 55px rgba(0,0,0,.18);
}
.istudio-admin .sidebar strong { display: block; margin-bottom: 18px; color: #E6F0EF; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.istudio-admin .sidebar a { margin: 5px 0; border-radius: 0; color: rgba(255,255,255,.76); }
.istudio-admin .sidebar a:hover { color: #FFFFFF; background: var(--hebe-primary); transform: translateX(3px); }
.istudio-admin .stat,
.istudio-admin .table-card,
.istudio-admin .form-wrap { border-radius: 0; border-color: rgba(254,2,2,.13); background: #FFFFFF; box-shadow: 0 16px 38px rgba(0,0,0,.07); }
.istudio-admin .stat { border-top: 4px solid var(--hebe-primary); }

@media (max-width: 900px) {
    .hebe-register-shell { grid-template-columns: 1fr; }
    .hebe-register-visual { min-height: 450px; }
    .istudio-admin .admin-layout { grid-template-columns: 1fr; }
    .istudio-admin .sidebar { position: static; }
}
