/* serene.asia — still water: morning paper, lake-blue ink, one soft gold. Pages are generated by build.py. */
@view-transition { navigation: auto; }

:root {
  --paper: #f5f4f0;
  --paper-2: #eceee9;
  --card: #fbfbf8;
  --ink: #1c2731;
  --ink-2: #24333f;
  --mute: #5f6c74;
  --line: rgba(28, 39, 49, .13);
  --lake: #3f6175;
  --mist: #dfe7e8;
  --gold: #b0915e;
  --on-ink: rgba(245, 244, 240, .9);
  --on-ink-mute: rgba(245, 244, 240, .62);
  --serif: "Cormorant Garamond", "Zen Old Mincho", "Times New Roman", serif;
  --mincho: "Zen Old Mincho", "Cormorant Garamond", serif;
  --sans: "Zen Kaku Gothic New", system-ui, sans-serif;
  --gut: clamp(16px, 4.5vw, 64px);
  --head: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--head); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/2 var(--sans);
  font-feature-settings: "palt";
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
::selection { background: var(--mist); color: var(--ink); }
:focus-visible { outline: 2px solid var(--lake); outline-offset: 3px; }

.eyebrow {
  font: italic 400 15px/1.4 var(--serif);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--lake);
}
.h1, .h2 { font: 500 clamp(26px, 2vw + 16px, 40px)/1.45 var(--mincho); letter-spacing: .1em; margin-top: 12px; }
.arr { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.5; flex: none; transition: transform .4s var(--ease); }

.btn {
  display: inline-flex; align-items: center; gap: .8em;
  padding: 15px 30px;
  border: 0; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font: 500 14px/1 var(--sans); letter-spacing: .14em;
  cursor: pointer;
  transition: background .3s, color .3s;
}
.btn:hover { background: var(--lake); }
.btn:hover .arr, .link:hover .arr { transform: translateX(4px); }
.btn--light { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1px rgba(245, 244, 240, .7); }
.btn--light:hover { background: var(--paper); color: var(--ink); }
.btn[disabled] { opacity: .5; cursor: wait; }
.link {
  display: inline-flex; align-items: center; gap: .6em;
  padding-bottom: 4px;
  font: 500 14px/1 var(--sans); letter-spacing: .12em;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size .5s var(--ease);
}
.link:hover { background-size: 30% 1px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--ink); color: var(--paper); border-radius: 4px; font-size: 14px; }
.skip:focus { top: 12px; }

/* header: paper bar; over the home video it is clear with a white logo */
.site-head {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--head); padding: 0 var(--gut);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.site-logo img { height: 30px; width: auto; }
.p-home .site-head {
  position: fixed; left: 0; right: 0;
  background: transparent; border-color: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  color: var(--paper);
  transition: background .4s, color .4s, border-color .4s;
}
.p-home .site-logo img { filter: invert(1); transition: filter .4s; }
@supports (animation-timeline: scroll()) {
  .p-home .site-head { animation: head-solid linear both; animation-timeline: scroll(); animation-range: 60vh 80vh; }
  .p-home .site-logo img { animation: logo-dark linear both; animation-timeline: scroll(); animation-range: 60vh 80vh; }
  @keyframes head-solid { to { background: color-mix(in srgb, var(--paper) 90%, transparent); color: var(--ink); border-color: var(--line); } }
  @keyframes logo-dark { to { filter: none; } }
}
.nav-btn, .nav-close {
  display: none; position: relative; width: 44px; height: 44px;
  border: 0; background: none; cursor: pointer; color: inherit;
}
.nav-btn span, .nav-close span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; }
.nav-btn span:first-child { top: 18px; }
.nav-btn span:last-child { top: 26px; }
.nav-close span { top: 21px; }
.nav-close span:first-child { transform: rotate(45deg); }
.nav-close span:last-child { transform: rotate(-45deg); }
#nav { all: unset; display: block; }
#nav ul { display: flex; gap: clamp(16px, 2.4vw, 40px); }
#nav a { font-size: 14px; letter-spacing: .12em; padding: 8px 0; position: relative; }
#nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
#nav a:hover::after { transform: scaleX(1); }

@media (max-width: 860px) {
  .nav-btn { display: block; }
  #nav {
    position: fixed; inset: 0; width: auto; height: auto; margin: 0;
    padding: 20px var(--gut) 40px;
    background: var(--ink); color: var(--paper);
    border: 0;
  }
  #nav:not(:popover-open) { display: none; }
  #nav:popover-open { display: flex; flex-direction: column; animation: fade .35s var(--ease); }
  #nav .nav-close { display: block; align-self: flex-end; color: var(--paper); }
  #nav ul { flex-direction: column; gap: 0; margin-top: 24px; }
  #nav li { border-bottom: 1px solid rgba(245, 244, 240, .14); }
  #nav a { display: block; padding: 20px 0; font: 500 21px/1.4 var(--mincho); letter-spacing: .12em; }
  #nav a::after { display: none; }
}
@keyframes fade { from { opacity: 0; } }

