/* ==========================================================================
   Marketian — portfolio styles
   ========================================================================== */

:root {
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;

  --brand: #6d5efc;
  --brand-2: #22d3ee;
  --brand-3: #f472b6;
  --gradient: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 100%);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

:root[data-theme="dark"] {
  --bg: #0b0d17;
  --bg-alt: #10131f;
  --surface: #151927;
  --surface-2: #1c2133;
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .16);
  --text: #eef0f7;
  --text-muted: #9aa3b8;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
  --glow-opacity: .55;
  --accent-text: #22d3ee;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f7f8fc;
  --bg-alt: #eef0f8;
  --surface: #ffffff;
  --surface-2: #f2f3fa;
  --border: rgba(15, 20, 45, .08);
  --border-strong: rgba(15, 20, 45, .16);
  --text: #12152a;
  --text-muted: #5a6280;
  --shadow: 0 20px 50px -24px rgba(30, 35, 90, .25);
  --glow-opacity: .28;
  --accent-text: #0e7490;
  color-scheme: light;
}

/* ---- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  transition: background-color .3s, color .3s;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.muted { color: var(--text-muted); }
.small { font-size: .875rem; }
.mt-lg { margin-top: 48px; }
.pt-0 { padding-top: 0 !important; }
.icon { flex-shrink: 0; vertical-align: middle; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

.bg-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: var(--glow-opacity);
  background:
    radial-gradient(600px 400px at 85% -5%, rgba(109, 94, 252, .45), transparent 70%),
    radial-gradient(500px 380px at -5% 20%, rgba(34, 211, 238, .25), transparent 70%);
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-text); margin-bottom: .8em;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-muted); max-width: 640px; }
/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: .88rem; }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 10px 30px -10px rgba(109, 94, 252, .7); }
.btn-primary:hover { box-shadow: 0 16px 36px -10px rgba(109, 94, 252, .85); }
.btn-outline { border-color: var(--border-strong); color: var(--text); background: var(--surface); }
.btn-outline:hover { border-color: var(--brand); }
.btn-light { background: #fff; color: #1b1550; }
.btn-ghost-light { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer;
  transition: border-color .2s;
}
.icon-btn:hover { border-color: var(--brand); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent-text); }
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-back { display: flex; width: fit-content; align-items: center; gap: 6px; color: var(--text-muted); margin-bottom: 24px; font-size: .92rem; }
.link-back:hover { color: var(--text); }

/* ---- Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px;
  background: var(--gradient); color: #fff; font-size: 1.05rem; box-shadow: 0 8px 20px -8px rgba(109, 94, 252, .8);
}
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--text-muted); font-weight: 500; font-size: .95rem; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav-links .nav-cta-mobile { display: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }

[data-theme="dark"] .when-light, [data-theme="light"] .when-dark { display: none; }
.when-open { display: none; }
.nav-open .when-open { display: inline; }
.nav-open .when-closed { display: none; }

/* ---- Hero ---------------------------------------------------------------- */
.hero { padding: 72px 0 40px; overflow-x: clip; } /* the floating cards may hang past the screen edge */
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero-copy h1 { margin-bottom: .4em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero-actions-center { justify-content: center; }

.status-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-size: .85rem; color: var(--text-muted); margin-bottom: 22px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

.hero-visual { position: relative; justify-self: center; width: min(400px, 100%); }
.portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--gradient); box-shadow: var(--shadow); display: grid; place-items: center;
}
.portrait::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-initials { font-family: var(--font-head); font-size: clamp(4rem, 10vw, 7rem); font-weight: 700; color: rgba(255,255,255,.92); letter-spacing: -.04em; }
.portrait img, .portrait-initials { position: relative; z-index: 1; }

/* Marketian / Marketain: the hero shifts between the two names. */
.hero .portrait::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .9s var(--ease);
  background: linear-gradient(300deg, var(--brand) 0%, var(--brand-2) 100%);
}
.hero[data-identity="ain"] .portrait::before { opacity: 1; }

