/* Google Official / Material 3 Editorial Homepage Styles */
:root {
  --g-bg: #ffffff;
  --g-surface: #f8f9fa;
  --g-surface-2: #f1f3f4;
  --g-ink: #202124;
  --g-muted: #5f6368;
  --g-subtle: #80868b;
  --g-border: #e8eaed;
  --g-blue: #1a73e8;
  --g-blue-soft: #e8f0fe;
  --g-blue-ink: #174ea6;
  --g-red: #ea4335;
  --g-red-soft: #fce8e6;
  --g-yellow: #fbbc04;
  --g-yellow-soft: #fef7e0;
  --g-green: #34a853;
  --g-green-soft: #e6f4ea;
  --g-green-ink: #137333;
  --g-ease: cubic-bezier(0.2, 0, 0, 1);
}

/* Scoped Homepage Top Navbar & Search Harmony */
body.wb-home-active {
  background: var(--g-bg);
}

body.wb-home-active #header {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--g-ink);
  box-shadow: none;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s var(--g-ease), border-color 0.25s var(--g-ease), box-shadow 0.25s var(--g-ease);
}

body.wb-home-active #header.fixed {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--g-border);
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.08);
}

body.wb-home-active #header .header-icon,
body.wb-home-active #header .header-title {
  color: var(--g-muted);
}

body.wb-home-active #header .header-icon:hover {
  color: var(--g-ink);
}

body.wb-home-active #header .header-title {
  color: var(--g-ink);
  font-weight: 500;
}

body.wb-home-active #header .search-wrap .search-input {
  color: var(--g-ink);
  border-bottom-color: var(--g-blue);
}

body.wb-home-active #header .search-wrap .search-input::-webkit-input-placeholder {
  color: var(--g-subtle);
}

body.wb-home-active #header .search-wrap.in #search {
  color: var(--g-blue);
}

@media screen and (max-width: 760px) {
  body.wb-home-active #header .search-wrap.in {
    background: #ffffff;
  }
}

/* Scoped Homepage Footer Harmony */
body.wb-home-active .footer {
  background: var(--g-surface);
  color: var(--g-muted);
  border-top: 1px solid var(--g-border);
}

body.wb-home-active .footer .top {
  background: var(--g-bg);
  border-bottom: 1px solid var(--g-border);
  color: var(--g-muted);
}

body.wb-home-active .footer .bottom {
  background: var(--g-surface);
}

body.wb-home-active .footer a {
  color: var(--g-ink);
  opacity: 0.82;
  border-bottom-color: rgba(95, 99, 104, 0.35);
}

body.wb-home-active .footer a:hover {
  color: var(--g-blue);
  opacity: 1;
  border-bottom-color: var(--g-blue);
}

/* ================= BASE LAYOUT ================= */
.g-home {
  background: var(--g-bg);
  color: var(--g-ink);
  overflow-x: hidden;
  font-family: "Google Sans", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.g-wrap {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.g-section {
  padding: 96px 0;
  position: relative;
}

.g-section-alt {
  background: var(--g-surface);
  border-top: 1px solid var(--g-border);
  border-bottom: 1px solid var(--g-border);
}

.g-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--g-blue);
  margin-bottom: 12px;
}

.g-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--g-blue);
}

.g-section-title {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.8vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.22;
  color: var(--g-ink);
}

.g-section-lead {
  margin: 0;
  max-width: 620px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--g-muted);
}

/* Scroll Reveal (visible by default when JS inactive) */
body.wb-js-ready .g-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--g-ease), transform 0.65s var(--g-ease);
}

body.wb-js-ready .g-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================= HERO STAGE ================= */
.g-hero {
  position: relative;
  min-height: 82vh;
  padding: 124px 20px 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--g-bg);
  border-bottom: 1px solid var(--g-border);
  overflow: hidden;
}

.g-geo-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.g-geo {
  position: absolute;
  will-change: transform;
  transition: transform 0.15s linear;
}

