:root {
  --blue: #2463EB;
  --ink: #0F172A;
  --white: #FFFFFF;
  --mist: #F6F7F9;
  --text: #667085;
  --line: #E4E7EC;
  --yellow: #F6C453;
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 14px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Inter, Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
h1, h2 { letter-spacing: -.045em; line-height: 1.04; }
h3 { line-height: 1.22; letter-spacing: -.025em; }
.container { width: min(100% - (var(--gutter) * 2), var(--container)); margin-inline: auto; }
.section { padding-block: clamp(76px, 10vw, 144px); }
.section--soft { background: var(--mist); }
.eyebrow { display: block; margin-bottom: 18px; color: var(--blue); font-size: 11px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 12px; border: 1px solid transparent; border-radius: 8px; padding: 12px 20px; font-size: 14px; font-weight: 700; transition: transform .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .primary-nav a:focus-visible, .text-link:focus-visible, .brand:focus-visible, .menu-toggle:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 32%, transparent); outline-offset: 4px; }
.button--primary { color: var(--white); background: var(--blue); }
.button--primary:hover { background: color-mix(in srgb, var(--blue) 84%, var(--ink)); }
.button--light { color: var(--white); border-color: color-mix(in srgb, var(--white) 45%, transparent); background: color-mix(in srgb, var(--white) 8%, transparent); }
.button--light:hover { color: var(--ink); background: var(--white); }
.button--small { min-height: 42px; padding: 9px 16px; font-size: 13px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-size: 13px; font-weight: 750; }
.text-link span { transition: transform .2s var(--ease); }
.text-link:hover span { transform: translate(3px, -3px); }

.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--white) 94%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent); backdrop-filter: blur(16px); }
.site-header__inner { display: grid; min-height: 78px; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; justify-self: start; min-width: 0; }
.brand__mask { display: flex; width: 286px; height: 64px; align-items: center; overflow: hidden; }
.brand__logo { width: 218px; max-width: none; height: auto; max-height: 76px; object-fit: contain; object-position: left center; transform: scale(1.43); transform-origin: left center; }
.brand__fallback { display: none; color: var(--ink); font-weight: 850; letter-spacing: .08em; }
.brand__fallback span { display: block; color: var(--text); font-size: 8px; letter-spacing: .15em; }
.primary-nav { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 2.2vw, 32px); }
.primary-nav a { position: relative; color: var(--text); font-size: 13px; font-weight: 650; transition: color .2s ease; }
.primary-nav a::after { position: absolute; right: 0; bottom: -8px; left: 0; height: 2px; background: var(--blue); content: ""; transform: scaleX(0); transform-origin: center; transition: transform .2s var(--ease); }
.primary-nav a:hover { color: var(--ink); }
.primary-nav a:hover::after { transform: scaleX(1); }
.header-cta { justify-self: end; }
.menu-toggle { display: none; border: 0; background: transparent; }

