/* NEXOS — DIGITAL FUTURE / 03. Local, buildless and framework free. */

/* =========================================================
   1. VARIABLES & THEME
   ========================================================= */

:root {
    color-scheme: light;

    /* =====================================================
       PALETA OFICIAL — NEXOS MARKETING SOLUTIONS
       ===================================================== */
    --nexos-red: #E21F26;
    --nexos-black: #111318;
    --nexos-white: #FFFFFF;
    --nexos-salmon: #F28B8F;
    --nexos-soft-red: #FDEBEC;

    /* Alias de compatibilidad con la estructura actual */
    --midnight: var(--nexos-white);
    --electric: var(--nexos-red);
    --deep: var(--nexos-soft-red);
    --muted: rgba(17, 19, 24, .62);
    --ice: var(--nexos-black);
    --accent-text: var(--nexos-red);
    --surface: var(--nexos-white);
    --line: rgba(17, 19, 24, .14);

    --font: 'Segoe UI', Arial, sans-serif;
    --mono: 'Cascadia Code', Consolas, monospace;
    --radius: 14px;
}
/* =========================================================
   2. RESET, TYPOGRAPHY & SHARED LAYOUT
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    margin: 0;
    background: var(--midnight);
    color: var(--ice);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body,
button,
input,
select,
textarea {
    font-family: var(--font);
}

button,
input,
select,
textarea {
    font-size: inherit;
}

button,
a,
summary,
input,
textarea,
select {
    -webkit-tap-highlight-color: transparent;
}

button,
summary {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    color: inherit;
}

img,
svg {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1,
h2,
h3 {
    font-weight: 600;
    line-height: 1.1;
}

ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

em {
    font-style: normal;
    color: var(--accent-text);
}

p {
    color: var(--muted);
}

::selection {
    background: var(--electric);
    color: white;
}

:focus-visible {
    outline: 3px solid var(--accent-text);
    outline-offset: 5px;
}

[hidden] {
    display: none;
}

.container {
    width: min(1280px, calc(100% - 112px));
    margin-inline: auto;
}

.section {
    padding-block: 112px;
    scroll-margin-top: 15px;
}

.section--surface {
    background: var(--nexos-soft-red);
    border-block: 1px solid var(--line);
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .15em;
    color: var(--muted);
    margin-bottom: 25px;
}

.accent-dot {
    display: inline-block;
    flex-shrink: 0;
    height: 6px;
    width: 6px;
    border-radius: 50%;
    background: var(--electric);
    box-shadow: 0 0 15px var(--electric);
}

.section-title {
    font-size: clamp(34px, 3.6vw, 52px);
    letter-spacing: -.05em;
    line-height: 1.13;
}

.section-title em {
    display: block;
}

.section-description {
    font-size: 17px;
    max-width: 530px;
}

.section-heading {
    margin-bottom: 60px;
}

.section-heading--center {
    max-width: 750px;
}

.section-heading .section-description {
    margin-top: 24px;
}

.section-heading--split {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 55px;
}

.section-heading--split .section-description {
    max-width: 330px;
    font-size: 15px;
}

/* =========================================================
   3. BUTTONS & LINKS
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 15px 22px;
    min-height: 52px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    transition: background .25s, border-color .25s, transform .25s, box-shadow .25s;
}

.btn span {
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
}

.btn--primary {
    background: var(--electric);
    color: white;
    box-shadow: 0 6px 25px rgba(226, 31, 38, .14);
}

.btn--primary:hover {
    background: #111318;
    box-shadow: 0 8px 30px rgba(17, 19, 24, .18);
    transform: translateY(-2px);
}

.btn--outline {
    border-color: var(--line);
    background: var(--nexos-white);
}

.btn--outline:hover {
    border-color: var(--accent-text);
    background: var(--deep);
}

.btn:disabled {
    cursor: not-allowed;
    opacity: .6;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 25px;
    padding-block: 12px;
    font-size: 14px;
    border-bottom: 1px solid var(--electric);
}

.text-link:hover {
    color: var(--accent-text);
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 16px;
    z-index: 100;
    transform: translateY(-180%);
    background: var(--ice);
    color: var(--midnight);
    padding: 12px 18px;
    border-radius: 6px;
}

.skip-link:focus {
    transform: translateY(0);
}

/* =========================================================
   4. NAVIGATION
   Floating glass navigation
   ========================================================= */

