:root {
  --ink: #152c24;
  --green: #204e3e;
  --dark: #102b23;
  --mint: #c2edd6;
  --muted: #52665c;
  --line: #d4ddd5;
  --mist: #edf3ee;
  --paper: #f8faf7;
  --header: 76px;
  --space: clamp(64px, 7vw, 108px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 14px); }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 16px/1.75 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll, body:has(.image-viewer[open]) { overflow: hidden; }
button, input, textarea, select { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
button { border: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, ol, dl, dd { margin: 0; }
h2, h3 { line-height: 1.23; letter-spacing: -.035em; }
h2 { font-size: clamp(34px, 4vw, 58px); font-weight: 640; }
h3 { font-size: clamp(23px, 2.2vw, 32px); font-weight: 620; }
::selection { background: #caedda; color: #102b23; }
:focus-visible { outline: 3px solid #359568; outline-offset: 4px; }
.hero :focus-visible, .contact :focus-visible, .nav-panel :focus-visible { outline-color: var(--mint); }
.wrap { width: min(1280px, calc(100% - clamp(40px, 10vw, 160px))); margin-inline: auto; }
.skip { position: fixed; top: 8px; left: 12px; z-index: 80; padding: 8px 16px; transform: translateY(-160%); background: white; }
.skip:focus { transform: none; }

/* Persistent navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #faf9f4;
  border-bottom: 1px solid #dce3dd;
}
.site-header.is-scrolled { box-shadow: 0 3px 18px #0c22100c; }
.header-inner, .logo, .primary-nav, .menu-toggle { display: flex; align-items: center; }
.header-inner { justify-content: space-between; min-height: var(--header); }
.logo { gap: 9px; width: fit-content; color: #263c33; }
.logo img { flex: none; }
.logo-cn { font-size: 24px; font-weight: 730; letter-spacing: .08em; line-height: 1; }
.logo-en { border-left: 1px solid #bac6be; padding-left: 10px; font-size: 17px; font-weight: 600; letter-spacing: -.055em; line-height: 1; }
.primary-nav { gap: clamp(22px, 3.2vw, 48px); }
.primary-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 540; }
.primary-nav a.is-active:not(.nav-cta), .primary-nav a:hover:not(.nav-cta) { color: #226548; text-decoration: underline; text-underline-offset: 7px; }
.nav-cta { padding-inline: 19px; gap: 15px; border-radius: 4px; background: var(--ink); color: #fff; }
.nav-cta:hover { background: #306448; }
.menu-toggle, .nav-panel { display: none; }

/* Brand stage and business directory */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(500px, 41vw, 650px);
  overflow: hidden;
  background: #0c201a;
  color: white;
}
.hero-art { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% center; }
.hero > picture { display: contents; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #0a1610ab, #0a161059 38%, transparent 67%);
}
.hero-content { padding-block: clamp(64px, 6.8vw, 106px); }
h1 { margin: 0 0 22px; font-size: clamp(46px, 4.65vw, 76px); line-height: 1.18; letter-spacing: -.045em; font-weight: 650; }
h1 em { font-style: normal; color: #d6e4b8; }
.lead { max-width: min(29em, 45%); color: #dbe6df; font-size: clamp(16px, 1.2vw, 19px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 22px; padding: 9px 21px; border-radius: 4px; font-size: 15px; font-weight: 600; transition: background .2s, color .2s; }
.btn-light { background: #e9edd7; color: #183628; }
.btn-light:hover { background: white; }
.btn-outline { border: 1px solid #83988c; color: white; background: #102b2330; }
.btn-outline:hover { background: #ffffff17; }
.directory { border-top: 1px solid #ffffff22; background: #192920; color: #fff; }
.directory-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 23px; }
.directory a { position: relative; display: grid; align-content: center; padding: 1px 32px; border-left: 1px solid #ffffff30; }
.directory a:first-child { padding-left: 0; border: 0; }
.directory a::after { content: "↘"; position: absolute; top: 50%; right: 17px; font-size: 17px; color: #9bc5aa; transform: translateY(-50%); }
.directory small { color: #b7d2c0; font-size: 12px; }
.directory strong { font-size: clamp(15px, 1.35vw, 19px); font-weight: 550; }
.directory a:hover strong { text-decoration: underline; text-underline-offset: 4px; }

/* Product gallery */
.products { background: #f8f7f1; }
.products, .work, .about, .contact { padding-block: var(--space); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(28px, 3.1vw, 46px); }
.section-head > p { max-width: 32em; color: var(--muted); font-size: 16px; }
.product-grid { display: grid; gap: clamp(24px, 3vw, 44px); }
.product-card { overflow: hidden; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.product-visual { position: relative; display: flex; align-items: center; overflow: hidden; height: clamp(235px, 24vw, 350px); }
.organizer-visual { justify-content: center; background: #ebd49f url("../assets/organizer-room.jpg") center / cover; }
.organizer-visual::before { content: ""; position: absolute; inset: 0; background: #f7e8bf38; }
.game-screen { position: relative; height: 92%; width: auto; border: 3px solid #35332b; border-radius: 12px; box-shadow: 3px 8px 20px #47352155; }
.product-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(23px, 2.4vw, 38px); }
.product-body h3 { margin: 0 0 12px; font-size: clamp(26px, 2.85vw, 42px); }
.product-body > p, .about-copy > p, .step p { color: var(--muted); }
.product-link { display: inline-flex; gap: 15px; align-items: center; min-height: 44px; margin-top: auto; padding-top: 15px; font-size: 15px; font-weight: 620; color: var(--green); }
.product-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.kopi-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  padding-block: clamp(20px, 2.5vw, 36px);
  border-block: 1px solid var(--line);
}
.kopi-shot { display: block; cursor: zoom-in; }
.kopi-shot img { width: 100%; height: auto; border-radius: 6px; }
.kopi-copy h3 { margin-bottom: 14px; font-size: clamp(32px, 3.3vw, 48px); }
.kopi-copy p { max-width: 30em; color: var(--muted); }
.kopi-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.kopi-preview { display: inline-block; padding-block: 10px; color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 820px) {
  #organizer { flex-direction: row; align-items: stretch; }
  #organizer .product-visual { flex: 0 0 45%; height: auto; min-height: 260px; }
  #organizer .game-screen { height: clamp(240px, 17vw, 290px); margin-block: 12px; }
  #organizer .product-body { align-self: center; }
}
@media (max-width: 819px) {
  .kopi-feature, .about .about-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* Enterprise services */
.work { background: #f3f5f0; }
.service-list { border-bottom: 1px solid var(--line); }
.service-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr) auto;
  align-items: baseline;
  gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(26px, 3vw, 44px);
  border-top: 1px solid var(--line);
}
.service-list h3 { font-size: clamp(22px, 2vw, 30px); }
.service-list p { max-width: 34em; color: var(--muted); }
.service-inquiry { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; width: fit-content; color: var(--green); font-size: 15px; font-weight: 600; }
.service-inquiry:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 819px) {
  .service-list article { grid-template-columns: 1fr; gap: 10px; }
}

/* Company and delivery */
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(40px, 7vw, 100px); }
.about-art { overflow: hidden; border-radius: 6px; }
.about-art img { width: 100%; height: auto; }
.about-copy h2 { margin: 0 0 22px; }
.about-copy > p + p { margin-top: 12px; }
.method { padding-bottom: var(--space); }
.method .wrap { padding-top: clamp(34px, 4vw, 60px); border-top: 1px solid var(--line); }
.method h2 { font-size: clamp(27px, 3vw, 42px); }
.step-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 64px); padding: 0; list-style: none; }
.num { display: flex; align-items: center; gap: 18px; color: #548165; font-size: 15px; font-variant-numeric: tabular-nums; }
.num::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.step h3 { margin: 15px 0 10px; font-size: 22px; }

/* Project enquiries */
.contact { background: linear-gradient(122deg, #103629 0%, #142e26 62%, #203d2f); color: white; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(40px, 7vw, 100px); }
.contact h2 { margin: 16px 0 20px; }
.section-lead { max-width: 28em; color: #cdded2; }
.contact-lines { display: grid; gap: 18px; margin-top: 34px; }
.contact-lines dt { color: #bbd2c1; font-size: 14px; }
.contact-lines dd { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 3px; }
.contact-email { font-size: clamp(21px, 2.4vw, 34px); letter-spacing: -.04em; line-height: 1.4; overflow-wrap: anywhere; }
.contact-email:hover, .copy-wechat:hover { text-decoration: underline; text-underline-offset: 4px; }
#wechat-id { font-size: 18px; user-select: all; }
.copy-wechat { padding: 7px 12px; border-radius: 4px; background: #335542; color: white; min-height: 44px; font-size: 13px; }
.form { display: grid; gap: 16px; color: var(--ink); background: #f9fbf7; border-radius: 8px; padding: clamp(24px, 3vw, 42px); }
.form h3 { margin-bottom: 4px; font-size: 25px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; min-width: 0; gap: 5px; }
.form label span { font-size: 14px; font-weight: 580; }
.form label i { color: #587160; font-size: 11px; font-weight: 400; font-style: normal; }
.form input, .form textarea, .form select { width: 100%; min-width: 0; padding: 9px 12px; border: 1px solid #bccbbf; border-radius: 4px; background: white; }
.form input { height: 43px; }
.form textarea { height: 102px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid #54856a; outline-offset: 1px; }
.form .btn { width: fit-content; background: var(--green); color: #fff; }
.form .btn:hover { background: #163d2e; }
.form-note, .form-status { font-size: 13px; }
.form-note, .form .form-status { color: var(--muted); }
.form-status:empty { display: none; }
#wechat-status { margin-top: 10px; }
.site-footer { padding-block: 36px; background: var(--paper); }
.footer-grid { display: flex; justify-content: space-between; align-items: end; gap: 25px; }
.footer-grid p { margin-top: 12px; color: var(--muted); font-size: 13px; }
.footer-meta { text-align: right; }
.footer-meta nav { display: flex; gap: 24px; font-size: 14px; }
.footer-meta a:hover { text-decoration: underline; }

/* Keep the page position while inspecting a product screenshot. */
.image-viewer { width: min(1120px, calc(100% - 24px)); max-width: none; max-height: 94vh; max-height: 94dvh; padding: 0; border: 1px solid #d1dad3; border-radius: 9px; color: var(--ink); background: #fff; box-shadow: 0 20px 90px #08171144; }
.image-viewer[open] { display: flex; flex-direction: column; }
.image-viewer::backdrop { background: #0a1715cf; }
.viewer-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.viewer-bar h2 { flex: 1 1 165px; font-size: 17px; }
.viewer-bar button { min-height: 44px; padding: 5px 12px; border-radius: 4px; font-size: 14px; }
.viewer-close { background: var(--ink); color: white; }
.viewer-zoom { background: var(--mist); }
.viewer-zoom[aria-pressed="true"] { background: #d3e9db; }
.viewer-canvas { overflow: auto; min-height: 0; overscroll-behavior: contain; background: var(--mist); }
.viewer-canvas img { margin: auto; width: auto; max-width: 100%; max-height: 72vh; max-height: 72dvh; }
.image-viewer.is-zoomed img { max-width: none; max-height: none; }

@media (max-width: 819px) {
  :root { --header: 64px; }
  .primary-nav { display: none; }
  .menu-toggle { display: flex; gap: 10px; padding: 10px 4px; min-height: 44px; background: transparent; font-size: 14px; }
  .menu-lines { width: 18px; height: 10px; border-block: 1.5px solid currentColor; }
  .site-header.is-open .open-label, .site-header:not(.is-open) .close-label { display: none; }
  .nav-panel.is-open { display: flex; flex-direction: column; position: fixed; inset: var(--header) 0 0; z-index: 30; overflow-y: auto; padding: 22px 6vw 36px; background: var(--dark); color: white; }
  .nav-panel nav { display: grid; }
  .nav-panel a { padding: 14px 0; border-bottom: 1px solid #ffffff30; font-size: clamp(21px, 5vw, 28px); }
  .nav-panel a[aria-current="location"] { color: var(--mint); border-bottom-color: var(--mint); }
  .nav-panel-foot { padding-top: 24px; color: var(--mint); font-size: 13px; }
  .directory a { padding-inline: 14px; }
  .directory a::after { display: none; }
  .section-head { display: grid; gap: 12px; }
  .lead { max-width: 50%; }
  .contact-grid, .about-grid { gap: 32px; }
}

@media (max-width: 640px) {
  .logo img { width: 30px; height: 33px; }
  .logo-cn { font-size: 21px; }
  .logo-en { font-size: 15px; }
  .hero { min-height: 0; }
  .hero-content { padding-block: 39px clamp(190px, 48vw, 265px); }
  .hero-art { inset: auto 0 0; width: 100%; height: 47%; object-position: center 66%; }
  .hero::before { background: linear-gradient(180deg, #0c201a 51%, #0c201afa 53%, #0c201a75 65%, transparent 82%); }
  h1 { font-size: clamp(36px, 8.5vw, 52px); margin-block: 0 14px; }
  .lead { max-width: 32em; font-size: 15px; }
  .actions { margin-top: 19px; }
  .hero .btn-outline { background: #102b23de; }
  .btn { min-height: 44px; gap: 15px; padding-inline: 16px; }
  .directory-grid { grid-template-columns: repeat(2, 1fr); padding-block: 6px; }
  .directory a, .directory a:first-child { padding: 12px 0; border: 0; }
  .directory a:nth-child(even) { padding-left: 16px; }
  .directory a:nth-child(n+3) { border-top: 1px solid #ffffff30; }
  .directory a::after { display: block; right: 8px; font-size: 14px; }
  .section-head > p, .about-copy p, .product-body > p, .service-list p { font-size: 15px; }
  .product-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .product-visual { height: auto; aspect-ratio: 1.68; }
  .product-body { padding: 22px; }
  .step-list { grid-template-columns: 1fr; gap: 20px; }
  .step { display: grid; grid-template-columns: 33px 1fr; gap: 10px; }
  .step h3 { margin-top: 0; }
  .num { align-self: start; padding-top: 4px; }
  .num::after { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { align-items: start; flex-direction: column; }
  .footer-meta { text-align: left; }
}

@media (max-width: 380px) {
  .directory a:nth-child(even) { padding-left: 7px; }
  .directory strong { font-size: 14px; }
  .directory a::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
