/* ==========================================================================
   Thai Cong Lap Portfolio - Production Stylesheet
   Modern Obsidian & Glassmorphism Theme, High-Tech Telemetry & Animations,
   100% Responsive Layout, and Executive 1-Page Print CV
   ========================================================================== */

:root {
  color-scheme: dark;
  --bg: #090b10;
  --panel: rgba(17, 21, 30, 0.85);
  --panel-elevated: rgba(23, 29, 42, 0.9);
  --panel-subtle: #0d1017;
  --glass-bg: rgba(18, 22, 32, 0.78);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 158, 105, 0.45);
  --line: #1c2230;
  --line-strong: #2a3348;
  --ink: #f8fafc;
  --muted: #94a3b8;
  --faint: #64748b;
  --accent: #ff9e69;
  --accent-hover: #ffb58a;
  --accent-subtle: rgba(255, 158, 105, 0.12);
  --accent-border: rgba(255, 158, 105, 0.35);
  --accent-glow: 0 0 20px rgba(255, 158, 105, 0.28);
  --cyan: #38bdf8;
  --cyan-glow: 0 0 16px rgba(56, 189, 248, 0.35);
  --emerald: #10b981;
  --emerald-glow: 0 0 14px rgba(16, 185, 129, 0.45);
  --mono: "SF Mono", "Fira Code", Monaco, Consolas, "Liberation Mono", monospace;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 14% 12%, rgba(255, 158, 105, 0.09) 0%, transparent 40%),
    radial-gradient(circle at 86% 20%, rgba(56, 189, 248, 0.075) 0%, transparent 45%),
    radial-gradient(circle at 50% 55%, rgba(255, 158, 105, 0.05) 0%, transparent 55%),
    radial-gradient(circle at 10% 84%, rgba(56, 189, 248, 0.065) 0%, transparent 50%),
    radial-gradient(circle at 90% 92%, rgba(16, 185, 129, 0.045) 0%, transparent 45%);
  background-attachment: fixed;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  width: 100%;
}

html {
  overflow-x: hidden;
  width: 100%;
}

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

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

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

[hidden] {
  display: none !important;
}

p {
  line-height: 1.68;
  margin: 0 0 1rem;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.12;
  text-wrap: balance;
  color: var(--ink);
}

h2 {
  font-size: clamp(2.3rem, 4.8vw, 3.9rem);
  letter-spacing: -0.05em;
  font-weight: 780;
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  font-weight: 650;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  top: -5rem;
  left: 1rem;
  background: var(--accent);
  color: #141215;
  padding: 0.75rem 1.2rem;
  font-weight: 700;
  border-radius: 6px;
  z-index: 100;
  transition: top 0.2s ease;
}

.skip:focus {
  top: 1rem;
}

section[id] {
  scroll-margin-top: 86px;
}

/* --------------------------------------------------------------------------
   Header & Glassmorphism Navigation
   -------------------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 11, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.brand {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  font-weight: 750;
  white-space: nowrap;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
  transition: color 0.18s ease;
}

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

.mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 158, 105, 0.35);
  border-radius: 8px;
  background: linear-gradient(135deg, #251915, #141113);
  color: var(--accent);
  font: 700 0.95rem var(--mono);
  box-shadow: 0 0 14px rgba(255, 158, 105, 0.2);
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.8vw, 1.75rem);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
}

nav a {
  position: relative;
  padding-block: 6px;
  transition: color 0.18s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

nav a:hover,
.social a:hover,
.text-link:hover {
  color: var(--ink);
}

nav a:hover::after,
nav a:focus-visible::after,
nav a[aria-current="location"]::after {
  transform: scaleX(1);
}

nav a[aria-current="location"] {
  color: var(--accent);
  font-weight: 600;
}

.language {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--accent);
  font: 700 0.82rem var(--mono);
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.02);
}

.language:hover {
  border-color: var(--accent);
  background: var(--panel);
}

/* --------------------------------------------------------------------------
   Language Switcher Component
   -------------------------------------------------------------------------- */

