/* Mimin Workspace — follows mimin.io / docs.mimin.io: DM Sans, white page, deep teal, soft teal tints, 16px cards. */

:root {
  --teal: #125452;
  --teal-600: #1d716b;
  --teal-tint: #e7eeee;
  --teal-wash: #f4f8f8;
  --ink: #181818;
  --body: #292929;
  --muted: #5a6868;
  --line: #d9e2e2;
  --white: #fff;
  --aqua: #1b98a4;
  --amber: #f9a21e;
  --coral: #f2616d;
  --font: "DM Sans", Helvetica, Arial, sans-serif;
  --radius: 16px;
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; border-radius: 8px; }

kbd {
  font: 600 12px/1 var(--font);
  padding: 4px 7px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
}

/* ---------- Background: rotating city photos, kept faint under a white veil ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--white); }
.slide { position: absolute; inset: -2%; background: center / cover no-repeat; opacity: 0;
  transition: opacity 2.4s ease; filter: saturate(.85); }
.slide.is-on { opacity: .6; animation: pan 16s ease-out forwards; }
.t-jakarta.is-loaded   { background-image: url("/assets/cities/jakarta.webp"); }
.t-singapore.is-loaded { background-image: url("/assets/cities/singapore.webp"); }
.t-kl.is-loaded        { background-image: url("/assets/cities/kuala-lumpur.webp"); }
.t-hongkong.is-loaded  { background-image: url("/assets/cities/hong-kong.webp"); }
.t-shenzhen.is-loaded  { background-image: url("/assets/cities/shenzhen.webp"); }
.t-taipei.is-loaded    { background-image: url("/assets/cities/taipei.webp"); }
/* Veil keeps the top (text) almost white and lets the skyline show more toward the bottom */
.veil { position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.72) 0%, rgba(255,255,255,.35) 45%, rgba(255,255,255,.05) 100%); }
@keyframes pan { from { transform: scale(1.06); } to { transform: scale(1); } }

/* ---------- Header ---------- */
.top { display: flex; align-items: center; gap: 14px; width: 100%; max-width: 1280px; margin: 0 auto; padding: 24px 32px 0; }
.brand img { display: block; height: 34px; width: auto; }
.tag { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal);
  background: var(--teal-tint); padding: 5px 10px; border-radius: 999px; }
.clock { margin-left: auto; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Hero ---------- */
.wrap { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.hero { padding: clamp(32px, 6vh, 72px) 0 32px; }

h1 { margin: 0; font-size: clamp(30px, 3.6vw, 50px); line-height: 1.1; font-weight: 700; letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
.hl { color: var(--teal); }
.hero-row { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.lede { margin: 0; font-size: clamp(16px, 1.6vw, 18px); line-height: 1.5; color: var(--body); font-weight: 500; }

.search { display: flex; align-items: center; gap: 12px; flex: 0 1 380px; padding: 0 14px 0 16px; height: 52px;
  border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.92);
  box-shadow: 0 1px 2px rgba(18,84,82,.04), 0 8px 24px -12px rgba(18,84,82,.18); transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--teal-600); box-shadow: 0 0 0 4px rgba(29,113,107,.12); }
.search svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--ink); font: 400 16px var(--font); }
.search input::placeholder { color: #8a9898; }
.search input::-webkit-search-cancel-button { display: none; }

/* ---------- Tool cards ---------- */
.tools { list-style: none; margin: 0; padding: 0 0 40px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
@media (min-width: 1100px) { .tools { grid-template-columns: repeat(5, 1fr); } }
.tool { --accent: var(--aqua); opacity: 0; transform: translateY(14px); animation: rise .6s cubic-bezier(.2,.7,.2,1) forwards; }
.tool:nth-child(1) { animation-delay: .05s; } .tool:nth-child(2) { animation-delay: .12s; } .tool:nth-child(3) { animation-delay: .19s; }
.tool:nth-child(4) { animation-delay: .26s; } .tool:nth-child(5) { animation-delay: .33s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Accent = icon/link colour (dark enough for text on white); tint = icon tile */
.t-amber { --accent: #b86e00; --tint: #fff3df; }
.t-aqua  { --accent: #12798a; --tint: #e3f4f5; }
.t-coral { --accent: #c93844; --tint: #fde8ea; }
.t-green { --accent: #1c8a4a; --tint: #e2f5e9; }
.t-blue  { --accent: #3461c9; --tint: #e8eefc; }

.tool a { position: relative; display: flex; flex-direction: column; height: 100%; padding: 24px 22px 20px; border-radius: var(--radius);
  background: rgba(255,255,255,.86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  box-shadow: 0 1px 2px rgba(18,84,82,.04);
  transition: transform .25s cubic-bezier(.2,.7,.2,1), border-color .25s, box-shadow .25s; }
.tool a::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--tint), transparent 65%); }
.tool a:hover, .tool a:focus-visible { transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  box-shadow: 0 20px 40px -20px color-mix(in srgb, var(--accent) 45%, transparent); }
.tool a:hover::before, .tool a:focus-visible::before { opacity: 1; }

.ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--tint); }
.ico svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.key { position: absolute; top: 22px; right: 22px; font-size: 12px; font-weight: 600; color: #8a9898;
  width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }

.tool h2 { margin: 18px 0 0; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.tool p { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--body); font-weight: 500; }
.url { margin-top: auto; padding-top: 20px; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
  color: var(--accent); white-space: nowrap; letter-spacing: -0.01em; }
.url i { font-style: normal; transition: transform .25s; }
.tool a:hover .url i { transform: translateX(4px); }

.tool.is-hidden { display: none; }
.empty { margin: -16px 0 40px; color: var(--muted); }

/* ---------- Footer ---------- */
.foot { width: 100%; max-width: 1280px; margin: 0 auto; padding: 18px 32px 24px; align-items: center; display: flex; flex-wrap: wrap; gap: 8px 24px;
  justify-content: space-between; font-size: 13px; color: var(--body); border-top: 1px solid var(--line);
  background: rgba(255,255,255,.7); box-shadow: 0 0 0 100vmax rgba(255,255,255,.7); clip-path: inset(0 -100vmax -100vmax); }
.city { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--teal); transition: opacity .6s; }
.city::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.city.is-fading { opacity: 0; }

@media (max-width: 560px) {
  .top { padding: 18px 16px 0; }
  .wrap { padding: 0 16px; }
  .foot { padding: 18px 16px 24px; }
  .clock, .search kbd, .foot span:first-child, .key { display: none; }
  .search { flex-basis: 100%; }
  .brand img { height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .tool { opacity: 1; transform: none; }
  .slide.is-on { transform: none; }
}
