/* KevinWeb project detail pages — light editorial theme. */
:root {
  --bg: #ffffff;
  --fg: #070707;
  --muted: rgba(7, 7, 7, 0.58);
  --faint: rgba(7, 7, 7, 0.4);
  --line: rgba(7, 7, 7, 0.09);
  --line-soft: rgba(7, 7, 7, 0.055);
  --soft: rgba(7, 7, 7, 0.04);
  --gold: #2f6bd8;
  --tint: rgba(59, 130, 246, 0.12);
  --glass: rgba(255, 255, 255, 0.55);
  --card-fill: linear-gradient(145deg, rgba(7, 7, 7, 0.035), rgba(7, 7, 7, 0) 46%), #fff;
  --radius: 22px;
  --pad: clamp(1.15rem, 4.2vw, 3.25rem);
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", Didot, "Bodoni 72", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

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

html {
  background: var(--bg);
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* ---------- header / local nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0);
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

.site-header.on {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(1.16) blur(18px);
  backdrop-filter: saturate(1.16) blur(18px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.pd-brand {
  font-family: var(--serif);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pd-subnav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0 auto;
}

.pd-subnav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 0.72rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--muted);
  transition: color 0.2s ease, background-color 0.25s ease;
}

.pd-subnav a:hover {
  color: var(--fg);
  background: var(--soft);
}

.site-header .nav {
  display: flex;
  align-items: center;
}

.site-header .kw-lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card-fill);
}

.site-header .kw-lang span {
  display: none;
}

.site-header .kw-lang button {
  min-width: 52px;
  min-height: 30px;
  padding: 0 0.55rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.25s ease;
}

.site-header .kw-lang button:hover {
  color: var(--fg);
}

body .site-header .kw-lang button.on {
  background: var(--fg);
  color: #fff;
}

/* ---------- hero ---------- */
.pd-hero {
  padding: clamp(7rem, 16vh, 10rem) 0 0;
  text-align: center;
}

.pd-kicker {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
}

.pd-title {
  margin: clamp(1rem, 3vh, 1.6rem) 0 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(3.2rem, 10.5vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.pd-title .ln {
  display: block;
  overflow: hidden;
}

.pd-title .ln > i {
  display: block;
  font-style: normal;
  transform: translate3d(0, 108%, 0);
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.pd-title .ln:nth-child(2) > i {
  transition-delay: 0.08s;
}

.pd-ready .pd-title .ln > i {
  transform: none;
}

.pd-lead {
  max-width: 46ch;
  margin: clamp(1.3rem, 3.4vh, 2rem) auto 0;
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  font-weight: 550;
  line-height: 1.75;
  color: var(--muted);
}

.pd-hero .pd-kicker,
.pd-hero .pd-lead,
.pd-meta,
.pd-hero-cta {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 0.9s ease, transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

.pd-hero .pd-lead {
  transition-delay: 0.14s;
}

.pd-hero-cta {
  transition-delay: 0.22s;
}

.pd-meta {
  transition-delay: 0.3s;
}

.pd-ready .pd-hero .pd-kicker,
.pd-ready .pd-hero .pd-lead,
.pd-ready .pd-meta,
.pd-ready .pd-hero-cta {
  opacity: 1;
  transform: none;
}

.pd-hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-top: clamp(1.7rem, 4vh, 2.4rem);
}

/* ---------- big product shot ---------- */
.pd-hero-fig {
  margin: clamp(2.6rem, 7vh, 4.2rem) auto 0;
  max-width: 1080px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-fill);
  overflow: hidden;
  box-shadow: 0 50px 90px -60px rgba(7, 7, 7, 0.5), 0 2px 6px rgba(7, 7, 7, 0.04);
}

/* ---------- spec strip ---------- */
.pd-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 880px;
  margin: clamp(2.6rem, 7vh, 3.8rem) auto 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-fill);
  -webkit-backdrop-filter: saturate(1.16) blur(18px);
  backdrop-filter: saturate(1.16) blur(18px);
  overflow: hidden;
  text-align: center;
}

.pd-meta > div {
  padding: clamp(1rem, 2.6vw, 1.55rem) 0.7rem;
  min-width: 0;
}

.pd-meta > div + div {
  border-left: 1px solid var(--line-soft);
}

