/* Yong Water Proof Trading — "site record" direction.
   Warm concrete paper, logo-navy ink, teal only as a mark. Hairlines, not cards. */

:root {
  --paper: #EEEBE5;
  --paper-deep: #E4E0D7;
  --slip: #FBFAF7;
  --ink: #10283A;
  --ink-soft: #4A5C6B;
  --rule: #CBC5B9;
  --teal: #12AEB4;
  --teal-ink: #0A6F74;
  --wa: #25D366;

  --sans: "Archivo", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --gutter: 16px;
  --sec-pad: 56px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--teal-ink); outline-offset: 2px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--ink); }
.top-in { display: flex; align-items: center; gap: 12px; height: 56px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; margin-right: auto; }
.ymark { width: 24px; height: 21px; flex: none; }
.ymark-a { fill: var(--ink); }
.ymark-b { fill: var(--teal); }
.wm { display: flex; flex-direction: column; line-height: 1; }
.wm b { font-size: 1.0625rem; font-weight: 700; letter-spacing: .04em; font-variation-settings: "wdth" 100; }
.wm small { font-size: .5625rem; font-weight: 500; letter-spacing: .1em; margin-top: 3px; color: var(--ink-soft); white-space: nowrap; }

.lang { display: flex; }
.lang a {
  display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 6px;
  font-size: .8125rem; font-weight: 600; text-decoration: none; color: var(--ink-soft);
  border-bottom: 2px solid transparent;
}
.lang a[aria-current] { color: var(--ink); border-bottom-color: var(--teal); }
.top-call { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--ink); border-radius: 2px; }
.top-call svg { width: 18px; height: 18px; fill: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 52px; padding: 0 18px; border-radius: 2px;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--ink); transition: background-color .2s var(--ease), color .2s var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-wa { background: var(--ink); color: var(--paper); }
.btn-wa .i-wa { fill: var(--wa); }
.btn-wa:hover { background: #0A1D2B; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line svg { fill: var(--ink); }
.btn-line:hover { background: var(--paper-deep); }
.btn-full { width: 100%; }

/* ---------- hero ---------- */
.hero { padding-bottom: 40px; }
.hero-fig { margin: 0 calc(var(--gutter) * -1); border-bottom: 1px solid var(--rule); }
.hero-fig img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
figcaption { font-size: .8125rem; line-height: 1.45; color: var(--ink-soft); }
.hero-fig figcaption { padding: 8px var(--gutter); }
.fno { font-weight: 600; color: var(--ink); margin-right: .6em; font-variant-numeric: tabular-nums; }

.hero-text { padding-top: 24px; }
h1 {
  font-size: 2.125rem; line-height: 1.06; font-weight: 640; letter-spacing: -.012em;
  font-variation-settings: "wdth" 84; text-wrap: balance; max-width: 17ch;
}
.lang-zh h1 { font-weight: 600; letter-spacing: 0; line-height: 1.22; max-width: none; }
.lang-zh h1 span { display: inline-block; }
.lead { margin-top: 14px; font-size: 1.0625rem; color: var(--ink-soft); max-width: 36em; }
.cta { display: grid; grid-template-columns: 1.35fr 1fr; gap: 8px; margin-top: 22px; }
.areas-inline { margin-top: 16px; font-size: .875rem; line-height: 1.6; color: var(--ink-soft); }
.areas-inline .lbl { font-weight: 600; color: var(--ink); margin-right: .6em; }
.nw { white-space: nowrap; }
.areas-inline i { font-style: normal; color: var(--teal-ink); padding: 0 .15em; }

/* ---------- sections ---------- */
.sec { padding-top: var(--sec-pad); padding-bottom: calc(var(--sec-pad) * .5); }
.sheet, #contact { padding-bottom: var(--sec-pad); }
.sheet + .sec { padding-top: var(--sec-pad); }
.sec-head { display: flex; align-items: baseline; gap: 14px; border-top: 1px solid var(--ink); padding-top: 14px; margin-bottom: 22px; }
.sec-no { font-size: .875rem; font-weight: 600; color: var(--teal-ink); font-variant-numeric: tabular-nums; min-width: 2ch; }
h2 { font-size: 1.75rem; line-height: 1.12; font-weight: 620; letter-spacing: -.01em; font-variation-settings: "wdth" 86; }
.lang-zh h2 { font-weight: 600; letter-spacing: 0; }
h3 { font-size: 1.125rem; font-weight: 620; }
.sec-lead { font-size: 1.0625rem; max-width: 36em; }
.note { font-size: .875rem; color: var(--ink-soft); max-width: 40em; }

/* figures */
.fig .frame { position: relative; overflow: hidden; background: var(--paper-deep); border: 1px solid var(--ink); }
.fig .frame img, .fig .frame video { width: 100%; height: 100%; object-fit: cover; }
.fig .frame video { position: absolute; inset: 0; }
.fig figcaption { padding-top: 8px; }
.fig figcaption b { display: block; color: var(--ink); font-size: .9375rem; font-weight: 620; margin-bottom: 2px; }
.tag {
  position: absolute; left: 0; top: 0; z-index: 2;
  background: var(--paper); color: var(--ink); border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  font-size: .6875rem; font-weight: 600; padding: 3px 7px; font-variant-numeric: tabular-nums;
}

/* 01 situations */
.sit { display: grid; gap: 24px; }
.fig-scene .frame { aspect-ratio: 4 / 3; }
.sit-list { margin-top: 18px; border-top: 1px solid var(--rule); }
.sit-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 54px; padding: 12px 0; border-bottom: 1px solid var(--rule);
  font-size: 1.0625rem; text-decoration: none;
}
.sit-list .arr { color: var(--teal-ink); font-size: 1.125rem; transition: transform .25s var(--ease); flex: none; }
.sit-list a:hover .arr, .sit-list a:focus-visible .arr { transform: translateX(4px); }
.sit-list a:active { background: var(--paper-deep); }
.sit .note { margin-top: 16px; }