.site-header {
    position: fixed;
    z-index: 50;
    top: 20px;
    left: 28px;
    right: 28px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(22px);
    transition: background .3s, top .3s, box-shadow .3s;
}

.navbar.container {
    width: 100%;
    padding: 13px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    transition: padding .3s;
}

.navbar__brand {
    width: 221px;
    height: 62px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--nexos-white);
    border-radius: 5px;
}

.navbar__logo {
    width: 100%;
    height: auto;
    flex-shrink: 0;
    object-fit: contain;
    transform: none;
}

.navbar__subtitle {
    margin-top: 1px;
    color: #111318;
    font-family: var(--font);
    font-size: 7px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: .38em;
    text-align: center;
    white-space: nowrap;
}

.footer__brand > a {
    width: 153px;
    height: 48px;
    flex-shrink: 0;
    display: block;
    overflow: hidden;
    background: var(--nexos-white);
    border-radius: 5px;
}

.footer__brand img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 43.5%;
    transform: scale(1.7);
}

.navbar__menu,
.navbar__links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.navbar__links {
    gap: 27px;
}

.navbar__links a {
    position: relative;
    display: block;
    padding-block: 12px;
    font-size: 12px;
    color: var(--nexos-black);
}

.navbar__links a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    height: 2px;
    left: 0;
    right: 0;
    background: var(--electric);
    transform: scaleX(0);
    transition: transform .25s;
}

.navbar__links a:hover,
.navbar__links a[aria-current] {
    color: var(--ice);
}

.navbar__links a[aria-current]::after {
    transform: scaleX(1);
}

.navbar__menu > .btn {
    min-height: 43px;
    padding: 10px 20px;
}

.navbar__toggle {
    display: none;
}

.site-header.is-scrolled {
    top: 10px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 15px 35px rgba(17, 19, 24, .10);
}

.site-header.is-scrolled .navbar {
    padding-block: 8px;
}

/* =========================================================
   5. HERO SECTION
   Faceted connection core, orbital paths and glass nodes
   ========================================================= */

.hero {
    padding-top: 151px;
    padding-bottom: 0;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero__background {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.hero__grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(226, 31, 38, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(226, 31, 38, .06) 1px, transparent 1px);
    background-size: 74px 74px;
    mask-image: linear-gradient(to right, transparent, #000 75%);
}

.hero__glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 78% 45%, rgba(226, 31, 38, .12), transparent 48%);
}

.hero__edition {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .13em;
    color: var(--muted);
}

.hero__edition b {
    color: var(--accent-text);
    margin-left: 16px;
}

.hero__layout {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 12px;
    padding-top: 55px;
    padding-bottom: 62px;
}

.hero__content {
    position: relative;
    z-index: 2;
}

.hero__content .eyebrow {
    margin-bottom: 25px;
    font-size: 10px;
}

.hero__title {
    font-size: clamp(58px, 6.1vw, 88px);
    letter-spacing: -.065em;
    line-height: .99;
    font-weight: 600;
}

.hero__line,
.hero__title em {
    display: block;
}

.hero__title em {
    color: var(--electric);
    margin-top: 4px;
}

.hero__description {
    max-width: 380px;
    margin-top: 28px;
    font-size: 15px;
    line-height: 1.8;
}

.hero__actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.hero__actions .btn {
    font-size: 12px;
    padding-inline: 19px;
    gap: 17px;
}

.hero__visual {
    position: relative;
    min-width: 0;
    transform: translateY(-5px);
}

.hero__visual-label,
.hero__visual-caption {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    letter-spacing: .12em;
    font-size: 9px;
    color: var(--muted);
}

.hero__visual-label {
    padding: 0 16px;
}

.hero__visual-label > span,
.hero__visual-caption > span:last-child {
    margin-left: auto;
}

.hero__visual-label i {
    height: 7px;
    width: 7px;
    border: 1px solid var(--accent-text);
}

.connection-core {
    position: relative;
    margin-inline: -24px;
    perspective: 900px;
    transform: rotateY(var(--pointer-x, 0deg)) rotateX(var(--pointer-y, 0deg));
    transition: transform .5s ease-out;
}

.connection-core::before {
    content: '';
    position: absolute;
    inset: 15%;
    background: radial-gradient(ellipse, rgba(226, 31, 38, .14), transparent 65%);
}

.core-svg {
    width: 100%;
    overflow: visible;
}

