/* ============ Adnane R. Automations — v5 blue editorial (Toufik structure + portrait hero) ============ */

/* self-hosted fonts (GDPR-clean, no Google requests) */
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/SpaceGrotesk-500.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/SpaceGrotesk-600.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/SpaceGrotesk-700.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/DMSans-400.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/DMSans-500.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/DMSans-700.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/JetBrainsMono-400.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/JetBrainsMono-600.woff2') format('woff2'); }

:root {
  --bg: #F5F7FA;
  --bg-2: #E9EEF6;
  --mint: #E8EFF9;
  --surface: #FFFFFF;
  --ink: #0D2137;
  --ink-soft: #3E5570;
  --ink-faint: #7C8AA0;
  --line: #DBE3EF;
  --accent: #5A7E9F;
  --accent-deep: #46688A;
  --accent-soft: #DEE8F1;
  --mark: #CFE0EC;
  --gold: #D99A2B;
  --dark: #0D2137;
  --dark-2: #14345A;
  --brand: #5A7E9F;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(13, 33, 55, .04), 0 3px 10px rgba(13, 33, 55, .05);
  --shadow: 0 5px 16px rgba(13, 33, 55, .06), 0 20px 44px rgba(13, 33, 55, .08);
  --shadow-lg: 0 12px 32px rgba(13, 33, 55, .09), 0 34px 70px rgba(13, 33, 55, .13);
  --maxw: 1120px;

  --cat-web: #5A7E9F;
  --cat-bi: #0F766E;
  --cat-auto: #5E8C3E;
  --cat-fin: #C4883A;

  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-head: 'Space Grotesk', 'DM Sans', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; font-size: 17px; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.section { padding: clamp(40px, 4.4vw, 72px) 0; }
em { font-style: normal; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; letter-spacing: -.02em; }

/* lenis smooth scroll (see app.js; classes are set by the lib) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* progress bar */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 100; transition: width .1s linear; }

