:root {
  --bg: #050606;
  --bg-soft: #090c0b;
  --panel: rgba(10, 15, 13, 0.86);
  --panel-2: #0d1210;
  --text: #f4f7f5;
  --muted: #8f9d96;
  --line: rgba(255,122,4, 0.18);
  --acid: #ff7a04;
  --acid-2: #ff9b3d;
  --cyan: #ffb15d;
  --magenta: #ff4d00;
  --danger: #ff4057;
  --radius: 2px;
  --shadow: 0 0 0 1px rgba(255,122,4,.08), 0 22px 70px rgba(0,0,0,.45);
  --max: 1220px;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 5%, rgba(255,122,4, .07), transparent 28rem),
    radial-gradient(circle at 88% 32%, rgba(255,177,93, .045), transparent 26rem),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
img { max-width: 100%; display: block; }
::selection { color: var(--bg); background: var(--acid); }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 9999;
  background: var(--acid);
  color: var(--bg);
  padding: 12px 16px;
  font-weight: 800;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,122,4,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,122,4,.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { position: relative; padding: 118px 0; }
.section-tint {
  background: linear-gradient(180deg, rgba(255,122,4,.018), rgba(255,177,93,.012));
  border-block: 1px solid rgba(255,122,4,.08);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: 74px;
  border-bottom: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, backdrop-filter .2s ease;
}
.site-header.scrolled {
  background: rgba(5, 6, 6, .88);
  border-color: rgba(255,122,4,.14);
  backdrop-filter: blur(16px);
}
.nav-shell { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: max-content; font-family: var(--sans); font-weight: 800; letter-spacing: -.025em; }
.brand-logo { width: 42px; height: 42px; object-fit: contain; flex: 0 0 auto; filter: drop-shadow(0 0 7px rgba(255,122,4,.48)); transition: filter .2s ease, transform .2s ease; }
.brand:hover .brand-logo { filter: drop-shadow(0 0 12px rgba(255,122,4,.82)); transform: scale(1.035); }
.brand-text { color: var(--text); font-size: .95rem; white-space: nowrap; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.main-nav a { position: relative; color: #bbc5c0; font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.main-nav a::before { content: ""; position: absolute; inset: auto 0 -8px; height: 1px; background: var(--acid); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--acid); }
.main-nav a:hover::before, .main-nav a.active::before { transform: scaleX(1); }
.nav-cta { border: 1px solid var(--acid); padding: 10px 14px; color: var(--acid); font-family: var(--mono); font-size: .74rem; font-weight: 800; transition: .2s ease; }
.nav-cta:hover { color: var(--bg); background: var(--acid); box-shadow: 0 0 24px rgba(255,122,4,.2); }
.menu-toggle { display: none; margin-left: auto; padding: 8px; background: transparent; border: 0; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--acid); transition: .2s ease; }

.hero { min-height: 100vh; padding-top: 148px; display: grid; align-content: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 610px; height: 610px; right: -180px; top: 30px; border: 1px solid rgba(255,122,4,.08); border-radius: 50%; box-shadow: inset 0 0 100px rgba(255,122,4,.025); }
.hero::after { content: "DV//QUALITY"; position: absolute; right: -4vw; bottom: 8vh; color: rgba(255,255,255,.018); font-family: var(--mono); font-size: clamp(5rem, 13vw, 13rem); font-weight: 900; writing-mode: vertical-rl; letter-spacing: -.08em; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.eyebrow, .section-index, .hero-kicker { font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 26px; color: var(--acid); font-size: .75rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 5px rgba(255,122,4,.1), 0 0 20px rgba(255,122,4,.85); animation: pulse 2s infinite; }
.hero-kicker { margin-bottom: 12px; color: var(--muted); font-size: .72rem; }
.hero h1 { position: relative; max-width: 840px; margin: 0; font-size: clamp(4.1rem, 9vw, 8.8rem); line-height: .82; letter-spacing: -.085em; font-weight: 900; text-transform: uppercase; }
.hero h1::first-line { color: var(--text); }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.glitch:hover::before { opacity: .7; color: var(--cyan); transform: translate(3px,-2px); clip-path: inset(12% 0 54% 0); }
.glitch:hover::after { opacity: .65; color: var(--magenta); transform: translate(-3px,2px); clip-path: inset(58% 0 10% 0); }
.hero-role { margin: 28px 0 14px; color: var(--acid); font-family: var(--mono); font-size: clamp(.86rem, 1.45vw, 1.05rem); font-weight: 800; letter-spacing: .06em; }
.hero-role span { color: #4e5a54; }
.hero-description { max-width: 700px; margin: 0; color: #b5c0ba; font-size: clamp(1rem, 1.5vw, 1.14rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 26px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 0 22px; border: 1px solid rgba(255,122,4,.5); font-family: var(--mono); font-size: .78rem; font-weight: 900; letter-spacing: .055em; transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--bg); background: var(--acid); box-shadow: 0 8px 30px rgba(255,122,4,.13); }
.button-primary:hover { background: #ff9b3d; box-shadow: 0 12px 34px rgba(255,122,4,.22); }
.button-ghost { color: var(--acid); background: rgba(255,122,4,.025); }
.button-ghost:hover { color: var(--bg); background: var(--acid); }
.social-row { display: flex; flex-wrap: wrap; gap: 18px; }
.social-row a { color: var(--muted); font-family: var(--mono); font-size: .74rem; text-transform: uppercase; }
.social-row a:hover { color: var(--cyan); }

.hero-terminal { position: relative; background: rgba(6, 10, 8, .88); border: 1px solid rgba(255,122,4,.23); box-shadow: var(--shadow); transform: perspective(1000px) rotateY(-2deg); }
.hero-terminal::before { content: ""; position: absolute; inset: -7px 22px 7px -7px; z-index: -1; border: 1px solid rgba(255,177,93,.12); }
.terminal-topbar, .terminal-footer { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; color: #75827c; background: rgba(255,255,255,.018); font-family: var(--mono); font-size: .65rem; text-transform: uppercase; }
.terminal-topbar { border-bottom: 1px solid rgba(255,122,4,.12); }
.terminal-footer { border-top: 1px solid rgba(255,122,4,.12); }
.terminal-dots { display: flex; gap: 6px; }
.terminal-dots i { width: 8px; height: 8px; border-radius: 50%; background: #39413d; }
.terminal-dots i:first-child { background: var(--danger); }
.terminal-dots i:nth-child(2) { background: #ffbc3f; }
.terminal-dots i:last-child { background: var(--acid); }
.terminal-body { min-height: 530px; padding: 30px; display: grid; align-content: center; gap: 28px; }
.identity-core { position: relative; width: 208px; height: 208px; margin: 0 auto; display: grid; place-items: center; overflow: hidden; }
.identity-monogram { position: relative; z-index: 3; display: grid; place-items: center; width: 106px; height: 106px; color: var(--bg); background: var(--acid); font-family: var(--mono); font-size: 2.9rem; font-weight: 900; clip-path: polygon(20% 0, 100% 0, 100% 80%, 80% 100%, 0 100%, 0 20%); box-shadow: 0 0 40px rgba(255,122,4,.2); }
.identity-ring { position: absolute; border: 1px solid rgba(255,122,4,.25); border-radius: 50%; animation: spin 14s linear infinite; }
.ring-one { inset: 8px; border-style: dashed; }
.ring-two { inset: 25px; border-color: rgba(255,177,93,.24); animation-direction: reverse; animation-duration: 10s; }
.ring-three { inset: 49px; border-color: rgba(255,77,0,.19); border-style: dotted; animation-duration: 7s; }
.scan-line { position: absolute; inset: 0; z-index: 4; background: linear-gradient(transparent 45%, rgba(255,122,4,.13) 49%, transparent 53%); animation: scan 3.6s linear infinite; pointer-events: none; }
.terminal-output { font-family: var(--mono); font-size: .78rem; }
.terminal-output p { margin: 6px 0; }
.prompt { color: var(--acid); font-weight: 900; }
.output { padding-left: 20px; color: #d9e1dd; }
.output.accent { color: var(--cyan); }
.terminal-cursor { animation: blink 1s steps(1) infinite; }
.metrics { margin-top: 72px; display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid rgba(255,122,4,.14); }
.metrics article { position: relative; padding: 26px 22px; display: flex; align-items: baseline; gap: 10px; }
.metrics article:not(:last-child)::after { content: ""; position: absolute; top: 22%; right: 0; width: 1px; height: 56%; background: rgba(255,122,4,.14); }
.metrics strong { color: var(--acid); font-family: var(--mono); font-size: clamp(2.2rem, 4vw, 3.5rem); line-height: 1; }
.metrics span { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }

.section-heading { max-width: 780px; margin-bottom: 54px; }
.section-index { margin: 0 0 14px; color: var(--acid); font-size: .72rem; }
.section-heading h2, .contact-copy h2 { margin: 0; font-size: clamp(2.8rem, 6vw, 5.2rem); line-height: .94; letter-spacing: -.065em; text-transform: uppercase; }
.section-heading h2 span, .contact-copy h2 span { color: var(--acid); }
.section-heading > p:last-child, .contact-copy > p { max-width: 680px; margin: 20px 0 0; color: var(--muted); }

.panel { position: relative; background: var(--panel); border: 1px solid rgba(255,122,4,.14); box-shadow: var(--shadow); }
.panel-label { position: absolute; top: -12px; left: 18px; padding: 3px 9px; color: var(--bg); background: var(--acid); font-family: var(--mono); font-size: .65rem; font-weight: 900; }
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: stretch; }
.about-copy { padding: 44px; }
.about-copy p { color: #aeb8b3; }
.about-copy .lead { color: var(--text); font-size: 1.22rem; line-height: 1.55; }
.code-note { margin-top: 30px; padding: 14px 16px; color: #c6cfca; background: #050807; border-left: 2px solid var(--acid); font-family: var(--mono); font-size: .78rem; }
.code-note span { color: var(--magenta); }
.code-note em { color: var(--cyan); font-style: normal; }
.capability-stack { display: grid; gap: 13px; }
.capability { padding: 17px 18px; background: rgba(13,18,16,.8); border: 1px solid rgba(255,255,255,.055); }
.capability-head { display: flex; justify-content: space-between; margin-bottom: 10px; font-family: var(--mono); font-size: .73rem; }
.capability-head b { color: var(--acid); }
.progress { height: 4px; background: #202724; overflow: hidden; }
.progress i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--acid), var(--cyan)); box-shadow: 0 0 12px rgba(255,122,4,.5); transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.capability-stack.is-visible .progress i { width: var(--value); }
.skills-cloud { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 9px; }
.skills-cloud span { padding: 7px 10px; border: 1px solid rgba(255,122,4,.15); color: #a6b1ab; background: rgba(255,122,4,.025); font-family: var(--mono); font-size: .68rem; transition: .18s ease; }
.skills-cloud span:hover { color: var(--bg); background: var(--acid); transform: translateY(-2px); }

.project-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filter-button { padding: 9px 13px; border: 1px solid rgba(255,122,4,.18); background: transparent; color: var(--muted); font-family: var(--mono); font-size: .68rem; cursor: pointer; }
.filter-button:hover, .filter-button.active { color: var(--bg); background: var(--acid); border-color: var(--acid); }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project-card { position: relative; min-height: 370px; padding: 26px; display: flex; flex-direction: column; background: rgba(7, 11, 9, .78); border: 1px solid rgba(255,122,4,.12); overflow: hidden; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, opacity .2s ease; }
.project-card::after { content: ""; position: absolute; width: 90px; height: 90px; right: -45px; bottom: -45px; border: 1px solid rgba(255,122,4,.22); transform: rotate(45deg); }
.project-card:hover { transform: translateY(-6px); border-color: rgba(255,122,4,.42); box-shadow: 0 24px 60px rgba(0,0,0,.32); }
.project-card.hidden { display: none; }
.project-card.featured { grid-column: span 2; background: linear-gradient(135deg, rgba(255,122,4,.09), rgba(255,177,93,.025)); }
.project-meta { display: flex; justify-content: space-between; color: #657169; font-family: var(--mono); font-size: .62rem; }
.project-symbol { width: 64px; height: 64px; margin: 32px 0 22px; display: grid; place-items: center; color: var(--bg); background: var(--acid); font-family: var(--mono); font-weight: 900; font-size: 1.35rem; clip-path: polygon(14px 0,100% 0,100% calc(100% - 14px),calc(100% - 14px) 100%,0 100%,0 14px); }
.project-card h3 { margin: 0 0 10px; font-size: 1.55rem; letter-spacing: -.03em; }
.project-card p { margin: 0 0 20px; color: var(--muted); font-size: .91rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }
.project-tags span { color: var(--cyan); font-family: var(--mono); font-size: .62rem; }
.project-tags span::before { content: "#"; }
.project-card > a { margin-top: 20px; color: var(--acid); font-family: var(--mono); font-size: .72rem; font-weight: 900; }

.experience-layout { display: grid; grid-template-columns: 330px 1fr; gap: 54px; align-items: start; }
.experience-summary { position: sticky; top: 110px; padding: 38px 28px 28px; }
.experience-summary pre { margin: 0 0 24px; white-space: pre-wrap; color: #a9b4ae; font-family: var(--mono); font-size: .73rem; line-height: 1.8; }
.text-link { color: var(--acid); font-family: var(--mono); font-size: .7rem; font-weight: 900; }
.cv-links { display: grid; gap: 10px; }
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 132px; top: 0; bottom: 0; width: 1px; background: linear-gradient(var(--acid), rgba(255,122,4,.06)); }
.timeline-item { display: grid; grid-template-columns: 110px 1fr; gap: 44px; padding: 0 0 38px; }
.timeline-date { padding-top: 8px; color: var(--acid); font-family: var(--mono); font-size: .68rem; text-align: right; }
.timeline-content { position: relative; padding: 0 0 34px; border-bottom: 1px solid rgba(255,255,255,.07); }
.timeline-content::before { content: ""; position: absolute; left: -51px; top: 11px; width: 11px; height: 11px; background: var(--bg); border: 2px solid var(--acid); box-shadow: 0 0 18px rgba(255,122,4,.4); transform: rotate(45deg); }
.timeline-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.timeline-head h3 { margin: 0; font-size: 1.5rem; }
.timeline-head span { color: var(--cyan); font-family: var(--mono); font-size: .68rem; text-transform: uppercase; }
.timeline-content p { margin: 12px 0; color: var(--muted); }
.tool-line { color: #748078; font-family: var(--mono); font-size: .66rem; }

.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.cert-card { position: relative; min-height: 220px; padding: 24px; display: flex; flex-direction: column; background: rgba(7,11,9,.78); border: 1px solid rgba(255,122,4,.12); transition: transform .2s ease, border-color .2s ease; overflow: hidden; }
.cert-card::after { content: "CERT"; position: absolute; right: -2px; bottom: -18px; color: rgba(255,255,255,.025); font-family: var(--mono); font-size: 3.6rem; font-weight: 900; }
.cert-card:hover { transform: translateY(-4px); border-color: rgba(255,177,93,.35); }
.cert-year { color: var(--acid); font-family: var(--mono); font-size: .68rem; }
.cert-card h3 { margin: 24px 0 8px; font-size: 1.05rem; line-height: 1.35; }
.cert-card p { margin: 0; color: var(--muted); font-size: .83rem; }
.cert-card i { margin-top: auto; color: #56625b; font-family: var(--mono); font-size: .62rem; font-style: normal; }
.speaker-strip { margin-top: 26px; padding: 32px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; background: linear-gradient(90deg, rgba(255,122,4,.09), rgba(255,177,93,.025)); border: 1px solid rgba(255,122,4,.18); }
.live-badge { display: inline-block; padding: 4px 8px; color: var(--bg); background: var(--acid); font-family: var(--mono); font-size: .63rem; font-weight: 900; }
.speaker-strip h3 { margin: 16px 0 0; font-size: 1.55rem; line-height: 1.2; }
.speaker-strip ul { margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; list-style: none; color: #aeb8b3; font-family: var(--mono); font-size: .72rem; }
.speaker-strip li::before { content: "> "; color: var(--acid); }

.testimonials { position: relative; min-height: 340px; }
.testimonial { position: absolute; inset: 0; padding: 46px; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-content: center; background: rgba(8,12,10,.82); border: 1px solid rgba(255,122,4,.14); opacity: 0; visibility: hidden; transform: translateX(18px); transition: opacity .28s ease, transform .28s ease, visibility .28s; }
.testimonial.active { opacity: 1; visibility: visible; transform: translateX(0); }
.quote-mark { color: var(--acid); font-family: Georgia, serif; font-size: 7rem; line-height: .7; }
.testimonial blockquote { margin: 0; max-width: 880px; font-size: clamp(1.18rem, 2.2vw, 1.65rem); line-height: 1.5; letter-spacing: -.02em; }
.testimonial-author { grid-column: 2; display: flex; align-items: center; gap: 13px; }
.testimonial-author > span { width: 42px; height: 42px; display: grid; place-items: center; color: var(--bg); background: var(--acid); font-family: var(--mono); font-weight: 900; }
.testimonial-author div { display: grid; }
.testimonial-author small { color: var(--muted); }
.slider-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.slider-controls button { padding: 8px 0; border: 0; background: transparent; color: var(--acid); font-family: var(--mono); font-size: .7rem; cursor: pointer; }
.slider-dots { display: flex; gap: 8px; }
.slider-dots button { width: 26px; height: 3px; padding: 0; background: #2a342e; }
.slider-dots button.active { background: var(--acid); }

.notes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.note-card { min-height: 420px; padding: 24px; display: flex; flex-direction: column; background: rgba(7,11,9,.78); border: 1px solid rgba(255,122,4,.12); transition: .2s ease; overflow: hidden; }
.note-card:hover { transform: translateY(-4px); border-color: rgba(255,122,4,.38); background: rgba(255,122,4,.04); }
.note-card > .note-card-date { color: var(--acid); font-family: var(--mono); font-size: .66rem; }
.note-card h3 { margin: 18px 0 10px; font-size: 1.15rem; line-height: 1.35; }
.note-card p { margin: 0; color: var(--muted); font-size: .85rem; }
.note-card b { margin-top: auto; color: var(--cyan); font-family: var(--mono); font-size: .66rem; }
.note-card-media { display: block; height: 175px; margin: -24px -24px 20px; overflow: hidden; border-bottom: 1px solid rgba(255,122,4,.18); background: #090909; }
.note-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.9) contrast(1.04); transition: transform .35s ease, filter .35s ease; }
.note-card:hover .note-card-media img { transform: scale(1.035); filter: saturate(1.05) contrast(1.06); }


.contact-section { overflow: hidden; }
.contact-section::before { content: "CONTACT"; position: absolute; left: 50%; bottom: -6vw; transform: translateX(-50%); color: rgba(255,122,4,.025); font-family: var(--mono); font-size: 18vw; font-weight: 900; letter-spacing: -.08em; }
.contact-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 58px; align-items: center; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.contact-console { border: 1px solid rgba(255,122,4,.22); background: rgba(7,11,9,.82); box-shadow: var(--shadow); }
.console-row { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 17px 20px; border-bottom: 1px solid rgba(255,255,255,.06); }
.console-row:last-child { border-bottom: 0; }
.console-row > span { color: var(--acid); font-family: var(--mono); font-size: .68rem; }
.console-row a, .console-row b { color: #bac4bf; font-size: .85rem; font-weight: 500; word-break: break-word; }
.online-text { color: var(--cyan) !important; }
.online-text::before { content: "● "; color: var(--acid); }

.site-footer { padding: 26px 0; border-top: 1px solid rgba(255,122,4,.12); background: #040505; }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; color: #6f7a74; font-family: var(--mono); font-size: .65rem; }
.footer-grid p { margin: 0; text-align: center; }
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 900; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--acid); color: var(--acid); background: rgba(5,6,6,.9); opacity: 0; visibility: hidden; transform: translateY(10px); cursor: pointer; transition: .2s ease; }
.to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { color: var(--bg); background: var(--acid); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes pulse { 50% { opacity: .55; box-shadow: 0 0 0 8px rgba(255,122,4,.04), 0 0 28px rgba(255,122,4,.72); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scan { from { transform: translateY(-100%); } to { transform: translateY(100%); } }
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 1080px) {
  .main-nav { gap: 16px; }
  .nav-cta { display: none; }
  .hero-grid { grid-template-columns: 1fr 420px; gap: 40px; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .section { padding: 88px 0; }
  .menu-toggle { display: block; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .main-nav { position: fixed; inset: 74px 0 0; padding: 36px 24px; display: grid; align-content: start; gap: 0; background: rgba(5,6,6,.97); transform: translateX(100%); transition: transform .22s ease; }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { padding: 18px 0; border-bottom: 1px solid rgba(255,122,4,.1); font-size: .9rem; }
  .hero { min-height: auto; padding-top: 130px; }
  .hero-grid, .about-grid, .contact-grid, .speaker-strip { grid-template-columns: 1fr; }
  .hero-terminal { transform: none; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metrics article:nth-child(2)::after { display: none; }
  .experience-layout { grid-template-columns: 1fr; gap: 44px; }
  .experience-summary { position: relative; top: 0; }
  .notes-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .site-header { height: 66px; }
  .main-nav { inset: 66px 0 0; }
  .hero { padding-top: 112px; }
  .hero h1 { font-size: clamp(3.4rem, 18vw, 5rem); }
  .hero-role { line-height: 1.7; }
  .hero-actions .button { width: 100%; }
  .terminal-body { min-height: 480px; padding: 22px 18px; }
  .identity-core { width: 176px; height: 176px; }
  .identity-monogram { width: 90px; height: 90px; font-size: 2.25rem; }
  .metrics { margin-top: 48px; }
  .metrics article { padding: 20px 12px; display: grid; gap: 6px; }
  .metrics strong { font-size: 2.2rem; }
  .metrics span { font-size: .64rem; }
  .section-heading { margin-bottom: 38px; }
  .section-heading h2, .contact-copy h2 { font-size: clamp(2.55rem, 15vw, 4rem); }
  .about-copy { padding: 34px 22px 26px; }
  .projects-grid, .cert-grid, .notes-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: auto; }
  .timeline::before { left: 8px; }
  .timeline-item { grid-template-columns: 1fr; gap: 10px; padding-left: 32px; }
  .timeline-date { padding: 0; text-align: left; }
  .timeline-content::before { left: -30px; top: -24px; }
  .speaker-strip { padding: 24px; }
  .speaker-strip ul { grid-template-columns: 1fr; }
  .testimonials { min-height: 500px; }
  .testimonial { padding: 30px 22px; grid-template-columns: 1fr; gap: 18px; }
  .quote-mark { font-size: 5rem; }
  .testimonial-author { grid-column: 1; }
  .console-row { grid-template-columns: 90px 1fr; padding: 15px 14px; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-grid .brand { justify-content: center; }
}

@media (max-width: 600px) {
  .brand { gap: 8px; }
  .brand-logo { width: 36px; height: 36px; }
  .brand-text { font-size: .82rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Internal content pages */
.subpage-header { padding-top: 128px; padding-bottom: 52px; border-bottom: 1px solid rgba(255,122,4,.12); background: linear-gradient(180deg, rgba(255,122,4,.035), transparent); }
.article-back { display: inline-block; margin-bottom: 24px; color: var(--acid); font-family: var(--mono); font-size: .7rem; font-weight: 900; }
.article-title { max-width: 980px; margin: 0; font-size: clamp(2.8rem, 7vw, 6.2rem); line-height: .95; letter-spacing: -.065em; text-transform: uppercase; }
.article-meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 14px 26px; color: var(--muted); font-family: var(--mono); font-size: .68rem; }
.article-meta span::before { content: "> "; color: var(--acid); }
.article-shell { width: min(calc(100% - 40px), 920px); margin-inline: auto; }
.article-body { padding: 66px 0 110px; }
.article-body .lead { margin-top: 0; color: var(--text); font-size: clamp(1.25rem, 2.6vw, 1.75rem); line-height: 1.55; }
.article-body p, .article-body li { color: #adb8b2; }
.article-body h2 { margin: 52px 0 16px; color: var(--acid); font-size: 1.6rem; text-transform: uppercase; letter-spacing: -.025em; }
.article-body a { color: var(--cyan); text-decoration: underline; text-underline-offset: 4px; }
.article-callout { margin: 34px 0; padding: 22px 24px; border: 1px solid rgba(255,122,4,.2); border-left: 3px solid var(--acid); background: rgba(255,122,4,.035); }
.article-callout strong { color: var(--acid); font-family: var(--mono); }
.article-share { margin-top: 54px; padding-top: 24px; border-top: 1px solid rgba(255,122,4,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.article-share span { color: var(--muted); font-family: var(--mono); font-size: .7rem; }
.article-share a { text-decoration: none; }
.subpage-nav { position: relative; background: rgba(5,6,6,.96); border-bottom: 1px solid rgba(255,122,4,.14); }
.subpage-nav .nav-shell { height: 74px; }
.subpage-nav .main-nav { margin-left: auto; }
.linktree-page { min-height: 100vh; padding: 70px 0; display: grid; place-items: center; }
.linktree-card { width: min(calc(100% - 28px), 620px); padding: 38px; border: 1px solid rgba(255,122,4,.22); background: rgba(7,11,9,.88); box-shadow: var(--shadow); }
.linktree-avatar { width: 96px; height: 96px; margin: 0 auto 22px; display: grid; place-items: center; color: var(--bg); background: var(--acid); font-family: var(--mono); font-size: 2rem; font-weight: 900; clip-path: polygon(18px 0,100% 0,100% calc(100% - 18px),calc(100% - 18px) 100%,0 100%,0 18px); }
.linktree-card h1 { margin: 0; text-align: center; font-size: 2rem; }
.linktree-card > p { margin: 6px 0 28px; color: var(--muted); text-align: center; }
.link-list { display: grid; gap: 11px; }
.link-list a { padding: 15px 16px; display: flex; justify-content: space-between; border: 1px solid rgba(255,122,4,.16); background: rgba(255,122,4,.025); font-family: var(--mono); font-size: .76rem; transition: .18s ease; }
.link-list a:hover { color: var(--bg); background: var(--acid); transform: translateX(4px); }

@media (max-width: 600px) {
  .subpage-header { padding-top: 105px; }
  .article-shell { width: min(calc(100% - 28px), 920px); }
  .linktree-card { padding: 28px 20px; }
}

@media (max-width: 860px) {
  .subpage-nav .main-nav { display: none; }
}

/* ========================================================================== */
/* Portfolio 2.0 — complete experience, credentials and portrait              */
/* ========================================================================== */

.hero-portrait {
  position: relative;
  width: min(100%, 520px);
  margin: 0 0 0 auto;
  border: 1px solid rgba(255,122,4,.34);
  background: #070a09;
  box-shadow: var(--shadow), 22px 22px 0 rgba(255,177,93,.035);
  isolation: isolate;
  overflow: hidden;
}
.hero-portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,122,4,.06) 1px, transparent 1px),
    linear-gradient(rgba(255,122,4,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mix-blend-mode: screen;
}
.hero-portrait::after {
  content: "ID_VERIFIED";
  position: absolute;
  z-index: 5;
  right: 18px;
  bottom: 56px;
  padding: 5px 8px;
  border: 1px solid rgba(255,122,4,.6);
  color: var(--acid);
  background: rgba(5,6,6,.78);
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .1em;
}
.portrait-topbar,
.hero-portrait figcaption {
  position: relative;
  z-index: 6;
  min-height: 38px;
  padding: 9px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #7f8b85;
  background: rgba(5,6,6,.95);
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .07em;
}
.portrait-topbar { border-bottom: 1px solid rgba(255,122,4,.2); }
.hero-portrait figcaption { border-top: 1px solid rgba(255,122,4,.2); }
.portrait-status { color: var(--danger); }
.portrait-status::before { content: "● "; animation: blink 1.2s infinite; }
.hero-portrait picture { position: relative; display: block; aspect-ratio: 1 / 1.06; overflow: hidden; }
.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 37%;
  filter: contrast(1.03) saturate(.9);
}
.portrait-scan {
  position: absolute;
  z-index: 4;
  inset: 38px 0 38px;
  pointer-events: none;
  background: linear-gradient(transparent 0, transparent 48%, rgba(255,122,4,.12) 49%, rgba(255,122,4,.02) 51%, transparent 52%);
  background-size: 100% 130px;
  animation: portraitScan 5s linear infinite;
}
.portrait-corner { position: absolute; z-index: 7; width: 38px; height: 38px; pointer-events: none; }
.corner-a { left: 12px; top: 50px; border-left: 2px solid var(--acid); border-top: 2px solid var(--acid); }
.corner-b { right: 12px; bottom: 50px; border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); }
@keyframes portraitScan { from { background-position: 0 -130px; } to { background-position: 0 130px; } }

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.knowledge-card {
  position: relative;
  min-height: 250px;
  padding: 30px;
  border: 1px solid rgba(255,122,4,.13);
  background: linear-gradient(145deg, rgba(12,18,15,.9), rgba(6,9,8,.82));
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.knowledge-card::after {
  content: attr(data-label);
  position: absolute;
  right: -10px;
  bottom: -30px;
  color: rgba(255,255,255,.018);
  font-family: var(--mono);
  font-size: 5rem;
  font-weight: 900;
}
.knowledge-card:hover { transform: translateY(-3px); border-color: rgba(255,177,93,.34); background: rgba(10,16,13,.96); }
.knowledge-card > span { color: var(--acid); font-family: var(--mono); font-size: .68rem; }
.knowledge-card h3 { margin: 20px 0 10px; font-size: 1.25rem; }
.knowledge-card p { margin: 0 0 22px; color: var(--muted); font-size: .9rem; }
.knowledge-card .tool-line { margin-top: auto; }

/* Timeline: years are given a dedicated column and can no longer be covered. */
.timeline { position: relative; }
.timeline::before {
  left: 151px;
  top: 8px;
  bottom: 18px;
  width: 1px;
  background: linear-gradient(var(--acid), rgba(255,177,93,.28), rgba(255,122,4,.04));
}
.timeline-item {
  grid-template-columns: 122px minmax(0, 1fr);
  gap: 58px;
  padding: 0 0 28px;
}
.timeline-date {
  position: relative;
  z-index: 3;
  align-self: start;
  padding: 7px 9px;
  border: 1px solid rgba(255,122,4,.14);
  color: var(--acid);
  background: #080b09;
  text-align: right;
  white-space: nowrap;
  box-shadow: 0 0 0 7px rgba(5,6,6,.88);
}
.timeline-date span,
.timeline-date small { display: block; line-height: 1.25; }
.timeline-date span { font-size: .74rem; font-weight: 900; letter-spacing: .08em; }
.timeline-date small { margin-top: 4px; color: var(--cyan); font-size: .56rem; letter-spacing: .1em; }
.timeline-content { padding: 0; border-bottom: 0; min-width: 0; }
.timeline-content::before {
  left: -65px;
  top: 17px;
  width: 12px;
  height: 12px;
  z-index: 4;
  background: #050606;
}
.experience-details {
  border: 1px solid rgba(255,122,4,.13);
  background: rgba(7,11,9,.82);
  transition: border-color .22s ease, background .22s ease, box-shadow .22s ease;
}
.experience-details[open] {
  border-color: rgba(255,122,4,.36);
  background: rgba(9,14,11,.96);
  box-shadow: 0 16px 60px rgba(0,0,0,.28);
}
.experience-details summary {
  position: relative;
  padding: 25px 62px 25px 26px;
  display: block;
  cursor: pointer;
  list-style: none;
}
.experience-details summary::-webkit-details-marker { display: none; }
.experience-details summary::marker { content: ""; }
.experience-details summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.experience-details summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 24px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,122,4,.45);
  color: var(--acid);
  font-family: var(--mono);
  line-height: 1;
  transition: transform .2s ease, color .2s ease, background .2s ease;
}
.experience-details[open] summary::after { content: "−"; color: var(--bg); background: var(--acid); transform: rotate(180deg); }
.experience-details summary > div { min-width: 0; }
.detail-toggle {
  position: absolute;
  right: 61px;
  bottom: 19px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: .56rem;
  font-weight: 900;
  letter-spacing: .07em;
}
.experience-expanded {
  padding: 28px 26px 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, .7fr);
  gap: 28px;
  border-top: 1px solid rgba(255,122,4,.13);
  animation: detailOpen .24s ease both;
}
.experience-expanded-wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.experience-expanded h4 {
  margin: 0 0 13px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.experience-expanded p { margin: 0; color: #aab5af; }
.experience-expanded ul { margin: 0; padding: 0; list-style: none; }
.experience-expanded li { position: relative; padding: 0 0 9px 18px; color: #aeb9b3; font-size: .88rem; }
.experience-expanded li::before { content: ">"; position: absolute; left: 0; color: var(--acid); font-family: var(--mono); }
@keyframes detailOpen { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: translateY(0); } }

.venture-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 15px;
}
.venture-card {
  padding: 25px 27px;
  border: 1px solid rgba(255,177,93,.15);
  background: rgba(255,177,93,.025);
}
.venture-card > span { color: var(--cyan); font-family: var(--mono); font-size: .63rem; }
.venture-card h3 { margin: 14px 0 8px; font-size: 1.25rem; }
.venture-card p { margin: 0; color: var(--muted); }
.venture-card a { display: inline-block; margin-top: 18px; color: var(--acid); font-family: var(--mono); font-size: .66rem; font-weight: 900; }

.credential-toolbar {
  margin-bottom: 24px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(255,122,4,.13);
  background: rgba(7,11,9,.75);
}
.credential-toolbar p { margin: 0; color: var(--muted); font-family: var(--mono); font-size: .66rem; }
.credential-toolbar p span { color: var(--acid); font-weight: 900; }
.credential-toolbar [role="group"] { display: flex; flex-wrap: wrap; gap: 7px; }
.credential-filter {
  padding: 7px 9px;
  border: 1px solid rgba(255,122,4,.14);
  color: #89958f;
  background: transparent;
  font-family: var(--mono);
  font-size: .59rem;
  font-weight: 800;
  cursor: pointer;
}
.credential-filter:hover,
.credential-filter.active { color: var(--bg); border-color: var(--acid); background: var(--acid); }
.cert-card { min-height: 290px; padding: 24px; }
.cert-card.hidden { display: none; }
.cert-card h3 { margin-top: 22px; }
.cert-card p { color: #c0cbc5; }
.cert-card small { display: block; margin: 10px 0 18px; color: var(--muted); line-height: 1.55; }
.cert-card i { position: relative; z-index: 2; margin-top: 18px; }
.certificate-link,
.certificate-unavailable {
  position: relative;
  z-index: 3;
  margin-top: auto;
  align-self: flex-start;
  border: 0;
  padding: 0;
  color: var(--cyan);
  background: transparent;
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-align: left;
}
.certificate-link { cursor: pointer; }
.certificate-link:hover { color: var(--acid); }
.certificate-unavailable { color: #5f6a64; }
.certificate-dialog {
  width: min(calc(100% - 28px), 1050px);
  max-height: calc(100vh - 36px);
  padding: 0;
  border: 1px solid rgba(255,122,4,.5);
  color: var(--text);
  background: #060908;
  box-shadow: 0 35px 100px rgba(0,0,0,.75), 0 0 50px rgba(255,122,4,.08);
  overflow: hidden;
}
.certificate-dialog::backdrop { background: rgba(0,0,0,.86); backdrop-filter: blur(8px); }
.certificate-dialog-bar {
  min-height: 46px;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,122,4,.2);
  color: var(--acid);
  background: #090d0b;
  font-family: var(--mono);
  font-size: .66rem;
}
.certificate-dialog-bar button,
.certificate-dialog-actions button {
  border: 1px solid rgba(255,122,4,.28);
  color: var(--acid);
  background: transparent;
  cursor: pointer;
}
.certificate-dialog-bar button { width: 30px; height: 30px; font-size: 1.25rem; line-height: 1; }
.certificate-dialog-body { max-height: calc(100vh - 83px); overflow: auto; }
.certificate-dialog-body img { width: 100%; height: auto; background: #fff; }
.certificate-dialog-actions {
  position: sticky;
  bottom: 0;
  padding: 12px 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(255,122,4,.2);
  background: rgba(5,8,7,.96);
}
.certificate-dialog-actions a,
.certificate-dialog-actions button { padding: 9px 12px; font-family: var(--mono); font-size: .62rem; font-weight: 900; }
.certificate-dialog-actions a { color: var(--cyan); }

.all-notes-link { margin-top: 28px; display: flex; justify-content: center; }
.article-gallery {
  margin: 34px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.article-gallery.gallery-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.article-gallery figure { margin: 0; border: 1px solid rgba(255,122,4,.16); background: #080b09; overflow: hidden; }
.article-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.article-gallery figcaption { padding: 9px 12px; color: var(--muted); font-family: var(--mono); font-size: .58rem; }
.video-embed { position: relative; margin: 34px 0; aspect-ratio: 16 / 9; border: 1px solid rgba(255,122,4,.25); background: #000; overflow: hidden; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.article-source { margin-top: 28px; padding-top: 18px; border-top: 1px dashed rgba(255,122,4,.15); color: var(--muted); font-family: var(--mono); font-size: .66rem; }

@media (max-width: 1180px) {
  .main-nav { gap: 14px; }
  .main-nav a { font-size: .69rem; }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 820px; }
  .hero-portrait { width: min(100%, 600px); margin: 10px auto 0; }
  .knowledge-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .venture-grid { grid-template-columns: 1fr; }
  .credential-toolbar { align-items: flex-start; flex-direction: column; }
  .experience-expanded,
  .experience-expanded-wide { grid-template-columns: 1fr; }
  .article-gallery,
  .article-gallery.gallery-four { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero-portrait figcaption { align-items: flex-start; flex-direction: column; }
  .hero-portrait::after { bottom: 75px; }
  .timeline::before { left: 7px; }
  .timeline-item { grid-template-columns: minmax(0,1fr); gap: 13px; padding-left: 33px; }
  .timeline-date {
    width: max-content;
    max-width: 100%;
    margin-left: 0;
    padding: 6px 8px;
    text-align: left;
    box-shadow: none;
  }
  .timeline-date span,
  .timeline-date small { display: inline; }
  .timeline-date small { margin: 0 0 0 8px; }
  .timeline-content::before { left: -31px; top: -41px; }
  .experience-details summary { padding: 22px 52px 45px 20px; }
  .experience-details summary::after { right: 16px; top: 21px; }
  .detail-toggle { left: 20px; right: auto; bottom: 16px; }
  .experience-expanded { padding: 23px 20px 25px; }
  .timeline-head { display: block; }
  .timeline-head span { display: block; margin-top: 5px; }
  .knowledge-card { min-height: 0; padding: 24px 21px; }
  .certificate-dialog-actions { align-items: stretch; flex-direction: column; }
  .certificate-dialog-actions a,
  .certificate-dialog-actions button { text-align: center; }
}
.linktree-avatar.linktree-photo { padding: 0; overflow: hidden; background: #0a0d0b; }
.linktree-avatar.linktree-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 34%; }


/* Language selector */
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
}
.language-switcher a {
  min-width: 48px;
  height: 34px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(255,122,4,.18);
  color: #aeb9b3;
  background: rgba(255,122,4,.025);
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .04em;
  transition: border-color .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease;
}
.language-switcher a:hover,
.language-switcher a.active {
  color: var(--text);
  border-color: var(--acid);
  background: rgba(255,122,4,.08);
  box-shadow: 0 0 18px rgba(255,122,4,.1);
}
.language-switcher a.active { cursor: default; }
.language-flag {
  display: inline-flex;
  width: 24px;
  height: 16px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.20), 0 0 10px rgba(255,122,4,.18);
}
.language-flag img { width: 24px; height: 16px; display: block; object-fit: cover; }
.language-code { line-height: 1; }
.linktree-card > .language-switcher { width: 100%; justify-content: center; margin: 0 0 24px; }

@media (max-width: 1180px) {
  .language-switcher a { min-width: 40px; padding: 0 6px; }
  .language-code { display: none; }
}

@media (max-width: 860px) {
  .language-switcher { margin-left: auto; }
  .site-header .language-switcher { order: 2; }
  .site-header .menu-toggle { order: 3; margin-left: 4px; }
  .site-header .main-nav { order: 4; }
}

@media (max-width: 420px) {
  .brand-text { font-size: .82rem; }
  .language-switcher a { min-width: 36px; height: 32px; padding-inline: 5px; }
}


.article-cover { margin: 30px 0 34px; overflow: hidden; border: 1px solid rgba(255,122,4,.22); background: #080808; box-shadow: 0 20px 60px rgba(0,0,0,.28); }
.article-cover img { width: 100%; max-height: 680px; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.article-cover figcaption { padding: 10px 14px; color: var(--muted); font-family: var(--mono); font-size: .62rem; border-top: 1px solid rgba(255,122,4,.12); }
.testimonial-avatar { width: 70px; height: 70px; border-radius: 50%; overflow: hidden; display: inline-flex; border: 1px solid rgba(255,122,4,.45); box-shadow: 0 0 20px rgba(255,122,4,.14); flex: 0 0 auto; }
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }


/* Featured videos */
.videos-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 18%, rgba(255,122,4,.07), transparent 31%),
    linear-gradient(180deg, rgba(255,122,4,.018), transparent 38%);
}
.videos-section::before {
  content: "MEDIA_STREAM";
  position: absolute;
  right: -1vw;
  top: 7%;
  color: rgba(255,122,4,.022);
  font-family: var(--mono);
  font-size: clamp(4.5rem, 12vw, 12rem);
  font-weight: 900;
  letter-spacing: -.08em;
  writing-mode: vertical-rl;
  pointer-events: none;
}
.videos-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.video-card {
  min-width: 0;
  border: 1px solid rgba(255,122,4,.18);
  background: rgba(5,8,7,.88);
  box-shadow: 0 22px 65px rgba(0,0,0,.28);
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.video-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,122,4,.48);
  box-shadow: 0 26px 75px rgba(0,0,0,.38), 0 0 30px rgba(255,122,4,.055);
}
.video-card-head,
.video-card-foot {
  min-height: 44px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #7f8b84;
  background: rgba(255,255,255,.012);
  font-family: var(--mono);
  font-size: .61rem;
  letter-spacing: .045em;
}
.video-card-head { border-bottom: 1px solid rgba(255,122,4,.13); }
.video-card-head span:last-child { color: var(--acid); }
.video-card-foot { border-top: 1px solid rgba(255,122,4,.13); }
.video-card-foot a { color: var(--acid); font-weight: 900; }
.video-card-foot a:hover { color: var(--cyan); }
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.video-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, rgba(255,122,4,.08), transparent 40%);
  pointer-events: none;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-section-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

@media (max-width: 860px) {
  .videos-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .video-card-head,
  .video-card-foot { padding-inline: 11px; font-size: .56rem; }
  .video-section-actions .button { width: 100%; }
}


/* Robust YouTube previews: visible on local files and hosted environments, without iframe error 153. */
.video-poster {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  overflow: hidden;
  background: #050505;
  color: #fff;
  isolation: isolate;
}
.video-poster img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.015);
  filter: saturate(.9) contrast(1.06) brightness(.78);
  transition: transform .35s ease, filter .35s ease;
}
.video-poster-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.04) 30%, rgba(0,0,0,.78) 100%),
    radial-gradient(circle at center, transparent 0 20%, rgba(0,0,0,.18) 67%, rgba(0,0,0,.5) 100%);
  transition: background .3s ease;
}
.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: clamp(58px, 7vw, 78px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,122,4,.72);
  border-radius: 50%;
  background: rgba(4,5,5,.84);
  box-shadow: 0 0 0 8px rgba(255,122,4,.07), 0 0 32px rgba(255,122,4,.32);
  transform: translate(-50%, -50%);
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}
.video-play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid var(--acid);
}
.video-play-label {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  display: block;
  color: #fff;
  font-family: var(--mono);
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-align: center;
  text-shadow: 0 2px 12px #000;
}
.video-poster:hover img,
.video-poster:focus-visible img {
  transform: scale(1.055);
  filter: saturate(1.05) contrast(1.08) brightness(.9);
}
.video-poster:hover .video-play,
.video-poster:focus-visible .video-play {
  background: var(--acid);
  box-shadow: 0 0 0 9px rgba(255,122,4,.10), 0 0 42px rgba(255,122,4,.5);
  transform: translate(-50%, -50%) scale(1.08);
}
.video-poster:hover .video-play::before,
.video-poster:focus-visible .video-play::before {
  border-left-color: #070707;
}
.video-poster:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: -3px;
}
.video-embed .video-poster {
  position: absolute;
}
@media (max-width: 600px) {
  .video-play-label { bottom: 10px; font-size: .56rem; }
}


/* Tools and technologies inventory */
.tech-stack-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 6%, rgba(255,122,4,.095), transparent 28%),
    linear-gradient(180deg, rgba(255,122,4,.018), transparent 30%, rgba(255,122,4,.014));
}
.tech-stack-section::before {
  content: "TOOLCHAIN";
  position: absolute;
  z-index: -1;
  right: -2.5vw;
  top: 90px;
  color: rgba(255,255,255,.015);
  font-family: var(--mono);
  font-size: clamp(5rem, 14vw, 13rem);
  font-weight: 900;
  line-height: 1;
  writing-mode: vertical-rl;
  pointer-events: none;
}
.tech-stack-summary {
  margin: -14px 0 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(255,122,4,.16);
  background: rgba(5,8,7,.7);
}
.tech-stack-summary article {
  min-height: 108px;
  padding: 22px 24px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  border-right: 1px solid rgba(255,122,4,.13);
}
.tech-stack-summary article:last-child { border-right: 0; }
.tech-stack-summary strong {
  color: var(--acid);
  font-family: var(--mono);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1;
  text-shadow: 0 0 24px rgba(255,122,4,.18);
}
.tech-stack-summary span {
  max-width: 145px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .66rem;
  line-height: 1.45;
  text-transform: uppercase;
}
.tech-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.tech-group {
  position: relative;
  min-height: 320px;
  padding: 28px;
  border: 1px solid rgba(255,122,4,.14);
  background: linear-gradient(145deg, rgba(12,16,14,.94), rgba(5,8,7,.88));
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.tech-group::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -36px;
  width: 82px;
  height: 82px;
  border: 1px solid rgba(255,122,4,.16);
  transform: rotate(45deg);
  pointer-events: none;
}
.tech-group:hover {
  transform: translateY(-4px);
  border-color: rgba(255,122,4,.38);
  box-shadow: 0 24px 64px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.015);
}
.tech-group-head > span {
  color: var(--acid);
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.tech-group h3 {
  margin: 18px 0 8px;
  font-size: 1.28rem;
  letter-spacing: -.025em;
}
.tech-group p {
  max-width: 540px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: .86rem;
}
.tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tech-chips span {
  padding: 7px 9px;
  border: 1px solid rgba(255,122,4,.14);
  background: rgba(255,122,4,.025);
  color: #a7b1ac;
  font-family: var(--mono);
  font-size: .63rem;
  line-height: 1;
  white-space: nowrap;
  transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
}
.tech-chips span::before { content: "#"; color: rgba(255,122,4,.65); }
.tech-chips span.core {
  border-color: rgba(255,122,4,.42);
  background: rgba(255,122,4,.09);
  color: #fff1e6;
}
.tech-chips span:hover {
  transform: translateY(-2px);
  color: #070707;
  background: var(--acid);
  border-color: var(--acid);
}
.tech-chips span:hover::before { color: #070707; }
.tech-stack-note {
  margin: 22px 0 0;
  padding: 16px 18px;
  border-left: 2px solid var(--acid);
  background: rgba(255,122,4,.035);
  color: var(--muted);
  font-family: var(--mono);
  font-size: .66rem;
  line-height: 1.6;
}
.tech-stack-note span { color: var(--acid); font-weight: 900; }

@media (max-width: 980px) {
  .tech-groups { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .tech-stack-summary { grid-template-columns: 1fr; }
  .tech-stack-summary article { min-height: 82px; border-right: 0; border-bottom: 1px solid rgba(255,122,4,.13); }
  .tech-stack-summary article:last-child { border-bottom: 0; }
}
@media (max-width: 600px) {
  .tech-group { min-height: 0; padding: 24px 20px; }
  .tech-chips span { white-space: normal; }
}