.lang-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(18, 22, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lang-switch:hover {
  border-color: rgba(255, 158, 105, 0.4);
  box-shadow: 0 0 14px rgba(255, 158, 105, 0.2);
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font: 700 0.8rem/1 var(--mono);
  padding: 6px 12px;
  min-height: 32px;
  min-width: 36px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
}

.lang-btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.lang-btn.active {
  background: linear-gradient(135deg, #ff9e69, #f97316);
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(255, 158, 105, 0.45);
  font-weight: 800;
  cursor: default;
}

.lang-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.menu {
  display: none;
}

/* --------------------------------------------------------------------------
   Buttons & Links (Tactile Shimmer & Press Feedback)
   -------------------------------------------------------------------------- */

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.72rem 1.25rem;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
}

.button:active {
  transform: scale(0.97) !important;
}

.button.small {
  min-height: 38px;
  padding: 0.45rem 0.9rem;
  font-size: 0.84rem;
}

.button.primary {
  background: linear-gradient(135deg, #ff9e69 0%, #f97316 100%);
  color: #0f172a;
  box-shadow: 0 4px 18px rgba(255, 158, 105, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.button.primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  transition: left 0.65s ease;
}

.button.primary:hover::after {
  left: 140%;
}

.button.primary:hover {
  background: linear-gradient(135deg, #ffb58a 0%, #fb923c 100%);
  box-shadow: 0 6px 26px rgba(255, 158, 105, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.button.outline {
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.button.outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(255, 158, 105, 0.2);
}

.text-link {
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(255, 158, 105, 0.4);
  padding: 0 0 0.25rem;
  color: var(--accent);
  font-weight: 680;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.text-link:hover {
  border-color: var(--accent);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Hero Section & Modern Telemetry Dashboard
   -------------------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0 48px;
  align-items: center;
  padding-top: clamp(48px, 9vw, 84px);
  padding-bottom: 32px;
}

.eyebrow,
.panel-top,
.panel-bottom,
.hero-index,
.number,
.project-art {
  font: 600 0.73rem/1.4 var(--mono);
  letter-spacing: 0.11em;
  color: var(--muted);
}

.eyebrow b,
.number {
  color: var(--accent);
}

/* High-Tech Status Pill: [● ONLINE / SYSTEMS ADMINISTRATION / WEB HOSTING] */
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--accent);
  background: linear-gradient(135deg, rgba(255, 158, 105, 0.12), rgba(255, 158, 105, 0.04));
  border: 1px solid rgba(255, 158, 105, 0.32);
  border-radius: 999px;
  padding: 0.38rem 0.95rem;
  margin: 0 0 1.5rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 18px rgba(255, 158, 105, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  width: fit-content;
  max-width: 100%;
}

.hero-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981, 0 0 18px rgba(16, 185, 129, 0.5);
  position: relative;
  flex-shrink: 0;
}

.hero-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid #10b981;
  animation: radar-pulse 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
  pointer-events: none;
}

.hero-status {
  color: #10b981;
  font-weight: 800;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
}

.hero-sep {
  color: rgba(255, 255, 255, 0.3);
}

@keyframes radar-pulse {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  70% {
    transform: scale(2.4);
    opacity: 0;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* Bold Obsidian Heading with Subtle Metallic Gradient */
.hero h1 {
  font-size: clamp(3.2rem, 6.5vw, 6rem);
  letter-spacing: -0.06em;
  line-height: 1.02;
  font-weight: 850;
  background: linear-gradient(180deg, #ffffff 30%, #d4d4d8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.2rem;
  text-wrap: initial;
}

.hero h1 span.accent-dot {
  -webkit-text-fill-color: var(--accent);
  color: var(--accent);
  text-shadow: 0 0 20px rgba(255, 158, 105, 0.6);
}

.role {
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.34;
  margin: 1.1rem 0;
  color: #e2e8f0;
}

.intro,
.section-copy {
  max-width: 44ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.72;
}

.actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem;
  margin-top: 1.35rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.social a {
  overflow-wrap: anywhere;
  transition: color 0.18s ease;
}

/* Modern Datacenter Telemetry Dashboard Frame */
.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(20, 24, 34, 0.9) 0%, rgba(11, 14, 20, 0.98) 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 35px rgba(56, 189, 248, 0.08);
  position: relative;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Dual Cyan & Amber Laser Scanner Sweep */
.hero-panel::after {
  content: "";
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, rgba(56, 189, 248, 0.9) 35%, rgba(255, 158, 105, 0.95) 65%, transparent 95%);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.7), 0 0 24px rgba(255, 158, 105, 0.5);
  pointer-events: none;
  opacity: 0;
}

.hero-panel img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.48;
  object-fit: cover;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
}

.panel-top,
.panel-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  color: #cbd5e1;
  background: rgba(15, 18, 25, 0.88);
}

.panel-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-top i {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  margin-right: 0.5rem;
  animation: led-blink 3s ease-in-out infinite;
}

@keyframes led-blink {
  0%, 100% {
    opacity: 1;
    filter: drop-shadow(0 0 4px #10b981);
  }
  50% {
    opacity: 0.45;
    filter: none;
  }
}

.hero-index {
  grid-column: 1 / -1;
  margin-top: 52px;
  min-height: 58px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.hero-index span:first-child {
  color: var(--accent);
  font-weight: 700;
}

.hero-index a {
  padding-block: 10px;
  text-transform: uppercase;
  transition: color 0.18s ease;
}

.hero-index a:hover {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Sections & Layout
   -------------------------------------------------------------------------- */

.section {
  border-top: 1px solid var(--glass-border);
  padding-block: clamp(56px, 8vw, 84px);
}

.section .eyebrow {
  margin-bottom: 0.85rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6.5rem);
}

.about-copy {
  color: var(--muted);
  font-size: 1.05rem;
  align-self: center;
}

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

/* --------------------------------------------------------------------------
   Cards & Technical Skills (Obsidian Glassmorphism)
   -------------------------------------------------------------------------- */

.skill-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.card {
  grid-column: span 2;
  background: linear-gradient(170deg, rgba(22, 27, 38, 0.8) 0%, rgba(13, 16, 23, 0.95) 100%);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.25s ease,
              box-shadow 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
}

.card:nth-last-child(-n+2) {
  grid-column: span 3;
}

.tech-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 158, 105, 0.3);
  border-radius: 10px;
  color: var(--accent);
  background: linear-gradient(135deg, rgba(38, 28, 23, 0.9), rgba(18, 15, 17, 0.9));
  margin-bottom: 18px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 2px 10px rgba(255, 158, 105, 0.15);
}

.tech-icon svg {
  width: 22px;
  height: 22px;
}

.card p,
.timeline p,
.services p,
.project p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 0;
  padding: 0;
}

.tags li {
  font: 600 0.74rem/1.3 var(--mono);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 0.32rem 0.58rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

/* --------------------------------------------------------------------------
   Timeline (Operations Experience)
   -------------------------------------------------------------------------- */

.section-copy {
  margin-top: 1rem;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 24px;
  border-left: 1px solid rgba(255, 158, 105, 0.35);
}

.timeline li {
  position: relative;
  padding: 0 0 32px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg), 0 0 12px rgba(255, 158, 105, 0.6);
}

.timeline h3 {
  margin-top: 0.45rem;
}

/* --------------------------------------------------------------------------
   Services List
   -------------------------------------------------------------------------- */

.services {
  margin-top: 28px;
  border-top: 1px solid var(--glass-border);
}

.services a {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 1.2rem;
  padding: 20px 14px;
  border-bottom: 1px solid var(--glass-border);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  border-radius: 8px;
}

.services a:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 158, 105, 0.3);
}