/* Rotation wrapper for the SVG cube. JavaScript updates --hero-rotation. */
.core-crystal-rotation {
    transform-box: fill-box;
    transform-origin: center;
    transform: rotate(var(--hero-rotation, 0deg));
    will-change: transform;
}

.core-crystal {
    filter: drop-shadow(0 0 18px rgba(226, 31, 38, .14));
    animation: core-float 8s ease-in-out infinite;
}

.core-orbits,
.core-satellite {
    transform-origin: 320px 300px;
    animation: orbit 100s linear infinite;
}

.core-satellite {
    animation-duration: 27s;
}

.core-satellite--reverse {
    animation-direction: reverse;
    animation-duration: 36s;
}

.core-tag {
    position: absolute;
    padding: 12px 15px;
    width: 156px;
    border: 1px solid rgba(17, 19, 24, .14);
    border-radius: 7px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 40px rgba(17, 19, 24, .10);
}

.core-tag > span {
    display: block;
    font: 8px var(--mono);
    color: var(--muted);
    letter-spacing: .12em;
    margin-bottom: 8px;
}

.core-tag b {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 500;
}

.core-tag i {
    font-style: normal;
    color: var(--accent-text);
    font-size: 18px;
}

.core-tag--strategy {
    top: 30%;
    left: 16.875%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, calc(-100% - 8px));
}

.core-tag--creative {
    top: 24.1667%;
    left: 87.5%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, calc(-100% - 8px));
}

.core-tag--tech {
    right: -3%;
    bottom: 19%;
}

.core-tag--people {
    top: 73.8333%;
    left: 12.5%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, 8px);
}

.hero__visual-caption {
    padding: 17px 16px 0;
}

.hero__bottom {
    display: flex;
    gap: 44px;
    border-top: 1px solid var(--line);
    padding-block: 23px;
    font: 10px var(--mono);
    letter-spacing: .13em;
    color: var(--muted);
}

.hero__bottom span::before {
    content: '+';
    color: var(--accent-text);
    margin-right: 11px;
}

.hero__bottom span:last-child {
    margin-left: auto;
}

/* =========================================================
   6. SERVICES TICKER
   ========================================================= */

.services-ticker {
    background: var(--electric);
    color: var(--nexos-white);
    overflow: hidden;
}

.services-ticker__items {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding-block: 18px;
    font-size: 15px;
    white-space: nowrap;
}

.services-ticker__items > [aria-hidden] {
    font-size: 23px;
    font-weight: 300;
    opacity: .65;
}

/* =========================================================
   7. ABOUT SECTION
   Editorial split with offset planes
   ========================================================= */

.about__layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 100px;
    align-items: center;
}

.about__content > p {
    margin-top: 25px;
}

.about__content > p + p {
    font-size: 15px;
}

.about__content .text-link {
    margin-top: 26px;
}

.about__graphic {
    height: 520px;
    position: relative;
    background: linear-gradient(135deg, transparent 49.8%, #E21F2635 50%, transparent 50.2%), linear-gradient(#1113180b 1px, transparent 1px), linear-gradient(90deg, #1113180b 1px, transparent 1px);
    background-size: auto, 36px 36px, 36px 36px;
}

.about__coordinate,
.about__graphic-label {
    position: absolute;
    font: 9px var(--mono);
    letter-spacing: .1em;
    color: var(--muted);
}

.about__coordinate {
    top: 15px;
    left: 15px;
}

.about__graphic-label {
    bottom: 10px;
    left: 15px;
}

.about__plane {
    width: 73%;
    height: 148px;
    position: absolute;
    padding: 23px;
    border: 1px solid #11131838;
    background: var(--nexos-white);
    box-shadow: 0 20px 50px #0003;
    transform: skewY(-9deg);
}

.about__plane small {
    font: 8px var(--mono);
    letter-spacing: .15em;
    color: var(--muted);
}

.about__plane > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -.04em;
}

.about__plane > span > span {
    color: var(--accent-text);
}

.about__plane--one {
    top: 62px;
    left: 0;
}

.about__plane--two {
    top: 165px;
    right: 0;
    z-index: 2;
    background: var(--nexos-red);
    color: var(--nexos-white);
}

.about__plane--two small,
.about__plane--two > span > span {
    color: var(--nexos-white);
}

.about__plane--three {
    top: 320px;
    left: 8%;
    z-index: 3;
}

