/* =============================================================================
   Portfolio Theme — style.css
   SynaptikCMS — vibrant portfolio theme for artists and creatives
   ============================================================================= */
:root {
  /* Core palette */
  --color-bg: #f5f3ee;
  --color-bg-2: #eeeae0;
  --color-surface: #ffffff;
  --color-text: #1a1814;
  --color-muted: #A8A9A7;
  --color-border: #ddd9d0;
  /* Accent palette — used on bento cards */
  --coral: #ff6b47;
  --coral-light: #fff0ec;
  --violet: #7c4dff;
  --violet-light: #f0ebff;
  --teal: #00b9a4;
  --teal-light: #e0faf7;
  --amber: #f5a623;
  --amber-light: #fff8e8;
  --rose: #e84393;
  --rose-light: #fde8f4;
  --sky: #0099e6;
  --sky-light: #e0f3ff;
  /* Typography */
  --font-display: 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-size-base: 17px;
  /* Layout */
  --max-width: 1280px;
  --content-width: 860px;
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 0.18s;
  --duration-normal: 0.32s;
  --duration-slow: 0.55s;
  /* Effects */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --space-sm: 10px;
  --text-main: #fff;
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .08), 0 1px 4px rgba(0, 0, 0, .06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .1);
  /* Header */
  --header-h: 68px;
  /* Search */
  --search-overlay-bg: #f5f3ee;
  --search-card-bg: #eeeae0;
  --search-card-bg-hover: #ffffff;
  --search-accent: var(--coral);
  --search-accent-dark: #d94e2a;
  --search-accent-light: #ff8c6f;
  --search-section-heading: #6b6660;
  --search-text: #1a1814;
}
/* ── Reset & Base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); font-size: var(--font-size-base); color: var(--color-text); background-color: var(--color-bg); line-height: 1.65; min-height: 100vh; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
/* ── Site Wrapper ──────────────────────────────────────────────────────────── */
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1; padding-top: var(--header-h); }
.admin-edit-link .button { padding: 10px; background-color: var(--coral); color: var(--text-main); border: none; border-radius: 8px; cursor: pointer; font-size: 1em; transition: background-color var(--transition-fast); }
.admin-edit-link { margin-bottom: 30px; text-align: center; }
.admin-edit-link .button:hover { background-color: var(--rose); }
/* ── Header ────────────────────────────────────────────────────────────────── */
.site-header { position: fixed; top: var(--snk-adminbar-height, 0px); left: 0; right: 0; z-index: 100; height: var(--header-h); background: rgba(245, 243, 238, 0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--color-border); transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal); }
.site-header.header-hidden { transform: translateY(-100%); box-shadow: none; }
.header-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 28px; height: 100%; display: flex; align-items: center; gap: 24px; }
.header-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; white-space: nowrap; }
.brand-logo img { max-width: 30px; }
/* ── Navigation ────────────────────────────────────────────────────────────── */
.site-nav { flex: 1; }
.site-nav ul { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav ul li a { display: block; padding: 6px 14px; font-size: 0.875rem; font-weight: 500; border-radius: var(--radius-sm); transition: background var(--duration-fast), color var(--duration-fast); }
.site-nav ul li a:hover { background: var(--color-bg-2); color: var(--coral); }
/* ── Submenu ────────────────────────────────────────────────────────────────── */
.site-nav li.has-submenu { position: relative; }
.site-nav li.has-submenu::after { content: ''; position: absolute; top: 100%; left: 0; width: 100%; height: 12px; }
.site-nav li.has-submenu>ul { display: flex; flex-direction: column; position: absolute; top: calc(100% + 12px); left: 0; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 6px; min-width: 200px; width: max-content; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity var(--duration-fast), transform var(--duration-fast), visibility 0s var(--duration-fast); pointer-events: none; }
.site-nav li.has-submenu:hover>ul, .site-nav li.has-submenu.mobile-expanded>ul { opacity: 1; visibility: visible; transform: translateY(0); transition: opacity var(--duration-fast), transform var(--duration-fast), visibility 0s; pointer-events: all; }
.site-nav li.has-submenu>ul>li { width: 100%; }
.site-nav li.has-submenu>ul>li>a { display: block; width: 100%; padding: 9px 14px; text-align: left; border-radius: var(--radius-sm); font-size: 0.875rem; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header-actions .search-toggle-btn, .header-actions #search-toggle { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: none; background: transparent; cursor: pointer; border-radius: var(--radius-sm); color: var(--color-text); transition: background var(--duration-fast); }
.header-actions .search-toggle-btn:hover, .header-actions #search-toggle:hover { background: var(--color-bg-2); }
.search-icon { list-style-type: none; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; border-radius: var(--radius-sm); }
.nav-toggle-bar { display: block; width: 22px; height: 2px; background: var(--color-text); border-radius: 2px; transition: transform var(--duration-fast), opacity var(--duration-fast); }
/* ── Hero ───────────────────────────────────────────────────────────────────── */
.hero { overflow: hidden; background: var(--color-bg); padding: 80px 28px 0; }
.hero-inner { max-width: var(--max-width); margin: 0 auto; }
.hero-text { padding-bottom: 60px; }
.hero-eyebrow { font-family: var(--font-display); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--coral); margin-bottom: 20px; }
.hero-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 4vw, 5rem); line-height: 0.95; letter-spacing: -0.03em; margin-bottom: 24px; }
.hero-desc { font-size: 1.1rem; color: var(--color-muted); max-width: 520px; line-height: 1.6; margin-bottom: 36px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-marquee { overflow: hidden; border-top: 1px solid var(--color-border); padding: 18px 0; mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.marquee-track { display: inline-flex; gap: 28px; white-space: nowrap; animation: marquee 22s linear infinite; font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: 0.02em; color: var(--color-muted); }
.marquee-track span:nth-child(even) { color: var(--coral); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn { display: none; align-items: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius-lg); font-family: var(--font-display); font-weight: 700; font-size: 0.875rem; letter-spacing: 0.01em; cursor: pointer; border: none; transition: transform var(--duration-fast) var(--ease-bounce), box-shadow var(--duration-fast), background var(--duration-fast); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 4px 14px rgba(255, 107, 71, 0.35); }
.btn-primary:hover { background: #e05a38; box-shadow: 0 6px 20px rgba(255, 107, 71, 0.45); }
.btn-ghost { background: transparent; color: var(--color-text); border: 1.5px solid var(--color-border); }
.btn-ghost:hover { background: var(--color-bg-2); border-color: var(--color-text); }
/* ── Section Layout ────────────────────────────────────────────────────────── */
.section-projects, .section-articles, .list-section { max-width: var(--max-width); margin: 0 auto; padding: 72px 28px; }
.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 40px; gap: 16px; }
.section-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.4rem); letter-spacing: -0.03em; line-height: 1; }
.section-more { font-size: 0.875rem; font-weight: 500; color: var(--color-muted); white-space: nowrap; transition: color var(--duration-fast); }
.section-more:hover { color: var(--coral); }
/* ── Columns ────────────────────────────────────────────────────────────── */
.content-columns { display: flex; flex-wrap: wrap; gap: 20px; margin: 1em 0; width: 100%; box-sizing: border-box; }
.column { padding: 15px; background-color: var(--amber-light); border-radius: 6px; box-sizing: border-box; min-height: 60px; transition: flex-basis 0.3s ease; }
/* Default (large screens): 4 columns */
.columns-4 .column { flex: 0 0 calc(25% - 15px); }
.columns-3 .column { flex: 0 0 calc(33.333% - 14px); }
.columns-2 .column { flex: 0 0 calc(50% - 10px); }
/* ── Bento Grid ────────────────────────────────────────────────────────────── */
.bento-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 200px; gap: 14px; }
.bento-sm { grid-column: span 4; grid-row: span 2; }
.bento-md { grid-column: span 6; grid-row: span 2; }
.bento-lg { grid-column: span 8; grid-row: span 3; }
.bento-card { position: relative; border-radius: var(--radius-xl); overflow: hidden; cursor: pointer; background: var(--color-surface); border: 1px solid var(--color-border); display: flex; flex-direction: column; transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal); will-change: transform; isolation: isolate; transform: translateZ(0); }
.bento-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.bento-card.accent-coral { --card-accent: var(--coral); --card-light: var(--coral-light); }
.bento-card.accent-violet { --card-accent: var(--violet); --card-light: var(--violet-light); }
.bento-card.accent-teal { --card-accent: var(--teal); --card-light: var(--teal-light); }
.bento-card.accent-amber { --card-accent: var(--amber); --card-light: var(--amber-light); }
.bento-card.accent-rose { --card-accent: var(--rose); --card-light: var(--rose-light); }
.bento-card.accent-sky { --card-accent: var(--sky); --card-light: var(--sky-light); }
.bento-card:not(:has(.bento-img)) { background: var(--card-light, var(--color-bg-2)); }
.bento-img { position: absolute; inset: 0; z-index: 0; }
.bento-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-slow) var(--ease-out); }
.bento-card:hover .bento-img img { transform: scale(1.05); }
.bento-card:has(.bento-img) .bento-body { background: linear-gradient(to top, rgba(0, 0, 0, .75) 0%, rgba(0, 0, 0, .2) 60%, transparent 100%); color: #fff; }
.bento-body { position: relative; z-index: 1; margin-top: auto; padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.bento-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.bento-cat { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--card-accent, var(--coral)); background: var(--card-light, var(--coral-light)); padding: 3px 8px; border-radius: 999px; }
.bento-card:has(.bento-img) .bento-cat { color: #fff; background: rgba(255, 255, 255, .2); }
.bento-date { font-size: 0.75rem; opacity: 0.7; }
.bento-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1rem, 2vw, 1.35rem); line-height: 1.2; letter-spacing: -0.02em; }
.bento-title a { transition: opacity var(--duration-fast); }
.bento-title a:hover { opacity: .75; }
.bento-desc { font-size: 0.85rem; opacity: 0.8; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bento-link { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--card-accent, var(--coral)); color: #fff; margin-top: 4px; align-self: flex-start; transition: transform var(--duration-fast) var(--ease-bounce), background var(--duration-fast); flex-shrink: 0; }
.bento-link svg { width: 18px; height: 18px; }
.bento-link:hover { transform: scale(1.12); }
.bento-card:has(.bento-img) .bento-link { background: rgba(255, 255, 255, .25); backdrop-filter: blur(4px); }
/* ── Article Scroll Row ─────────────────────────────────────────────────────── */
.article-scroll-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.scroll-card { background: var(--color-surface); border-radius: var(--radius-lg); border: 1px solid var(--color-border); overflow: hidden; display: flex; flex-direction: column; transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal); }
.scroll-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.scroll-card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--color-bg-2); }
.scroll-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-slow) var(--ease-out); }
.scroll-card:hover .scroll-card-img img { transform: scale(1.04); }
.scroll-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.scroll-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.scroll-card-body h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.25; letter-spacing: -0.02em; }
.scroll-card-body h3 a { transition: color var(--duration-fast); }
.scroll-card-body h3 a:hover { color: var(--coral); }
.scroll-card-body p { font-size: 0.875rem; color: var(--color-muted); line-height: 1.55; flex: 1; }
.card-date { font-size: 0.78rem; color: var(--color-muted); }
.read-more-link { font-size: 0.85rem; font-weight: 600; color: var(--coral); transition: gap var(--duration-fast); display: inline-flex; align-items: center; gap: 4px; margin-top: auto; }
.read-more-link:hover { gap: 8px; }
/* ── Tag Pills ──────────────────────────────────────────────────────────────── */
.tag-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; background: var(--color-bg-2); color: var(--color-muted); border: 1px solid var(--color-border); transition: background var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast); }
.tag-pill:hover { background: var(--coral-light); color: var(--coral); border-color: transparent; }
/* ── Single Content ─────────────────────────────────────────────────────────── */
.single-article, .single-project, .single-page { animation: fadeUp .5s var(--ease-out) both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.single-hero, .project-hero { position: relative; background: var(--color-bg-2); overflow: hidden; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; }
.single-cover, .project-cover { position: absolute; inset: 0; }
.single-cover img, .project-cover img { width: 100%; height: 100%; object-fit: cover; }
.single-cover-overlay, .project-cover-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 10, 5, .7) 30%, rgba(15, 10, 5, .15) 100%); }
.single-hero-text, .project-hero-text { position: relative; z-index: 1; max-width: var(--max-width); margin: 0 auto; width: 100%; padding: 60px 28px 48px; }
.single-hero:has(.single-cover) .single-hero-text, .project-hero:has(.project-cover) .project-hero-text { color: #fff; }
.single-category { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral); margin-bottom: 14px; transition: opacity var(--duration-fast); }
.single-hero:has(.single-cover) .single-category { color: rgba(255, 255, 255, .8); background: rgba(255, 107, 71, .35); padding: 3px 10px; border-radius: 999px; }
.single-hero-text h1, .project-hero-text h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 5vw, 3.6rem); letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 18px; }
.single-byline { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; font-size: 0.85rem; color: var(--color-muted); }
.single-hero:has(.single-cover) .single-byline { color: rgba(255, 255, 255, .75); }
.single-tags { display: flex; gap: 6px; flex-wrap: wrap; }
/* ── Single layout (articles/pages) ────────────────────────────────────────── */
.single-layout { display: grid; grid-template-columns: 1fr min(var(--content-width), 100%) 1fr; max-width: var(--max-width); margin: 0 auto; padding: 60px 28px; gap: 48px; }
.single-layout>* { grid-column: 2; }
/* ── Project layout (with optional sidebar) ─────────────────────────────────── */
.project-layout { display: grid; grid-template-columns: 1fr 260px; max-width: var(--max-width); margin: 0 auto; width: 100%; padding: 60px 28px; gap: 48px; }
.project-content { min-width: 0; }
/* Sidebar */
.project-sidebar { position: sticky; top: calc(var(--header-h) + 24px); height: fit-content; display: flex; flex-direction: column; gap: 0; }
/* ── Custom Fields (sidebar) ────────────────────────────────────────────────── */
.sidebar-block { margin-bottom: 24px; }
.sidebar-block--fields { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.custom-fields-block { width: 100%; }
.custom-fields { display: flex; flex-direction: column; gap: 0; }
.cf-row { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border-bottom: 1px solid var(--color-border); transition: background var(--duration-fast); }
.cf-row:last-child { border-bottom: none; }
.cf-row:hover { background: var(--color-bg); }
.cf-row dt { font-size: 0.85rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text); }
.cf-row dd { font-family: var(--font-display); font-weight: 200; font-size: 0.85rem; color: var(--color-muted); word-break: break-word; line-height: 1.35; margin: 0; }
.cf-row dd a { color: var(--coral); text-decoration: underline; text-underline-offset: 2px; word-break: break-all; font-family: var(--font-body); font-weight: 400; font-size: 0.85rem; }
.cf-row dd a:hover { opacity: 0.75; }
.sidebar-block--meta { display: flex; flex-direction: column; gap: 16px; padding: 18px; background: var(--color-bg-2); border-radius: var(--radius-lg); border: 1px solid var(--color-border); }
.sidebar-meta-tags { display: flex; flex-direction: column; gap: 10px; }
.sidebar-label { font-family: var(--font-display); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 10px; }
.project-tagline { font-size: 1.1rem; color: var(--color-muted); font-style: italic; margin-top: 6px; line-height: 1.5; }
.single-hero:has(.single-cover) .project-tagline { color: rgba(255, 255, 255, .75); }
/* ── Related Items ──────────────────────────────────────────────────────────── */
.related-items, .related-content { max-width: var(--max-width); margin: 0 auto; padding: 0 28px 72px; width: 100%; }
.related-items h3, .related-content h3, .related-items-title { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.03em; margin-bottom: 28px; padding-top: 48px; border-top: 1px solid var(--color-border); }
.related-items-list { display: flex; flex-wrap: wrap; gap: 12px; }
.related-item { list-style: none; flex: 1 1 180px; }
.related-item a { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px; height: 100%; min-height: 110px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); font-weight: 600; font-size: 0.9rem; line-height: 1.3; transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal), border-color var(--duration-fast); }
.related-item a:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--item-accent, var(--coral)); }
.related-item-type { font-family: var(--font-display); font-size: 0.65rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--item-accent, var(--coral)); display: inline-flex; align-items: center; gap: 5px; }
.related-item-type::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.related-item--article { --item-accent: var(--violet); }
.related-item--project { --item-accent: var(--coral); }
.related-item--page { --item-accent: var(--teal); }
/* ── Prose / Rich Content ───────────────────────────────────────────────────── */
.prose { font-size: 1rem; line-height: 1.75; color: var(--color-text); max-width: var(--content-width); }
.prose--full { max-width: 100%; }
.prose h2, .prose h3, .prose h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 2.2em 0 .8em; }
.prose h2 { font-size: 1.75rem; }
.prose h3 { font-size: 1.35rem; }
.prose h4 { font-size: 1.1rem; }
.prose p { margin-bottom: 1.4em; }
.prose a { color: var(--coral); text-decoration: underline; text-underline-offset: 3px; transition: opacity var(--duration-fast); }
.prose a:hover { opacity: .75; }
.prose ul, .prose ol { list-style: revert; padding-left: 1.6em; margin-bottom: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.6em 0; padding: 1em 1.4em; border-left: 4px solid var(--coral); background: var(--coral-light); border-radius: 0 var(--radius-md) var(--radius-md) 0; font-style: italic; color: var(--color-muted); }
.prose pre { background: var(--color-text); color: var(--color-bg); border-radius: var(--radius-md); padding: 1.4em; overflow-x: auto; font-size: 0.875rem; margin-bottom: 1.4em; }
.prose code { font-size: 0.875em; background: var(--color-bg-2); padding: .15em .4em; border-radius: 4px; }
.prose pre code { background: none; padding: 0; }
/* .prose img { border-radius: var(--radius-md); margin: 1.6em 0; } */
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.4em; font-size: 0.9rem; }
.prose th { font-family: var(--font-display); font-weight: 700; text-align: left; padding: 10px 14px; border-bottom: 2px solid var(--color-border); }
.prose td { padding: 10px 14px; border-bottom: 1px solid var(--color-border); }
/* ── List Page ──────────────────────────────────────────────────────────────── */
.list-page { max-width: var(--max-width); margin: 0 auto; padding: 72px 28px; }
.list-header { display: flex; align-items: center; gap: 16px; margin-bottom: 52px; }
.list-icon { font-size: 2rem; color: var(--coral); line-height: 1; }
.list-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 6vw, 4rem); letter-spacing: -0.04em; line-height: 1; }
.list-section { padding: 0 0 60px; }
.list-section-title { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; margin-bottom: 24px; color: var(--color-muted); padding-bottom: 12px; border-bottom: 1px solid var(--color-border); }
.list-empty { color: var(--color-muted); font-style: italic; padding: 32px 0; }
/* ── 404 ────────────────────────────────────────────────────────────────────── */
.error-404 { text-align: center; padding: 100px 28px; max-width: 600px; margin: 0 auto; }
.error-number { font-family: var(--font-display); font-weight: 800; font-size: clamp(6rem, 20vw, 12rem); line-height: 1; color: var(--color-bg-2); margin-bottom: 16px; letter-spacing: -0.05em; }
.error-404 h1 { font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; margin-bottom: 12px; }
.error-404 p { color: var(--color-muted); margin-bottom: 32px; }
/* ── Footer ─────────────────────────────────────────────────────────────────── */
.site-footer { background: var(--color-bg-2); border-top: 1px solid var(--color-border); padding: 20px 50px; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; font-size: 0.875rem; color: var(--color-muted); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.footer-inner a { color: inherit; transition: color var(--duration-fast); }
.footer-inner a:hover { color: var(--coral); }
/* ── Scroll-reveal Animation ────────────────────────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-animate-in] { opacity: 0; transform: translateY(16px); animation: fadeUp .5s var(--ease-out) .15s both; }
/* ── Shortcode Overrides ────────────────────────────────────────────────────── */
.sc-callout { border-radius: var(--radius-md); border-left: 4px solid var(--coral); background: var(--coral-light); padding: 1em 1.4em; margin: 1.6em 0; }
.sc-callout-body { color: var(--color-muted); }
.sc-callout-info { border-color: var(--sky); background: var(--sky-light); }
.sc-callout-tip { border-color: var(--teal); background: var(--teal-light); }
.sc-callout-warning { border-color: var(--amber); background: var(--amber-light); }
.sc-callout-danger { border-color: var(--rose); background: var(--rose-light); }
/* ── [toc] ───────────────────────────────────────────────────── */
.sc-toc { display: inline-block; min-width: 220px; max-width: 100%; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 18px 22px; margin: 1.6em 0; box-shadow: var(--shadow-sm); }
.sc-toc::before { display: block; font-family: var(--font-display); font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--color-muted); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--color-border); }
.sc-toc ul, .prose .sc-toc ul { list-style: none !important; padding-left: 0 !important; margin: 0 !important; display: flex !important; flex-direction: column; gap: 4px; counter-reset: toc-counter; }
.sc-toc li, .prose .sc-toc li { list-style: none !important; margin-bottom: 0 !important; }
.sc-toc li::marker, .prose .sc-toc li::marker { content: none !important; }
.sc-toc li:not(.sc-toc-sub) { counter-increment: toc-counter; }
.sc-toc li:not(.sc-toc-sub) > a::before { content: counter(toc-counter) '. '; color: var(--coral); font-weight: 700; font-size: 0.8rem; margin-right: 2px; }
.sc-toc li a { font-size: 0.875rem; color: var(--color-text); text-decoration: none; transition: color var(--duration-fast); }
.sc-toc li a:hover { color: var(--coral); }
.sc-toc .sc-toc-sub { padding-left: 14px; position: relative; }
.sc-toc .sc-toc-sub::before { content: ''; position: absolute; left: 5px; top: 50%; transform: translateY(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--color-border); }
.sc-toc .sc-toc-sub a { font-size: 0.82rem; color: var(--color-muted); }
.sc-toc .sc-toc-sub a:hover { color: var(--coral); }
/* ── Shortcode: CTA Buttons ──────────────────────────────────────────────── */
.sc-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 26px; border-radius: var(--radius-lg); font-family: var(--font-display); font-weight: 700; font-size: 0.875rem; letter-spacing: 0.01em; text-decoration: none; cursor: pointer; border: none; margin: 4px 0; transition: transform var(--duration-fast) var(--ease-bounce), background var(--duration-fast), color var(--duration-fast), box-shadow var(--duration-fast); }
.sc-btn:hover { transform: translateY(-2px); }
.sc-btn:active { transform: translateY(0) scale(0.98); }
.sc-btn-primary { background: var(--coral); color: #fff; box-shadow: 0 4px 14px rgba(255, 107, 71, 0.3); }
.sc-btn-primary:hover { background: #e05a38; box-shadow: 0 6px 20px rgba(255, 107, 71, 0.45); color: #fff; }
.sc-btn-secondary { background: var(--color-text); color: var(--color-bg); box-shadow: none; }
.sc-btn-secondary:hover { background: #2e2b27; color: var(--color-bg); }
.sc-btn-outline { background: transparent; color: var(--color-text); border: 2px solid var(--color-border); }
.sc-btn-outline:hover { border-color: var(--coral); color: var(--coral); background: var(--coral-light); }
.prose .sc-btn, .prose .sc-btn:hover { text-decoration: none; opacity: 1; transition: transform var(--duration-fast) var(--ease-bounce), background var(--duration-fast), color var(--duration-fast), box-shadow var(--duration-fast); }
.prose .sc-btn-primary, .prose .sc-btn-primary:hover { color: #fff; }
.prose .sc-btn-secondary { color: var(--color-bg); }
.prose .sc-btn-secondary:hover { color: var(--color-bg); }
.prose .sc-btn-outline { color: var(--color-text); }
.prose .sc-btn-outline:hover { color: var(--coral); }
/* ── Shortcode: Tabs ─────────────────────────────────────────────────────── */
.tab-group { border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); margin: 1.6em 0; }
.tab-group .tabs { background: var(--color-bg-2); border-radius: var(--radius-lg) var(--radius-lg) 0 0; border-bottom: 1px solid var(--color-border); padding: 0 12px; gap: 4px; }
.tab-group .tab-btn { background: transparent; color: var(--color-muted); font-family: var(--font-display); font-size: 0.875rem; font-weight: 600; padding: 12px 18px; margin-top: 0; border: none; border-bottom: 2px solid transparent; border-radius: 0; opacity: 1; transition: color var(--duration-fast), border-color var(--duration-fast); }
.tab-group .tab-btn:hover { opacity: 1; color: var(--color-text); background: transparent; }
.tab-group .tab-btn.active { color: var(--coral); background: transparent; border-color: var(--coral); border-bottom: 2px solid var(--coral); }
.tab-group>.c-col>.c-body { padding: 20px 24px; background: var(--color-surface); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.c-toggle-bar { margin: 10px 12px 8px; }
.c-toggle-bar button { background: var(--color-bg-2); color: var(--color-muted); border: 1px solid var(--color-border); font-size: 0.75rem; border-radius: var(--radius-sm); padding: 4px 10px; opacity: 1; }
.c-toggle-bar button:hover { background: var(--color-border); color: var(--color-text); opacity: 1; }
/* ── Shortcode: Recent Articles ──────────────────────────────────────────── */
.sc-articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin: 24px 0; }
.sc-articles-grid .article-card { background: var(--color-surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: box-shadow var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out); }
.sc-articles-grid .article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.sc-articles-grid .article-thumbnail img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.sc-articles-grid .article-details { padding: 18px 20px 8px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.sc-articles-grid .article-details h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; line-height: 1.3; margin: 0; }
.sc-articles-grid .article-details h3 a { color: var(--color-text); text-decoration: none; }
.sc-articles-grid .article-details h3 a:hover { color: var(--coral); }
.sc-articles-grid .article-date { font-size: 0.8rem; color: var(--color-muted); }
.sc-articles-grid .article-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-articles-grid .tag-link { font-size: 0.75rem; background: var(--coral-light); color: var(--coral); border-radius: var(--radius-sm); padding: 2px 8px; text-decoration: none; font-weight: 500; transition: background var(--duration-fast); }
.sc-articles-grid .tag-link:hover { background: var(--coral); color: #fff; }
.sc-articles-grid .article-summary { font-size: 0.88rem; color: var(--color-muted); line-height: 1.55; flex: 1; }
.sc-articles-grid .read-more { display: inline-block; margin: 0 20px 18px; font-size: 0.85rem; font-weight: 600; color: var(--coral); text-decoration: none; transition: gap var(--duration-fast); }
.sc-articles-grid .read-more:hover { text-decoration: underline; }
/* ── Shortcode: Recent Projects ──────────────────────────────────────────── */
.sc-projects-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important; grid-auto-rows: auto !important; gap: 24px; margin: 24px 0; }
.sc-projects-grid .project-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--color-bg-2); box-shadow: var(--shadow-sm); transition: box-shadow var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out); grid-column: unset !important; grid-row: unset !important; }
.sc-projects-grid .project-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.sc-projects-grid .project-thumbnail { position: absolute; inset: 0; border-radius: 0; }
.sc-projects-grid .project-thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; transition: transform var(--duration-normal) var(--ease-out); }
.sc-projects-grid .project-card:hover .project-thumbnail img { transform: scale(1.04); }
.sc-projects-grid .project-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26, 24, 20, .82) 40%, transparent 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; gap: 6px; opacity: 0; transition: opacity var(--duration-normal) var(--ease-out); }
.sc-projects-grid .project-card:hover .project-overlay { opacity: 1; }
.sc-projects-grid .project-overlay h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: #fff; margin: 0; }
.sc-projects-grid .project-excerpt { font-size: 0.82rem; color: rgba(255, 255, 255, .75); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sc-projects-grid .view-project { align-self: flex-start; font-size: 0.82rem; font-weight: 600; color: #fff; background: var(--coral); border-radius: var(--radius-sm); padding: 5px 12px; text-decoration: none; margin-top: 4px; transition: background var(--duration-fast); }
.sc-projects-grid .view-project:hover { background: #d94e2a; }
/* No-image variant */
.sc-projects-grid .project-card-no-image { aspect-ratio: unset; min-height: 180px; }
.sc-projects-grid .project-card-no-image .project-overlay { position: static; background: var(--color-surface); opacity: 1; border-radius: var(--radius-lg); height: 100%; }
.sc-projects-grid .project-card-no-image .project-overlay h3 { color: var(--color-text); }
.sc-projects-grid .project-card-no-image .project-excerpt { color: var(--color-muted); }
.sc-projects-grid .project-card-no-image .view-project { color: var(--coral); background: var(--coral-light); }
.sc-projects-grid .project-card-no-image .view-project:hover { background: var(--coral); color: #fff; }
/* ── Articles / Projects grids (shortcode) ──────────────────────────────────── */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.projects-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 200px; gap: 14px; }
/* ── Contact Page ───────────────────────────────────────────────────────────── */
.contact-form-wrap { max-width: 620px; margin: 0 auto; padding: 0 28px 72px; }
/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .bento-lg { grid-column: span 8; }
  .bento-md { grid-column: span 6; }
  .bento-sm { grid-column: span 6; }
  .columns-4 .column { flex: 0 0 calc(33.333% - 14px); }
}
@media (max-width: 900px) {
  :root { --header-h: 60px; }
  .site-nav { position: fixed; top: var(--header-h); left: 0; right: 0; background: rgba(245, 243, 238, 0.97); backdrop-filter: blur(16px); padding: 24px 28px 32px; transform: translateY(-110%); transition: transform var(--duration-normal) var(--ease-out); border-bottom: 1px solid var(--color-border); z-index: 90; }
  .site-nav.is-open { transform: translateY(0); }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 4px; }
  .site-nav ul li { width: 100%; }
  .site-nav ul li a { padding: 10px 14px; font-size: 1rem; }
  .site-nav li.has-submenu::after { display: none; }
  .site-nav li.has-submenu>ul { position: static; opacity: 1; visibility: hidden; box-shadow: none; border: none; max-height: 0; overflow: hidden; transform: none; transition: max-height var(--duration-normal), visibility 0s var(--duration-normal); background: var(--color-bg-2); border-radius: var(--radius-md); padding: 0; width: 100%; }
  .site-nav li.has-submenu.mobile-expanded>ul { visibility: visible; max-height: 400px; transition: max-height var(--duration-normal); padding: 6px; }
  .nav-toggle { display: flex; }
  .bento-grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 180px; }
  .bento-lg { grid-column: span 6; grid-row: span 3; }
  .bento-md { grid-column: span 6; grid-row: span 2; }
  .bento-sm { grid-column: span 6; grid-row: span 2; }
  .project-layout:has(.project-sidebar) { grid-template-columns: 1fr; }
  .project-sidebar { position: static; }
  .columns-4 .column, .columns-3 .column { flex: 0 0 calc(50% - 10px); }
}
@media (max-width: 640px) {
  .hero { padding: 48px 20px 0; }
  .hero-text { padding-bottom: 40px; }
  .section-projects, .section-articles, .list-section, .single-layout { padding: 40px 20px; }
  .project-layout { padding: 40px 20px; }
  .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 12px; }
  .bento-lg, .bento-md, .bento-sm { grid-column: span 1; grid-row: span 1; min-height: 260px; }
  .article-scroll-row { grid-template-columns: 1fr; }
  .related-items, .related-content { padding: 0 20px 48px; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .single-layout { grid-template-columns: 1fr; }
  .content-columns { flex-direction: column; gap: 15px; }
  .columns-4 .column, .columns-3 .column, .columns-2 .column { flex: 0 0 100%; margin-bottom: 10px; }
}