/* hero: the lake film, full screen */
.hero {
  position: relative; isolation: isolate;
  display: grid; place-items: center;
  min-height: 100svh;
  padding: var(--head) var(--gut);
  color: var(--paper);
  text-align: center;
  overflow: hidden;
  background: #2a4152;
}
.hero-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(16, 26, 34, .38) 0%, rgba(16, 26, 34, .08) 30%, rgba(16, 26, 34, .12) 60%, rgba(16, 26, 34, .55) 100%);
}
.hero-title {
  font: 300 clamp(44px, 6.4vw + 12px, 112px)/1 var(--serif);
  letter-spacing: .04em;
  text-shadow: 0 2px 30px rgba(10, 20, 28, .25);
}
.hero-tag {
  margin-top: clamp(18px, 2vw, 28px);
  font: 500 clamp(15px, .5vw + 13px, 19px)/1.8 var(--mincho);
  letter-spacing: .3em;
  text-shadow: 0 1px 18px rgba(10, 20, 28, .35);
}
.hero-cue { position: absolute; left: 50%; bottom: 28px; width: 1px; height: 64px; overflow: hidden; translate: -50% 0; }
.hero-cue span { position: absolute; inset: 0; background: linear-gradient(transparent, var(--paper)); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { from { translate: 0 -100%; } to { translate: 0 100%; } }
@media (prefers-reduced-motion: reduce) { .hero-cue span { animation: none; } }

/* sections */
.sec-head { text-align: center; margin-bottom: clamp(36px, 5vw, 64px); }
.news, .business, .contact, .company { padding: clamp(80px, 10vw, 150px) var(--gut) 0; }
.company { padding-bottom: clamp(80px, 10vw, 150px); }

/* news */
.news-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr);
  gap: clamp(16px, 2vw, 28px);
  max-width: 1360px; margin: 0 auto;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 18px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.news-row .news-item { scroll-snap-align: start; }
@media (min-width: 1100px) { .news-row { grid-auto-columns: calc((100% - 3 * 28px) / 4); } }
.news-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px);
  max-width: 1200px; margin: 0 auto;
}
.news-item a { display: block; }
.thumb {
  display: grid; place-items: center;
  aspect-ratio: 4 / 3;
  padding: 14px;
  background: var(--paper-2);
  border-radius: 4px;
  overflow: hidden;
}
.thumb img { width: auto; max-height: 100%; object-fit: contain; box-shadow: 0 10px 24px -14px rgba(28, 39, 49, .45); transition: transform .6s var(--ease); }
.news-item a:hover .thumb img { transform: translateY(-4px); }
.thumb--none { font: italic 300 30px/1 var(--serif); color: var(--lake); letter-spacing: .06em; }
.news-item time { display: block; margin-top: 16px; font: 400 13px/1.4 var(--serif); letter-spacing: .12em; color: var(--mute); }
.news-item h3 { margin-top: 6px; font: 500 15px/1.75 var(--mincho); letter-spacing: .04em; text-wrap: pretty; }
.news-item a:hover h3 { color: var(--lake); }
.more-link { text-align: center; margin-top: clamp(32px, 4vw, 48px); }