/* =========================================================
   8. SERVICES SECTION
   Featured horizontal panel and staggered columns
   ========================================================= */

.services__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px 32px;
    align-items: start;
}

.service-card {
    position: relative;
    padding: 32px;
    min-height: 275px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--nexos-white);
    transition: border-color .3s, transform .3s, box-shadow .3s;
}

.service-card:hover,
.service-card:focus-within {
    border-color: var(--nexos-red);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(226, 31, 38, .10);
}

.service-card__number {
    position: absolute;
    right: 28px;
    top: 26px;
    font: 12px var(--mono);
    color: var(--muted);
}

.service-card__icon {
    color: var(--accent-text);
    font-size: 30px;
    line-height: 1;
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 23px;
    letter-spacing: -.03em;
}

.service-card p {
    margin-top: 16px;
    max-width: 370px;
    font-size: 14px;
}

.service-card > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--nexos-black);
    font-size: 12px;
}

.service-card > a span {
    font-size: 22px;
    color: var(--accent-text);
}

.service-card:nth-child(2n + 3) {
    margin-top: 65px;
}

.service-card--featured {
    grid-column: 1 / -1;
    padding: 40px;
    min-height: 290px;
    background: var(--nexos-soft-red);
    border-color: rgba(226, 31, 38, .35);
}

.service-card--featured h3 {
    font-size: 32px;
}

.service-card--featured > a {
    width: 42%;
}

.strategy-map {
    position: absolute;
    width: 43%;
    right: 6%;
    top: 40%;
    display: flex;
    align-items: center;
    transform: rotate(-10deg);
}

.strategy-map span {
    flex-shrink: 0;
    padding: 22px 14px;
    border: 1px solid #11131855;
    border-radius: 7px;
    background: var(--nexos-white);
    font: 10px var(--mono);
}

.strategy-map span:nth-of-type(2) {
    background: var(--electric);
    color: white;
    box-shadow: 0 0 50px rgba(226, 31, 38, .18);
    padding-block: 36px;
}

.strategy-map i {
    flex: 1;
    height: 1px;
    background: var(--accent-text);
    min-width: 16px;
}

.service-card:last-child {
    grid-column: 1 / -1;
    min-height: 240px;
}

.service-card:last-child p {
    max-width: 65%;
}

.service-card:last-child .service-card__icon {
    float: right;
    margin: 40px 30px 0;
    font-size: 70px;
}

/* =========================================================
   9. PROCESS / METHODOLOGY
   Alternating vertical journey
   ========================================================= */

.process .section-heading {
    text-align: center;
    margin-inline: auto;
}

.process .eyebrow {
    justify-content: center;
}

.process__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    column-gap: 100px;
    max-width: 950px;
    margin-inline: auto;
}

.process__grid::before {
    content: '';
    position: absolute;
    left: calc(50% - 1px);
    top: 20px;
    bottom: 40px;
    width: 2px;
    background: linear-gradient(transparent, var(--electric) 10%, var(--electric) 90%, transparent);
    box-shadow: 0 0 15px rgba(226, 31, 38, .18);
}

.process-card {
    position: relative;
    padding: 25px 28px 30px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--nexos-white);
}

.process-card:nth-child(odd) {
    grid-column: 1;
}

.process-card:nth-child(even) {
    grid-column: 2;
}

.process-card:nth-child(2) {
    grid-row: 2;
}

.process-card:nth-child(3) {
    grid-row: 3;
}

.process-card:nth-child(4) {
    grid-row: 4;
}

.process-card::before {
    content: '';
    position: absolute;
    right: -57px;
    top: 35px;
    width: 12px;
    height: 12px;
    background: var(--electric);
    border: 3px solid var(--midnight);
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(226, 31, 38, .45), 0 0 20px rgba(226, 31, 38, .24);
}

.process-card::after {
    content: '';
    position: absolute;
    width: 44px;
    height: 1px;
    top: 41px;
    right: -45px;
    background: rgba(226, 31, 38, .45);
}

.process-card:nth-child(even)::before {
    right: auto;
    left: -57px;
}

.process-card:nth-child(even)::after {
    right: auto;
    left: -45px;
}

.process-card__step {
    font: 10px var(--mono);
    color: var(--accent-text);
    letter-spacing: .1em;
}

.process-card h3 {
    font-size: 25px;
    letter-spacing: -.025em;
    margin-top: 18px;
}