.g-geo-1 { top: 14%; left: 7%; opacity: 0.85; }
.g-geo-2 { top: 20%; right: 8%; opacity: 0.85; }
.g-geo-3 { bottom: 16%; left: 10%; opacity: 0.8; }
.g-geo-4 { bottom: 18%; right: 9%; opacity: 0.8; }

.g-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  width: 100%;
  text-align: center;
}

.g-identity-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px 6px 6px;
  border-radius: 999px;
  background: var(--g-surface);
  border: 1px solid var(--g-border);
  margin-bottom: 28px;
  transition: box-shadow 0.25s var(--g-ease), transform 0.25s var(--g-ease);
}

.g-identity-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(32, 33, 36, 0.08);
}

.g-identity-pill img {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--g-border);
}

.g-identity-meta {
  text-align: left;
  line-height: 1.3;
}

.g-identity-meta strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--g-ink);
}

.g-identity-meta span {
  display: block;
  font-size: 12px;
  color: var(--g-muted);
}

.g-hero-title {
  margin: 0 0 22px;
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.03em;
  color: var(--g-ink);
}

.g-nowrap {
  white-space: nowrap;
}

.g-inline-pill {
  display: inline-block;
  padding: 2px 14px 4px;
  margin: 0 2px;
  border-radius: 999px;
  font-weight: 700;
  vertical-align: baseline;
  transition: transform 0.22s var(--g-ease);
}

.g-inline-pill:hover {
  transform: translateY(-2px);
}

.g-pill-blue {
  background: var(--g-blue-soft);
  color: var(--g-blue-ink);
}

.g-pill-green {
  background: var(--g-green-soft);
  color: var(--g-green-ink);
}

.g-pill-yellow {
  background: var(--g-yellow-soft);
  color: #8f5b00;
}

.g-name-line {
  margin: 0 0 12px;
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--g-muted);
  line-height: 1.7;
}

.g-name-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 10px 2px;
  margin: 0 2px;
  border: 0;
  border-bottom: 2px dotted var(--g-blue);
  border-radius: 8px 8px 0 0;
  background: rgba(26, 115, 232, 0.06);
  color: var(--g-blue-ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s var(--g-ease);
}

.g-name-trigger:hover {
  background: var(--g-blue-soft);
}

.g-name-slot {
  display: inline-block;
  min-width: 72px;
  text-align: center;
  transition: opacity 0.18s var(--g-ease), transform 0.22s var(--g-ease);
}

.g-name-slot.is-rolling {
  opacity: 0;
  transform: translateY(-6px);
}

.g-motto-line {
  margin: 0 0 34px;
  font-size: 17px;
  font-weight: 500;
  color: var(--g-ink);
}

.g-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.g-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.2s var(--g-ease), box-shadow 0.2s var(--g-ease), transform 0.2s var(--g-ease), border-color 0.2s var(--g-ease);
}

.g-btn:hover {
  text-decoration: none;
}

.g-btn-primary {
  background: var(--g-blue);
  color: #ffffff;
}

.g-btn-primary:hover {
  background: #1765cc;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(26, 115, 232, 0.28);
}

.g-btn-tonal {
  background: var(--g-surface-2);
  color: var(--g-ink);
}

.g-btn-tonal:hover {
  background: #e4e7eb;
  color: var(--g-ink);
}

.g-btn-outline {
  background: #ffffff;
  border-color: #dadce0;
  color: var(--g-muted);
}

.g-btn-outline:hover {
  border-color: #bdc1c6;
  background: var(--g-surface);
  color: var(--g-ink);
}

.g-btn-outline.is-playing {
  border-color: #a8dab5;
  background: var(--g-green-soft);
  color: var(--g-green-ink);
}

.g-eq-svg rect {
  transform-box: fill-box;
  transform-origin: bottom center;
  transition: transform 0.2s var(--g-ease);
}

