/*
Theme Name:  Bytes Yatra
Theme URI:   https://www.bytesyatra.com.np
Author:      Bytes Yatra Pvt. Ltd.
Author URI:  https://www.bytesyatra.com.np
Description: Warm, editorial IT company theme for Bytes Yatra Pvt. Ltd. Paper-toned background, one brand colour, italic serif accents and smooth, gentle motion. Content is managed from the dashboard; colour, hero, contact details and SEO from Appearance → Customize.
Version:     4.0.0
Requires at least: 6.0
Requires PHP: 7.4
License:     GNU General Public License v2 or later
Text Domain: bytesyatra
*/

/* ============================================================
   DESIGN NOTES
   • White background everywhere, dark text, thin grey borders.
   • One brand colour (--primary, set in Customize) for buttons, links, accents.
   • <em> inside headings = italic serif accent word.
   • Motion is soft and slow-out (--ease); everything respects reduced-motion.
   ============================================================ */
:root {
    --primary: #2563EB;
    --primary-soft: color-mix(in srgb, var(--primary) 9%, #fff);
    --primary-mid: color-mix(in srgb, var(--primary) 22%, #fff);
    --primary-hover: color-mix(in srgb, var(--primary) 82%, #000);

    --bg:      #FFFFFF;
    --surface: #FFFFFF;   /* cards */
    --tint:    #FFFFFF;
    --text:    #15171C;
    --muted:   #545a66;
    --soft:    #7b808b;
    --line:    #E5E7EB;
    --line-strong: #D1D5DB;

    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(21,23,28,.05), 0 2px 8px -2px rgba(21,23,28,.06);
    --shadow: 0 2px 4px rgba(21,23,28,.04), 0 18px 40px -18px rgba(21,23,28,.22);

    --font-head: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
    --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;

    --ease: cubic-bezier(.22, 1, .36, 1);          /* soft slow-out */
    --spring: cubic-bezier(.34, 1.45, .64, 1);     /* tiny overshoot */
    --nav-h: 64px;
    --wrap: 1200px;
}

/* ═══ BASE ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); overflow-x: hidden; }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.65; color: var(--text); background: var(--bg); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--text); letter-spacing: -.025em; line-height: 1.12; font-weight: 600; text-wrap: balance; }
h1 em, h2 em, h3 em, .grad-text { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--primary); }
p { text-wrap: pretty; }
::selection { background: var(--primary); color: #fff; }
:where(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

/* WordPress essentials */
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { background: #fff; clip: auto !important; clip-path: none; color: var(--text); display: block; font-size: .9rem; font-weight: 600; height: auto; left: 8px; padding: 12px 20px; top: 8px; width: auto; z-index: 100000; }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }
.wp-caption-text, .wp-element-caption { font-size: .82rem; color: var(--soft); text-align: center; margin-top: .4rem; }
.admin-bar .site-header { top: 32px; }
.admin-bar .scroll-progress { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header, .admin-bar .scroll-progress { top: 46px; } }

/* ═══ LAYOUT ═══ */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: clamp(2.75rem, 5.5vw, 4.5rem) 0; position: relative; }
/* Two plain sections in a row: don't stack both paddings */
.section:not(.section-alt) + .section:not(.section-alt) { padding-top: clamp(1rem, 2.5vw, 2rem); }
.section-alt { background: var(--tint); }
.section-dark, .tech-bg { background: transparent; }

.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-mono); font-size: .76rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; border-radius: 2px; }
.section-head { margin-bottom: clamp(1.75rem, 4vw, 3rem); max-width: 700px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin-bottom: 1rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; max-width: 58ch; }
.section-head.center p { margin-inline: auto; }
.section-head.split { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 4rem; align-items: end; }
.lead { color: var(--muted); font-size: 1.08rem; line-height: 1.8; }

/* ═══ BUTTONS ═══ */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 50px; padding: .8rem 1.6rem; border-radius: 999px; border: 1.5px solid transparent; font: 600 .95rem/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap; overflow: hidden; isolation: isolate; transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), transform .4s var(--spring), box-shadow .3s var(--ease); }
.btn i { transition: transform .4s var(--ease); }
.btn:hover i.fa-arrow-right { transform: translateX(4px); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .1s; }
.btn-primary, .btn-white { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--primary) 70%, transparent); }
.btn-primary::after, .btn-white::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn-primary:hover::after, .btn-white:hover::after { transform: translateX(120%); }
.btn-primary:hover, .btn-white:hover { background: var(--primary-hover); color: #fff; box-shadow: 0 14px 28px -12px color-mix(in srgb, var(--primary) 75%, transparent); }
.btn-outline, .btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn-outline:hover, .btn-ghost:hover { border-color: var(--text); color: var(--text); }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: .75rem; flex-wrap: wrap; }
.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .9rem; color: var(--text); text-decoration: none; }
.link-arrow i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; background: var(--primary-soft); color: var(--primary); transition: transform .4s var(--ease), background .3s, color .3s; }
.link-arrow:hover i { transform: translateX(4px) rotate(-45deg); background: var(--primary); color: #fff; }

/* ═══ LOADER ═══ */
#page-loader { position: fixed; inset: 0; background: var(--bg); z-index: 99999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem; transition: opacity .5s var(--ease), visibility .5s; }
#page-loader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo img { width: 56px; height: 56px; object-fit: contain; animation: loaderPulse 1.4s var(--ease) infinite; }
@keyframes loaderPulse { 50% { transform: scale(.92); opacity: .7; } }
.loader-bar { width: 120px; height: 2px; background: var(--line); border-radius: 4px; overflow: hidden; }
.loader-bar-fill { height: 100%; background: var(--primary); animation: loadFill .9s var(--ease) forwards; }
@keyframes loadFill { from { width: 0; } to { width: 100%; } }

/* ═══ HEADER ═══ */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; background: var(--primary); transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); z-index: 1001; pointer-events: none; }
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--nav-h); background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .3s var(--ease); }
.site-header.scrolled { box-shadow: 0 4px 16px -10px rgba(15,23,42,.18); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav-brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; flex-shrink: 0; }
.nav-brand img { width: 34px; height: 34px; object-fit: contain; transition: transform .6s var(--spring); }
.nav-brand:hover img { transform: rotate(-8deg) scale(1.05); }
.nav-brand span { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--text); letter-spacing: -.02em; }
.nav-brand span small { display: block; font-family: var(--font-body); font-size: .7rem; font-weight: 500; color: var(--soft); margin-top: 1px; letter-spacing: 0; }
.nav-links { display: flex; list-style: none; gap: .15rem; align-items: center; }
.nav-links a { position: relative; display: block; padding: .5rem .85rem; color: var(--muted); background: transparent; text-decoration: none; font-weight: 500; font-size: .93rem; transition: color .25s; }
/* Every menu item looks the same: same colour, same background, same hover underline */
.nav-links a::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .3rem; height: 1.5px; background: var(--primary); border-radius: 2px; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links a:hover { color: var(--primary); }
.nav-links .sub-menu { display: none; }
.hamburger { display: none; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 18px; height: 2px; flex-shrink: 0; background: var(--text); border-radius: 2px; transition: transform .4s var(--ease), opacity .3s; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══ HERO (homepage) ═══ */
.hero { position: relative; overflow: hidden; padding: calc(var(--nav-h) + clamp(3.5rem, 8vw, 6.5rem)) 0 clamp(3rem, 5vw, 4.5rem); text-align: center; }

.hero-pill { display: inline-flex; align-items: center; gap: .6rem; padding: .45rem 1rem .45rem .8rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: .82rem; font-weight: 500; color: var(--muted); margin-bottom: 1.75rem; }
.hero-pill .dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.hero-pill .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--primary); animation: ping 2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(2.8); opacity: 0; } }
.hero .eyebrow { margin-bottom: 1.25rem; }
.hero h1 { font-size: clamp(2.6rem, 6.8vw, 5.4rem); line-height: 1.04; letter-spacing: -.032em; font-weight: 600; max-width: 14ch; margin: 0 auto 1.5rem; }
.hero h1 em.accent { position: relative; display: inline-block; padding: 0 .06em; letter-spacing: -.02em; }
.scribble { position: absolute; left: 0; right: 0; bottom: -.08em; width: 100%; height: .22em; overflow: visible; }
.scribble path { fill: none; stroke: var(--primary); stroke-width: 4; stroke-linecap: round; opacity: .55; stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw 1.4s var(--ease) 1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
/* Word-by-word headline entrance (spans added by main.js) */
.hero h1 .w { display: inline-block; opacity: 0; transform: translateY(.45em) rotate(2deg); filter: blur(8px); animation: wordIn .9s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + 150ms); }
@keyframes wordIn { to { opacity: 1; transform: none; filter: blur(0); } }
.hero-pill, .typewriter-wrap, .hero-sub, .hero .btn-row, .hero-stats { animation: fadeUp .9s var(--ease) both; }
.hero-pill { animation-delay: .05s; }
.typewriter-wrap { animation-delay: .55s; }
.hero-sub { animation-delay: .65s; }
.hero .btn-row { animation-delay: .75s; }
.hero-stats { animation-delay: .9s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.typewriter-wrap { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); margin-bottom: 1rem; min-height: 1.6em; }
#tw-text { font-family: var(--font-serif); font-style: italic; font-size: 1.2em; color: var(--text); }
.tw-cursor { display: inline-block; width: 2px; height: 1.1em; background: var(--primary); margin-left: 3px; vertical-align: -3px; animation: twBlink 1s step-end infinite; }
@keyframes twBlink { 50% { opacity: 0; } }
.hero-sub { color: var(--muted); font-size: 1.12rem; line-height: 1.75; max-width: 58ch; margin: 0 auto 2.25rem; }
.hero .btn-row { justify-content: center; }
.hero-stats { display: inline-flex; justify-content: center; flex-wrap: wrap; margin-top: clamp(3rem, 6vw, 4.5rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.hero-stats > div { padding: 1.25rem clamp(1.5rem, 3.5vw, 2.75rem); text-align: center; }
.hero-stats > div + div { border-left: 1px solid var(--line); }
.hero-stats strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: clamp(1.8rem, 3.5vw, 2.4rem); color: var(--text); line-height: 1.1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: .84rem; color: var(--soft); }

/* Tech marquee */
.marquee { position: relative; overflow: hidden; padding: 1.4rem 0; border-block: 1px solid var(--line); background: var(--surface); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; color: var(--soft); white-space: nowrap; transition: color .3s; }
.marquee-track span i { font-size: 1.3rem; }
.marquee-track span:hover { color: var(--text); }
@keyframes marquee { to { transform: translateX(calc(-50% - 1.5rem)); } }

/* ═══ CARDS (shared) ═══ */
.service-card, .process-step, .portfolio-card, .testi-card, .team-card, .blog-card, .value-card, .culture-card, .job-card, .mv-card, .faq-item, .contact-form, .apply-card, .no-jobs, .empty-note {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.service-card, .process-step, .portfolio-card, .testi-card, .team-card, .blog-card, .value-card, .culture-card, .mv-card {
    position: relative; transition: border-color .4s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease);
}
.service-card:hover, .process-step:hover, .portfolio-card:hover, .testi-card:hover, .team-card:hover, .blog-card:hover, .value-card:hover, .culture-card:hover, .job-card:hover, .mv-card:hover {
    border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-6px);
}
/* Soft spotlight that follows the cursor (position set by main.js) */
.service-card::before, .value-card::before, .culture-card::before, .mv-card::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .5s var(--ease);
    background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--primary) 8%, transparent), transparent 60%);
}
.service-card:hover::before, .value-card:hover::before, .culture-card:hover::before, .mv-card:hover::before { opacity: 1; }
.icon-box, .service-icon, .value-icon, .mv-icon, .culture-card > i, .process-step .ic, .contact-icon {
    width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex-shrink: 0;
    background: var(--primary-soft); color: var(--primary); font-size: 1.2rem;
    transition: transform .6s var(--spring), background .4s var(--ease), color .4s var(--ease);
}
.service-card:hover .service-icon, .value-card:hover .value-icon, .culture-card:hover > i, .mv-card:hover .mv-icon, .process-step:hover .ic { transform: rotate(-8deg) scale(1.08); background: var(--primary); color: #fff; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }
.service-card { padding: 2rem; display: flex; flex-direction: column; overflow: hidden; }
.service-num { position: absolute; top: 1.6rem; right: 1.8rem; font-family: var(--font-serif); font-style: italic; font-size: 1.6rem; color: var(--line-strong); line-height: 1; transition: color .4s var(--ease), transform .6s var(--ease); }
.service-card:hover .service-num { color: var(--primary); transform: translateY(-3px); }
.service-icon { margin-bottom: 1.5rem; }
.service-card h3 { font-size: 1.25rem; margin-bottom: .55rem; }
.service-card p { color: var(--muted); font-size: .95rem; margin-bottom: 1.5rem; }
.service-card .link-arrow { margin-top: auto; }

/* Process — connected timeline */
.process-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.process-grid:not(.two)::before { content: ""; position: absolute; top: 2.65rem; left: 12%; right: 12%; height: 1.5px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px); z-index: 0; }
.process-grid.two { grid-template-columns: 1fr 1fr; }
.process-step { padding: 1.75rem; z-index: 1; }
.process-step .num { display: inline-grid; place-items: center; min-width: 2.4rem; height: 2.4rem; padding: 0 .5rem; border-radius: 999px; background: var(--text); color: #fff; font-family: var(--font-mono); font-size: .78rem; font-weight: 500; letter-spacing: .04em; transition: background .4s var(--ease); }
.process-step:hover .num { background: var(--primary); }
.process-step .ic { margin: 1.1rem 0 1.1rem; }
.process-step h3 { font-size: 1.15rem; margin-bottom: .45rem; }
.process-step p { color: var(--muted); font-size: .92rem; }

/* Stats (About page) */
.stats-band { padding: clamp(2.5rem, 5vw, 3.5rem) 0; border-block: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1.5rem; text-align: center; }
.stat-icon { color: var(--primary); margin-bottom: .6rem; }
.stat-number { font-family: var(--font-head); font-size: clamp(2.3rem, 4.5vw, 3.2rem); font-weight: 600; line-height: 1; color: var(--text); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--soft); font-size: .9rem; margin-top: .5rem; }