.process-card p {
    font-size: 14px;
    margin-top: 14px;
}

/* =========================================================
   10. PROJECTS / DIGITAL SHOWCASE
   Original CSS screen mockups
   ========================================================= */

.projects__grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 35px;
    align-items: start;
}

.project-card:nth-child(2) {
    margin-top: 80px;
}

.project-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--midnight);
}

.project-card__visual {
    position: relative;
    height: 365px;
    padding: 23px;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 90%, rgba(226, 31, 38, .32), transparent 70%), var(--nexos-black);
}

.project-card__visual > span {
    position: relative;
    z-index: 2;
    font: 8px var(--mono);
    letter-spacing: .1em;
    border: 1px solid #11131855;
    border-radius: 4px;
    padding: 7px 9px;
    background: rgba(255, 255, 255, .90);
}

.project-card__art--web {
    position: absolute;
    left: 10%;
    right: 7%;
    top: 85px;
    bottom: -20px;
    transform: perspective(800px) rotateY(-12deg) rotateX(8deg);
    transition: transform .6s;
}

.project-card:hover .project-card__art--web {
    transform: perspective(800px) rotateY(-5deg) rotateX(3deg) translateY(-5px);
}

.mock-browser {
    padding: 20px 25px;
    height: 100%;
    border: 1px solid #11131866;
    border-radius: 8px;
    background: var(--nexos-white);
    box-shadow: -20px 25px 60px #0006;
    overflow: hidden;
}

.mock-browser > span {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
    font: 8px var(--mono);
    color: var(--muted);
}

.mock-browser strong {
    display: block;
    position: relative;
    z-index: 1;
    font-size: 48px;
    line-height: 1;
    letter-spacing: -.06em;
    margin-top: 25px;
}

.mock-browser small {
    display: block;
    margin-top: 26px;
    font: 7px var(--mono);
    letter-spacing: .1em;
}

.mock-browser__orbit {
    position: absolute;
    width: 130px;
    height: 160px;
    right: 15px;
    top: 100px;
    background: linear-gradient(145deg, var(--nexos-salmon), var(--nexos-red) 45%, var(--nexos-black) 100%);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    opacity: .8;
}

.project-card__visual--two {
    background: linear-gradient(130deg, var(--nexos-black), var(--nexos-red));
}

.project-card__art--campaign {
    position: absolute;
    inset: 70px 35px 20px;
    border: 1px solid #11131855;
    padding: 25px;
    color: var(--nexos-white);
    transform: rotate(-5deg);
}

.project-card__art--campaign > span {
    font-size: clamp(25px, 3.3vw, 47px);
    font-weight: 650;
    line-height: .97;
    letter-spacing: -.06em;
    position: relative;
    z-index: 1;
}

.project-card__art--campaign em {
    color: var(--nexos-white);
    -webkit-text-stroke: 1px var(--nexos-white);
    -webkit-text-fill-color: transparent;
}

.campaign-orbit {
    width: 130px;
    height: 130px;
    border: 24px solid #11131866;
    position: absolute;
    bottom: 20px;
    right: 30px;
    transform: rotate(35deg);
}

.project-card__content {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 25px;
}

.project-card__category {
    font: 10px var(--mono);
    color: var(--muted);
}

.project-card__content h3 {
    margin-top: 12px;
    font-size: 21px;
    letter-spacing: -.025em;
}

.project-card__index {
    font: 12px var(--mono);
    color: var(--accent-text);
}

.project-details {
    padding: 0 25px 20px;
}

.project-details summary {
    border-top: 1px solid var(--line);
    padding-top: 15px;
    font-size: 12px;
    list-style: none;
}

.project-details summary::-webkit-details-marker {
    display: none;
}

.project-details summary span {
    float: right;
    color: var(--accent-text);
}

.project-details p {
    font-size: 14px;
    margin-top: 20px;
}

.project-details .text-link {
    font-size: 12px;
    margin-top: 10px;
}

/* =========================================================
   11. CAPABILITIES
   Connected panels with native accessible details
   ========================================================= */

.capabilities__layout {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 80px;
    align-items: center;
}

.capabilities__intro p {
    margin-top: 26px;
}

.capabilities__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    position: relative;
}

.capabilities__list::before,
.capabilities__list::after {
    content: '';
    position: absolute;
    background: rgba(226, 31, 38, .45);
    z-index: -1;
}

