/* ============================================
   WEDDERBURN.SYSTEMS — v2 Overhaul
   Industrial tech aesthetic with depth & motion
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,400&family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-deep: #050506;
    --bg-primary: #0a0a0c;
    --bg-secondary: #101014;
    --bg-tertiary: #16161b;
    --bg-card: #131318;
    --bg-card-hover: #1a1a21;
    --bg-elevated: #1e1e26;
    --text-primary: #eae8e2;
    --text-secondary: #8a887f;
    --text-tertiary: #55544e;
    --text-bright: #ffffff;
    --accent: #c8f031;
    --accent-dim: rgba(200, 240, 49, 0.08);
    --accent-glow: rgba(200, 240, 49, 0.15);
    --accent-hover: #d9ff45;
    --teal: #2dd4a8;
    --teal-dim: rgba(45, 212, 168, 0.08);
    --amber: #f0a030;
    --amber-dim: rgba(240, 160, 48, 0.08);
    --coral: #f07050;
    --coral-dim: rgba(240, 112, 80, 0.08);
    --blue: #4d8bf0;
    --blue-dim: rgba(77, 139, 240, 0.08);
    --border: rgba(255, 255, 255, 0.04);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.1);
    --border-accent: rgba(200, 240, 49, 0.15);
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'DM Mono', monospace;
    --radius-xs: 3px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1140px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-body); font-weight: 400; font-size: 16px; line-height: 1.65; color: var(--text-primary); background: var(--bg-deep); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
::selection { background: var(--accent); color: var(--bg-deep); }

body::before {
    content: '';
    position: fixed;
    inset: 0;
    opacity: 0.025;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 128px 128px;
}

/* NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 16px 32px; background: rgba(5,5,6,0.7); backdrop-filter: blur(24px) saturate(1.2); border-bottom: 1px solid var(--border); transition: all var(--transition); }
.nav.scrolled { background: rgba(5,5,6,0.92); border-bottom-color: var(--border-subtle); }
.nav__logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 14px; font-weight: 400; transition: opacity var(--transition); }
.nav__logo:hover { opacity: 0.7; }
.nav__logo-symbol { color: var(--accent); font-weight: 500; }
.nav__logo-tld { color: var(--text-tertiary); }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__link { font-family: var(--font-mono); font-size: 13px; color: var(--text-tertiary); transition: color var(--transition); position: relative; padding: 4px 0; }
.nav__link:hover { color: var(--text-primary); }
.nav__link--active { color: var(--text-primary); }
.nav__link--active::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 1px; background: var(--accent); }
.nav__link--cta { color: var(--bg-deep); background: var(--accent); padding: 7px 16px; border-radius: var(--radius-sm); font-weight: 500; transition: all var(--transition); border: none; }
.nav__link--cta:hover { background: var(--accent-hover); color: var(--bg-deep); transform: translateY(-1px); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav__toggle span { display: block; width: 20px; height: 1.5px; background: var(--text-secondary); transition: all var(--transition); }

/* HERO */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 120px 32px 80px; max-width: var(--max-width); margin: 0 auto; overflow: hidden; }
.hero__content { position: relative; z-index: 1; }
.hero__eyebrow { font-family: var(--font-mono); font-size: 13px; color: var(--accent); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 32px; display: flex; align-items: center; gap: 12px; opacity: 0; animation: fadeUp 0.7s ease 0.2s forwards; }
.hero__eyebrow::before { content: ''; display: block; width: 32px; height: 1px; background: var(--accent); }
.hero__title { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 800; line-height: 1.0; letter-spacing: -0.04em; margin-bottom: 32px; max-width: 780px; opacity: 0; animation: fadeUp 0.7s ease 0.35s forwards; }
.hero__title-line { display: block; }
.hero__title-accent { color: var(--accent); }
.hero__subtitle { font-size: 18px; font-weight: 300; color: var(--text-secondary); line-height: 1.75; max-width: 540px; margin-bottom: 48px; opacity: 0; animation: fadeUp 0.7s ease 0.5s forwards; }
.hero__typed { font-family: var(--font-mono); color: var(--accent); border-right: 2px solid var(--accent); padding-right: 2px; animation: blink 0.8s step-end infinite; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; opacity: 0; animation: fadeUp 0.7s ease 0.65s forwards; }
.hero__scroll-hint { position: absolute; bottom: 40px; left: 32px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10px; color: var(--text-tertiary); letter-spacing: 0.1em; text-transform: uppercase; opacity: 0; animation: fadeUp 0.7s ease 1s forwards; z-index: 1; }
.hero__scroll-line { width: 1px; height: 48px; background: linear-gradient(to bottom, var(--accent), transparent); animation: scrollPulse 2s ease-in-out infinite; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 13px; font-weight: 500; padding: 14px 28px; border-radius: var(--radius-sm); border: 1px solid var(--border-hover); background: var(--bg-tertiary); color: var(--text-primary); cursor: pointer; transition: all var(--transition); position: relative; overflow: hidden; }
.btn:hover { border-color: rgba(255,255,255,0.15); transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: var(--bg-deep); border-color: var(--accent); font-weight: 600; }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--bg-deep); }

