/* Homepage: brand hero, showcase frame, work, night-sky panel, about, toolkit, FAQ. */

/* ---------- Brand hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
/* The intro fills the first screen; the showcase starts below the fold. */
.hero-main { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; min-height: 100vh; min-height: 100svh; padding: calc(var(--nav-h) + 40px) 0 72px; }
.hero-bg { position: absolute; inset: 0 0 auto; z-index: -1; height: 100%; max-height: 1080px; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(243,228,201,0) 55%, var(--sf) 92%),
    radial-gradient(70% 46% at 50% 0%, rgba(138,95,65,.30) 0%, rgba(185,139,96,.22) 30%, rgba(216,196,158,.30) 58%, rgba(243,228,201,0) 82%),
    radial-gradient(120% 70% at 50% 8%, rgba(248,239,217,.85) 0%, rgba(241,226,198,.5) 45%, rgba(243,228,201,0) 75%),
    var(--sf);
}
.hero-bg::before { content: ''; position: absolute; inset: 0 0 auto; height: 112px; background: linear-gradient(180deg, var(--card) 0%, rgba(248,239,217,0) 100%); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background-image: var(--noise); opacity: .12; mix-blend-mode: overlay; }
.hero-blob { position: absolute; left: 50%; top: 260px; width: 600px; height: 400px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, #c9a77a 0%, #e3cba3 40%, transparent 70%); filter: blur(100px); opacity: .45; }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-inner .motif { margin-bottom: 20px; }
.hero-inner .hero-eyebrow { margin-bottom: 28px; }
.hero-sub { max-width: 700px; margin-top: 24px; color: var(--tx-secondary); font-size: 18px; line-height: 1.75; }
@media (min-width: 768px) { .hero-sub { font-size: 20px; line-height: 35px; } }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.hero-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 12px; margin-top: 28px; color: var(--tx-tertiary); font-size: 14px; }
.hero-status .badge-new { font-size: 13px; padding: 3px 10px; }

/* Glass showcase frame */
.showcase { width: 100%; margin-top: 0; padding: 6px; border-radius: var(--r-3xl); border: 1px solid rgba(248,239,217,.35); outline: 1px solid rgba(248,239,217,.2); background: linear-gradient(180deg, rgba(67,48,31,.16), rgba(67,48,31,.06)); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); text-align: left; }
.showcase-tabs { display: flex; gap: 6px; }
.showcase-tabs button { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding-inline: 12px; border-radius: 16px 16px 4px 4px; background: var(--sf-tertiary); color: var(--tx-tertiary); font-size: 16px; font-weight: 525; transition: background-color .35s var(--ease-ui), color .35s var(--ease-ui); }
.showcase-tabs button:hover { color: var(--tx); }
.showcase-tabs button[aria-selected="true"] { background: var(--card); color: var(--indigo-800); }
.showcase-tabs .ico { width: 16px; height: 16px; }
.showcase-inner { margin-top: 6px; padding: 24px 16px 18px; border-radius: 4px 4px 18px 18px; background: var(--sf); }
@media (min-width: 768px) { .showcase-inner { padding: 56px 40px 28px; } }
.demo-panel img { width: 100%; border-radius: var(--r-xl); }
.showcase-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--st-secondary); color: var(--tx-secondary); font-size: 14px; }
@media (max-width: 560px) { .showcase-tabs button { font-size: 14px; gap: 6px; } .showcase-tabs .ico { display: none; } }

/* ---------- Section headers ---------- */
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
@media (min-width: 768px) { .section-head { margin-bottom: 56px; } }
.section-head .h-section { margin-top: 4px; }
.section-intro { max-width: 672px; margin-top: 8px; color: var(--tx-tertiary); font-size: 18px; line-height: 1.65; }
.section-head-center { align-items: center; text-align: center; }
.section-head-split { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 40px; }
.section-head-split > div:first-child { display: flex; flex-direction: column; gap: 12px; }