/* business: two quiet panels */
.biz {
  position: relative; isolation: isolate;
  display: grid; align-items: center;
  min-height: clamp(460px, 48vw, 640px);
  max-width: 1360px; margin: 0 auto;
  border-radius: 6px;
  overflow: hidden;
}
.biz + .biz { margin-top: clamp(20px, 2.4vw, 32px); }
.biz-img { position: absolute; inset: 0; z-index: -2; }
.biz-img img { width: 100%; height: 100%; object-fit: cover; }
.biz-text { padding: clamp(36px, 5vw, 80px); max-width: 560px; }
.biz-no { font: italic 300 18px/1 var(--serif); letter-spacing: .2em; }
.biz h3 { margin-top: 18px; font: 500 clamp(24px, 1.4vw + 16px, 34px)/1.5 var(--mincho); letter-spacing: .1em; }
.biz-lead { margin-top: 16px; font: 500 17px/1.9 var(--mincho); letter-spacing: .06em; }
.biz p:not(.biz-no):not(.biz-lead) { margin-top: 10px; }
.biz .btn { margin-top: 32px; }
.biz--sith { color: var(--paper); background: #0d0d0d; }
.biz--sith .biz-img img { object-position: 30% 30%; }
.biz--sith::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 10, 10, .1) 30%, rgba(10, 10, 10, .78) 64%); }
.biz--sith .biz-text { justify-self: end; }
.biz--sith .biz-no, .biz--sith .biz-lead { color: #e2cfa7; }
.biz--betty { background: #f3eef0; }
.biz--betty::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(250, 248, 246, .94) 34%, rgba(250, 248, 246, .55) 62%, rgba(250, 248, 246, 0) 90%); }
.biz--betty .biz-no { color: #8e6a9c; }
.biz-logo { width: 170px; margin-top: 18px; }
@media (max-width: 760px) {
  .biz { min-height: 0; align-items: end; }
  .biz-img { position: relative; inset: auto; grid-area: 1 / 1; z-index: -2; }
  .biz-img img { aspect-ratio: 4 / 3; }
  .biz-text { grid-area: 2 / 1; padding: 30px 22px 36px; }
  .biz--sith::before, .biz--betty::before { display: none; }
  .biz--sith .biz-img img { object-position: 35% 30%; }
  .biz--betty .biz-text { background: #faf8f6; }
}

/* contact */
.form { max-width: 640px; margin: 0 auto; }
.f { margin-bottom: 26px; }
.f label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; letter-spacing: .1em; }
.req { color: var(--gold); margin-left: .3em; }
.f input, .f textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 4px;
  background: var(--card);
  font: 400 16px/1.7 var(--sans); color: var(--ink);
  transition: border-color .3s, box-shadow .3s;
}
.f input:focus, .f textarea:focus { outline: none; border-color: var(--lake); box-shadow: 0 0 0 3px var(--mist); }
.f textarea { min-height: 170px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin: 6px 0 18px; min-height: 65px; }
.form-msg { min-height: 1.6em; margin-bottom: 14px; font-size: 14px; color: var(--lake); }
.form-msg.err { color: #a2433a; }
.form .btn { width: 100%; justify-content: center; padding: 18px 30px; }

/* company */
.company-dl { max-width: 720px; margin: 0 auto; border-top: 1px solid var(--line); }
.company-dl div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 22px 4px; border-bottom: 1px solid var(--line); }
.company-dl dt { font-size: 14px; letter-spacing: .14em; color: var(--mute); }
.company-dl dd { font: 500 16px/1.9 var(--mincho); letter-spacing: .04em; }
.company-dl a { background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat; }
@media (max-width: 560px) { .company-dl div { grid-template-columns: 1fr; gap: 2px; } }

/* footer */
.site-foot {
  padding: clamp(64px, 8vw, 110px) var(--gut) 34px;
  background: var(--ink); color: var(--on-ink);
  text-align: center;
}
.foot-word { font: 300 clamp(48px, 7vw, 96px)/1 var(--serif); letter-spacing: .06em; color: var(--paper); }
.foot-name { margin-top: 18px; font: 500 15px/1.8 var(--mincho); letter-spacing: .14em; }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 36px; font-size: 13px; letter-spacing: .12em; color: var(--on-ink-mute); }
.foot-nav a:hover { color: var(--paper); }
.copy { margin-top: 48px; font-size: 12px; letter-spacing: .08em; color: var(--on-ink-mute); }

/* list + post pages */
.page-head { padding: clamp(64px, 8vw, 120px) var(--gut) clamp(40px, 5vw, 64px); text-align: center; }
.page-head .btn { margin-top: 36px; }
.news--all { padding-top: 0; padding-bottom: clamp(80px, 10vw, 150px); }
.post { max-width: 760px; margin: 0 auto; padding: clamp(56px, 7vw, 100px) var(--gut) clamp(80px, 10vw, 140px); }
.post-head { text-align: center; }
.post-head .eyebrow a:hover { color: var(--ink); }
.post-head .h1 { font-size: clamp(22px, 1.4vw + 16px, 32px); letter-spacing: .06em; text-wrap: pretty; }
.post-head time { display: block; margin-top: 14px; font: 400 14px/1.4 var(--serif); letter-spacing: .14em; color: var(--mute); }
.post-img { margin-top: 44px; }
.post-img img { margin: 0 auto; max-height: 78vh; width: auto; border-radius: 4px; box-shadow: 0 18px 40px -24px rgba(28, 39, 49, .5); }
.post-body { margin-top: 48px; font-size: 16.5px; line-height: 2.15; overflow-wrap: anywhere; }
.post-body > * + * { margin-top: 1.1em; }
.post-body h2, .post-body h3, .post-body h4, .post-body h5 { font: 500 19px/1.8 var(--mincho); letter-spacing: .05em; }
.post-body h4:has(img) { font-size: 0; }
.post-body h5:empty { display: none; }
.post-body img { margin: 32px auto; border-radius: 4px; max-height: 80vh; width: auto; box-shadow: 0 18px 40px -24px rgba(28, 39, 49, .5); }
.post-body a { color: var(--lake); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.post-body a:hover { color: var(--ink); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 72px; padding-top: 32px; border-top: 1px solid var(--line); }
.pn { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 4px; font: 500 15px/1.7 var(--mincho); transition: border-color .3s, background .3s; }
.pn:hover { border-color: var(--lake); background: var(--card); }
.pn--new { grid-column: 2; text-align: right; }
.post-cta { margin-top: 48px; text-align: center; }
@media (max-width: 640px) {
  .post-nav { grid-template-columns: 1fr; }
  .pn--new { grid-column: auto; }
}
