/* ==========================================================================
   Nice APP 2026
   ========================================================================== */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/fraunces.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("../fonts/fraunces-italic.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/instrument-sans.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("../fonts/instrument-sans-italic.woff2") format("woff2"); }

:root {
	--ground: #FBF8F3;
	--ground-2: #F3EEE6;
	--surface: #FFFFFF;
	--ink: #231B33;
	--muted: #5E5670;
	--faint: #A79DB8;
	--line: #E6DFD4;
	--purple: #6B5591;
	--purple-ink: #3B2E58;
	--purple-soft: #ECE7F4;
	--night: #2A2140;
	--night-2: #231B33;
	--night-line: #4A3E63;
	--night-text: #C9BFDB;
	--coral: #EF5B5B;
	--coral-ink: #B93A3A;
	--coral-soft: #FDE7E7;
	--sun: #FFC845;
	--sun-ink: #8A5F00;
	--sun-soft: #FFF3D1;
	--teal: #2FBFC4;
	--teal-ink: #11686C;
	--teal-soft: #DDF5F5;

	--serif: "Fraunces", "Iowan Old Style", Georgia, serif;
	--sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

	--radius-lg: 32px;
	--radius: 24px;
	--radius-sm: 14px;
	--ease: cubic-bezier(.2, .8, .2, 1);
	--gutter: clamp(20px, 4vw, 32px);
	--section: clamp(72px, 10vw, 120px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--purple); text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: color .25s ease; }
a:hover { color: var(--purple-ink); }
h1, h2, h3, h4, h5, h6 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .5em; font-variation-settings: "SOFT" 50; }
p { margin: 0 0 1em; }
strong, b { font-weight: 600; }
em { font-style: italic; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 780px; }

.icon { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Logo & ornaments ---------- */
.logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 28px; line-height: 1; color: var(--purple); letter-spacing: -0.02em; }
.logo__nice { font-weight: 600; }
.logo__app { font-weight: 700; }
.logo__arcs { width: 32px; height: 32px; }
.logo__arcs path, .ornament path { fill: none; stroke-linecap: round; }
.logo--light { color: #fff; }
.ornament path { stroke-width: 20; }
.site-header__brand:hover .logo__arcs path { animation: arc-wave 1.8s var(--ease) both; }
.site-header__brand:hover .logo__arcs path:nth-child(2) { animation-delay: .18s; }
.site-header__brand:hover .logo__arcs path:nth-child(3) { animation-delay: .36s; }
@keyframes arc-wave { 0% { stroke-dasharray: 120; stroke-dashoffset: 120; } 100% { stroke-dasharray: 120; stroke-dashoffset: 0; } }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--purple); }
.eyebrow a { text-decoration: none; }
.eyebrow--coral { color: var(--coral-ink); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--purple); color: #fff; font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .35s var(--ease), background .3s ease, color .3s ease, box-shadow .35s ease; }
.btn:hover { background: var(--purple-ink); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px -16px rgba(35, 27, 51, .6); }
.btn .icon { transition: transform .35s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--ground); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--sun { background: var(--sun); color: var(--ink); }
.btn--sun:hover { background: #fff; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 40px 0 0; }
.cta-row > p { margin: 0; }
.cta-row--center { justify-content: center; text-align: center; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 243, .86); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); transition: box-shadow .3s ease; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 80px; }
.site-header__brand { text-decoration: none; display: inline-flex; }
.site-header__menu { display: none; width: 48px; height: 48px; border: 0; border-radius: 14px; background: var(--surface); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.site-header__menu .icon { width: 24px; height: 24px; }

.nav__list { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border: 0; background: none; color: var(--ink); font: 500 16px/1.2 var(--sans); text-decoration: none; cursor: pointer; border-radius: 999px; position: relative; }
.nav__link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--sun); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after, .nav__item.is-current > .nav__link::after { transform: scaleX(1); }
.nav__toggle .icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.nav__item--parent.is-open .nav__toggle .icon { transform: rotate(180deg); }
.nav__item--accent > .nav__link { color: var(--purple); font-weight: 600; }
.nav__item--accent > .nav__link span { display: inline-block; transition: transform .35s var(--ease); }
.nav__item--accent > .nav__link:hover span { transform: translateX(4px); }
.nav__sub { position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; margin: 0; padding: 8px; list-style: none; background: var(--surface); border-radius: 18px; box-shadow: 0 24px 48px -20px rgba(35, 27, 51, .35); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s ease, transform .3s var(--ease), visibility .25s; }
.nav__item--parent.is-open > .nav__sub, .nav__item--parent:hover > .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub .nav__link { display: flex; width: 100%; padding: 10px 14px; border-radius: 12px; }
.nav__sub .nav__link::after { display: none; }
.nav__sub .nav__link:hover { background: var(--ground); }

