/* =========================================================
   J2W2 / Hotkkangs — Design System
   Stitch "Azure Authority" 테마 참고 (project: www)
   ========================================================= */

:root {
  /* Surfaces */
  --background: #f8f9fa;
  --surface: #f8f9fa;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f3f4f5;
  --surface-container: #edeeef;
  --surface-container-high: #e7e8e9;
  --surface-container-highest: #e1e3e4;
  --surface-dim: #d9dadb;

  /* Text on surface */
  --on-surface: #191c1d;
  --on-surface-variant: #44474d;
  --outline: #75777e;
  --outline-variant: #c5c6cd;

  /* Primary (deep navy / ink) */
  --primary: #000000;
  --on-primary: #ffffff;
  --primary-container: #0d1c32;
  --on-primary-container: #b7c2d6;

  /* Secondary (azure blue accent) */
  --secondary: #0059bb;
  --on-secondary: #ffffff;
  --secondary-container: #0070ea;
  --on-secondary-container: #fefcff;
  --secondary-fixed: #d8e2ff;
  --secondary-fixed-dim: #adc7ff;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* Spacing */
  --space-container-mobile: 20px;
  --space-container-desktop: 40px;
  --gutter: 16px;
  --stack-sm: 8px;
  --stack-md: 16px;
  --stack-lg: 32px;
  --stack-xl: 64px;

  /* Shadow */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 89, 187, 0.10);
  --shadow-lg: 0 12px 32px -8px rgba(13, 28, 50, 0.25);
}

/* =========================================================
   Reset
   ========================================================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--on-surface);
  font-family: "Inter", "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, h5 {
  font-family: "Hanken Grotesk", "Noto Sans KR", "Inter", sans-serif;
  margin: 0;
  font-weight: 700;
  color: var(--primary);
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

/* =========================================================
   Layout helpers
   ========================================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-container-mobile);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-container-desktop);
  }
}

.section {
  padding: var(--stack-xl) 0;
}

.section-tight {
  padding: var(--stack-lg) 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--stack-sm);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--secondary);
  display: inline-block;
}

.section-head {
  max-width: 720px;
  margin-bottom: var(--stack-lg);
}

.section-head h2 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-top: var(--stack-sm);
}

.section-head p {
  margin-top: var(--stack-sm);
  color: var(--on-surface-variant);
  font-size: 17px;
}

@media (min-width: 768px) {
  .section-head h2 {
    font-size: 40px;
  }
}

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 249, 250, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--outline-variant);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--stack-sm);
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.brand .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--primary-container);
  color: var(--secondary-fixed-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 800;
  font-size: 14px;
}

.brand .brand-sub {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: var(--on-surface-variant);
  letter-spacing: 0;
}

.main-nav {
  display: none;
  align-items: center;
  gap: var(--stack-lg);
}

.main-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--on-surface-variant);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--secondary);
}

.main-nav a[aria-current="page"] {
  border-bottom-color: var(--secondary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--stack-md);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background: var(--secondary);
  color: var(--on-secondary);
}

.btn-secondary:hover {
  background: var(--secondary-container);
}

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: var(--primary);
}

@media (min-width: 900px) {
  .main-nav {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--surface-container-lowest);
  border-bottom: 1px solid var(--outline-variant);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 14px var(--space-container-mobile);
  font-size: 15px;
  font-weight: 600;
  color: var(--on-surface-variant);
  border-bottom: 1px solid var(--surface-container);
}

.mobile-nav a[aria-current="page"] {
  color: var(--secondary);
}

@media (min-width: 900px) {
  .mobile-nav {
    display: none !important;
  }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  background: radial-gradient(circle at 75% 20%, #0d3a7a 0%, #0a1a30 55%, #060f1e 100%);
  color: #fff;
  overflow: hidden;
}

.hero .container {
  display: flex;
  flex-direction: column;
  gap: var(--stack-xl);
  padding-top: var(--stack-xl);
  padding-bottom: var(--stack-xl);
  align-items: center;
}

.hero-copy {
  flex: 1;
  max-width: 620px;
}

.hero-copy .eyebrow {
  color: var(--secondary-fixed-dim);
}

.hero-copy .eyebrow::before {
  background: var(--secondary-fixed-dim);
}

.hero-copy h1 {
  color: #fff;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-top: var(--stack-md);
}

.hero-copy p {
  margin-top: var(--stack-md);
  font-size: 17px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 520px;
}

.hero-actions {
  margin-top: var(--stack-lg);
  display: flex;
  flex-wrap: wrap;
  gap: var(--stack-md);
}

.hero-tags {
  margin-top: var(--stack-lg);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tag {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.hero-visual {
  flex: 1;
  width: 100%;
}

@media (min-width: 900px) {
  .hero .container {
    flex-direction: row;
    padding-top: 96px;
    padding-bottom: 96px;
  }
  .hero-copy h1 {
    font-size: 48px;
  }
}

/* =========================================================
   Image placeholder (no real assets yet)
   ========================================================= */
