/* Apt Logic Solutions — site styles (home, services, case studies, DIY guide) */

/* self-hosted fonts (Google Fonts' latin subsets, SIL Open Font License) */
@font-face {
    font-family: 'Lexend';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url(../assets/fonts/lexend-latin-variable.woff2) format('woff2');
}
@font-face {
    font-family: 'Merienda';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(../assets/fonts/merienda-latin-600.woff2) format('woff2');
}

:root {
    --ink: #042C36;
    --crimson: #4E0808;
    --crimson-hover: #6B1212;
    --cream: #F6F2EC;
    --sand: #EAE2D6;
    --mist: #88A3C2;
    --blue: #5B7FAE;
    --link: #3E5F8A;
    --required: #A11D1D;
    --sans: 'Lexend', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --script: 'Merienda', cursive;
    --gutter: 32px;
    --header-h: 72px;   /* header once scrolled; also how far the hero art sits below the top */
    --hdr-top: 96px;    /* header at the top of the page */
    --logo-top: 64px;
    --cloudH: clamp(520px, 29.2vw, 560px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    overflow-x: clip;
    background: var(--cream);
    color: var(--ink);
    font: 300 16px/1.6 var(--sans);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.12; letter-spacing: -0.015em; }
p, figure, blockquote { margin: 0; }
strong { font-weight: 600; }
img { max-width: 100%; }
a { color: var(--link); }
a:hover { color: var(--ink); }
[hidden] { display: none !important; }

.skip { position: absolute; left: 16px; top: -100px; z-index: 50; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; color: var(--cream); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.kicker { display: block; font: 600 20px/1.3 var(--script); color: var(--link); margin-bottom: 10px; }
.h2 { font-size: 46px; }
.lead { font-size: 18px; max-width: 640px; margin-top: 16px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 10px; font: 600 16px/1 var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn .ic { width: 20px; height: 20px; }
.btn-primary { background: var(--crimson); color: var(--cream); }
.btn-primary:hover { background: var(--crimson-hover); color: var(--cream); }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--cream); }
.btn-light { background: var(--sand); color: var(--ink); border-color: var(--sand); }
.btn-light:hover { border-color: var(--ink); color: var(--ink); }
.btn:focus-visible, .nav a:focus-visible, .chev:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }

