@import url("/assets/css/pretendard.css");

/* ——— Mobile First · Breakpoints ———
   Mobile:  default ~767px
   Tablet:  min-width 768px
   Desktop: min-width 1200px
*/
:root {
  --bg: #ffffff;
  --bg-subtle: #fbfbfd;
  --text: #1d1d1f;
  --text-secondary: #86868b;
  --accent: #0071e3;
  --border: rgba(0, 0, 0, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --nav-height: 52px;
  --mobile-category-nav-height: 48px;
  --header-stack-height: calc(var(--nav-height) + var(--mobile-category-nav-height));
  --container-pad: 20px;
  --max-width: 100%;
  --section-pad: 56px;
  --grid-gap: 16px;
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --fw-thin: 100;
  --fw-extralight: 200;
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;
  --fw-black: 900;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font);
  font-weight: var(--fw-regular);
  background: var(--bg);
  color: var(--text);
  line-height: 1.47059;
  font-size: 16px;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: var(--font);
}

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

/* ——— Nav (fixed header · mobile category tabs) ——— */
.site-header-stack {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.site-header {
  position: relative;
  top: auto;
  height: var(--nav-height);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
}

.mobile-category-nav {
  display: none;
}

body {
  padding-top: var(--nav-height);
}

.nav-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 19px;
  font-weight: var(--fw-bold);
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
  z-index: 1001;
}

.logo:hover {
  text-decoration: none;
}

.nav-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Mobile: category tabs below header */
@media (max-width: 767px) {
  .nav-inner {
    justify-content: center;
  }

  .nav-menu {
    display: none !important;
  }

  .mobile-category-nav {
    display: block;
    height: var(--mobile-category-nav-height);
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.98);
  }

  .mobile-category-nav-inner {
    display: flex;
    align-items: stretch;
    gap: 6px;
    height: 100%;
    padding: 6px var(--container-pad);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .mobile-category-nav-inner::-webkit-scrollbar {
    display: none;
  }

  .mobile-category-link {
    flex: 1 0 auto;
    min-width: 4.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    font-size: 13px;
    font-weight: var(--fw-medium);
    letter-spacing: -0.01em;
    color: var(--text-secondary);
    text-decoration: none;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 8px;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-category-link.active {
    color: #fff;
    background: var(--text);
    border-color: var(--text);
  }

  body {
    padding-top: var(--header-stack-height);
  }

  .post-detail {
    padding-top: 32px;
  }

  .page-hero {
    padding-top: 28px;
  }

  .admin-wrap {
    padding-top: 24px;
  }

  .post-detail-actions-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow-x: visible;
    justify-content: stretch;
    padding: 0;
  }

  .post-detail-actions-row .btn {
    flex: unset;
    width: auto;
    min-width: 0;
    padding: 11px 12px;
    font-size: 14px;
    white-space: normal;
    word-break: keep-all;
    line-height: 1.35;
  }

  .post-detail-actions-row .btn:first-child {
    grid-column: 1 / -1;
  }

  .post-detail-actions-row .btn:last-child:nth-child(even) {
    grid-column: 1 / -1;
  }
}

/* ——— Hero (Aurora · OpenAI / Linear tone) ——— */
:root {
  --hero-aurora-blue: rgba(59, 130, 246, 0.11);
  --hero-aurora-purple: rgba(139, 92, 246, 0.11);
  --hero-aurora-cyan: rgba(6, 182, 212, 0.09);
}

@keyframes hero-aurora-blue {
  0%,
  100% {
    transform: translate(-12%, -8%) scale(1.02) rotate(-2deg);
    opacity: 0.45;
  }
  25% {
    transform: translate(10%, -10%) scale(1.14) rotate(1deg);
    opacity: 1;
  }
  50% {
    transform: translate(12%, 10%) scale(1.1) rotate(2deg);
    opacity: 0.55;
  }
  75% {
    transform: translate(-8%, 12%) scale(1.12) rotate(-1deg);
    opacity: 0.88;
  }
}

@keyframes hero-aurora-purple {
  0%,
  100% {
    transform: translate(10%, -6%) scale(1.08) rotate(1deg);
    opacity: 0.5;
  }
  33% {
    transform: translate(-14%, 4%) scale(1.15) rotate(-2deg);
    opacity: 0.95;
  }
  66% {
    transform: translate(-6%, 14%) scale(1.1) rotate(1deg);
    opacity: 0.6;
  }
}