.capabilities__list::before {
    height: 1px;
    left: 20%;
    right: 20%;
    top: 50%;
}

.capabilities__list::after {
    width: 1px;
    top: 20%;
    bottom: 20%;
    left: 50%;
}

.capability-item {
    padding: 22px;
    min-height: 205px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    transition: background .3s, border-color .3s, box-shadow .3s;
}

.capability-item[open],
.capability-item:hover,
.capability-item:focus-within {
    border-color: var(--electric);
    background: var(--nexos-soft-red);
    box-shadow: 0 0 25px rgba(226, 31, 38, .10);
}

.capability-item summary {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px;
    list-style: none;
}

.capability-item summary::-webkit-details-marker {
    display: none;
}

.capability-item summary > span:first-child {
    font: 10px var(--mono);
    color: var(--muted);
}

.capability-item h3 {
    font-size: 22px;
    grid-column: 1 / -1;
    grid-row: 2;
    letter-spacing: -.03em;
}

.capability-item__arrow {
    color: var(--accent-text);
    line-height: 1;
    transition: transform .3s;
}

.capability-item[open] .capability-item__arrow {
    transform: rotate(90deg);
}

.capability-item p {
    font-size: 12px;
    line-height: 1.7;
    margin-top: 17px;
}

/* =========================================================
   12. TEAM & TESTIMONIALS
   ========================================================= */

.team__placeholder {
    text-align: center;
}

.team__portraits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 35px;
}

.portrait-slot {
    text-align: left;
    height: 280px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 24px;
    background: var(--nexos-white);
}

.portrait-slot > span,
.portrait-slot small {
    font: 9px var(--mono);
    color: var(--muted);
    letter-spacing: .1em;
}

.portrait-slot small {
    position: absolute;
    bottom: 20px;
    left: 24px;
}

.portrait-slot i {
    width: 60px;
    height: 60px;
    position: absolute;
    top: 65px;
    left: calc(50% - 30px);
    border-radius: 50%;
    border: 1px solid #11131855;
}

.portrait-slot i::after {
    content: '';
    position: absolute;
    width: 130px;
    height: 90px;
    border: 1px solid #11131855;
    border-radius: 70px 70px 8px 8px;
    top: 73px;
    left: -36px;
    background: var(--nexos-soft-red);
}

.team__placeholder h3 {
    font-size: 22px;
}

.team__placeholder > p {
    font-size: 14px;
    max-width: 560px;
    margin: 16px auto 0;
}

.testimonials__layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 100px;
    align-items: center;
}

.testimonials__content {
    border-left: 1px solid var(--electric);
    padding-left: 40px;
}

.quote-symbol {
    font-size: 90px;
    line-height: .8;
    color: var(--electric);
    font-family: Georgia, serif;
}

.testimonials__content > p {
    color: var(--nexos-black);
    font-size: 22px;
    line-height: 1.5;
    letter-spacing: -.02em;
    margin-block: 20px;
}

.testimonials__note {
    font: 10px var(--mono);
    color: var(--muted);
}

/* =========================================================
   13. CTA SECTION
   NEXOS contrast portal
   ========================================================= */

.cta-section {
    padding-block: 15px 70px;
}

.cta-panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    text-align: center;
    padding: 85px 30px;
    border: 1px solid rgba(226, 31, 38, .60);
    border-radius: 16px;
    background: radial-gradient(ellipse at 50% 110%, rgba(226, 31, 38, .38), transparent 65%), var(--nexos-black);
    box-shadow: inset 0 0 50px rgba(226, 31, 38, .08), 0 0 60px rgba(17, 19, 24, .12);
}

.cta-panel::before,
.cta-panel::after {
    content: '';
    position: absolute;
    z-index: -1;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(255, 255, 255, .16);
    transform: rotate(45deg);
    animation: portal-breathe 10s ease-in-out infinite;
}

.cta-panel::before {
    left: -280px;
    top: 10%;
}

.cta-panel::after {
    right: -280px;
    top: 10%;
    animation-delay: -5s;
}

.cta-panel .eyebrow {
    justify-content: center;
    color: var(--nexos-white);
    font-size: 9px;
}

.cta-panel h2 {
    color: var(--nexos-white);
    font-size: clamp(35px, 4.3vw, 61px);
    letter-spacing: -.055em;
}

.cta-panel h2 em {
    display: block;
    color: var(--nexos-white);
}

