/* Home: "My Journey" as a two-column editorial layout instead of a long sticky stack.
   Scoped to #journey so the About page keeps its own stacking interaction. */
#journey .container { max-width: 1240px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
#journey .services-heading { text-align: left; margin: 0; position: sticky; top: calc(var(--header-offset, 92px) + 24px); }
#journey .services-heading .title { text-align: left; font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.1; letter-spacing: -.015em; margin: 0 0 20px; }
#journey .services-heading .description { text-align: left; max-width: 52ch; margin: 0; font-size: 1.02rem; line-height: 1.75; }
#journey .journey-stack { max-width: none; margin: 0; padding-bottom: 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; counter-reset: jc; }
#journey .journey-card { position: relative; top: auto !important; margin-top: 0 !important; z-index: auto !important; height: 100%; padding: 28px; gap: 12px; background: var(--surface, #fff); counter-increment: jc; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; filter: none !important; }
#journey .journey-card::after { content: "0" counter(jc); position: absolute; top: 24px; right: 26px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; color: var(--ink-500, #8a8a8a); }
#journey .journey-card__title { font-size: 1.15rem; }
#journey .journey-card__desc { font-size: .95rem; line-height: 1.65; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  #journey .journey-card:hover { transform: translateY(-5px); box-shadow: 0 22px 44px rgba(15, 23, 32, .14); }
}
@media (max-width: 980px) {
  #journey .container { grid-template-columns: minmax(0, 1fr); }
  #journey .services-heading { position: static; }
}
@media (max-width: 600px) { #journey .journey-stack { grid-template-columns: minmax(0, 1fr); } }

/* More Work: four cards in one row on wide screens (no orphan on a second row) */
@media (min-width: 1180px) { .projects .mw-grid:has(> li:nth-child(4)):not(:has(> li:nth-child(5))) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Home: "Let's work together" as a full-width band */
[data-contact-cta="home"] .ccta { padding-inline: 0; }
[data-contact-cta="home"] .ccta__card { max-width: none; width: 100%; border-radius: 0; border-inline: 0; padding-block: clamp(40px, 7vw, 88px); padding-inline: max(24px, calc((100% - 1240px) / 2)); }
[data-contact-cta="home"] .ccta__card::before { left: max(24px, calc((100% - 1240px) / 2)); }

/* Web Developer: "Browse the portfolio" gateway */
.gate { padding: clamp(56px, 8vw, 112px) clamp(24px, 5vw, 56px); }
.gate__rail { max-width: 1240px; margin: 0 auto; }
.gate__head { max-width: 62ch; margin: 0 0 clamp(28px, 4vw, 48px); }
.gate__eyebrow { margin: 0 0 12px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-deep, #2b6f91); }
.gate__title { margin: 0 0 14px; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -.015em; font-weight: 800; color: var(--ink-900, #141313); }
.gate__sub { margin: 0; font-size: 1.05rem; line-height: 1.65; color: var(--ink-600, #4a4949); }
.gate__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); margin: 0; padding: 0; list-style: none; }
.gate__card { margin: 0; }
.gate__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; background: var(--surface, #fff); border: 1px solid var(--line-soft, rgba(20,19,19,.08)); border-radius: 24px; overflow: hidden; box-shadow: 0 14px 34px rgba(15, 23, 32, .08); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease; }
.gate__card--current .gate__link { border-color: var(--blue, #398fba); box-shadow: 0 0 0 1px var(--blue, #398fba), 0 14px 34px rgba(15, 23, 32, .08); }
.gate__fig { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-sunken, #eef3f6); }
.gate__fig img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.gate__body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: clamp(22px, 3vw, 36px); flex: 1; }
.gate__tag { padding: 5px 12px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--surface-sunken, #eef3f6); color: var(--ink-600, #4a4949); }
.gate__tag--here { background: var(--blue, #398fba); color: #fff; }
.gate__h3 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; line-height: 1.15; color: var(--ink-900, #141313); }
.gate__p { margin: 0; max-width: 46ch; font-size: 1rem; line-height: 1.65; color: var(--ink-600, #4a4949); }
.gate__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.gate__chips li { padding: 4px 12px; border: 1px solid var(--line-med, rgba(43,111,145,.25)); border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--ink-700, #3a3939); }
.gate__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--blue-deep, #2b6f91); }
.gate__cta svg { width: 18px; height: 18px; transition: transform .3s ease; }
.gate__link:focus-visible { outline: 3px solid var(--blue, #398fba); outline-offset: 4px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .gate__link:hover { transform: translateY(-6px); box-shadow: 0 26px 52px rgba(15, 23, 32, .16); }
  .gate__link:hover .gate__fig img { transform: scale(1.04); }
  .gate__link:hover .gate__cta svg { transform: translateX(5px); }
}
@media (max-width: 800px) { .gate__grid { grid-template-columns: minmax(0, 1fr); } }

/* Home: "Right now" panel */
.now { padding: clamp(24px, 5vw, 56px) clamp(24px, 5vw, 56px) clamp(8px, 2vw, 24px); }
.now__rail { position: relative; isolation: isolate; overflow: hidden; max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(28px, 5vw, 64px); border-radius: 32px; color: #fff; background: radial-gradient(120% 140% at 0% 0%, #1f6a8f 0%, #14384f 45%, #0e2230 100%); box-shadow: 0 30px 70px rgba(14, 34, 48, .35); }
.now__rail::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(80% 90% at 20% 0%, #000, transparent 75%); -webkit-mask-image: radial-gradient(80% 90% at 20% 0%, #000, transparent 75%); }
.now__glow { position: absolute; z-index: -1; right: -12%; bottom: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,108,99,.45), transparent 65%); filter: blur(20px); }
.now__status { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 7px 14px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #d6f5e7; background: rgba(47,182,122,.16); border: 1px solid rgba(47,182,122,.4); }
.now__dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 0 rgba(61,220,151,.6); }
@media (prefers-reduced-motion: no-preference) { .now__dot { animation: nowPulse 2.2s ease-out infinite; } }
@keyframes nowPulse { 0% { box-shadow: 0 0 0 0 rgba(61,220,151,.6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(61,220,151,0); } }
.now__title { margin: 0 0 16px; font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.now__title span { display: block; background: linear-gradient(90deg, #8fcdee, #ffb3ad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.now__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; font-size: 1rem; color: rgba(255,255,255,.78); }
.now__meta strong { color: #fff; font-weight: 700; }
.now__tiles { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.now__tile { padding: 22px; border-radius: 20px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.now__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 12px; background: linear-gradient(135deg, rgba(143,205,238,.28), rgba(255,108,99,.28)); color: #fff; }
.now__icon svg { width: 22px; height: 22px; }
.now__tile h3 { margin: 0 0 6px; font-size: 1.02rem; font-weight: 700; color: #fff; }
.now__tile p { margin: 0; font-size: .92rem; line-height: 1.55; color: rgba(255,255,255,.76); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .now__tile { transition: transform .3s cubic-bezier(.2,.7,.2,1), background-color .3s ease, border-color .3s ease; }
  .now__tile:hover { transform: translateY(-4px); background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); }
}
@media (max-width: 900px) { .now__rail { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .now__tiles { grid-template-columns: minmax(0, 1fr); } }

/* Developer variant: mirrored layout, coral-leaning palette */
.now--dev .now__rail { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); background: radial-gradient(120% 140% at 100% 0%, #b4443f 0%, #4a2342 42%, #151a33 100%); box-shadow: 0 30px 70px rgba(30, 20, 50, .38); }
.now--dev .now__glow { right: auto; left: -12%; bottom: -40%; background: radial-gradient(circle, rgba(57,143,186,.5), transparent 65%); }
.now--dev .now__title span { background: linear-gradient(90deg, #ffd1c9, #8fcdee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.now--dev .now__icon { background: linear-gradient(135deg, rgba(255,179,173,.3), rgba(143,205,238,.28)); }
.now--dev .now__intro { text-align: left; }
@media (max-width: 900px) { .now--dev .now__rail { grid-template-columns: minmax(0, 1fr); } .now--dev .now__intro { order: -1; } }

/* Home: worked-with strip, tools strip, role lines */
.trust { padding: clamp(20px, 3vw, 36px) clamp(24px, 5vw, 56px) 0; }
.trust__rail { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr; gap: clamp(16px, 3vw, 40px); align-items: center; padding-block: clamp(16px, 2.4vw, 28px); border-block: 1px solid var(--line-soft, rgba(20,19,19,.1)); }
.trust__label, .tools__label { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-500, #6b6a6a); }
.trust__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px 28px; margin: 0; padding: 0; list-style: none; }
.trust__list li { display: flex; flex-direction: column; gap: 3px; }
.trust__list strong { font-size: 1rem; font-weight: 800; color: var(--ink-900, #141313); }
.trust__list span { font-size: .8rem; line-height: 1.4; color: var(--ink-600, #4a4949); }
.tools { padding: clamp(8px, 2vw, 20px) clamp(24px, 5vw, 56px); }
.tools__rail { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr; gap: clamp(16px, 3vw, 40px); align-items: center; }
.tools__list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tools__list li { padding: 8px 16px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--ink-700, #3a3939); background: var(--surface, #fff); border: 1px solid var(--line-soft, rgba(20,19,19,.1)); }
.mw-card__role { margin: 6px 0 0; font-size: .8rem; font-weight: 600; line-height: 1.4; color: var(--blue-deep, #2b6f91); }
@media (max-width: 760px) { .trust__rail, .tools__rail { grid-template-columns: minmax(0, 1fr); } }

/* Worked-with strip, v2 */
.trust { padding: clamp(24px, 4vw, 48px) clamp(24px, 4vw, 72px) 0; }
.trust__rail { max-width: 1320px; margin: 0 auto; display: block; padding: 0; border: 0; }
.trust__label { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; }
.trust__label::after { content: ""; flex: 1; height: 1px; background: var(--line-soft, rgba(20,19,19,.12)); }
.trust__label span { display: none; }
.trust__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.trust__item { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "mono txt" "date date"; align-items: center; gap: 12px 14px; padding: 18px; border-radius: 20px; background: var(--surface, #fff); border: 1px solid var(--line-soft, rgba(20,19,19,.08)); box-shadow: 0 8px 22px rgba(15,23,32,.05); }
.trust__mono { grid-area: mono; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 16px; font-size: .85rem; font-weight: 800; letter-spacing: .04em; color: #fff; background: linear-gradient(135deg, #2b6f91, #14384f); }
.trust__item:nth-child(2) .trust__mono { background: linear-gradient(135deg, #ff6c63, #b4443f); }
.trust__item:nth-child(3) .trust__mono { background: linear-gradient(135deg, #7a66c9, #3b2f86); }
.trust__item:nth-child(4) .trust__mono { background: linear-gradient(135deg, #2fb67a, #17694a); }
.trust__txt { grid-area: txt; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.trust__txt strong { font-size: 1rem; font-weight: 800; line-height: 1.2; color: var(--ink-900, #141313); }
.trust__role { font-size: .84rem; line-height: 1.4; color: var(--ink-600, #4a4949); }
.trust__date { grid-area: date; justify-self: start; padding: 4px 12px; border-radius: 999px; font-size: .76rem; font-weight: 700; white-space: nowrap; color: var(--blue-deep, #2b6f91); background: var(--surface-sunken, #eef3f6); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .trust__item { transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease; } .trust__item:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(15,23,32,.1); } }
@media (max-width: 1000px) { .trust__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .trust__list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .trust__item { grid-template-columns: auto 1fr auto; grid-template-areas: "mono txt date"; padding: 14px; gap: 12px; }
  .trust__date { justify-self: end; }
}
/* v2 specificity fixes */
.trust__list .trust__item { display: grid; flex-direction: initial; text-align: left; }
.trust__list .trust__item .trust__mono { color: #fff; font-size: .85rem; line-height: 1; }
.trust__list .trust__item .trust__txt strong { font-size: 1rem; }
.trust__list .trust__item .trust__role { font-size: .84rem; }
.trust__list .trust__item .trust__date { font-size: .76rem; }
@media (max-width: 520px) { .trust__list .trust__item { grid-template-columns: auto 1fr auto; grid-template-areas: "mono txt date"; } }
/* Worked-with strip: spacing pass */
.trust { padding: clamp(28px, 4vw, 52px) clamp(24px, 4vw, 72px) clamp(36px, 5vw, 72px); }
.trust__label { margin-bottom: clamp(16px, 2vw, 24px); }
.trust__list { gap: clamp(14px, 1.6vw, 22px); align-items: stretch; }
.trust__list .trust__item { grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; row-gap: 14px; align-content: start; padding: 22px; min-height: 0; }
.trust__list .trust__item .trust__mono { width: 48px; height: 48px; margin: 0; }
.trust__list .trust__item .trust__txt { padding-top: 1px; gap: 4px; }
.trust__list .trust__item .trust__date { grid-column: 1 / -1; margin: 0; padding: 5px 14px; }
@media (max-width: 1000px) { .trust__list .trust__item { padding: 20px; } }
@media (max-width: 520px) {
  .trust { padding-bottom: 28px; }
  .trust__list .trust__item { grid-template-columns: 44px minmax(0, 1fr) auto; column-gap: 14px; row-gap: 0; padding: 14px 16px; align-items: center; }
  .trust__list .trust__item .trust__mono { width: 44px; height: 44px; }
  .trust__list .trust__item .trust__date { grid-column: auto; justify-self: end; padding: 4px 10px; }
}

/* "Right now": AI row */
.now__ai { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px 22px; align-items: center; margin-top: clamp(4px, 1vw, 12px); padding: 20px 24px; border-radius: 24px; background: linear-gradient(120deg, rgba(143,205,238,.16), rgba(255,108,99,.16)); border: 1px solid rgba(255,255,255,.22); }
.now__ai-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: rgba(255,255,255,.16); color: #fff; }
.now__ai-icon svg { width: 24px; height: 24px; }
.now__ai-text h3 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 800; color: #fff; }
.now__ai-text p { margin: 0; max-width: 62ch; font-size: .92rem; line-height: 1.55; color: rgba(255,255,255,.82); }
.now__ai-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: 0; padding: 0; list-style: none; max-width: 340px; }
.now__ai-chips li { padding: 6px 12px; border-radius: 999px; font-size: .76rem; font-weight: 700; color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); white-space: nowrap; }
@media (max-width: 900px) { .now__ai { grid-template-columns: auto 1fr; } .now__ai-chips { grid-column: 1 / -1; justify-content: flex-start; max-width: none; } }
@media (max-width: 520px) { .now__ai { grid-template-columns: minmax(0, 1fr); padding: 18px; } }

/* Web Developer: back end, data and hosting */
.be { padding: clamp(40px, 6vw, 88px) clamp(24px, 5vw, 56px); font-family: "Montserrat", sans-serif; }
.be__rail { max-width: 1240px; margin: 0 auto; }
.be__head { max-width: 64ch; margin: 0 0 clamp(24px, 4vw, 44px); }
.be__eyebrow { margin: 0 0 12px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-deep, #2b6f91); }
.be__title { margin: 0 0 14px; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -.02em; font-weight: 800; color: var(--ink-900, #141313); }
.be__sub { margin: 0; font-size: 1.05rem; line-height: 1.65; color: var(--ink-600, #4a4949); }
.be__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); margin: 0; padding: 0; list-style: none; }
.be__card { display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: 24px; background: var(--surface, #fff); border: 1px solid var(--line-soft, rgba(20,19,19,.08)); box-shadow: 0 12px 28px rgba(15,23,32,.06); }
.be__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #2b7da8, #14384f); }
.be__card:nth-child(2) .be__icon { background: linear-gradient(135deg, #2fb67a, #17694a); }
.be__card:nth-child(3) .be__icon { background: linear-gradient(135deg, #f59a4b, #c0562b); }
.be__card:nth-child(4) .be__icon { background: linear-gradient(135deg, #ff6c63, #b4443f); }
.be__icon svg { width: 26px; height: 26px; }
.be__card h3 { margin: 0; font-size: 1.15rem; font-weight: 800; color: var(--ink-900, #141313); }
.be__card p { margin: 0; font-size: .94rem; line-height: 1.6; color: var(--ink-600, #4a4949); }
.be__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; padding: 6px 0 0; list-style: none; }
.be__chips li { padding: 5px 12px; border-radius: 999px; font-size: .76rem; font-weight: 700; color: var(--ink-700, #3a3939); background: var(--surface-sunken, #eef3f6); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .be__card { transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease; } .be__card:hover { transform: translateY(-5px); box-shadow: 0 22px 44px rgba(15,23,32,.12); } }
@media (max-width: 1100px) { .be__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .be__grid { grid-template-columns: minmax(0, 1fr); } }