.services .arrow {
  color: var(--accent);
  font-size: 1.4rem;
  transition: transform 0.2s ease;
}

/* --------------------------------------------------------------------------
   Projects Grid & Showcase Project Card
   -------------------------------------------------------------------------- */

.projects {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 32px;
}

.projects-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 32px;
}

.project,
.showcase-card {
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(170deg, rgba(22, 27, 38, 0.85) 0%, rgba(13, 16, 23, 0.98) 100%);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.25s ease,
              box-shadow 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
}

.project:hover,
.showcase-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 158, 105, 0.45);
  box-shadow: 0 18px 45px -10px rgba(255, 158, 105, 0.26), 0 0 0 1px rgba(255, 158, 105, 0.18);
}

.project-art {
  height: auto;
  min-height: 154px;
  padding: 18px 22px;
  color: #e7b89d;
  background: linear-gradient(155deg, rgba(45, 30, 25, 0.75), rgba(18, 20, 26, 0.85)),
              repeating-linear-gradient(90deg, rgba(255, 158, 105, 0.1) 0 1px, transparent 1px 26px),
              repeating-linear-gradient(rgba(255, 158, 105, 0.1) 0 1px, transparent 1px 26px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.art-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.project-badge {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 999px;
  padding: 3px 10px;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.18);
}

.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
  animation: led-blink 2s infinite;
}

.diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  max-width: 100%;
}

.diagram-showcase {
  margin-top: 22px;
  margin-bottom: 6px;
}

.diagram i {
  font-style: normal;
  border: 1px solid rgba(255, 158, 105, 0.4);
  border-radius: 6px;
  background: rgba(30, 22, 20, 0.95);
  padding: 0.55rem 0.8rem;
  font-weight: 700;
  color: #fed7aa;
  box-shadow: 0 0 10px rgba(255, 158, 105, 0.18);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Continuous high-tech data stream animation */
.diagram b {
  width: clamp(16px, 5vw, 60px);
  height: 2px;
  border: none;
  background: repeating-linear-gradient(90deg, var(--accent) 0, var(--accent) 5px, transparent 5px, transparent 10px);
  background-size: 20px 100%;
  animation: data-stream 1.2s linear infinite;
  flex-shrink: 1;
  box-shadow: 0 0 6px rgba(255, 158, 105, 0.5);
}

.diagram-showcase b {
  width: clamp(14px, 4vw, 48px);
}

@keyframes data-stream {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 20px 0;
  }
}

.project-copy {
  padding: 24px 26px;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.project-copy .eyebrow {
  color: var(--accent);
  margin: 0 0 0.55rem;
  font-size: 0.74rem;
  line-height: 1.4;
  letter-spacing: 0.08em;
}

.project-copy h3 {
  font-family: var(--mono);
  font-size: 1.35rem;
  overflow-wrap: anywhere;
}

.project-title-link {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 750;
  transition: color 0.18s ease;
}

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

.external-icon {
  font-size: 0.85em;
  color: var(--accent);
  transition: transform 0.18s ease;
}

.project-title-link:hover .external-icon {
  transform: translate(2px, -2px);
}

.project-visit-btn {
  flex-shrink: 0;
  min-height: 38px;
  padding: 0.45rem 1.05rem;
  font-size: 0.85rem;
}

.project-desc {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #cbd5e1;
  margin: 0.85rem 0 1.2rem;
  max-width: 95ch;
}

.project-tags {
  margin-top: 1.2rem;
}

.project-tags li {
  font-size: 0.76rem;
  padding: 0.35rem 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

/* --------------------------------------------------------------------------
   Contact Section & Glassmorphism Form
   -------------------------------------------------------------------------- */

form {
  display: grid;
  gap: 12px;
  background: linear-gradient(170deg, rgba(22, 27, 38, 0.8) 0%, rgba(13, 16, 23, 0.95) 100%);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 26px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

label {
  font-size: 0.86rem;
  font-weight: 650;
  color: #e2e8f0;
}

input, textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(9, 11, 16, 0.6);
  color: var(--ink);
  padding: 0.76rem 0.9rem;
  margin: 0 0 6px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

input:focus, textarea:focus {
  border-color: var(--accent);
  background: rgba(13, 16, 23, 0.9);
  box-shadow: 0 0 0 3px rgba(255, 158, 105, 0.22), 0 0 16px rgba(255, 158, 105, 0.15);
  outline: none;
}

textarea {
  resize: vertical;
}

form .button {
  justify-self: start;
  margin-top: 6px;
}

.form-help {
  font-size: 0.84rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.form-help:empty {
  display: none;
}

.service-choice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  background: rgba(37, 27, 24, 0.9);
  border: 1px solid rgba(255, 158, 105, 0.35);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  margin-bottom: 6px;
  font-size: 0.88rem;
}

.service-choice p {
  margin: 0;
  font-weight: 500;
  color: #fed7aa;
}

.service-choice button {
  flex-shrink: 0;
}

#draft-preview {
  margin-top: 0.6rem;
}

#draft-preview textarea {
  display: block;
}

.draft {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 0.88rem;
  line-height: 1.5;
  background: rgba(10, 13, 19, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
}

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

footer {
  border-top: 1px solid var(--glass-border);
}

.footer {
  min-height: 84px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.footer nav {
  font-size: 0.86rem;
}

/* --------------------------------------------------------------------------
   Micro-interactions & Hover Effects (Pointer Devices Only)
   -------------------------------------------------------------------------- */

@media (hover: hover) and (pointer: fine) {
  .button:hover,
  .language:hover {
    transform: translateY(-2px);
  }

  .card:hover,
  .project:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 158, 105, 0.5);
    box-shadow: 0 16px 40px -8px rgba(255, 158, 105, 0.28),
                0 0 0 1px rgba(255, 158, 105, 0.2);
  }

  .card:hover .tech-icon {
    transform: translateY(-3px) scale(1.06);
    border-color: var(--accent);
    box-shadow: 0 0 16px rgba(255, 158, 105, 0.45);
    background: #38241b;
  }

  .card:hover .tags li {
    border-color: rgba(255, 158, 105, 0.35);
    background: rgba(255, 158, 105, 0.08);
    color: #fff;
  }

  .project:hover .diagram i {
    border-color: var(--accent);
    box-shadow: 0 0 14px rgba(255, 158, 105, 0.45);
  }

  .project-art.alternate:hover .diagram i {
    border-color: var(--cyan);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.45);
  }

  .services a:hover .arrow {
    transform: translateX(5px);
  }
}

