* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Custom Green Text Selection Highlight */
::selection {
  background: #d1e8a8;
  color: #213306;
}

::-moz-selection {
  background: #d1e8a8;
  color: #213306;
}

/* Custom Green Precision Ring Cursor - Universal Hide System */
@media (pointer: fine) {
  html, body, *, *::before, *::after,
  a, a:hover, a:active, a:focus, a:visited,
  button, button:hover, button:active, button:focus,
  input, select, textarea, [role="button"],
  .work-row, .copy-email-btn {
    cursor: none !important;
  }
}

.custom-precision-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border: 2px solid var(--color-accent);
  background-color: transparent;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
              height 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.2s ease, 
              border-color 0.2s ease, 
              opacity 0.15s ease;
  will-change: transform;
}

body.cursor-hover .custom-precision-cursor {
  width: 32px;
  height: 32px;
  border-width: 1.5px;
  border-color: var(--color-accent);
  background-color: var(--color-accent-subtle);
}

body.cursor-active .custom-precision-cursor {
  width: 10px;
  height: 10px;
  border-width: 0;
  background-color: var(--color-accent);
}

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

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

#site-header,
#site-footer {
  width: 100%;
  margin: 0;
  padding: 0;
}

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

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  width: 100%;
}

.site-id {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-id strong {
  color: var(--color-text);
  font-weight: 700;
}

.site-id span {
  color: var(--color-text-muted);
}

.site-nav {
  display: flex;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav a {
  color: var(--color-text-muted);
  transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-accent);
}

/* ---------- Hero ---------- */

.hero {
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--color-border);
}

.hero-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
}

.hero-body-text {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-accent);
}

.hero-paragraph {
  margin: 0 0 10px;
}

.hero-contact-line {
  margin: 0;
}

.hero-link {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-decoration-color: #d4d4d8;
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.hero-link:hover {
  color: var(--color-text);
  text-decoration-color: var(--color-text);
}

/* Copy Email Button & Floating Tooltip */

.copy-email-wrapper {
  position: relative;
  display: inline-block;
}

.copy-email-btn {
  background: transparent;
  border: none;
  padding: 0;
  font-family: var(--font-sans);
  font-size: inherit;
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.copy-email-btn:hover {
  color: var(--color-text);
}

.copy-tooltip {
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #18181b;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.copy-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px;
  border-style: solid;
  border-color: #18181b transparent transparent transparent;
}

.copy-email-wrapper:hover .copy-tooltip,
.copy-tooltip.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.hero-experience {
  flex-shrink: 0;
  min-width: 320px;
}

.hero-experience .section-label {
  margin: 0 0 12px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-text);
  padding-bottom: 3px;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease, gap 0.15s ease;
}

.hero-cta:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  gap: 12px;
}

/* ---------- Journey (experience) ---------- */

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 32px;
}

.journey {
  padding: 40px 0 48px;
}

.journey-layout {
  display: block;
  max-width: 600px;
}

.journey-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.journey-list::before {
  content: "";
  position: absolute;
  left: 71px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--color-border);
}

.journey-list li {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 16px 0;
  position: relative;
}

.journey-year {
  width: 48px;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--color-text-muted);
  text-align: right;
}

.journey-dot {
  position: absolute;
  left: 67px;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-accent);
}

.journey-detail {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-left: 32px;
  font-size: 16px;
}

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

/* ---------- Work (editorial index) ---------- */

.work {
  padding: 40px 0 64px;
}

.work-layout {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 300px);
  gap: 36px;
  align-items: stretch;
}

.work-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
}

.work-row {
  flex: 1;
  display: flex;
  min-height: 100px;
}

.work-row a {
  display: grid;
  grid-template-columns: 36px 1fr 24px;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  width: 100%;
  height: 100%;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  transition: background-color 0.2s ease, padding-left 0.25s ease, border-radius 0.2s ease;
}

.work-row:first-child a {
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

.work-row:last-child a {
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}

.work-row.active a,
.work-row a:hover {
  background: var(--color-accent-light);
  padding-left: 28px;
}

.work-row.active .work-index,
.work-row a:hover .work-index {
  color: var(--color-accent);
}

.work-index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text-muted);
}

.work-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.work-title {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 400;
  margin: 0;
  line-height: 1.25;
  transition: color 0.2s ease;
}