.hero { position: relative; min-height: min(800px, calc(100vh - 78px)); display: flex; align-items: center; overflow: hidden; color: var(--white); background: var(--ink); isolation: isolate; }
.hero::before { position: absolute; inset: -7%; z-index: -2; background: url("../images/hero-fenix.jpg") center / cover no-repeat; content: ""; transform: scale(1.03); transform-origin: center; animation: heroKenBurns 24s ease-in-out infinite alternate; will-change: transform; }
.hero__backdrop { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, color-mix(in srgb, var(--ink) 92%, transparent), color-mix(in srgb, var(--ink) 30%, transparent)); }
.hero__grid { position: absolute; inset: 0; z-index: -1; opacity: .2; background-image: linear-gradient(color-mix(in srgb, var(--white) 18%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--white) 18%, transparent) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(90deg, var(--white), transparent 78%); }
.hero__content { position: relative; max-width: 900px; padding-block: clamp(96px, 13vw, 180px); }
.hero .eyebrow { color: var(--yellow); }
.hero h1 { max-width: 10ch; margin-bottom: 26px; font-size: clamp(50px, 7vw, 100px); }
.hero p { max-width: 560px; margin-bottom: 36px; color: color-mix(in srgb, var(--white) 78%, transparent); font-size: clamp(20px, 2vw, 28px); line-height: 1.35; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__signal { position: absolute; right: clamp(22px, 7vw, 110px); bottom: 44px; display: flex; align-items: center; gap: 12px; color: color-mix(in srgb, var(--white) 70%, transparent); font-size: 10px; font-weight: 800; letter-spacing: .22em; }
.hero__signal i, .hero__signal b { display: block; width: 34px; height: 1px; background: var(--yellow); }
.hero__signal b { width: 8px; height: 8px; border-radius: 50%; }
@keyframes heroKenBurns {
  0% { transform: scale(1.03) translate3d(-1%, -0.5%, 0); }
  100% { transform: scale(1.14) translate3d(1%, 0.5%, 0); }
}

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: clamp(34px, 5vw, 60px); }
.section-heading h2 { max-width: 640px; margin-bottom: 0; font-size: clamp(34px, 4vw, 58px); }
.section-heading > p { max-width: 330px; margin-bottom: 3px; color: var(--text); font-size: 15px; }
.section-heading--narrow { max-width: 780px; }
.about-grid { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr); gap: clamp(48px, 9vw, 140px); align-items: center; }
.about-visual { position: relative; min-height: 500px; display: grid; place-items: center; overflow: hidden; background: var(--ink); }
.about-visual::before, .about-visual::after { position: absolute; width: 72%; height: 72%; border: 1px solid color-mix(in srgb, var(--white) 18%, transparent); content: ""; transform: rotate(26deg); }
.about-visual::after { width: 55%; height: 55%; border-color: color-mix(in srgb, var(--blue) 75%, transparent); transform: rotate(-22deg); }
.about-visual__mark { z-index: 1; color: var(--blue); font-size: clamp(120px, 16vw, 250px); font-weight: 850; letter-spacing: -.15em; line-height: 1; }
.about-visual__label { position: absolute; right: 24px; bottom: 24px; color: color-mix(in srgb, var(--white) 70%, transparent); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
.about-copy h2 { max-width: 660px; margin-bottom: 24px; font-size: clamp(36px, 4.3vw, 64px); }
.about-copy p { max-width: 600px; color: var(--text); font-size: 16px; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line); }
.about-stats strong { display: block; margin-bottom: 7px; color: var(--blue); font-size: 30px; }
.about-stats span { display: block; color: var(--text); font-size: 12px; line-height: 1.35; }

.solutions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.solution-card { position: relative; min-height: 250px; padding: 30px; background: var(--white); transition: background .25s var(--ease), transform .25s var(--ease); }
.solution-card:hover { z-index: 1; background: color-mix(in srgb, var(--blue) 6%, var(--white)); transform: translateY(-4px); }
.solution-card__number { display: block; margin-bottom: 42px; color: var(--text); font-size: 12px; }
.solution-card__icon { position: absolute; top: 28px; right: 28px; color: var(--blue); font-size: 24px; }
.solution-card h3 { margin-bottom: 10px; font-size: 21px; }
.solution-card p { max-width: 29ch; margin-bottom: 0; color: var(--text); font-size: 14px; }

.differentials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 44px; border-top: 1px solid var(--ink); }
.differential { min-height: 184px; padding: 24px 0 28px; border-bottom: 1px solid var(--line); }
.differential__index { display: block; margin-bottom: 28px; color: var(--blue); font-size: 12px; }
.differential h3 { margin-bottom: 8px; font-size: 20px; }
.differential p { margin-bottom: 0; color: var(--text); font-size: 14px; }

.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.project-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); background: var(--white); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.project-card:hover { box-shadow: 0 18px 42px color-mix(in srgb, var(--ink) 10%, transparent); transform: translateY(-5px); }
.project-card__image { aspect-ratio: 16 / 10; overflow: hidden; background: var(--mist); }
.project-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.project-card:hover .project-card__image img { transform: scale(1.04); }
.project-placeholder { display: grid; width: 100%; height: 100%; min-height: 200px; place-items: center; color: color-mix(in srgb, var(--blue) 55%, var(--ink)); background: linear-gradient(135deg, var(--mist), color-mix(in srgb, var(--blue) 10%, var(--white))); }
.project-placeholder span { font-size: 13px; font-weight: 850; letter-spacing: .22em; }
.project-card__body { padding: 23px 24px 26px; }
.project-card__meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; color: var(--text); font-size: 10px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.project-card__body h3 { margin-bottom: 8px; font-size: 22px; }
.project-card__body p { min-height: 48px; margin-bottom: 18px; color: var(--text); font-size: 14px; }
.section--latest { padding-top: 76px; }
.empty-state { grid-column: 1 / -1; margin: 0; padding: 32px; color: var(--text); border: 1px dashed var(--line); text-align: center; }