figure.img-placeholder {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-container);
  border: 1px dashed var(--outline-variant);
}

.img-placeholder .ph-box {
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--outline);
  background: repeating-linear-gradient(
    135deg,
    var(--surface-container) 0px,
    var(--surface-container) 12px,
    var(--surface-container-high) 12px,
    var(--surface-container-high) 24px
  );
}

.img-placeholder .ph-box .material-symbols-outlined {
  font-size: 32px;
}

.img-placeholder .ph-box span.ph-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.img-placeholder figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--on-surface-variant);
  background: var(--surface-container-lowest);
  border-top: 1px dashed var(--outline-variant);
}

/* square / portrait variants */
.img-placeholder.square .ph-box {
  aspect-ratio: 1 / 1;
}

.img-placeholder.portrait .ph-box {
  aspect-ratio: 3 / 4;
}

.img-placeholder.wide .ph-box {
  aspect-ratio: 21 / 9;
}

/* dark hero placeholder variant */
.img-placeholder.on-dark {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.18);
}

.img-placeholder.on-dark .ph-box {
  color: rgba(255, 255, 255, 0.55);
  background: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.03) 0px,
    rgba(255, 255, 255, 0.03) 12px,
    rgba(255, 255, 255, 0.06) 12px,
    rgba(255, 255, 255, 0.06) 24px
  );
}

.img-placeholder.on-dark figcaption {
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.65);
  border-top-color: rgba(255, 255, 255, 0.16);
}

/* =========================================================
   Stat row
   ========================================================= */
.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--stack-md);
  margin-top: var(--stack-lg);
}

.stat-row .stat-num {
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: var(--secondary);
}

.stat-row .stat-label {
  font-size: 13px;
  color: var(--on-surface-variant);
}

@media (min-width: 640px) {
  .stat-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =========================================================
   Cards — generic
   ========================================================= */
.card {
  background: var(--surface-container-lowest);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

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

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

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

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* =========================================================
   Project cards
   ========================================================= */
.project-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-container-lowest);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.project-card .pc-media {
  position: relative;
}

.project-card .pc-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0, 89, 187, 0.92);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
}

.project-card .pc-body {
  padding: var(--stack-md);
  display: flex;
  flex-direction: column;
  gap: var(--stack-sm);
  flex: 1;
}

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

.project-card .pc-desc {
  color: var(--on-surface-variant);
  font-size: 14px;
  line-height: 1.6;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--on-surface-variant);
  background: var(--surface-container-highest);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.pc-footer {
  margin-top: auto;
  padding-top: var(--stack-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--surface-container-high);
}

.pc-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}

.pc-link:hover {
  gap: 8px;
}

.pc-url {
  font-size: 12px;
  color: var(--outline);
}

/* =========================================================
   CTA band
   ========================================================= */
.cta-band {
  background: var(--primary-container);
  border-radius: var(--radius-xl);
  color: #fff;
  padding: var(--stack-xl) var(--stack-lg);
  display: flex;
  flex-direction: column;
  gap: var(--stack-lg);
  align-items: flex-start;
}

.cta-band h2 {
  color: #fff;
  font-size: 28px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
  margin-top: var(--stack-sm);
}

.cta-band .btn-secondary {
  margin-top: var(--stack-sm);
}

@media (min-width: 768px) {
  .cta-band {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--primary-container);
  color: rgba(255, 255, 255, 0.85);
  margin-top: var(--stack-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--stack-lg);
  padding: var(--stack-xl) 0;
}

.footer-brand .brand {
  color: #fff;
}

.footer-brand .brand .brand-sub {
  color: rgba(255, 255, 255, 0.6);
}

.footer-brand p {
  margin-top: var(--stack-md);
  max-width: 380px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--stack-lg);
}

.footer-col h4 {
  color: var(--secondary-fixed-dim);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--stack-sm);
}

.footer-col a,
.footer-col span {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  padding: 4px 0;
}

.footer-col a:hover {
  color: var(--secondary-fixed-dim);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: var(--stack-md) 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr;
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* =========================================================
   Reveal on scroll
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Page hero (about / projects / detail — non-home)
   ========================================================= */
.page-hero {
  background: var(--surface-container-low);
  border-bottom: 1px solid var(--outline-variant);
}

.page-hero .container {
  padding-top: var(--stack-xl);
  padding-bottom: var(--stack-lg);
}

.page-hero h1 {
  font-size: 30px;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .page-hero h1 {
    font-size: 40px;
  }
}

.page-hero p {
  margin-top: var(--stack-sm);
  color: var(--on-surface-variant);
  font-size: 16px;
  max-width: 640px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--outline);
  margin-bottom: var(--stack-sm);
}