.pd-meta dt {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.pd-meta dd {
  margin-top: 0.4rem;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ---------- sections ---------- */
.pd-sec {
  padding: clamp(4.4rem, 11vh, 8rem) 0 0;
  scroll-margin-top: 92px;
}

.pd-grid {
  display: block;
  max-width: 1000px;
  margin: 0 auto;
}

.pd-h {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.04em;
  text-align: left;
}

.pd-h::after {
  content: "";
  display: block;
  width: 3.2rem;
  height: 1px;
  margin: 1.2rem 0 0;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.pd-sec.in .pd-h::after {
  transform: scaleX(1);
}

/* pidanai-style section reveal: heading then body, blur + rise */
.pd-sec .pd-h,
.pd-sec .pd-body {
  opacity: 0;
  transform: translate3d(0, 46px, 0) scale(0.985);
  filter: blur(9px);
  transition:
    opacity 0.76s ease,
    transform 0.76s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.76s ease;
}

.pd-sec .pd-body {
  transition-delay: 0.09s;
}

.pd-sec.in .pd-h,
.pd-sec.in .pd-body {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

/* the hero shot settles in after the title */
.pd-hero-fig {
  opacity: 0;
  transform: translate3d(0, 34px, 0) scale(0.985);
  filter: blur(10px);
  transition:
    opacity 0.9s ease 0.3s,
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s,
    filter 0.9s ease 0.3s;
}

.pd-ready .pd-hero-fig {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

.pd-body {
  max-width: 100%;
  margin: clamp(1.2rem, 3vh, 1.8rem) 0 0;
}

.pd-body p {
  max-width: 62ch;
  margin: 0;
  text-align: left;
  font-size: clamp(0.97rem, 1.4vw, 1.05rem);
  line-height: 1.85;
  color: var(--muted);
}

.pd-body p + p {
  margin-top: 0.9rem;
}

/* ---------- highlight cards ---------- */
.pd-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.pd-list li {
  padding: clamp(1.3rem, 2.6vw, 1.9rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-fill);
  color: var(--muted);
  transition: border-color 0.3s ease, box-shadow 0.4s ease;
}

.pd-list li:hover {
  border-color: rgba(7, 7, 7, 0.18);
  box-shadow: 0 26px 50px -40px rgba(7, 7, 7, 0.5);
}

.pd-list strong {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.pd-list li > span {
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ---------- figures ---------- */
.pd-gallery {
  display: grid;
  gap: clamp(0.7rem, 1.6vw, 1.15rem);
}

.pd-gallery.split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pd-gallery.split .pd-fig.wide {
  grid-column: 1 / -1;
}

.pd-fig {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-fill);
}

.pd-fig .shot {
  display: block;
  width: 100%;
  will-change: transform;
}

.pd-fig img {
  width: 100%;
  height: auto;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.pd-fig:hover img {
  transform: scale(1.02);
}

.pd-fig figcaption {
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ---------- gallery motion ---------- */
.pd-gallery .pd-fig {
  position: relative;
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  -webkit-clip-path: inset(12% 5% 0 5% round var(--radius));
  clip-path: inset(12% 5% 0 5% round var(--radius));
  transition:
    opacity 0.9s ease,
    transform 1.05s cubic-bezier(0.22, 1, 0.36, 1),
    clip-path 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.pd-gallery .pd-fig.in {
  opacity: 1;
  transform: none;
  -webkit-clip-path: inset(0 0 0 0 round var(--radius));
  clip-path: inset(0 0 0 0 round var(--radius));
}

/* ---------- actions ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.62rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  background: var(--fg);
  color: #fff;
  box-shadow: 0 14px 30px -18px rgba(7, 7, 7, 0.55);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.25s ease,
    border-color 0.25s ease, box-shadow 0.3s ease;
}

.btn:hover {
  background: #1d1d1d;
  transform: translateY(-1px);
}

.btn-quiet {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  min-height: 38px;
  padding: 0.3rem 0.15rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.btn-quiet::after {
  content: "→";
  display: inline-block;
  font-size: 1.05em;
  line-height: 1;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-quiet:hover {
  color: var(--fg);
  border-bottom-color: var(--fg);
}

.btn-quiet:hover::after {
  transform: translateX(3px);
}

.pd-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.9rem;
}

.pd-note {
  max-width: 62ch;
  margin-top: 1.4rem;
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- next / footer ---------- */
.pd-next {
  margin-top: clamp(5rem, 13vh, 8rem);
  border-top: 1px solid var(--line);
}

.pd-next .wrap {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: clamp(2rem, 5vh, 2.8rem) var(--pad);
}

.pd-next .lab {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

.pd-next a {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.pd-next .arw {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.pd-next a:hover .arw {
  transform: translateX(4px);
}

.pd-foot {
  padding: clamp(1.8rem, 4vh, 2.6rem) 0;
  border-top: 1px solid var(--line);
}

.pd-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.pd-foot a {
  color: var(--fg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.pd-foot a:hover {
  border-bottom-color: currentColor;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .pd-subnav {
    margin: 0;
    max-width: 44vw;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .pd-subnav::-webkit-scrollbar {
    display: none;
  }

  .pd-subnav a {
    padding: 0 0.45rem;
    font-size: 0.72rem;
    white-space: nowrap;
  }
}

@media (max-width: 760px) {
  .site-header .wrap {
    min-height: 60px;
    gap: 0.5rem;
  }

  .pd-title {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .pd-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pd-meta > div:nth-child(3) {
    border-left: 0;
  }

  .pd-meta > div:nth-child(n + 3) {
    border-top: 1px solid var(--line-soft);
  }

  .pd-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .pd-gallery.split {
    grid-template-columns: minmax(0, 1fr);
  }

  .pd-next .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .site-header .kw-lang button {
    min-width: 44px;
  }
}

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

  .pd-title .ln > i,
  .pd-hero .pd-kicker,
  .pd-hero .pd-lead,
  .pd-meta,
  .pd-hero-cta,
  .pd-hero-fig,
  .pd-sec .pd-h,
  .pd-sec .pd-body,
  .pd-gallery .pd-fig {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
    transition: none !important;
  }

  .pd-h::after {
    transform: none !important;
  }
}