@keyframes hero-aurora-cyan {
  0%,
  100% {
    transform: translate(0%, 10%) scale(1.05) rotate(0deg);
    opacity: 0.4;
  }
  20% {
    transform: translate(-10%, -6%) scale(1.12) rotate(-1deg);
    opacity: 0.85;
  }
  55% {
    transform: translate(8%, -12%) scale(1.16) rotate(2deg);
    opacity: 1;
  }
  80% {
    transform: translate(14%, 6%) scale(1.08) rotate(-2deg);
    opacity: 0.5;
  }
}

@keyframes hero-logo-float {
  0%,
  100% {
    transform: translateY(-4px);
  }
  50% {
    transform: translateY(4px);
  }
}

@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 40px var(--container-pad) 64px;
  background: #ffffff;
  isolation: isolate;
}

.hero-aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-aurora-layer {
  position: absolute;
  width: 165%;
  height: 165%;
  left: -32%;
  top: -32%;
  will-change: transform, opacity;
  border-radius: 50%;
  opacity: 0.75;
}

.hero-aurora-layer--blue {
  background:
    radial-gradient(ellipse 92% 88% at 24% 36%, var(--hero-aurora-blue) 0%, transparent 74%),
    radial-gradient(ellipse 70% 65% at 55% 70%, rgba(59, 130, 246, 0.06) 0%, transparent 72%);
  animation: hero-aurora-blue 6s ease-in-out infinite;
}

.hero-aurora-layer--purple {
  background:
    radial-gradient(ellipse 90% 86% at 78% 32%, var(--hero-aurora-purple) 0%, transparent 74%),
    radial-gradient(ellipse 72% 68% at 40% 88%, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
  animation: hero-aurora-purple 7s ease-in-out infinite;
}

.hero-aurora-layer--cyan {
  background:
    radial-gradient(ellipse 95% 90% at 52% 52%, var(--hero-aurora-cyan) 0%, transparent 76%),
    radial-gradient(ellipse 80% 75% at 68% 68%, rgba(6, 182, 212, 0.05) 0%, transparent 72%);
  animation: hero-aurora-cyan 8s ease-in-out infinite;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 8px;
}

.hero-logo {
  margin-bottom: 28px;
}

.hero-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(240px, 78vw);
  max-height: 56px;
  margin: 0 auto;
  object-fit: contain;
  animation: hero-logo-float 8s ease-in-out infinite;
}

.hero-eyebrow {
  margin: 0 0 20px;
  padding: 0;
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0;
  animation: hero-fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
}