/* 02 work */
.work-intro { display: grid; gap: 14px; margin-bottom: 22px; }
.pin-toggle {
  justify-self: start; background: none; border: 1px solid var(--ink-soft); border-radius: 2px;
  min-height: 36px; padding: 0 12px; font-size: .8125rem; font-weight: 600; cursor: pointer;
}
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 12px; }
.fig-membrane { grid-column: 1 / -1; }
.fig-membrane .frame { aspect-ratio: 16 / 9; margin: 0 calc(var(--gutter) * -1); border-left: 0; border-right: 0; }
.fig-membrane figcaption { padding-left: 0; }
.fig-edge { grid-row: span 2; }
.fig-edge .frame { aspect-ratio: 3 / 4; }
.fig-edge .frame img { object-position: 50% 62%; }
.fig-cleaning .frame, .fig-large .frame { aspect-ratio: 4 / 3; }

.play {
  position: absolute; right: 0; bottom: 0; z-index: 3;
  display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 10px;
  background: var(--ink); color: var(--paper); border: 0; font-size: .75rem; font-weight: 600; cursor: pointer;
}
.play span { font-size: .625rem; }
.frame.playing .play { background: var(--teal-ink); }
.frame.playing .pins { opacity: 0; }

/* drawing-style labels on figures */
.pins { position: absolute; inset: 0; z-index: 1; transition: opacity .3s var(--ease); pointer-events: none; }
.pins-off .pins { opacity: 0; }
.pin { position: absolute; left: var(--x); top: var(--y); }
.pin::before {
  content: ""; position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--paper); border: 2.5px solid var(--ink); box-shadow: 0 0 0 1.5px var(--paper);
}
.pin b {
  position: absolute; top: -11px; width: max-content; max-width: 8.5em;
  background: var(--paper); color: var(--ink); border: 1px solid var(--ink);
  font-size: .6875rem; font-weight: 600; line-height: 1.2; padding: 4px 6px;
}
.pin::after { content: ""; position: absolute; top: -1px; height: 2px; width: 18px; background: var(--ink); }
.pin-r b { left: 22px; }
.pin-r::after { left: 5px; }
.pin-l b { right: 22px; }
.pin-l::after { right: 5px; }

