/* myClover daylight pages: /work/, /work/<slug>/, /hire/, /walkthrough/ (generated by tools/build-portfolio.mjs).
   Shares tokens and the top bar with the homepage (entry/entry.css). Readable without JavaScript. */
:root {
  --night: #04100a; --night2: #08190f; --leaf: #34d27a; --leaf-hi: #93ffc4; --leaf-deep: #0a6c37; --mint: #c3f8da;
  --gold: #f4c75a; --gold-deep: #c9912b; --paper: #f7f2e6; --paper2: #efe7d3; --card: #fffdf7;
  --ink: #0e2318; --ink2: #3a5245; --ink3: #5f7568; --line: #dcd2bb;
  --head: 'Kanit', 'Anuphan', system-ui, sans-serif; --body: 'Anuphan', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 17px/1.7 var(--body); color: var(--ink); background: var(--paper); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; margin: 0; line-height: 1.22; text-wrap: balance; }
p { margin: 0; }
b, strong { font-weight: 600; }
.nw { white-space: nowrap; }
ul, ol { margin: 0; padding: 0; }
svg.i { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: var(--gold); color: #1a1205; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

/* top bar */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: rgba(247, 242, 230, .88); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 1px 0 rgba(14, 35, 24, .08); }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 600 18px/1 var(--head); }
.brand img { width: 30px; height: 30px; border-radius: 9px; }
.brand em { font-style: normal; color: var(--leaf-deep); }
.top-nav { display: flex; align-items: center; gap: 2px; font-size: 15px; }
.top-nav a { text-decoration: none; padding: 8px 10px; border-radius: 999px; white-space: nowrap; color: var(--ink2); }
.top-nav a:hover { background: rgba(14, 35, 24, .06); color: var(--ink); }
.top-nav a[aria-current="page"] { color: var(--ink); background: rgba(52, 210, 122, .16); font-weight: 600; }
.top-house { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(14, 35, 24, .2); }
@media (max-width: 520px) { .top { padding-inline: 12px; } .brand span { display: none; } .top-nav { font-size: 14px; } .top-nav a { padding: 7px 8px; } .top-house span { display: none; } }