/* SECTIONS */
.section { padding: 120px 32px; max-width: var(--max-width); margin: 0 auto; }
.section__header { margin-bottom: 64px; }
.section__label { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; display: flex; align-items: center; gap: 12px; }
.section__label::before { content: ''; width: 24px; height: 1px; background: var(--accent); }
.section__title { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.section__subtitle { font-size: 16px; color: var(--text-secondary); max-width: 480px; margin-top: 16px; font-weight: 300; }
.divider { height: 1px; background: linear-gradient(to right, transparent, var(--border-subtle), transparent); max-width: var(--max-width); margin: 0 auto; }

/* PROJECT CARDS */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.project-card { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94); overflow: hidden; display: flex; flex-direction: column; min-height: 380px; cursor: pointer; }
.project-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--card-accent, var(--accent)); opacity: 0; transition: opacity var(--transition); }
.project-card::after { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--card-accent-dim, var(--accent-dim)), transparent 60%); opacity: 0; transition: opacity 0.4s ease; pointer-events: none; }
.project-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.project-card:hover::before { opacity: 1; }
.project-card:hover::after { opacity: 1; }
.project-card[data-category="data"] { --card-accent: var(--teal); --card-accent-dim: var(--teal-dim); }
.project-card[data-category="fullstack"] { --card-accent: var(--blue); --card-accent-dim: var(--blue-dim); }
.project-card[data-category="embedded"] { --card-accent: var(--amber); --card-accent-dim: var(--amber-dim); }
.project-card[data-category="fabrication"] { --card-accent: var(--coral); --card-accent-dim: var(--coral-dim); }
.project-card__icon { width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--card-accent-dim, var(--accent-dim)); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; font-size: 20px; color: var(--card-accent, var(--accent)); border: 1px solid rgba(255,255,255,0.04); }
.project-card__category { font-family: var(--font-mono); font-size: 11px; color: var(--card-accent, var(--accent)); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.project-card__title { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; line-height: 1.15; }
.project-card__subtitle { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; font-weight: 300; }
.project-card__stat { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--border); }
.project-card__stat-value { font-family: var(--font-display); font-size: 36px; font-weight: 800; color: var(--card-accent, var(--accent)); letter-spacing: -0.03em; line-height: 1; }
.project-card__stat-label { font-family: var(--font-mono); font-size: 12px; color: var(--text-tertiary); margin-top: 4px; }
.project-card__tech { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.project-card__tech-tag { font-family: var(--font-mono); font-size: 11px; padding: 4px 10px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: var(--radius-xs); color: var(--text-tertiary); transition: all var(--transition); }
.project-card:hover .project-card__tech-tag { border-color: var(--border-subtle); color: var(--text-secondary); }
.project-card__arrow { position: absolute; top: 36px; right: 36px; font-family: var(--font-mono); font-size: 18px; color: var(--text-tertiary); opacity: 0; transform: translate(-4px, 4px); transition: all var(--transition); }
.project-card:hover .project-card__arrow { opacity: 1; transform: translate(0,0); color: var(--card-accent, var(--accent)); }

/* SKILLS */
.skills-section { background: var(--bg-primary); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 120px 0; }
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }
.skill-group { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px; transition: all var(--transition); }
.skill-group:hover { border-color: var(--border-subtle); background: var(--bg-tertiary); }
.skill-group__title { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; font-weight: 500; }
.skill-group__items { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-tag { font-family: var(--font-mono); font-size: 12px; padding: 5px 12px; background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: var(--radius-xs); color: var(--text-secondary); transition: all var(--transition); }
.skill-tag:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

/* CTA */
.cta-section { text-align: center; padding: 140px 32px; max-width: var(--max-width); margin: 0 auto; }
.cta-section__title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 16px; }
.cta-section__subtitle { font-size: 16px; color: var(--text-secondary); margin-bottom: 40px; font-weight: 300; }
.cta-section__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* DETAIL */
.detail-hero { padding: 140px 32px 80px; max-width: var(--max-width); margin: 0 auto; }
.detail-hero__back { font-family: var(--font-mono); font-size: 13px; color: var(--text-tertiary); margin-bottom: 40px; display: inline-flex; align-items: center; gap: 8px; transition: color var(--transition); }
.detail-hero__back:hover { color: var(--accent); }
.detail-hero__category { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.detail-hero__category::before { content: ''; width: 24px; height: 1px; background: var(--accent); }
.detail-hero__title { font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; letter-spacing: -0.04em; margin-bottom: 8px; line-height: 1.0; }
.detail-hero__subtitle { font-size: 20px; color: var(--text-secondary); font-weight: 300; }
.detail-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0 32px 80px; max-width: var(--max-width); margin: 0 auto; }
.detail-stat { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px; text-align: center; transition: all var(--transition); position: relative; overflow: hidden; }
.detail-stat::before { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform 0.6s ease; }
.detail-stat.visible::before { transform: scaleX(1); }
.detail-stat__value { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--accent); margin-bottom: 4px; letter-spacing: -0.02em; }
.detail-stat__label { font-family: var(--font-mono); font-size: 12px; color: var(--text-tertiary); }
.detail-body { padding: 80px 32px; max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.detail-section__label { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.detail-section__label::before { content: ''; width: 16px; height: 1px; background: var(--accent); }
.detail-section__text { font-size: 16px; color: var(--text-secondary); line-height: 1.75; }
.detail-list { list-style: none; counter-reset: detail-counter; }
.detail-list li { font-size: 15px; color: var(--text-secondary); line-height: 1.7; padding: 20px 0 20px 48px; border-bottom: 1px solid var(--border); position: relative; counter-increment: detail-counter; }
.detail-list li::before { content: counter(detail-counter, decimal-leading-zero); position: absolute; left: 0; top: 20px; font-family: var(--font-mono); font-size: 12px; color: var(--accent); opacity: 0.5; }
.detail-tech { padding: 60px 32px; max-width: var(--max-width); margin: 0 auto; }
.detail-tech__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ABOUT */
.about-intro { padding: 160px 32px 80px; max-width: var(--max-width); margin: 0 auto; }
.about-intro__text { font-size: 20px; font-weight: 300; line-height: 1.8; color: var(--text-secondary); max-width: 640px; }
.about-intro__text strong { color: var(--text-primary); font-weight: 500; }
.about-intro__text p + p { margin-top: 24px; }
.timeline { max-width: var(--max-width); margin: 0 auto; padding: 0 32px 120px; }
.timeline__item { display: grid; grid-template-columns: 220px 1fr; gap: 48px; padding: 36px 0; border-top: 1px solid var(--border); transition: all var(--transition); }
.timeline__item:hover { background: var(--bg-primary); margin: 0 -16px; padding-left: 16px; padding-right: 16px; border-radius: var(--radius-md); }
.timeline__period { font-family: var(--font-mono); font-size: 13px; color: var(--text-tertiary); padding-top: 4px; }
.timeline__role { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 4px; }
.timeline__company { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }
.timeline__bullets { list-style: none; }
.timeline__bullets li { font-size: 14px; color: var(--text-secondary); line-height: 1.75; padding-left: 24px; position: relative; margin-bottom: 8px; }
.timeline__bullets li::before { content: ''; position: absolute; left: 0; top: 11px; width: 6px; height: 1px; background: var(--accent); }

/* CONTACT */
.contact-page { padding: 160px 32px 120px; max-width: var(--max-width); margin: 0 auto; min-height: 80vh; display: flex; flex-direction: column; justify-content: center; }
.contact-page__title { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.04em; margin-bottom: 16px; }
.contact-page__text { font-size: 18px; font-weight: 300; color: var(--text-secondary); max-width: 520px; margin-bottom: 48px; line-height: 1.75; }
.contact-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 600px; }
.contact-link { display: flex; align-items: center; gap: 16px; padding: 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); transition: all var(--transition); position: relative; overflow: hidden; }
.contact-link::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); opacity: 0; transition: opacity var(--transition); }
.contact-link:hover { border-color: var(--border-hover); background: var(--bg-card-hover); transform: translateX(4px); }
.contact-link:hover::before { opacity: 1; }
.contact-link__label { font-family: var(--font-mono); font-size: 11px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
.contact-link__value { font-size: 14px; color: var(--text-primary); }
.contact-link__arrow { margin-left: auto; font-family: var(--font-mono); font-size: 16px; color: var(--text-tertiary); transition: all var(--transition); }
.contact-link:hover .contact-link__arrow { color: var(--accent); transform: translateX(2px); }

/* FOOTER */
.footer { border-top: 1px solid var(--border); padding: 40px 32px; background: var(--bg-primary); }
.footer__inner { max-width: var(--max-width); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer__left { display: flex; flex-direction: column; gap: 4px; }
.footer__mark { font-family: var(--font-mono); font-size: 13px; color: var(--text-tertiary); }
.footer__copy { font-size: 12px; color: var(--text-tertiary); opacity: 0.6; }
.footer__links { display: flex; gap: 24px; }
.footer__links a { font-family: var(--font-mono); font-size: 13px; color: var(--text-tertiary); transition: color var(--transition); }
.footer__links a:hover { color: var(--accent); }

/* 404 */
.not-found { padding: 160px 32px; max-width: var(--max-width); margin: 0 auto; text-align: center; min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.not-found__code { font-family: var(--font-display); font-size: 96px; font-weight: 800; color: var(--text-tertiary); opacity: 0.3; letter-spacing: -0.04em; }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes blink { 50% { border-color: transparent; } }
@keyframes scrollPulse { 0%, 100% { opacity: 0.3; transform: scaleY(1); } 50% { opacity: 0.8; transform: scaleY(1.1); } }
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .projects-grid { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-stats { grid-template-columns: repeat(2, 1fr); }
    .detail-body { grid-template-columns: 1fr; gap: 48px; }
    .contact-links { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav__toggle { display: flex; }
    .nav__links { position: fixed; inset: 0; background: rgba(5,5,6,0.97); backdrop-filter: blur(20px); flex-direction: column; justify-content: center; align-items: center; gap: 40px; opacity: 0; visibility: hidden; transition: all 0.4s ease; }
    .nav__links.open { opacity: 1; visibility: visible; }
    .nav__links.open .nav__link { font-size: 20px; color: var(--text-primary); }
    .hero { padding-top: 100px; min-height: auto; padding-bottom: 60px; }
    .hero__canvas { display: none; }
    .skills-grid { grid-template-columns: 1fr; }
    .timeline__item { grid-template-columns: 1fr; gap: 8px; }
    .footer__inner { flex-direction: column; gap: 16px; text-align: center; }
}

/* ============================================
   ARCHITECTURE DIAGRAM
   ============================================ */
.arch-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    overflow-x: auto;
}

.arch-svg {
    width: 100%;
    height: auto;
    min-width: 720px;
    display: block;
}

.arch-label {
    font-family: var(--font-mono);
    font-size: 10px;
    fill: var(--text-tertiary);
    letter-spacing: 0.08em;
    text-anchor: middle;
    text-transform: uppercase;
}

.arch-box {
    fill: var(--bg-secondary);
    stroke: var(--border-hover);
    stroke-width: 1;
}

.arch-box--accent {
    fill: rgba(200, 240, 49, 0.04);
    stroke: var(--accent);
    stroke-width: 1;
}

.arch-box--err {
    fill: rgba(240, 112, 80, 0.04);
    stroke: rgba(240, 112, 80, 0.4);
}

.arch-box--db {
    fill: rgba(77, 139, 240, 0.04);
    stroke: rgba(77, 139, 240, 0.35);
}

.arch-box--out {
    fill: rgba(200, 240, 49, 0.06);
    stroke: var(--accent);
    stroke-width: 1.5;
}

.arch-title {
    font-family: var(--font-body);
    font-size: 13px;
    fill: var(--text-primary);
    font-weight: 600;
    text-anchor: middle;
}

.arch-title-err {
    font-family: var(--font-body);
    font-size: 13px;
    fill: var(--coral);
    font-weight: 600;
    text-anchor: middle;
}

.arch-text {
    font-family: var(--font-body);
    font-size: 12px;
    fill: var(--text-secondary);
    text-anchor: middle;
}

.arch-sub {
    font-family: var(--font-mono);
    font-size: 10px;
    fill: var(--text-tertiary);
    text-anchor: middle;
}

.arch-bullet {
    font-family: var(--font-mono);
    font-size: 10px;
    fill: var(--text-secondary);
    text-anchor: middle;
}

.arch-line-subtle {
    stroke: var(--border-hover);
    stroke-width: 1;
}

.arch-arrow {
    stroke: var(--accent);
    stroke-width: 1.5;
    fill: none;
    opacity: 0.6;
}

.arch-arrow--err {
    stroke: var(--coral);
    opacity: 0.55;
    stroke-dasharray: 4 3;
}

/* ============================================
   TECHNICAL DECISIONS
   ============================================ */
.decisions {
    display: grid;
    gap: 16px;
}

.decision {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: all var(--transition);
}

.decision:hover {
    border-color: var(--border-subtle);
    background: var(--bg-card-hover);
}

.decision__q {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: -0.01em;
    margin-bottom: 12px;
    line-height: 1.4;
}

.decision__a {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ============================================
   EDGE CASES
   ============================================ */
.edge-list {
    list-style: none;
    counter-reset: edge-counter;
    display: grid;
    gap: 12px;
}

.edge-list__item {
    counter-increment: edge-counter;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 2px solid var(--coral);
    border-radius: var(--radius-md);
    padding: 20px 24px 20px 60px;
    position: relative;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    transition: all var(--transition);
}

.edge-list__item::before {
    content: '!' counter(edge-counter, decimal-leading-zero);
    position: absolute;
    left: 24px;
    top: 20px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--coral);
    font-weight: 500;
}

.edge-list__item:hover {
    background: var(--bg-card-hover);
}

/* ============================================
   SCALE NOTE
   ============================================ */
.scale-note {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 32px;
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .arch-wrap {
        padding: 16px;
        margin: 0 -16px;
        border-radius: 0;
    }
}

/* ============================================
   ARROW ANIMATION — flowing dash
   ============================================ */
.arch-arrow {
    stroke-dasharray: 6 4;
    stroke-dashoffset: 100;
    animation: archFlow 1.8s linear infinite;
}

.arch-arrow--err {
    stroke-dasharray: 4 3;
    animation: archFlow 2.4s linear infinite;
}

.arch-arrow--retry {
    stroke: var(--amber);
    stroke-dasharray: 5 3;
    animation: archFlow 2.6s linear infinite reverse;
    opacity: 0.7;
}

@keyframes archFlow {
    from { stroke-dashoffset: 100; }
    to { stroke-dashoffset: 0; }
}

/* Pause animations if the user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    .arch-arrow,
    .arch-arrow--err,
    .arch-arrow--retry {
        animation: none;
        stroke-dasharray: none;
        stroke-dashoffset: 0;
    }
}

/* New box colors for queue/retry/auth */
.arch-box--queue {
    fill: rgba(240, 160, 48, 0.05);
    stroke: rgba(240, 160, 48, 0.4);
}

.arch-box--retry {
    fill: rgba(240, 160, 48, 0.05);
    stroke: rgba(240, 160, 48, 0.4);
}

.arch-box--auth {
    fill: rgba(45, 212, 168, 0.05);
    stroke: rgba(45, 212, 168, 0.4);
}

/* ============================================
   STATUS BADGE
   ============================================ */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-xs);
    margin-left: 12px;
    vertical-align: middle;
    border: 1px solid;
}

.status-badge::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-badge--shipped {
    color: var(--teal);
    background: rgba(45, 212, 168, 0.06);
    border-color: rgba(45, 212, 168, 0.3);
}
.status-badge--shipped::before { background: var(--teal); box-shadow: 0 0 6px var(--teal); }

.status-badge--prototype {
    color: var(--amber);
    background: rgba(240, 160, 48, 0.06);
    border-color: rgba(240, 160, 48, 0.3);
}
.status-badge--prototype::before { background: var(--amber); box-shadow: 0 0 6px var(--amber); }

.status-badge--concept {
    color: var(--text-tertiary);
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--border-hover);
}
.status-badge--concept::before { background: var(--text-tertiary); }