@media (max-width: 960px) {
	.site-header__menu { display: inline-flex; }
	.nav { position: fixed; inset: 80px 0 0 0; overflow: auto; background: var(--ground); border-top: 1px solid var(--line); padding: 16px var(--gutter) 32px; display: none; }
	.nav.is-open { display: block; }
	.nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
	.nav__link { width: 100%; justify-content: space-between; padding: 14px 4px; font-size: 20px; font-family: var(--serif); border-radius: 0; border-bottom: 1px solid var(--line); }
	.nav__link::after { display: none; }
	.nav__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; padding: 0 0 8px 12px; display: none; min-width: 0; }
	.nav__item--parent.is-open > .nav__sub { display: block; }
	.nav__item--parent:hover > .nav__sub { opacity: 1; }
	.nav__sub .nav__link { font-family: var(--sans); font-size: 17px; border-bottom: 0; padding: 10px 4px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 9vw, 110px); }
.hero__inner { display: grid; gap: 56px; align-items: center; }
.hero--media .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.hero__title { margin: 0; font-size: clamp(42px, 6vw, 84px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 500; }
.hero__title em, .section-title em { color: var(--purple); }
.hero__lead { margin: 26px 0 34px; max-width: 560px; font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); }
.hero--page .hero__title { max-width: 980px; font-size: clamp(40px, 5.4vw, 74px); }
.hero--page .hero__lead { margin-bottom: 0; }
.hero__pair { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px 64px; font-size: 19px; color: var(--muted); }
.hero__pair strong { color: var(--ink); }
.hero__media { position: relative; }
.hero__ornament { position: absolute; right: -40px; top: -56px; width: clamp(180px, 24vw, 300px); height: auto; }
.hero__frame { position: relative; aspect-ratio: 5 / 4; border-radius: var(--radius-lg); overflow: hidden; background: var(--ground-2); box-shadow: 0 40px 80px -40px rgba(35, 27, 51, .5); }
.hero--home .hero__frame { aspect-ratio: 6 / 5; }
.hero__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 1s ease, transform 6s ease-out; }
.hero__frame img.is-active { opacity: 1; transform: scale(1); }
@media (max-width: 900px) {
	.hero--media .hero__inner { grid-template-columns: 1fr; }
	.hero__ornament { right: -10px; top: -36px; }
}

.platforms { border-block: 1px solid var(--line); }
.platforms__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; padding-block: 22px; font-family: var(--serif); font-size: clamp(18px, 1.8vw, 23px); color: var(--muted); }
.platforms__sep { font-weight: 700; }
.platforms__sep.c0 { color: var(--coral); }
.platforms__sep.c1 { color: var(--sun); }
.platforms__sep.c2 { color: var(--teal); }
@media (max-width: 700px) { .platforms__inner { justify-content: center; } }