/* night band (page hero) */
.band { position: relative; isolation: isolate; overflow: hidden; color: #eafff2; background: radial-gradient(70% 90% at 15% 0%, rgba(52, 210, 122, .32), transparent 60%), radial-gradient(60% 80% at 100% 100%, rgba(244, 199, 90, .18), transparent 60%), var(--night); padding: 64px 0 56px; }
@media (min-width: 900px) { .band { padding: 96px 0 84px; } }
.band::after { content: ''; position: absolute; left: -10%; right: -10%; bottom: -30%; height: 60%; z-index: -1; transform: perspective(520px) rotateX(64deg); background-image: linear-gradient(rgba(147, 255, 196, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(147, 255, 196, .14) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: linear-gradient(to top, #000, transparent 90%); mask-image: linear-gradient(to top, #000, transparent 90%); }
.band .kicker { color: var(--leaf-hi); }
.band h1 { font-size: clamp(30px, 6.4vw, 54px); max-width: 20ch; }
.band .lede { color: rgba(233, 255, 242, .8); }
.kicker { font: 600 14px/1 var(--body); letter-spacing: .1em; color: var(--leaf-deep); margin-bottom: 14px; }
.lede { margin-top: 14px; font-size: 18px; line-height: 1.65; color: var(--ink2); max-width: 62ch; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.note { margin-top: 14px; font-size: 15px; color: rgba(233, 255, 242, .66); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 999px; font: 600 16px/1 var(--head); text-decoration: none; cursor: pointer; border: 0; transition: transform .35s var(--spring), box-shadow .35s, background .3s; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { color: #2a1a02; background: linear-gradient(140deg, #ffe9a6, var(--gold) 45%, var(--gold-deep)); box-shadow: 0 16px 40px -14px rgba(244, 199, 90, .7); }
.btn-leaf { color: #04220f; background: linear-gradient(140deg, var(--leaf-hi), var(--leaf)); box-shadow: 0 16px 36px -14px rgba(52, 210, 122, .7); }
.btn-glass { color: #eafff2; background: rgba(147, 255, 196, .08); box-shadow: 0 0 0 1px rgba(147, 255, 196, .32) inset; }
.btn-ink { color: #f4fff8; background: var(--ink); }
.btn-ink:hover { background: #163526; }
.btn-line { color: var(--ink); background: transparent; box-shadow: 0 0 0 1.5px rgba(14, 35, 24, .25) inset; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--leaf-deep); text-decoration: none; border-bottom: 2px solid rgba(12, 122, 63, .25); padding: 4px 0; }
.text-link:hover { border-color: var(--leaf-deep); }

/* sections */
.sec { padding: 64px 0; }
@media (min-width: 900px) { .sec { padding: 92px 0; } }
.sec h2 { font-size: clamp(25px, 4.2vw, 38px); max-width: 24ch; }
.sec.alt { background: var(--paper2); }
.sec.mint { background: #e8f2e7; }
.badge { display: inline-flex; align-items: center; font: 600 13px/1 var(--body); letter-spacing: .04em; padding: 7px 11px; border-radius: 999px; color: #0e2318; background: rgba(255, 253, 247, .94); box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .35); }
.band .badge { background: rgba(147, 255, 196, .14); color: var(--mint); box-shadow: 0 0 0 1px rgba(147, 255, 196, .3) inset; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; list-style: none; }
.chips li { font-size: 14.5px; padding: 6px 12px; border-radius: 999px; background: rgba(147, 255, 196, .08); border: 1px solid rgba(147, 255, 196, .26); color: var(--mint); }

/* case grid (work index) */
.cases { display: grid; gap: 22px; margin-top: 34px; }
@media (min-width: 760px) { .cases { grid-template-columns: 1fr 1fr; } }
.case { position: relative; display: grid; gap: 8px; padding: 10px 10px 22px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.case:hover { transform: translateY(-5px); box-shadow: 0 34px 70px -38px rgba(14, 35, 24, .55); }
.case img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; background: #dfe9df; margin-bottom: 6px; }
.case .badge { position: absolute; top: 22px; left: 22px; }
.case-meta { font: 600 14px/1.3 var(--body); color: var(--leaf-deep); letter-spacing: .03em; padding: 0 10px; }
.case h2, .case h3 { font-size: 24px; padding: 0 10px; }
.case h2 a::after, .case h3 a::after { content: ''; position: absolute; inset: 0; border-radius: 26px; }
.case h2 a, .case h3 a { text-decoration: none; }
.case p { font-size: 16.5px; color: var(--ink2); padding: 0 10px; }
.case-links { display: flex; flex-wrap: wrap; gap: 16px; padding: 6px 10px 0; position: relative; z-index: 1; }

/* case page */
.crumbs { font-size: 15px; color: rgba(233, 255, 242, .7); margin-bottom: 20px; }
.crumbs a { color: var(--leaf-hi); }
.case-head { display: grid; gap: 30px; align-items: center; }
@media (min-width: 960px) { .case-head { grid-template-columns: 1fr 1.05fr; gap: 56px; } }
.case-head h1 { margin-top: 14px; }
.cover { margin: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(147, 255, 196, .2); background: #0b1f15; }
.cover img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.story { display: grid; gap: 54px; }
@media (min-width: 960px) { .story { grid-template-columns: 220px 1fr; gap: 40px 56px; } .story > h2 { position: sticky; top: 90px; align-self: start; font-size: 26px; } }
.story > h2 { font-size: 24px; }
.story > div > p { font-size: 18px; color: var(--ink2); max-width: 64ch; }
.decisions { list-style: none; display: grid; gap: 12px; counter-reset: d; }
.decisions li { counter-increment: d; position: relative; padding: 18px 18px 18px 64px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.decisions li::before { content: counter(d, decimal-leading-zero); position: absolute; left: 18px; top: 16px; font: 600 24px/1 var(--head); color: transparent; -webkit-text-stroke: 1.3px var(--leaf-deep); }
.decisions b { display: block; font: 600 18px/1.35 var(--head); margin-bottom: 4px; }
.decisions span { color: var(--ink2); font-size: 16.5px; }
.role { padding: 20px 22px; border-radius: 18px; background: var(--ink); color: #eafff2; }
.role small { display: block; font-size: 14px; color: rgba(233, 255, 242, .65); margin-bottom: 4px; }
.role b { font: 600 20px/1.4 var(--head); }
.ticks { list-style: none; display: grid; gap: 10px; margin-top: 16px; }
.ticks li { position: relative; padding-left: 30px; font-size: 17px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .5em; width: 14px; height: 8px; border-left: 2.5px solid var(--leaf-deep); border-bottom: 2.5px solid var(--leaf-deep); transform: rotate(-45deg); }
.ticks.dash li::before { width: 12px; height: 0; border-left: 0; transform: none; top: .8em; border-color: var(--gold-deep); }
.cta-box { display: grid; gap: 18px; padding: 30px 22px; border-radius: 26px; color: #eafff2; background: radial-gradient(70% 90% at 0% 0%, rgba(52, 210, 122, .32), transparent 60%), var(--night); }
@media (min-width: 760px) { .cta-box { grid-template-columns: 1fr auto; align-items: center; padding: 40px; } }
.cta-box h2 { font-size: clamp(24px, 3.6vw, 32px); }
.cta-box p { color: rgba(233, 255, 242, .76); margin-top: 6px; }
.cta-box .actions { margin-top: 0; }
.next-case { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 34px; font-size: 16px; }

/* hire */
.svc-list { display: grid; gap: 22px; margin-top: 34px; }
.svc { scroll-margin-top: 90px; display: grid; gap: 22px; padding: 26px 22px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); }
@media (min-width: 900px) { .svc { grid-template-columns: 1fr 1fr; padding: 36px; gap: 40px; } }
.svc h3 { font-size: 26px; }
.svc .lede { font-size: 17px; margin-top: 10px; }
.svc h4 { font: 600 16px/1.3 var(--head); color: var(--leaf-deep); margin: 0 0 8px; letter-spacing: .02em; }
.svc-col { display: grid; gap: 22px; align-content: start; }
.proof-links { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.proof-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); text-decoration: none; font-size: 15.5px; }
.proof-links a:hover { border-color: var(--leaf-deep); }
.agree { list-style: none; display: grid; gap: 12px; margin-top: 28px; counter-reset: a; }
@media (min-width: 760px) { .agree { grid-template-columns: 1fr 1fr; } }
.agree li { padding: 18px 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.agree b { display: block; font: 600 18px/1.35 var(--head); margin-bottom: 4px; }
.agree span { color: var(--ink2); font-size: 16.5px; }
.steps { list-style: none; display: grid; gap: 14px; margin-top: 30px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { padding: 22px 20px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.step-n { font: 600 36px/1 var(--head); color: transparent; -webkit-text-stroke: 1.3px var(--leaf-deep); }
.steps h3 { font-size: 20px; }
.steps p { font-size: 16px; color: var(--ink2); }

/* walkthrough */
.sauce-def { margin-top: 28px; display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 18px; background: rgba(147, 255, 196, .08); border: 1px solid rgba(147, 255, 196, .3); max-width: 640px; }
.sauce-def b { color: var(--gold); font-family: var(--head); }
.lessons { display: grid; gap: 18px; margin-top: 34px; list-style: none; }
@media (min-width: 700px) { .lessons { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .lessons { grid-template-columns: repeat(3, 1fr); } }
.lesson { position: relative; display: grid; gap: 8px; padding: 10px 10px 20px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.lesson:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -34px rgba(14, 35, 24, .5); }
.lesson img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; background: #e6dcc6; }
.lesson .ep { font: 600 14px/1 var(--head); letter-spacing: .1em; color: var(--leaf-deep); padding: 6px 10px 0; }
.lesson h3 { font-size: 21px; padding: 0 10px; }
.lesson h3 a { text-decoration: none; }
.lesson h3 a::after { content: ''; position: absolute; inset: 0; border-radius: 24px; }
.lesson p { font-size: 16px; color: var(--ink2); padding: 0 10px; }
.lesson .go { padding: 4px 10px 0; font-weight: 600; color: var(--leaf-deep); font-size: 15.5px; }
.why { list-style: none; display: grid; gap: 14px; margin-top: 28px; }
@media (min-width: 900px) { .why { grid-template-columns: repeat(3, 1fr); } }
.why li { padding: 22px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.why b { display: block; font: 600 19px/1.35 var(--head); margin-bottom: 6px; }
.why span { color: var(--ink2); font-size: 16.5px; }
.proof { display: grid; gap: 22px; align-items: center; margin-top: 10px; }
@media (min-width: 900px) { .proof { grid-template-columns: 1.1fr 1fr; gap: 48px; } }
.proof img { border-radius: 22px; box-shadow: 0 40px 80px -40px rgba(14, 35, 24, .6); }

/* work: client cards and the quiet link to the ideas page */
.case-role { font-size: 15.5px; color: var(--ink); padding: 0 10px; }
.case-role b { font-weight: 600; color: var(--leaf-deep); }
.case .case-built { margin: 2px 10px 4px; gap: 6px; }
.case .case-built li { font-size: 15.5px; color: var(--ink2); }
.ideas-link { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 16px; color: var(--ink2); max-width: 70ch; }
.ideas-link .text-link { margin-left: 4px; }
.svc .ideas-link { margin-top: 0; padding-top: 12px; }
.svc .ideas-link { font-size: 15px; color: var(--ink3); }
.svc .ideas-link a { color: var(--ink2); font-weight: 400; text-decoration-color: rgba(14, 35, 24, .3); }
.band-sm { padding: 52px 0 46px; }
@media (min-width: 900px) { .band-sm { padding: 72px 0 60px; } }
.ideas-note { margin-top: 14px; font-size: 16px; color: var(--ink2); }

/* showcase (/showcase/) */
.sc-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; list-style: none; }
.sc-stats li { padding: 8px 14px; border-radius: 999px; background: rgba(147, 255, 196, .08); border: 1px solid rgba(147, 255, 196, .26); color: var(--mint); font-size: 15px; }
.sc-stats b { font: 600 18px/1 var(--head); color: var(--gold); margin-right: 4px; }
.suites { display: grid; gap: 16px; margin-top: 30px; }
@media (min-width: 960px) { .suites { grid-template-columns: repeat(3, 1fr); } }
.suite { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); }
.suite h3 { font-size: 22px; }
.suite > p { color: var(--ink2); font-size: 16px; }
.flow { list-style: none; display: grid; gap: 8px; margin-top: 6px; counter-reset: f; }
.flow li { counter-increment: f; position: relative; }
.flow li + li::before { content: ''; position: absolute; left: 22px; top: -9px; height: 10px; border-left: 2px dashed var(--leaf-deep); opacity: .5; }
.flow a { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 14px 6px 8px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 15.5px; }
.flow a::before { content: counter(f); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; background: var(--ink); color: var(--mint); font: 600 14px/1 var(--head); flex: none; }
.flow a:hover { border-color: var(--leaf-deep); }
.filters { display: flex; gap: 8px; margin-top: 22px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.filters::-webkit-scrollbar { display: none; }
.chip-f { flex: none; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font: 600 15px/1 var(--body); color: var(--ink2); cursor: pointer; }
.chip-f[aria-pressed="true"] { background: var(--ink); color: var(--mint); border-color: var(--ink); }
.demos { display: grid; gap: 18px; margin-top: 24px; }
@media (min-width: 720px) { .demos { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .demos { grid-template-columns: repeat(3, 1fr); } }
.demo { display: flex; flex-direction: column; border-radius: 24px; background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.demo[hidden] { display: none; }
.demo:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -36px rgba(14, 35, 24, .5); }
.demo-pic img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #e6e2d6; }
.demo-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 20px; flex: 1; }
.demo-kind { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.demo-kind span { padding: 3px 10px; border-radius: 999px; background: #eef3ec; color: var(--leaf-deep); font-weight: 600; }
.demo-kind span + span { background: transparent; color: var(--ink3); font-weight: 400; padding-left: 0; }
.demo-kind .real-tag { background: var(--ink); color: var(--mint); }
.demo h3 { font-size: 21px; }
.demo h3 a { text-decoration: none; }
.demo h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.demo-body > p { font-size: 15.5px; color: var(--ink2); }
.demo-more { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; font-size: 15px; }
.demo-more summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; font-weight: 600; color: var(--leaf-deep); }
.demo-more h4 { font: 600 15px/1.3 var(--head); margin: 10px 0 0; }
.demo-more .ticks { margin-top: 8px; gap: 6px; }
.demo-more .ticks li { font-size: 15px; }
.demo-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: auto; padding-top: 10px; }
.demo-links .btn { min-height: 44px; font-size: 15px; padding: 0 18px; }
.prep { list-style: none; display: grid; gap: 12px; margin-top: 26px; counter-reset: p; }
@media (min-width: 900px) { .prep { grid-template-columns: repeat(5, 1fr); } }
.prep li { counter-increment: p; display: grid; gap: 6px; align-content: start; padding: 20px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.prep li::before { content: counter(p, decimal-leading-zero); font: 600 30px/1 var(--head); color: transparent; -webkit-text-stroke: 1.3px var(--leaf-deep); }
.prep b { font: 600 18px/1.35 var(--head); }
.prep span { color: var(--ink2); font-size: 15.5px; }
.showcase-strip { display: grid; gap: 18px; align-items: center; }
@media (min-width: 900px) { .showcase-strip { grid-template-columns: 1fr auto; } }

/* footer */
.foot { background: var(--ink); color: rgba(234, 255, 242, .8); padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); }
.foot-grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1fr auto; align-items: center; } }
.foot-brand b { color: #fff; }
.foot-brand span { font-size: 14px; color: rgba(234, 255, 242, .6); }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.foot nav a:hover { color: #fff; text-decoration: underline; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .case, .decisions li, .svc, .agree li, .steps li, .lesson, .why li, .cta-box, .suite, .demo, .prep li { animation: rise-in linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    @keyframes rise-in { from { transform: translateY(30px) scale(.985); } }
  }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.band-sm + .sec { padding-top: 44px; }