.sec { padding: 112px 0; }
.sec-alt { background: var(--sand); }
.tex { position: relative; isolation: isolate; }
.tex::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-repeat: repeat; mix-blend-mode: multiply; opacity: .9; }
.tex-h::before { background-image: url(../assets/images/textures/texture-wood-grain-horizontal.jpg); }
.tex-v::before { background-image: url(../assets/images/textures/texture-wood-grain-vertical.jpg); }
.tex-fade::before { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 320px); mask-image: linear-gradient(to bottom, transparent, #000 320px); } /* texture eases in instead of starting at a hard edge */
.about.tex-v::before { background-image: url(../assets/images/textures/texture-wood-grain-vertical-dark.jpg); mix-blend-mode: screen; opacity: .45; }

/* scroll effects — only hidden once JS has confirmed it can reveal them */
.js .reveal { opacity: 0; transform: translateY(100px); transition: opacity .6s ease-out, transform .6s ease-out; }
.js .reveal-fade { transform: none; transition: opacity 1s ease-in-out; }
.js .reveal-left { transform: translateX(-120px); transition: opacity .8s ease-out, transform .8s ease-out; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js .reveal { transform: none; transition: opacity .3s linear; }
}

/* header — transparent with a large logo at the top, then solid with a smaller logo once scrolled (like the old site) */
.hdr { position: fixed; top: 0; left: 0; right: 0; z-index: 30; background: rgba(246, 242, 236, 0); border-bottom: 1px solid transparent; transition: background .4s ease, border-color .4s ease; }
.hdr.shrink { background: var(--cream); border-bottom-color: var(--sand); }
.hdr-in { height: var(--hdr-top); display: flex; align-items: center; gap: 16px; transition: height .4s ease; }
.hdr.shrink .hdr-in { height: var(--header-h); }
.hdr-logo { display: flex; align-items: center; gap: 10px; border-radius: 12px; text-decoration: none; }
.hdr-icon img { width: var(--logo-top); height: var(--logo-top); display: block; transition: width .4s ease, height .4s ease; }
.hdr.shrink .hdr-icon img { width: 46px; height: 46px; }
.hdr-word { opacity: 0; transform: translateX(-10px); transition: opacity .4s ease, transform .4s ease; }
.hdr-word img { display: block; width: auto; height: 40px; }
.hdr.shrink .hdr-word, .page-sub .hdr-word { opacity: 1; transform: none; }
.hdr:not(.shrink) .nav a.nl { text-shadow: 0 0 14px rgba(246, 242, 236, .9); }
.nav a.nl[aria-current=page] { box-shadow: inset 0 -2px 0 var(--crimson); border-radius: 0; }
.fly nav a[aria-current=page] { color: var(--mist); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a.nl { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; padding: 10px 14px; border-radius: 8px; }
.nav a.nl:hover { background: var(--sand); }
.nav .btn { min-height: 44px; margin-left: 12px; padding: 0 20px; font-size: 15px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }
.menu-btn:hover { background: var(--sand); }

/* mobile flyout */
.fly { margin: 0 0 0 auto; padding: 0; border: 0; width: min(86vw, 340px); height: 100%; max-height: none; max-width: none; background: var(--ink); color: var(--cream); box-shadow: -24px 0 48px rgba(4, 44, 54, .35); }
.fly::backdrop { background: rgba(4, 44, 54, .5); }
/* the menu slides in from the right, and back out when it closes */
.fly[open] { animation: fly-in .32s cubic-bezier(.2, .7, .2, 1); }
.fly[open]::backdrop { animation: fly-fade-in .32s ease; }
.fly.is-closing { animation: fly-out .26s cubic-bezier(.4, 0, 1, 1) forwards; }
.fly.is-closing::backdrop { animation: fly-fade-out .26s ease-in forwards; }
@keyframes fly-in { from { transform: translateX(100%); } }
@keyframes fly-out { to { transform: translateX(100%); } }
@keyframes fly-fade-in { from { opacity: 0; } }
@keyframes fly-fade-out { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fly[open], .fly[open]::backdrop { animation: none; } }
.fly-in { height: 100%; padding: 20px 24px 32px; display: flex; flex-direction: column; }
.fly-top { display: flex; align-items: center; justify-content: space-between; }
.fly-top img { width: 40px; height: 40px; }
.fly-close { width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--cream); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.fly-close:hover { background: rgba(234, 226, 214, .12); }
.fly-k { font: 600 15px var(--script); color: var(--mist); margin: 28px 0 8px; }
.fly nav { display: flex; flex-direction: column; }
.fly nav a { display: flex; align-items: baseline; gap: 14px; color: var(--cream); text-decoration: none; font-size: 26px; font-weight: 600; letter-spacing: -0.01em; padding: 12px 0; border-bottom: 1px solid rgba(234, 226, 214, .14); }
.fly nav a span { font: 600 14px var(--script); color: var(--mist); width: 24px; }
.fly nav a:hover { color: var(--mist); }
.fly .btn { margin-top: auto; background: var(--sand); color: var(--ink); }

/* hero */
.hero {
    position: relative; overflow: hidden; min-height: calc(var(--cloudH) + 320px + var(--header-h));
    background: var(--mist) url(../assets/images/hero/full-spectrum-cloud-services-mountains-above-clouds.jpg) center calc(219px - 0.43 * (var(--cloudH) + 380px) + var(--header-h)) / cover no-repeat;
    background-image: image-set(url(../assets/images/hero/full-spectrum-cloud-services-mountains-above-clouds.webp) type("image/webp"), url(../assets/images/hero/full-spectrum-cloud-services-mountains-above-clouds.jpg) type("image/jpeg"));
}
.hero-lockup { position: absolute; z-index: 2; top: calc(var(--header-h) + 40px); left: 50%; transform: translateX(-50%); width: min(430px, 76vw); }
.hero-lockup::before { content: ""; position: absolute; inset: -34px -70px; background: radial-gradient(closest-side, rgba(246, 242, 236, .94), rgba(246, 242, 236, .78) 55%, rgba(246, 242, 236, 0)); }
.hero-lockup img { position: relative; display: block; width: 100%; height: auto; }
.cloud { position: absolute; left: 0; right: 0; bottom: -1px; height: var(--cloudH); }
.cloud svg { display: block; width: 100%; height: 100%; }
.cloud-copy { position: absolute; left: 50%; bottom: 100px; transform: translateX(-50%); width: min(580px, calc(100% - 40px)); text-align: center; }
.cloud-copy h1 { font-size: 54px; font-weight: 800; letter-spacing: -0.025em; }
.cloud-copy p { font-size: 18px; line-height: 1.55; margin: 16px auto 26px; max-width: 500px; }

/* sub-page header: the same sky + cloud cutout, shorter, holding the page title */
.hero-page {
    --cloudH: 300px;
    min-height: 0; padding-top: calc(var(--hdr-top) + 25px);
    background: var(--mist) linear-gradient(to bottom, var(--blue) -40%, var(--mist) 55%, color-mix(in srgb, var(--mist) 55%, var(--cream)));
}
/* services: a lighter sky */
.page-services .hero-page { background: color-mix(in srgb, var(--mist) 60%, var(--cream)) linear-gradient(to bottom, color-mix(in srgb, var(--mist) 80%, var(--cream)), color-mix(in srgb, var(--mist) 35%, var(--cream))); }
.hero-page .cloud { position: relative; bottom: auto; margin-bottom: -1px; overflow: hidden; }
/* the cloud scales to this shorter header instead of being cropped; never narrower than its natural shape */
.hero-page .cloud svg { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: max(100%, calc(var(--cloudH) * 1440 / 420)); height: 100%; }
/* pull the first section up so its heading, lead and first row of tiles sit above the fold */
.hero-page + .sec { padding-top: 34px; }
.hero-page + .sec .svc-grid { margin-top: 32px; }
/* anchored from the top so every page title sits in the same spot, whatever its copy length */
.hero-page .cloud-copy { top: 31px; bottom: auto; width: min(680px, calc(100% - 40px)); }
.hero-page .cloud-copy h1 { font-size: 46px; }
.hero-page .cloud-copy p { margin-bottom: 0; max-width: 600px; }

/* services selector */
.e2e { position: relative; margin: 48px clamp(-50px, calc((1200px - 100vw) / 2), 0px) 0; aspect-ratio: 1.8; --rw: 7px; --g: 7.5px; --d: 40px; --y1: calc(var(--d) * 0.313); --y2: calc(var(--d) * 0.687); }
/* each tile spans the whole group; only its clipped .e2e-in takes clicks, so the shapes can interlock */
.e2e-box { position: absolute; inset: 0; display: block; border: 0; padding: 0; margin: 0; background: none; font: inherit; color: inherit; text-align: left; text-decoration: none; pointer-events: none; --ring: transparent; }
.e2e-shape { position: absolute; inset: 0; }
.e2e-in { position: absolute; inset: 0; background: var(--ink); pointer-events: auto; cursor: pointer; }
/* the ring: four stacked drop-shadows grow the clipped shape by --rw on every side */
.e2e-box.on { --ring: var(--mist); z-index: 1; }
.e2e-box:focus-visible { outline: none; --ring: var(--link); z-index: 1; }
.e2e-box.on .e2e-shape, .e2e-box:focus-visible .e2e-shape {
    filter: drop-shadow(var(--rw) 0 0 var(--ring)) drop-shadow(calc(-1 * var(--rw)) 0 0 var(--ring)) drop-shadow(0 var(--rw) 0 var(--ring)) drop-shadow(0 calc(-1 * var(--rw)) 0 var(--ring));
}
.e2e-bb { position: absolute; top: 0; bottom: 0; overflow: hidden; }
.e2e-bb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.e2e-box:hover .e2e-bb img { transform: scale(1.03); }
.e2e-shade { position: absolute; left: 0; right: 0; top: 0; height: 52%; background: linear-gradient(to bottom, rgba(4, 44, 54, .9) 0%, rgba(4, 44, 54, .62) 42%, rgba(4, 44, 54, 0) 100%); }
.e2e-label { position: absolute; color: var(--cream); pointer-events: none; text-shadow: 0 1px 14px rgba(4, 44, 54, .55); }
.e2e-num { display: block; font: 600 20px var(--script); color: var(--mist); }
.e2e-label strong { display: block; font-size: 46px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; margin-top: 2px; }
.e2e-count { display: block; font-size: 15px; margin-top: 6px; color: var(--sand); }
/* desktop geometry: one straight top line dropping left→right, 15px gutters, outer edges vertical */
.t1 .e2e-in { clip-path: polygon(0 0, calc(31.333% - var(--g)) var(--y1), calc(35.333% - var(--g)) 100%, 0 100%); }
.t2 .e2e-in { clip-path: polygon(calc(31.333% + var(--g)) var(--y1), calc(68.667% - var(--g)) var(--y2), calc(64.667% - var(--g)) 100%, calc(35.333% + var(--g)) 100%); }
.t3 .e2e-in { clip-path: polygon(calc(68.667% + var(--g)) var(--y2), 100% var(--d), 100% 100%, calc(64.667% + var(--g)) 100%); }
.t1 .e2e-bb { left: 0; right: calc(64.667% + var(--g)); }
.t2 .e2e-bb { left: calc(31.333% + var(--g)); right: calc(31.333% + var(--g)); }
.t3 .e2e-bb { left: calc(64.667% + var(--g)); right: 0; }
.t1 .e2e-label { left: 44px; right: calc(68.667% + var(--g) + 28px); top: calc(var(--y1) + 40px); }
.t2 .e2e-label { left: calc(31.333% + var(--g) + 48px); right: calc(31.333% + var(--g) + 48px); top: calc(var(--y2) + 40px); }
.t3 .e2e-label { left: calc(68.667% + var(--g) + 40px); right: 44px; top: calc(var(--d) + 40px); }

/* service carousel */
.car-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 56px; }
.car-head h3 { font-size: 26px; }
.car-sub { font-size: 15px; margin-top: 6px; }
.car-ctrl { display: flex; align-items: center; gap: 10px; }
.car-pos { font-size: 14px; font-weight: 500; margin-right: 6px; white-space: nowrap; }
.car-btn { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s, color .15s; }
.car-btn:hover { background: var(--ink); color: var(--cream); }
.car-btn:disabled { opacity: .28; cursor: default; background: transparent; color: var(--ink); }
.car-view { overflow: hidden; margin: 20px -32px 0; padding: 6px 32px 12px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 34px, #000 calc(100% - 34px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 34px, #000 calc(100% - 34px), transparent 100%); touch-action: pan-y; }
.car-track { display: flex; gap: 20px; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.svc { flex: 0 0 calc((100% - 60px) / 4); appearance: none; -webkit-appearance: none; font: inherit; text-align: left; color: inherit; background: var(--sand); border: 2px solid var(--sand); border-radius: 18px; padding: 26px 24px 24px; min-height: 236px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; cursor: pointer; position: relative; transition: border-color .15s, background .15s; }
.svc:hover { border-color: var(--mist); }
.svc:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.svc-ic { width: 54px; height: 54px; border-radius: 14px; background: var(--cream); color: var(--blue); display: flex; align-items: center; justify-content: center; transition: background .15s, color .15s; }
.svc-ic .ic { width: 28px; height: 28px; }
.svc-name { display: block; font-size: 19px; font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin-top: 4px; }
.svc-desc { display: block; font-size: 15px; line-height: 1.55; }
.svc-sel { display: none; position: absolute; top: 20px; right: 18px; align-items: center; gap: 4px; padding: 4px 10px 4px 7px; border-radius: 999px; background: var(--crimson); color: var(--cream); font-size: 12px; font-weight: 600; }
.svc-sel i { font-style: normal; }
.svc-sel .ic { width: 15px; height: 15px; stroke-width: 2.4; }
.svc.on { border-color: var(--crimson); background: var(--cream); }
.svc.on .svc-ic { background: var(--crimson); color: var(--cream); }
.svc.on .svc-sel { display: inline-flex; }
.svc-all { margin-top: 18px; }

/* services page */
.area { scroll-margin-top: var(--header-h); }
.area-head { max-width: 760px; }
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 48px 0 0; padding: 0; list-style: none; }
.svc-card { cursor: default; min-height: 0; scroll-margin-top: calc(var(--header-h) + 24px); }
.svc-card:hover { border-color: var(--sand); }
.sec-alt .svc-card, .sec-alt .svc-card:hover { background: var(--cream); border-color: var(--cream); }
.sec-alt .svc-card .svc-ic { background: var(--sand); }
.svc-card:target { border-color: var(--mist); }
.svc-rel { margin-top: auto; padding-top: 4px; display: block; font-size: 14px; font-weight: 600; text-decoration: none; }
.svc-rel .ic { width: 16px; height: 16px; margin-left: 4px; vertical-align: -3px; }
.svc-grid li:nth-child(4n+2) { transition-delay: .06s; }
.svc-grid li:nth-child(4n+3) { transition-delay: .12s; }
.svc-grid li:nth-child(4n+4) { transition-delay: .18s; }
.cta-band { background: var(--ink); color: var(--cream); padding: 88px 0; }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 32px 56px; flex-wrap: wrap; }
.cta-band .lead { color: var(--sand); }
.cta-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-secondary { color: var(--cream); border-color: var(--cream); }
.cta-band .btn-secondary:hover { background: var(--cream); color: var(--ink); }

/* case study */
.cs-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cs-match { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; font-size: 15px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: var(--cream); border-radius: 999px; padding: 5px 14px; font-size: 14px; font-weight: 500; }
.chip-clear { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; border: 0; background: transparent; color: var(--link); font: 500 14px var(--sans); text-decoration: underline; cursor: pointer; padding: 0 4px; }
.chip-clear .ic { width: 14px; height: 14px; }
.cs-note { font-size: 14px; margin-top: 8px; max-width: 640px; }
.cs-all { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; text-decoration: none; min-height: 44px; }
.cs-all .ic { width: 20px; height: 20px; }
.cs { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; background: var(--cream); border-radius: 24px; padding: 44px; margin-top: 32px; }
.cs-title { font-size: 40px; color: var(--blue); letter-spacing: -0.02em; }
.cs-kicker { font-size: 15px; font-weight: 500; margin-top: 6px; }
.cs-media { position: relative; margin-top: 24px; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--cream); }
.cs-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cs-media.photo img { object-fit: cover; object-position: center 40%; }
.cs-media.device img { object-fit: contain; mix-blend-mode: multiply; padding: 8px 0; }
.cs-desc { font-size: 17px; line-height: 1.65; margin-top: 24px; }
.cs-foot { font-size: 15px; font-style: italic; margin-top: 12px; }
.cs-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cs-side { border-left: 1px solid var(--sand); padding-left: 44px; align-self: stretch; }
.cs-lbl { display: block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; }
.cs-grp { margin-bottom: 22px; }
.cs-grp-name { display: block; font: 600 16px var(--script); color: var(--link); margin-bottom: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pill { display: inline-flex; align-items: center; border: 1.5px solid rgba(4, 44, 54, .28); border-radius: 999px; padding: 5px 13px; font-size: 14px; line-height: 1.3; }
.pill.hit { background: var(--ink); border-color: var(--ink); color: var(--cream); font-weight: 500; }
.pill.tool { background: var(--sand); border-color: var(--sand); }
.cs-div { height: 1px; background: var(--sand); margin: 26px 0 24px; }
a.pill { color: inherit; text-decoration: none; transition: border-color .15s, background .15s; }
a.pill:hover { border-color: var(--ink); background: var(--sand); }
.cs-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.filter-btn { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1.5px solid rgba(4, 44, 54, .35); background: var(--cream); color: var(--ink); font: 500 15px var(--sans); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.filter-btn:hover { border-color: var(--ink); }
.filter-btn[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.filter-btn:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.cs-list .cs { scroll-margin-top: calc(var(--header-h) + 24px); }
.cs-list .cs:target { box-shadow: 0 0 0 4px var(--mist); }

/* community */
.bl { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 72px; align-items: center; margin-top: 56px; }
.bl-phone { position: relative; display: flex; justify-content: center; }
.bl-phone::before { content: ""; position: absolute; width: 86%; aspect-ratio: 1; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: var(--sand); }
.bl-phone img { position: relative; z-index: 1; display: block; width: min(340px, 100%); height: auto; }
.bl-logo { width: 260px; height: auto; display: block; mix-blend-mode: multiply; }
.bl h3 { font-size: 32px; margin-top: 22px; }
.bl-copy { font-size: 17px; line-height: 1.65; margin-top: 14px; }
.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; margin: 30px 0 32px; padding: 0; list-style: none; }
.feats li { display: flex; gap: 14px; align-items: center; }
.feat-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--sand); color: var(--link); display: flex; align-items: center; justify-content: center; flex: none; }
.feat-ic .ic { width: 100%; height: 100%; }
.bl-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.feats strong { display: block; font-size: 16px; }
.feats span { display: block; font-size: 14.5px; line-height: 1.5; margin-top: 2px; }
.diy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 72px; align-items: center; }
.diy-img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 22px; display: block; }
.diy h3 { font-size: 40px; }
.diy-em { font-style: italic; font-size: 18px; line-height: 1.55; margin-top: 14px; }
.diy-body { font-size: 17px; line-height: 1.65; margin-top: 14px; }
.diy-strong { font-weight: 600; font-size: 17px; margin-top: 22px; }
.diy-btns { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; max-width: 440px; }
.diy-btns .btn { width: 100%; }