.identity {
  margin-top: 28px; padding: 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.identity-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.identity-word { font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; line-height: 1; letter-spacing: -.02em; }
.identity-slot {
  display: inline-block; height: 1.1em; overflow: hidden; vertical-align: top;
}
.identity-track { display: flex; flex-direction: column; transition: transform .6s var(--ease); }
.identity-track span {
  display: block; height: 1.1em; line-height: 1.1;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.identity-track span + span { background: linear-gradient(90deg, var(--brand-2), var(--brand)); -webkit-background-clip: text; background-clip: text; }
.hero[data-identity="ain"] .identity-track { transform: translateY(-50%); }
.identity-note { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }

.identity-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.identity-option {
  display: flex; flex-direction: column; gap: 6px; padding: 14px; text-align: left; cursor: pointer;
  font: inherit; color: var(--text-muted); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: color .3s, border-color .3s, background-color .3s, transform .3s var(--ease);
}
.identity-option:hover { color: var(--text); transform: translateY(-2px); }
.identity-option[aria-pressed="true"] { color: var(--text); background: var(--surface); }
.identity-option[data-identity-target="ian"][aria-pressed="true"] { border-color: var(--brand); }
.identity-option[data-identity-target="ain"][aria-pressed="true"] { border-color: var(--brand-2); }
.identity-domain { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--text); }
.identity-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }
[data-identity-target="ain"] .identity-dot { background: var(--brand-2); }
.identity-text { font-size: .88rem; line-height: 1.5; }
.identity-text strong { color: var(--text); font-weight: 600; }
.identity + .hero-actions { margin-top: 24px; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.float-card .icon { color: var(--brand-2); }
.float-card strong { display: block; font-family: var(--font-head); font-size: 1.15rem; line-height: 1.1; }
.float-card span { font-size: .78rem; color: var(--text-muted); }
.float-card-a { left: -36px; top: 18%; }
.float-card-b { right: -28px; bottom: 12%; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-10px); } }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 56px 0 0; padding: 0; }
.stats > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.stats dt { color: var(--text-muted); font-size: .9rem; }
.stats dd { margin: 0; font-family: var(--font-head); font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; }
.stats-compact { margin-top: 32px; }
.stats-compact > div { padding: 16px 18px; }
.stats-compact dd { font-size: 1.6rem; }

.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.socials a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-muted);
  transition: color .2s, border-color .2s, transform .2s var(--ease);
}
.socials a:hover { color: var(--text); border-color: var(--brand); transform: translateY(-2px); }

/* ---- Sections ------------------------------------------------------------ */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.section-head-row h2 { margin-bottom: 0; }
.section .section-head:not(.section-head-row) { margin-left: auto; margin-right: auto; text-align: center; }