/* --------------------------------------------------------------------------
   Animations & Motion Preferences
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: hero-enter 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .hero-panel {
    animation: hero-enter 0.75s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  /* Continuous high-tech laser scan */
  .hero-panel::after {
    animation: server-scan 3.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  }

  /* Smooth non-blocking scroll reveal */
  .reveal {
    transition: opacity 0.45s ease-out, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
  }

  .reveal.is-waiting {
    opacity: 0.18;
    transform: translateY(12px);
  }

  @keyframes hero-enter {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes server-scan {
    0% {
      opacity: 0;
      transform: translateY(0);
    }
    12% {
      opacity: 0.95;
    }
    88% {
      opacity: 0.95;
    }
    100% {
      opacity: 0;
      transform: translateY(350px);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal.is-waiting {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --------------------------------------------------------------------------
   Responsive Media Queries: Compact Desktop & Tablets (<= 930px)
   -------------------------------------------------------------------------- */

@media (max-width: 930px) {
  .wrap {
    width: calc(100% - 40px);
  }

  .hire {
    display: none;
  }

  .section {
    padding-block: 56px;
  }
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 48px;
  }

  .hero-panel {
    max-width: 580px;
    width: 100%;
    margin-inline: auto;
  }
}

/* --------------------------------------------------------------------------
   Responsive Media Queries: Mobile Viewports (<= 768px)
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .nav {
    min-height: 60px;
    gap: 8px;
    position: relative;
  }

  .nav .brand {
    order: 1;
    margin-right: auto;
    font-size: 0.96rem;
    gap: 0.55rem;
    flex-shrink: 0;
  }

  .nav .mark {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }

  .hire {
    display: none !important;
  }

  .nav .lang-switch {
    order: 9;
    margin-left: auto;
    margin-right: 8px;
    flex-shrink: 0;
  }

  .menu {
    order: 10;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    background: rgba(22, 27, 38, 0.9);
    padding: 0.42rem 0.8rem;
    min-height: 38px;
    font-size: 0.88rem;
    font-weight: 600;
    flex-shrink: 0;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
  }

  .menu:hover,
  .menu[aria-expanded="true"] {
    border-color: var(--accent);
    background: #202636;
  }

  /* Dropdown Navigation Menu */
  .portfolio-header.menu-ready #navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(14, 18, 26, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line-strong);
    padding: 14px 20px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65);
    flex-direction: column;
    gap: 4px;
    z-index: 50;
  }

  .portfolio-header.menu-ready #navigation.open {
    display: flex !important;
    animation: menu-slide-down 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .portfolio-header.menu-ready #navigation a {
    padding: 11px 14px;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: background-color 0.18s ease, color 0.18s ease;
  }

  .portfolio-header.menu-ready #navigation a:hover,
  .portfolio-header.menu-ready #navigation a[aria-current="location"] {
    background: rgba(255, 158, 105, 0.12);
    color: var(--accent);
  }

  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 24px;
    padding-top: 32px;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 9.4vw, 4.2rem);
    letter-spacing: -0.05em;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .role {
    font-size: clamp(1rem, 4.2vw, 1.35rem);
    line-height: 1.35;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .hero-panel {
    max-width: 560px;
    width: 100%;
    margin-inline: auto;
  }

  .hero-index {
    margin-top: 0;
    padding-block: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    font-size: 0.65rem;
    gap: 4px 10px;
  }

  .hero-index a {
    padding-block: 8px;
  }

  .section {
    padding-block: 44px;
  }

  .skill-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .card,
  .card:nth-last-child(-n+2) {
    grid-column: auto;
  }

  .projects,
  .projects-showcase {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .project-visit-btn {
    width: 100%;
    justify-content: center;
  }

  .project-art {
    padding: 14px 10px;
    overflow: hidden;
  }

  .diagram-showcase {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    gap: 2px;
  }

  .diagram-showcase i {
    font-size: 0.52rem;
    padding: 0.32rem 0.36rem;
    letter-spacing: 0;
    flex-shrink: 0;
  }

  .diagram-showcase b {
    flex-grow: 1;
    min-width: 4px;
    width: auto;
  }

  .desktop {
    display: none;
  }

  .footer {
    flex-wrap: wrap;
    padding-block: 18px;
  }

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

  .portfolio-header:not(.menu-ready) {
    position: static;
  }

  .portfolio-header:not(.menu-ready) .nav {
    flex-wrap: wrap;
    padding-block: 8px;
  }

  .portfolio-header:not(.menu-ready) #navigation {
    position: static;
    display: grid;
    flex-basis: 100%;
    order: 1;
    padding: 0;
    background: transparent;
    border: 0;
  }
}