/* Light segmented control with sliding indicator */
.work-toolbar { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.segmented { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--st-secondary); }
.segmented button { position: relative; z-index: 1; height: 40px; padding-inline: 12px; border-radius: 999px; color: var(--tx-tertiary); font-size: 14px; font-weight: 425; white-space: nowrap; transition: color var(--d-normal) ease-out; }
.segmented button[aria-pressed="true"] { color: var(--tx); font-weight: 525; }
.segmented button:hover { color: var(--tx); }
.segmented-indicator { position: absolute; top: 4px; left: 0; height: 40px; width: 0; border-radius: 999px; background: var(--sf-secondary); box-shadow: var(--sh-btn-secondary); transition: transform .4s var(--ease-spring), width .4s var(--ease-spring); }
.no-indicator .segmented button[aria-pressed="true"] { background: var(--sf-secondary); }
@media (min-width: 768px) { .segmented button { padding-inline: 16px; font-size: 16px; } }
.work-count { color: var(--tx-tertiary); font-size: 13px; }
@media (max-width: 767px) {
  .work-toolbar { align-items: flex-start; width: 100%; }
  .segmented { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
}

/* ---------- Work list ---------- */
.work-list { display: flex; flex-direction: column; gap: 24px; }
.meta { color: var(--tx-tertiary); font-size: 13px; line-height: 19.5px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }

/* Featured post */
.featured { display: grid; gap: 28px; margin-bottom: 40px; }
@media (min-width: 1024px) { .featured { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 48px; align-items: stretch; } }
.featured-media { display: block; align-self: center; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--st-secondary); background: var(--sf-secondary); }
.featured-media img { width: 100%; transition: transform var(--d-slow) var(--ease-ui); }
.featured:hover .featured-media img { transform: scale(1.02); }
.featured-body { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding-block: 32px; border-block: 1px solid var(--st-secondary); }
@media (min-width: 1024px) { .featured-body { padding-block: 48px; } }
.featured-title { margin-top: 12px; font-size: clamp(24px, 2.4vw, 28px); line-height: 1.2; letter-spacing: -.02em; font-weight: 525; color: var(--tx); text-wrap: balance; }
.featured-title a:hover, .story-title a:hover, .post-title a:hover { color: var(--indigo-800); }
.featured-desc { margin: 16px 0 24px; color: var(--tx-secondary); font-size: 16px; line-height: 1.6; }
.featured-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Customer-story style cards */
.story { display: grid; gap: 24px; padding: 16px; border-radius: var(--r-4xl); background: var(--card); border: 1px solid var(--st-secondary); }
@media (min-width: 900px) {
  .story { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
  .story-reverse .story-panel { order: 2; }
}
.story-panel { display: grid; place-items: center; overflow: hidden; padding: clamp(20px, 4vw, 44px); border-radius: var(--r-3xl); aspect-ratio: 493 / 370; }
.story-panel img { width: 100%; border-radius: var(--r-xl); box-shadow: var(--sh-card-float); transition: transform var(--d-slow) var(--ease-ui); }
.story:hover .story-panel img { transform: scale(1.02); }
.story-indigo { background: linear-gradient(to bottom right, var(--indigo-100), var(--card)); }
.story-orange { background: linear-gradient(to bottom right, var(--orange-100), var(--card)); }
.story-body { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 8px 8px 16px; }
@media (min-width: 900px) { .story-body { padding: 24px 32px 24px 0; } .story-reverse .story-body { padding: 24px 0 24px 32px; } }
.story-title { font-size: 24px; line-height: 30px; font-weight: 525; letter-spacing: -.01em; color: var(--tx); }
.story-desc { color: var(--tx-secondary); font-size: 16px; line-height: 25.6px; }
.story-body .text-link { margin-top: 6px; }

/* Blog-style cards */
.post-grid { display: grid; gap: 40px; margin-top: 24px; }
@media (min-width: 768px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.post { display: flex; flex-direction: column; gap: 12px; }
.post-thumb { display: block; overflow: hidden; margin-bottom: 4px; border-radius: var(--r-lg); border: 1px solid var(--st-secondary); }
.post-thumb img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; transition: transform var(--d-slow) var(--ease-ui); }
.post:hover .post-thumb img { transform: scale(1.02); }
.post-title { font-size: 18px; line-height: 26.1px; font-weight: 525; letter-spacing: -.015em; color: var(--tx); }
.post-desc { color: var(--tx-tertiary); font-size: 16px; line-height: 1.55; }
.post-grid:not(:has(> .post:not([hidden]))) { display: none; }

/* ---------- Night-sky panel ---------- */
.night-panel { display: grid; overflow: hidden; border-radius: 28px; background: linear-gradient(to bottom right, #2a1d12 0%, #573d2e 62%, #b98b60 130%); box-shadow: var(--sh-night-panel); color: var(--tx-inverse); }
@media (min-width: 768px) { .night-panel { border-radius: 42px; } }
@media (min-width: 1024px) { .night-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.night-cell { display: flex; flex-direction: column; align-items: flex-start; padding: 32px 28px; border-bottom: 1px solid rgba(243,228,201,.14); }
.night-cell:last-child { border-bottom: 0; }
@media (min-width: 768px) { .night-cell { padding: 40px; } }
@media (min-width: 1024px) { .night-cell { border-bottom: 0; border-right: 1px solid rgba(243,228,201,.14); } .night-cell:last-child { border-right: 0; } }
.night-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 32px; border-radius: var(--r-lg); background: rgba(243,228,201,.08); border: 1px solid rgba(243,228,201,.18); color: #e3cba3; }
.night-icon .ico { width: 20px; height: 20px; }
.night-cell h3 { font-size: 22px; line-height: 1.3; font-weight: 525; color: var(--tx-inverse); }
.night-cell > p:not(.night-label) { margin-top: 12px; color: rgba(243,228,201,.78); font-size: 16px; line-height: 22.4px; }
.night-label { margin-top: auto; padding-top: 36px; color: #d8c49e; font-size: 12px; font-weight: 525; letter-spacing: .3px; text-transform: uppercase; }
.night-output { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--tx-inverse); font-size: 20px; line-height: 28px; letter-spacing: -.5px; font-weight: 425; }
.night-output .ico { width: 18px; height: 18px; opacity: .7; transition: transform .35s var(--ease-ui), opacity .35s var(--ease-ui); }
.night-output:hover .ico { transform: translate(2px,-2px); opacity: 1; }
.night-output:focus-visible { outline-color: var(--tx-inverse); }

/* ---------- About ---------- */
.about { display: grid; gap: 48px; }
@media (min-width: 1024px) { .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 80px; align-items: start; } }
.about-intro { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 1024px) { .about-intro { position: sticky; top: calc(var(--nav-h) + 40px); } }
.about-intro > p:not(.eyebrow) { max-width: 560px; margin-top: 8px; color: var(--tx-secondary); font-size: 18px; line-height: 29.25px; }
.stat-rows { margin-top: 24px; max-width: 560px; }
.stat-rows > div { display: flex; justify-content: space-between; gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--st); }
.stat-rows dt { color: var(--tx-tertiary); font-size: 16px; }
.stat-rows dd { color: var(--tx); font-size: 18px; font-weight: 525; letter-spacing: -.3px; text-align: right; }
@media (min-width: 768px) { .stat-rows dd { font-size: 20px; } }

/* Trust-commitment style career cards */
.career { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-2xl); border: 1px solid var(--st-secondary); background: linear-gradient(180deg, var(--card) 0%, var(--sf-secondary) 100%); }
.career::before { content: ''; position: absolute; top: -150px; left: -150px; z-index: -1; width: 260px; height: 260px; background: url('/img/mandala.svg') center / contain no-repeat; opacity: .55; }
.career-item { display: flex; flex-direction: column; gap: 8px; padding: 28px 32px; }
.career-item + .career-item { border-top: 1px solid var(--st-secondary); }
.career-item:first-child { padding-top: 64px; }
.career-item h3 { margin-top: 6px; font-size: 20px; line-height: 26px; font-weight: 525; color: var(--tx); }
.career-company { color: var(--tx-tertiary); font-size: 14px; }
.career-item > p:last-child { color: var(--tx-secondary); font-size: 14px; line-height: 21.7px; }

/* ---------- Toolkit ---------- */
.toolkit { max-width: 1040px; margin-inline: auto; border-top: 1px solid var(--st-secondary); }
.toolkit-row { display: grid; gap: 14px; padding-block: 22px; border-bottom: 1px solid var(--st-secondary); }
@media (min-width: 768px) { .toolkit-row { grid-template-columns: 220px minmax(0, 1fr); align-items: center; gap: 24px; } }
.toolkit-row dd { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- FAQ ---------- */
.faq { max-width: 896px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--st-secondary); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 20px; color: var(--tx-secondary); font-size: 18px; line-height: 29.25px; cursor: pointer; list-style: none; transition: color var(--d-normal) ease-out; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--tx); }
.faq summary:focus-visible { outline-offset: -2px; }
.faq summary .ico { width: 16px; height: 16px; color: var(--tx-tertiary); transition: transform var(--d-moderate) var(--ease-ui); }
.faq details[open] summary { color: var(--tx); }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq details p { max-width: 760px; padding-bottom: 24px; color: var(--tx-tertiary); font-size: 16px; line-height: 1.65; }
#faq { padding-bottom: 96px; }
@media (min-width: 768px) { #faq { padding-bottom: 176px; } }
