/* Landing page */

section { padding: 96px 0; }
@media (max-width: 760px) { section { padding: 64px 0; } }
.rule { height: 1px; background: var(--line-soft); }

.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); }
.section-head p { color: var(--text-dim); font-size: 16.5px; margin-top: 14px; max-width: 560px; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
  padding: 72px 0 88px;
}
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding: 48px 0 64px; gap: 40px; } }
.hero-kicker { font-size: 14px; color: var(--text-dim); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.hero-kicker svg { width: 14px; height: 14px; color: var(--text); }
.hero h1 { font-size: clamp(2.35rem, 5.2vw, 3.75rem); max-width: 640px; }
.hero-lede { color: var(--text-dim); font-size: 17.5px; max-width: 520px; margin: 22px 0 34px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-facts { display: flex; gap: 0; margin-top: 48px; border-top: 1px solid var(--line); max-width: 520px; }
.hero-facts div { flex: 1; padding: 16px 16px 0 0; }
.hero-facts div + div { padding-left: 18px; border-left: 1px solid var(--line-soft); }
.hero-facts dt { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
.hero-facts dd { font-size: 13.5px; color: var(--text-dim); margin-top: 2px; }
@media (max-width: 420px) { .hero-facts dt { font-size: 21px; } .hero-facts div + div { padding-left: 12px; } }

.hero-graphic { width: 100%; max-width: 440px; margin: 0 auto; aspect-ratio: 1; }
@media (max-width: 900px) { .hero-graphic { max-width: 300px; order: -1; margin: 0; } }
@media (max-width: 560px) { .hero-graphic { display: none; } }
.hero-graphic svg { width: 100%; height: 100%; overflow: visible; color: var(--text); }
.hx { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: miter; stroke-dasharray: 60; stroke-dashoffset: 60; animation: hx-draw 1.3s cubic-bezier(.6, 0, .2, 1) forwards; }
.hx-r { animation-delay: .15s; }
.hx-core { fill: currentColor; opacity: 0; transform-origin: 24px 24px; transform: scale(.6); animation: hx-in .55s cubic-bezier(.2, .8, .2, 1) 1.05s forwards; }
@keyframes hx-draw { to { stroke-dashoffset: 0; } }
@keyframes hx-in { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hx { stroke-dashoffset: 0; } .hx-core { opacity: 1; transform: none; } }

/* ---------- Tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } }
.tier { padding: 34px 30px 30px; display: flex; flex-direction: column; }
.tier + .tier { border-left: 1px solid var(--line); }
@media (max-width: 900px) { .tier + .tier { border-left: 0; border-top: 1px solid var(--line); } }
.tier.featured { background: var(--bg-panel); }
.tier-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tier h3 { font-size: 21px; }
.tier-badge { font-size: 12px; font-weight: 600; color: var(--text); border: 1px solid var(--text); padding: 1px 8px; border-radius: var(--radius); white-space: nowrap; }
.tier-for { color: var(--text-dim); font-size: 14.5px; margin-top: 6px; }
.tier-price { margin: 22px 0 20px; font-size: 14px; color: var(--text-dim); }
.tier-price strong { display: block; font-family: var(--font-display); font-size: 30px; color: var(--text); letter-spacing: -0.01em; line-height: 1.15; }
.spec-list { list-style: none; margin-bottom: 28px; flex: 1; }
.spec-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: 14.5px; }
.spec-list li span:first-child { color: var(--text-dim); }
.spec-list li span:last-child { text-align: right; }
.tier .btn { align-self: flex-start; }
.tiers-note { color: var(--text-dim); font-size: 14px; margin-top: 18px; }

/* ---------- Process ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; row-gap: 28px; } }
.steps li { padding-right: 28px; position: relative; }
.step-num {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
  font-family: var(--font-mono); font-size: 13px; color: var(--text-dim);
}
.step-num::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.steps li:last-child .step-num::after { background: linear-gradient(90deg, var(--line), transparent); }
.steps h3 { font-size: 18px; margin-bottom: 8px; }
.steps p { color: var(--text-dim); font-size: 15px; }

/* ---------- Builds ---------- */
.builds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .builds { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .builds { grid-template-columns: 1fr; } }
.build { border: 1px solid var(--line); background: var(--bg-panel); display: flex; flex-direction: column; }
.build-photo { aspect-ratio: 4 / 3; background: var(--bg-panel-2); border-bottom: 1px solid var(--line); overflow: hidden; }
.build-photo img { width: 100%; height: 100%; object-fit: cover; }
.build-photo.is-empty { display: flex; align-items: center; justify-content: center; color: var(--line); background: var(--bg-panel); }
.build-photo.is-empty svg { width: 22%; }
.build-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.build h3 { font-size: 17px; }
.build-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.build-tags li { font-size: 12.5px; color: var(--text-dim); border: 1px solid var(--line); padding: 3px 9px; border-radius: var(--radius); }
.build blockquote { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 14.5px; color: var(--text); }
.build blockquote p::before { content: "“"; }
.build blockquote p::after { content: "”"; }
.build cite { display: block; font-style: normal; color: var(--text-dim); font-size: 13px; margin-top: 6px; }
.builds-cta { margin-top: 28px; color: var(--text-dim); font-size: 15px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 36px; } }
.about h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); margin-bottom: 20px; }
.about-copy p { color: var(--text-dim); font-size: 16.5px; max-width: 560px; }
.about-copy p + p { margin-top: 14px; }
.included { border: 1px solid var(--line); background: var(--bg-panel); padding: 26px 26px 10px; }
.included h3 { font-size: 15px; font-family: var(--font-body); font-weight: 600; color: var(--text-dim); letter-spacing: 0; margin-bottom: 6px; }
.included ul { list-style: none; }
.included li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line-soft); font-size: 15px; }
.included li:first-child { border-top: 0; }
.included li svg { width: 18px; height: 18px; color: var(--text); margin-top: 3px; }
.included li span small { display: block; color: var(--text-dim); font-size: 13.5px; margin-top: 2px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 20px 0; font-family: var(--font-display); font-weight: 600; font-size: 17.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 10px; height: 10px;
  border-right: 1.5px solid var(--text-dim); border-bottom: 1.5px solid var(--text-dim);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq summary:hover { color: var(--text-dim); }
.faq .answer { color: var(--text-dim); font-size: 15.5px; padding: 0 40px 22px 0; max-width: 700px; }
.faq .answer p + p { margin-top: 10px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: 40px; } }
.contact h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); margin-bottom: 16px; }
.contact-intro { color: var(--text-dim); font-size: 16.5px; max-width: 460px; margin-bottom: 30px; }
.contact-list { list-style: none; border-top: 1px solid var(--line-soft); }
.contact-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
.contact-list .ic { width: 40px; height: 40px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--text); border-radius: var(--radius); }
.contact-list .ic svg { width: 17px; height: 17px; }
.contact-list .lbl { font-size: 13px; color: var(--text-dim); }
.contact-list .val { font-size: 15.5px; font-weight: 500; word-break: break-word; }
.contact-list a.val:hover { text-decoration: underline; text-underline-offset: 3px; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--radius); display: inline-flex; align-items: center; justify-content: center; color: var(--text-dim); transition: color .15s ease, border-color .15s ease; }
.socials a:hover { color: var(--text); border-color: var(--text-dim); }
.socials svg { width: 18px; height: 18px; }