.cta-panel p {
    margin: 25px auto 30px;
    max-width: 430px;
    color: rgba(255, 255, 255, .76);
}

/* =========================================================
   14. CONTACT SECTION
   Accessible inline form errors
   ========================================================= */

.contact__layout {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 100px;
}

.contact__intro > p {
    margin-top: 25px;
}

.contact__info {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    max-width: 320px;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 20px;
}

.form-group {
    min-width: 0;
}

.form-group:has(textarea),
.form-note,
.form-status,
.contact-form > .btn,
.contact-form > noscript {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-size: 12px;
    margin-bottom: 10px;
    color: var(--nexos-black);
}

.form-group input,
.form-group select,
.form-group textarea {
    display: block;
    width: 100%;
    min-height: 50px;
    border: 1px solid #11131844;
    border-radius: 6px;
    background: var(--surface);
    color: var(--ice);
    padding: 13px 15px;
    font-size: 14px;
    transition: border-color .2s;
}

.form-group textarea {
    resize: none;
    min-height: 140px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(17, 19, 24, .48);
}

.form-group [aria-invalid="true"] {
    border-color: var(--nexos-red);
    box-shadow: inset 3px 0 0 var(--nexos-red);
}

.field-error {
    display: block;
    margin-top: 8px;
    color: var(--nexos-red);
    font-size: 12px;
}

.field-error:empty {
    display: none;
}

.contact-form > .btn {
    justify-self: start;
}

.form-note {
    font-size: 12px;
    line-height: 1.7;
}

.form-status {
    font-size: 14px;
    color: var(--nexos-red);
}

.form-status:empty {
    display: none;
}

/* =========================================================
   15. FOOTER
   Digital grid footer
   ========================================================= */

.footer {
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--line);
    padding-top: 70px;
    background: #111318;
}

.footer::before {
    content: '';
    position: absolute;
    pointer-events: none;
    inset: 35% -20% -40%;
    background-image: linear-gradient(rgba(226, 31, 38, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(226, 31, 38, .08) 1px, transparent 1px);
    background-size: 65px 65px;
    transform: perspective(400px) rotateX(50deg);
}

.footer__main {
    position: relative;
    display: grid;
    grid-template-columns: 1.4fr .8fr .95fr 1fr;
    gap: 50px;
}

.footer__brand > a {
    width: 150px;
    height: 48px;
}

.footer__brand p {
    font-size: 13px;
    margin-top: 25px;
    max-width: 250px;
}

.footer__column h3 {
    font-size: 13px;
    margin-bottom: 22px;
}

.footer__column li,
.footer__column p {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 9px;
}

.footer__column a:hover {
    color: var(--ice);
}

.footer__column .text-link {
    font-size: 12px;
}

.footer__bottom {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 25px;
    margin-top: 55px;
    padding-block: 25px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    font-size: 10px;
}

.back-to-top {
    flex-shrink: 0;
}

.floating-top {
    position: fixed;
    z-index: 20;
    right: 22px;
    bottom: 22px;
    width: 44px;
    height: 44px;
    border: 1px solid #11131855;
    border-radius: 8px;
    background: var(--nexos-black);
    color: var(--nexos-white);
    backdrop-filter: blur(15px);
    font-size: 20px;
    box-shadow: 0 4px 20px #0003;
}

.floating-top:hover {
    border-color: var(--accent-text);
}


.footer {
    color: var(--nexos-white);
}

.footer p,
.footer__column li,
.footer__column p {
    color: rgba(255, 255, 255, .66);
}

.footer__column a:hover,
.footer .text-link {
    color: var(--nexos-white);
}

.footer .text-link {
    border-bottom-color: var(--nexos-red);
}

/* =========================================================
   16. MOTION & REVEAL ANIMATIONS
   Only transforms and opacity animate continuously
   ========================================================= */

@keyframes core-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}


@keyframes orbit {
    to {
        transform: rotate(360deg);
    }
}

@keyframes portal-breathe {
    0%,
    100% {
        transform: rotate(45deg) scale(1);
    }

    50% {
        transform: rotate(45deg) scale(1.06);
    }
}

.reveal {
    transition: opacity .65s, transform .65s;
}

.reveal.is-pending {
    opacity: 0;
    transform: translateY(22px);
}

.hero.is-offscreen .core-crystal,
.hero.is-offscreen .core-orbits,
.hero.is-offscreen .core-satellite {
    animation-play-state: paused;
}