/* Card status pill (smaller, on project cards) */
.project-card__status {
    position: absolute;
    top: 36px;
    right: 60px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: var(--radius-xs);
    border: 1px solid;
}

/* ============================================
   LIMITATIONS + WHAT-NEXT
   ============================================ */
.limitations-list {
    list-style: none;
    display: grid;
    gap: 10px;
}

.limitations-list li {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
    position: relative;
    padding-left: 44px;
}

.limitations-list li::before {
    content: '—';
    position: absolute;
    left: 20px;
    top: 16px;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
}

.what-next-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--teal);
    border-radius: var(--radius-md);
    padding: 28px 32px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* IdP block (identity provider) */
.arch-box--idp {
    fill: rgba(45, 212, 168, 0.06);
    stroke: rgba(45, 212, 168, 0.5);
}

/* ============================================
   v3 — ARCHITECTURE DIAGRAM POLISH
   Engineering-drawing chrome + box depth + refined arrows.
   CSS-only — works against all existing .arch-* markup.
   ============================================ */

.arch-wrap {
    position: relative;
    padding: 36px 28px 28px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: visible;
    /* overflow: visible is required so the FIG/REV title labels at top:-7px
       aren't clipped. Mobile breakpoint below re-enables horizontal scroll. */
    /* layered backgrounds: 4 corner brackets + dot grid */
    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14'><path d='M0 14 L0 0 L14 0' stroke='rgba(200,240,49,0.4)' stroke-width='1' fill='none'/></svg>"),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14'><path d='M14 14 L14 0 L0 0' stroke='rgba(200,240,49,0.4)' stroke-width='1' fill='none'/></svg>"),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14'><path d='M0 0 L0 14 L14 14' stroke='rgba(200,240,49,0.4)' stroke-width='1' fill='none'/></svg>"),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14'><path d='M14 0 L14 14 L0 14' stroke='rgba(200,240,49,0.4)' stroke-width='1' fill='none'/></svg>"),
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.035) 1px, transparent 1.5px);
    background-position:
        14px 14px,
        calc(100% - 14px) 14px,
        14px calc(100% - 14px),
        calc(100% - 14px) calc(100% - 14px),
        10px 10px;
    background-size:
        14px 14px,
        14px 14px,
        14px 14px,
        14px 14px,
        20px 20px;
    background-repeat:
        no-repeat,
        no-repeat,
        no-repeat,
        no-repeat,
        repeat;
}