.hero h1 {
  font-size: clamp(28px, 6.2vw, 48px);
  font-weight: var(--fw-bold);
  letter-spacing: -0.035em;
  line-height: 1.18;
  margin: 0 auto 24px;
  max-width: 11em;
  word-break: keep-all;
  text-wrap: balance;
  opacity: 0;
  animation: hero-fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-lead {
  font-size: clamp(16px, 2.6vw, 19px);
  font-weight: var(--fw-regular);
  letter-spacing: -0.015em;
  line-height: 1.65;
  color: var(--text);
  margin: 0 auto 18px;
  max-width: 20em;
  word-break: keep-all;
  text-wrap: balance;
  opacity: 0;
  animation: hero-fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.hero-support {
  font-size: clamp(14px, 2.2vw, 16px);
  font-weight: var(--fw-light);
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0 auto;
  max-width: 24em;
  word-break: keep-all;
  text-wrap: pretty;
  opacity: 0;
  animation: hero-fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

@media (prefers-reduced-motion: reduce) {
  .hero-aurora-layer,
  .hero-logo img {
    animation: none;
  }

  .hero-eyebrow,
  .hero h1,
  .hero-lead,
  .hero-support {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  font-size: 16px;
  font-weight: var(--fw-medium);
  border-radius: 980px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

/* ——— Sections ——— */
.section {
  padding: var(--section-pad) 0;
}

.section-alt {
  background: var(--bg-subtle);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
  padding: 0 4px;
}

.section-header h2 {
  font-size: clamp(26px, 6vw, 48px);
  font-weight: var(--fw-bold);
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

.section-header p {
  font-size: clamp(15px, 3.8vw, 21px);
  color: var(--text-secondary);
  margin: 0;
}

/* ——— Home: Hero · Profile · Projects bands ——— */
.home-projects-section {
  background: var(--bg);
}

/* ——— Company Overview (Home) ——— */
.profile-section.company-overview {
  padding: 64px 0 72px;
  background: var(--bg-subtle);
}

.company-overview-inner {
  max-width: 1120px;
}

.company-overview-layout {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: stretch;
}

.company-overview-visual {
  order: -1;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.overview-portrait {
  margin: 0;
}

.overview-portrait-frame {
  border-radius: 20px;
  overflow: hidden;
  background: #e8e8ed;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
  line-height: 0;
}

.overview-portrait-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%) contrast(1.06);
}

.overview-portrait-caption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 16px;
  padding: 0 4px;
  text-align: center;
}

.overview-portrait-name {
  font-size: 15px;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.02em;
  color: var(--text);
}

.overview-portrait-role {
  font-size: 13px;
  color: var(--text-secondary);
}

.company-overview-main {
  min-width: 0;
}

.overview-eyebrow {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.overview-headline {
  margin: 0 0 20px;
  font-size: clamp(28px, 6.5vw, 44px);
  font-weight: var(--fw-bold);
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--text);
}

.overview-description {
  margin: 0 0 40px;
  max-width: 36em;
  font-size: clamp(16px, 2.6vw, 18px);
  font-weight: var(--fw-regular);
  line-height: 1.65;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.overview-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 48px;
}

.overview-kpi-card {
  padding: 22px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.2s ease;
}

.overview-kpi-value {
  display: block;
  font-size: clamp(32px, 8vw, 40px);
  font-weight: var(--fw-bold);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
}

.overview-kpi-label {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.overview-capabilities-label {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.overview-cap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.overview-cap-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.2s ease;
}

.overview-cap-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 113, 227, 0.08);
  color: var(--accent);
}

.overview-cap-title {
  margin: 0;
  font-size: 16px;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.02em;
  color: var(--text);
}

.overview-cap-desc {
  margin: -4px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary);
}

/* ——— Project cards (About · 진행 중인 사업) ——— */
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
  max-width: 960px;
  margin: 0 auto;
}

.project-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  height: 100%;
  min-width: 0;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.section-alt .project-card {
  background: #fff;
}

.project-card-media {
  position: relative;
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-subtle);
}

.project-card-media .post-card-status-overlay {
  top: 6px;
  right: 6px;
  font-size: 9px;
  padding: 4px 7px;
}

.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.project-card h3 {
  font-size: 17px;
  font-weight: var(--fw-bold);
  margin: 0;
  letter-spacing: -0.02em;
}

.project-card-body > p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 6px 0 0;
  line-height: 1.45;
}

.project-card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.project-tag,
.project-status {
  font-size: 11px;
  font-weight: var(--fw-semibold);
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.project-status {
  color: var(--text);
}

.project-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.project-chip {
  font-size: 11px;
  color: var(--text-secondary);
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
}

.project-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  width: 100%;
}

.project-card-btn {
  min-height: 38px;
  padding: 8px 18px;
  font-size: 14px;
  text-decoration: none;
  flex: 1 1 auto;
  min-width: 0;
}

@media (min-width: 480px) {
  .project-card {
    padding: 20px;
    gap: 20px;
  }

  .project-card-media {
    width: 104px;
    height: 104px;
    border-radius: 12px;
  }

  .project-card h3 {
    font-size: 19px;
  }

  .project-card-btn {
    flex: 0 1 auto;
    width: auto;
  }
}

@media (min-width: 768px) {
  .project-card-media {
    width: 112px;
    height: 112px;
  }
}

/* ——— Post / Projects grid ——— */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap);
  width: 100%;
  align-items: stretch;
}

.post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  color: inherit;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.post-card-thumb-link {
  display: block;
  flex-shrink: 0;
  text-decoration: none;
}

.post-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--bg-subtle);
  overflow: hidden;
}

.post-card-status-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  font-size: 10px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(29, 29, 31, 0.78);
  backdrop-filter: blur(8px);
  padding: 5px 10px;
  border-radius: 6px;
  pointer-events: none;
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-badge {
  align-self: flex-start;
  font-size: 10px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  margin: 0 0 10px;
}

.badge-app {
  background: #0071e3;
}

.badge-media {
  background: #7c3aed;
}

.badge-welding {
  background: #ea580c;
}

.post-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 14px 16px;
  min-height: 0;
}

.post-card-title {
  font-size: 15px;
  font-weight: var(--fw-semibold);
  margin: 0 0 8px;
  line-height: 1.35;
}