/* ---------- kicker ---------- */
.kicker { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: .7rem; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.kicker::before { content: ""; width: 26px; height: 1.5px; background: var(--accent); opacity: .65; flex: none; }
.kicker--light { color: #9FC0DC; }
.kicker--light::before { background: #9FC0DC; }

/* ---------- nav ---------- */
.nav .wrap { max-width: 1320px; }
.nav { position: sticky; top: 0; z-index: 40; background: rgba(245, 247, 250, .85); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.is-stuck { border-color: var(--line); }
/* dimensions taken 1:1 from databytoufik.com authored CSS:
   bar 64px · brand 1.18rem + 26px mark · pill pad 4 + 1px border, links 6px 13px @ .95rem lh 1.2 · cta 7px 16px @ .9rem w500 */
.nav__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: 1.18rem; letter-spacing: -.02em; white-space: nowrap; }
.brand em { color: var(--accent); }
.brand__photo { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; box-shadow: 0 2px 8px rgba(13, 33, 55, .18); }
.nav__links { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 1px; background: var(--bg-2); border: 1px solid rgba(13, 33, 55, .07); border-radius: 999px; padding: 4px; }
.nav__links a { padding: 6px 13px; border-radius: 999px; font-weight: 500; font-size: .95rem; line-height: 1.2; color: var(--ink-soft); transition: all .18s; }
.nav__links a:hover { color: var(--ink); background: #fff; box-shadow: 0 1px 3px rgba(13, 33, 55, .14), 0 0 0 1px rgba(13, 33, 55, .05); }
.nav__links a.is-active { color: var(--ink); background: #fff; box-shadow: 0 1px 3px rgba(13, 33, 55, .14), 0 0 0 1px rgba(13, 33, 55, .05); }
@media (max-width: 1080px) { .langsw button { padding: 4px 7px; font-size: .62rem; } }
@media (max-width: 860px) { .nav__links { display: none; } }
.nav__right { display: flex; align-items: center; gap: 12px; }
.langsw { display: flex; gap: 2px; background: var(--bg-2); border: 1px solid rgba(13, 33, 55, .07); border-radius: 999px; padding: 3px; }
.langsw button { border: none; background: none; font-family: var(--mono); font-size: .68rem; font-weight: 600; letter-spacing: .04em; padding: 5px 9px; border-radius: 999px; color: var(--ink-soft); cursor: pointer; transition: background .18s, color .18s; }
.langsw button:hover { color: var(--ink); }
.langsw button.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(13, 33, 55, .14); }
.nav .nav__cta, .nav .nav__cta.btn { white-space: nowrap; padding: 7px 16px; font-size: .9rem; font-weight: 500; gap: 7px; border-radius: 999px; box-shadow: 0 10px 24px -6px rgba(90, 126, 159, .35); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 11px 24px; border-radius: 999px; font-weight: 600; font-size: .98rem; cursor: pointer; border: 1px solid transparent; transition: transform .18s cubic-bezier(.2,.7,.2,1.4), box-shadow .2s, background .2s, color .2s; font-family: var(--font); }
.btn--accent { color: #fff; background: var(--accent); box-shadow: 0 10px 24px -6px rgba(90, 126, 159, .35); }
.btn--accent:hover { transform: translateY(-1px); background: var(--accent-deep); box-shadow: 0 14px 30px -8px rgba(90, 126, 159, .42); }
.btn--ghost { color: var(--ink); background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent-deep); }
.btn--lg { padding: 13px 28px; font-size: 1rem; }

/* ---------- hero ---------- */
.hero { position: relative; display: flex; align-items: center; overflow: hidden; min-height: clamp(560px, 84svh, 752px); padding: clamp(14px, 2.5vw, 28px) 0 clamp(44px, 6vw, 78px); }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .hero__inner { grid-template-columns: 1fr; } }
.hero__title { font-size: clamp(1.95rem, 3.4vw, 3rem); line-height: 1.1; letter-spacing: -.024em; margin: 8px 0 0; }
.hero__title span { display: block; }
.hero__title mark { background: none; color: var(--accent); padding: 0; }
.hero__sub { font-size: clamp(1.04rem, 1.25vw, 1.18rem); line-height: 1.55; color: var(--ink-soft); margin: 20px 0 0; max-width: 46ch; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero__socials { display: flex; gap: 22px; margin-top: 28px; }
.hero__socials a { font-family: var(--mono); font-size: .82rem; font-weight: 600; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 7px; transition: color .18s; }
.hero__socials a:hover { color: var(--accent); }

/* portrait (circle + spinning ring + floating tool chips) */
.hero__portrait { display: flex; justify-content: center; }
.portrait { position: relative; width: min(320px, 66vw); aspect-ratio: 1; }
.portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 6px solid #fff; box-shadow: var(--shadow-lg); position: relative; z-index: 2; animation: floaty 7s ease-in-out infinite; }
.portrait__ring { position: absolute; inset: -15px; border-radius: 50%; background: conic-gradient(from 0deg, var(--accent), #9FBAD3, var(--bg), var(--accent)); z-index: 1; animation: spin 16s linear infinite; -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px)); mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px)); }
.float-chip { position: absolute; z-index: 3; font-family: var(--mono); font-size: .76rem; font-weight: 600; background: #fff; color: var(--ink); border: 1px solid var(--line); padding: 7px 13px; border-radius: 999px; box-shadow: var(--shadow-sm); animation: floaty 6s ease-in-out infinite; }
.float-chip--1 { top: 4%; left: -12%; animation-delay: -.8s; }
.float-chip--2 { top: 24%; right: -15%; animation-delay: -2.2s; }
.float-chip--3 { bottom: 16%; left: -17%; animation-delay: -3.4s; }
.float-chip--4 { bottom: 2%; right: -8%; animation-delay: -4.6s; }
@media (max-width: 900px) {
  .hero__portrait { order: -1; }
  .float-chip--2, .float-chip--4 { right: 0; }
  .float-chip--1, .float-chip--3 { left: 0; }
}

/* pipeline card (lives in the proof bento) */
.pipe { width: min(360px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 18px 18px 14px; display: flex; flex-direction: column; }
@keyframes floaty { 50% { transform: translateY(-8px); } }
.pipe__bar { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.pipe__dots { display: inline-flex; gap: 5px; }
.pipe__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.pipe__file { font-family: var(--mono); font-size: .78rem; color: var(--ink-soft); flex: 1; }
.pipe__live { font-family: var(--mono); font-size: .68rem; font-weight: 600; letter-spacing: .1em; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.pipe__live i { width: 7px; height: 7px; border-radius: 50%; background: #E05B4C; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }
.pipe__steps { display: flex; flex-direction: column; gap: 8px; }
.pipe__step { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 13px; background: var(--bg); transition: background .4s, box-shadow .4s; }
.pipe__step.is-done { background: var(--mint); box-shadow: inset 0 0 0 1.5px var(--accent-soft); }
.pipe__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: .95rem; flex: none; transition: all .4s; }
.pipe__step.is-done .pipe__icon { background: var(--accent); border-color: var(--accent); color: #fff; }
.pipe__label { flex: 1; font-size: .88rem; font-weight: 500; color: var(--ink-faint); transition: color .4s; }
.pipe__step.is-done .pipe__label { color: var(--ink); }
.pipe__check { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--line); color: #fff; font-size: .7rem; font-weight: 700; transform: scale(.6); opacity: 0; transition: all .35s cubic-bezier(.2,.7,.2,1.5); }
.pipe__step.is-done .pipe__check { background: var(--accent); transform: none; opacity: 1; }
.pipe__time { text-align: right; font-family: var(--mono); font-size: .74rem; color: var(--ink-faint); padding-top: 12px; }

/* ---------- industries ---------- */
.industries { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 40px 0; text-align: center; }
.industries__kicker { margin: 0 0 18px; font-family: var(--mono); font-size: .72rem; font-weight: 600; letter-spacing: .18em; color: var(--ink-faint); }
.industries__pills { display: flex; gap: 10px; flex-wrap: nowrap; justify-content: center; }
@media (max-width: 1060px) { .industries__pills { flex-wrap: wrap; } }
.ipill { font-size: .9rem; font-weight: 500; white-space: nowrap; color: var(--ink-soft); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 9px 17px; cursor: default; transition: background .22s, color .22s, border-color .22s, transform .18s, box-shadow .22s; }
.ipill:hover { background: var(--accent); border-color: transparent; color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px -8px rgba(90, 126, 159, .45); }

/* ---------- section heads (left, editorial) ---------- */
.section-head { max-width: 660px; margin-bottom: clamp(22px, 2.8vw, 38px); }
.section-title { font-size: clamp(1.7rem, 2.9vw, 2.35rem); letter-spacing: -.024em; line-height: 1.1; margin: 0; }
.section-sub { color: var(--ink-faint); font-size: 1.04rem; line-height: 1.55; margin: 14px 0 0; max-width: 54ch; }

/* ---------- services (structure like Toufik: inset art panel, icon chip + title, no click) ---------- */
.svc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1000px) { .svc { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .svc { grid-template-columns: 1fr; } }
.svc__card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 24px; box-shadow: var(--shadow); transition: transform .22s, box-shadow .25s; }
.svc__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.svc__art { position: relative; height: 172px; display: grid; place-items: center; background: linear-gradient(180deg, #F3F7FC, var(--mint)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 18px; }
.svc__head { display: flex; align-items: center; gap: 12px; padding: 0 8px; margin-bottom: 10px; }
.svc__chip { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--accent-soft); color: var(--accent-deep); transition: background .25s, color .25s; }
.svc__card:hover .svc__chip { background: var(--accent); color: #fff; }
.svc__chip svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.svc__head h3 { margin: 0; font-size: 1.1rem; letter-spacing: -.01em; line-height: 1.25; }
.svc__card > p { margin: 0; padding: 0 8px; color: var(--ink-soft); font-size: .9rem; }

/* 1 - chartgram: line chart draws itself on loop, dot rides the line */
.chartgram { width: min(228px, 92%); height: auto; }
.cg__grid line { stroke: #DBE3EF; stroke-width: 1; stroke-dasharray: 3 5; }
.cg__area { fill: #9FC0DC; opacity: .22; }
.cg__line { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; }
.cg__dot { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.art__tip { position: absolute; top: 12px; right: 12px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); font-family: var(--mono); font-size: .64rem; font-weight: 600; color: var(--ink); padding: 4px 10px; animation: floaty 5s ease-in-out infinite; white-space: nowrap; }

/* 2 - funnelgram: three sources drip through a funnel into clean rows */
.funnelgram { width: min(228px, 92%); height: auto; }
.fu__src rect { fill: #fff; stroke: #CFDDF0; stroke-width: 1.5; }
.fu__src line { stroke: #CFDDF0; stroke-width: 1.5; stroke-linecap: round; }
.fu__body { fill: #DEE8F1; opacity: .55; stroke: #9FC0DC; stroke-width: 1.5; stroke-linejoin: round; }
.fu__dot { fill: var(--accent); }
.fu__row { fill: #9FC0DC; }

/* 3 - loopgram: comet circles a 24/7 track, nodes light up as it passes */
.loopgram { width: min(228px, 92%); height: auto; }
.lp__track { fill: none; stroke: #CFDDF0; stroke-width: 1.5; }
.lp__comet { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; }
.lp__node rect { fill: #fff; stroke: #CFDDF0; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; }
.lp__icon { stroke: var(--accent-deep); stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.lp__icon--fill { fill: var(--accent-deep); stroke: none; }
.lp__node--1 rect { animation: lpNode 6s infinite; }
.lp__node--2 rect { animation: lpNode 6s infinite 1.5s; }
.lp__node--3 rect { animation: lpNode 6s infinite 3s; }
.lp__node--4 rect { animation: lpNode 6s infinite 4.5s; }
@keyframes lpNode { 0%, 9% { stroke: var(--accent); transform: scale(1.09); } 14%, 100% { stroke: #CFDDF0; transform: scale(1); } }
.lp__247 { font-family: var(--mono); font-size: 13px; font-weight: 600; fill: var(--ink-faint); text-anchor: middle; animation: lpFade 3s ease-in-out infinite; }
@keyframes lpFade { 50% { opacity: .45; } }

/* 4 - aigram: assistant window types an answer on loop */
.aigram { position: relative; width: min(212px, 86%); }
.ai__spark { position: absolute; top: -13px; right: -11px; z-index: 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--accent); color: #fff; font-size: .8rem; box-shadow: 0 8px 18px -6px rgba(90, 126, 159, .6); animation: sparkPulse 3s ease-in-out infinite; }
@keyframes sparkPulse { 50% { transform: scale(1.14) rotate(10deg); } }
.ai__win { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.ai__topbar { display: flex; align-items: center; gap: 5px; padding: 9px 11px; border-bottom: 1px solid var(--line); }
.ai__topbar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.ai__topbar em { margin-left: auto; font-family: var(--mono); font-size: .58rem; color: var(--ink-faint); }
.ai__body { padding: 11px 13px 14px; }
.ai__prompt { display: flex; align-items: center; font-family: var(--mono); font-size: .64rem; color: var(--ink); height: 15px; margin-bottom: 9px; }
.ai__prompt::before { content: "\25B8"; color: var(--accent); margin-right: 5px; }
.ai__type { display: inline-block; white-space: nowrap; overflow: hidden; animation: aiType 7s steps(22, end) infinite; }
.ai__caret { flex: none; width: 6px; height: 11px; margin-left: 2px; background: var(--accent); animation: caretBlink .85s steps(1) infinite; }
@keyframes aiType { 0% { width: 0; } 30% { width: 22ch; } 100% { width: 22ch; } }
@keyframes caretBlink { 50% { opacity: 0; } }
.ai__resp { height: 8px; border-radius: 5px; background: var(--accent-soft); margin-top: 7px; width: 0; }
.ai__resp--1 { animation: aiResp1 7s ease-out infinite; }
.ai__resp--2 { animation: aiResp2 7s ease-out infinite; }
.ai__resp--3 { animation: aiResp3 7s ease-out infinite; }
@keyframes aiResp1 { 0%, 36% { width: 0; opacity: 0; } 40% { opacity: 1; } 48% { width: 94%; } 100% { width: 94%; opacity: 1; } }
@keyframes aiResp2 { 0%, 44% { width: 0; opacity: 0; } 48% { opacity: 1; } 56% { width: 72%; } 100% { width: 72%; opacity: 1; } }
@keyframes aiResp3 { 0%, 52% { width: 0; opacity: 0; } 56% { opacity: 1; } 64% { width: 85%; } 100% { width: 85%; opacity: 1; } }

/* ---------- tools band (dark) ---------- */
.toolband { background: var(--dark); padding: 34px 0 30px; overflow: hidden; }
.toolband__kicker { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: .7rem; font-weight: 400; letter-spacing: .22em; color: #9FC0DC; margin-bottom: 16px; }
.toolband__kicker::before { content: ""; width: 30px; height: 2px; background: #9FC0DC; }
.toolband__marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.toolband__track { display: inline-flex; align-items: center; white-space: nowrap; animation: scrollx 55s linear infinite; }
.toolband__track:hover { animation-play-state: paused; }
@keyframes scrollx { to { transform: translateX(-50%); } }
.tb__item { color: #E7EEF8; font-family: var(--font-head); font-weight: 500; font-size: 1.15rem; padding: 0 8px; }
.tb__dot { color: var(--accent); font-size: 1rem; padding: 0 10px; }

/* ---------- bento proof ---------- */
.bento { display: grid; grid-template-columns: 1.05fr 1fr 1fr; gap: 18px; margin-bottom: 18px; }
@media (max-width: 1000px) { .bento { grid-template-columns: 1fr 1fr; } .bento__pipe { grid-column: 1 / -1; } .bento__pipe .pipe { width: min(420px, 100%); } }
.bento__pipe { display: flex; justify-content: center; }
.bento__pipe .pipe { width: 100%; }
.bento__pipe .pipe__steps { flex: 1; justify-content: center; }
.bento__dark { position: relative; background: var(--dark); color: #EEF3FA; border-radius: var(--radius); padding: 32px 32px 28px; overflow: hidden; display: flex; flex-direction: column; min-height: 290px; }
.bento__col { display: flex; flex-direction: column; gap: 18px; }
.bento__light { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow); flex: 1; transition: transform .22s, box-shadow .25s; }
.bento__light:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.bento__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 1.1rem; margin-bottom: 18px; transition: background .25s, color .25s, transform .25s; }
.bento__dark:hover .bento__icon { background: #fff; color: var(--accent-deep); transform: scale(1.06); }
.bento__light:hover .bento__icon--light { background: var(--accent); color: #fff; transform: scale(1.06); }
.bento__icon--light { background: var(--accent-soft); color: var(--accent-deep); margin-bottom: 12px; }
.bento__num { font-family: var(--font-head); font-size: clamp(2.1rem, 4.4vw, 3rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.bento__light .bento__num { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.bento__label { color: var(--ink-faint); font-size: .9rem; font-weight: 500; margin-top: 4px; }
.bento__dark .bento__label { color: #9AAEC6; }
.bento__tag { position: absolute; top: 20px; right: 20px; font-family: var(--mono); font-size: .68rem; font-weight: 600; color: var(--accent-deep); background: var(--accent-soft); padding: 4px 12px; border-radius: 999px; }
.bento__bars { position: absolute; right: 30px; bottom: 26px; display: flex; align-items: flex-end; gap: 10px; height: 105px; }
.bento__bars i { width: 24px; background: rgba(255, 255, 255, .08); border-radius: 6px 6px 0 0; }
.bento.in-view .bento__bars i { animation: barGrow 1.2s cubic-bezier(.2,.7,.2,1) both; }
@keyframes barGrow { from { transform: scaleY(0); transform-origin: bottom; } }
.bento__bars i:nth-child(1) { height: 30%; animation-delay: .1s; }
.bento__bars i:nth-child(2) { height: 48%; animation-delay: .25s; }
.bento__bars i:nth-child(3) { height: 38%; animation-delay: .4s; }
.bento__bars i:nth-child(4) { height: 72%; animation-delay: .55s; background: var(--accent); }
.bento__bars i:nth-child(5) { height: 100%; animation-delay: .7s; }
@media (max-width: 760px) {
  .bento { grid-template-columns: 1fr; }
  .bento__dark { min-height: 0; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "icon num" "icon label"; column-gap: 16px; align-items: center; padding: 20px 22px; }
  .bento__dark .bento__icon { grid-area: icon; margin: 0; }
  .bento__dark .bento__num { grid-area: num; font-size: 1.9rem; }
  .bento__dark .bento__label { grid-area: label; margin-top: 0; }
  .bento__bars { display: none; }
  .bento__light { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "icon num tag" "icon label tag"; column-gap: 16px; align-items: center; padding: 18px 20px; }
  .bento__light .bento__icon--light { grid-area: icon; margin: 0; }
  .bento__light .bento__num { grid-area: num; font-size: 1.45rem; }
  .bento__light .bento__label { grid-area: label; margin-top: 0; font-size: .84rem; }
  .bento__light .bento__tag { grid-area: tag; position: static; }
}
.proofstrip { display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 22px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .25s; }
.proofstrip:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.proofstrip__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: var(--shadow); flex: none; }
.proofstrip__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.proofstrip__text strong { font-size: .95rem; }
.proofstrip__text span { color: var(--ink-faint); font-size: .82rem; }
.proofstrip__cta { color: var(--accent); font-weight: 700; font-size: .9rem; white-space: nowrap; }

/* ---------- portfolio: filters + rail + case panel ---------- */
#work > .wrap { max-width: 1320px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.filter { padding: 8px 17px; border-radius: 999px; font-weight: 500; font-size: .88rem; cursor: pointer; border: 1px solid var(--line); background: #fff; color: var(--ink-soft); transition: all .18s; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font); }
.filter:hover { color: var(--ink); border-color: var(--ink-faint); }
.filter.is-active { color: #fff; border-color: transparent; box-shadow: 0 8px 18px -8px rgba(13, 33, 55, .4); }
.filter .dot { width: 7px; height: 7px; border-radius: 50%; }

.pwrap { display: grid; grid-template-columns: 280px 1fr; gap: 18px; align-items: stretch; }
.pwrap > * { min-width: 0; }
@media (max-width: 880px) { .pwrap { grid-template-columns: 1fr; } }
.pcase__controls { grid-column: 1 / -1; }
.plist-col { position: relative; }
.plist { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 4px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(13, 33, 55, .2) transparent; }
.plist::-webkit-scrollbar { width: 7px; }
.plist::-webkit-scrollbar-track { background: transparent; }
.plist::-webkit-scrollbar-thumb { background: rgba(13, 33, 55, .18); border-radius: 999px; }
.plist-toggle { display: none; }
@media (max-width: 880px) {
  .plist-col { position: relative; }
  .plist-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 13px 16px; font-family: var(--font); font-weight: 600; font-size: .92rem; color: var(--ink); text-align: left; cursor: pointer; }
  .plist-toggle svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
  .plist-col.is-open .plist-toggle svg { transform: rotate(180deg); }
  .plist { display: none; position: absolute; inset: auto 0 auto 0; top: calc(100% + 8px); z-index: 30; flex-direction: column; max-height: 330px; overflow-y: auto; box-shadow: var(--shadow-lg); }
  .plist-col.is-open .plist { display: flex; }
  .pcase__media { height: 210px; }
}
@media (max-width: 560px) {
  .pcase__body { padding: 18px 16px 22px; }
  .pmetric { font-size: .78rem; padding: 6px 12px; }
  .pcase__foot { flex-direction: column; align-items: stretch; }
  .pcase__cta { text-align: center; }
}
.ptab { display: flex; align-items: baseline; gap: 10px; width: 100%; text-align: left; padding: 11px 14px; border: none; border-radius: 11px; background: none; font-family: var(--font); font-size: .92rem; font-weight: 500; line-height: 1.35; color: var(--ink-soft); cursor: pointer; transition: background .18s, color .18s; }
.ptab:hover { background: var(--bg); color: var(--ink); }
.ptab.is-active { background: var(--mint); color: var(--accent-deep); font-weight: 600; }
.ptab__i { font-family: var(--mono); font-size: .66rem; color: var(--ink-faint); flex: none; }
.ptab.is-active .ptab__i { color: var(--accent); }
.ptab__t { flex: 1; min-width: 0; }

.pcase { margin-top: 0; }
.pcase__grid { display: grid; grid-template-columns: 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.pcase__grid.pcase--in { animation: caseIn .5s cubic-bezier(.2,.7,.2,1); }
@keyframes caseIn { from { opacity: 0; transform: translateY(16px); } }
.pcase__media { position: relative; height: clamp(240px, 24vw, 330px); background: linear-gradient(160deg, #EFF5FB, var(--mint)); display: grid; place-items: center; padding: clamp(14px, 1.8vw, 22px); cursor: pointer; }
.pcase__shot { width: 100%; height: 100%; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.pcase__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s; }
.pcase__media:hover .pcase__shot img { transform: scale(1.04); }
.pcase__badge { position: absolute; top: 16px; left: 16px; font-size: .72rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; color: #fff; background: var(--card-color); }
.pcase__shots { position: absolute; bottom: 16px; right: 16px; font-family: var(--mono); font-size: .7rem; font-weight: 600; color: #fff; background: rgba(13, 33, 55, .72); padding: 5px 11px; border-radius: 999px; }
.pcase__body { padding: clamp(22px, 3.4vw, 38px); display: flex; flex-direction: column; }
.pcase__title { margin: 0 0 12px; font-size: clamp(1.3rem, 2.4vw, 1.7rem); letter-spacing: -.01em; }
.pcase__text { margin: 0 0 16px; color: var(--ink-soft); font-size: .95rem; max-width: 78ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcase__metrics { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.pmetric { display: inline-flex; align-items: center; gap: 8px; background: var(--mint); color: var(--ink); border-radius: 999px; padding: 7px 15px; font-size: .85rem; font-weight: 600; }
.pmetric::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.pcase__foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.pcase__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-family: var(--mono); font-size: .72rem; font-weight: 400; color: var(--ink-soft); background: var(--bg); border: 1px solid var(--line); padding: 5px 11px; border-radius: 8px; transition: background .2s, color .2s, border-color .2s; }
.tag:hover { background: var(--accent); border-color: transparent; color: #fff; }
.pcase__cta { flex: none; color: #fff; background: var(--accent); padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: .88rem; cursor: pointer; transition: background .2s, transform .18s; box-shadow: 0 10px 24px -6px rgba(90, 126, 159, .35); }
.pcase__cta:hover { background: var(--accent-deep); transform: translateY(-2px); }
.pcase__controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 18px; }
.cbtn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .15s, border-color .2s, color .2s, box-shadow .2s; }
.cbtn svg, .tnav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cbtn:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent-deep); }
.pcase__counter { font-family: var(--mono); font-size: .84rem; color: var(--ink-faint); min-width: 64px; text-align: center; }

/* ---------- reviews (dark) ---------- */
.reviews { background: var(--dark); color: #EEF3FA; padding: 96px 0 80px; overflow: hidden; }
.reviews .section-title { color: #fff; }
.reviews .section-sub { color: #9AAEC6; }
.tcar { position: relative; display: flex; justify-content: center; align-items: stretch; gap: 22px; padding: 10px 24px; max-width: 1400px; margin: 0 auto; }
.tcar__card { flex: 0 1 400px; min-width: 0; background: rgba(255, 255, 255, .92); color: var(--ink); border-radius: 20px; padding: 26px 28px; display: flex; flex-direction: column; gap: 12px; opacity: .38; transform: scale(.92); transition: opacity .45s, transform .45s; cursor: pointer; }
@media (max-width: 980px) { .tcar__card--side { display: none; } .tcar__card { flex-basis: 560px; } }
.tcar__card--center { background: var(--dark-2); color: #EEF3FA; opacity: 1; transform: scale(1.02); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); border: 1px solid rgba(255, 255, 255, .08); cursor: default; animation: tIn .45s cubic-bezier(.2,.7,.2,1); }
@keyframes tIn { from { opacity: .5; transform: scale(.96); } }
.tcar__stars { color: var(--gold); letter-spacing: 2px; font-size: .9rem; }
.tcar__quote { margin: 0; flex: 1; font-size: .98rem; line-height: 1.65; }
.tcar__card--center .tcar__quote { font-size: 1.05rem; }
.tcar__meta { border-top: 1px solid rgba(137, 152, 180, .25); padding-top: 13px; }
.tcar__job { font-weight: 700; font-size: .87rem; }
.tcar__detail { font-family: var(--mono); font-size: .72rem; margin-top: 3px; opacity: .65; }
.tcar__amt { font-family: var(--mono); font-weight: 600; font-size: 1.05rem; color: #9FC0DC; }
.tcar__card:not(.tcar__card--center) .tcar__amt { color: var(--accent-deep); }
.tcar__controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: 26px; }
.tdots { display: flex; gap: 7px; grid-column: 2; justify-self: center; }
.tnavs { grid-column: 3; justify-self: end; }
.tdot { width: 22px; height: 5px; border-radius: 999px; border: none; background: rgba(255, 255, 255, .18); cursor: pointer; transition: all .25s; padding: 0; }
.tdot.is-active { background: #9FC0DC; width: 36px; }
.tnavs { display: flex; gap: 10px; }
.tnav { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: #EEF3FA; cursor: pointer; transition: all .2s; }
.tnav:hover { background: var(--accent); border-color: transparent; transform: translateY(-2px); }
.rstats { display: flex; align-items: center; gap: 10px 26px; flex-wrap: wrap; margin-top: 34px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .1); }
.rstats__item { font-family: var(--mono); font-size: .8rem; color: #9AAEC6; }
.rstats__item b { color: #fff; font-weight: 600; }
.rstats__link { margin-left: auto; font-weight: 700; font-size: .88rem; color: #9FC0DC; }
.rstats__link:hover { color: #fff; }
@media (max-width: 700px) {
  .rstats { flex-direction: column; align-items: center; text-align: center; gap: 11px; }
  .rstats__item b { display: inline-block; }
  .rstats__link { margin: 4px 0 0; }
}

/* ---------- about ---------- */
.about__inner { display: grid; grid-template-columns: 330px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) {
  .about__inner { grid-template-columns: 1fr; }
  .about__photo { display: flex; justify-content: center; }
  .socials { justify-content: center; }
}
.about__photo { align-self: stretch; display: flex; flex-direction: column; align-items: center; }
.about__art { flex: 1; display: flex; align-items: center; margin-top: 24px; }
.about__photo img { width: min(300px, 80vw); aspect-ratio: 1; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow-lg); border: 5px solid #fff; transform: rotate(-2deg); }

/* deskgram: study-desk line drawing, always gently alive */
.deskgram { width: min(300px, 78vw); height: auto; }
.dg__type { transform-box: fill-box; transform-origin: left center; animation: dgType 6s ease-in-out infinite; }
.dg__type--2 { animation-delay: .5s; }
.dg__type--3 { animation-delay: 1s; }
.dg__type--4 { animation-delay: 1.5s; }
@keyframes dgType { 0% { transform: scaleX(0); } 20% { transform: scaleX(1); } 82% { transform: scaleX(1); } 94%, 100% { transform: scaleX(0); } }
.dg__glow { animation: dgGlow 4.5s ease-in-out infinite; }
@keyframes dgGlow { 0%, 100% { opacity: .45; } 50% { opacity: .95; } }
.dg__steam { opacity: 0; animation: dgSteam 3.6s ease-in-out infinite; }
.dg__steam--2 { animation-delay: 1.4s; }
@keyframes dgSteam { 0% { transform: translateY(7px); opacity: 0; } 35% { opacity: .9; } 70% { transform: translateY(-13px); opacity: 0; } 100% { transform: translateY(-13px); opacity: 0; } }
.dg__spark { transform-box: fill-box; transform-origin: center; animation: dgSpark 3.4s ease-in-out infinite; }
@keyframes dgSpark { 0%, 100% { transform: scale(.75) rotate(0deg); opacity: .45; } 50% { transform: scale(1.12) rotate(16deg); opacity: 1; } }
.dg__dot { animation: dgGlow 3s ease-in-out infinite; }
.dg__dot--2 { animation-delay: 1.1s; }
.about__text p { color: var(--ink-soft); max-width: 60ch; }
.about__meta { display: flex; gap: clamp(20px, 4vw, 50px); flex-wrap: wrap; margin: 24px 0 6px; }
.about__meta > div { transition: transform .22s; cursor: default; }
.about__meta > div:hover { transform: translateY(-2px); }
.about__meta > div:hover h6 { color: var(--accent); }
.about__meta > div:hover span { color: var(--accent-deep); }
.about__meta h6 { margin: 0 0 3px; font-family: var(--mono); font-size: .66rem; font-weight: 600; letter-spacing: .16em; color: var(--ink-faint); transition: color .2s; }
.about__meta span { font-weight: 700; font-size: .95rem; transition: color .2s; }
.about__subtitle { margin: 26px 0 12px; font-size: 1.08rem; letter-spacing: -.01em; }
.edu { display: flex; flex-direction: column; border-left: 2px solid var(--line); }
.edu__item { position: relative; padding: 8px 14px 16px 24px; border-radius: 12px; transition: transform .25s cubic-bezier(.2, .7, .2, 1), background .25s; cursor: default; }
.edu__item:hover { transform: translateX(7px); background: var(--mint); }
.edu__item:hover .edu__deg { color: var(--accent-deep); }
.edu__item:hover .edu__school { color: var(--ink); }
.edu__item:hover::before { background: var(--accent-deep); transform: scale(1.3); box-shadow: 0 0 0 4px var(--bg), 0 0 0 9px rgba(90, 126, 159, .15); }
.edu__item::before { content: ""; position: absolute; left: -7px; top: 16px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--bg); transition: transform .25s, background .25s, box-shadow .25s; }
.edu__deg { font-weight: 700; font-size: .95rem; transition: color .2s; }
.edu__school { color: var(--ink-soft); font-size: .87rem; transition: color .2s; }
.edu__dates { color: var(--ink-faint); font-size: .78rem; font-family: var(--mono); }
.socials { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.social { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: .88rem; box-shadow: var(--shadow); transition: transform .18s, border-color .2s, color .2s; }
.social:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent-deep); }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, 760px) 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.faq__list { max-width: 760px; display: flex; flex-direction: column; gap: 12px; }
.faq__side { display: flex; justify-content: center; }
@media (max-width: 900px) { .faq__grid { grid-template-columns: 1fr; } .faq__side { display: none; } }

/* faq side illustration */
.faq__illu { width: min(460px, 100%); height: auto; animation: floaty 7s ease-in-out infinite; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .25s; }
.faq__item:hover { box-shadow: var(--shadow-lg); }
.faq__q { display: flex; justify-content: space-between; align-items: center; gap: 14px; width: 100%; padding: 18px 22px; background: none; border: none; font-family: var(--font); font-size: .98rem; font-weight: 700; color: var(--ink); text-align: left; cursor: pointer; }
.faq__chev { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--ink-soft); transition: transform .45s cubic-bezier(.2, .7, .2, 1), background .25s, border-color .25s, color .25s, box-shadow .25s; }
.faq__chev svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.faq__q:hover .faq__chev { border-color: var(--accent); color: var(--accent-deep); }
.faq__item.is-open .faq__chev { transform: rotate(180deg); background: var(--accent); border-color: transparent; color: #fff; box-shadow: 0 8px 18px -6px rgba(90, 126, 159, .5); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .35s cubic-bezier(.2,.7,.2,1); }
.faq__a p { margin: 0; padding: 0 22px 18px; color: var(--ink-soft); font-size: .93rem; }

/* ---------- contact ---------- */
.contact { padding-bottom: 100px; }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: start; }
@media (max-width: 860px) { .contact__inner { grid-template-columns: 1fr; } }
.contact__info p { color: var(--ink-soft); max-width: 46ch; }
.contact__rows { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
.crow { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .94rem; color: var(--ink); padding: 4px 0; }
.crow:hover { color: var(--accent-deep); }
.crow__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--mint); font-size: .95rem; flex: none; }
.contact__note { font-size: .86rem; color: var(--ink-faint); margin-top: 18px; }
.cform .btn { justify-content: center; }
.cform { display: flex; flex-direction: column; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 3vw, 30px); box-shadow: var(--shadow-lg); }
.cform label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: .85rem; color: var(--ink-soft); }
.cform input, .cform textarea { font-family: var(--font); font-size: .95rem; padding: 12px 15px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); transition: border-color .2s, box-shadow .2s; resize: vertical; }
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(90, 126, 159, .13); background: #fff; }
.cform__note { color: var(--ink-faint); font-size: .77rem; margin: 0; text-align: center; }

/* ---------- footer ---------- */
.footer { background: var(--dark); color: #B7C6DA; padding: 60px 0 12px; }
.footer__cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 860px) { .footer__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .footer__cols { grid-template-columns: repeat(3, 1fr); row-gap: 30px; text-align: center; }
  .footer__brand { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; }
  .footer__brand p { margin: 14px 0 18px; }
  .footer__socials { justify-content: center; }
  .footer__base { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
  .footer__note { max-width: none; }
}
.footer__brand p { color: #8598B4; font-size: .9rem; max-width: 280px; margin: 14px 0 18px; }
.brand--footer { color: #EEF3FA; }
.brand--footer em { color: #9FC0DC; }
.footer__socials { display: flex; gap: 10px; }
.footer__socials a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .07); color: #E7EEF8; font-size: .82rem; font-weight: 700; transition: background .2s, transform .18s; }
.footer__socials a:hover { background: var(--accent); transform: translateY(-2px); }
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col h5 { margin: 0 0 6px; font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: #6D80A0; font-weight: 600; }
.footer__col a { color: #B7C6DA; font-size: .9rem; font-weight: 500; transition: color .18s; }
.footer__col a:hover { color: #9FC0DC; }
.footer__base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .09); margin-top: 42px; padding-top: 20px; padding-bottom: 14px; color: #6D80A0; font-size: .8rem; }
.footer__note { max-width: 420px; }

/* ---------- icon system (monochrome, palette-matched) ---------- */
.ic { width: 16px; height: 16px; display: block; }
.ic-s { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-f { fill: currentColor; }
.pcase__badge, .mb__badge { display: inline-flex; align-items: center; gap: 7px; }
.pcase__badge .ic, .mb__badge .ic { width: 13px; height: 13px; }
.hero__socials a svg, .social svg { width: 14px; height: 14px; fill: currentColor; display: block; }
.footer__socials a svg { width: 15px; height: 15px; fill: currentColor; display: block; margin: auto; }
.crow__icon { color: var(--accent-deep); }
.crow__icon svg { width: 16px; height: 16px; }
.tb__logo { display: inline-flex; align-items: center; padding: 0 17px; }
.tb__logo svg { width: 27px; height: 27px; fill: #9FC0DC; transition: fill .25s, transform .25s; }
.tb__logo svg.tb__glyph { fill: none; stroke: #9FC0DC; }
.tb__logo:hover svg { fill: #fff; transform: translateY(-2px); }
.tb__logo:hover svg.tb__glyph { fill: none; stroke: #fff; }
.tb__logo em { font-style: normal; color: #E7EEF8; font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; }
.pipe__icon { color: var(--ink-soft); }
.pipe__icon svg { width: 16px; height: 16px; }
.bento__icon svg { width: 20px; height: 20px; }
.ai__spark svg { width: 13px; height: 13px; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: none; }
.modal.is-open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(13, 33, 55, .55); backdrop-filter: blur(5px); animation: fade .2s; }
.modal__panel { position: absolute; inset: 4vh 0 0; margin: 0 auto; max-width: 960px; background: var(--bg); border-radius: 24px 24px 0 0; box-shadow: var(--shadow-lg); overflow-y: auto; animation: slideup .35s cubic-bezier(.2,.7,.2,1); }
@media (min-width: 900px) { .modal__panel { inset: 5vh 0 5vh; border-radius: 24px; height: 90vh; } }
.modal__panel { scrollbar-width: thin; scrollbar-color: rgba(13, 33, 55, .25) transparent; }
.modal__panel::-webkit-scrollbar { width: 8px; }
.modal__panel::-webkit-scrollbar-track { background: transparent; }
.modal__panel::-webkit-scrollbar-thumb { background: rgba(13, 33, 55, .22); border-radius: 999px; }
.modal__panel::-webkit-scrollbar-thumb:hover { background: rgba(13, 33, 55, .38); }
.modal__close { position: sticky; top: 14px; float: right; margin: 14px 14px 0 0; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: none; background: #fff; color: var(--ink); box-shadow: var(--shadow); cursor: pointer; font-size: 1rem; }
.modal__body { padding: 0 0 40px; }
.mb__inner { padding: 30px clamp(20px, 5vw, 48px) 0; position: relative; z-index: 2; }
.mb__badge { display: inline-flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 700; color: #fff; padding: 6px 13px; border-radius: 999px; margin-bottom: 14px; }
.mb__title { font-size: clamp(1.6rem, 4vw, 2.3rem); margin: 0 0 6px; letter-spacing: -.01em; }
.mb__role { color: var(--ink-faint); font-size: .9rem; font-weight: 500; margin: 0 0 22px; }
.mb__metrics { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 26px; }
.metric { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 11px 16px; font-weight: 700; font-size: .9rem; display: flex; align-items: center; gap: 9px; box-shadow: var(--shadow); }
.metric::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--card-color); }
.mb__summary p { color: var(--ink-soft); font-size: .99rem; margin: 0 0 16px; max-width: 70ch; }
.mb__label { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-faint); font-weight: 600; margin: 30px 0 12px; }
.mb__gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 720px) { .mb__gallery { grid-template-columns: repeat(2, 1fr); } }
.shot { aspect-ratio: 16/10; border-radius: 12px; overflow: hidden; cursor: pointer; border: 1px solid var(--line); background: #fff; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .3s; }
.shot:hover img { transform: scale(1.06); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center; background: rgba(7, 18, 33, .94); }
.lightbox.is-open { display: flex; }
.lb__img { max-width: 92vw; max-height: 86vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lb__close { position: absolute; top: 20px; right: 24px; background: rgba(255,255,255,.14); color: #fff; border: none; width: 44px; height: 44px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.14); color: #fff; border: none; width: 52px; height: 52px; border-radius: 50%; font-size: 1.8rem; cursor: pointer; line-height: 0; }
.lb__nav:hover, .lb__close:hover { background: rgba(255,255,255,.28); }
.lb__prev { left: 20px; } .lb__next { right: 20px; }
.lb__count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.85); font-family: var(--mono); font-size: .82rem; }
@media (max-width: 620px) { .lb__nav { width: 42px; height: 42px; font-size: 1.4rem; } .lb__prev { left: 8px; } .lb__next { right: 8px; } }

/* ---------- animations ---------- */
@keyframes fade { from { opacity: 0; } }
@keyframes slideup { from { transform: translateY(46px); opacity: 0; } }
.rise { opacity: 0; transform: translateY(24px) scale(.99); filter: blur(5px); animation: riseIn .85s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0s); }
@keyframes riseIn { to { opacity: 1; transform: none; filter: none; } }
.reveal { opacity: 0; transform: translateY(28px) scale(.99); filter: blur(6px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1), filter .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--rd, 0s); }
.reveal.in-view { opacity: 1; transform: none; filter: none; }
.fade-in { opacity: 0; transform: translateY(14px); filter: blur(4px); animation: riseIn .5s forwards; }

@media (max-width: 600px) {
  .brand__name { font-size: .9rem; }
}
@media (max-width: 400px) {
  .brand__name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .rise, .reveal, .fade-in { opacity: 1; transform: none; filter: none; }
  .ai__type, .ai__resp { animation-fill-mode: forwards !important; }
  .toolband__track { animation: none; }
}
