/*
Theme Name: Boozaglo
Theme URI: https://boozagloweb.com
Author: Nissim Boozaglo
Author URI: https://boozagloweb.com
Description: Custom one-page portfolio theme for Boozaglo Web Development — WordPress builds, maintenance and AI automation. Projects, reviews and contact details are editable in the admin.
Version: 1.0.12
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: boozaglo
*/

/* ---------- Tokens ---------- */
:root {
	--ground: #F6F4EF;
	--surface: #FFFFFF;
	--sand: #F2EFE8;
	--line: #E4DFD4;
	--ink: #0E1E34;
	--ink-2: #3F4A5B;
	--muted: #5A6474;
	--navy-line: #2B4263;
	--on-dark: #C9D2DF;
	--mint: #5FD0A6;
	--accent: #0B7A5C;
	--accent-dark: #08553F;
	--accent-soft: #E3F1EB;
	--display: 'Bricolage Grotesque', 'Hanken Grotesk', system-ui, sans-serif;
	--body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
	--radius: 22px;
	--gutter: clamp(20px, 5vw, 120px);
	--shadow: 0 40px 80px -40px rgba(14, 30, 52, .35);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.icon { flex-shrink: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 16px; color: #fff; }
.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-top: clamp(80px, 9vw, 120px); }

/* ---------- Type ---------- */
.display { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 6vw, 76px); line-height: .98; letter-spacing: -.035em; }
.display-md { font-size: clamp(40px, 5vw, 68px); }
.h2 { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 4.2vw, 56px); line-height: 1.03; letter-spacing: -.03em; }
.lede { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 540px; }
.kicker { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.kicker-light { color: var(--mint); }
.accent-text { color: var(--accent); }
.mono-label { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.eyebrow { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 15px 28px; border-radius: 999px; font-weight: 600; font-size: 17px; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sm { min-height: 44px; padding: 10px 22px; font-size: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 244, 239, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
.header-inner { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 40px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -.01em; }
.brand-sub { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 36px; }
.nav-list { list-style: none; display: flex; gap: 36px; }
.nav-list a { color: var(--ink); text-decoration: none; font-weight: 500; position: relative; padding: 6px 0; }
.nav-list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav-list a:hover::after, .nav-list .current-menu-item a::after { transform: scaleX(1); }
.nav-toggle { display: none; width: 48px; height: 48px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline-flex; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; padding-top: clamp(56px, 7vw, 96px); padding-bottom: 72px; align-items: start; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; padding-top: 12px; }
.hero-visual { position: relative; padding: 0 0 60px 20px; }
.console { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; min-height: 500px; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
.console-bar { height: 54px; flex-shrink: 0; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #ECE8DF; gap: 12px; }
.lights { display: flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); display: block; }
.lights-spacer { width: 47px; }
.seg { display: flex; gap: 4px; background: var(--sand); padding: 4px; border-radius: 999px; }
.seg button { border: 0; cursor: pointer; font-family: var(--mono); font-size: 12.5px; padding: 8px 14px; min-height: 32px; border-radius: 999px; background: transparent; color: var(--ink-2); transition: background .2s ease, color .2s ease; }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.seg-lg { background: var(--surface); border: 1px solid var(--line); padding: 6px; flex-wrap: wrap; }
.seg-lg button { font-family: var(--body); font-weight: 600; font-size: 15px; padding: 12px 20px; min-height: 44px; }
.panel { grid-row: 2; grid-column: 1; padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.panel[hidden] { display: none; }
/* With JS, every panel stays in the same grid cell so the card is always as tall as the tallest panel — switching tabs never changes the page height.
   Panels hand off one at a time (old fades out, then new fades in) so text never overlaps. */
.js .panel { will-change: opacity, transform; backface-visibility: hidden; }
.js .panel[hidden] { display: flex; opacity: 0; visibility: hidden; pointer-events: none; }
.js .panel.is-leaving { visibility: visible; animation: panelOut .18s ease-in both; }
.js .panel.is-entering { animation: panelIn .34s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes panelOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-6px); } }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* Sliding highlight behind the hero tabs */
.seg-hero { position: relative; isolation: isolate; }
.seg-hero .seg-pill { position: absolute; top: 4px; left: 0; height: calc(100% - 8px); border-radius: 999px; background: var(--ink); z-index: -1; transition: transform .38s cubic-bezier(.3, .8, .2, 1), width .38s cubic-bezier(.3, .8, .2, 1); will-change: transform, width; }
.seg-hero.has-pill button[aria-selected="true"] { background: transparent; }
.seg-hero button { transition: color .3s ease; }
.urlbar { display: flex; align-items: center; gap: 10px; background: var(--ground); border-radius: 10px; padding: 10px 14px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.urlbar .icon { width: 14px; height: 14px; }
.mock-hero { height: 150px; border-radius: 14px; background: var(--ink); padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.mock-hero i { display: block; border-radius: 4px; }
.mock-hero .l1 { width: 62%; height: 16px; background: #fff; }
.mock-hero .l2 { width: 44%; height: 10px; background: #5A6B84; }
.mock-hero .l3 { width: 110px; height: 30px; border-radius: 999px; background: var(--accent); margin-top: 6px; }
.mock-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mock-grid i { height: 84px; border-radius: 12px; background: var(--sand); display: block; }
.pills, .tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { font-family: var(--mono); font-size: 12px; padding: 6px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); }
.panel-flow { padding: 26px 30px; gap: 0; }
.panel-flow .mono-label { padding-bottom: 16px; }
.flow { list-style: none; }
.flow li { display: flex; gap: 16px; position: relative; padding-bottom: 22px; }
.flow li:not(:last-child)::before { content: ""; position: absolute; left: 16px; top: 38px; bottom: 4px; width: 2px; background: var(--line); }
.flow .step { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 12px; }
.flow div { display: flex; flex-direction: column; gap: 3px; }
.flow strong { font-weight: 600; font-size: 17px; }
.flow span:not(.step) { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.panel-agent { background: #FBFAF7; gap: 14px; }
.bubble { max-width: 78%; padding: 13px 16px; font-size: 15.5px; line-height: 1.45; }
.bubble.me { align-self: flex-end; max-width: 72%; background: var(--ink); color: #fff; border-radius: 16px 16px 4px 16px; }
.bubble.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; }
.status { align-self: flex-start; display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--accent-dark); background: var(--accent-soft); padding: 8px 12px; border-radius: 999px; }
.status .dot { width: 7px; height: 7px; }
.badge { position: absolute; left: -4px; bottom: 16px; background: var(--ink); color: #fff; border-radius: 16px; padding: 16px 20px; display: flex; align-items: center; gap: 14px; box-shadow: 0 24px 50px -24px rgba(14, 30, 52, .6); }
.badge strong { font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: -.02em; }
.badge span { font-size: 14px; line-height: 1.35; color: var(--on-dark); }

/* ---------- Stats ---------- */
.stats { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.stat { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 34px 32px 32px; min-height: 160px; transition: background .3s ease; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.stat:hover { background: #FBFAF7; }
.stat:hover::before, .stat.in::before { transform: scaleX(1); }
.js .stat.reveal.in::before { transition-delay: calc(var(--i) * 120ms + 200ms); }
.stat:not(:hover).in::before { transform: scaleX(.18); }
.stats dt { order: 2; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.stats dd { order: 1; margin: 0; font-family: var(--display); font-weight: 700; font-size: 48px; line-height: 1.05; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat-pop { display: inline-block; }
.js .stat.in .stat-pop { animation: pop .7s cubic-bezier(.2, .9, .3, 1.4) both; animation-delay: calc(var(--i) * 120ms + 150ms); }
@keyframes pop { from { opacity: 0; transform: scale(.6) translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Section head ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 48px; flex-wrap: wrap; margin-bottom: 56px; }
.section-head > div:first-child { display: flex; flex-direction: column; gap: 16px; max-width: 660px; }
.section-intro { max-width: 420px; font-size: 18px; line-height: 1.55; color: var(--ink-2); }

/* ---------- Cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.lift { transition: transform .25s ease, box-shadow .25s ease; }
.lift:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -20px rgba(14, 30, 52, .28); }
.service { padding: 36px; display: flex; flex-direction: column; gap: 18px; min-height: 440px; }
.service h3 { font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: -.02em; line-height: 1.15; }
.service p { font-size: 16.5px; color: var(--ink-2); }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.icon-tile { width: 52px; height: 52px; border-radius: 14px; background: var(--sand); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.icon-tile .icon { width: 26px; height: 26px; }
.num { font-family: var(--mono); font-size: 13px; color: #8A8F98; }
.ticks { list-style: none; margin-top: auto; display: flex; flex-direction: column; gap: 10px; font-size: 15.5px; }
.ticks li { display: flex; gap: 10px; align-items: baseline; }
.ticks li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; transform: translateY(-2px); }
.service-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.service-dark p { color: var(--on-dark); }
.service-dark .ticks { color: #E6EBF2; }
.service-dark .ticks li::before { background: var(--mint); }
.service-dark .icon-tile { background: var(--accent); color: #fff; }
.tag-new { font-family: var(--mono); font-size: 12px; padding: 6px 11px; border-radius: 999px; background: #1E3350; color: #CFE8DD; }

/* ---------- Ticker ---------- */
.ticker { margin-top: clamp(80px, 9vw, 120px); height: 110px; display: flex; align-items: center; overflow: hidden; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ticker-track { display: flex; gap: 56px; white-space: nowrap; padding-left: 56px; font-family: var(--display); font-weight: 600; font-size: 26px; animation: marquee 44s linear infinite; }
.ticker-track span { display: flex; align-items: center; gap: 56px; }
.ticker-track i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: block; }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* ---------- Work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.work-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.work-card[hidden] { display: none; }
.work-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.work-link:hover { color: inherit; }
.work-img { aspect-ratio: 16 / 9; overflow: hidden; background: #ECE8DF; border-bottom: 1px solid var(--line); }
.work-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s ease; }
.work-card:hover .work-img img { transform: scale(1.04); }
.work-body { padding: 28px 32px 32px; display: flex; flex-direction: column; gap: 12px; }
.work-meta { display: flex; justify-content: space-between; align-items: center; }
.work-meta .kicker { font-size: 12.5px; letter-spacing: .06em; }
.work-body h3 { font-family: var(--display); font-weight: 700; font-size: 27px; letter-spacing: -.02em; line-height: 1.15; }
.work-body p { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.tags { padding-top: 6px; }
.tags li { font-family: var(--mono); font-size: 12px; padding: 6px 11px; border-radius: 999px; background: var(--sand); color: var(--ink-2); }
.empty { padding: 40px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* ---------- Process ---------- */
.process { margin-top: clamp(80px, 9vw, 120px); background: var(--ink); color: #fff; border-radius: 28px; padding: clamp(36px, 5vw, 72px); display: flex; flex-direction: column; gap: 48px; }
.process-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.process-head .h2 { font-size: clamp(34px, 3.8vw, 50px); max-width: 640px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.steps li { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--navy-line); padding-top: 24px; }
.step-num { font-family: var(--mono); font-size: 14px; color: var(--mint); }
.steps h3 { font-family: var(--display); font-weight: 700; font-size: 26px; }
.steps p { font-size: 16.5px; color: var(--on-dark); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 5fr 1fr 6fr; align-items: center; }
.about-photo { position: relative; padding: 0 28px 28px 0; }
.about-photo::before { content: ""; position: absolute; inset: 28px 0 0 28px; border-radius: 26px; background: var(--accent); }
.about-photo img { position: relative; width: 100%; aspect-ratio: 5 / 6; object-fit: cover; object-position: center 30%; border-radius: 26px; }
.about-copy { grid-column: 3; display: flex; flex-direction: column; gap: 24px; }
.about-copy > p:not(.kicker) { font-size: 19px; color: var(--ink-2); }
.facts { margin: 0; display: flex; flex-wrap: wrap; gap: 20px 32px; padding-top: 8px; }
.facts div { display: flex; flex-direction: column; gap: 4px; }
.facts dt { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; font-size: 15.5px; }

/* ---------- Reviews ---------- */
.reviews { padding-top: clamp(80px, 9vw, 120px); padding-bottom: clamp(80px, 9vw, 120px); display: flex; flex-direction: column; align-items: center; gap: 36px; text-align: center; }
.stars { display: flex; gap: 4px; color: var(--accent); }
.review-stage { max-width: 940px; width: 100%; display: grid; align-items: center; justify-items: center; touch-action: pan-y; }
.review { grid-area: 1 / 1; margin: 0; display: flex; flex-direction: column; gap: 28px; will-change: opacity, transform; }
.review[hidden] { display: none; }
.js .review[hidden] { display: flex; }
.js .review:not(.is-active) { opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .22s ease-in, transform .22s ease-in; }
.js .review.is-active { opacity: 1; transform: none; transition: opacity .4s ease .22s, transform .4s cubic-bezier(.2, .7, .2, 1) .22s; }
.review figure { margin: 0; display: flex; flex-direction: column; gap: 28px; }
.review blockquote { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3vw, 40px); line-height: 1.22; letter-spacing: -.02em; }
.review figcaption { display: flex; flex-direction: column; gap: 4px; }
.review figcaption strong { font-size: 18px; }
.review figcaption span { font-size: 15px; color: var(--muted); }
.review-nav { display: flex; align-items: center; gap: 18px; }
.circle { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform .2s ease, background .2s ease; }
.circle:hover { transform: translateY(-2px); }
.circle-dark { background: var(--ink); color: #fff; }
.dots { display: flex; gap: 8px; }
.dots span { width: 8px; height: 8px; border-radius: 999px; background: #CFC9BC; transition: width .3s ease, background .3s ease; }
.dots span.on { width: 28px; background: var(--ink); }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: #fff; padding: clamp(80px, 9vw, 110px) 0 clamp(56px, 6vw, 80px); }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact-copy { display: flex; flex-direction: column; gap: 28px; }
.contact .lede { color: var(--on-dark); max-width: 480px; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 14px; padding-top: 12px; font-size: 18px; }
.contact-list a, .contact-list span { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.contact-list span { color: var(--on-dark); }
.contact-list a:hover { color: var(--mint); }
.contact-list .icon { color: var(--mint); }
.contact-form { background: var(--surface); color: var(--ink); border-radius: 24px; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 20px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; font-weight: 600; border: 0; margin: 0; padding: 0; min-width: 0; }
.field legend { padding: 0 0 10px; }
.field input, .field textarea { font: inherit; font-weight: 400; font-size: 16px; padding: 14px 16px; border: 1.5px solid #DCD6CA; border-radius: 12px; background: #FBFAF7; color: var(--ink); width: 100%; transition: border-color .2s ease, background .2s ease; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { resize: vertical; min-height: 120px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid #DCD6CA; background: #fff; color: var(--ink); font-weight: 500; font-size: 15px; transition: all .2s ease; }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.contact-form .btn { align-self: flex-start; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 16px; border-radius: 12px; font-size: 15.5px; font-weight: 500; }
.notice-ok { background: var(--accent-soft); color: var(--accent-dark); }
.notice-err { background: #FBE9E4; color: #8A2A12; }

/* ---------- Cookie notice ---------- */
.cookie-bar { position: fixed; left: 24px; bottom: 24px; z-index: 60; max-width: 520px; display: flex; align-items: center; gap: 18px; background: var(--ink); color: #E6EBF2; padding: 16px 16px 16px 22px; border-radius: 18px; box-shadow: 0 24px 60px -20px rgba(14, 30, 52, .55); font-size: 15px; line-height: 1.5; animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; }
.cookie-bar[hidden] { display: none; }
.cookie-bar p { flex: 1; }
.cookie-bar a { color: var(--mint); white-space: nowrap; }
.cookie-bar a:hover { color: #fff; }
.cookie-bar .btn { flex-shrink: 0; }
.cookie-bar.leaving { opacity: 0; transform: translateY(12px); transition: opacity .3s ease, transform .3s ease; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #9FAABB; font-size: 15px; padding-bottom: var(--cookie-h, 0px); }
.to-top { position: fixed; right: 20px; bottom: calc(20px + var(--cookie-h, 0px)); z-index: 55; width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .9); background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 16px 36px -14px rgba(14, 30, 52, .6); opacity: 0; transform: translateY(12px); transition: opacity .25s ease, transform .25s ease, bottom .25s ease, background .2s ease; }
.to-top[hidden] { display: none; }
.to-top.show { opacity: 1; transform: none; }
.to-top:hover { background: var(--accent-dark); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px 28px; flex-wrap: wrap; border-top: 1px solid var(--navy-line); padding-top: 28px; padding-bottom: 40px; }
.footer-list { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer-list a { color: var(--on-dark); text-decoration: none; }
.footer-list a:hover { color: #fff; }
.footer-legal a { color: var(--on-dark); margin-left: 14px; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover { color: #fff; }
body:not(.home) .site-footer { margin-top: 96px; }
body:not(.home) .footer-inner { border-top: 0; padding-top: 40px; }

/* ---------- Generic pages ---------- */
.page-wrap { max-width: 860px; padding-top: 72px; }
.page-head { margin-bottom: 40px; }
.entry { margin-bottom: 56px; }
.entry-title { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px; }
.entry-summary .entry-title { font-size: 30px; }
.entry-title a { color: var(--ink); text-decoration: none; }
.entry-date { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.entry-thumb { margin-bottom: 32px; border-radius: var(--radius); overflow: hidden; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2, .entry-content h3 { font-family: var(--display); letter-spacing: -.02em; margin-top: 1.6em; }
.entry-content img { border-radius: 14px; }
.entry-content h2 { font-size: 26px; }
.entry-content ul { padding-left: 1.3em; }
.entry-content li + li { margin-top: .4em; }
.entry-content a { text-underline-offset: 3px; }
.page .entry-title { font-size: clamp(36px, 4.2vw, 52px); margin-bottom: 24px; }
.page-404 { display: flex; flex-direction: column; gap: 24px; padding-top: 120px; }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes float-alt { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.rise { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
/* Hero copy starts partly visible so it paints immediately (faster Largest Contentful Paint) while still gliding up. */
@keyframes rise-hero { from { opacity: .35; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-copy .rise { animation-name: rise-hero; animation-duration: .7s; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .18s; } .d3 { animation-delay: .3s; }
.float { animation: float 6s ease-in-out infinite; will-change: transform; }
.hero-visual .badge { animation: float-alt 6s ease-in-out infinite; animation-delay: -1.5s; }
.pulse { animation: pulse 1.8s ease-in-out infinite; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.in.lift:hover { transform: translateY(-6px); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.hero { grid-template-columns: 1fr; gap: 48px; }
	.hero-visual { max-width: 640px; }
	.cards-3 { grid-template-columns: 1fr 1fr; }
	.service-dark { grid-column: 1 / -1; min-height: 0; }
	.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.stat:nth-child(3) { border-left: 0; }
	.stat:nth-child(n+3) { border-top: 1px solid var(--line); }
	.about { grid-template-columns: 1fr 1fr; gap: 48px; }
	.about-copy { grid-column: auto; }
}

@media (max-width: 860px) {
	.admin-bar .site-header { top: 46px; }
	.header-inner { height: 72px; }
	.nav-toggle { display: inline-flex; }
	.site-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 8px; padding: 16px var(--gutter) 24px; background: var(--ground); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(14, 30, 52, .25); display: none; }
	.site-nav.open { display: flex; }
	.nav-list { flex-direction: column; gap: 0; }
	.nav-list a { display: block; padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
	.nav-list a::after { display: none; }
	.site-nav .btn { margin-top: 12px; }
	.cards-3, .work-grid, .steps, .contact-grid, .about { grid-template-columns: 1fr; }
	.service { min-height: 0; }
	.about-photo { max-width: 420px; }
	.process { border-radius: 22px; }
	.steps { gap: 28px; }
	.ticker { height: 84px; }
	.ticker-track { font-size: 20px; gap: 40px; }
	.ticker-track span { gap: 40px; }
}

@media (max-width: 560px) {
	body { font-size: 16px; }
	.hero { padding-bottom: 48px; }
	.hero-visual { padding-left: 0; padding-bottom: 72px; }
	.console { min-height: 460px; }
	.console-bar { padding: 0 12px; }
	.lights, .lights-spacer { display: none; }
	.console-bar { justify-content: center; }
	.panel { padding: 20px; }
	.badge { left: 12px; bottom: 12px; }
	.btn-row .btn { flex: 1 1 100%; }
	.stats { grid-template-columns: 1fr 1fr; }
	.stat { padding: 24px 18px; min-height: 130px; }
	.stats dd { font-size: 36px; }
	.stats dt { font-size: 14px; }
	.field-row { grid-template-columns: 1fr; }
	.review blockquote { font-size: 23px; line-height: 1.3; }
	.reviews { gap: 28px; }
	.work-body { padding: 22px 22px 26px; }
	.contact-form .btn { align-self: stretch; }
	.cookie-bar { left: 12px; right: 12px; bottom: 12px; flex-direction: column; align-items: stretch; gap: 12px; padding: 18px; }
	.footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
	.footer-list { gap: 4px 24px; }
	.footer-list a { display: inline-flex; align-items: center; min-height: 44px; }
	.footer-legal a { display: inline-flex; align-items: center; min-height: 44px; margin-left: 0; }
	.to-top { right: 14px; bottom: calc(14px + var(--cookie-h, 0px)); }
	.section-head { margin-bottom: 36px; }
	.seg-lg { width: 100%; }
	.seg-lg button { flex: 1 1 auto; padding: 10px 14px; }
}