/* Title-block: FIG label overlaying the top border */
.arch-wrap::before {
    content: var(--arch-fig, "FIG \00B7 SYSTEM ARCHITECTURE");
    position: absolute;
    top: -7px;
    left: 28px;
    padding: 0 10px;
    background: var(--bg-card);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    color: var(--text-secondary);
    text-transform: uppercase;
    white-space: nowrap;
}

/* Revision stamp overlaying the top-right border */
.arch-wrap::after {
    content: var(--arch-rev, "REV \00B7 A");
    position: absolute;
    top: -7px;
    right: 28px;
    padding: 0 10px;
    background: var(--bg-card);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    color: var(--text-tertiary);
    text-transform: uppercase;
    white-space: nowrap;
}

/* SVG rendering */
.arch-svg {
    text-rendering: geometricPrecision;
    shape-rendering: geometricPrecision;
    overflow: visible;
}

/* Refined box fills + strokes — solid base fill so boxes have mass against
   the dot-grid canvas; tinted overlays still read clearly via stronger strokes. */
.arch-box { fill: var(--bg-tertiary); stroke: rgba(255, 255, 255, 0.18); stroke-width: 1; }
.arch-box--accent { fill: rgba(200, 240, 49, 0.07); stroke: rgba(200, 240, 49, 0.55); stroke-width: 1; }
.arch-box--err { fill: rgba(240, 112, 80, 0.07); stroke: rgba(240, 112, 80, 0.55); stroke-width: 1; }
.arch-box--db { fill: rgba(77, 139, 240, 0.07); stroke: rgba(77, 139, 240, 0.55); stroke-width: 1; }
.arch-box--queue { fill: rgba(240, 160, 48, 0.07); stroke: rgba(240, 160, 48, 0.6); stroke-width: 1; }
.arch-box--retry { fill: rgba(240, 160, 48, 0.07); stroke: rgba(240, 160, 48, 0.6); stroke-width: 1; }
.arch-box--auth { fill: rgba(45, 212, 168, 0.08); stroke: rgba(45, 212, 168, 0.6); stroke-width: 1; }
.arch-box--idp { fill: rgba(45, 212, 168, 0.08); stroke: rgba(45, 212, 168, 0.65); stroke-width: 1; }
.arch-box--out { fill: rgba(200, 240, 49, 0.1); stroke: var(--accent); stroke-width: 1.25; }