.post-card-title a {
  color: var(--text);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-title a:hover {
  color: var(--accent);
  text-decoration: none;
}

.post-card-summary {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 14px;
  line-height: 1.45;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-cta {
  width: 100%;
  margin-top: auto;
  font-size: 14px;
  padding: 10px 16px;
  min-height: 40px;
}

.post-card-type,
.post-card-date {
  display: none;
}

/* ——— Projects stats ——— */
#projectsPostList.is-filtering .post-grid {
  opacity: 0;
  transform: translateY(10px);
}

#projectsPostList .post-grid {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.projects-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.projects-stats--three {
  grid-template-columns: 1fr;
}

@media (min-width: 480px) {
  .projects-stats--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.about-project-stats {
  max-width: 1040px;
  margin: 0 auto 36px;
  padding: 0 4px;
}

.about-project-stats .projects-stats,
.about-stats {
  margin-bottom: 0;
}

.about-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stat-item {
  text-align: center;
  padding: 20px 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.stat-value {
  display: block;
  font-size: clamp(28px, 7vw, 40px);
  font-weight: var(--fw-bold);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}

.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: var(--fw-semibold);
  color: var(--text);
  letter-spacing: -0.01em;
}

.stat-desc {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: var(--fw-regular);
  color: var(--text-secondary);
  line-height: 1.35;
}

.about-stats .stat-item {
  padding: 22px 14px;
}

.projects-stats-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin: -12px 0 24px;
}

/* ——— Filter buttons ——— */
.project-filter-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.project-filter-bar {
  display: inline-flex;
  flex-wrap: nowrap;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px;
  gap: 4px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 12px;
  scrollbar-width: none;
}

.project-filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-tab {
  flex-shrink: 0;
  min-height: 44px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: var(--fw-medium);
  font-family: var(--font);
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.filter-tab.active {
  background: #fff;
  color: var(--text);
  font-weight: var(--fw-bold);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

/* ——— Post detail actions ——— */
.post-detail-actions {
  max-width: 720px;
  margin: 48px auto 0;
  padding: 0 var(--container-pad);
}

.post-detail-actions-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 8px;
}

.post-detail-actions-row .btn {
  flex: 0 0 auto;
  white-space: nowrap;
  min-width: 0;
  padding-left: 18px;
  padding-right: 18px;
}

.post-detail-actions-row .btn-secondary {
  flex-shrink: 0;
}

.section-footer-link {
  text-align: center;
  margin-top: 28px;
  font-size: 16px;
  font-weight: var(--fw-semibold);
}

/* ——— About ——— */
.content-section {
  padding: var(--section-pad) 0;
}

.content-narrow {
  max-width: 720px;
  margin: 0 auto;
}

.about-page-section > .container {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.about-prose-rail {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}

.about-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
  padding: 0;
}

.about-section-title {
  font-size: clamp(26px, 5.5vw, 40px);
  font-weight: var(--fw-bold);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  margin: 0;
}

.about-section-lead {
  font-size: 16px;
  font-weight: var(--fw-regular);
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 12px 0 0;
  max-width: 36em;
  margin-left: auto;
  margin-right: auto;
}

.about-section-body {
  width: 100%;
  max-width: none;
  margin: 0;
  text-align: left;
}

.about-section-body p,
.content-narrow p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0 0 16px;
}

.about-section-body p:last-child {
  margin-bottom: 0;
}

.about-prose-rail .founder-profile {
  margin-top: 0;
  max-width: none;
  width: 100%;
}

.content-center-title {
  font-size: clamp(26px, 5.5vw, 40px);
  font-weight: var(--fw-bold);
  text-align: center;
  margin: 0 0 32px;
  color: var(--text);
}

.capability-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}

.capability-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.capability-card h3 {
  font-size: 16px;
  font-weight: var(--fw-semibold);
  margin: 0 0 6px;
}

.capability-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

/* ——— CTA ——— */
.cta-band {
  text-align: center;
  padding: var(--section-pad) var(--container-pad);
  background: var(--text);
  color: #f5f5f7;
}

.cta-band h2 {
  font-size: clamp(24px, 5.5vw, 40px);
  font-weight: var(--fw-bold);
  margin: 0 0 10px;
}

.cta-band p {
  color: #a1a1a6;
  margin: 0 0 22px;
  font-size: 16px;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--text);
}

/* ——— Post detail ——— */
.post-detail {
  padding: 32px 0 var(--section-pad);
}