.g-btn-outline.is-playing .g-eq-1 { animation: g-eq 0.7s ease-in-out infinite alternate; }
.g-btn-outline.is-playing .g-eq-2 { animation: g-eq 0.55s ease-in-out 0.15s infinite alternate; }
.g-btn-outline.is-playing .g-eq-3 { animation: g-eq 0.8s ease-in-out 0.3s infinite alternate; }

@keyframes g-eq {
  0% { transform: scaleY(0.35); }
  100% { transform: scaleY(1); }
}

/* ================= CHAPTER 1: EDITORIAL SPLIT + KINETIC SVG ================= */
.g-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.g-prose p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--g-muted);
}

.g-prose p:last-child {
  margin-bottom: 0;
}

.g-prose strong {
  color: var(--g-ink);
  font-weight: 600;
}

.g-art-card {
  position: relative;
  border-radius: 28px;
  background: var(--g-surface);
  border: 1px solid var(--g-border);
  padding: 28px;
  min-height: 250px;
  max-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.g-art-svg {
  width: 100%;
  height: auto;
  max-height: 240px;
  display: block;
}

.g-art-shape {
  transition: transform 0.25s var(--g-ease);
}

.g-art-card.is-bgm-on .g-art-shape-1 {
  animation: g-breathe 3.6s ease-in-out infinite alternate;
}

.g-art-card.is-bgm-on .g-art-shape-2 {
  animation: g-breathe 4.2s ease-in-out 0.6s infinite alternate;
}

@keyframes g-breathe {
  from { transform: translateY(0px) scale(1); }
  to { transform: translateY(-6px) scale(1.03); }
}

.g-art-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--g-muted);
  padding-top: 12px;
  border-top: 1px solid var(--g-border);
}

/* ================= CHAPTER 2: SLIDING SEGMENTED CONTROL ================= */
.g-modes-card {
  background: #ffffff;
  border: 1px solid var(--g-border);
  border-radius: 28px;
  padding: 40px;
  box-shadow: 0 1px 4px rgba(32, 33, 36, 0.04);
}

.g-modes-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}

.g-seg-wrap {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 999px;
  background: var(--g-surface-2);
  border: 1px solid var(--g-border);
}

.g-seg-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(32, 33, 36, 0.14);
  transition: transform 0.32s var(--g-ease), width 0.32s var(--g-ease);
  pointer-events: none;
}

.g-seg-btn {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  padding: 9px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--g-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s var(--g-ease);
}

.g-seg-btn.is-active {
  color: var(--g-ink);
}

.g-mode-panel {
  display: none;
}

.g-mode-panel.is-active {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
  animation: g-panel-in 0.34s var(--g-ease);
}

@keyframes g-panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.g-mode-copy h3 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 700;
  color: var(--g-ink);
}

.g-mode-copy p {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--g-muted);
}

.g-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.g-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: var(--g-surface);
  border: 1px solid var(--g-border);
  color: var(--g-ink);
}

.g-chip-interactive {
  cursor: pointer;
  transition: background-color 0.2s var(--g-ease), border-color 0.2s var(--g-ease), color 0.2s var(--g-ease), transform 0.2s var(--g-ease);
}

.g-chip-interactive:hover {
  border-color: #d2e3fc;
  background: #f4f8fe;
}

.g-chip-interactive.is-selected {
  background: var(--g-blue-soft);
  border-color: #aecbfa;
  color: var(--g-blue-ink);
}

.g-mode-visual {
  border-radius: 20px;
  background: var(--g-surface);
  border: 1px solid var(--g-border);
  padding: 28px;
  text-align: center;
}

.g-mode-visual svg {
  display: block;
  margin: 0 auto 12px;
}

.g-mode-visual span {
  font-size: 13px;
  color: var(--g-muted);
}

/* ================= CHAPTER 3: TRAITS, PRINCIPLE & CONTACT ================= */
.g-traits-head {
  margin-bottom: 40px;
}

.g-traits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.g-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--g-border);
  border-radius: 24px;
  padding: 32px;
  transition: transform 0.25s var(--g-ease), box-shadow 0.25s var(--g-ease), border-color 0.25s var(--g-ease);
}