/* 03 prepare — squared site-notebook band */
.sheet {
  background-color: var(--paper-deep);
  background-image:
    linear-gradient(rgba(16, 40, 58, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 40, 58, .055) 1px, transparent 1px);
  background-size: 24px 24px;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.prep { display: grid; gap: 40px; }
.enquiry { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-size: .875rem; font-weight: 620; padding: 0; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0;
  padding: 8px 0; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #8A949C; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--teal-ink); box-shadow: 0 1.5px 0 var(--teal-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 12px;
  border: 1px solid var(--ink-soft); border-radius: 2px; background: var(--paper);
  font-size: .9375rem; cursor: pointer; transition: background-color .15s, color .15s;
}
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--teal-ink); outline-offset: 2px; }
.photo-note { font-size: .875rem; color: var(--ink-soft); border-left: 2px solid var(--teal); padding-left: 10px; }
.slip { background: var(--slip); border: 1px solid var(--rule); padding: 12px 14px 14px; }
.slip-lbl { display: block; font-size: .75rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.slip-msg { display: block; white-space: pre-wrap; font-size: .9375rem; line-height: 1.5; }

.steps { counter-reset: s; margin-top: 14px; border-top: 1px solid var(--ink); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.25rem 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.steps li::before {
  content: counter(s); font-size: 1.75rem; line-height: 1; font-weight: 300;
  font-variation-settings: "wdth" 75; color: var(--teal-ink);
}

/* 04 areas + contact */
.area-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); margin-bottom: 14px; }
.area-list li { padding: 11px 0; border-bottom: 1px solid var(--rule); }
.area-list li:nth-child(odd) { padding-right: 12px; }
.area-list b { font-weight: 600; font-size: 1.0625rem; }
.area-list span { margin-left: .5em; font-size: .875rem; color: var(--ink-soft); }
.contact { margin-top: 32px; border-top: 1.5px solid var(--ink); }
.crow {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2px 12px;
  padding: 16px 0; border-bottom: 1.5px solid var(--ink); text-decoration: none;
}
.clbl { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 600; color: var(--ink-soft); }
.clbl svg { width: 18px; height: 18px; fill: var(--ink-soft); }
.clbl .i-wa { fill: #1DA851; }
.cnum { font-size: 2rem; line-height: 1.1; font-weight: 600; font-variation-settings: "wdth" 80; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.crow .arr { font-size: 1.5rem; color: var(--teal-ink); transition: transform .25s var(--ease); }
.crow:hover .arr { transform: translateX(4px); }

/* footer */
.foot { background: var(--ink); color: #C9D2D9; padding: 40px 0 120px; font-size: .875rem; }
.foot-in { display: grid; gap: 14px; }
.brand-inv .ymark-a { fill: var(--paper); }
.brand-inv .wm b { color: var(--paper); }
.brand-inv .wm small { color: #9FB0BD; }
.lang-inv a { color: #9FB0BD; }
.lang-inv a[aria-current] { color: var(--paper); }
.fine { color: #8597A5; font-size: .8125rem; }

/* mobile dock */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 8px;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  background: var(--paper); border-top: 1px solid var(--ink);
  transform: translateY(110%); transition: transform .3s var(--ease); visibility: hidden;
}
.dock.on { transform: none; visibility: visible; }
.dock .btn { min-height: 48px; }

/* reveal */
.js .rv { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .dock, .pins, .btn, .arr { transition: none; }
}

/* ---------- larger screens ---------- */
@media (min-width: 720px) {
  :root { --gutter: 28px; --sec-pad: 80px; }
  h1 { font-size: 3rem; }
  h2 { font-size: 2.125rem; }
  .cta { grid-template-columns: auto auto; justify-content: start; }
  .btn { padding: 0 24px; }
  .work-grid { grid-template-columns: repeat(12, 1fr); gap: 32px 24px; }
  .fig-membrane { grid-column: 1 / span 8; }
  .fig-membrane .frame { margin: 0; border: 1px solid var(--ink); }
  .fig-edge { grid-column: 9 / span 4; grid-row: span 1; }
  .fig-cleaning { grid-column: 1 / span 6; }
  .fig-large { grid-column: 7 / span 6; }
  .work-intro { grid-template-columns: 1fr auto; align-items: end; }
  .area-list { grid-template-columns: repeat(4, 1fr); }
  .cnum { font-size: 2.75rem; }
  .contact { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
}

@media (min-width: 960px) {
  .dock { display: none; }
  .foot { padding-bottom: 48px; }
  .hero { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; padding-top: 48px; padding-bottom: 72px; }
  .hero-fig { order: 2; margin: 0; border: 1px solid var(--ink); }
  .hero-fig figcaption { border-top: 1px solid var(--ink); background: var(--paper); }
  .hero-text { padding-top: 0; }
  h1 { font-size: 3.5rem; }
  .sit { grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
  .prep { grid-template-columns: 7fr 5fr; gap: 64px; align-items: start; }
  .next { position: sticky; top: 88px; }
  .foot-in { grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
  .foot-in .fine { grid-column: 1 / -1; }
}