.post-detail-header {
  max-width: 720px;
  margin: 0 auto 28px;
  text-align: center;
  padding: 0 var(--container-pad);
}

.post-detail-header h1 {
  font-size: clamp(26px, 6vw, 48px);
  font-weight: var(--fw-bold);
  margin: 0 0 10px;
}

.post-detail-meta {
  font-size: 14px;
  color: var(--text-secondary);
}

.post-detail-type {
  font-weight: var(--fw-semibold);
  color: var(--accent);
}

.post-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  color: var(--text);
}

.post-content p {
  margin: 0 0 1em;
}

.post-content p:last-child {
  margin-bottom: 0;
}

.post-content h2 {
  font-size: 22px;
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin: 1.5em 0 0.65em;
  color: var(--text);
}

.post-content h2:first-child {
  margin-top: 0;
}

.post-content h3 {
  font-size: 18px;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin: 1.25em 0 0.5em;
  color: var(--text);
}

.post-content ul {
  margin: 0 0 1em;
  padding-left: 1.25em;
  list-style: disc;
}

.post-content li {
  margin: 0 0 0.35em;
  line-height: 1.65;
}

.post-content li:last-child {
  margin-bottom: 0;
}

.post-content strong {
  font-weight: var(--fw-semibold);
  color: var(--text);
}

.post-content a {
  color: var(--accent);
}

.post-content img {
  display: block;
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 20px auto;
}

.post-cover {
  max-width: 600px;
  width: 100%;
  margin: 0 auto 32px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-subtle);
}

.post-cover img {
  display: block;
  width: 100%;
  max-width: 600px;
  height: auto;
  margin: 0;
}

.page-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 28px var(--container-pad) 32px;
  background: #ffffff;
  isolation: isolate;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(30px, 7vw, 56px);
  font-weight: var(--fw-bold);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 8px;
  color: var(--text);
}

.page-hero p {
  font-size: 16px;
  font-weight: var(--fw-regular);
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* ——— Contact page ——— */
/* Contact: subtle → white → subtle → white → subtle */
.contact-block {
  padding: var(--section-pad) 0;
  background: var(--bg-subtle);
}

.contact-block.section-alt {
  background: var(--bg);
}

.contact-block-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
  padding: 0 4px;
}

.contact-block-title {
  font-size: clamp(22px, 5vw, 32px);
  font-weight: var(--fw-bold);
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  color: var(--text);
}

.contact-block-lead {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
}

.contact-inquiry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 960px;
  margin: 0 auto;
}

.contact-inquiry-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  padding: 22px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
  font-family: var(--font);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.contact-inquiry-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: rgba(0, 113, 227, 0.08);
  color: var(--accent);
}

.contact-inquiry-icon {
  display: block;
}

.contact-inquiry-card h3 {
  font-size: 16px;
  font-weight: var(--fw-semibold);
  margin: 0 0 6px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.contact-inquiry-card p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.45;
}

.contact-why-panel {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.contact-why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-why-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

.contact-why-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: var(--fw-bold);
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 1px;
}

.contact-closing {
  text-align: center;
  padding: 48px var(--container-pad) 56px;
  background: var(--bg-subtle);
}

.contact-closing-line {
  font-size: clamp(17px, 3vw, 20px);
  color: var(--text-secondary);
  margin: 0 0 8px;
  line-height: 1.5;
}

.contact-closing-em {
  font-size: clamp(18px, 3.2vw, 22px);
  font-weight: var(--fw-semibold);
  color: var(--text);
  margin-bottom: 0;
}

@media (min-width: 480px) {
  .contact-inquiry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (min-width: 768px) {
  .contact-inquiry-grid {
    gap: 16px;
  }

  .contact-why-panel {
    padding: 32px 36px;
  }

  .contact-why-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
  }
}

@media (min-width: 1200px) {
  .contact-inquiry-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (hover: hover) {
  .contact-inquiry-card:hover {
    border-color: rgba(0, 113, 227, 0.3);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
  }
}

/* ——— Contact channels ——— */
.contact-channels {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
  max-width: 880px;
  margin: 0 auto;
}

.contact-channel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  text-align: center;
  transition: box-shadow 0.25s ease;
  height: 100%;
}

.contact-channel-title {
  font-size: clamp(18px, 4.5vw, 22px);
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 20px;
  line-height: 1.35;
}

.contact-channel-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}