/* Depth: subtle drop-shadow lifts every box off the canvas */
.arch-box,
.arch-box--accent,
.arch-box--err,
.arch-box--db,
.arch-box--queue,
.arch-box--retry,
.arch-box--auth,
.arch-box--idp,
.arch-box--out {
    filter: drop-shadow(0 1.5px 3px rgba(0, 0, 0, 0.4));
    transition: filter 0.35s ease, stroke 0.25s ease;
}

/* Hover: brighten the box being pointed at */
.arch-svg rect:hover {
    filter: drop-shadow(0 2px 8px rgba(200, 240, 49, 0.18));
}

/* Column labels — refined mono tracking */
.arch-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    fill: var(--text-tertiary);
    text-transform: uppercase;
    font-weight: 400;
}

/* Box title typography */
.arch-title,
.arch-title-err {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.005em;
}

.arch-text {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    fill: var(--text-secondary);
}

.arch-sub {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.04em;
    fill: var(--text-tertiary);
}

.arch-bullet {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.02em;
    fill: rgba(234, 232, 226, 0.65);
}

/* Subtle divider line inside accent boxes */
.arch-line-subtle {
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 1;
}

/* Arrow refinement — consistent thinner stroke + subtle accent glow */
.arch-arrow {
    stroke: var(--accent);
    stroke-width: 1.25;
    fill: none;
    opacity: 0.75;
    filter: drop-shadow(0 0 3px rgba(200, 240, 49, 0.22));
}
.arch-arrow--err {
    stroke: var(--coral);
    stroke-width: 1.25;
    opacity: 0.65;
    filter: drop-shadow(0 0 3px rgba(240, 112, 80, 0.18));
}
.arch-arrow--retry {
    stroke: var(--amber);
    stroke-width: 1.25;
    opacity: 0.7;
    filter: drop-shadow(0 0 3px rgba(240, 160, 48, 0.18));
}