/* ---------- Sections ---------- */
.section { position: relative; padding: var(--section) 0; }
.section--tight { padding: clamp(32px, 5vw, 56px) 0; }
.landing > .section + .section:not(.section--dark):not(.section--tight) { padding-top: calc(var(--section) * .5); }
.section--dark { background: var(--night); color: #F4F0FA; overflow: hidden; }
.section--dark .section-title em { color: var(--sun); }
.section--dark .lead, .section--dark .section-head__body { color: var(--night-text); }
.section--dark a:not(.btn) { color: var(--sun); }
.section__ornament { position: absolute; right: -30px; bottom: -30px; width: clamp(200px, 24vw, 340px); height: auto; opacity: .9; pointer-events: none; }
.section--dark > .container { position: relative; }
#guide { background: var(--ground-2); }

.section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 80px; align-items: end; }
.section-title { margin: 0; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.05; letter-spacing: -0.025em; }
.section-title--sm { font-size: clamp(28px, 3vw, 38px); margin-bottom: 24px; }
.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--ink); margin: 0 0 12px; }
.section-head__body { color: var(--muted); }
.section-head__body p:last-child { margin-bottom: 0; }
.section-head__body .cta-row { margin-top: 24px; justify-content: flex-start; }
.section--dark .section-head--split { grid-template-columns: 1fr; align-items: start; gap: 16px; }
.section--dark .section-head .lead { max-width: 680px; color: var(--night-text); }
@media (max-width: 860px) { .section-head--split { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; transition: transform .45s var(--ease), box-shadow .45s ease; }
a.card:hover, .card--service:hover { color: var(--ink); transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(35, 27, 51, .35); }
.card__media { overflow: hidden; aspect-ratio: 16 / 10; background: var(--ground-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
a.card:hover .card__media img { transform: scale(1.05); }
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 26px 26px 30px; flex: 1; }
.card__title { margin: 0; font-size: 25px; line-height: 1.18; }
.card__text { font-size: 15.5px; color: var(--muted); }
.card__text p:last-child { margin: 0; }
.card__more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--purple); }
.card__more .icon { transition: transform .35s var(--ease); }
a.card:hover .card__more .icon { transform: translateX(4px); }
.card--service, .card--plain { padding: 34px 30px; gap: 14px; }
.card__top { display: flex; align-items: center; justify-content: space-between; }
.card__num { font-family: var(--serif); font-size: 18px; color: var(--faint); }
.card__icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; transition: transform .45s var(--ease); }
.card__icon .icon { width: 26px; height: 26px; }
.card--service:hover .card__icon { transform: rotate(-8deg) scale(1.06); }
.card--service .card__title { margin-top: 8px; }
.tone-0 .card__icon { background: var(--coral-soft); color: var(--coral-ink); }
.tone-1 .card__icon { background: var(--sun-soft); color: var(--sun-ink); }
.tone-2 .card__icon { background: var(--teal-soft); color: var(--teal-ink); }
.tone-3 .card__icon { background: var(--purple-soft); color: var(--purple); }
.card__list { margin: 0; padding-left: 18px; color: var(--muted); }