.page-hero { padding: 80px 0 56px; }
.page-hero h1 { max-width: 820px; }

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

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.service-card:hover, .service-detail:hover { border-color: var(--border-strong); transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card p:last-child { margin-bottom: 0; }

.icon-badge {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: 18px;
  color: var(--brand-2);
  background: linear-gradient(135deg, rgba(109,94,252,.18), rgba(34,211,238,.14));
  border: 1px solid rgba(109,94,252,.25);
}
.icon-badge-lg { width: 60px; height: 60px; border-radius: 18px; margin: 0; }

.service-detail { display: flex; flex-direction: column; gap: 6px; }
.service-detail-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 8px; }
.service-detail h2 { font-size: 1.45rem; margin-bottom: .25em; }
.service-detail .link-arrow { margin-top: auto; padding-top: 12px; }
/* Marketing tools */
.tool-card { display: flex; flex-direction: column; gap: 6px; }
.tool-card:hover { border-color: var(--border-strong); transform: translateY(-4px); box-shadow: var(--shadow); }
.tool-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.tool-name { margin-bottom: .2em; }
h2.tool-name { font-size: 1.45rem; }
.tool-status { padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; border: 1px solid var(--border); color: var(--text-muted); background: var(--surface-2); }
.tool-status-live { color: #15803d; background: rgba(34, 197, 94, .12); border-color: rgba(34, 197, 94, .3); }
[data-theme="dark"] .tool-status-live { color: #4ade80; }
.tool-status-invite, .tool-status-beta { color: var(--accent-text); background: rgba(34, 211, 238, .1); border-color: rgba(34, 211, 238, .3); }
.tool-actions { margin-top: auto; padding-top: 14px; }
.nav-links .nav-tools { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border-strong); color: var(--text); }
.nav-links .nav-tools svg { color: var(--brand-2); }

.check-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: #22c55e; margin-top: 4px; }

/* ---- Projects ------------------------------------------------------------ */
.project-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.project-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--accent); }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project-card:hover .project-media img, .project-card:hover .project-placeholder { transform: scale(1.04); }
.project-placeholder {
  height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(255,255,255,.35), transparent 40%),
    linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 45%, #0b0d17));
  transition: transform .6s var(--ease);
}
.project-placeholder span { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.project-placeholder strong { font-family: var(--font-head); font-size: 1.5rem; line-height: 1.15; }
.project-placeholder-lg { min-height: 340px; padding: 40px; }
.project-placeholder-lg strong { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.project-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.project-body .eyebrow { margin-bottom: .5em; }
.project-body h3 a:hover { color: var(--accent-text); }
.project-body .link-arrow { margin-top: auto; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; }
.tags li { font-size: .78rem; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); }
.tags-lg { margin-top: 32px; }
.tags-lg li { font-size: .88rem; padding: 6px 14px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chip { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); font-weight: 500; font-size: .92rem; transition: all .2s; }
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.is-active { background: var(--gradient); color: #fff; border-color: transparent; }

.meta-row { display: flex; flex-wrap: wrap; gap: 16px 40px; margin: 28px 0 0; padding: 0; }
.meta-row dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); }
.meta-row dd { margin: 0; font-weight: 600; }
.meta-row a { color: var(--accent-text); display: inline-flex; align-items: center; gap: 4px; }