@media (max-width: 768px) {
    .arch-wrap { padding: 32px 14px 18px; border-radius: var(--radius-md); }
    .arch-wrap::before, .arch-wrap::after { font-size: 9px; padding: 0 6px; }
    .arch-wrap::before { left: 14px; }
    .arch-wrap::after { right: 14px; }
}

/* Respect reduced motion — disable hover filter transition */
@media (prefers-reduced-motion: reduce) {
    .arch-box,
    .arch-box--accent,
    .arch-box--err,
    .arch-box--db,
    .arch-box--queue,
    .arch-box--retry,
    .arch-box--auth,
    .arch-box--idp,
    .arch-box--out {
        transition: none;
    }
}


/* ============================================
   v3 — ARTISTIC MOTION (additive; no color/font changes)
   ============================================ */

/* 1. Hero ambient field — canvas slot */
.hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    /* DEBUG: mask temporarily removed */
    /* mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, #000 55%, transparent 100%); */
    /* -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, #000 55%, transparent 100%); */
    opacity: 0;
    animation: heroFieldFade 1.4s ease 0.6s forwards;
}
.hero__canvas canvas { display: block; width: 100%; height: 100%; }
@keyframes heroFieldFade { to { opacity: 1; } }

/* 2. Logo prompt caret — terminal blink */
.nav__logo-caret {
    display: inline-block;
    animation: caretBlink 1.1s steps(2, end) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }

/* 3. Nav link underline draw on hover */
.nav__link:not(.nav__link--cta)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: var(--text-secondary);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}
.nav__link:not(.nav__link--cta):hover::after { transform: scaleX(1); }
.nav__link--active::after {
    background: var(--accent);
    transform: scaleX(1);
}

/* 4. Section label rule — expand on enter */
.section__label::before,
.detail-section__label::before,
.hero__eyebrow::before {
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1) 0.1s;
}
.section__label.in-view::before,
.detail-section__label.in-view::before { transform: scaleX(1); }
.hero__eyebrow::before { animation: eyebrowLineDraw 0.7s cubic-bezier(0.65,0,0.35,1) 0.45s forwards; }
@keyframes eyebrowLineDraw { to { transform: scaleX(1); } }

/* 5. Project card top accent — draw left-to-right on hover */
.project-card::before {
    opacity: 1;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1);
}
.project-card:hover::before {
    opacity: 1;
    transform: scaleX(1);
}

/* Card arrow nudge on hover settle */
.project-card:hover .project-card__arrow {
    animation: arrowNudge 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s forwards;
}
@keyframes arrowNudge {
    0%   { transform: translate(-4px, 4px); }
    60%  { transform: translate(2px, -2px); }
    100% { transform: translate(0, 0); }
}

/* 6. Stat values — momentary ghost line under each as it counts up */
.project-card__stat-value.counting,
.detail-stat__value.counting {
    position: relative;
}
.project-card__stat-value.counting::after,
.detail-stat__value.counting::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    height: 1px;
    width: 0;
    background: var(--card-accent, var(--accent));
    animation: statUnderline 1.4s cubic-bezier(0.65, 0, 0.35, 1) forwards;
    opacity: 0.4;
}
@keyframes statUnderline {
    0%   { width: 0; opacity: 0.7; }
    70%  { width: 100%; opacity: 0.4; }
    100% { width: 100%; opacity: 0; }
}