.instagram-embed { width: 100%; min-height: 300px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.instagram-embed > div { width: 100%; max-width: 100%; }
.instagram-embed__placeholder { display: grid; place-items: center; gap: 10px; padding: 48px 20px; color: var(--text); text-align: center; }
.instagram-embed__mark { color: var(--blue); font-size: 48px; line-height: 1; }
.instagram-embed p, .instagram-embed small { margin: 0; }
.instagram-embed p { color: var(--ink); font-size: 16px; font-weight: 750; }
.instagram-embed small { font-size: 12px; }

.section--contact { padding-top: 32px; }
.contact-panel { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: clamp(36px, 6vw, 72px); background: var(--ink); color: var(--white); }
.contact-panel h2 { max-width: 660px; margin-bottom: 16px; font-size: clamp(34px, 4.5vw, 62px); }
.contact-panel p { max-width: 550px; margin-bottom: 0; color: color-mix(in srgb, var(--white) 70%, transparent); }

.site-footer { padding-block: 72px 26px; background: var(--ink); color: var(--white); }
.site-footer__grid { display: flex; justify-content: space-between; gap: 40px; padding-bottom: 70px; }
.footer-brand { font-size: 26px; font-weight: 850; letter-spacing: .13em; }
.footer-tagline { max-width: 300px; margin: 14px 0 0; color: color-mix(in srgb, var(--white) 62%, transparent); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; align-content: start; gap: 18px 30px; color: color-mix(in srgb, var(--white) 72%, transparent); font-size: 13px; }
.footer-links a:hover { color: var(--white); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; border-top: 1px solid color-mix(in srgb, var(--white) 15%, transparent); color: color-mix(in srgb, var(--white) 48%, transparent); font-size: 11px; }

.archive-hero { padding-block: 120px 90px; background: var(--mist); }
.archive-hero h1 { max-width: 760px; margin-bottom: 18px; font-size: clamp(44px, 6vw, 80px); }
.archive-hero p { max-width: 560px; margin: 0; color: var(--text); font-size: 18px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 48px; color: var(--text); font-size: 12px; }
.breadcrumb a:hover { color: var(--blue); }
.single-project__header { padding-block: 72px 54px; }
.single-project__header h1 { max-width: 960px; margin-bottom: 18px; font-size: clamp(46px, 7vw, 96px); }
.single-project__meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--text); font-size: 12px; }
.single-project__meta a { color: var(--blue); }
.single-project__media { max-width: 1440px; }
.single-project__media img { width: 100%; max-height: 700px; object-fit: cover; }
.single-project__media .project-placeholder { min-height: min(60vw, 560px); }
.single-project__content-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(240px, .6fr); gap: 100px; padding-block: 76px 110px; }
.entry-content { font-size: 18px; }
.entry-content > * { max-width: 760px; }
.entry-content h2, .entry-content h3 { margin-top: 44px; margin-bottom: 16px; }
.entry-content p, .entry-content ul, .entry-content ol { color: color-mix(in srgb, var(--ink) 82%, var(--text)); }
.entry-content img { width: 100%; margin-block: 28px; }
.single-project__aside { align-self: start; padding-top: 8px; border-top: 1px solid var(--ink); }
.single-project__aside p { margin-bottom: 20px; font-size: 17px; font-weight: 650; }
.related-projects { background: var(--mist); }
.navigation.pagination { margin-top: 50px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 12px; }
.page-numbers { display: inline-flex; min-width: 42px; min-height: 42px; align-items: center; justify-content: center; padding: 6px 12px; border: 1px solid var(--line); background: var(--white); font-size: 13px; }
.page-numbers.current, .page-numbers:hover { color: var(--white); border-color: var(--blue); background: var(--blue); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } .hero::before { animation: none; transform: scale(1.03); } .reveal { opacity: 1; transform: none; } }
