@font-face {
  font-family: Cal Sans;
  src: url("assets/fonts/cal-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #f7f8f7;
  --muted: #c4cec5;
  --quiet: #a2b1a5;
  --background: #1b211e;
  --surface: #202423;
  --visual: #2b332d;
  --line: #404b43;
  --lime: #acc86a;
  --highlight: #c4df89;
  --display: "Cal Sans", Inter, "Segoe UI", sans-serif;
  --radius: 10px;
  --header: 78px;
  font: 400 16px/1.55 Inter, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--background);
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  position: relative;
  isolation: isolate;
  background: linear-gradient(158deg, #29312b 0, #1f2721 740px, var(--background) 1450px, #1d2420 100%);
}
body::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .58; background: url("assets/textura.svg") center -205px / clamp(1080px, 120vw, 1740px) auto repeat-y; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:not(:disabled), select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font: 610 1em/1.07 var(--display); letter-spacing: -.032em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--highlight); outline-offset: 4px; }
.wrap { width: min(calc(100% - 100px), 1320px); margin-inline: auto; }
.section { padding-top: clamp(75px, 9vw, 126px); scroll-margin-top: calc(var(--header) - 24px); }
.skip { position: fixed; left: 16px; top: 12px; z-index: 10; padding: 10px 14px; border-radius: 8px; color: #172011; background: var(--lime); transform: translateY(-150%); }
.skip:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 5; min-height: var(--header); background: #1e2520; border-bottom: 1px solid #39463b80; }
.header-inner { display: grid; grid-template-columns: 140px minmax(0, 1fr) 140px; align-items: center; gap: 22px; min-height: var(--header); }
.brand { justify-self: start; display: inline-flex; align-items: center; border-radius: 4px; }
.brand img { width: 126px; height: auto; }
.nav { display: flex; width: min(100%, 810px); justify-self: center; min-width: 0; background: #1b221e; border: 1px solid #344137; border-radius: 8px; }
.nav a { flex: 1; display: grid; place-items: center; text-align: center; padding: 11px 8px; white-space: nowrap; border-radius: 7px; color: var(--quiet); font-size: .82rem; }
.nav a:hover { color: var(--ink); background: #2a342b; }
.nav a[aria-current] { color: var(--highlight); background: radial-gradient(ellipse at 50% 132%, #9fbb58c7, #71884349 49%, transparent 78%); font-weight: 600; }
.language { justify-self: end; min-height: 38px; color: var(--muted); font-size: .79rem; }

.hero {
  position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr 1.36fr 1.04fr;
  align-items: center; gap: 26px; padding-top: clamp(42px, 8vw, 112px); scroll-margin-top: var(--header);
}
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 -38px; pointer-events: none;
  background: radial-gradient(ellipse 52% 75% at 50% 53%, #5360462c, transparent 87%);
}
.hero-name h1 { font-size: clamp(4rem, 7.5vw, 7.15rem); font-weight: 660; line-height: .91; letter-spacing: -.055em; }
.hero-name p { margin-top: 24px; color: var(--highlight); font-size: clamp(.95rem, 1.55vw, 1.26rem); font-weight: 550; line-height: 1.35; }
.portrait { position: relative; width: 100%; max-width: 450px; aspect-ratio: 1; justify-self: center; display: grid; place-items: center; }
.portrait::before, .portrait::after { content: ""; position: absolute; border: 1px solid #bcd19217; border-radius: 50%; inset: -8%; pointer-events: none; }
.portrait::after { inset: 1px; border-color: #a5bd6666; background: #48504139; z-index: -1; box-shadow: 0 0 0 clamp(17px, 4.4vw, 60px) #8294680c; }
.portrait img { width: 92%; height: auto; align-self: end; margin-bottom: 4%; mask-image: linear-gradient(#000 83%, transparent); }
.about { max-width: 330px; justify-self: end; }
.about h2 { font-size: clamp(1.7rem, 2.7vw, 2.4rem); }
.about > p { margin-top: 10px; font-size: clamp(.93rem, 1.25vw, 1.04rem); color: var(--muted); }
.hero-contact { width: min(100%, 340px); height: auto; margin-top: clamp(20px, 4vw, 60px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 14px; border: 1px solid #4e5e50; border-radius: 8px; background: #242d26; color: var(--ink); font-size: .85rem; font-weight: 590; line-height: 1.2; text-align: center; }
.button:hover:not(:disabled) { background: #303c32; border-color: #708274; }
.primary { background: var(--lime); color: #182311; border-color: var(--lime); }
.primary:hover:not(:disabled) { background: var(--highlight); border-color: var(--highlight); }
.button:disabled { opacity: .6; }
.client-strip { --client-gap: clamp(22px, 3vw, 42px); grid-column: 1 / -1; display: flex; align-items: center; gap: 9px; justify-self: center; width: min(100%, 1070px); margin-top: 3px; padding: 9px 0; }
.client-viewport { flex: 1; min-width: 0; overflow: hidden; overflow: clip; padding-block: 5px; mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent); }
.client-track { display: flex; width: max-content; }
.client-logos { display: flex; flex: none; align-items: center; gap: var(--client-gap); padding-inline-end: var(--client-gap); }
.client-logos img { width: clamp(82px, 9vw, 116px); height: 41px; flex: none; filter: grayscale(1); opacity: .72; object-fit: contain; }
.client-strip.is-ready .client-track { animation: client-scroll 105s linear infinite; }
.client-strip.is-paused .client-track { animation-play-state: paused; }
.client-motion { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); font-size: .82rem; }
.client-motion:hover { color: var(--highlight); }
@keyframes client-scroll { to { transform: translateX(-50%); } }

.section-heading { text-align: center; margin-bottom: 25px; }
.section-heading.left { text-align: left; }
.section-heading h2 { font-size: clamp(2.25rem, 4vw, 3.45rem); }
.section-heading p { margin-top: 6px; color: var(--quiet); font-size: .9rem; }
.timeline { --track-gap: clamp(72px, 6.3vw, 101px); position: relative; display: grid; grid-template-columns: repeat(36, minmax(0,1fr)); grid-template-rows: repeat(2, 1fr); row-gap: var(--track-gap); list-style: none; margin: 0; padding: 0; }
.timeline::before { content: ""; position: absolute; inset: 50% 4% auto; height: 1px; background: #627065; }
.timeline li { grid-row: 2; grid-column: var(--start) / span 9; position: relative; }
.timeline li:nth-child(1) { --start: 1; }
.timeline li:nth-child(2) { --start: 6; }
.timeline li:nth-child(3) { --start: 12; }
.timeline li:nth-child(4) { --start: 17; }
.timeline li:nth-child(5) { --start: 23; }
.timeline li:nth-child(6) { --start: 28; }
.timeline li:nth-child(even) { grid-row: 1; }
.timeline li::before { content: ""; position: absolute; left: 50%; bottom: calc(100% + var(--track-gap) / 5); width: 1px; height: calc(var(--track-gap) * .3); background: #627065; }
.timeline li:nth-child(even)::before { top: calc(100% + var(--track-gap) / 5); bottom: auto; }
.timeline li::after { content: ""; position: absolute; top: calc(var(--track-gap) / -2 - 3px); left: calc(50% - 2.5px); width: 6px; height: 6px; border-radius: 50%; background: var(--highlight); }
.timeline li:nth-child(even)::after { top: auto; bottom: calc(var(--track-gap) / -2 - 3px); }
.timeline-label { position: absolute; top: calc(var(--track-gap) / -2 + 6px); left: calc(50% + 10px); color: var(--muted); font-size: .68rem; white-space: nowrap; }
.timeline li:nth-child(even) .timeline-label { top: auto; bottom: calc(var(--track-gap) / -2 + 6px); }
.experience-card { display: grid; grid-template-columns: minmax(52px, 28%) minmax(0,1fr); height: 100%; min-height: 116px; border-radius: 7px; border: 1px solid #39443b; background: #202423; overflow: hidden; }
.company { display: grid; place-items: center; padding: 9px; background: #262b28; border-right: 1px solid #303732; }
.company img { width: 100%; max-height: 48px; object-fit: contain; filter: brightness(0) invert(1); }
.experience-copy { display: grid; gap: 5px; align-content: center; min-width: 0; padding: 12px 11px; }
.experience-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 7px; font-weight: 620; font-size: .65rem; line-height: 1.22; }
.experience-period { flex-shrink: 0; color: var(--muted); font-weight: 400; font-size: .57rem; }
.experience-card h3 { font-size: clamp(.98rem, 1.35vw, 1.21rem); color: var(--highlight); }
.experience-role { color: var(--ink); font-size: .65rem; line-height: 1.2; }
.experience-detail { display: grid; gap: 5px; margin-top: 3px; padding-top: 7px; border-top: 1px solid #39413b; color: var(--muted); font-size: .66rem; line-height: 1.38; }

.skills { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(19px, 2vw, 29px) clamp(20px, 3.3vw, 47px); margin: 0; padding: 0; list-style: none; }
.skill { overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.skill-visual { display: grid; grid-template-columns: 1fr 1fr; height: 68px; }
.skill-icon { display: grid; place-items: center; font-weight: 800; font-size: 1.38rem; background: var(--tile, #202925); color: var(--tile-ink, #fff); }
.skill-icon img { width: 33px; height: 33px; object-fit: contain; }
.skill-icon.ai { display: flex; justify-content: center; align-items: center; gap: 6px; }
.skill-icon.ai img { width: 21px; height: 21px; }
.skill-score { display: grid; place-items: center; background: #29302b; }
.score-ring { display: grid; place-items: center; width: 47px; height: 47px; border-radius: 50%; background: conic-gradient(var(--lime) var(--score), #465347 0); }
.score-ring span { display: grid; width: 40px; height: 40px; place-items: center; grid-auto-flow: column; justify-content: center; border-radius: 50%; background: #29302b; font-weight: 650; font-size: .92rem; }
.score-ring small { font-size: .55rem; margin-top: 6px; color: var(--muted); }
.skill-name { display: grid; gap: 1px; padding: 9px 12px; color: var(--muted); font-size: .69rem; }
.skill-name strong { font-weight: 620; color: var(--ink); font-size: .86rem; }
.figma-mark, .windows-mark { width: 29px; display: grid; grid-template-columns: 1fr 1fr; }
.figma-mark i, .windows-mark i { display: block; aspect-ratio: 1; }
.figma-mark i:nth-child(1) { background: #f24e1e; border-radius: 50% 0 0 50%; }
.figma-mark i:nth-child(2) { background: #ff7262; border-radius: 0 50% 50% 0; }
.figma-mark i:nth-child(3) { background: #a259ff; border-radius: 50% 0 0 50%; }
.figma-mark i:nth-child(4) { background: #1abcfe; border-radius: 50%; }
.figma-mark i:nth-child(5) { background: #0acf83; border-radius: 50% 0 50% 50%; }
.windows-mark { gap: 3px; }
.windows-mark i { background: #27a7f4; }

.dashboard { display: grid; grid-template-columns: 235px minmax(0,1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--visual); }
.project-tabs { display: flex; flex-direction: column; gap: 3px; padding: 16px; background: var(--surface); border-right: 1px solid var(--line); border-radius: 9px 0 0 9px; }
.project-tabs button { display: grid; grid-template-columns: 19px 1fr; gap: 8px; align-items: center; width: 100%; padding: 6px 8px; min-height: 34px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); text-align: left; font-size: .8rem; }
.project-tabs button:hover { color: var(--ink); background: #353e36; }
.project-tabs button[aria-selected="true"] { background: var(--lime); color: #1c2814; font-weight: 650; }
.project-tabs .tab-icon { text-align: center; font-size: 1rem; }
.project-panel { display: grid; grid-template-columns: minmax(180px, .76fr) minmax(0,1.24fr); align-items: center; align-content: center; gap: 26px; align-self: stretch; padding: clamp(18px, 3vw, 42px); }
.project-copy { display: grid; gap: 13px; }
.project-copy h3 { font-size: clamp(1.95rem, 3.4vw, 3.2rem); overflow-wrap: anywhere; }
.project-copy p { color: var(--muted); font-size: .92rem; }
.project-copy .project-medium { color: var(--highlight); font-size: .81rem; font-weight: 630; }
.project-media { min-width: 0; text-align: center; }
.media-button { position: relative; display: block; width: 100%; padding: 9px; background: #19221d; border: 1px solid #4a584c; border-radius: 8px; }
.media-button img { width: 100%; height: clamp(173px, 22vw, 310px); object-fit: contain; border-radius: 4px; }
.project-video { display: block; width: 100%; height: clamp(191px, calc(22vw + 18px), 328px); object-fit: contain; border: 1px solid #4a584c; border-radius: 8px; background: #19221d; }
.expand { position: absolute; bottom: 9px; right: 9px; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 6px; background: #1b231de8; color: var(--highlight); }
.project-media figcaption { margin-top: 7px; font-size: .74rem; color: var(--quiet); }
.image-controls { display: flex; gap: 5px; justify-content: center; margin-top: 6px; }
.image-controls button { min-width: 27px; min-height: 27px; padding: 0; border: 1px solid #536357; border-radius: 5px; color: var(--muted); background: transparent; font-size: .74rem; }
.image-controls .clip-option { padding-inline: 9px; }
.image-controls button[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: #1a2613; }
.project-controls { display: flex; justify-content: center; align-items: center; grid-column: 1 / -1; gap: 10px; }
.project-controls output { min-width: 72px; text-align: center; color: var(--quiet); font-size: .81rem; }
.icon-button { width: 38px; min-height: 36px; padding: 5px; font-size: 1.05rem; }

.services, .cv-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.service { display: grid; grid-template-columns: 1.15fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.service-copy { display: flex; flex-direction: column; padding: clamp(13px, 2vw, 24px); gap: 9px; }
.service h3 { font-size: clamp(1.22rem, 2.35vw, 2.02rem); }
.service p { color: var(--muted); font-size: .86rem; }
.service-quote { align-self: flex-start; margin-top: auto; }
.service-media { display: grid; place-items: center; min-width: 0; padding: 12px; background: var(--visual); }
.service img { width: 100%; max-height: 178px; object-fit: contain; border-radius: 5px; }

.social-grid { display: grid; grid-template-columns: repeat(var(--social-columns, 5),minmax(0,1fr)); gap: 15px; }
.social-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.social-logo { display: grid; place-items: center; aspect-ratio: 1.38; font: 700 3rem/1 Inter,sans-serif; color: white; }
.facebook { background: #0b61ec; }
.instagram { background: #f71764; }
.youtube { background: #f01d17; }
.youtube span { padding: 6px 10px; border: 2px solid #ffffffaa; border-radius: 9px; font-size: 1rem; }
.figma-social { background: #df5576; }
.figma-social .figma-mark { width: 35px; }
.linkedin { background: #f3f5f4; }
.linkedin span { color: #0691cf; font-size: 2.5rem; }
.instagram-mark { position: relative; width: 40px; aspect-ratio: 1; border: 3px solid white; border-radius: 11px; }
.instagram-mark::before { position: absolute; content: ""; inset: 8px; border: 3px solid white; border-radius: 50%; }
.instagram-mark::after { position: absolute; content: ""; width: 5px; height: 5px; top: 5px; right: 5px; background: white; border-radius: 50%; }
.social-copy { display: grid; gap: 12px; padding: clamp(10px, 2vw, 18px); }
.social-copy h3 { font-size: clamp(1rem, 2.25vw, 1.63rem); }

.cv-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.language-choice { display: grid; gap: 4px; color: var(--quiet); font-size: .74rem; }
select, input, textarea { min-width: 0; color: var(--ink); background: #1a211c; border: 1px solid #546459; border-radius: 8px; padding: 8px 10px; }
.cv-card { display: grid; grid-template-columns: minmax(0,1fr) 112px; gap: 14px; align-items: center; background: linear-gradient(90deg,var(--surface) 68%,var(--visual) 68%); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(14px, 3vw, 34px); }
.cv-card h3 { font-size: 1.52rem; }
.cv-card p { margin-top: 7px; color: var(--muted); font-size: .84rem; }
.document { position: relative; justify-self: center; display: grid; align-items: end; justify-items: center; width: 70px; height: 93px; padding-bottom: 15px; border-radius: 7px; background: #126ac6; clip-path: polygon(0 0, 71% 0, 100% 22%, 100% 100%, 0 100%); }
.document::before { content: ""; position: absolute; top: 0; right: 0; width: 29%; height: 22%; background: #ffffff5e; }
.document span { font-size: 1rem; font-weight: 800; }
.document.pdf { background: #d82c23; }

.site-footer { margin-top: clamp(70px, 9vw, 115px); border-top: 1px solid var(--line); background: #18201b; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 26px 30px; min-height: 145px; padding-block: 28px; }
.footer-identity { display: grid; gap: 18px; width: min(100%, 535px); }
.footer-social-links { display: grid; grid-template-areas: "logos"; align-items: center; min-height: 32px; }
.footer-social-links > * { grid-area: logos; }
.footer-socials { width: 100%; height: auto; }
.footer-social-targets {
  display: grid;
  /* Icon positions in the 714 px SVG, with each gap split between adjacent links. */
  grid-template-columns: 61fr repeat(8, 74fr) 61fr;
  align-self: stretch;
}
.footer-social-targets a { border-radius: 6px; }
.footer-social-targets a:hover { background: rgb(255 255 255 / .08); }
.footer-social-targets a:focus-visible { outline-offset: -2px; }
.footer-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.back-top { color: var(--muted); font-size: .87rem; }
.back-top:hover { color: var(--highlight); }
.floating-home {
  position: fixed;
  z-index: 4;
  right: max(18px, calc(env(safe-area-inset-right) + 10px));
  bottom: max(18px, calc(env(safe-area-inset-bottom) + 10px));
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 12px;
  box-shadow: 0 4px 16px #111711a6;
  font-size: 1.5rem;
}

dialog { width: min(calc(100% - 25px), 540px); max-height: 92dvh; border: 1px solid #566558; border-radius: 12px; color: var(--ink); background: #252e27; padding: 22px; }
dialog::backdrop { background: #0e1511c9; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.dialog-head h2 { font-size: clamp(1.45rem, 4vw, 2rem); }
.image-dialog { width: min(calc(100% - 25px), 1070px); }
.image-dialog img { width: 100%; max-height: 73dvh; object-fit: contain; }
.demo-note, #contact-result { color: var(--highlight); font-size: .85rem; }
.contact-service { display: grid; gap: 2px; margin-top: 12px; padding: 8px 11px; border-left: 2px solid var(--lime); background: #2b372e; color: var(--muted); font-size: .82rem; }
.contact-service strong { color: var(--ink); }
.contact-form { display: grid; gap: 11px; margin-top: 14px; }
.contact-form label { display: grid; gap: 4px; color: var(--muted); font-size: .88rem; }
.contact-form textarea { resize: vertical; }
.contact-form .button { justify-self: start; }
.cv-dialog { width: min(calc(100% - 25px), 700px); }
.cv-paper { width: 100%; height: auto; margin-top: 12px; border-radius: 7px; background: #fff; }

@media (max-width: 1070px) {
  .wrap { width: calc(100% - 54px); }
  .header-inner { grid-template-columns: 112px minmax(0,1fr) 106px; gap: 12px; }
  .hero { grid-template-columns: 1fr 1.18fr 1.17fr; gap: 20px; }
  .hero-name h1 { font-size: clamp(3.6rem, 8vw, 5.8rem); }
  .dashboard { grid-template-columns: 200px minmax(0,1fr); }
  .project-panel { gap: 18px; }
  .cv-card { grid-template-columns: minmax(0,1fr) 85px; }
}
@media (max-width: 930px) {
  .timeline { display: flex; flex-direction: column; padding-left: 20px; gap: 11px; }
  .timeline::before { inset: 0 auto 0 4px; width: 1px; height: auto; }
  .timeline li::after, .timeline li:nth-child(even)::after { left: -18px; top: 49%; bottom: auto; }
  .timeline li::before, .timeline-label { display: none; }
  .experience-card { min-height: 99px; }
  .company img { max-width: 94px; }
}
@media (max-width: 800px) {
  :root { --header: 110px; }
  .wrap { width: calc(100% - 32px); }
  .header-inner { grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 6px 12px; padding-block: 9px; align-content: center; }
  .nav { grid-row: 2; grid-column: 1 / -1; overflow-x: auto; scrollbar-width: thin; }
  .nav a { flex: 1 0 auto; padding-inline: 10px; }
  .hero { grid-template-columns: 1fr 1fr; column-gap: 12px; row-gap: 22px; }
  .hero-name h1 { font-size: clamp(2.5rem, 9.8vw, 5.8rem); }
  .hero-name p { margin-top: 14px; }
  .portrait { max-width: 305px; }
  .about { grid-column: 1/-1; justify-self: start; max-width: 520px; }
  .client-logos img { height: 32px; }
  .dashboard { grid-template-columns: minmax(0,1fr); }
  .project-tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); border-radius: 9px 9px 0 0; padding: 9px; scrollbar-width: thin; }
  .project-tabs button { width: auto; flex: 0 0 auto; white-space: nowrap; min-height: 37px; }
  .project-panel { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .social-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .service { grid-template-columns: 1fr; }
  .service-media { grid-row: 1; }
  .service img { max-height: 115px; }
}
@media (max-width: 470px) {
  .portrait { width: calc(100% - 12px); }
  .skills { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
  .project-panel { grid-template-columns: 1fr; }
  .services, .cv-grid { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1.1fr 1fr; }
  .service-media { grid-row: auto; }
  .social-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .cv-card { grid-template-columns: minmax(0,1fr) 78px; }
}
/* ------------------------------------------------------------------
   Ampliaciones 2026-11 (Portfolio Manager). Usan los mismos tokens y
   medidas del diseño original; ver DOCUMENTACION/11_SISTEMA_DISENO.md.
   ------------------------------------------------------------------ */

/* Textos con saltos de línea editables (nombre y rol del inicio). */
.lineas { white-space: pre-line; }

/* Datos de contacto del inicio: reproduce contacto.svg (466 × 34) como texto editable. */
.hero-contact {
  container-type: inline-size;
  display: flex; align-items: center;
  width: min(100%, 340px); height: auto; aspect-ratio: 466 / 34; margin: clamp(20px, 4vw, 60px) 0 0; padding: 0;
  list-style: none; font-family: Inter, "Segoe UI", sans-serif;
}
.hero-contact li { display: flex; align-items: center; gap: 2.9cqi; min-width: 0; height: 5.75cqi; }
.hero-contact li:first-child { padding-left: .85cqi; }
.hero-contact li + li { margin-left: 2.6cqi; padding-left: 2.45cqi; border-left: 1px solid #9fbb58; }
.hero-contact svg { flex: none; width: auto; height: 3.65cqi; fill: none; stroke: #9fbb58; stroke-width: 1.59; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.hero-contact .dato { display: grid; min-width: 0; line-height: 1.1; }
.hero-contact small { color: #9cba55; font-size: 1.15cqi; line-height: 1.25; }
.hero-contact .dato > :last-child { color: #fff; font-size: 3.03cqi; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-contact a { border-radius: 3px; transition: color .18s ease; }
.hero-contact a:hover { color: var(--highlight); }

/* Redes del pie: cada ícono se toma del sprite original redes.svg (48 px cada 74 px). */
.footer-social-links { display: block; container-type: inline-size; }
.pie-redes { display: flex; flex-wrap: wrap; gap: 3.6415cqi; margin: 0; padding: 0; list-style: none; }
.red-pie { display: block; border-radius: 6px; transition: background-color .18s ease, box-shadow .18s ease; }
.red-pie:hover { background: rgb(255 255 255 / .08); box-shadow: 0 0 0 4px rgb(255 255 255 / .08); }
.red-pie:focus-visible { outline-offset: 3px; }
.red-icono {
  --tam: 6.7227cqi;
  display: block; width: var(--tam); height: var(--tam); min-width: 22px; min-height: 22px;
  background: url("assets/brands/redes.svg") no-repeat;
  background-size: auto 100%;
  background-position: calc(var(--i, 0) * max(var(--tam), 22px) * -74 / 48) 0;
}
.red-icono.generico { display: grid; place-items: center; border-radius: 50%; background: var(--visual); color: #d7ded8; font-size: max(calc(var(--tam) * .5), 11px); }
.social-sprite, .social-generic { background: var(--visual); }
.social-sprite .red-icono { --tam: clamp(40px, 5vw, 64px); }
.social-generic span { font-size: 2.4rem; color: #d7ded8; }

/* Etiquetas y enlaces opcionales de los proyectos. */
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.project-tags li { padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .72rem; }
.project-links { margin-top: 2px; }

/* Lista opcional de características de los servicios. */
.service-features { display: grid; gap: 4px; margin: 0; padding-left: 18px; color: var(--muted); font-size: .82rem; }
.service-features li::marker { color: var(--lime); }

/* Catálogo de herramientas (aplicaciones, scripts y extensiones). */
.tool-catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.tool-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.tool-media { display: grid; place-items: center; padding: 12px; background: var(--visual); }
.tool-media img { width: 100%; height: 150px; object-fit: contain; border-radius: 5px; }
.tool-copy { display: flex; flex-direction: column; gap: 8px; padding: clamp(13px, 2vw, 22px); }
.tool-copy h3 { font-size: clamp(1.15rem, 1.9vw, 1.6rem); }
.tool-copy p { color: var(--muted); font-size: .86rem; }
.tool-copy .project-medium { color: var(--highlight); font-size: .78rem; font-weight: 630; }
.tool-copy .tool-meta { color: var(--quiet); font-size: .76rem; }
.tool-copy .actions { margin-top: auto; padding-top: 6px; }

/* Formación, certificaciones y logros (sólo aparecen si tienen contenido). */
.trayectoria { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 15px; margin-top: clamp(28px, 4vw, 48px); }
.trayectoria-bloque { padding: clamp(14px, 2vw, 22px); border: 1px solid #39443b; border-radius: 7px; background: var(--surface); }
.trayectoria-bloque h3 { color: var(--highlight); font-size: clamp(1.05rem, 1.5vw, 1.3rem); }
.trayectoria-bloque ul { display: grid; gap: 11px; margin: 12px 0 0; padding: 0; list-style: none; }
.trayectoria-bloque li { display: grid; gap: 2px; padding-top: 10px; border-top: 1px solid #39413b; color: var(--muted); font-size: .8rem; }
.trayectoria-bloque li strong { color: var(--ink); font-weight: 620; font-size: .9rem; }

/* Video destacado del inicio. */
.featured-video { height: auto; max-height: 73dvh; }

/* Formulario: mensajes de validación y campo trampa. */
.field-error { margin-top: -6px; color: #f1a39b; font-size: .8rem; }
.contact-form [aria-invalid="true"] { border-color: #e2776c; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.noscript { position: fixed; inset: auto 16px 16px; z-index: 6; padding: 12px 14px; border-radius: 8px; background: var(--lime); color: #182311; }

/* Microinteracciones: transiciones breves en los estados existentes. */
.button, .nav a, .project-tabs button, .image-controls button, .client-motion, .back-top, .expand, .media-button {
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.button:active:not(:disabled) { transform: translateY(1px); }
.media-button:hover { border-color: #708274; }
.media-button:hover .expand { color: var(--ink); }
.experience-card, .skill, .service, .social-card, .cv-card, .tool-card { transition: border-color .2s ease; }
.experience-card:hover, .skill:hover, .service:hover, .social-card:hover, .cv-card:hover, .tool-card:hover { border-color: #536357; }
dialog[open] { animation: dialogo-entrada .22s cubic-bezier(.2,.7,.2,1); }
dialog[open]::backdrop { animation: fondo-entrada .22s ease; }
@keyframes dialogo-entrada { from { opacity: 0; transform: translateY(10px) scale(.985); } }
@keyframes fondo-entrada { from { opacity: 0; } }

/* Aparición al desplazar (la activa interacciones.js sólo sin movimiento reducido). */
.revelar { opacity: 0; transform: translateY(14px); transition: opacity .55s cubic-bezier(.2,.7,.2,1), transform .55s cubic-bezier(.2,.7,.2,1); transition-delay: var(--reveal-delay, 0ms); }
.revelar.is-visible { opacity: 1; transform: none; }

@media (max-width: 1070px) {
  .tool-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 470px) {
  .tool-catalog { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  /* El carrusel de logotipos queda en pausa (interacciones.js) y sólo se mueve si la persona lo reanuda. */
  *:not(.client-track), *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .revelar { opacity: 1; transform: none; }
}
