/* ENFRIXA front-end
   Palette: Ink (dark), Paper (light), Signal (primary blue), Spark (amber accent), Mist (lines), Slate (secondary text)
   Type: Sora for display, Figtree for text */
:root {
    --paper: #F5F7FB;
    --white: #FFFFFF;
    --mist: #DCE3F0;
    --slate: #56637F;
    --ink-soft: #1B2A55;
    --radius-lg: 20px;
    --radius-sm: 8px;
    --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
    --font-text: "Figtree", "Segoe UI", system-ui, sans-serif;
    --bs-body-font-family: var(--font-text);
    --bs-body-color: var(--ink);
    --bs-link-color-rgb: 46, 91, 255;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body { font-family: var(--font-text); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--white); }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: var(--font-display); color: inherit; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); font-weight: 700; line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-weight: 700; line-height: 1.15; }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
a { color: var(--signal); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--spark); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; top: 8px; left: 8px; z-index: 2000; background: var(--spark); color: var(--ink); padding: .5rem 1rem; border-radius: var(--radius-sm); }
.narrow { max-width: 820px; }
.text-soft { color: rgba(255,255,255,.72); }

/* Buttons */
.btn { font-family: var(--font-display); font-weight: 600; border-radius: 999px; padding: .65rem 1.4rem; letter-spacing: -0.01em; }
.btn-lg { padding: .85rem 1.8rem; font-size: 1rem; }
.btn-spark { background: var(--spark); color: var(--ink); border: 0; }
.btn-spark:hover, .btn-spark:focus { background: #ffc46e; color: var(--ink); }
.btn-ghost-light { border: 1.5px solid rgba(255,255,255,.35); color: #fff; background: transparent; }
.btn-ghost-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }
.page-hero .btn-ghost-light, .project-hero .btn-ghost-light { color: #fff; }
.link-arrow { font-family: var(--font-display); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--spark); padding-bottom: 2px; color: var(--ink); }
.link-arrow:hover { color: var(--signal); }

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 1030; transition: background .25s, box-shadow .25s; }
.site-header .navbar { padding: 1.1rem 0; }
.site-header.is-solid, .site-header:not(.on-hero) { background: var(--ink); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.site-header.is-solid .navbar { padding: .7rem 0; }
.wordmark { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; letter-spacing: .04em; color: #fff; }
.navbar-brand { text-decoration: none; }
.site-header .nav-link { color: rgba(255,255,255,.78); font-weight: 500; padding: .5rem .9rem !important; }
.site-header .nav-link:hover, .site-header .nav-link.active, .site-header .nav-link.show { color: #fff; }
.site-header .nav-link.active { box-shadow: inset 0 -2px 0 var(--spark); }
.navbar-toggler { border: 0; color: #fff; font-size: 1.8rem; padding: 0; }
.navbar-toggler:focus { box-shadow: none; }
.mega { position: static; }
.mega-menu { left: 0; right: 0; border: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); padding: 2rem 0 1.5rem; margin-top: 0 !important; box-shadow: 0 30px 60px rgba(16,28,61,.18); }
.mega-title { font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--ink); margin-bottom: .5rem; }
.mega-menu .dropdown-item { padding: .35rem 0; font-size: .95rem; color: var(--slate); white-space: normal; background: none; }
.mega-menu .dropdown-item i { color: var(--signal); margin-right: .5rem; }
.mega-menu .dropdown-item:hover { color: var(--signal); }
.mega-all { display: inline-block; margin-top: 1rem; font-weight: 600; }
.mobile-nav { background: var(--ink); color: #fff; }
.mobile-nav .offcanvas-body { display: flex; flex-direction: column; }
.mobile-nav .offcanvas-body > a:not(.btn) { color: #fff; text-decoration: none; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; padding: .55rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }

/* Hero: the name unpacks into its meaning */
.hero { background: var(--ink); color: #fff; padding: 9rem 0 5rem; position: relative; overflow: hidden; }
.hero::after { /* faint signal grid that hints at structure, not decoration for its own sake */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 64px 64px; mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
}
.hero .container { position: relative; z-index: 1; }
.acronym { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: clamp(.25rem, 1.6vw, 1.5rem); margin-bottom: 1rem; }
.acr { flex: 0 1 auto; min-width: 0; background: none; border: 0; padding: 0; text-align: left; color: #fff; cursor: pointer; display: flex; flex-direction: column; animation: acr-open .9s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i) * 90ms + 150ms); }
.acr-letters { font-family: var(--font-display); font-weight: 800; font-size: clamp(3.2rem, 13.5vw, 11.5rem); line-height: .9; letter-spacing: -0.05em; transition: color .2s; }
.acr-word { font-family: var(--font-display); font-weight: 400; font-size: clamp(.8rem, 1.5vw, 1.15rem); color: rgba(255,255,255,.6); margin-top: .6rem; padding-top: .6rem; border-top: 2px solid rgba(255,255,255,.18); transition: color .2s, border-color .2s; animation: acr-word .6s ease both; animation-delay: calc(var(--i) * 90ms + 700ms); }
.acr:hover .acr-letters, .acr:focus-visible .acr-letters, .acr.is-current .acr-letters { color: var(--spark); }
.acr:hover .acr-word, .acr:focus-visible .acr-word, .acr.is-current .acr-word { color: #fff; border-color: var(--spark); }
.acr-caption { min-height: 3.2em; max-width: 60ch; color: rgba(255,255,255,.75); font-size: 1.05rem; margin: 1.25rem 0 3.5rem; }
@keyframes acr-open { from { opacity: 0; transform: translateX(calc(var(--i) * -2.5vw)); } to { opacity: 1; transform: none; } }
@keyframes acr-word { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.hero h1 { color: #fff; margin: 0; max-width: 18ch; }
.hero-sub { color: rgba(255,255,255,.75); font-size: 1.1rem; }
.hero-copy { border-top: 1px solid rgba(255,255,255,.12); padding-top: 2.5rem; }
@media (max-width: 575.98px) { .acr-word { font-size: .6rem; } .hero { padding-top: 7.5rem; } }

/* Sections */
.section { padding: 6rem 0; }
.section-paper { background: var(--paper); }
.section-ink { background: var(--ink); color: #fff; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 2.5rem; }
.section-head h2 { margin: 0; }
.section-intro { top: 110px; }
.section-intro p { color: var(--slate); margin: 1rem 0 1.5rem; max-width: 34ch; }

/* Service rows: a list, not a card grid */
.service-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--mist); }
.service-rows li { border-bottom: 1px solid var(--mist); }
.service-rows a { display: grid; grid-template-columns: 2.5rem 1fr; grid-template-areas: "icon title" "icon desc"; column-gap: 1rem; padding: 1.4rem .5rem; text-decoration: none; color: var(--ink); transition: background .2s; }
.service-rows a:hover { background: var(--paper); }
.service-rows i { grid-area: icon; font-size: 1.5rem; color: var(--signal); line-height: 1; padding-top: .15rem; }
.sr-title { grid-area: title; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.sr-desc { grid-area: desc; color: var(--slate); font-size: .98rem; max-width: 62ch; }
@media (min-width: 992px) {
    .service-rows a { grid-template-columns: 2.5rem minmax(0, 18rem) 1fr; grid-template-areas: "icon title desc"; align-items: baseline; }
}
.service-group { margin-bottom: 4rem; }
.service-group h2 { font-size: 1.5rem; display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.service-group h2 i { color: var(--signal); }
.cat-jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 3rem; }
.cat-jump a { border: 1px solid var(--mist); border-radius: 999px; padding: .4rem 1rem; text-decoration: none; color: var(--ink); font-weight: 500; }
.cat-jump a:hover { border-color: var(--signal); color: var(--signal); }

/* AI section */
.flow { list-style: none; padding: 0; margin: 2rem 0 0; counter-reset: none; }
.flow li { position: relative; padding: 0 0 1.4rem 3rem; font-family: var(--font-display); font-weight: 600; }
.flow li span { display: block; font-family: var(--font-text); font-weight: 400; color: rgba(255,255,255,.65); font-size: .95rem; }
.flow li i { position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--signal); color: #fff; font-size: 1rem; }
.flow li:not(:last-child)::before { content: ""; position: absolute; left: 1rem; top: 2.1rem; bottom: .2rem; width: 2px; background: rgba(255,255,255,.18); }
.ai-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); overflow: hidden; }
.ai-tile { background: var(--ink); padding: 1.75rem; text-decoration: none; color: #fff; transition: background .2s; }
.ai-tile:hover { background: var(--ink-soft); color: #fff; }
.ai-tile i { font-size: 1.6rem; color: var(--spark); }
.ai-tile h3 { font-size: 1.1rem; margin: .9rem 0 .4rem; }
.ai-tile p { font-size: .93rem; color: rgba(255,255,255,.65); margin: 0; }

/* Projects */
.project-card { height: 100%; display: flex; flex-direction: column; }
.project-media { display: block; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); position: relative; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project-card:hover .project-media img { transform: scale(1.03); }
.monogram { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 8vw, 6rem); color: var(--signal); letter-spacing: -0.05em;
    background: radial-gradient(circle at 80% 20%, rgba(46,91,255,.35), transparent 55%), var(--ink); }
.monogram.small { position: relative; width: 100%; aspect-ratio: 1; border-radius: var(--radius-lg); font-size: 3rem; }
.project-body { padding-top: 1.1rem; }
.project-body h3 { font-size: 1.35rem; margin: .25rem 0 .5rem; }
.project-body h3 a { color: var(--ink); text-decoration: none; }
.project-body h3 a:hover { color: var(--signal); }
.project-body p { color: var(--slate); }
.project-meta { font-size: .9rem; color: var(--signal); font-weight: 600; margin: 0; }
.project-meta span { color: var(--slate); font-weight: 400; margin-left: .5rem; }
.project-meta span::before { content: "/"; margin-right: .5rem; color: var(--mist); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chips li { font-size: .8rem; border: 1px solid var(--mist); border-radius: 999px; padding: .2rem .7rem; color: var(--slate); }
@media (min-width: 992px) {
    .project-grid .is-wide .project-card { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: center; }
    .project-grid .is-wide .project-body h3 { font-size: 2rem; }
}
.filter-bar { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 2.5rem; }
.filter-bar a { padding: .45rem 1.1rem; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; border: 1px solid var(--mist); }
.filter-bar a.is-active, .filter-bar a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.project-facts { display: flex; flex-wrap: wrap; gap: 2.5rem; margin: 2rem 0 0; }
.project-facts dt { font-weight: 400; color: rgba(255,255,255,.6); font-size: .85rem; }
.project-facts dd { margin: 0; font-family: var(--font-display); font-weight: 600; }
.project-cover { aspect-ratio: 16 / 8; border-radius: var(--radius-lg); overflow: hidden; position: relative; background: var(--ink); }
.project-cover img { width: 100%; height: 100%; object-fit: cover; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.gallery img { width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--mist); }
.next-project { display: block; margin-top: 5rem; padding: 2.5rem 0; border-top: 1px solid var(--mist); text-decoration: none; color: var(--ink); }
.next-project span { color: var(--slate); display: block; }
.next-project strong { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 3rem); }
.next-project:hover strong { color: var(--signal); }

/* Process (a genuine sequence) */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 2rem; }
.process li { border-top: 2px solid var(--ink); padding-top: 1rem; }
.step-no { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; color: var(--signal); line-height: 1; }
.process h3 { margin: .75rem 0 .4rem; }
.process p { color: var(--slate); font-size: .95rem; margin: 0; }

/* Why + figures */
.figures { margin: 2rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.figures div { display: flex; flex-direction: column-reverse; }
.figures dd { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; color: var(--signal); margin: 0; line-height: 1; }
.figures dt { font-weight: 400; color: var(--slate); font-size: .9rem; }
.why-item i { font-size: 1.6rem; color: var(--signal); }
.why-item h3 { margin: .6rem 0 .3rem; }
.why-item p { color: var(--slate); margin: 0; }

/* Pills */
.pill-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.pill-list li { display: inline-flex; align-items: center; gap: .5rem; background: var(--white); border: 1px solid var(--mist); border-radius: 999px; padding: .5rem 1rem; font-weight: 500; }
.pill-list i { color: var(--signal); }

/* Quotes */
.quote { margin: 0; }
.quote blockquote { font-size: 1.1rem; border-left: 3px solid var(--spark); padding-left: 1.25rem; margin-bottom: 1rem; }
.quote figcaption { display: flex; gap: .75rem; align-items: center; padding-left: 1.25rem; color: var(--slate); font-size: .9rem; }
.quote figcaption img { border-radius: 50%; object-fit: cover; }
.quote strong { display: block; color: var(--ink); }

/* FAQ + posts */
.faq-list .accordion-item { border: 0; border-bottom: 1px solid var(--mist); background: transparent; }
.faq-list .accordion-button { font-family: var(--font-display); font-weight: 600; padding: 1.25rem 0; background: transparent; color: var(--ink); box-shadow: none; }
.faq-list .accordion-button:not(.collapsed) { color: var(--signal); }
.faq-list .accordion-body { padding: 0 0 1.25rem; color: var(--slate); }
.post-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.post-list li { border-bottom: 1px solid var(--mist); }
.post-list a { display: block; padding: 1rem 0; text-decoration: none; }
.pl-title { display: block; font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.post-list a:hover .pl-title { color: var(--signal); }
.pl-meta { font-size: .85rem; color: var(--slate); }
.post-card .post-media { display: block; aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); margin-bottom: 1rem; }
.post-card .post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--signal); }
.post-card p:last-child { color: var(--slate); }
.blog-search { min-width: 240px; }
.post-byline { color: var(--slate); }
.share { display: flex; align-items: center; gap: 1rem; border-top: 1px solid var(--mist); margin-top: 3rem; padding-top: 1.5rem; }
.share a { font-size: 1.2rem; color: var(--ink); }

/* Page hero */
.page-hero { background: var(--ink); color: #fff; padding: 9rem 0 4rem; }
.page-hero h1 { color: #fff; max-width: 22ch; }
.page-hero .lead { color: rgba(255,255,255,.75); max-width: 60ch; margin-top: 1rem; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0 0 1.5rem; font-size: .9rem; }
.crumbs li { color: rgba(255,255,255,.6); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: rgba(255,255,255,.3); }
.crumbs a { color: rgba(255,255,255,.85); text-decoration: none; }
.crumbs a:hover { color: var(--spark); }

/* Detail content */
.prose { font-size: 1.07rem; max-width: 72ch; }
.prose h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem; }
.prose h3 { margin: 2rem 0 .75rem; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.lead-prose { font-size: 1.2rem; }
.detail-image { width: 100%; border-radius: var(--radius-lg); margin-bottom: 2rem; }
.side-panel { background: var(--paper); border-radius: var(--radius-lg); padding: 1.75rem; top: 110px; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding: .45rem 0 .45rem 1.9rem; }
.check-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: .4rem; color: var(--signal); font-size: 1.15rem; }
@media (min-width: 768px) { .check-list.cols-2 { columns: 2; column-gap: 2rem; } .check-list.cols-2 li { break-inside: avoid; } }
.side-links a { display: block; padding: .35rem 0; text-decoration: none; color: var(--ink); }
.side-links a:hover { color: var(--signal); }
.side-links i { color: var(--signal); margin-right: .4rem; }

/* About */
.name-meaning { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; margin: 0; }
.name-meaning dt { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.name-meaning dt span { display: block; font-weight: 800; font-size: 3.2rem; color: var(--spark); line-height: 1; margin-bottom: .4rem; letter-spacing: -0.04em; }
.name-meaning dd { color: rgba(255,255,255,.7); margin: .5rem 0 0; }
.team-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); }
.team-card h3 { margin: .9rem 0 .2rem; font-size: 1.05rem; }
.team-card p { color: var(--slate); margin: 0 0 .3rem; font-size: .92rem; }

/* Contact */
.contact-form .form-control, .contact-form .form-select { border-radius: var(--radius-sm); border-color: var(--mist); padding: .75rem 1rem; }
.contact-form .form-control:focus, .contact-form .form-select:focus { border-color: var(--signal); box-shadow: 0 0 0 .2rem rgba(46,91,255,.15); }
.form-label { font-weight: 600; }
.opt { font-weight: 400; color: var(--slate); }
.hp { position: absolute; left: -9999px; }
.map { width: 100%; height: 280px; border: 0; border-radius: var(--radius-lg); margin-top: 1.5rem; }
.empty { color: var(--slate); padding: 3rem 0; }

/* CTA + footer */
.cta-band { padding: 0 0 6rem; }
.cta-inner { background: var(--signal); color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 4rem); display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: center; }
.cta-inner h2 { color: #fff; max-width: 20ch; }
.cta-inner p { color: rgba(255,255,255,.85); max-width: 52ch; margin: .75rem 0 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.section-paper + .cta-band, .section-ink + .cta-band { padding-top: 6rem; }
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 5rem 0 2rem; }
.footer-title { font-family: var(--font-display); font-weight: 600; color: #fff; margin-bottom: 1rem; }
.footer-about { max-width: 40ch; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a, .footer-contact a { color: rgba(255,255,255,.7); text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: var(--spark); }
.footer-contact li { display: flex; gap: .75rem; margin-bottom: .75rem; }
.footer-contact i { color: var(--spark); }
.footer-contact.is-dark a, .footer-contact.is-dark span { color: var(--ink); }
.footer-contact.is-dark i { color: var(--signal); }
.socials { display: flex; gap: .5rem; margin-top: 1.25rem; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: #fff; text-decoration: none; }
.socials a:hover { background: var(--spark); color: var(--ink); border-color: var(--spark); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255,255,255,.1); margin-top: 4rem; padding-top: 1.5rem; font-size: .9rem; }
.footer-bottom a { color: rgba(255,255,255,.7); }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 1040; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25D366; color: #fff; font-size: 1.6rem; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.wa-float:hover { color: #fff; transform: translateY(-2px); }
.pagination { --bs-pagination-color: var(--ink); --bs-pagination-active-bg: var(--ink); --bs-pagination-active-border-color: var(--ink); }