.detail-cover { border-radius: var(--radius-lg); overflow: hidden; background: var(--accent); box-shadow: var(--shadow); }
.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 40px 0; }
.result { display: flex; gap: 12px; align-items: center; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-weight: 600; }
.result .icon { color: var(--brand-2); }
.prose { font-size: 1.06rem; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose p { color: var(--text-muted); }

/* ---- Process & testimonials --------------------------------------------- */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.process li { position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 2rem; margin-bottom: 8px; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.process p { margin: 0; }

.testimonial { margin: 0; display: flex; flex-direction: column; }
.quote-mark { color: var(--brand); opacity: .8; }
.testimonial blockquote { margin: 14px 0 24px; font-size: 1.02rem; }
.testimonial figcaption { margin-top: auto; display: flex; gap: 12px; align-items: center; }
.testimonial figcaption small { display: block; color: var(--text-muted); }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gradient); color: #fff; font-weight: 600; font-size: .9rem; flex-shrink: 0; }

/* ---- About --------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.about-photo { position: sticky; top: 100px; }
.portrait-lg { max-width: 420px; }
.info-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; color: var(--text-muted); }
.info-list li { display: flex; gap: 10px; align-items: center; }
.info-list a:hover { color: var(--text); }
.about-copy p { color: var(--text-muted); font-size: 1.06rem; }

.skill-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 18px; }
.skill-row { display: flex; justify-content: space-between; font-weight: 500; margin-bottom: 8px; }
.bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--gradient); transition: width 1.2s var(--ease); }
.is-visible .bar span { width: var(--level); }

.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 2px solid var(--border); display: grid; gap: 36px; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -36px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--gradient); box-shadow: 0 0 0 5px var(--bg); }
.timeline-period { font-size: .82rem; font-weight: 600; color: var(--accent-text); letter-spacing: .05em; }
.timeline h3 { margin: 4px 0 2px; }
.timeline-org { color: var(--text); font-weight: 500; margin-bottom: 6px; }

/* ---- CTA ----------------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;
  padding: 56px; border-radius: var(--radius-lg); color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(255,255,255,.25), transparent 40%),
    linear-gradient(120deg, #5b4cf0 0%, #3b82f6 55%, #06b6d4 100%);
  box-shadow: 0 30px 60px -30px rgba(91, 76, 240, .8);
}
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { margin: 0; opacity: .9; max-width: 520px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Contact ------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px; align-items: start; }
.contact-info { display: grid; gap: 14px; }
.contact-item { display: flex; gap: 16px; align-items: center; padding: 18px 20px; }
.contact-item .icon-badge { margin: 0; }
.contact-item small { display: block; color: var(--text-muted); font-size: .8rem; }
.contact-item strong { font-weight: 600; word-break: break-word; }
a.contact-item:hover { border-color: var(--brand); transform: translateY(-2px); }

.contact-form { padding: 36px; display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-weight: 500; font-size: .92rem; margin-bottom: 8px; }
.field label span { color: var(--brand-3); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--border-strong); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); opacity: .7; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(109, 94, 252, .2); }
.has-error input, .has-error textarea { border-color: #f43f5e; }
.field-error, .form-error { color: #f43f5e; font-size: .85rem; margin: 6px 0 0; }
.form-error ul { margin: 0; padding-left: 18px; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.toasts { padding-top: 20px; }
.toast { display: flex; gap: 10px; align-items: center; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); animation: slideDown .4s var(--ease); }
.toast-success { border-color: rgba(34,197,94,.4); }
.toast-success .icon { color: #22c55e; }
.toast-error { border-color: rgba(244,63,94,.5); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } }

/* ---- 404 ----------------------------------------------------------------- */
.not-found { padding: 120px 0; }
.not-found .lead { margin: 0 auto; }
.big-code { font-family: var(--font-head); font-size: clamp(6rem, 18vw, 11rem); font-weight: 700; line-height: 1; margin: 0; }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); padding: 64px 0 28px; background: var(--bg-alt); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 40px; }
.footer-about { margin: 16px 0; max-width: 360px; }
.footer-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a, .footer-links span { display: inline-flex; gap: 8px; align-items: center; color: var(--text-muted); word-break: break-word; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); font-size: .88rem; color: var(--text-muted); }
.footer-bottom p { margin: 0; }

/* ---- Reveal animation ---------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---- Page changes (htmx) ------------------------------------------------- */
/* Quick cross-fade between pages; the header stays put. */
.site-header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }

/* Progress bar, shown only when a page takes longer than a moment to arrive. */
html::before {
  content: ""; position: fixed; top: 0; left: 0; z-index: 200;
  width: 100%; height: 3px; background: var(--gradient);
  transform: scaleX(0); transform-origin: left; opacity: 0; pointer-events: none;
}
html.is-loading::before { opacity: 1; transform: scaleX(.85); transition: opacity .1s .15s, transform 6s cubic-bezier(.1, .6, .2, 1) .15s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .bar span { width: var(--level); }
}

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; gap: 4px; padding: 16px 24px 28px;
    background: var(--bg); border-bottom: 1px solid var(--border);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .25s var(--ease);
  }
  .nav-open .nav-links { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 12px 16px; font-size: 1.05rem; }
  .nav-links .nav-cta-mobile { display: block; margin-top: 8px; }
  .nav-links .nav-cta-mobile a { color: #fff; }

  .hero { padding-top: 40px; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; width: min(300px, 80%); }
  .float-card-a { left: -24px; }
  .float-card-b { right: -20px; }
  .about-photo { position: static; }
  .portrait-lg { max-width: 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .section { padding: 72px 0; }
  .cta-band { padding: 40px 28px; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .grid-2, .grid-3, .process, .form-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .stats > div { padding: 16px 12px; }
  .stats dt { font-size: .75rem; }
  .contact-form { padding: 24px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .identity { padding: 14px; }
  .identity-options { grid-template-columns: 1fr; }
  .float-card { padding: 10px 12px; }
  .float-card strong { font-size: 1rem; }
  .float-card-a { left: -12px; }
  .float-card-b { right: -12px; }
  .service-detail-head { flex-direction: column; }
}