.contact-channel-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.contact-channel-label {
  font-size: 12px;
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.contact-channel-value {
  font-size: 17px;
  font-weight: var(--fw-semibold);
  color: var(--text);
  text-decoration: none;
  word-break: break-all;
  line-height: 1.4;
}

a.contact-channel-value:hover {
  color: var(--accent);
  text-decoration: none;
}

.contact-channel-kakao,
.btn-kakao.contact-channel-kakao {
  width: 100%;
  min-width: 0;
}

.btn-kakao {
  background: #fee500;
  color: #191919;
  font-weight: var(--fw-semibold);
}

.btn-kakao:hover {
  background: #f5dc00;
  text-decoration: none;
  color: #191919;
}

.btn-kakao-pending {
  opacity: 0.92;
  cursor: default;
  pointer-events: none;
  width: 100%;
}

@media (min-width: 768px) {
  .contact-channels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .contact-channel-card {
    padding: 32px 28px;
  }
}

/* ——— Footer ——— */
.site-footer {
  margin-top: 0;
  background: #f5f5f7;
  border-top: 1px solid var(--border);
  color: var(--text);
}

.footer-main {
  padding: 56px 0 44px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 18px;
  line-height: 0;
}

.footer-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(168px, 52vw);
  max-height: 40px;
  object-fit: contain;
}

.footer-intro {
  margin: 0;
  font-size: 14px;
  font-weight: var(--fw-regular);
  line-height: 1.65;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
}

.footer-intro span {
  display: inline;
}