/* Portfolio */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.5rem; }
.portfolio-card { display: block; overflow: hidden; text-decoration: none; color: inherit; }
.portfolio-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); margin: .6rem .6rem 0; border-radius: calc(var(--radius-lg) - 6px); }
.portfolio-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.portfolio-card:hover .portfolio-media img { transform: scale(1.06); }
.portfolio-media .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--primary); opacity: .35; font-size: 2.4rem; }
.portfolio-media .visit { display: none; }
a.portfolio-card .portfolio-media::after { content: "\f062"; font: var(--fa-font-solid); position: absolute; top: .9rem; right: .9rem; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--text); transform: rotate(45deg) scale(.6); opacity: 0; transition: transform .5s var(--spring), opacity .3s; }
a.portfolio-card:hover .portfolio-media::after { transform: rotate(45deg) scale(1); opacity: 1; }
.portfolio-info { padding: 1.3rem 1.5rem 1.6rem; }
.portfolio-category { font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: .4rem; }
.portfolio-info h3 { font-size: 1.25rem; margin-bottom: .35rem; }
.portfolio-info p { color: var(--muted); font-size: .92rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.tags span { font-size: .74rem; padding: .25rem .7rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.empty-note { grid-column: 1 / -1; text-align: center; padding: 3rem 1.5rem; border-style: dashed; background: transparent; }
.empty-note > i { font-size: 2rem; color: var(--primary); opacity: .5; display: block; margin-bottom: .75rem; }
.empty-note p { color: var(--muted); }
.empty-note a { font-weight: 600; text-decoration: none; }

/* Why us */
.why-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: start; }
.why-split h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin-bottom: 1rem; }
.check-list { list-style: none; display: grid; gap: .25rem; }
.check-list li { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 0; border-bottom: 1px solid var(--line); transition: transform .5s var(--ease); }
.check-list li:last-child { border-bottom: 0; }
.check-list li:hover { transform: translateX(6px); }
.check-list li > i { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-size: .7rem; margin-top: 2px; }
.check-list strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; margin-bottom: .15rem; }
.check-list span { color: var(--muted); font-size: .94rem; }