.work-row.active .work-title,
.work-row a:hover .work-title {
  color: var(--color-accent);
}

.work-tags {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.work-arrow {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  color: var(--color-text-muted);
  transition: transform 0.25s ease, color 0.2s ease;
}

.work-row.active .work-arrow,
.work-row a:hover .work-arrow {
  color: var(--color-accent);
  transform: translateX(4px);
}

/* Large Vertical Preview Slider on the Right */

.work-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.work-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.6s ease, transform 0.6s ease;
  background-size: cover;
  background-position: center;
}

.work-slide.active {
  opacity: 1;
  transform: scale(1);
}

.work-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- About Section (Gen Z Editorial) ---------- */

.about {
  padding: 64px 0 80px;
  border-top: 1px solid var(--color-border);
}

.about-header {
  margin-bottom: 40px;
}

.about-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 20px;
  color: var(--color-text);
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  padding: 6px 14px;
  border-radius: 100px;
  transition: all 0.2s ease;
}

.about-pill:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 56px;
}

.about-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.about-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(94, 141, 14, 0.08);
}

.about-card-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-accent);
  display: block;
  margin-bottom: 12px;
}

.about-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  margin: 0 0 10px;
  color: var(--color-text);
}

.about-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0;
}

.about-card p strong {
  color: var(--color-text);
}

/* Quick Fire Q&A Accordion */

.about-qa {
  border-top: 1px solid var(--color-border);
  padding-top: 36px;
}

.qa-item {
  border-bottom: 1px solid var(--color-border);
}

.qa-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  transition: color 0.15s ease;
}

.qa-question:hover {
  color: var(--color-accent);
}

.qa-arrow {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--color-accent);
  transition: transform 0.25s ease;
}

.qa-item.open .qa-arrow {
  transform: rotate(90deg);
}

.qa-answer {
  display: none;
  padding-bottom: 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.qa-item.open .qa-answer {
  display: block;
}

/* ---------- Footer Bar ---------- */

.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 24px 0;
  margin-top: 60px;
  width: 100%;
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-muted);
}

.footer-copy {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-divider {
  color: var(--color-border);
}

.footer-email-link {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.footer-email-link:hover {
  color: var(--color-accent);
}

.footer-socials {
  display: flex;
  gap: 20px;
}

.footer-socials a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.15s ease;
}

.footer-socials a:hover {
  color: var(--color-accent);
}

/* ============================================================
   Project detail page
   ============================================================ */

.project-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  gap: 48px;
  align-items: start;
  padding: 48px 0 120px;
}

.project-toc {
  position: sticky;
  top: 96px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.back-link:hover {
  color: var(--color-accent);
}

.project-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-toc a {
  color: var(--color-text-muted);
  font-size: 15px;
  transition: color 0.15s ease;
}

.project-toc a:hover,
.project-toc a.active {
  color: var(--color-text);
}

.project-toc a.active {
  color: var(--color-accent);
}

.project-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 12px;
}

.project-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--size-h1);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
}

.project-hero {
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-surface);
  margin-bottom: 40px;
}

.project-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-hero span {
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 32px;
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 48px;
}

.project-meta dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.project-meta dd {
  margin: 0;
  font-size: 15px;
}

.project-section {
  scroll-margin-top: 96px;
  padding-bottom: 64px;
}

.project-section h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--size-h2);
  line-height: 1.25;
  margin: 0 0 20px;
  max-width: 24ch;
}

.project-section p {
  font-size: 16px;
  color: var(--color-text);
  max-width: 65ch;
  margin: 0 0 16px;
}

.project-section img {
  border-radius: var(--radius);
  margin-top: 24px;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.insight-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 20px;
}

.insight-card h3 {
  font-size: 15px;
  margin: 0 0 8px;
}

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

/* ---------- Gmail-Style Email Carousel ---------- */

.email-carousel-container {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 32px 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  position: relative;
}

.email-carousel {
  position: relative;
  min-height: 200px;
}

.email-card {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  inset: 0;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  display: flex;
  flex-direction: column;
}

.email-card.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.gmail-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.gmail-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.gmail-meta {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.gmail-meta-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.gmail-sender-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  color: var(--color-text);
}

.gmail-sender-email {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 400;
}

.gmail-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-muted);
}