.footer-heading {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li + li {
  margin-top: 12px;
}

.footer-links a {
  font-size: 15px;
  font-weight: var(--fw-regular);
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-contact li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-contact-label {
  font-size: 11px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.footer-contact a,
.footer-contact > li > span:not(.footer-contact-label):not(.footer-contact-note) {
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  word-break: break-all;
}

.footer-contact-kakao {
  gap: 12px !important;
}

.footer-kakao-btn {
  align-self: flex-start;
  width: auto;
  max-width: 100%;
  min-height: 0;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: var(--fw-semibold);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.3;
  border-radius: 8px;
}

.footer-kakao-qr-link {
  display: block;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  line-height: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  aspect-ratio: 1 / 1;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.footer-kakao-qr-link img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 88px;
  max-height: 88px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
}

.footer-company {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-company p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.footer-company-label {
  font-weight: var(--fw-medium);
  color: var(--text);
  margin-right: 6px;
}

.footer-bottom {
  background: #e8e8ed;
  padding: 22px 0;
  text-align: center;
}

.footer-copyright {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.footer-copyright-br {
  display: none;
}

@media (min-width: 768px) {
  .footer-main {
    padding: 64px 0 48px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 420px;
  }

  .footer-company {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 32px;
    margin-top: 56px;
    padding-top: 36px;
  }

  .footer-bottom {
    padding: 24px 0;
  }
}

@media (min-width: 1200px) {
  .footer-main {
    padding: 72px 0 52px;
  }

  .footer-grid {
    grid-template-columns: 1.15fr 0.85fr 0.95fr 1.05fr;
    gap: 32px 48px;
    align-items: start;
  }

  .footer-brand {
    grid-column: auto;
    max-width: none;
  }

  .footer-intro {
    font-size: 15px;
  }

  .footer-copyright-br {
    display: none;
  }

  .footer-copyright {
    white-space: nowrap;
  }
}

.empty-state {
  text-align: center;
  padding: 48px 16px;
  color: var(--text-secondary);
  grid-column: 1 / -1;
}

.trust-note {
  text-align: center;
  font-size: 15px;
  color: var(--text-secondary);
  padding: 0 4px;
}

/* ——— Hover (pointer only) ——— */
@media (hover: hover) {
  a:hover {
    text-decoration: underline;
  }

  .btn-primary:hover {
    background: #0077ed;
    text-decoration: none;
  }

  .btn-secondary:hover {
    background: rgba(0, 113, 227, 0.06);
    text-decoration: none;
  }

  .post-card:hover,
  .project-card:hover,
  .contact-channel-card:hover,
  .overview-kpi-card:hover,
  .overview-cap-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
  }

  .overview-kpi-card:hover,
  .overview-cap-card:hover {
    border-color: rgba(0, 113, 227, 0.2);
  }

  .footer-links a:hover,
  .footer-contact a:not(.footer-kakao-btn):not(.footer-kakao-qr-link):hover {
    color: var(--accent);
    text-decoration: none;
  }

  .footer-kakao-qr-link:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
  }

  .footer-kakao-btn:hover {
    text-decoration: none;
  }

  .footer-logo:hover {
    opacity: 0.85;
  }

  .post-card-title a:hover {
    color: var(--accent);
  }

  .filter-tab:hover {
    color: var(--text);
  }
}

/* ——— Tablet: 768px+ ——— */
@media (min-width: 768px) {
  :root {
    --container-pad: 32px;
    --section-pad: 72px;
    --grid-gap: 20px;
    --max-width: 960px;
  }

  body {
    font-size: 17px;
  }

  .nav-inner {
    justify-content: space-between;
  }

  .mobile-category-nav {
    display: none !important;
  }

  .nav-menu {
    position: static;
    top: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding: 0;
    background: transparent;
    border: none;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu a {
    display: inline;
    padding: 0;
    font-size: 14px;
    min-height: auto;
    line-height: inherit;
  }

  .hero {
    padding: 64px var(--container-pad) 72px;
  }

  .hero-inner {
    max-width: 720px;
  }

  .hero-logo {
    margin-bottom: 36px;
  }

  .hero-logo img {
    max-width: min(280px, 70vw);
    max-height: 64px;
  }

  .hero-eyebrow {
    margin-bottom: 24px;
  }

  .hero h1 {
    margin-bottom: 28px;
    max-width: 12em;
  }

  .hero-lead {
    margin-bottom: 22px;
    max-width: 22em;
  }

  .profile-section.company-overview {
    padding: 80px 0 88px;
  }

  .company-overview-visual {
    max-width: 360px;
  }

  .overview-kpi-grid {
    gap: 14px;
  }

  .overview-cap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .post-card-body {
    padding: 16px 18px 18px;
  }

  .post-card-title {
    font-size: 16px;
  }

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

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

  .projects-stats:not(.projects-stats--three) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 36px;
  }

  .projects-stats--three {
    gap: 16px;
    margin-bottom: 36px;
  }

  .about-stats {
    gap: 16px;
  }

  .stat-item {
    padding: 24px 16px;
  }

  .section-header {
    margin-bottom: 44px;
  }
}

/* ——— Desktop: 1200px+ ——— */
@media (min-width: 1200px) {
  :root {
    --container-pad: 48px;
    --section-pad: 100px;
    --grid-gap: 24px;
    --max-width: 1200px;
  }

  .nav-menu {
    gap: 36px;
  }

  .hero {
    padding: 80px var(--container-pad) 88px;
  }

  .hero-inner {
    max-width: 1040px;
  }

  .hero-logo img {
    max-width: 320px;
    max-height: 72px;
  }

  .hero h1 {
    font-size: 44px;
    margin-bottom: 28px;
    max-width: none;
    white-space: nowrap;
    text-wrap: unset;
  }

  .hero-lead {
    font-size: 18px;
    margin-bottom: 20px;
    max-width: none;
    white-space: nowrap;
    text-wrap: unset;
  }

  .hero-support {
    font-size: 15px;
    max-width: none;
    white-space: nowrap;
    text-wrap: unset;
  }

  .company-overview-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 64px 56px;
    align-items: start;
  }

  .company-overview-visual {
    order: 2;
    max-width: none;
    margin: 0;
    justify-self: end;
  }

  .company-overview-main {
    order: 1;
  }

  .overview-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .overview-cap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .post-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .post-card-title {
    font-size: 17px;
  }

  .post-card-summary {
    font-size: 14px;
  }

  .capability-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

/* ——— Admin ——— */
.admin-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px var(--container-pad) 64px;
}

.admin-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
  background: var(--bg-subtle);
}

.admin-panel h2 {
  font-size: 18px;
  font-weight: var(--fw-semibold);
  margin: 0 0 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: var(--fw-semibold);
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.form-hint {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}

#postBody {
  min-height: 220px;
  resize: vertical;
}

.markdown-help {
  margin: 10px 0 0;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.markdown-help-title {
  display: block;
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: var(--fw-semibold);
  color: var(--text);
}

.markdown-help ul {
  margin: 0;
  padding-left: 1.15em;
}

.markdown-help li {
  margin: 0 0 8px;
}

.markdown-help li:last-child {
  margin-bottom: 0;
}

.markdown-help code {
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
}

.markdown-help strong {
  font-weight: var(--fw-semibold);
  color: var(--text);
}

.form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.form-row .btn {
  flex: 1;
  min-width: 120px;
}

.admin-msg {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
  display: none;
}

.admin-msg.show {
  display: block;
}

.admin-msg.success {
  background: #e8f5e9;
  color: #2e7d32;
}

.admin-msg.error {
  background: #ffebee;
  color: #c62828;
}

.admin-post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.admin-post-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  flex-wrap: wrap;
}

.admin-post-list .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-small {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 980px;
  border: none;
  cursor: pointer;
}

.btn-danger {
  background: #ff3b30;
  color: #fff;
}

.btn-muted {
  background: #e8e8ed;
  color: var(--text);
}

.admin-session-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.admin-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
}