/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }
.testi-card { padding: 2rem; display: flex; flex-direction: column; }
.testi-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.1rem; }
.testi-top .fa-quote-left { font-size: 1.6rem; color: var(--primary); opacity: .3; }
.stars { color: var(--primary); font-size: .9rem; letter-spacing: 2px; }
.testi-card blockquote { font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.5; color: var(--text); margin-bottom: 1.5rem; flex: 1; }
.testi-author { display: flex; align-items: center; gap: .85rem; padding-top: 1.2rem; border-top: 1px dashed var(--line-strong); }
.testi-avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-weight: 700; overflow: hidden; flex-shrink: 0; }
.testi-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testi-name { font-weight: 600; font-size: .95rem; }
.testi-pos { font-size: .8rem; color: var(--soft); }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.team-card { overflow: hidden; text-align: center; padding: .6rem; }
.team-img { aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; border-radius: calc(var(--radius-lg) - 6px); background: var(--tint); }
.team-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35); transition: transform 1s var(--ease), filter .6s var(--ease); }
.team-card:hover .team-img img { transform: scale(1.05); filter: grayscale(0); }
.team-img > i { font-size: 3rem; color: var(--primary); opacity: .3; }
.team-social { display: flex; justify-content: center; gap: .45rem; margin-top: .8rem; }
.team-social a { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--muted); text-decoration: none; transition: all .3s var(--ease); }
.team-social a:hover { color: #fff; background: var(--primary); border-color: var(--primary); transform: translateY(-2px); }
.team-info { padding: 1.1rem .8rem .9rem; }
.team-info h3 { font-size: 1.1rem; margin-bottom: .15rem; }
.team-info .role { font-size: .85rem; color: var(--primary); font-weight: 500; }
.team-info .bio { font-size: .85rem; color: var(--muted); margin-top: .5rem; }

/* Blog cards */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }
.blog-card { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit; }
.blog-card > .blog-card-img { width: calc(100% - 1.2rem); margin: .6rem .6rem 0; border-radius: calc(var(--radius-lg) - 6px); aspect-ratio: 16 / 9; object-fit: cover; display: grid; place-items: center; background: var(--tint); transition: transform 1s var(--ease); }
.blog-card:hover > img.blog-card-img { transform: scale(1.02); }
.blog-card-img i { font-size: 2rem; color: var(--primary); opacity: .3; }
.blog-card-body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.blog-card-cat { font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--primary); margin-bottom: .5rem; }
.blog-card h2, .blog-card h3 { font-size: 1.2rem; line-height: 1.3; margin-bottom: .55rem; }
.blog-card p { font-size: .92rem; color: var(--muted); margin-bottom: 1.1rem; }
.blog-card-meta { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--soft); }
.blog-card-meta .read { color: var(--text); font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }
.blog-card-meta .read i { transition: transform .4s var(--ease); color: var(--primary); }
.blog-card:hover .blog-card-meta .read i { transform: translateX(4px); }
.cat-chips { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2.5rem; }
.cat-chip { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; padding: .4rem 1.05rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); font-size: .88rem; font-weight: 500; transition: all .3s var(--ease); }
.cat-chip:hover { border-color: var(--text); color: var(--text); }
.cat-chip.active { background: var(--text); border-color: var(--text); color: #fff; }
.cat-chip small { opacity: .6; margin-left: 4px; }
.no-posts { text-align: center; padding: 3rem 1.5rem; }
.no-posts > i { font-size: 2.4rem; color: var(--primary); opacity: .4; margin-bottom: 1rem; display: block; }
.no-posts h2 { font-size: 1.4rem; margin-bottom: .5rem; }
.no-posts p { color: var(--muted); }
.navigation.pagination { margin-top: 3rem; }
.navigation.pagination .nav-links { display: flex; justify-content: center; gap: .4rem; flex-wrap: wrap; }
.navigation.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 .8rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); text-decoration: none; color: var(--text); font-weight: 500; transition: all .3s var(--ease); }
.navigation.pagination a.page-numbers:hover { border-color: var(--text); }
.navigation.pagination .page-numbers.current { background: var(--text); border-color: var(--text); color: #fff; }

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { margin-bottom: .75rem; overflow: hidden; background: transparent; transition: background .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease); }
.faq-item:has(.faq-q[aria-expanded="true"]) { background: var(--surface); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq-q { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; cursor: pointer; font: 600 1.05rem/1.45 var(--font-head); letter-spacing: -.01em; color: var(--text); text-align: left; background: none; border: 0; }
.faq-q i { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; background: var(--primary-soft); color: var(--primary); transition: transform .5s var(--spring), background .3s, color .3s; }
.faq-q[aria-expanded="true"] i { transform: rotate(135deg); background: var(--primary); color: #fff; }
.faq-a { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .5s var(--ease), opacity .4s var(--ease), padding .5s var(--ease); color: var(--muted); font-size: .97rem; line-height: 1.75; padding: 0 1.5rem; }
.faq-a > * { min-height: 0; overflow: hidden; }
.faq-a.open { grid-template-rows: 1fr; opacity: 1; padding: 0 1.5rem 1.35rem; }
.faq-a p + p { margin-top: .6rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-card h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.contact-card > p { color: var(--muted); margin-bottom: 1.5rem; }
.contact-detail { display: flex; gap: 1rem; align-items: center; padding: 1rem 0; border-top: 1px solid var(--line); transition: transform .5s var(--ease); }
.contact-detail:hover { transform: translateX(6px); }
.contact-detail small { display: block; font-size: .78rem; color: var(--soft); }
.contact-detail a, .contact-detail span { color: var(--text); text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.contact-detail a:hover { color: var(--primary); }
.contact-social { display: flex; gap: .5rem; margin-top: 1.5rem; }
.social-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; border: 1px solid var(--line-strong); color: var(--muted); transition: color .3s, border-color .3s, background .3s, transform .5s var(--spring); }
.social-btn:hover { color: #fff; background: var(--primary); border-color: var(--primary); transform: translateY(-3px); }
.contact-form, .apply-card { padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow); }
.contact-form h3 { font-size: 1.4rem; margin-bottom: 1.4rem; }
.form-row, .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.form-group { margin-bottom: 1.05rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: .45rem; color: var(--text); }
.form-group input, .form-group select, .form-group textarea { width: 100%; min-height: 50px; padding: .8rem 1rem; font: inherit; font-size: .95rem; color: var(--text); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 12px; outline: none; transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s; }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group input:hover, .form-group select:hover, .form-group textarea:hover { border-color: var(--soft); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 4px var(--primary-soft); }
.form-group :is(input, select, textarea):user-invalid { border-color: #DC2626; }
.form-group input::placeholder, .form-group textarea::placeholder { color: #A3A6AD; }
.form-hint { font-size: .8rem; color: var(--soft); }
.by-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; gap: .55rem; align-items: flex-start; padding: .95rem 1.15rem; border-radius: 12px; margin-bottom: 1.2rem; font-size: .92rem; font-weight: 500; border: 1px solid; background: var(--surface); animation: fadeUp .6s var(--ease) both; }
.alert-success { color: #047857; border-color: #A7F3D0; background: #F0FDF7; }
.alert-error { color: #B91C1C; border-color: #FECACA; background: #FEF5F5; }
button:disabled { opacity: .6; cursor: not-allowed; }

/* Call to action (inner pages) */
.cta-band { padding: 0 0 clamp(3rem, 5.5vw, 4.5rem); }
.cta-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.25rem); display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; align-items: center; }
.cta-box h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: .5rem; }
.cta-box p { color: var(--muted); max-width: 52ch; }

/* ═══ INNER PAGE BANNER ═══ */
.page-banner { position: relative; overflow: hidden; text-align: center; padding: calc(var(--nav-h) + clamp(3.5rem, 8vw, 5.5rem)) 1.5rem clamp(3rem, 6vw, 4.5rem); border-bottom: 1px solid var(--line); }
.page-banner > * { position: relative; animation: fadeUp .9s var(--ease) both; }
.page-banner > :nth-child(2) { animation-delay: .1s; }
.page-banner > :nth-child(3) { animation-delay: .2s; }
.page-banner > :nth-child(4) { animation-delay: .3s; }
.page-banner .eyebrow { justify-content: center; }
.page-banner h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); letter-spacing: -.04em; margin-bottom: 1rem; }
.page-banner h1 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--primary); }
.page-banner p { color: var(--muted); max-width: 60ch; margin: 0 auto; font-size: 1.08rem; }
.crumbs { display: flex; justify-content: center; gap: .45rem; font-family: var(--font-mono); font-size: .78rem; color: var(--soft); margin-top: 1.4rem; }
.crumbs a { color: var(--soft); text-decoration: none; }
.crumbs a:hover { color: var(--primary); }
.blog-search { display: flex; max-width: 540px; margin: 2rem auto 0; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; padding: .35rem; box-shadow: var(--shadow-sm); transition: border-color .3s, box-shadow .3s; }
.blog-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.blog-search input { flex: 1; min-width: 0; border: 0; outline: none; padding: .55rem 1.1rem; font: inherit; background: transparent; }
.blog-search button { background: var(--text); color: #fff; border: 0; border-radius: 999px; padding: .6rem 1.2rem; font: 600 .9rem var(--font-body); cursor: pointer; transition: background .3s; }
.blog-search button:hover { background: var(--primary); }

/* About page */
.story-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.story-visual { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2.75rem 2rem; text-align: center; box-shadow: var(--shadow); transform: rotate(-1.5deg); transition: transform .8s var(--ease); }
.story-visual:hover { transform: rotate(0); }
.story-visual img { width: 120px; height: 120px; object-fit: contain; margin: 0 auto 1rem; }
.story-visual .name { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; }
.story-visual .est { font-family: var(--font-mono); font-size: .8rem; color: var(--soft); margin-top: .3rem; }
.story-badges { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1.75rem; }
.story-badges div { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.story-badges strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.4rem; }
.story-badges span { font-size: .8rem; color: var(--soft); }
.story-text > p, .story-text .entry-content p { color: var(--muted); font-size: 1.04rem; line-height: 1.8; margin-bottom: 1rem; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.mv-card { padding: 2.25rem; overflow: hidden; }
.mv-icon { margin-bottom: 1.2rem; }
.mv-card h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.mv-card p { color: var(--muted); line-height: 1.8; }
.values-grid, .culture-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.25rem; }
.value-card, .culture-card { padding: 1.8rem; overflow: hidden; }
.value-icon, .culture-card > i { margin-bottom: 1.1rem; }
.value-card h3, .culture-card h3 { font-size: 1.15rem; margin-bottom: .45rem; }
.value-card p, .culture-card p { color: var(--muted); font-size: .93rem; }

/* Careers page */
.job-list { display: grid; gap: 1rem; }
.job-card { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.6rem 1.8rem; transition: border-color .4s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease); }
.job-card:hover { transform: translateX(4px); }
.job-info h3 { font-size: 1.2rem; }
.job-desc { font-size: .92rem; color: var(--muted); margin-top: .3rem; }
.job-meta { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .8rem; }
.job-badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; padding: .3rem .75rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.job-badge i { color: var(--primary); }
.no-jobs { text-align: center; padding: 3rem 1.5rem; border-style: dashed; background: transparent; }
.no-jobs > i { font-size: 2.2rem; color: var(--primary); opacity: .5; margin-bottom: 1rem; display: block; }
.no-jobs h3 { margin-bottom: .4rem; }
.no-jobs p { color: var(--muted); max-width: 52ch; margin: 0 auto 1.25rem; }
.apply-card { max-width: 760px; margin: 0 auto; }
.drop-zone { border: 1.5px dashed var(--line-strong); border-radius: 16px; padding: 2rem 1.25rem; text-align: center; cursor: pointer; background: var(--bg); transition: border-color .3s, background .3s, transform .4s var(--ease); }
.drop-zone:hover, .drop-zone.drag { border-color: var(--primary); background: var(--primary-soft); }
.drop-zone.drag { transform: scale(1.01); }
.drop-zone > i { font-size: 1.8rem; color: var(--primary); display: block; margin-bottom: .6rem; transition: transform .5s var(--spring); }
.drop-zone:hover > i { transform: translateY(-4px); }
.drop-zone strong { display: block; margin-bottom: .25rem; }
.file-list { margin-top: .75rem; display: grid; gap: .4rem; }
.file-list > div { display: flex; align-items: center; gap: .6rem; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: .55rem .8rem; font-size: .85rem; animation: fadeUp .4s var(--ease) both; }
.file-list > div > i { color: var(--primary); }
.file-list > div span:first-of-type { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.file-list button { background: none; border: 0; color: var(--soft); cursor: pointer; padding: .25rem; }
.privacy-note { text-align: center; font-size: .82rem; color: var(--soft); margin-top: 1rem; }
.privacy-note i { color: var(--primary); }

/* ═══ POSTS & PAGES ═══ */
.post-head { padding: calc(var(--nav-h) + clamp(3rem, 7vw, 4.5rem)) 1.5rem clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.post-head-inner { max-width: 780px; margin: 0 auto; animation: fadeUp .9s var(--ease) both; }
.post-cat { display: inline-block; font-family: var(--font-mono); font-size: .76rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--primary); text-decoration: none; margin-bottom: .9rem; }
.post-title { font-size: clamp(2.1rem, 4.8vw, 3.3rem); letter-spacing: -.035em; margin-bottom: 1.1rem; }
.post-meta { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: .87rem; color: var(--soft); }
.post-meta i { color: var(--primary); margin-right: .35rem; }
.post-wrap { max-width: 780px; margin: 0 auto; padding: clamp(2rem, 5vw, 3rem) 1.5rem clamp(3rem, 6vw, 4rem); }
.post-hero-img { width: 100%; border-radius: var(--radius-lg); margin-bottom: 2.5rem; max-height: 480px; object-fit: cover; box-shadow: var(--shadow); }
.entry-content { font-size: 1.06rem; line-height: 1.85; color: #3a3f4a; }
.entry-content > * + * { margin-top: 1.15rem; }
.entry-content h2 { font-size: 1.75rem; margin-top: 2.4rem; color: var(--text); }
.entry-content h3 { font-size: 1.3rem; margin-top: 1.9rem; color: var(--text); }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }
.entry-content li + li { margin-top: .35rem; }
.entry-content li::marker { color: var(--primary); }
.entry-content strong { color: var(--text); }
.entry-content a { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--primary) 40%, transparent); transition: text-decoration-color .3s; }
.entry-content a:hover { text-decoration-color: var(--primary); }
.entry-content blockquote { border-left: 3px solid var(--primary); padding: .4rem 0 .4rem 1.4rem; font-family: var(--font-serif); font-size: 1.35rem; line-height: 1.5; color: var(--text); }
.entry-content img { border-radius: 14px; }
.entry-content pre { background: #fff; border: 1px solid var(--line); color: var(--text); padding: 1.1rem 1.35rem; border-radius: 14px; overflow-x: auto; font-family: var(--font-mono); font-size: .88rem; }
.entry-content :not(pre) > code { font-family: var(--font-mono); font-size: .88em; border: 1px solid var(--line); padding: .1rem .4rem; border-radius: 6px; }
.share-box { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.share-box > span { font-weight: 600; font-size: .9rem; margin-right: .4rem; }
.share-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; border: 1px solid var(--line-strong); color: var(--muted); transition: color .3s, border-color .3s, background .3s, transform .5s var(--spring); }
.share-btn:hover { color: #fff; background: var(--primary); border-color: var(--primary); transform: translateY(-3px); }
.post-tags { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.post-tags a { font-size: .8rem; padding: .3rem .75rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; transition: all .3s; }
.post-tags a:hover { background: var(--text); color: #fff; }
.page-wrap { max-width: 820px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 3.5rem) 1.5rem clamp(3.5rem, 7vw, 5rem); }
.comments-area { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.comments-area h2 { font-size: 1.35rem; margin-bottom: 1rem; }
.comment-list { list-style: none; }
.comment-list .comment { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.comment-list .children { list-style: none; margin-left: 1.5rem; }
.comment-form input:not([type=submit]):not([type=checkbox]), .comment-form textarea { width: 100%; padding: .8rem 1rem; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 12px; font: inherit; margin-bottom: .75rem; }
.comment-form .submit { background: var(--primary); color: #fff; border: 0; padding: .8rem 1.6rem; border-radius: 999px; font-weight: 600; cursor: pointer; }

/* ═══ FOOTER ═══ */
.site-footer { background: #fff; color: var(--muted); padding-top: clamp(3rem, 6vw, 4rem); border-top: 1px solid var(--line); }
.footer-news { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.25rem 3rem; align-items: center; padding-bottom: clamp(2.25rem, 5vw, 3rem); border-bottom: 1px solid var(--line); }
.footer-news h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin-bottom: .4rem; }
.footer-news p { font-size: .95rem; }
.newsletter-form { display: flex; gap: .5rem; background: #fff; border: 1px solid var(--line-strong); border-radius: 999px; padding: .35rem; transition: border-color .3s, box-shadow .3s; }
.newsletter-form:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.newsletter-form input[type=email] { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--text); padding: .65rem 1.1rem; font: inherit; }
.newsletter-form input[type=email]::placeholder { color: #A3A6AD; }
.newsletter-form button { background: var(--primary); color: #fff; border: 0; border-radius: 999px; padding: .7rem 1.3rem; font: 600 .92rem var(--font-body); cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: .5rem; transition: background .3s, transform .4s var(--spring); }
.newsletter-form button:hover { background: var(--primary-hover); }
.newsletter-form button:hover i { animation: fly .6s var(--ease); }
@keyframes fly { 50% { transform: translate(6px, -6px); opacity: 0; } 51% { transform: translate(-6px, 6px); } }
.footer-news .alert { grid-column: 1 / -1; margin: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.25rem; padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.footer-brand .nav-brand { margin-bottom: 1rem; }
.footer-brand p { font-size: .92rem; line-height: 1.75; max-width: 38ch; }
.footer-brand .contact-social { margin-top: 1.25rem; }
.footer-col h4 { font-family: var(--font-mono); font-weight: 500; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; display: grid; gap: .6rem; }
.footer-col a, .footer-col li span { color: var(--muted); text-decoration: none; font-size: .93rem; transition: color .25s; }
.footer-col ul:not(.fc-contact) a { display: inline-block; transition: color .25s, transform .4s var(--ease); }
.footer-col ul:not(.fc-contact) a:hover { transform: translateX(4px); }
.footer-col a:hover { color: var(--primary); }
.footer-col .fc-contact li { display: flex; gap: .65rem; align-items: flex-start; }
.footer-col .fc-contact i { color: var(--primary); margin-top: .3rem; width: 16px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 1.4rem 0; text-align: center; font-size: .85rem; color: var(--soft); }
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--primary); }

/* Back to top */
#back-top { position: fixed; bottom: 1.5rem; right: 1.5rem; width: 54px; height: 54px; background: var(--surface); border: 1px solid var(--line); color: var(--text); border-radius: 50%; display: grid; place-items: center; text-decoration: none; box-shadow: var(--shadow); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .4s var(--ease), transform .5s var(--ease), background .3s, color .3s; z-index: 999; }
#back-top.show { opacity: 1; transform: none; pointer-events: auto; }
#back-top:hover { background: var(--text); color: #fff; }

/* 404 */
.error-404 { text-align: center; padding: calc(var(--nav-h) + 5rem) 1.5rem 6rem; min-height: 75vh; }
.error-404 .big { font-family: var(--font-serif); font-style: italic; font-size: clamp(6rem, 20vw, 11rem); line-height: 1; color: var(--primary); animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px) rotate(-2deg); } }
.error-404 h1 { font-size: 2rem; margin: 1rem 0 .5rem; }
.error-404 p { color: var(--muted); margin-bottom: 2rem; }
.error-404 .btn-row { justify-content: center; }

/* ═══ SCROLL REVEAL ═══ */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.reveal.visible { opacity: 1; transform: none; filter: none; }
.reveal.visible:is(.service-card, .process-step, .portfolio-card, .testi-card, .team-card, .blog-card, .value-card, .culture-card, .mv-card, .job-card) { transition: opacity .9s var(--ease), filter .9s var(--ease), transform .5s var(--ease), border-color .4s var(--ease), box-shadow .5s var(--ease); }
.no-js .reveal { opacity: 1; transform: none; filter: none; }
.reveal-delay-1 { transition-delay: .06s; } .reveal-delay-2 { transition-delay: .14s; } .reveal-delay-3 { transition-delay: .22s; }
.reveal-delay-4 { transition-delay: .3s; } .reveal-delay-5 { transition-delay: .38s; } .reveal-delay-6 { transition-delay: .46s; }
.reveal.visible:hover { transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .reveal, .hero h1 .w { opacity: 1; transform: none; filter: none; }
    .scribble path { stroke-dashoffset: 0; }
    .marquee-track { animation: none; }
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid:not(.two)::before { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
    .nav-links { position: absolute; top: var(--nav-h); left: .75rem; right: .75rem; display: flex; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: .5rem 1.1rem 1.1rem; max-height: calc(100vh - var(--nav-h) - 1rem); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.98); transform-origin: top center; transition: opacity .35s var(--ease), transform .45s var(--ease), visibility .35s; }
    .nav-links.open { opacity: 1; visibility: visible; transform: none; }
    .nav-links li { opacity: 0; transform: translateY(-6px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
    .nav-links.open li { opacity: 1; transform: none; }
    .nav-links.open li:nth-child(2) { transition-delay: .03s; } .nav-links.open li:nth-child(3) { transition-delay: .06s; }
    .nav-links.open li:nth-child(4) { transition-delay: .09s; } .nav-links.open li:nth-child(5) { transition-delay: .12s; }
    .nav-links.open li:nth-child(6) { transition-delay: .15s; } .nav-links.open li:nth-child(7) { transition-delay: .18s; }
    .nav-links a { padding: .9rem .4rem; border-bottom: 1px solid var(--line); font-size: 1rem; }
    .nav-links li:last-child a { border-bottom: 0; }
    .nav-links a::after { display: none; }
    .hamburger { display: inline-flex; }
    .why-split, .story-grid, .contact-grid, .section-head.split, .footer-news, .cta-box { grid-template-columns: 1fr; }
    .story-visual { transform: none; }
}
@media (max-width: 640px) {
    :root { --nav-h: 58px; }
    .wrap { padding: 0 1.15rem; }
    .nav-brand span small { display: none; }
    .hero .btn-row .btn { flex: 1 1 100%; }
    .hero-pill { font-size: .74rem; padding: .4rem .85rem .4rem .7rem; text-align: left; }
    .hero-stats { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
    .hero-stats > div + div { border-left: 0; }
    .hero-stats > div:nth-child(even) { border-left: 1px solid var(--line); }
    .hero-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
    .services-grid, .portfolio-grid, .testimonials-grid, .blog-grid, .values-grid, .culture-grid,
    .process-grid, .process-grid.two, .mv-grid, .form-row, .form-grid, .footer-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .form-group input, .form-group select, .form-group textarea, .blog-search input, .newsletter-form input { font-size: 16px; }
    .job-card { flex-direction: column; align-items: stretch; }
    .newsletter-form { flex-direction: column; border-radius: 20px; }
    .newsletter-form button { justify-content: center; }
    .story-grid > *, .why-split > *, .contact-grid > * { min-width: 0; }
    .story-visual { padding: 2rem 1.1rem; }
    .story-badges { gap: .5rem; }
    .story-badges div { padding: .8rem .5rem; }
    .story-badges strong { font-size: 1.1rem; }

    #back-top { right: .9rem; bottom: .9rem; width: 48px; height: 48px; }
}
@media (max-width: 380px) {
    .team-grid { grid-template-columns: 1fr; }
}