.gmail-to {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.gmail-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--color-surface);
  color: var(--color-accent);
  padding: 3px 8px;
  border-radius: 4px;
  margin-top: 6px;
  align-self: flex-start;
  font-weight: 600;
}

.gmail-body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text);
  margin: 0;
  padding: 4px 0;
  white-space: pre-line;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.carousel-btn {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
}

.carousel-btn:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dots .dot.active {
  background: var(--color-accent);
  transform: scale(1.25);
}

/* ---------- Interactive Website Feature Previews ---------- */

.interactive-preview-widget {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 32px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.preview-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: 4px;
}

.preview-title-group h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin: 0;
  color: var(--color-text);
}

.preview-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab-btn {
  background: #ffffff;
  border: 1px solid var(--color-border);
  padding: 8px 14px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover, .tab-btn.active {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeInPreview 0.3s ease;
}

@keyframes fadeInPreview {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Geolocation Mock */
.preview-card-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 1.4fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .preview-card-grid { grid-template-columns: 1fr; }
}

.mock-modal {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mock-modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.mock-icon-heart {
  font-size: 20px;
}

.mock-modal-header h4 {
  font-size: 15px;
  margin: 0;
  color: var(--color-text);
}

.mock-modal p {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0 0 16px;
  line-height: 1.5;
}

.mock-btn.primary {
  background: #eef7ee;
  color: #218838;
  border: 1px solid #c3e6c3;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.mock-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-result-item {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 14px;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.res-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.res-tag.red { background: #fde8e8; color: #c82333; }
.res-tag.green { background: #eafaf1; color: #218838; }

.res-dist {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-muted);
}

.mock-result-item strong {
  display: block;
  font-size: 14px;
  color: var(--color-text);
  margin-bottom: 4px;
}

.res-meta {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* Category Filter Mock */
.filter-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.filter-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  margin-right: 4px;
}

.category-chip {
  background: #ffffff;
  border: 1px solid var(--color-border);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-chip.active {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
}

.mock-filter-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mock-resource-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.25s ease;
}

.mock-resource-card.hidden {
  display: none;
}

.res-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.badge-dot.red { background: #d9534f; }
.badge-dot.green { background: #5cb85c; }
.badge-dot.yellow { background: #f0ad4e; }
.badge-dot.blue { background: #5bc0de; }

.res-left strong {
  display: block;
  font-size: 14px;
  color: var(--color-text);
}

.res-left span {
  font-size: 12px;
  color: var(--color-text-muted);
}

.res-status {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-surface);
  padding: 4px 8px;
  border-radius: 4px;
}

/* Action Bar Mock */
.mock-subbar {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px;
}

.subbar-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.sub-btn {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
}

.sub-btn.blue { background: #007bff; color: #ffffff; }
.sub-btn.red { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }
.sub-btn.light { background: #e3f2fd; color: #1565c0; border: 1px solid #bbdefb; }

.subbar-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ---------- Live Map Demo Video ---------- */

.project-demo-video {
  margin: 28px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #000000;
  position: relative;
}

.project-demo-video video {
  width: 100%;
  height: auto;
  display: block;
  max-height: 520px;
  object-fit: cover;
}

.video-caption {
  display: block;
  font-size: 13px;
  color: var(--color-text-muted);
  padding: 10px 14px;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  font-style: italic;
}

/* ---------- Responsive YouTube Video Embed ---------- */

.video-responsive {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--radius);
  margin: 24px 0;
  border: 1px solid var(--color-border);
  background: #000000;
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .hero-side {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hero-experience {
    min-width: 100%;
  }

  .journey-list::before {
    left: 47px;
  }

  .journey-dot {
    left: 43px;
  }

  .work-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .work-slider {
    min-height: 240px;
    order: -1;
  }

  .project-layout {
    grid-template-columns: 1fr;
  }

  .project-toc {
    position: static;
    margin-bottom: 32px;
  }

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

  .insight-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    gap: 16px;
  }
}

/* ---------- Mobile Responsive Optimization ---------- */

@media (max-width: 640px) {
  .wrap {
    padding: 0 20px;
  }

  .site-header .wrap {
    height: auto;
    padding: 14px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .site-id {
    font-size: 11px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .about {
    padding: 40px 0 56px;
  }

  .about-headline {
    font-size: 1.6rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer-socials {
    width: 100%;
    justify-content: flex-start;
    gap: 16px;
  }
}