.admin-remember input {
  width: auto;
}

/* About block legacy */
.about-block {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: 0 4px;
}

.about-block p {
  font-size: 16px;
  color: var(--text-secondary);
}

/* ——— Founder profile (About) ——— */
.founder-section {
  padding: var(--section-pad) 0;
}

.founder-section .about-section-head {
  margin-bottom: 40px;
}

.founder-profile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 40px;
  margin: 0;
}

.founder-profile-visual {
  order: -1;
  margin: 0;
  width: 100%;
  max-width: 360px;
  text-align: center;
}

.founder-photo-frame {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  background: var(--bg-subtle);
  line-height: 0;
}

.founder-photo-frame img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%) contrast(1.08);
  transition: transform 0.55s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.founder-photo-caption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 16px;
  padding: 0 4px;
}

.founder-caption-name {
  font-size: 15px;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.02em;
  color: var(--text);
}

.founder-caption-role {
  font-size: 13px;
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.founder-profile-text {
  width: 100%;
  max-width: none;
  text-align: left;
}

.founder-role-line {
  font-size: clamp(17px, 4vw, 20px);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.02em;
  line-height: 1.45;
  color: var(--text);
  margin: 0 0 28px;
}

.founder-bio p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 0 16px;
}

.founder-bio p:last-child {
  margin-bottom: 0;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.75s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.reveal-on-scroll.reveal-delay {
  transition-delay: 0.12s;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .founder-profile {
    flex-direction: row;
    align-items: flex-start;
    gap: 40px 32px;
  }

  .founder-profile-visual {
    order: 1;
    flex: 0 0 200px;
    width: 200px;
    max-width: 200px;
  }

  .founder-profile-text {
    order: 0;
    flex: 1 1 auto;
    min-width: 0;
  }

  .founder-photo-frame img {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
}

@media (min-width: 1200px) {
  .founder-profile {
    gap: 72px;
  }

  .founder-bio p {
    font-size: 17px;
    line-height: 1.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .founder-photo-frame img {
    transition: none;
  }
}

@media (hover: hover) {
  .founder-profile-visual:hover .founder-photo-frame img {
    transform: scale(1.02);
  }
}

.vision-goals-title {
  margin: 32px 0 16px;
  font-size: clamp(18px, 4vw, 22px);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.02em;
  color: var(--text);
}

.about-section-body .vision-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.about-section-body .vision-list li {
  margin: 0 0 12px;
  padding: 0;
  position: relative;
  padding-left: 0;
}

.about-section-body .vision-list li::before {
  content: "· ";
  font-weight: var(--fw-bold);
  color: var(--text-secondary);
}

.about-section-body .vision-list li:last-child {
  margin-bottom: 0;
}

.vision-list {
  margin: 20px 0 0;
  padding-left: 1.2em;
  font-size: 16px;
  color: var(--text-secondary);
}


/* ——— Post detail media gallery ——— */
.post-media-gallery-wrap {
  max-width: 600px;
  width: 100%;
  margin: 0 auto 32px;
  padding: 0 var(--container-pad);
}

.post-media-gallery-wrap[hidden] {
  display: none;
}

.post-media-gallery {
  width: 100%;
}

.post-media-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
}

.post-media-item {
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}

.post-media-item img {
  display: block;
  width: 100%;
  max-width: 600px;
  height: auto;
  margin: 0 auto;
}

.post-media-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0a0a0c;
}

.post-media-item video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  vertical-align: middle;
}

.post-media-caption {
  padding: 10px 14px 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary);
  text-align: center;
  border-top: 1px solid var(--border);
}

@media (min-width: 480px) {
  .post-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .post-media-item--video {
    grid-column: 1 / -1;
  }
}

@media (min-width: 768px) {
  .post-media-grid {
    gap: 20px;
  }
}

.post-external-link {
  text-align: center;
  margin-top: 36px;
}