@keyframes menu-slide-down {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   Responsive Media Queries: Small Phones (<= 480px)
   -------------------------------------------------------------------------- */

@media (max-width: 480px) {
  .hero h1 {
    font-size: clamp(2rem, 8.8vw, 2.75rem);
    letter-spacing: -0.04em;
  }

  .role {
    font-size: 1.05rem;
  }

  .hero-label {
    font-size: 0.68rem;
    padding: 0.35rem 0.65rem;
    gap: 0.4rem;
  }

  .hero-status {
    font-size: 0.65rem;
  }

  .social {
    gap: 0.6rem;
    font-size: 0.85rem;
  }

  .skill-grid,
  .projects {
    grid-template-columns: 1fr;
  }

  .services a {
    grid-template-columns: 28px 1fr auto;
    gap: 10px;
    padding: 14px 6px;
  }

  .panel-top,
  .panel-bottom {
    font-size: 0.62rem;
    padding: 10px 12px;
  }

  .button {
    gap: 0.6rem;
  }

  .actions {
    flex-direction: column;
    width: 100%;
  }

  .actions .button {
    width: 100%;
    justify-content: center;
  }

  input,
  textarea {
    font-size: 1rem; /* Prevents auto-zoom on iOS Safari */
  }

  .lang-btn {
    padding: 4px 8px;
    font-size: 0.72rem;
    min-height: 28px;
    min-width: 30px;
  }

  .menu {
    padding: 0.35rem 0.65rem;
    min-height: 36px;
    font-size: 0.84rem;
  }

  .diagram i {
    padding: 0.45rem 0.5rem;
    font-size: 0.72rem;
  }

  .diagram b {
    width: clamp(10px, 3.5vw, 28px);
  }

  .diagram-showcase {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    gap: 2px;
  }

  .diagram-showcase i {
    font-size: 0.5rem;
    padding: 0.28rem 0.32rem;
    letter-spacing: -0.02em;
    flex-shrink: 0;
  }

  .diagram-showcase b {
    flex-grow: 1;
    min-width: 3px;
    width: auto;
  }

  .project-copy {
    padding: 16px 14px;
  }

  .project-art {
    padding: 12px 8px;
    overflow: hidden;
  }
}

/* ==========================================================================
   PRINT STYLESHEET (@media print)
   Optimized for a Clean, High-Contrast, Professional 1-Page CV
   ========================================================================== */

@media print {
  @page {
    size: A4 portrait;
    margin: 6mm 10mm 6mm 10mm;
  }

  :root {
    color-scheme: light;
    --bg: #ffffff;
    --panel: #ffffff;
    --ink: #111827;
    --muted: #374151;
    --line: #e5e7eb;
    --accent: #9a3412;
    --mono: "SF Mono", Monaco, Consolas, "Courier New", monospace;
    font-size: 8.9pt;
    line-height: 1.34;
    background: #ffffff;
    color: #111827;
  }

  body {
    background: #ffffff !important;
    color: #111827 !important;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    font-size: 8.9pt !important;
    line-height: 1.34 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 1. Hide interactive, navigational, form, and screen-only elements */
  .header,
  .skip,
  .menu,
  nav,
  .hire,
  .language,
  .lang-switch,
  .lang-btn,
  .hero-dot,
  .hero-status,
  .hero-sep,
  .hero-panel,
  .hero-index,
  .actions,
  .text-link,
  #contact-form,
  #draft-preview,
  #service-choice,
  .form-help,
  footer,
  .project-art,
  .project-visit-btn,
  .external-icon,
  .live-indicator,
  .tech-icon,
  .arrow,
  #services {
    display: none !important;
  }

  /* Disable motion and animations */
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  .reveal,
  .reveal.is-waiting,
  .hero-copy {
    opacity: 1 !important;
    transform: none !important;
  }

  nav a::after,
  .hero-panel::after {
    display: none !important;
  }

  .wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 2. Hero / CV Header */
  .hero {
    display: block !important;
    padding: 0 0 5pt 0 !important;
    border-bottom: 1.5pt solid #111827 !important;
    margin-bottom: 4pt !important;
    break-inside: avoid;
  }

  .hero-copy {
    max-width: 100% !important;
  }

  .hero-label {
    display: inline-block !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 0 1pt 0 !important;
    font-size: 7.2pt !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    color: #9a3412 !important;
  }

  .hero-dot,
  .hero-status,
  .hero-sep {
    display: none !important;
  }

  .hero h1 {
    font-size: 18pt !important;
    line-height: 1.08 !important;
    letter-spacing: -0.03em !important;
    color: #111827 !important;
    margin: 0 0 2pt 0 !important;
    -webkit-text-fill-color: #111827 !important;
    background: none !important;
  }

  .hero h1 span,
  .hero h1 span.accent-dot {
    color: #9a3412 !important;
    -webkit-text-fill-color: #9a3412 !important;
    text-shadow: none !important;
  }

  .role {
    font-size: 9.8pt !important;
    font-weight: 600 !important;
    color: #374151 !important;
    line-height: 1.25 !important;
    margin: 0 0 2.5pt 0 !important;
  }

  .intro {
    font-size: 8.3pt !important;
    line-height: 1.34 !important;
    color: #374151 !important;
    max-width: 100% !important;
    margin: 0 0 3.5pt 0 !important;
  }

  /* Prominent contact bar in header */
  .social,
  #hero-social,
  #contact-social {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 2pt 10pt !important;
    margin-top: 1.5pt !important;
    font-size: 8pt !important;
    color: #1f2937 !important;
  }

  .social a {
    color: #111827 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  .social a[href^="https:"]::after {
    content: " (" attr(href) ")";
    font-weight: normal;
    font-size: 7.2pt;
    color: #4b5563;
  }

  /* 3. Section structure */
  .section {
    display: block !important;
    border-top: none !important;
    padding: 3.5pt 0 0 0 !important;
    margin: 0 0 3.5pt 0 !important;
  }

  .split {
    display: block !important;
  }

  .section .eyebrow {
    font-size: 6.6pt !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    color: #9a3412 !important;
    margin: 0 0 1pt 0 !important;
  }

  .section h2 {
    font-size: 10pt !important;
    font-weight: 750 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    color: #111827 !important;
    border-bottom: 1pt solid #111827 !important;
    padding-bottom: 1pt !important;
    margin: 0 0 3pt 0 !important;
    break-after: avoid;
  }

  .section-copy {
    font-size: 7.6pt !important;
    color: #4b5563 !important;
    margin: 0 0 3pt 0 !important;
  }

  .about-copy {
    font-size: 8.3pt !important;
    line-height: 1.34 !important;
    color: #374151 !important;
  }

  .about-copy p {
    margin: 0 0 2pt 0 !important;
  }

  /* 4. Technical skills grid */
  .skill-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 4pt !important;
    margin-top: 2.5pt !important;
  }

  .card {
    grid-column: auto !important;
    background: #ffffff !important;
    border: 0.5pt solid #cbd5e1 !important;
    border-radius: 3pt !important;
    padding: 3.5pt 4.5pt !important;
    box-shadow: none !important;
    break-inside: avoid !important;
  }

  .card h3 {
    font-size: 8.3pt !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 0 0 1pt 0 !important;
  }

  .card p {
    font-size: 7.2pt !important;
    line-height: 1.25 !important;
    color: #4b5563 !important;
    margin: 0 0 2pt 0 !important;
  }

  .tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1.8pt !important;
    margin: 2pt 0 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .tags li {
    font-family: var(--mono) !important;
    font-size: 6.5pt !important;
    color: #1f2937 !important;
    background: #f1f5f9 !important;
    border: 0.5pt solid #cbd5e1 !important;
    border-radius: 2pt !important;
    padding: 0.8pt 2.4pt !important;
  }

  /* 5. Experience timeline */
  .timeline {
    list-style: none !important;
    margin: 2.5pt 0 0 0 !important;
    padding: 0 !important;
    border-left: none !important;
  }

  .timeline li {
    position: static !important;
    padding: 0 0 3pt 0 !important;
    margin: 0 0 3pt 0 !important;
    border-bottom: 0.5pt solid #e2e8f0 !important;
    break-inside: avoid !important;
  }

  .timeline li:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  .timeline li::before {
    display: none !important;
  }

  .timeline .eyebrow {
    font-size: 6.2pt !important;
    color: #64748b !important;
  }

  .timeline h3 {
    font-size: 8.3pt !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 0.5pt 0 1pt 0 !important;
  }

  .timeline p {
    font-size: 7.5pt !important;
    line-height: 1.3 !important;
    color: #374151 !important;
    margin: 0 !important;
  }

  /* 6. Projects */
  .projects,
  .projects-showcase {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 4.5pt !important;
    margin-top: 2.5pt !important;
  }

  .project,
  .showcase-card {
    background: #ffffff !important;
    border: 0.5pt solid #cbd5e1 !important;
    border-radius: 3pt !important;
    padding: 3.5pt 5pt !important;
    box-shadow: none !important;
    break-inside: avoid !important;
  }

  .project-copy {
    padding: 0 !important;
  }

  .project-header {
    display: block !important;
  }

  .project-copy .eyebrow {
    font-size: 6.2pt !important;
    color: #9a3412 !important;
    margin: 0 0 0.8pt 0 !important;
  }

  .project-title-link,
  .project-copy h3 {
    font-family: var(--mono) !important;
    font-size: 8.3pt !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 0 0 0.8pt 0 !important;
    text-decoration: none !important;
    display: block !important;
  }

  .project-title-link::after {
    content: " (" attr(href) ")";
    font-size: 6.8pt;
    font-weight: normal;
    color: #4b5563;
  }

  .project-desc,
  .project-copy p {
    font-size: 7.1pt !important;
    line-height: 1.24 !important;
    color: #4b5563 !important;
    margin: 0 0 1.5pt 0 !important;
  }

  .project-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1.6pt !important;
    margin: 1.5pt 0 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .project-tags li {
    font-family: var(--mono) !important;
    font-size: 6pt !important;
    color: #1f2937 !important;
    background: #f1f5f9 !important;
    border: 0.5pt solid #cbd5e1 !important;
    border-radius: 2pt !important;
    padding: 0.6pt 2.2pt !important;
  }

  /* 7. Contact section (direct contact links footer) */
  .contact {
    break-inside: avoid !important;
    padding-top: 3pt !important;
    margin-top: 2.5pt !important;
    border-top: 0.75pt solid #e2e8f0 !important;
  }

  .contact h2,
  .contact .section-copy {
    display: none !important;
  }

  .contact .eyebrow {
    margin-bottom: 1pt !important;
  }
}