/* ---------- Features (dark listing) ---------- */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 80px; max-width: 1040px; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }
.section--dark .features { padding-bottom: 40px; }
.feature { border-top: 1px solid var(--line); padding-top: 28px; }
.section--dark .feature { border-top-color: var(--night-line); }
.feature__title { font-size: clamp(24px, 2.2vw, 28px); margin-bottom: 12px; }
.feature__text { color: var(--muted); }
.section--dark .feature__text { color: var(--night-text); }
.section--dark .feature__text strong { color: #fff; }
.feature__text p:last-child { margin: 0; }

/* Home: CTA after the dark section sits inside its bottom padding */
.cta-row--home { position: relative; z-index: 2; max-width: 1240px; margin: calc(var(--section) * -1 + 8px) auto calc(var(--section) - 58px); padding-inline: var(--gutter); }
.landing > hr { display: none; }

/* ---------- Projects ---------- */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 28px; }
.project-card { display: flex; flex-direction: column; background: var(--surface); border-radius: 28px; overflow: hidden; color: var(--ink); text-decoration: none; transition: transform .45s var(--ease), box-shadow .45s ease; }
a.project-card:hover { color: var(--ink); transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(35, 27, 51, .35); }
.project-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ground-2); }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
a.project-card:hover .project-card__media img { transform: scale(1.05); }
.project-card__body { padding: 22px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project-card__title { margin: 0; font-size: 24px; }
.project-card__text { margin: 0; font-size: 15px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.tag { padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.4; }
.tag--purple { background: var(--purple-soft); color: #4E3D72; }
.tag--teal { background: var(--teal-soft); color: var(--teal-ink); }

.archive { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.archive__row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1.2fr) minmax(0, 1.2fr) 24px; gap: 8px 24px; align-items: center; padding: 20px 8px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: background .3s ease, padding .35s var(--ease); }
a.archive__row:hover { background: var(--surface); padding-left: 20px; color: var(--ink); }
.archive__title { font-family: var(--serif); font-size: 22px; line-height: 1.25; }
.archive__meta { font-size: 15px; color: var(--muted); }
.archive__arrow { color: var(--purple); font-size: 20px; transition: transform .35s var(--ease), color .3s ease; }
a.archive__row:hover .archive__arrow { transform: translateX(4px); color: var(--coral); }
@media (max-width: 760px) { .archive__row { grid-template-columns: 1fr 24px; } .archive__meta { grid-column: 1; } .archive__arrow { grid-row: 1; grid-column: 2; } }

/* ---------- Posts ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; transition: transform .45s var(--ease), box-shadow .45s ease; }
.post-card:hover { color: var(--ink); transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(35, 27, 51, .35); }
.post-card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--ground-2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { display: flex; flex-direction: column; gap: 12px; padding: 26px 28px 28px; flex: 1; }
.post-card__body .eyebrow { margin: 0; font-size: 12px; }
.post-card__title { font-family: var(--serif); font-size: 24px; line-height: 1.22; }
.post-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--purple); }
.post-card__more .icon { transition: transform .35s var(--ease); }
.post-card:hover .post-card__more .icon { transform: translateX(4px); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.chip { padding: 9px 16px; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; transition: background .25s ease, color .25s ease; }
.chip:hover { background: var(--purple-soft); color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--ground); }

.pagination, .nav-links { margin-top: 48px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.page-numbers { min-width: 46px; height: 46px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; }
.page-numbers.current { background: var(--ink); color: var(--ground); }
a.page-numbers:hover { background: var(--purple-soft); color: var(--ink); }

/* ---------- Article ---------- */
.article__head { max-width: 960px; padding-top: clamp(40px, 6vw, 72px); padding-bottom: 40px; text-align: center; }
.article__head .eyebrow { justify-content: center; flex-wrap: wrap; }
.article__title { margin: 0 auto; font-size: clamp(36px, 4.8vw, 62px); line-height: 1.06; letter-spacing: -0.025em; }
.article__author { margin: 20px 0 0; color: var(--muted); font-size: 15px; }
.article__cover { max-width: 1160px; margin: 0 auto; }
.article__cover img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--radius-lg); }
.article__body { padding-top: clamp(48px, 6vw, 72px); padding-bottom: 24px; }

.post-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; padding-bottom: var(--section); }
.post-nav__link { display: flex; flex-direction: column; gap: 6px; padding: 24px 28px; border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; transition: transform .45s var(--ease), box-shadow .45s ease; }
.post-nav__link:hover { color: var(--ink); transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(35, 27, 51, .35); }
.post-nav__link .eyebrow { margin: 0; font-size: 12px; }
.post-nav__link--next { text-align: right; align-items: flex-end; }
.post-nav__title { font-family: var(--serif); font-size: 20px; line-height: 1.25; }