/* 7. Magnetic primary buttons — JS sets --mx / --my, CSS applies */
.btn--primary,
.nav__link--cta {
    --mx: 0px;
    --my: 0px;
    transition:
        background var(--transition),
        border-color var(--transition),
        color var(--transition),
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn--primary:hover,
.nav__link--cta:hover {
    transform: translate(var(--mx), calc(var(--my) - 1px));
}

/* Typewriter cursor — blinking caret after the cycling accent text */
.hero__title-accent[data-typewriter]::after {
    content: '';
    display: inline-block;
    width: 0.05em;
    height: 0.82em;
    background: var(--accent);
    margin-left: 0.08em;
    vertical-align: -0.06em;
    animation: heroCaretBlink 0.85s steps(2, end) infinite;
    box-shadow: 0 0 12px rgba(200, 240, 49, 0.55);
}
@keyframes heroCaretBlink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
    .hero__title-accent[data-typewriter]::after { display: none; }
}

/* 8. Hero title accent — soft underline-glow on settle */
.hero__title-accent {
    background-image: linear-gradient(to right, var(--accent), var(--accent));
    background-repeat: no-repeat;
    background-size: 0% 1px;
    background-position: 0 100%;
    padding-bottom: 4px;
    animation: titleAccentUnderline 1.1s cubic-bezier(0.65, 0, 0.35, 1) 1.1s forwards;
}
@keyframes titleAccentUnderline {
    to { background-size: 100% 1px; }
}

/* 9. Skill tag — settle bob on hover */
.skill-tag { transform-origin: center; }
.skill-tag:hover {
    transform: translateY(-1px);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color var(--transition), color var(--transition), background var(--transition);
}

/* Reduced motion — disable ambient/loops */
@media (prefers-reduced-motion: reduce) {
    .hero__canvas { animation: none; opacity: 0.5; }
    .nav__logo-caret { animation: none; }
    .hero__title-accent { animation: none; background-size: 100% 1px; }
    .hero__eyebrow::before { animation: none; transform: scaleX(1); }
    .section__label::before,
    .detail-section__label::before { transform: scaleX(1); }
    .project-card__stat-value.counting::after,
    .detail-stat__value.counting::after { animation: none; display: none; }
}

/* ============================================
   LAB PAGES
   ============================================ */

.lab-hero {
    padding: 100px 32px 60px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.lab-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.lab-hero__subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.75;
}

.lab-status-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.lab-pill {
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 6px;
}

.lab-pill--live {
    background: rgba(45, 212, 168, 0.08);
    color: var(--teal);
    border: 1px solid var(--teal);
}

.lab-pill--stale {
    background: rgba(240, 112, 80, 0.08);
    color: var(--coral);
    border: 1px solid var(--coral);
}

.lab-pill--offline {
    background: rgba(138, 136, 127, 0.08);
    color: var(--text-tertiary);
    border: 1px solid var(--border);
}

.lab-pill__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s ease-in-out infinite;
}

.lab-pill--live .lab-pill__dot {
    animation: pulse 1s ease-in-out infinite;
}

.printers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.printer-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all var(--transition);
}

.printer-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.printer-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.printer-card__name {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.printer-card__model {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-tertiary);
}

.printer-card__state {
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.printer-card.connected .printer-card__state {
    color: var(--teal);
    border: 1px solid var(--teal);
}

.printer-card.printing .printer-card__state {
    color: var(--amber);
    border: 1px solid var(--amber);
}

.printer-card.error .printer-card__state {
    color: var(--coral);
    border: 1px solid var(--coral);
}

/* ============================================
   RESPONSIVE ARCHITECTURE DIAGRAMS — MOBILE
   ============================================ */

@media (max-width: 768px) {
    .arch-wrap {
        padding: 16px;
        margin: 0 -16px;
        border-radius: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .arch-svg {
        width: 100%;
        height: auto;
        max-width: 100%;
        min-width: 0;
        display: block;
    }
}

@media (max-width: 640px) {
    .arch-wrap {
        padding: 16px;
        margin: 0 -16px;
        border-radius: 0;
    }

    .arch-svg {
        min-width: 0;
        width: 100%;
        height: auto;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: visible;
    }

    /* Scale down text sizes for mobile */
    .arch-label {
        font-size: 9px;
    }

    .arch-title {
        font-size: 11px;
    }

    .arch-sub {
        font-size: 10px;
    }

    .arch-bullet {
        font-size: 9px;
    }

    /* Reduce arrow thickness on mobile */
    .arch-arrow {
        stroke-width: 1.2;
    }

    .arch-arrow--err {
        stroke-width: 1.2;
    }
}

@media (max-width: 480px) {
    .arch-wrap {
        padding: 12px;
        margin: 0 -12px;
    }

    .arch-label {
        font-size: 8px;
    }

    .arch-title {
        font-size: 10px;
    }

    .arch-sub {
        font-size: 9px;
    }

    .arch-bullet {
        font-size: 8px;
    }

    .arch-text {
        font-size: 10px;
    }
}