.breadcrumb a {
  color: var(--on-surface-variant);
  font-weight: 600;
}

.breadcrumb a:hover {
  color: var(--secondary);
}

/* =========================================================
   Detail page
   ========================================================= */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--stack-xl);
}

.detail-sidebar {
  order: 2;
}

.detail-main {
  order: 1;
  display: flex;
  flex-direction: column;
  gap: var(--stack-lg);
}

@media (min-width: 960px) {
  .detail-layout {
    grid-template-columns: 2fr 1fr;
  }
  .detail-sidebar {
    order: 2;
  }
  .detail-main {
    order: 1;
  }
}

.meta-card {
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  padding: var(--stack-lg);
  position: sticky;
  top: 88px;
}

.meta-card h3 {
  font-size: 17px;
  padding-bottom: var(--stack-md);
  border-bottom: 1px solid var(--outline-variant);
  margin-bottom: var(--stack-md);
}

.meta-row {
  margin-bottom: var(--stack-md);
}

.meta-row:last-child {
  margin-bottom: 0;
}

.meta-row .meta-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  margin-bottom: 4px;
}

.meta-row .meta-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
}

.prose h2 {
  font-size: 22px;
  margin-bottom: var(--stack-sm);
}

.prose p {
  color: var(--on-surface-variant);
  font-size: 15.5px;
  line-height: 1.75;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--stack-sm);
  margin-top: var(--stack-sm);
}

.feature-item {
  display: flex;
  gap: 10px;
  padding: 14px;
  background: var(--surface-container-low);
  border-radius: var(--radius-md);
}

.feature-item .material-symbols-outlined {
  color: var(--secondary);
  flex-shrink: 0;
}

.feature-item span.feature-text {
  font-size: 14px;
  color: var(--on-surface-variant);
}

@media (min-width: 640px) {
  .feature-list {
    grid-template-columns: 1fr 1fr;
  }
}

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

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.next-project {
  border-top: 1px solid var(--outline-variant);
  padding: var(--stack-lg) 0;
  display: flex;
  flex-direction: column;
  gap: var(--stack-md);
}

@media (min-width: 768px) {
  .next-project {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.next-project .np-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--secondary);
}

.next-project .np-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.next-project a:hover .np-arrow {
  background: var(--primary);
  color: #fff;
}

/* =========================================================
   Timeline (about page)
   ========================================================= */
.timeline {
  display: flex;
  flex-direction: column;
  gap: var(--stack-md);
}

.timeline-item {
  display: flex;
  gap: var(--stack-md);
}

.timeline-item .tl-dot {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--secondary);
  margin-top: 6px;
  position: relative;
}

.timeline-item:not(:last-child) .tl-dot::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 5px;
  width: 2px;
  height: calc(100% + 24px);
  background: var(--outline-variant);
}

.timeline-item .tl-year {
  font-size: 13px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 2px;
}

.timeline-item .tl-title {
  font-size: 15.5px;
  font-weight: 700;
  margin-bottom: 2px;
}

.timeline-item .tl-desc {
  font-size: 14px;
  color: var(--on-surface-variant);
}

/* =========================================================
   Value / philosophy cards
   ========================================================= */
.value-card {
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  padding: var(--stack-lg);
}

.value-card .material-symbols-outlined {
  color: var(--secondary);
  font-size: 30px;
  margin-bottom: var(--stack-sm);
}

.value-card h4 {
  font-size: 17px;
  margin-bottom: 6px;
}

.value-card p {
  font-size: 14px;
  color: var(--on-surface-variant);
  line-height: 1.6;
}

/* =========================================================
   Profile card (developer)
   ========================================================= */
.profile-card {
  display: flex;
  flex-direction: column;
  gap: var(--stack-lg);
  background: var(--surface-container-lowest);
  border-radius: var(--radius-xl);
  border: 1px solid var(--outline-variant);
  padding: var(--stack-lg);
}

@media (min-width: 768px) {
  .profile-card {
    flex-direction: row;
    align-items: center;
  }
}

.profile-card .profile-avatar {
  width: 100%;
  max-width: 220px;
}

.profile-card .profile-info {
  flex: 1;
}

.profile-info .profile-name {
  font-size: 24px;
}

.profile-info .profile-role {
  color: var(--secondary);
  font-weight: 700;
  font-size: 14px;
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.profile-info p.profile-desc {
  margin-top: var(--stack-sm);
  color: var(--on-surface-variant);
  font-size: 15px;
  line-height: 1.7;
}

.skill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--stack-md);
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-container-high);
  color: var(--on-surface);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.skill-chip .material-symbols-outlined {
  font-size: 16px;
  color: var(--secondary);
}

/* =========================================================
   Back to top
   ========================================================= */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-container);
  color: #fff;
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 40;
}

.back-to-top.show {
  display: flex;
}

/* utility */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