/* how I do it — the old site's word cloud + CSS chevrons */
.how-head { max-width: 760px; }
.how-head .btn { margin-top: 28px; }
.how { background: #fff; }
.sec.how { padding-bottom: 0; }
.cloudwords { position: relative; overflow: hidden; margin-top: 40px; padding: 120px 0 112px; }
.cloudwords .wc { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .12; pointer-events: none; font-family: var(--sans); font-weight: 400; }
.cloudwords .diy { position: relative; margin-top: 140px; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 860px; margin: 0 auto; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; }
.chev {
    --shape: polygon(90% 0, 100% 50%, 90% 100%, 0% 100%, 10% 50%, 0% 0%);
    position: relative; display: flex; align-items: center; justify-content: center;
    min-height: 137px; padding: 15px 15px 15px 35px;
    background: url(../assets/images/textures/process-chevron-border.jpg) center / cover;
    background-image: image-set(url(../assets/images/textures/process-chevron-border.webp) type("image/webp"), url(../assets/images/textures/process-chevron-border.jpg) type("image/jpeg"));
    clip-path: var(--shape);
    color: var(--blue); text-decoration: none;
}
.chev::before { content: ""; position: absolute; inset: 2px; background: #fff; clip-path: var(--shape); transition: background .2s; }
.chev:hover { color: var(--link); }
.chev:hover::before { background: rgba(255, 255, 255, .9); }
.chev span { position: relative; display: block; font-size: 22px; font-weight: 700; line-height: 1.25; padding-left: 1.3em; }
.chev span::before { content: counter(step) "."; position: absolute; left: 0; }
/* chevrons slide in from the left, one after another */
.js .chev.reveal { transform: translateX(-80px); }
.js .chev.reveal.visible { transform: none; }
.steps li:nth-child(2) .chev { transition-delay: .12s; }
.steps li:nth-child(3) .chev { transition-delay: .24s; }
.steps li:nth-child(4) .chev { transition-delay: .36s; }

/* DIY guide page */
.guide-hello { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.guide-hello img { display: block; width: 100%; height: auto; }
.guide-hello .btn { margin-top: 26px; }
.guide-steps { margin-top: 72px; }
.guide-grid { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 48px; align-items: start; }
.guide-toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; background: var(--cream); border-radius: 18px; padding: 20px 22px; }
.guide-toc summary { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; list-style: none; }
.guide-toc summary::-webkit-details-marker { display: none; }
.guide-toc summary { display: flex; align-items: center; justify-content: space-between; min-height: 28px; }
.guide-toc summary::after { content: "+"; font-size: 22px; font-weight: 400; line-height: 1; color: var(--link); }
.guide-toc details[open] summary::after { content: "−"; }
.guide-toc ol { list-style: none; margin: 0; padding: 0; }
.guide-toc details > ol { margin-top: 12px; }
.guide-toc li { margin: 2px 0; }
.guide-toc a { display: block; padding: 4px 10px; border-left: 2px solid transparent; border-radius: 0 6px 6px 0; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; line-height: 1.35; }
.guide-toc ol ol a { font-size: 14px; font-weight: 300; padding-left: 20px; }
.guide-toc a:hover { background: var(--sand); }
.guide-toc a.is-current { border-left-color: var(--crimson); color: var(--crimson); font-weight: 600; }
.guide-part { background: var(--cream); border-radius: 24px; padding: 44px; }
.guide-part + .guide-part { margin-top: 32px; }
.guide-part .h2 { font-size: 40px; }
.guide-part h2, .guide-part h3 { scroll-margin-top: 24px; } /* on top of the page-wide header offset */
.guide-part h3 { font-size: 22px; font-weight: 600; margin-top: 36px; color: var(--blue); }
.guide-part p, .guide-part li { font-size: 17px; line-height: 1.7; }
.guide-part p { margin-top: 12px; }
.guide-part ul { margin: 12px 0 0; padding-left: 22px; }
.guide-part li { margin: 4px 0; }
/* the "ways to build a website" decision tree */
.guide-part ul.tree, .guide-part ul.tree ul { list-style: none; padding-left: 0; }
.guide-part ul.tree { margin-top: 20px; padding: 22px 24px; background: var(--sand); border-radius: 16px; }
.guide-part ul.tree ul { margin: 6px 0 0 8px; padding-left: 20px; border-left: 2px solid var(--mist); }
.guide-part ul.tree li { position: relative; margin: 6px 0; }
.guide-part ul.tree ul > li::before { content: ""; position: absolute; left: -20px; top: .85em; width: 14px; border-top: 2px solid var(--mist); }
.guide-part ul.tree .done { color: var(--crimson); font-weight: 600; }

/* case study detail pages */
.csd-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.csd-shot img { display: block; width: 100%; height: auto; }
.csd-top .cs-btns { margin-top: 24px; }
.csd-body .guide-part > .btn { margin-top: 18px; }
.guide-part ul.gallery { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.gallery li { margin: 0; }
.gallery figure { margin: 0; }
.gallery a { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--sand); background: #fff; transition: transform .2s, box-shadow .2s; }
.gallery a:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(4, 44, 54, .12); }
.gallery a:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
.gallery figcaption { font-size: 14px; font-weight: 500; margin-top: 8px; }
.csd-feature { display: flex; gap: 28px; align-items: center; margin-top: 16px; }
.csd-feature img { display: block; width: 180px; height: auto; border-radius: 16px; flex: none; }
.csd-feature p { margin-top: 0; }
pre.code { margin: 22px 0 0; padding: 22px 24px; background: var(--ink); color: var(--sand); border-radius: 16px; overflow: auto; max-height: 560px; font: 13.5px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; tab-size: 4; }
.csd-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.csd-next { position: relative; display: block; padding: 26px 64px 26px 28px; background: var(--sand); border-radius: 18px; color: var(--ink); text-decoration: none; transition: background .15s; }
.csd-next:hover { background: color-mix(in srgb, var(--sand) 70%, var(--mist)); color: var(--ink); }
.csd-next .kicker { font-size: 16px; margin-bottom: 4px; }
.csd-next strong { display: block; font-size: 26px; font-weight: 700; color: var(--blue); letter-spacing: -0.015em; }
.csd-next span:not(.kicker) { display: block; font-size: 15px; margin-top: 4px; }
.csd-next .ic { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); }

/* full-size image lightbox */
.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(4, 44, 54, .94); color: var(--cream); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; animation: fly-fade-in .2s ease; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; width: min(1000px, calc(100% - 150px)); max-height: calc(100% - 48px); overflow: auto; text-align: center; }
.lightbox img { display: block; width: 100%; height: auto; border-radius: 8px; background: #fff; }
.lightbox figcaption { margin-top: 10px; font-weight: 500; }
.lb-btn { position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(246, 242, 236, .14); color: var(--cream); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.lb-btn:hover { background: rgba(246, 242, 236, .28); }
.lb-btn:focus-visible { outline: 3px solid var(--mist); outline-offset: 2px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

/* 404 */
.nf-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* about */
.about { background: var(--ink); color: var(--cream); }
.about .kicker { color: var(--mist); }
.bio { font-size: 21px; line-height: 1.6; max-width: 820px; margin-top: 22px; color: var(--sand); }
.story { display: grid; grid-template-columns: minmax(0, 30%) minmax(0, 1fr); gap: 64px; margin-top: 72px; align-items: start; }
.portrait { padding-top: 8px; }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 670 / 1530; object-fit: cover; border-radius: 22px; }
.quote { position: relative; }
.qmark { display: block; font: 600 96px/.6 var(--script); color: var(--mist); height: 44px; }
.quote p { font-size: 19px; line-height: 1.7; color: var(--sand); margin-top: 18px; }
.quote p.ask { color: var(--cream); font-weight: 500; }
.advice { display: block; font: 600 30px/1.4 var(--script); color: var(--mist); margin-top: 18px; }
.quote footer { margin-top: 24px; font-size: 15px; color: var(--sand); }
.quote footer strong { color: var(--cream); }

/* contact */
.contact { text-align: center; }
.contact .h2 { font-size: 56px; }
.ct-lead { font-size: 18px; max-width: 600px; margin: 14px auto 0; }
.socials { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.socials a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; }
.socials a:hover { background: var(--sand); }
.socials img { width: 34px; height: 34px; display: block; }
.ct-row { --gut: 32px; --bleed: max(var(--gut), (100vw - 1136px) / 2); position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 56px; align-items: center; margin-top: 52px; }
.ct-art { position: absolute; top: 0; bottom: 0; left: calc(-1 * var(--bleed)); width: calc(var(--bleed) + 78%); display: flex; align-items: center; pointer-events: none; }
.ct-art picture { display: block; width: 100%; }
.ct-art img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; opacity: .85; -webkit-mask-image: linear-gradient(to right, #000 25%, transparent 82%); mask-image: linear-gradient(to right, #000 25%, transparent 82%); }
.form { grid-column: 2; position: relative; z-index: 1; text-align: left; display: flex; flex-direction: column; gap: 30px; }
.field label.flbl, .field legend { display: block; font-size: 24px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 12px; padding: 0; }
.req { color: var(--required); margin-left: 4px; }
.field input[type=text], .field input[type=email], .field textarea { width: 100%; font: 400 16px var(--sans); color: var(--ink); background: #fff; border: 1.5px solid rgba(4, 44, 54, .3); border-radius: 8px; padding: 12px 16px; min-height: 48px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--mist); outline-offset: 1px; border-color: var(--ink); }
.field [aria-invalid=true] { border-color: var(--required); }
.err { color: var(--required); font-size: 15px; font-weight: 400; margin-top: 8px; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.radio { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 19px; cursor: pointer; }
.radio input { width: 20px; height: 20px; accent-color: var(--crimson); margin: 0; flex: none; }
.form-msg:empty { display: none; }
.form-msg { font-size: 17px; font-weight: 500; color: var(--required); }
.form-msg.success { color: var(--link); }
.form-end { display: flex; justify-content: flex-end; }
.form-end .btn { width: 50%; min-height: 56px; font-size: 19px; }

/* footer */
.ftr { background: var(--ink); color: var(--cream); }
.ftr-in { max-width: 960px; margin: 0 auto; padding: 0 32px; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ftr p { font-size: 16px; font-weight: 400; }
.ftr a { color: var(--cream); text-decoration: none; font-size: 16px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.ftr a:hover { color: var(--mist); }
.ftr a .ic { width: 18px; height: 18px; }
.ftr-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }

/* tablet */
@media (max-width: 1023px) {
    :root { --gutter: 28px; }
    .sec { padding: 88px 0; }
    .h2 { font-size: 38px; }
    .cloud-copy h1 { font-size: 46px; }
    .e2e { margin: 40px 0 0; aspect-ratio: 1.12; --d: 24px; --yt: calc(var(--d) * 0.47); }
    .e2e-label strong { font-size: 38px; }
    /* tablet geometry: 2 tall on the left, 1 over 3 on the right */
    .t2 .e2e-in { clip-path: polygon(0 0, calc(47% - var(--g)) var(--yt), calc(52% - var(--g)) 100%, 0 100%); }
    .t1 .e2e-in { clip-path: polygon(calc(47% + var(--g)) var(--yt), 100% var(--d), 100% calc(47% - var(--g)), calc(49.25% + var(--g)) calc(45% - var(--g))); }
    .t3 .e2e-in { clip-path: polygon(calc(49.25% + var(--g)) calc(45% + var(--g)), 100% calc(47% + var(--g)), 100% 100%, calc(52% + var(--g)) 100%); }
    .t2 .e2e-bb { left: 0; right: calc(48% + var(--g)); }
    .t1 .e2e-bb { left: calc(47% + var(--g)); right: 0; bottom: calc(53% + var(--g)); }
    .t3 .e2e-bb { left: calc(49.25% + var(--g)); right: 0; top: calc(45% + var(--g)); }
    .t2 .e2e-label { left: 40px; right: calc(53% + var(--g) + 28px); top: 40px; }
    .t1 .e2e-label { left: calc(47% + var(--g) + 44px); right: 36px; top: calc(var(--d) + 34px); }
    .t3 .e2e-label { left: calc(49.25% + var(--g) + 40px); right: 36px; top: calc(47% + var(--g) + 32px); }
    .e2e-shade { height: 58%; }
    .svc { flex-basis: calc((100% - 40px) / 3); }
    .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .svc-grid li { transition-delay: 0s !important; }
    .hero-page .cloud-copy { top: 40px; }
    .hero-page .cloud-copy h1 { font-size: 42px; }
    .car-view { margin: 20px -28px 0; padding: 6px 28px 12px; }
    .cs { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 36px; }
    .cs-side { border-left: 0; border-top: 1px solid var(--sand); padding: 28px 0 0; margin-top: 32px; }
    .bl, .diy { grid-template-columns: minmax(0, 1fr); gap: 44px; }
    .bl-phone img { width: 300px; }
    .diy-img { max-width: 440px; }
    .story { gap: 36px; margin-top: 56px; }
    .guide-hello { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .guide-hello img { max-width: 480px; }
    .guide-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .guide-toc { position: static; max-height: none; }
    .csd-top { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .quote p { font-size: 17px; line-height: 1.75; }
    .cloudwords { padding: 80px 0 88px; }
    .cloudwords .diy { margin-top: 100px; }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 0; max-width: 560px; }
    /* contact art sits above the full-width form */
    .ct-row { --gut: 28px; display: block; }
    .ct-art { position: static; width: auto; display: block; margin: 0 calc(-1 * var(--gut)) 32px; }
    .ct-art img { aspect-ratio: 2.3; object-fit: cover; }
}

/* mobile */
@media (max-width: 639px) {
    :root { --gutter: 20px; --header-h: 64px; --hdr-top: 76px; --logo-top: 52px; --cloudH: 370px; }
    .sec { padding: 30px 0; }
    .h2 { font-size: 32px; }
    .kicker { font-size: 17px; }
    .lead { font-size: 17px; }
    .hdr-in { gap: 8px; }
    .hdr-logo { gap: 8px; }
    .hdr.shrink .hdr-icon img { width: 40px; height: 40px; }
    .hdr-word img { height: 32px; }
    .nav a.nl { display: none; }
    .nav .btn { margin-left: 0; padding: 0 16px; }
    .menu-btn { display: inline-flex; }
    .hero { min-height: calc(var(--cloudH) + 350px + var(--header-h)); background-size: auto 1000px; background-position: 50% calc(-276px + var(--header-h)); }
    .hero-lockup { top: calc(var(--header-h) + 32px); width: min(280px, 72vw); }
    .hero-page { --cloudH: 340px; min-height: 0; background-size: auto; background-position: 0 0; }
    .hero-page .cloud { height: auto; }
    .hero-page .cloud-copy { position: relative; top: auto; left: auto; transform: none; margin: 0 auto; padding: 56px 0 18px; }
    .hero-page + .sec { padding-top: 24px; }
    .hero-page .cloud-copy h1 { font-size: 32px; }
    .cloud-copy { bottom: auto; top: 92px; }
    .cloud-copy h1 { font-size: 36px; }
    .cloud-copy p { font-size: 16px; margin: 12px auto 22px; }
    .cloud-copy .btn { width: 100%; }
    .e2e { margin: 24px 0 0; aspect-ratio: .75; --d: 30px; }
    .e2e-num { font-size: 14px; }
    .e2e-label strong { font-size: 21px; line-height: 1.1; }
    .e2e-count { font-size: 12px; margin-top: 4px; }
    /* mobile geometry: top line rises left→right, 2 tapers on its left */
    .t2 .e2e-in { clip-path: polygon(0 var(--d), calc(50% - var(--g)) calc(var(--d) * 0.5), calc(46% - var(--g)) 100%, 8% 100%); }
    .t1 .e2e-in { clip-path: polygon(calc(50% + var(--g)) calc(var(--d) * 0.5), 100% 0, 100% calc(41% - var(--g)), calc(48.3% + var(--g)) calc(42% - var(--g))); }
    .t3 .e2e-in { clip-path: polygon(calc(48.3% + var(--g)) calc(42% + var(--g)), 100% calc(41% + var(--g)), 100% 100%, calc(46% + var(--g)) 100%); }
    .t2 .e2e-bb { left: 0; right: calc(50% + var(--g)); }
    .t1 .e2e-bb { left: calc(48.3% + var(--g)); right: 0; bottom: calc(58% + var(--g)); }
    .t3 .e2e-bb { left: calc(46% + var(--g)); right: 0; top: calc(41% + var(--g)); }
    .t2 .e2e-label { left: 16px; right: calc(50% + var(--g) + 12px); top: calc(var(--d) + 18px); }
    .t1 .e2e-label { left: calc(50% + var(--g) + 16px); right: 14px; top: calc(var(--d) * 0.5 + 16px); }
    .t3 .e2e-label { left: calc(48.3% + var(--g) + 16px); right: 14px; top: calc(42% + var(--g) + 14px); }
    .car-head { margin-top: 28px; }
    .car-head h3 { font-size: 21px; }
    .car-pos { display: none; }
    .car-btn { width: 44px; height: 44px; }
    .car-view { margin: 16px -20px 0; padding: 14px 20px 12px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%); }
    .car-track { gap: 14px; }
    .svc { flex-basis: calc((100% - 18.9px) / 2.35); padding: 18px 16px; border-radius: 16px; }
    .svc-ic { width: 44px; height: 44px; border-radius: 12px; }
    .svc-ic .ic { width: 24px; height: 24px; }
    .svc-name { font-size: 16px; }
    .svc-desc { font-size: 13.5px; }
    .svc-sel { top: -10px; right: 8px; padding: 3px 8px 3px 6px; font-size: 11px; } /* sits on the top edge so it clears the icon */
    .svc-sel .ic { width: 12px; height: 12px; }
    .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 32px; }
    .svc-card .svc-name { font-size: 15px; }
    .cta-band { padding: 30px 0; }
    .cta-btns .btn, .bl-btns .btn { flex: 1 1 100%; }
    .cs { padding: 22px; border-radius: 20px; margin-top: 20px; }
    .cs-btns { margin-top: 20px; }
    .cs-side { margin-top: 22px; padding-top: 20px; }
    .cs-grp { margin-bottom: 14px; }
    .cs-div { margin: 16px 0; }
    .cs-title { font-size: 30px; }
    .cs-desc { font-size: 16px; }
    .cs-btns .btn { flex: 1 1 100%; }
    .bl { margin-top: 24px; gap: 28px; }
    .feats { margin: 22px 0 24px; }
    .bl-phone img { width: 240px; }
    .bl-logo { width: 210px; }
    .bl h3 { font-size: 26px; }
    .feats { grid-template-columns: minmax(0, 1fr); }
    .diy h3 { font-size: 30px; }
    .cloudwords { margin-top: 24px; padding: 28px 0 30px; }
    .cloudwords .diy { margin-top: 40px; gap: 28px; }
    .steps { gap: 14px 0; }
    .chev { min-height: 110px; padding: 12px 10px 12px 24px; }
    .chev span { font-size: 16px; }
    .bio { font-size: 18px; }
    .guide-steps { margin-top: 32px; }
    .guide-hello { gap: 24px; }
    .guide-part + .guide-part { margin-top: 20px; }
    .guide-part { padding: 24px 22px; border-radius: 20px; }
    .guide-part .h2 { font-size: 30px; }
    .guide-part h3 { font-size: 19px; margin-top: 28px; }
    .guide-part p, .guide-part li { font-size: 16px; }
    .guide-part ul.tree { padding: 16px; }
    .guide-part ul.gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
    .gallery figcaption { font-size: 13px; }
    .csd-feature { flex-direction: column; align-items: flex-start; gap: 16px; }
    .csd-feature img { width: 140px; }
    pre.code { padding: 16px; font-size: 12.5px; max-height: 420px; }
    .csd-more { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 20px; }
    .csd-next { padding: 20px 56px 20px 20px; }
    .csd-next strong { font-size: 22px; }
    .lightbox figure { width: calc(100% - 24px); max-height: calc(100% - 140px); }
    .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
    .story { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 32px; }
    .portrait { padding-top: 0; }
    .portrait img { max-width: 240px; margin: 0 auto; border-radius: 18px; }
    .qmark { font-size: 76px; }
    .quote p { font-size: 16px; }
    .advice { font-size: 24px; }
    .contact .h2 { font-size: 40px; }
    .ct-row { margin-top: 28px; }
    .ct-art { display: none; }
    .form { gap: 24px; }
    .field label.flbl, .field legend { font-size: 21px; }
    .radio { font-size: 17px; }
    .form-end .btn { width: 100%; }
    .ftr-in { padding: 16px 20px; flex-wrap: wrap; }
    .ftr p, .ftr a { font-size: 14px; }
}
