:root {
    color-scheme: light;
    --ink: #141519;
    --night: #141519;
    --paper: #f7f3ed;
    --line: #e1d9d2;
    --red: #c20d2d;
    --muted: #625950;
    --white: #fff;
    font-family: Geist, Inter, system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
img { display: block; width: 100%; }
p, h1, h2, h3 { margin: 0; overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.07; letter-spacing: -.038em; }
h1 { font-size: clamp(2.4rem, 5.7vw, 5.25rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid #ef536c;
    outline-offset: 3px;
}
.container { width: min(1280px, calc(100% - 6rem)); margin-inline: auto; }
.skip { position: absolute; transform: translateY(-150%); z-index: 5; background: white; color: black; padding: .8rem; }
.skip:focus { transform: translateY(0); }
.site-header, .site-footer, .hero, .subhero, .contact-band { background: var(--night); color: var(--white); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; }
.header-inner { min-height: 78px; }
.wordmark { display: inline-flex; align-items: center; gap: .85rem; line-height: 1.05; font-weight: 750; letter-spacing: -.035em; }
.wordmark b { border-right: 1px solid #ed2345; padding-right: .85rem; font-size: 2rem; letter-spacing: -.075em; }
.wordmark span { font-size: 1.1rem; }
nav { display: flex; gap: 1.45rem; }
.site-header nav a { font-size: .92rem; padding-block: .45rem; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: #ff647e; }
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .72rem 1.15rem; border: 1px solid var(--red); border-radius: .55rem;
    background: var(--red); color: #fff; font-weight: 700; line-height: 1.25;
    transition: background .2s, box-shadow .2s;
}
.button:hover { background: #a20a25; box-shadow: 0 4px 18px #c20d2d30; }
.button.outline { background: transparent; color: inherit; border-color: currentColor; }
.button.outline:hover { background: #c20d2d19; }
.header-cta { color: #ff647e !important; white-space: nowrap; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; }
.hero { overflow: hidden; }
.hero-grid { min-height: 440px; display: grid; grid-template-columns: 1fr 1.12fr; align-items: center; position: relative; }
.hero-copy { padding-block: 2.75rem 3.9rem; position: relative; z-index: 1; }
.hero-copy h1::after, .subhero h1::after, .section h2::after, .contact-band h2::after {
    display: block; content: ""; width: 3.4rem; height: 4px; border-radius: 3px;
    background: var(--red); margin-top: 1rem;
}
.hero-copy p, .subhero p, .contact-band p { color: #e4dfe0; margin-top: 1.05rem; max-width: 36rem; font-size: 1.15rem; }
.hero-copy .actions { margin-top: 1.55rem; }
.hero-art { height: 100%; position: relative; min-width: 0; }
.hero-art img { height: 100%; position: absolute; inset: 0; object-fit: cover; mask-image: linear-gradient(to right, transparent, #000 13%, #000 92%, transparent); }
.subhero { padding: 3.7rem 0; background: radial-gradient(ellipse at 88% 108%, #4e1520, transparent 53%), var(--night); }
.subhero h1 { font-size: clamp(2.6rem, 6vw, 4.7rem); }
.section { padding-top: clamp(1.8rem, 4vw, 3.3rem); }
.section-last { padding-bottom: 3.5rem; }
.section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.cards, .services, .ventures { display: grid; gap: .9rem; margin-top: 1.25rem; }
.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.services { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ventures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card, .service, .venture { border: 1px solid var(--line); border-radius: .65rem; background: #fff8; }
.card { overflow: hidden; }
.card-media { aspect-ratio: 1.48; overflow: hidden; background: #e6ded6; }
.card-media img { height: 100%; object-fit: cover; }
.reference-media img { object-fit: contain; }
.card-body, .service, .venture { padding: 1.05rem; }
.card-body p, .service p, .venture p { margin-top: .4rem; color: var(--muted); }
.card-body .category { color: #980a24; margin: 0 0 .45rem; font-size: .77rem; font-weight: 750; }
.card-body .text-link { display: inline-block; margin-top: .6rem; }
.text-link { color: #a80d2a; font-weight: 700; overflow-wrap: anywhere; }
.text-link:hover { text-decoration: underline; }
.service, .venture { display: flex; align-items: center; gap: .75rem; }
.venture { justify-content: space-between; }
.service h3 { font-size: 1rem; }
.service p, .venture p { font-size: .9rem; }
.service-icon { background: #f6e1e1; color: #a80d2a; border-radius: .5rem; padding: .2rem .55rem; font-weight: 800; font-size: 1.2rem; }
.about { display: grid; grid-template-columns: 1.55fr 1fr; align-items: center; gap: 2rem; }
.bio { margin: 1.1rem 0 1.5rem; line-height: 1.75; }
.about-monogram, .portrait { border-radius: .85rem; overflow: hidden; }
.about-monogram { display: grid; min-height: 240px; place-items: center; font-weight: 850; letter-spacing: -.075em;
    font-size: clamp(4rem, 11vw, 9rem); background: radial-gradient(at bottom right, #702033, transparent 68%), #151519; color: white; }
.portrait img { max-height: 390px; object-fit: cover; }
.contact-band { padding: clamp(2rem, 5vw, 4.5rem) 0; border-top: 1px solid #fff2; }
.contact-grid { display: grid; grid-template-columns: .85fr 1.45fr; gap: 2rem; }
.contact-links { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; margin-top: 1rem; }
.contact-links a { color: #ff8195; overflow-wrap: anywhere; }
.site-footer { border-top: 1px solid #fff2; }
.footer-inner { min-height: 74px; flex-wrap: wrap; }
.footer-inner > span { overflow-wrap: anywhere; }
form label { display: grid; gap: .35rem; margin-bottom: .8rem; font-size: .92rem; font-weight: 650; min-width: 0; }
input, textarea, select { width: 100%; min-width: 0; padding: .62rem .75rem; border: 1px solid #a19b96; border-radius: .4rem; color: inherit; background: #fff; }
textarea { resize: vertical; }
.contact-band :is(input, textarea, select) { color-scheme: dark; background: #26272c; border-color: #79777b; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 .8rem; }
.bot-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.utility { width: min(610px, calc(100% - 2rem)); margin: 5vh auto; }
.utility h1, .dashboard h1 { font-size: clamp(1.85rem, 5vw, 2.7rem); margin: .65rem 0 1rem; }
.utility p { margin-bottom: .8rem; }
.panel { background: #fff; border: 1px solid var(--line); padding: clamp(1rem, 3vw, 1.6rem); border-radius: .65rem; min-width: 0; margin: 0 0 1rem; }
.utility.panel { margin: 5vh auto; }
.notice, .contact-band .notice { background: #e1f4e4; color: #173d22; border-radius: .4rem; padding: .65rem; margin: 0 0 .8rem; font-size: .95rem; }
.notice.error, .contact-band .notice.error { background: #f7dce1; color: #8a0923; }
.dashboard { display: grid; grid-template-columns: 175px minmax(0, 1fr); gap: 1.5rem; padding-block: 2rem; }
.admin-nav { display: flex; flex-direction: column; gap: .25rem; }
.admin-nav a { padding: .55rem .75rem; border-radius: .4rem; }
.admin-nav a[aria-current] { background: var(--red); color: #fff; }
.editor fieldset legend, details summary { font-weight: 760; }
details form { margin-top: .85rem; }
details details { margin-top: .85rem; }
.inbox h2 { font-size: 1.3rem; margin-bottom: .4rem; }
.inbox .message { margin: .9rem 0; }
small { color: var(--muted); font-weight: 400; }
@media (max-width: 1000px) {
    .container { width: calc(100% - 3rem); }
    .header-inner { gap: .9rem; }
    nav { gap: .8rem; }
    .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .container { width: calc(100% - 2rem); }
    .header-inner { flex-wrap: wrap; padding-block: .9rem; }
    .site-header nav { order: 3; width: 100%; flex-wrap: wrap; }
    .hero-grid, .contact-grid, .about, .dashboard { grid-template-columns: 1fr; }
    .hero-copy { padding-block: 1.75rem .75rem; }
    .hero-art { height: clamp(175px, 54vw, 360px); }
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-nav { flex-direction: row; flex-wrap: wrap; }
    .footer-inner { padding-block: .85rem; }
}
@media (max-width: 470px) {
    .cards, .services, .ventures, .form-grid { grid-template-columns: 1fr; }
    .header-inner { gap: .6rem; }
    .wordmark b { font-size: 1.65rem; }
    .wordmark span { font-size: .98rem; }
    .site-header nav a { font-size: .82rem; }
    .header-cta { padding: .58rem .72rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

/* Glass surfaces for the initiatives section. */
.venture {
    --venture-glow: #f14574;
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    justify-content: initial;
    min-height: 116px;
    gap: 1rem;
    padding: 1.2rem;
    border: 1px solid #ffffff42;
    border-radius: .85rem;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(ellipse at 8% 105%, color-mix(in srgb, var(--venture-glow) 44%, transparent), transparent 65%),
        linear-gradient(130deg, #34222e 0%, #211c28 60%, #2a212d 100%);
    box-shadow: 0 10px 24px #27102226, inset 0 1px #ffffff36;
    transition: transform .2s ease, box-shadow .2s ease;
}
.venture:nth-child(even) {
    --venture-glow: #60ccd8;
    background: radial-gradient(ellipse at 8% 105%, #137f8770, transparent 65%),
        linear-gradient(130deg, #243941, #1c262f 58%, #25343e);
}
.venture::before {
    content: '';
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(115deg, #ffffff20, transparent 44%, transparent 57%, #ffffff0c 58%, transparent 85%);
}
.venture p { color: #f3e9f0; }
.venture-mark, .venture-arrow {
    display: grid;
    place-items: center;
    border: 1px solid #ffffff55;
    background: #ffffff17;
    box-shadow: inset 0 1px #ffffff23;
    backdrop-filter: blur(7px);
}
.venture-mark { width: 3rem; height: 3rem; border-radius: .7rem; font-size: 1.35rem; font-weight: 800; }
.venture-arrow { width: 2.1rem; height: 2.1rem; border-radius: 50%; }
a.venture:hover { transform: translateY(-3px); box-shadow: 0 14px 28px #27102240, inset 0 1px #ffffff57; }
.map-section iframe { display: block; width: 100%; height: clamp(260px, 35vw, 440px); margin-top: 1.25rem; border: 1px solid var(--line); border-radius: .85rem; background: #fff; }
.references-directory .card-body { display: flex; flex-direction: column; min-height: 100%; }
.references-directory .text-link { margin-top: auto; padding-top: .65rem; }
.references-directory .card:has(.card-media) .card-body { min-height: auto; }
.archive-note { margin-bottom: 1rem; color: var(--muted); }
.project-title-cover {
    display: grid;
    place-items: center;
    padding: 1.2rem;
    background: radial-gradient(ellipse at 78% 115%, #266d74, transparent 65%), #15282f;
    color: #fff;
    font-size: clamp(1.5rem, 4vw, 2.6rem);
    font-weight: 750;
    letter-spacing: -.04em;
    text-align: center;
    overflow-wrap: anywhere;
}

[hidden] { display: none !important; }
.carousel-controls { display: flex; flex-wrap: wrap; gap: .55rem; padding-block: .55rem 1.25rem; }
.carousel-controls button { color: #fff; background: #25252c; border: 1px solid #7a7478; border-radius: .4rem; padding: .35rem .65rem; }
.carousel-controls button[aria-pressed="true"] { background: var(--red); border-color: var(--red); }
.hero-secondary h2 { font-size: clamp(2.4rem, 5.7vw, 5.25rem); }
.slide-services { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1rem 0 0; list-style: none; }
.slide-services li { color: #fff; border: 1px solid #ff67836e; background: #c20d2d26; border-radius: .4rem; padding: .35rem .65rem; }
.carousel .hero-grid { min-height: 490px; }
.sort-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .6rem; }
.sort-row .panel { margin-bottom: .55rem; }
.sort-actions { display: flex; flex-wrap: wrap; justify-content: center; align-content: center; align-items: center; gap: .25rem; width: 76px; }
.sort-actions button { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: .35rem; padding: .12rem .42rem; }
.sort-handle { width: 100%; text-align: center; cursor: grab; color: #a80d2a; font-size: 1.25rem; }
.sort-row.is-dragging { opacity: .48; }
.reference-sort p { margin-bottom: .6rem; }
@font-face {
    font-family: Signature;
    src: url(signature.woff?v=4) format("woff");
    font-weight: 400 700;
    font-display: swap;
}
.carousel-ready .carousel-stage { display: grid; }
.carousel-ready .hero-grid {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s;
}
.carousel-ready .hero-grid.is-active { opacity: 1; visibility: visible; z-index: 1; }
.carousel.reduce-motion .hero-grid { transition: none; }
.footer-content { padding-top: 1.6rem; }
.footer-content .footer-nav { flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 1.4rem; }
.footer-nav a {
    padding: .54rem .95rem;
    color: #f4eef0;
    border: 1px solid #fff3;
    border-radius: 999px;
    background: linear-gradient(145deg, #fff1, #ffffff08);
}
.footer-nav a:hover, .footer-nav a[aria-current] { border-color: #ed5a76; background-color: #c20d2d33; }
.footer-content .footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    padding-block: .8rem;
    border-top: 1px solid #ffffff2c;
}
.footer-logo { justify-self: start; }
.footer-inner .footer-copyright {
    color: #fff5f7;
    font-family: Signature, "Brush Script MT", cursive;
    font-size: clamp(1.5rem, 2.9vw, 2.2rem);
    text-align: center;
}
.footer-inner .footer-version {
    justify-self: end;
    padding: .45rem .8rem;
    border: 1px solid #ffffff42;
    border-radius: .55rem;
    color: #fff2f5;
    background: linear-gradient(150deg, #ffffff25, #d24d6824 55%, #ffffff0e);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px #ffffff37, 0 4px 18px #0005;
    font-variant-numeric: tabular-nums;
    letter-spacing: .035em;
}
@media (max-width: 700px) {
    .footer-content .footer-inner { grid-template-columns: 1fr auto; }
    .footer-copyright { grid-row: 2; grid-column: 1 / -1; }
}
@media(max-width: 760px) {
    .carousel .hero-grid { min-height: 0; }
    .carousel-controls { padding-top: .9rem; }
}

.carousel-controls { justify-content: center; padding-block: .25rem .75rem; }
.carousel-controls [data-carousel-toggle] {
    min-width: 5.2rem;
    min-height: 32px;
    padding: .22rem .65rem;
    font-size: .8rem;
    border-radius: 999px;
}
.button.whatsapp-button {
    color: #edfff4;
    border-color: #62e6a6;
    background: linear-gradient(155deg, #1e895d, #0b543a 68%, #17744d);
    box-shadow: inset 0 1px 0 #ffffff5c, 0 4px 16px #19ad6640;
    backdrop-filter: blur(9px);
}
.button.whatsapp-button:hover { background: #11774e; box-shadow: inset 0 1px #ffffff75, 0 5px 22px #24d98260; }

.home-showcase, .site-footer { position: relative; isolation: isolate; }
.showcase-decor, .footer-decor {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.showcase-decor span, .footer-decor span {
    position: absolute;
    display: block;
    border: 1px solid #d01e431e;
    border-radius: 24%;
    aspect-ratio: 1;
    transform: rotate(32deg);
}
.showcase-decor span { border-color: #b91e4730; background: #d03c6510; }
.showcase-decor span:nth-child(1) { width: 24rem; top: -12rem; right: -7rem; }
.showcase-decor span:nth-child(2) { width: 15rem; top: -7rem; right: -4rem; background: transparent; }
.showcase-decor span:nth-child(3) { width: 14rem; top: 8rem; left: -8rem; }
.showcase-decor span:nth-child(4) { width: 10rem; top: 4.5rem; left: -6rem; background: transparent; }
.showcase-decor span:nth-child(5) { width: 8rem; top: 17rem; right: -4rem; border-radius: 50%; }
.showcase-decor span:nth-child(6) { width: 6rem; top: 1.25rem; left: 53%; border-radius: 50%; background: transparent; }
.home-showcase .section-head { position: relative; }
.showcase-fc {
    display: inline-grid;
    place-items: center;
    width: 2.45rem;
    height: 2.45rem;
    margin-right: auto;
    border: 1px solid #bd234a42;
    border-radius: .7rem;
    color: #a81336;
    background: #fffb;
    font-weight: 800;
    font-size: .93rem;
    animation: fc-drift 4s ease-in-out infinite alternate;
}
@keyframes fc-drift { from { transform: translateX(0); } to { transform: translateX(8px); } }
@media (prefers-reduced-motion: reduce) { .showcase-fc { animation: none; } }

.site-footer { background: radial-gradient(ellipse at 10% 90%, #3b1522, transparent 55%), var(--night); }
.footer-decor span { border-color: #ff748848; }
.footer-decor span:first-child { width: 22rem; top: -15rem; left: 5%; }
.footer-decor span:nth-child(2) { width: 24rem; right: -7rem; bottom: -16rem; background: #ec446612; }
.footer-decor span:nth-child(3) { width: 17rem; right: -4rem; bottom: -11rem; }
.footer-nav a {
    border-radius: .68rem;
    padding-inline: 1rem;
    background: linear-gradient(145deg, #ffffff22, #ffffff06);
    box-shadow: inset 0 1px #ffffff23, 0 4px 14px #0004;
}
.footer-nav a:hover, .footer-nav a[aria-current] {
    background: linear-gradient(145deg, #862740, #3b1b29);
}