/* ---------- Prose (post & legacy page content) ---------- */
.prose { font-size: 19px; line-height: 1.75; }
.prose > *:first-child { margin-top: 0; }
.prose h1 { font-size: clamp(32px, 3.6vw, 44px); margin: 1.6em 0 .4em; }
.prose h2 { font-size: clamp(28px, 3vw, 38px); margin: 1.7em 0 .5em; }
.prose h3 { font-size: clamp(22px, 2.2vw, 27px); margin: 1.5em 0 .4em; }
.prose h4 { font-size: 21px; margin: 1.4em 0 .4em; }
.prose p, .prose ul, .prose ol, .prose dl, .prose table, .prose blockquote, .prose figure { margin: 0 0 1.25em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--coral); }
.prose dt { font-weight: 600; margin-top: .8em; }
.prose dd { margin: 0 0 .6em; color: var(--muted); }
.prose img { border-radius: var(--radius-sm); height: auto; }
.prose figure img { margin: 0 auto; }
.prose figcaption, .prose .wp-caption-text, .prose .wp-element-caption { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }
.prose blockquote { padding: 26px 30px; border-radius: var(--radius); background: var(--surface); font-family: var(--serif); font-style: italic; font-size: 1.2em; line-height: 1.5; color: var(--purple-ink); }
.prose blockquote p:last-child { margin: 0; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 3em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.prose code { font-size: .88em; padding: .15em .4em; border-radius: 6px; background: var(--purple-soft); }
.prose pre { overflow-x: auto; padding: 20px; border-radius: var(--radius-sm); background: var(--night); color: #F4F0FA; font-size: 15px; }
.prose pre code { background: none; padding: 0; }
.prose iframe { max-width: 100%; border-radius: var(--radius-sm); }
.prose .wp-block-image.aligncenter, .prose .aligncenter { margin-inline: auto; text-align: center; }
.prose .alignleft { float: left; margin: .3em 1.5em 1em 0; }
.prose .alignright { float: right; margin: .3em 0 1em 1.5em; }
.prose .wp-block-embed__wrapper { position: relative; }
.prose__cover img { width: 100%; border-radius: var(--radius-lg); }
.prose--case h1 { color: var(--purple); margin-bottom: .1em; }
.prose--case h1 + h2 { font-size: clamp(20px, 2vw, 24px); font-style: italic; color: var(--muted); margin-top: 0; }
.prose--case { max-width: 960px; }

/* Table of contents plugin */
#toc_container { background: var(--surface) !important; border: 0 !important; border-radius: var(--radius); padding: 22px 26px !important; width: auto !important; display: block !important; margin: 0 0 2em !important; font-size: 16px; }
#toc_container .toc_title { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: left !important; }
#toc_container ul { padding-left: 0; }
#toc_container li { list-style: none; }
#toc_container li::marker { content: none; }
#toc_container a { text-decoration: none; }

/* ---------- Legacy grid (Bootstrap classes inside old content) ---------- */
.row { display: flex; flex-wrap: wrap; gap: 24px 32px; margin: 0 0 24px; }
.row > * { flex: 1 1 260px; min-width: 0; }
.row > .col-md-2, .row > .col-lg-2 { flex: 0 0 96px; }
.row > .col-md-10, .row > .col-lg-10, .row > .col-md-12, .row > .col-lg-12, .row > .col-12 { flex: 1 1 60%; }
.row > .col-md-3, .row > .col-lg-3 { flex: 1 1 200px; }
.row > .col-md-4, .row > .col-lg-4 { flex: 1 1 240px; }
.row > .col-md-6, .row > .col-lg-6 { flex: 1 1 320px; }
.row > .col-md-8, .row > .col-lg-8 { flex: 2 1 420px; }
.row.mb-3 { margin-bottom: 28px; }
.tech-list .row { align-items: center; padding: 20px 24px; margin-bottom: 14px; border-radius: var(--radius); background: var(--surface); }
.tech-list .row img { width: 64px; height: 64px; object-fit: contain; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.section-container { margin-bottom: 32px; }
.section-title-border { display: inline; }
.img-responsive { max-width: 100%; height: auto; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 300px)); gap: 28px; }
.person { margin: 0; background: var(--surface); border-radius: 28px; overflow: hidden; }
.person__photo { aspect-ratio: 1; overflow: hidden; background: var(--ground-2); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); transition: transform .7s var(--ease), filter .5s ease; }
.person:hover .person__photo img { transform: scale(1.04); filter: saturate(1.05); }
.person figcaption { display: flex; flex-direction: column; gap: 4px; padding: 22px 24px 26px; }
.person__name { font-family: var(--serif); font-weight: 500; font-size: 24px; }
.person__role { color: var(--muted); font-size: 15px; }
.person__links { display: flex; gap: 10px; margin-top: 10px; }
.person__links a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--purple-soft); color: var(--purple); transition: background .25s ease, color .25s ease; }
.person__links a:hover { background: var(--purple); color: #fff; }

/* ---------- CTA band, promo, price ---------- */
.cta-band { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: clamp(32px, 5vw, 56px); border-radius: var(--radius-lg); background: var(--night); color: #F4F0FA; }
.cta-band__title { position: relative; margin: 0; flex: 1 1 320px; font-family: var(--serif); font-size: clamp(26px, 3vw, 38px); line-height: 1.15; }
.cta-band__text { position: relative; flex: 1 1 100%; color: var(--night-text); }
.cta-band .btn { position: relative; }
.cta-band__ornament { position: absolute; right: -60px; bottom: -80px; width: 240px; height: auto; opacity: .35; }
.cta-band--inline { margin: 32px 0; }

.promo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 0; align-items: stretch; background: var(--surface); border-radius: 40px; overflow: hidden; }
.promo__text { padding: clamp(32px, 5vw, 64px); }
.promo__text .section-title { font-size: clamp(30px, 3.4vw, 46px); margin-bottom: 20px; }
.promo__text p { color: var(--muted); }
.promo__text strong { color: var(--ink); }
.promo__media { background: var(--purple-soft); min-height: 320px; }
.promo__media img { width: 100%; height: 100%; object-fit: cover; }
.promo--reverse .promo__media { order: -1; }
@media (max-width: 860px) { .promo { grid-template-columns: 1fr; } }

.price { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; margin: 16px 0 24px; text-align: center; }
.price__heading { font-size: 15px; color: var(--muted); }
.price__button { display: inline-flex; flex-direction: column; align-items: center; padding: 18px 34px; border-radius: 22px; background: var(--purple); color: #fff; text-decoration: none; transition: transform .35s var(--ease), background .3s ease; }
.price__button:hover { color: #fff; background: var(--purple-ink); transform: translateY(-3px); }
.price__amount { font-family: var(--serif); font-size: 34px; line-height: 1.1; }
.price__vat { font-size: 13px; opacity: .8; }
.price__footer { font-size: 14px; color: var(--muted); }

/* ---------- Case study ---------- */
.appinfo { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px 40px; align-items: center; padding: 32px; border-radius: var(--radius-lg); background: var(--surface); }
.appinfo__logo { width: 96px; height: 96px; border-radius: 22px; object-fit: cover; }
.appinfo__facts { display: flex; flex-wrap: wrap; gap: 16px 40px; margin: 0; }
.appinfo__facts dt { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.appinfo__facts dd { margin: 2px 0 0; font-family: var(--serif); font-size: 20px; }
.appinfo__stores { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .appinfo { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.form-card { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 40px 64px; padding: clamp(28px, 5vw, 64px); border-radius: 40px; background: var(--surface); }
.form-card__intro .section-title { font-size: clamp(30px, 3.4vw, 46px); margin-bottom: 16px; }
.form-card__intro p { color: var(--muted); }
.form-card__intro .lead { color: var(--ink); }
.form-card__mail { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.form-card__mail .icon { color: var(--coral); width: 22px; height: 22px; }
@media (max-width: 860px) { .form-card { grid-template-columns: 1fr; } }

.wpcf7 form p { margin: 0 0 18px; }
.wpcf7 label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 input[type="url"], .wpcf7 input[type="number"], .wpcf7 select, .wpcf7 textarea {
	width: 100%; margin-top: 6px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--ground); color: var(--ink); font: 400 16px/1.5 var(--sans); transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.wpcf7 textarea { min-height: 150px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--purple); background: #fff; box-shadow: 0 0 0 4px var(--purple-soft); }
.wpcf7 input[type="submit"], .wpcf7 button[type="submit"] { display: inline-flex; min-height: 52px; padding: 0 30px; border: 0; border-radius: 999px; background: var(--purple); color: #fff; font: 600 16px/1 var(--sans); cursor: pointer; transition: background .3s ease, transform .35s var(--ease); }
.wpcf7 input[type="submit"]:hover { background: var(--purple-ink); transform: translateY(-2px); }
.wpcf7 .wpcf7-list-item { margin: 0 12px 0 0; }
.wpcf7 .wpcf7-acceptance label, .wpcf7 .wpcf7-list-item label { font-weight: 400; color: var(--muted); display: inline-flex; gap: 8px; align-items: flex-start; }
.wpcf7-not-valid-tip { font-size: 13px; color: var(--coral-ink); margin-top: 4px; }
.wpcf7 form .wpcf7-response-output { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; border: 0; background: var(--ground-2); font-size: 15px; }

.mapcard { position: relative; overflow: hidden; display: flex; align-items: center; gap: 24px; padding: 32px clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); text-decoration: none; transition: transform .45s var(--ease), box-shadow .45s ease; }
.mapcard:hover { color: var(--ink); transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(35, 27, 51, .3); }
.mapcard__icon { width: 64px; height: 64px; flex: none; border-radius: 20px; display: grid; place-items: center; background: var(--coral-soft); color: var(--coral-ink); }
.mapcard__icon .icon { width: 30px; height: 30px; }
.mapcard__text { position: relative; display: flex; flex-direction: column; gap: 4px; }
.mapcard__text .eyebrow { margin: 0; }
.mapcard__text strong { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 2.4vw, 30px); }
.mapcard__text span:last-child { display: inline-flex; align-items: center; gap: 8px; color: var(--purple); font-weight: 600; }
.mapcard__ornament { position: absolute; right: -50px; bottom: -70px; width: 220px; height: auto; opacity: .25; }

/* ---------- Misc blocks ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin: 0 0 1.5em; }
.gallery-grid img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius-sm); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.gallery-item { margin: 0; }
.divider { display: flex; align-items: center; gap: 16px; margin: 2.5em 0; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.counters { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.counter strong { display: block; font-family: var(--serif); font-size: 48px; font-weight: 500; }
.steps { display: grid; gap: 20px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 20px; padding: 24px; border-radius: var(--radius); background: var(--surface); }
.step__num { font-family: var(--serif); font-size: 32px; color: var(--coral); }
.wrapper { position: relative; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night-2); color: #D9D2E6; font-size: 15px; }
.site-footer a { color: #D9D2E6; text-decoration: none; transition: color .25s ease; }
.site-footer a:hover { color: var(--sun); }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 48px; padding-top: 80px; padding-bottom: 48px; }
.site-footer__brand p { margin: 16px 0 0; }
.site-footer__social { display: flex; gap: 10px; }
.site-footer__social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #3A2F52; }
.site-footer__social a:hover { background: var(--sun); color: var(--ink); }
.site-footer__social .icon { width: 20px; height: 20px; }
.site-footer__title { margin: 0 0 14px; color: #fff; font-size: 20px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 40px; border-top: 1px solid #3A2F52; color: var(--faint); }
.site-footer__bottom a { color: #D9D2E6; text-decoration: underline; text-decoration-color: #4A3E63; }
@media (max-width: 960px) { .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer__top { grid-template-columns: 1fr; } }

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

/* Stray autop output between nested shortcodes */
:is(.cards, .features, .team, .projects, .posts, .counters, .steps, .gallery-grid) > :is(br, p) { display: none; }

.landing > .section:has(+ .section--tight) { padding-bottom: 0; }
.landing > .section:has(+ .section--tight) .section-head { margin-bottom: 8px; }

/* First section of pages without a hero acts as the page header */
.landing > .section:first-child { padding-top: clamp(48px, 7vw, 88px); }
.section-head--page .section-title { font-size: clamp(40px, 5.4vw, 74px); letter-spacing: -0.03em; }
.section-head--page.section-head--split { align-items: start; }

/* CF7 markup from the old forms */
.wpcf7 fieldset { border: 0; margin: 0; padding: 0; min-width: 0; text-align: left; }
.wpcf7 hr { border: 0; height: 1px; background: var(--line); margin: 24px 0; }
.wpcf7 .wow { visibility: visible !important; animation: none !important; }
.form-card__form > p:first-child { font-family: var(--serif); font-size: 22px; line-height: 1.3; }
.form-card__form > p { color: var(--muted); }
.form-card__intro > .lead:first-child { font-family: var(--serif); font-size: clamp(28px, 3vw, 40px); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 18px; }
/* Unbalanced <p> from old content become empty paragraphs in the browser */
.landing p:empty, .prose p:empty, .row > br { display: none; }
.tech-list .row > .col-md-2 { flex: 0 0 72px; }
.tech-list .row p { margin: 0; }
/* Decorative arcs may bleed past the edge: never cause horizontal scroll */
html, body { overflow-x: clip; }
.hero, .site-main > section, .landing > section { overflow-x: clip; }
.hero__inner > * { min-width: 0; }
@media (max-width: 600px) {
	.hero__ornament { width: 140px; right: -16px; top: -28px; }
	.card--service, .card--plain { padding: 28px 24px; }
	.section-title { font-size: clamp(32px, 9vw, 44px); }
}
/* Logged-in admin bar */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