.g-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(32, 33, 36, 0.06);
  border-color: #dadce0;
}

.g-card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--g-muted);
  margin-bottom: 14px;
}

.g-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.g-dot-blue { background: var(--g-blue); }
.g-dot-red { background: var(--g-red); }
.g-dot-yellow { background: var(--g-yellow); }
.g-dot-green { background: var(--g-green); }

.g-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--g-ink);
}

.g-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--g-muted);
}

.g-frame-mark {
  position: absolute;
  top: 24px;
  right: 24px;
  color: #dadce0;
  transition: transform 0.38s var(--g-ease), color 0.3s var(--g-ease);
}

.g-card-freedom:hover .g-frame-mark {
  transform: scale(1.22) rotate(12deg);
  color: var(--g-red);
}

.g-principle {
  background: var(--g-blue-soft);
  border-radius: 28px;
  padding: 44px 42px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 32px;
  align-items: center;
}

.g-principle-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--g-blue-ink);
  margin-bottom: 10px;
}

.g-principle h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--g-ink);
}

.g-principle p {
  margin: 0;
  font-size: 16px;
  line-height: 1.85;
  color: #3c4043;
}

.g-contact-bar {
  background: var(--g-surface);
  border: 1px solid var(--g-border);
  border-radius: 20px;
  padding: 22px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.g-contact-text strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--g-ink);
  margin-bottom: 4px;
}

.g-contact-text span {
  font-size: 14px;
  color: var(--g-muted);
}

.g-contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.g-social-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #dadce0;
  color: var(--g-ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s var(--g-ease), background-color 0.2s var(--g-ease), color 0.2s var(--g-ease);
}

.g-social-pill:hover {
  border-color: #d2e3fc;
  background: var(--g-blue-soft);
  color: var(--g-blue-ink);
  text-decoration: none;
}

.g-social-pill.is-copied {
  border-color: #a8dab5;
  background: var(--g-green-soft);
  color: var(--g-green-ink);
}

/* ================= CHAPTER 4: LATEST WRITING ================= */
.g-posts-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 36px;
}

.g-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.g-post-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--g-border);
  border-radius: 20px;
  padding: 26px 28px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.22s var(--g-ease), box-shadow 0.22s var(--g-ease), transform 0.22s var(--g-ease);
}

.g-post-card:hover {
  border-color: #d2e3fc;
  box-shadow: 0 4px 18px rgba(26, 115, 232, 0.08);
  transform: translateY(-2px);
  text-decoration: none;
}

.g-post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--g-muted);
  margin-bottom: 10px;
}

.g-post-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: var(--g-blue-ink);
}

.g-post-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--g-ink);
  transition: color 0.2s var(--g-ease);
}

.g-post-card:hover h3 {
  color: var(--g-blue);
}

.g-post-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--g-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ================= CLOSING ================= */
.g-closing {
  padding: 96px 20px;
  text-align: center;
  background: var(--g-bg);
}

.g-closing p {
  margin: 0 0 14px;
  font-size: 16px;
  color: var(--g-muted);
}

.g-closing h2 {
  margin: 0 auto;
  max-width: 720px;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--g-ink);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .g-split,
  .g-mode-panel.is-active,
  .g-traits-grid,
  .g-principle {
    grid-template-columns: 1fr;
  }
  .g-geo-layer {
    opacity: 0.45;
  }
}

@media (max-width: 760px) {
  .g-hero {
    min-height: 76vh;
    padding: 96px 16px 64px;
  }
  .g-section {
    padding: 64px 0;
  }
  .g-modes-card,
  .g-principle {
    padding: 28px 22px;
  }
  .g-posts-grid {
    grid-template-columns: 1fr;
  }
  .g-inline-pill {
    padding: 1px 12px 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .g-geo,
  .g-art-shape,
  .g-btn-outline.is-playing rect {
    animation: none !important;
    transition: none !important;
  }
  body.wb-js-ready .g-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