.contact-form { background: var(--bg-panel); border: 1px solid var(--line); padding: 30px; position: relative; }
@media (max-width: 560px) { .contact-form { padding: 22px 18px; } }
.contact-form h3 { font-size: 18px; margin-bottom: 20px; }
.contact-form .btn { width: 100%; }
.form-foot { font-size: 13.5px; color: var(--text-dim); margin-top: 12px; text-align: center; }

/* ---------- Build posts (cards link to build.html) ---------- */
.build { position: relative; }
.build h3 a.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.build h3 a.stretched:hover { text-decoration: underline; text-underline-offset: 3px; }
.build h3 a.stretched:focus-visible { outline: none; }
.build:has(a.stretched:focus-visible) { outline: 2px solid var(--text); outline-offset: 3px; }
.build-date { font-size: 13px; color: var(--text-dim); margin-top: -6px; }
.build-more { font-size: 13px; color: var(--text-dim); }

.posts-head { padding: 56px 0 36px; max-width: 680px; }
.posts-head h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); }
.posts-head p { color: var(--text-dim); font-size: 16.5px; margin-top: 12px; }
.posts-empty { border: 1px solid var(--line); padding: 40px 24px; text-align: center; color: var(--text-dim); }
.posts-section { padding: 0 0 96px; }

/* ---------- Single build ---------- */
.post { padding: 32px 0 96px; }
.post-back { display: inline-block; font-size: 14px; color: var(--text-dim); margin-bottom: 20px; }
.post-back:hover { color: var(--text); }
.post h1 { font-size: clamp(2rem, 4.6vw, 3rem); max-width: 860px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 14px 0 28px; color: var(--text-dim); font-size: 14px; }
.post-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr; gap: 32px; } }

.gallery-main { position: relative; aspect-ratio: 4 / 3; background: var(--bg-panel); border: 1px solid var(--line); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: var(--bg-panel); }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.gallery-nav:hover { border-color: var(--text); }
.gallery-nav svg { width: 18px; height: 18px; }
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
.gallery-count { position: absolute; right: 12px; bottom: 12px; background: var(--bg); border: 1px solid var(--line); font-size: 12.5px; padding: 2px 8px; font-family: var(--font-mono); }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: 0 0 auto; width: 84px; aspect-ratio: 4 / 3; border: 1px solid var(--line); padding: 0; background: var(--bg-panel); cursor: pointer; overflow: hidden; opacity: .6; }
.thumbs button[aria-current="true"] { opacity: 1; border-color: var(--text); }
.thumbs button:hover { opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.post-body p { color: var(--text-dim); font-size: 16.5px; white-space: pre-line; }
.post-body p + p { margin-top: 14px; }
.post-quote { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.post-quote p { font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.4; }
.post-quote cite { display: block; font-style: normal; color: var(--text-dim); font-size: 14px; margin-top: 8px; }
.post-cta { margin-top: 32px; padding: 22px; border: 1px solid var(--line); background: var(--bg-panel); }
.post-cta h2 { font-size: 18px; margin-bottom: 6px; }
.post-cta p { color: var(--text-dim); font-size: 15px; margin-bottom: 16px; }
.post-cta .btns { display: flex; gap: 10px; flex-wrap: wrap; }
